diff --git a/frontend/server/modelsmith-build/3rdpartylicenses.txt b/frontend/server/modelsmith-build/3rdpartylicenses.txt new file mode 100644 index 00000000..2e9f31b8 --- /dev/null +++ b/frontend/server/modelsmith-build/3rdpartylicenses.txt @@ -0,0 +1,730 @@ + +-------------------------------------------------------------------------------- +Package: @lottiefiles/dotlottie-web +License: "MIT" + +MIT License + +Copyright (c) 2023 LottieFiles.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. + +-------------------------------------------------------------------------------- +Package: ngx-colors +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/cdk +License: "MIT" + +The MIT License + +Copyright (c) 2024 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: @angular/material +License: "MIT" + +The MIT License + +Copyright (c) 2024 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: hammerjs +License: "MIT" + +The MIT License (MIT) + +Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media) + +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: @kurkle/color +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2018-2021 Jukka Kurkela + +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: chart.js +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2014-2022 Chart.js 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: 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: ng2-charts +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2023 Valor Labs +Copyright (c) 2023 Valor Software +Copyright (c) 2023 Dmitriy Shekhovtsov + +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: chartjs-plugin-zoom +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2013-2021 chartjs-plugin-zoom 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: deepmerge +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2012 James Halliday, Josh Duff, 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: @angular/animations +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/platform-browser +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @ngrx/store-devtools +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +This repository includes a file "debounceSync.ts" originially copied from +https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the +file header for details. + +-------------------------------------------------------------------------------- +Package: ngrx-store-localstorage +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2016 Brian Troncone + +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: ngx-mat-select-search +License: "MIT" + +MIT License + +Copyright (c) 2018 Bithost GmbH + +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: xterm +License: "MIT" + +Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js) +Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com) +Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/) + +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: xterm-addon-fit +License: "MIT" + +Copyright (c) 2019, The xterm.js authors (https://github.com/xtermjs/xterm.js) + +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: @ngneat/until-destroy +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/core +License: "MIT" + + +-------------------------------------------------------------------------------- +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" + + +-------------------------------------------------------------------------------- +Package: @angular/router +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @ngrx/store +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +This repository includes a file "debounceSync.ts" originially copied from +https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the +file header for details. + +-------------------------------------------------------------------------------- +Package: @ngrx/effects +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +This repository includes a file "debounceSync.ts" originially copied from +https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the +file header for details. + +-------------------------------------------------------------------------------- +Package: zone.js +License: "MIT" + +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- diff --git a/frontend/server/modelsmith-build/browser/assets/animations/pruning.lottie b/frontend/server/modelsmith-build/browser/assets/animations/pruning.lottie new file mode 100644 index 00000000..9fe7bfe8 Binary files /dev/null and b/frontend/server/modelsmith-build/browser/assets/animations/pruning.lottie differ diff --git a/frontend/server/modelsmith-build/browser/assets/animations/quantization.lottie b/frontend/server/modelsmith-build/browser/assets/animations/quantization.lottie new file mode 100644 index 00000000..e6e4c65d Binary files /dev/null and b/frontend/server/modelsmith-build/browser/assets/animations/quantization.lottie differ diff --git a/frontend/server/modelsmith-build/browser/assets/icons/empty-state.svg b/frontend/server/modelsmith-build/browser/assets/icons/empty-state.svg new file mode 100644 index 00000000..26c18fb4 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/assets/icons/empty-state.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/server/modelsmith-build/browser/assets/logo/login-logo.svg b/frontend/server/modelsmith-build/browser/assets/logo/login-logo.svg new file mode 100644 index 00000000..d7d27a4a --- /dev/null +++ b/frontend/server/modelsmith-build/browser/assets/logo/login-logo.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/server/modelsmith-build/browser/assets/logo/logo-header.svg b/frontend/server/modelsmith-build/browser/assets/logo/logo-header.svg new file mode 100644 index 00000000..28f400b9 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/assets/logo/logo-header.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/frontend/server/modelsmith-build/browser/chunk-2VRXO4PD.js b/frontend/server/modelsmith-build/browser/chunk-2VRXO4PD.js new file mode 100644 index 00000000..05c432d6 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-2VRXO4PD.js @@ -0,0 +1 @@ +import{a as gi,b as fi}from"./chunk-YPMBMI5J.js";import{$ as q,$a as ai,Ab as di,Ba as X,Bb as C,Bd as li,D as A,Dd as pi,Ea as m,Fa as r,Hd as z,Jd as mi,Ka as Y,Kd as ui,Lb as H,Ma as J,Md as _i,Nb as u,Ob as M,Pa as E,Qa as T,Qb as si,R as k,Ra as D,S as Q,Sa as ii,T as g,Ua as y,Vd as vi,Wa as ti,Ya as B,Za as ei,_a as ci,aa as _,ab as d,bb as l,cb as j,da as R,gb as ni,ha as f,hb as oi,ia as N,j as x,ja as G,jb as v,lb as F,mb as P,nb as w,pa as K,pb as p,qa as W,qb as ri,rb as s,sb as h,ua as U,ub as O,va as $,vb as L,xa as S,xd as hi,ya as b,za as Z}from"./chunk-64NP6AY6.js";var Di=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Mi(a,c){a&1&&(d(0,"span",3),w(1,1),l())}function Ai(a,c){a&1&&(d(0,"span",6),w(1,2),l())}var Ri=["*"];var Ti=new _("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),bi=new _("MatChipAvatar"),yi=new _("MatChipTrailingIcon"),wi=new _("MatChipRemove"),xi=new _("MatChip"),Ci=(()=>{let c=class c{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,t){this._elementRef=i,this._parentChip=t,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};c.\u0275fac=function(t){return new(t||c)(r(S),r(xi))},c.\u0275dir=G({type:c,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(t,e){t&1&&v("click",function(n){return e._handleClick(n)})("keydown",function(n){return e._handleKeydown(n)}),t&2&&(D("tabindex",e._getTabindex())("disabled",e._getDisabledAttribute())("aria-disabled",e.disabled),y("mdc-evolution-chip__action--primary",e._isPrimary)("mdc-evolution-chip__action--presentational",!e.isInteractive)("mdc-evolution-chip__action--trailing",!e._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:M(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[E]});let a=c;return a})();var Bi=0,ji=(()=>{let c=class c{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,t,e,o,n,ki,Si,V){this._changeDetectorRef=i,this._elementRef=t,this._ngZone=e,this._focusMonitor=o,this._globalRippleOptions=Si,this._onFocus=new x,this._onBlur=new x,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${Bi++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new b,this.destroyed=new b,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=R(vi),this._injector=R($),this._document=n,this._animationsDisabled=ki==="NoopAnimations",V!=null&&(this.tabIndex=parseInt(V)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=A(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(t=>{let e=t._elementRef.nativeElement;return e===i||e.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let t=i!==null;t!==this._hasFocusInternal&&(this._hasFocusInternal=t,t?this._onFocus.next({chip:this}):J(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};c.\u0275fac=function(t){return new(t||c)(r(H),r(S),r(Y),r(li),r(si),r(X,8),r(ui,8),U("tabindex"))},c.\u0275cmp=f({type:c,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,o){if(t&1&&(p(o,bi,5),p(o,yi,5),p(o,wi,5),p(o,bi,5),p(o,yi,5),p(o,wi,5)),t&2){let n;s(n=h())&&(e.leadingIcon=n.first),s(n=h())&&(e.trailingIcon=n.first),s(n=h())&&(e.removeIcon=n.first),s(n=h())&&(e._allLeadingIcons=n),s(n=h())&&(e._allTrailingIcons=n),s(n=h())&&(e._allRemoveIcons=n)}},viewQuery:function(t,e){if(t&1&&ri(Ci,5),t&2){let o;s(o=h())&&(e.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&(oi("id",e.id),D("role",e.role)("tabindex",e._getTabIndex())("aria-label",e.ariaLabel),ti("mat-"+(e.color||"primary")),y("mdc-evolution-chip",!e._isBasicChip)("mdc-evolution-chip--disabled",e.disabled)("mdc-evolution-chip--with-trailing-action",e._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",e.leadingIcon)("mdc-evolution-chip--with-primary-icon",e.leadingIcon)("mdc-evolution-chip--with-avatar",e.leadingIcon)("mat-mdc-chip-with-avatar",e.leadingIcon)("mat-mdc-chip-highlighted",e.highlighted)("mat-mdc-chip-disabled",e.disabled)("mat-mdc-basic-chip",e._isBasicChip)("mat-mdc-standard-chip",!e._isBasicChip)("mat-mdc-chip-with-trailing-icon",e._hasTrailingIcon())("_mat-animation-noopable",e._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",u],highlighted:[2,"highlighted","highlighted",u],disableRipple:[2,"disableRipple","disableRipple",u],disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:M(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[di([{provide:xi,useExisting:c}]),E,C],ngContentSelectors:Fi,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(t,e){t&1&&(P(Di),j(0,"span",0),d(1,"span",1)(2,"span",2),T(3,Mi,2,0,"span",3),d(4,"span",4),w(5),j(6,"span",5),l()()(),T(7,Ai,2,0,"span",6)),t&2&&(m(2),ii("isInteractive",!1),m(),B(e.leadingIcon?3:-1),m(4),B(e._hasTrailingIcon()?7:-1))},dependencies:[Ci],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let a=c;return a})();var ut=(()=>{let c=class c{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,t,e){this._elementRef=i,this._changeDetectorRef=t,this._dir=e,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new x,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Z}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i{this.tabIndex=i,this._changeDetectorRef.markForCheck()})}}_getChipStream(i){return this._chips.changes.pipe(k(null),Q(()=>A(...this._chips.map(i))))}_originatesFromChip(i){let t=i.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-mdc-chip"))return!0;t=t.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(k(this._chips)).subscribe(i=>{let t=[];i.forEach(e=>e._getActions().forEach(o=>t.push(o))),this._chipActions.reset(t),this._chipActions.notifyOnChanges()}),this._keyManager=new hi(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(g(this._destroyed)).subscribe(({chip:i})=>{let t=i._getSourceAction(document.activeElement);t&&this._keyManager.updateActiveItem(t)}),this._dir?.change.pipe(g(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(k(null),g(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(g(this._destroyed)).subscribe(i=>{let e=this._chips.toArray().indexOf(i.chip);this._isValidIndex(e)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=e)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),t=this._chips.toArray()[i];t.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():t.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};c.\u0275fac=function(t){return new(t||c)(r(S),r(H),r(pi,8))},c.\u0275cmp=f({type:c,selectors:[["mat-chip-set"]],contentQueries:function(t,e,o){if(t&1&&p(o,ji,5),t&2){let n;s(n=h())&&(e._chips=n)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&D("role",e.role)},inputs:{disabled:[2,"disabled","disabled",u],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:M(i)]},standalone:!0,features:[E,C],ngContentSelectors:Ri,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,e){t&1&&(P(),d(0,"div",0),w(1),l())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let a=c;return a})();var _t=(()=>{let c=class c{};c.\u0275fac=function(t){return new(t||c)},c.\u0275mod=N({type:c}),c.\u0275inj=q({providers:[mi,{provide:Ti,useValue:{separatorKeyCodes:[13]}}],imports:[z,_i,z]});let a=c;return a})();function Pi(a,c){if(a&1){let I=ni();d(0,"mat-card",2),v("click",function(){let t=K(I).$implicit,e=F();return W(e.selectCard(t))}),d(1,"span",3),O(2),l()()}if(a&2){let I=c.$implicit,i=F();y("selected",i.activeCard===I),m(2),L(I)}}var It=(()=>{let c=class c{constructor(){this.options=[],this.selectedOption=new b,this.activeCard=null}selectCard(i){this.activeCard=this.activeCard===i?null:i,this.selectedOption.emit(this.activeCard)}};c.\u0275fac=function(t){return new(t||c)},c.\u0275cmp=f({type:c,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[C],decls:3,vars:0,consts:[[1,"cards-section"],[1,"ms-card","action-card",3,"selected"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(t,e){t&1&&(d(0,"div",0),ci(1,Pi,3,3,"mat-card",1,ei),l()),t&2&&(m(),ai(e.options))},dependencies:[fi,gi],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let a=c;return a})();export{ji as a,ut as b,_t as c,It as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-3WHPNAWZ.js b/frontend/server/modelsmith-build/browser/chunk-3WHPNAWZ.js new file mode 100644 index 00000000..c0f93101 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-3WHPNAWZ.js @@ -0,0 +1 @@ +import{$ as O,Bb as P,Dd as V,Ed as U,Fa as o,Ga as m,Lb as L,Nb as l,Ob as j,Pa as v,Qa as A,R as p,T as f,Z as M,aa as k,ha as R,hb as E,ia as S,j as x,ja as c,jb as D,mb as T,md as H,nb as F,oa as w,pb as y,pd as Q,qb as N,rb as h,s as b,sb as u,xa as g,xd as B,ya as _,za as I}from"./chunk-64NP6AY6.js";var K=["*"];function $(r,i){r&1&&F(0)}var W=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(o(g))},i.\u0275dir=c({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let r=i;return r})(),z=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(o(m))},i.\u0275dir=c({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let r=i;return r})(),J=0;var a={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},X=new k("STEPPER_GLOBAL_OPTIONS"),Y=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new _,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};i.\u0275fac=function(t){return new(t||i)(o(M(()=>C)),o(X,8))},i.\u0275cmp=R({type:i,selectors:[["cdk-step"]],contentQueries:function(t,s,n){if(t&1&&y(n,z,5),t&2){let d;h(d=u())&&(s.stepLabel=d.first)}},viewQuery:function(t,s){if(t&1&&N(m,7),t&2){let n;h(n=u())&&(s.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",l],optional:[2,"optional","optional",l],completed:[2,"completed","completed",l],hasError:[2,"hasError","hasError",l]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[v,w,P],ngContentSelectors:K,decls:1,vars:0,template:function(t,s){t&1&&(T(),A(0,$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=i;return r})(),C=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,s){this._dir=e,this._changeDetectorRef=t,this._elementRef=s,this._destroyed=new x,this.steps=new I,this._sortedHeaders=new I,this.linear=!1,this._selectedIndex=0,this.selectionChange=new _,this.selectedIndexChange=new _,this._orientation="horizontal",this._groupId=J++}ngAfterContentInit(){this._steps.changes.pipe(p(this._steps),f(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(p(this._stepHeader),f(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,s)=>t._elementRef.nativeElement.compareDocumentPosition(s._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:b()).pipe(p(this._layoutDirection()),f(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=a.NUMBER){let s=this.steps.toArray()[e],n=this._isCurrentStep(e);return s._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(s,n):this._getGuidelineLogic(s,n,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?a.ERROR:!e.completed||t?a.NUMBER:e.editable?a.EDIT:a.DONE}_getGuidelineLogic(e,t,s=a.NUMBER){return e._showError()&&e.hasError&&!t?a.ERROR:e.completed&&!t?a.DONE:e.completed&&t?s:e.editable&&t?a.EDIT:s}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Q(e),s=e.keyCode,n=this._keyManager;n.activeItemIndex!=null&&!t&&(s===32||s===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let s=t.stepControl;return(s?s.invalid||s.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=H();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{let i=class i{constructor(e){this._stepper=e,this.type="submit"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.next()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),Ee=(()=>{let i=class i{constructor(e){this._stepper=e,this.type="button"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.previous()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),De=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=S({type:i}),i.\u0275inj=O({imports:[U]});let r=i;return r})();export{W as a,z as b,X as c,Y as d,C as e,ve as f,Ee as g,De as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4KATODEP.js b/frontend/server/modelsmith-build/browser/chunk-4KATODEP.js new file mode 100644 index 00000000..faaf5d08 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-4KATODEP.js @@ -0,0 +1 @@ +import{a as Q}from"./chunk-CIO4ZYDC.js";import{a as u}from"./chunk-Q3ONM42N.js";import{i as Y}from"./chunk-OVEUDHWN.js";import"./chunk-OA3ZLQZZ.js";import{a as x}from"./chunk-6VRVKV6C.js";import{a as V,h as k,i as W,j as q,k as X}from"./chunk-OFW2ET2O.js";import{$ as d,Ea as c,Fa as m,Fe as K,Ja as _,Na as b,Sa as g,Yd as L,_b as N,_d as C,ab as o,ad as y,bb as r,be as A,cb as p,ce as F,ha as w,he as z,ia as h,ja as S,jb as E,je as R,me as D,oe as T,p as I,pc as O,pe as j,qe as H,re as G,ub as s,ue as U,we as B,xa as P,ye as J}from"./chunk-64NP6AY6.js";var Z=(()=>{let t=class t{constructor(e,i,f){this.el=e,this.renderer=i,this.viewContainer=f,this.isHidden=!0}ngOnInit(){let e=this.el.nativeElement,i=this.createIcon();this.setupIconInContainer(e,i),i.location.nativeElement.addEventListener("click",()=>{this.toggleVisibility(e,i.instance)})}createIcon(){let e=this.viewContainer.createComponent(B);return e.instance.fontIcon=this.isHidden?"visibility_off":"visibility",e}setupIconInContainer(e,i){let f=this.renderer.createElement("div");this.renderer.addClass(f,t.CLASS_ICON_SUFFIX),this.renderer.setStyle(i.location.nativeElement,"padding","0"),this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),this.renderer.appendChild(f,i.location.nativeElement),this.renderer.appendChild(e?.parentElement?.parentElement,f)}toggleVisibility(e,i){this.isHidden=!this.isHidden,this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),i.fontIcon=this.isHidden?"visibility_off":"visibility"}};t.CLASS_ICON_SUFFIX="mat-mdc-form-field-icon-suffix",t.\u0275fac=function(i){return new(i||t)(m(P),m(_),m(b))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,M=(a=class{constructor(t,l){this.fb=t,this.authFacadeService=l,this.CONTROL_NAMES={EMAIL:"email",PASSWORD:"password"}}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({[this.CONTROL_NAMES.EMAIL]:["alexander@cisco.com",[C.email,C.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[C.required]]})}get emailControl(){return this.form.get(this.CONTROL_NAMES.EMAIL)}get passwordControl(){return this.form.get(this.CONTROL_NAMES.PASSWORD)}login(){let t=this.form.getRawValue();this.authFacadeService.dispatch(J.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(T),m(K))},a.\u0275cmp=w({type:a,selectors:[["ms-login"]],decls:24,vars:4,consts:[[1,"login-container"],[1,"logo-section"],["src","/assets/logo/login-logo.svg","alt","ModelSmith Logo"],[1,"login-title"],[1,"login-subtitle"],[1,"login-section"],[3,"submit","formGroup"],[1,"form-field-container","ms-white-form-field"],["matInput","","msErrorDisplay","","autocomplete","current-password",3,"formControlName"],["msPasswordToggle","","msErrorDisplay","","matInput","","autocomplete","current-password",3,"formControlName"],[1,"mt-[2px]"],["type","submit","mat-raised-button","","color","primary",1,"w-full",3,"disabled"],["styleMode","fullWidth"]],template:function(l,e){l&1&&(o(0,"ms-background-gradient")(1,"div",0)(2,"div",1),p(3,"img",2),o(4,"div",3),s(5,"ModelSmith"),r(),o(6,"div",4),s(7,"A super cool compression tool"),r()(),o(8,"div",5)(9,"form",6),E("submit",function(){return e.login()}),o(10,"div",7)(11,"mat-label"),s(12," Email "),r(),o(13,"mat-form-field"),p(14,"input",8),r()(),o(15,"div",7)(16,"mat-label"),s(17," Password "),r(),o(18,"mat-form-field"),p(19,"input",9),r()(),o(20,"div",10)(21,"button",11),s(22," Login "),r()()()()(),p(23,"ms-footer",12),r()),l&2&&(c(9),g("formGroup",e.form),c(5),g("formControlName",e.CONTROL_NAMES.EMAIL),c(5),g("formControlName",e.CONTROL_NAMES.PASSWORD),c(2),g("disabled",e.form.invalid))},dependencies:[z,L,A,F,R,D,k,V,q,Z,Q,u,G,Y],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:95%;background:linear-gradient(to left,transparent,var(--backgrounds-50),transparent);padding:60px 30px;text-align:center}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:10px}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.359rem;font-weight:400;color:var(--login-title)}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-subtitle[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem;color:var(--foregrounds-550)}.login-container[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{margin-top:20px;width:100%;max-width:400px}"]}),a);M=I([x()],M);var et=[{path:"",pathMatch:"full",redirectTo:y.AUTH.LOGIN},{path:y.AUTH.LOGIN,component:M}],$=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[O.forChild(et),O]});let n=t;return n})();var Rt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[N,j,H,W,X,$,u,U]});let n=t;return n})();export{Rt as AuthModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-5RAWOV5Q.js b/frontend/server/modelsmith-build/browser/chunk-5RAWOV5Q.js new file mode 100644 index 00000000..535a5849 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-5RAWOV5Q.js @@ -0,0 +1 @@ +import{a as f}from"./chunk-W3BMP4QU.js";import{a as x,b}from"./chunk-GJTXMCBX.js";import{a as G}from"./chunk-CIO4ZYDC.js";import{a as u}from"./chunk-Q3ONM42N.js";import"./chunk-6NECGAK4.js";import{a as V,b as B}from"./chunk-JMFIGVCB.js";import"./chunk-OA3ZLQZZ.js";import{a as I}from"./chunk-W4S57J6B.js";import"./chunk-OFW2ET2O.js";import{$ as d,Ea as y,Fa as l,Fb as F,Fe as j,Gb as P,Xb as T,_b as D,ab as r,ad as C,bb as m,cb as a,gb as S,ha as w,ia as p,jb as g,lc as R,pa as M,pc as v,qa as h,qb as k,rb as E,re as A,sb as O,ub as c,ue as N,wb as _}from"./chunk-64NP6AY6.js";var U=["configureDefaultMode"],H=(()=>{let e=class e{constructor(i,t,s){this.authFacadeService=i,this.configsFacadeService=t,this.router=s}setModeAndNavigate(i){let t=this.defaultModeCheckbox.checked?i:void 0;this.configsFacadeService.dispatch(x.setDefaultMode({mode:t})),this.configsFacadeService.dispatch(x.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(b.EXPERT),this.router.navigate([C.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(b.GUIDED),this.router.navigate([C.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(j),l(I),l(R))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,s){if(t&1&&k(U,5),t&2){let n;E(n=O())&&(s.defaultModeCheckbox=n.first)}},decls:24,vars:3,consts:[["configureDefaultMode",""],[1,"mode-select-wrapper"],[1,"mode-select-warpper-content"],[1,"text"],[1,"paragraph-semibold-p1-xlarge-emphasis","block","text-white"],[1,"mode-select-buttons","mt-20"],[1,"nav-type-button"],["mat-stroked-button","",1,"ms-white-stroked-button",3,"click"],[1,"nav-type-button","mt-10"],[1,"mt-3","ml-[-8px]"],["color","primary","checked","",1,"ms-checkbox-white"],["styleMode","fullWidth"]],template:function(t,s){if(t&1){let n=S();r(0,"ms-background-gradient"),a(1,"ms-header"),r(2,"div",1),a(3,"div"),r(4,"div",2)(5,"div",3)(6,"span",4),c(7),F(8,"async"),m(),r(9,"span",4),c(10,"Welcome to ModelSmith. Please select a mode to start:"),m(),r(11,"div",5)(12,"div",6)(13,"button",7),g("click",function(){return M(n),h(s.goToExpertMode())}),c(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),g("click",function(){return M(n),h(s.goToGuidedMode())}),c(17,"Guided Mode"),m()(),r(18,"div",9)(19,"mat-checkbox",10,0),c(21,"Remember my choice for the future "),m()()()()(),a(22,"div"),m(),a(23,"ms-footer",11),m()}if(t&2){let n;y(7),_("Hello ",(n=P(8,1,s.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[G,u,f,V,A,T],styles:[".mode-select-wrapper[_ngcontent-%COMP%]{margin-left:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%]{margin-top:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%] .mode-select-buttons[_ngcontent-%COMP%] .nav-type-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:400px}"]});let o=e;return o})();var q=[{path:"",component:H}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[v.forChild(q),v]});let o=e;return o})();var Ce=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,D,u,f,B,N]});let o=e;return o})();export{Ce as ModeSelectModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-64NP6AY6.js b/frontend/server/modelsmith-build/browser/chunk-64NP6AY6.js new file mode 100644 index 00000000..1fea2929 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-64NP6AY6.js @@ -0,0 +1,11 @@ +var z0=Object.create;var pl=Object.defineProperty,G0=Object.defineProperties,W0=Object.getOwnPropertyDescriptor,q0=Object.getOwnPropertyDescriptors,Z0=Object.getOwnPropertyNames,Vs=Object.getOwnPropertySymbols,Y0=Object.getPrototypeOf,ml=Object.prototype.hasOwnProperty,jm=Object.prototype.propertyIsEnumerable;var Lm=(t,e,r)=>e in t?pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})ml.call(e,r)&&Lm(t,r,e[r]);if(Vs)for(var r of Vs(e))jm.call(e,r)&&Lm(t,r,e[r]);return t},O=(t,e)=>G0(t,q0(e));var Vm=(t,e)=>{var r={};for(var n in t)ml.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&jm.call(t,n)&&(r[n]=t[n]);return r};var xL=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var K0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z0(e))!ml.call(t,i)&&i!==r&&pl(t,i,{get:()=>e[i],enumerable:!(n=W0(e,i))||n.enumerable});return t};var ML=(t,e,r)=>(r=t!=null?z0(Y0(t)):{},K0(e||!t||!t.__esModule?pl(r,"default",{value:t,enumerable:!0}):r,t));var Vr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function Um(t,e){return Object.is(t,e)}var me=null,Xi=!1,Us=1,Ut=Symbol("SIGNAL");function $(t){let e=me;return me=t,e}function Bm(){return me}function Q0(){return Xi}var Ur={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function yl(t){if(Xi)throw new Error("");if(me===null)return;me.consumerOnSignalRead(t);let e=me.nextProducerIndex++;if(Ws(me),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Hs(t){Ws(t);for(let e=0;e0}function Ws(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function qm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Zm(t){return t.producerNode!==void 0}function Ym(t){let e=Object.create(J0);e.computation=t;let r=()=>{if($m(e),yl(e),e.value===Bs)throw e.error;return e.value};return r[Ut]=e,r}var gl=Symbol("UNSET"),vl=Symbol("COMPUTING"),Bs=Symbol("ERRORED"),J0=O(b({},Ur),{value:gl,dirty:!0,error:null,equal:Um,producerMustRecompute(t){return t.value===gl||t.value===vl},producerRecomputeValue(t){if(t.value===vl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=vl;let r=eo(t),n;try{n=t.computation()}catch(i){n=Bs,t.error=i}finally{$s(t,r)}if(e!==gl&&e!==Bs&&n!==Bs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function eI(){throw new Error}var Km=eI;function Qm(){Km()}function Xm(t){Km=t}var tI=null;function Jm(t){let e=Object.create(tg);e.value=t;let r=()=>(yl(e),e.value);return r[Ut]=e,r}function Dl(t,e){zm()||Qm(),t.equal(t.value,e)||(t.value=e,nI(t))}function eg(t,e){zm()||Qm(),Dl(t,e(t.value))}var tg=O(b({},Ur),{equal:Um,value:void 0});function nI(t){t.version++,X0(),Hm(t),tI?.()}function ng(t,e,r){let n=Object.create(rI);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(zs(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=bl)}let a=()=>{if(n.fn===null)return;if(Q0())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Hs(n))return;n.hasRun=!0;let c=eo(n);try{n.cleanupFn(),n.cleanupFn=bl,n.fn(i)}finally{$s(n,c)}};return n.ref={notify:()=>Gm(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Ut]:n},n.ref}var bl=()=>{},rI=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:bl});function T(t){return typeof t=="function"}function On(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qs=On(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function sr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ae=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(T(n))try{n()}catch(o){e=o instanceof qs?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{rg(o)}catch(s){e=e??[],s instanceof qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qs(e)}}add(e){var r;if(e&&e!==this)if(this.closed)rg(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&sr(r,e)}remove(e){let{_finalizers:r}=this;r&&sr(r,e),e instanceof t&&e._removeParent(this)}};ae.EMPTY=(()=>{let t=new ae;return t.closed=!0,t})();var _l=ae.EMPTY;function Zs(t){return t instanceof ae||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function rg(t){T(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Br={setTimeout(t,e,...r){let{delegate:n}=Br;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Br;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ys(t){Br.setTimeout(()=>{let{onUnhandledError:e}=St;if(e)e(t);else throw t})}function ln(){}var ig=wl("C",void 0,void 0);function og(t){return wl("E",void 0,t)}function sg(t){return wl("N",t,void 0)}function wl(t,e,r){return{kind:t,value:e,error:r}}var ar=null;function $r(t){if(St.useDeprecatedSynchronousErrorHandling){let e=!ar;if(e&&(ar={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=ar;if(ar=null,r)throw n}}else t()}function ag(t){St.useDeprecatedSynchronousErrorHandling&&ar&&(ar.errorThrown=!0,ar.error=t)}var cr=class extends ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Zs(e)&&e.add(this)):this.destination=sI}static create(e,r,n){return new Tt(e,r,n)}next(e){this.isStopped?Il(sg(e),this):this._next(e)}error(e){this.isStopped?Il(og(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Il(ig,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},iI=Function.prototype.bind;function El(t,e){return iI.call(t,e)}var Cl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Ks(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Ks(n)}else Ks(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Ks(r)}}},Tt=class extends cr{constructor(e,r,n){super();let i;if(T(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&St.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&El(e.next,o),error:e.error&&El(e.error,o),complete:e.complete&&El(e.complete,o)}):i=e}this.destination=new Cl(i)}};function Ks(t){St.useDeprecatedSynchronousErrorHandling?ag(t):Ys(t)}function oI(t){throw t}function Il(t,e){let{onStoppedNotification:r}=St;r&&Br.setTimeout(()=>r(t,e))}var sI={closed:!0,next:ln,error:oI,complete:ln};var Hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ce(t){return t}function xl(...t){return Ml(t)}function Ml(t){return t.length===0?Ce:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var N=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=cI(r)?r:new Tt(r,n,i);return $r(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=cg(n),new n((i,o)=>{let s=new Tt({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Hr](){return this}pipe(...r){return Ml(r)(this)}toPromise(r){return r=cg(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function cg(t){var e;return(e=t??St.Promise)!==null&&e!==void 0?e:Promise}function aI(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function cI(t){return t&&t instanceof cr||aI(t)&&Zs(t)}function Sl(t){return T(t?.lift)}function S(t){return e=>{if(Sl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(t,e,r,n,i){return new to(t,e,r,n,i)}var to=class extends cr{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function zr(){return S((t,e)=>{let r=null;t._refCount++;let n=M(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Gr=class extends N{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Sl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ae;let r=this.getSubject();e.add(this.source.subscribe(M(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ae.EMPTY)}return e}refCount(){return zr()(this)}};var ug=On(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Qs(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new ug}next(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?_l:(this.currentObservers=null,o.push(r),new ae(()=>{this.currentObservers=null,sr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new N;return r.source=this,r}}return t.create=(e,r)=>new Qs(e,r),t})(),Qs=class extends B{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:_l}};var de=class extends B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var no={now(){return(no.delegate||Date).now()},delegate:void 0};var ro=class extends B{constructor(e=1/0,r=1/0,n=no){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;slg(e)&&t()),e},clearImmediate(t){lg(t)}};var{setImmediate:lI,clearImmediate:dI}=dg,oo={setImmediate(...t){let{delegate:e}=oo;return(e?.setImmediate||lI)(...t)},clearImmediate(t){let{delegate:e}=oo;return(e?.clearImmediate||dI)(t)},delegate:void 0};var Js=class extends Fn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=oo.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:o}=e;r!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==r&&(oo.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Wr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Wr.now=no.now;var kn=class extends Wr{constructor(e,r=Wr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ea=class extends kn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,i){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw i}}};var fI=new ea(Js);var dn=new kn(Fn),fg=dn;var ta=class extends Fn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}schedule(e,r=0){return r>0?super.schedule(e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)}execute(e,r){return r>0||this.closed?super.execute(e,r):this._execute(e,r)}requestAsyncId(e,r,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(e,r,n):(e.flush(this),0)}};var na=class extends kn{};var Nl=new na(ta);var xe=new N(t=>t.complete());function ra(t){return t&&T(t.schedule)}function Rl(t){return t[t.length-1]}function qr(t){return T(Rl(t))?t.pop():void 0}function Bt(t){return ra(Rl(t))?t.pop():void 0}function hg(t,e){return typeof Rl(t)=="number"?t.pop():e}function SV(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function mg(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function pg(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ur(t){return this instanceof ur?(this.v=t,this):new ur(t)}function gg(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(m,_){o.push([f,h,m,_])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof ur?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function vg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof pg=="function"?pg(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var Zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function ia(t){return T(t?.then)}function oa(t){return T(t[Hr])}function sa(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function aa(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function hI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ca=hI();function ua(t){return T(t?.[ca])}function la(t){return gg(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield ur(r.read());if(i)return yield ur(void 0);yield yield ur(n)}}finally{r.releaseLock()}})}function da(t){return T(t?.getReader)}function V(t){if(t instanceof N)return t;if(t!=null){if(oa(t))return pI(t);if(Zr(t))return mI(t);if(ia(t))return gI(t);if(sa(t))return bg(t);if(ua(t))return vI(t);if(da(t))return bI(t)}throw aa(t)}function pI(t){return new N(e=>{let r=t[Hr]();if(T(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mI(t){return new N(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Ys)})}function vI(t){return new N(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function bg(t){return new N(e=>{yI(t,e).catch(r=>e.error(r))})}function bI(t){return bg(la(t))}function yI(t,e){var r,n,i,o;return mg(this,void 0,void 0,function*(){try{for(r=vg(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ne(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function lr(t,e=0){return S((r,n)=>{r.subscribe(M(n,i=>Ne(n,t,()=>n.next(i),e),()=>Ne(n,t,()=>n.complete(),e),i=>Ne(n,t,()=>n.error(i),e)))})}function fa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function yg(t,e){return V(t).pipe(fa(e),lr(e))}function Dg(t,e){return V(t).pipe(fa(e),lr(e))}function _g(t,e){return new N(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function wg(t,e){return new N(r=>{let n;return Ne(r,e,()=>{n=t[ca](),Ne(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>T(n?.return)&&n.return()})}function ha(t,e){if(!t)throw new Error("Iterable cannot be null");return new N(r=>{Ne(r,e,()=>{let n=t[Symbol.asyncIterator]();Ne(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Eg(t,e){return ha(la(t),e)}function Ig(t,e){if(t!=null){if(oa(t))return yg(t,e);if(Zr(t))return _g(t,e);if(ia(t))return Dg(t,e);if(sa(t))return ha(t,e);if(ua(t))return wg(t,e);if(da(t))return Eg(t,e)}throw aa(t)}function re(t,e){return e?Ig(t,e):V(t)}function x(...t){let e=Bt(t);return re(t,e)}function $t(t,e){let r=T(t)?t:()=>t,n=i=>i.error(r());return new N(e?i=>e.schedule(n,0,i):n)}var Pn=class t{constructor(e,r,n){this.kind=e,this.value=r,this.error=n,this.hasValue=e==="N"}observe(e){return Ol(this,e)}do(e,r,n){let{kind:i,value:o,error:s}=this;return i==="N"?e?.(o):i==="E"?r?.(s):n?.()}accept(e,r,n){var i;return T((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,r,n)}toObservable(){let{kind:e,value:r,error:n}=this,i=e==="N"?x(r):e==="E"?$t(()=>n):e==="C"?xe:0;if(!i)throw new TypeError(`Unexpected notification kind ${e}`);return i}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Pn.completeNotification=new Pn("C");function Ol(t,e){var r,n,i;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(r=e.next)===null||r===void 0||r.call(e,s):o==="E"?(n=e.error)===null||n===void 0||n.call(e,a):(i=e.complete)===null||i===void 0||i.call(e)}function Fl(t){return!!t&&(t instanceof N||T(t.lift)&&T(t.subscribe))}var At=On(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function DI(t,e){let r=typeof e=="object";return new Promise((n,i)=>{let o=new Tt({next:s=>{n(s),o.unsubscribe()},error:i,complete:()=>{r?n(e.defaultValue):i(new At)}});t.subscribe(o)})}function pa(t){return t instanceof Date&&!isNaN(t)}var _I=On(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function wI(t,e){let{first:r,each:n,with:i=EI,scheduler:o=e??dn,meta:s=null}=pa(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&n==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=m=>{l=Ne(c,o,()=>{try{u.unsubscribe(),V(i({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(_){c.error(_)}},m)};u=a.subscribe(M(c,m=>{l?.unsubscribe(),f++,c.next(d=m),n>0&&h(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&h(r!=null?typeof r=="number"?r:+r-o.now():n)})}function EI(t){throw new _I(t)}function C(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:II}=Array;function CI(t,e){return II(e)?t(...e):t(e)}function Yr(t){return C(e=>CI(t,e))}var{isArray:xI}=Array,{getPrototypeOf:MI,prototype:SI,keys:TI}=Object;function ma(t){if(t.length===1){let e=t[0];if(xI(e))return{args:e,keys:null};if(AI(e)){let r=TI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function AI(t){return t&&typeof t=="object"&&MI(t)===SI}function ga(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function dr(...t){let e=Bt(t),r=qr(t),{args:n,keys:i}=ma(t);if(n.length===0)return re([],e);let o=new N(NI(n,e,i?s=>ga(i,s):Ce));return r?o.pipe(Yr(r)):o}function NI(t,e,r=Ce){return n=>{Cg(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=re(t[c],e),l=!1;u.subscribe(M(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Cg(t,e,r){t?Ne(r,t,e):e()}function xg(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=_=>u{o&&e.next(_),u++;let w=!1;V(r(_,l++)).subscribe(M(e,E=>{i?.(E),o?h(E):e.next(E)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&um(E)):m(E)}f()}catch(E){e.error(E)}}))};return t.subscribe(M(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Q(t,e,r=1/0){return T(e)?Q((n,i)=>C((o,s)=>e(n,o,i,s))(V(t(n,i))),r):(typeof e=="number"&&(r=e),S((n,i)=>xg(n,i,t,r)))}function Ht(t=1/0){return Q(Ce,t)}function Mg(){return Ht(1)}function zt(...t){return Mg()(re(t,Bt(t)))}function so(t){return new N(e=>{V(t()).subscribe(e)})}function ao(...t){let e=qr(t),{args:r,keys:n}=ma(t),i=new N(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?ga(n,a):a),o.complete())}))}});return e?i.pipe(Yr(e)):i}var RI=["addListener","removeListener"],OI=["addEventListener","removeEventListener"],FI=["on","off"];function kl(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return kl(t,e,r).pipe(Yr(n));let[i,o]=LI(t)?OI.map(s=>a=>t[s](e,a,r)):kI(t)?RI.map(Sg(t,e)):PI(t)?FI.map(Sg(t,e)):[];if(!i&&Zr(t))return Q(s=>kl(s,e,r))(V(t));if(!i)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1o(a)})}function Sg(t,e){return r=>n=>t[r](e,n)}function kI(t){return T(t.addListener)&&T(t.removeListener)}function PI(t){return T(t.on)&&T(t.off)}function LI(t){return T(t.addEventListener)&&T(t.removeEventListener)}function co(t=0,e,r=fg){let n=-1;return e!=null&&(ra(e)?r=e:n=e),new N(i=>{let o=pa(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function va(...t){let e=Bt(t),r=hg(t,1/0),n=t;return n.length?n.length===1?V(n[0]):Ht(r)(re(n,e)):xe}function le(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Tg(t){return S((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let u=i;i=null,r.next(u)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(M(r,u=>{n=!0,i=u,o||V(t(u)).subscribe(o=M(r,a,c))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function jI(t,e=dn){return Tg(()=>co(t,e))}function Re(t){return S((e,r)=>{let n=null,i=!1,o;n=e.subscribe(M(r,void 0,void 0,s=>{o=V(t(s,Re(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Ag(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(M(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Gt(t,e){return T(e)?Q(t,e,1):Q(t,1)}function Kr(t,e=dn){return S((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Ln(t){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function ge(t){return t<=0?()=>xe:S((e,r)=>{let n=0;e.subscribe(M(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function uo(){return S((t,e)=>{t.subscribe(M(e,ln))})}function lo(t){return C(()=>t)}function Pl(t,e){return e?r=>zt(e.pipe(ge(1),uo()),r.pipe(Pl(t))):Q((r,n)=>V(t(r,n)).pipe(ge(1),lo(r)))}function Ng(t,e=dn){let r=co(t,e);return Pl(()=>r)}function Ll(){return S((t,e)=>{t.subscribe(M(e,r=>Ol(r,e)))})}function Qr(t,e=Ce){return t=t??VI,S((r,n)=>{let i,o=!0;r.subscribe(M(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function VI(t,e){return t===e}function ba(t=UI){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function UI(){return new At}function ya(t,e){return e?r=>r.pipe(ya((n,i)=>V(t(n,i)).pipe(C((o,s)=>e(n,o,i,s))))):S((r,n)=>{let i=0,o=null,s=!1;r.subscribe(M(n,a=>{o||(o=M(n,void 0,()=>{o=null,s&&n.complete()}),V(t(a,i++)).subscribe(o))},()=>{s=!0,!o&&n.complete()}))})}function ht(t){return S((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,ge(1),r?Ln(e):ba(()=>new At))}function Da(t,e,r,n){return S((i,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:n}=e;let a=new Map,c=m=>{a.forEach(m),m(o)},u=m=>c(_=>_.error(m)),l=0,d=!1,f=new to(o,m=>{try{let _=t(m),w=a.get(_);if(!w){a.set(_,w=n?n():new B);let E=h(_,w);if(o.next(E),r){let k=M(w,()=>{w.complete(),k?.unsubscribe()},void 0,void 0,()=>a.delete(_));f.add(V(r(E)).subscribe(k))}}w.next(s?s(m):m)}catch(_){u(_)}},()=>c(m=>m.complete()),u,()=>a.clear(),()=>(d=!0,l===0));i.subscribe(f);function h(m,_){let w=new N(E=>{l++;let k=_.subscribe(E);return()=>{k.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return w.key=m,w}})}function Xr(t){return t<=0?()=>xe:S((e,r)=>{let n=[];e.subscribe(M(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function jl(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,Xr(1),r?Ln(e):ba(()=>new At))}function Vl(){return S((t,e)=>{t.subscribe(M(e,r=>{e.next(Pn.createNext(r))},()=>{e.next(Pn.createComplete()),e.complete()},r=>{e.next(Pn.createError(r)),e.complete()}))})}function Ul(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return C(r=>{let n=r;for(let i=0;i=2,!0))}function ho(t={}){let{connector:e=()=>new B,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let _=s;h(),_?.unsubscribe()};return S((_,w)=>{u++,!d&&!l&&f();let E=c=c??e();w.add(()=>{u--,u===0&&!d&&!l&&(a=Bl(m,i))}),E.subscribe(w),!s&&u>0&&(s=new Tt({next:k=>E.next(k),error:k=>{d=!0,f(),a=Bl(h,r,k),E.error(k)},complete:()=>{l=!0,f(),a=Bl(h,n),E.complete()}}),V(_).subscribe(s))})(o)}}function Bl(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Tt({next:()=>{n.unsubscribe(),t()}});return V(e(...r)).subscribe(n)}function BI(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,ho({connector:()=>new ro(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Jr(t){return le((e,r)=>t<=r)}function po(...t){let e=Bt(t);return S((r,n)=>{(e?zt(t,r,e):zt(t,r)).subscribe(n)})}function Ve(t,e){return S((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(M(n,c=>{i?.unsubscribe();let u=0,l=o++;V(t(c,l)).subscribe(i=M(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function jn(t){return S((e,r)=>{V(t).subscribe(M(r,()=>r.complete(),ln)),!r.closed&&e.subscribe(r)})}function $I(t,e=!1){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function ee(t,e,r){let n=T(t)||e||r?{next:t,error:e,complete:r}:t;return n?S((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(M(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Ce}function mo(...t){let e=qr(t);return S((r,n)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ce))&&(s=null))},ln));r.subscribe(M(n,c=>{if(a){let u=[c,...o];n.next(e?e(...u):u)}}))})}var Cv="https://g.co/ng/security#xss",I=class extends Error{constructor(e,r){super(lc(e,r)),this.code=e}};function lc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function xo(t){return{toString:t}.toString()}var _a="__parameters__";function HI(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function wf(t,e,r){return xo(()=>{let n=HI(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(_a)?c[_a]:Object.defineProperty(c,_a,{value:[]})[_a];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ye=globalThis;function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function zI(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function $e(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function sd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var GI=ie({__forward_ref__:ie});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return $e(this())},t}function Ue(t){return xv(t)?t():t}function xv(t){return typeof t=="function"&&t.hasOwnProperty(GI)&&t.__forward_ref__===kt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function H(t){return{providers:t.providers||[],imports:t.imports||[]}}function dc(t){return Rg(t,Sv)||Rg(t,Tv)}function Mv(t){return dc(t)!==null}function Rg(t,e){return t.hasOwnProperty(e)?t[e]:null}function WI(t){let e=t&&(t[Sv]||t[Tv]);return e||null}function Og(t){return t&&(t.hasOwnProperty(Fg)||t.hasOwnProperty(qI))?t[Fg]:null}var Sv=ie({\u0275prov:ie}),Fg=ie({\u0275inj:ie}),Tv=ie({ngInjectableDef:ie}),qI=ie({ngInjectorDef:ie}),v=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Av(t){return t&&!!t.\u0275providers}var ZI=ie({\u0275cmp:ie}),YI=ie({\u0275dir:ie}),KI=ie({\u0275pipe:ie}),QI=ie({\u0275mod:ie}),Pa=ie({\u0275fac:ie}),go=ie({__NG_ELEMENT_ID__:ie}),kg=ie({__NG_ENV_ID__:ie});function fc(t){return typeof t=="string"?t:t==null?"":String(t)}function XI(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():fc(t)}function JI(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new I(-200,t)}function Ef(t,e){throw new I(-201,!1)}var U=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(U||{}),ad;function Nv(){return ad}function qe(t){let e=ad;return ad=t,e}function Rv(t,e,r){let n=dc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&U.Optional)return null;if(e!==void 0)return e;Ef(t,"Injector")}var eC={},vo=eC,cd="__NG_DI_FLAG__",La="ngTempTokenPath",tC="ngTokenPath",nC=/\n/gm,rC="\u0275",Pg="__source",ii;function iC(){return ii}function Vn(t){let e=ii;return ii=t,e}function oC(t,e=U.Default){if(ii===void 0)throw new I(-203,!1);return ii===null?Rv(t,void 0,e):ii.get(t,e&U.Optional?null:void 0,e)}function p(t,e=U.Default){return(Nv()||oC)(Ue(t),e)}function g(t,e=U.Default){return p(t,hc(e))}function hc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ud(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):$e(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(nC,` + `)}`}var Cf=If(wf("Inject",t=>({token:t})),-1),yi=If(wf("Optional"),8);var Mo=If(wf("SkipSelf"),4);function mr(t,e){let r=t.hasOwnProperty(Pa);return r?t[Pa]:null}function uC(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?xf(r,e):e(r))}function Ov(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ja(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dC(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function So(t,e,r){let n=To(t,e);return n>=0?t[n|1]=r:(n=~n,fC(t,n,e,r)),n}function $l(t,e){let r=To(t,e);if(r>=0)return t[r|1]}function To(t,e){return hC(t,e,1)}function hC(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Rt(n))return!1;s=!0}}}}return Rt(n)||s}function Rt(t){return(t&1)===0}function yC(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Rt(s)&&(e+=jg(o,i),i=""),n=s,o=o||!Rt(n);r++}return i!==""&&(e+=jg(o,i)),e}function CC(t){return t.map(IC).join(",")}function xC(t){let e=[],r=[],n=1,i=2;for(;n{let e=zv(t),r=O(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Pv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Zt.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Gv(r);let n=t.dependencies;return r.directiveDefs=Ug(n,!1),r.pipeDefs=Ug(n,!0),r.id=TC(r),r})}function MC(t){return $n(t)||Uv(t)}function SC(t){return t!==null}function z(t){return xo(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Vg(t,e){if(t==null)return si;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=Bn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==Bn.None?[n,a]:n,e[o]=s):r[o]=n}return r}function G(t){return xo(()=>{let e=zv(t);return Gv(e),e})}function pc(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $n(t){return t[ZI]||null}function Uv(t){return t[YI]||null}function Bv(t){return t[KI]||null}function $v(t){let e=$n(t)||Uv(t)||Bv(t);return e!==null?e.standalone:!1}function Hv(t,e){let r=t[QI]||null;if(!r&&e===!0)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return r}function zv(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||si,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Vg(t.inputs,e),outputs:Vg(t.outputs),debugInfo:null}}function Gv(t){t.features?.forEach(e=>e(t))}function Ug(t,e){if(!t)return null;let r=e?Bv:MC;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(SC)}function TC(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function vn(t){return{\u0275providers:t}}function AC(...t){return{\u0275providers:Wv(!0,t),\u0275fromNgModule:!0}}function Wv(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return xf(e,s=>{let a=s;dd(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&qv(i,o),r}function qv(t,e){for(let r=0;r{e(o,n)})}}function dd(t,e,r,n){if(t=Ue(t),!t)return!1;let i=null,o=Og(t),s=!o&&$n(t);if(!o&&!s){let c=t.ngModule;if(o=Og(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)dd(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{xf(o.imports,l=>{dd(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&qv(u,e)}if(!a){let u=mr(i)||(()=>new i);e({provide:i,useFactory:u,deps:Oe},i),e({provide:kv,useValue:i,multi:!0},i),e({provide:fn,useValue:()=>p(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;Sf(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Sf(t,e){for(let r of t)Av(r)&&(r=r.\u0275providers),Array.isArray(r)?Sf(r,e):e(r)}var NC=ie({provide:String,useValue:ie});function Zv(t){return t!==null&&typeof t=="object"&&NC in t}function RC(t){return!!(t&&t.useExisting)}function OC(t){return!!(t&&t.useFactory)}function ai(t){return typeof t=="function"}function FC(t){return!!t.useClass}var mc=new v(""),Ta={},kC={},Hl;function Tf(){return Hl===void 0&&(Hl=new Va),Hl}var Fe=class{},yo=class extends Fe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hd(e,s=>this.processProvider(s)),this.records.set(Fv,ei(void 0,this)),i.has("environment")&&this.records.set(Fe,ei(void 0,this));let o=this.records.get(mc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(kv,Oe,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=$(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),$(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Vn(this),n=qe(void 0),i;try{return e()}finally{Vn(r),qe(n)}}get(e,r=vo,n=U.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(kg))return e[kg](this);n=hc(n);let i,o=Vn(this),s=qe(void 0);try{if(!(n&U.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=UC(e)&&dc(e);u&&this.injectableDefInScope(u)?c=ei(fd(e),Ta):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&U.Self?Tf():this.parent;return r=n&U.Optional&&r===vo?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift($e(e)),o)throw a;return aC(a,e,"R3InjectorError",this.source)}else throw a}finally{qe(s),Vn(o)}}resolveInjectorInitializers(){let e=$(null),r=Vn(this),n=qe(void 0),i;try{let o=this.get(fn,Oe,U.Self);for(let s of o)s()}finally{Vn(r),qe(n),$(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push($e(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(e){e=Ue(e);let r=ai(e)?e:Ue(e&&e.provide),n=LC(e);if(!ai(e)&&e.multi===!0){let i=this.records.get(r);i||(i=ei(void 0,Ta,!0),i.factory=()=>ud(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=$(null);try{return r.value===Ta&&(r.value=kC,r.value=r.factory()),typeof r.value=="object"&&r.value&&VC(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{$(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ue(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function fd(t){let e=dc(t),r=e!==null?e.factory:mr(t);if(r!==null)return r;if(t instanceof v)throw new I(204,!1);if(t instanceof Function)return PC(t);throw new I(204,!1)}function PC(t){if(t.length>0)throw new I(204,!1);let r=WI(t);return r!==null?()=>r.factory(t):()=>new t}function LC(t){if(Zv(t))return ei(void 0,t.useValue);{let e=Yv(t);return ei(e,Ta)}}function Yv(t,e,r){let n;if(ai(t)){let i=Ue(t);return mr(i)||fd(i)}else if(Zv(t))n=()=>Ue(t.useValue);else if(OC(t))n=()=>t.useFactory(...ud(t.deps||[]));else if(RC(t))n=()=>p(Ue(t.useExisting));else{let i=Ue(t&&(t.useClass||t.provide));if(jC(t))n=()=>new i(...ud(t.deps));else return mr(i)||fd(i)}return n}function ei(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function jC(t){return!!t.deps}function VC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function UC(t){return typeof t=="function"||typeof t=="object"&&t instanceof v}function hd(t,e){for(let r of t)Array.isArray(r)?hd(r,e):r&&Av(r)?hd(r.\u0275providers,e):e(r)}function rt(t,e){t instanceof yo&&t.assertNotDestroyed();let r,n=Vn(t),i=qe(void 0);try{return e()}finally{Vn(n),qe(i)}}function Kv(){return Nv()!==void 0||iC()!=null}function Ao(t){if(!Kv())throw new I(-203,!1)}function BC(t){return typeof t=="function"}var Ze=0,A=1,F=2,Se=3,Ot=4,Ke=5,gt=6,Ua=7,De=8,ci=9,Yt=10,te=11,Do=12,Bg=13,Di=14,He=15,gr=16,ti=17,hn=18,No=19,Qv=20,Un=21,Aa=22,mt=23,oe=25,Af=1,_o=6,pn=7,Ba=8,ui=9,Me=10,$a=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}($a||{});function Ft(t){return Array.isArray(t)&&typeof t[Af]=="object"}function Xt(t){return Array.isArray(t)&&t[Af]===!0}function Nf(t){return(t.flags&4)!==0}function Ro(t){return t.componentOffset>-1}function gc(t){return(t.flags&1)===1}function mn(t){return!!t.template}function Ha(t){return(t[F]&512)!==0}var pd=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Xv(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function it(){return Jv}function Jv(t){return t.type.prototype.ngOnChanges&&(t.setInput=HC),$C}it.ngInherit=!0;function $C(){let t=tb(this),e=t?.current;if(e){let r=t.previous;if(r===si)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function HC(t,e,r,n,i){let o=this.declaredInputs[n],s=tb(t)||zC(t,{previous:si,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new pd(u&&u.currentValue,r,c===si),Xv(t,e,i,r)}var eb="__ngSimpleChanges__";function tb(t){return t[eb]||null}function zC(t,e){return t[eb]=e}var $g=null;var Wt=function(t,e,r){$g?.(t,e,r)},nb="svg",GC="math";function Ye(t){for(;Array.isArray(t);)t=t[Ze];return t}function WC(t){for(;Array.isArray(t);){if(typeof t[Af]=="object")return t;t=t[Ze]}return null}function rb(t,e){return Ye(e[t])}function ot(t,e){return Ye(e[t.index])}function Rf(t,e){return t.data[e]}function Of(t,e){return t[e]}function Kt(t,e){let r=e[t];return Ft(r)?r:r[Ze]}function qC(t){return(t[F]&4)===4}function Ff(t){return(t[F]&128)===128}function ZC(t){return Xt(t[Se])}function Hn(t,e){return e==null?null:t[e]}function ib(t){t[ti]=0}function ob(t){t[F]&1024||(t[F]|=1024,Ff(t)&&vc(t))}function YC(t,e){for(;t>0;)e=e[Di],t--;return e}function wo(t){return!!(t[F]&9216||t[mt]?.dirty)}function md(t){t[Yt].changeDetectionScheduler?.notify(7),t[F]&64&&(t[F]|=1024),wo(t)&&vc(t)}function vc(t){t[Yt].changeDetectionScheduler?.notify(0);let e=vr(t);for(;e!==null&&!(e[F]&8192||(e[F]|=8192,!Ff(e)));)e=vr(e)}function sb(t,e){if((t[F]&256)===256)throw new I(911,!1);t[Un]===null&&(t[Un]=[]),t[Un].push(e)}function KC(t,e){if(t[Un]===null)return;let r=t[Un].indexOf(e);r!==-1&&t[Un].splice(r,1)}function vr(t){let e=t[Se];return Xt(e)?e[Se]:e}var L={lFrame:mb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ab=!1;function QC(){return L.lFrame.elementDepthCount}function XC(){L.lFrame.elementDepthCount++}function JC(){L.lFrame.elementDepthCount--}function cb(){return L.bindingsEnabled}function _i(){return L.skipHydrationRootTNode!==null}function ex(t){return L.skipHydrationRootTNode===t}function tx(t){L.skipHydrationRootTNode=t}function nx(){L.skipHydrationRootTNode=null}function R(){return L.lFrame.lView}function ce(){return L.lFrame.tView}function Pz(t){return L.lFrame.contextLView=t,t[De]}function Lz(t){return L.lFrame.contextLView=null,t}function _e(){let t=ub();for(;t!==null&&t.type===64;)t=t.parent;return t}function ub(){return L.lFrame.currentTNode}function rx(){let t=L.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let r=L.lFrame;r.currentTNode=t,r.isParent=e}function kf(){return L.lFrame.isParent}function Pf(){L.lFrame.isParent=!1}function ix(){return L.lFrame.contextLView}function lb(){return ab}function Hg(t){ab=t}function Oo(){let t=L.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ox(t){return L.lFrame.bindingIndex=t}function Gn(){return L.lFrame.bindingIndex++}function db(t){let e=L.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function sx(){return L.lFrame.inI18n}function ax(t,e){let r=L.lFrame;r.bindingIndex=r.bindingRootIndex=t,gd(e)}function cx(){return L.lFrame.currentDirectiveIndex}function gd(t){L.lFrame.currentDirectiveIndex=t}function Lf(t){let e=L.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function fb(){return L.lFrame.currentQueryIndex}function jf(t){L.lFrame.currentQueryIndex=t}function ux(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Ke]:null}function hb(t,e,r){if(r&U.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&U.Host);)if(i=ux(o),i===null||(o=o[Di],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=L.lFrame=pb();return n.currentTNode=e,n.lView=t,!0}function Vf(t){let e=pb(),r=t[A];L.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function pb(){let t=L.lFrame,e=t===null?null:t.child;return e===null?mb(t):e}function mb(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function gb(){let t=L.lFrame;return L.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vb=gb;function Uf(){let t=gb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function lx(t){return(L.lFrame.contextLView=YC(t,L.lFrame.contextLView))[De]}function Wn(){return L.lFrame.selectedIndex}function br(t){L.lFrame.selectedIndex=t}function wi(){let t=L.lFrame;return Rf(t.tView,t.selectedIndex)}function jz(){L.lFrame.currentNamespace=nb}function Vz(){dx()}function dx(){L.lFrame.currentNamespace=null}function bb(){return L.lFrame.currentNamespace}var yb=!0;function bc(){return yb}function qn(t){yb=t}function fx(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Jv(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function yc(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[ti]+=65536),(a>14>16&&(t[F]&3)===e&&(t[F]+=16384,zg(a,o)):zg(a,o)}var oi=-1,yr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function px(t){return t instanceof yr}function mx(t){return(t.flags&8)!==0}function gx(t){return(t.flags&16)!==0}var Gl={},vd=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=hc(n);let i=this.injector.get(e,Gl,n);return i!==Gl||r===Gl?i:this.parentInjector.get(e,r,n)}};function _b(t){return t!==oi}function za(t){return t&32767}function vx(t){return t>>16}function Ga(t,e){let r=vx(t),n=e;for(;r>0;)n=n[Di],r--;return n}var bd=!0;function Wa(t){let e=bd;return bd=t,e}var bx=256,wb=bx-1,Eb=5,yx=0,qt={};function Dx(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(go)&&(n=r[go]),n==null&&(n=r[go]=yx++);let i=n&wb,o=1<>Eb)]|=o}function qa(t,e){let r=Ib(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,Wl(n.data,t),Wl(e,null),Wl(n.blueprint,null));let i=Bf(t,e),o=t.injectorIndex;if(_b(i)){let s=za(i),a=Ga(i,e),c=a[A].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function Wl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ib(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Bf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Tb(i),n===null)return oi;if(r++,i=i[Di],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return oi}function yd(t,e,r){Dx(t,e,r)}function _x(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h=c&&m.type===r)return h}if(i){let h=s[c];if(h&&mn(h)&&h.type===r)return c}return null}function Dr(t,e,r,n){let i=t[r],o=e.data;if(px(i)){let s=i;s.resolving&&JI(XI(o[r]));let a=Wa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?qe(s.injectImpl):null,l=hb(t,n,U.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&fx(r,o[r],e)}finally{u!==null&&qe(u),Wa(a),s.resolving=!1,vb()}}return i}function Ex(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(go)?t[go]:void 0;return typeof e=="number"?e>=0?e&wb:Ix:e}function Gg(t,e,r){let n=1<>Eb)]&n)}function Wg(t,e){return!(t&U.Self)&&!(t&U.Host&&e)}var pr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Mb(this._tNode,this._lView,e,hc(n),r)}};function Ix(){return new pr(_e(),R())}function Zn(t){return xo(()=>{let e=t.prototype.constructor,r=e[Pa]||Dd(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Pa]||Dd(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Dd(t){return xv(t)?()=>{let e=Dd(Ue(t));return e&&e()}:mr(t)}function Cx(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[F]&2048&&!(s[F]&512);){let a=Sb(o,s,r,n|U.Self,qt);if(a!==qt)return a;let c=o.parent;if(!c){let u=s[Qv];if(u){let l=u.get(r,qt,n);if(l!==qt)return l}c=Tb(s),s=s[Di]}o=c}return i}function Tb(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[Ke]:null}function Fo(t){return _x(_e(),t)}function qg(t,e=null,r=null,n){let i=Ab(t,e,r,n);return i.resolveInjectorInitializers(),i}function Ab(t,e=null,r=null,n,i=new Set){let o=[r||Oe,AC(t)];return n=n||(typeof t=="object"?void 0:$e(t)),new yo(o,e||Tf(),n||null,i)}var hr=class hr{static create(e,r){if(Array.isArray(e))return qg({name:""},r,e,"");{let n=e.name??"";return qg({name:n},e.parent,e.providers,n)}}};hr.THROW_IF_NOT_FOUND=vo,hr.NULL=new Va,hr.\u0275prov=D({token:hr,providedIn:"any",factory:()=>p(Fv)}),hr.__NG_ELEMENT_ID__=-1;var ke=hr;var xx=new v("");xx.__NG_ELEMENT_ID__=t=>{let e=_e();if(e===null)throw new I(204,!1);if(e.type&2)return e.value;if(t&U.Optional)return null;throw new I(204,!1)};var Mx="ngOriginalError";function ql(t){return t[Mx]}var Te=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&ql(e);for(;r&&ql(r);)r=ql(r);return r||null}},Nb=new v("",{providedIn:"root",factory:()=>g(Te).handleError.bind(void 0)}),Cr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Sx,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),_d=class extends Cr{constructor(e){super(),this._lView=e}onDestroy(e){return sb(this._lView,e),()=>KC(this._lView,e)}};function Sx(){return new _d(R())}function Tx(){return Ei(_e(),R())}function Ei(t,e){return new ne(ot(t,e))}var ne=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Tx;let t=e;return t})();function Ax(t){return t instanceof ne?t.nativeElement:t}var Jt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new de(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var wd=class extends B{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Kv()&&(this.destroyRef=g(Cr,{optional:!0})??void 0,this.pendingTasks=g(Jt,{optional:!0})??void 0)}emit(e){let r=$(null);try{super.next(e)}finally{$(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ae&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},X=wd;function Nx(){return this._results[Symbol.iterator]()}var li=class t{get changes(){return this._changes??=new X}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Nx)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=lC(e);(this._changesDetected=!uC(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Rx="ngSkipHydration",Ox="ngskiphydration";function Rb(t){let e=t.mergedAttrs;if(e===null)return!1;for(let r=0;r=0){let a=Ye(o[s]),c=Zg(o,s,a);pt(a,c),e=c;break}}}}return e||null}function Zg(t,e,r){return new Ed(t[No],e,r)}var Id="__ngContext__";function pt(t,e){Ft(e)?(t[Id]=e[No],Lx(e)):t[Id]=e}function Zl(t){let e=t[Id];return typeof e=="number"?Fb(e):e||null}function kb(t){return t&&t.constructor&&t.constructor.\u0275cmp}function Vx(t){return t&&t.constructor&&t.constructor.\u0275dir}function Yg(t,e){let r=t[A];for(let n=oe;nzx}),zx="ng",Hf=new v(""),Qe=new v("",{providedIn:"platform",factory:()=>"unknown"});var Yn=new v(""),ko=new v("",{providedIn:"root",factory:()=>Dc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Gx(){let t=new Ii;return g(Qe)==="browser"&&(t.store=Wx(Dc(),g(xr))),t}var Ii=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,i){return this.store[n]!==void 0?this.store[n]:i}set(n,i){this.store[n]=i}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,i){this.onSerializeCallbacks[n]=i}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function Jx(t,e,r=!1){let n=t.getAttribute(Yl);if(n==null)return null;let[i,o]=n.split("|");if(n=r?o:i,!n)return null;let s=o?`|${o}`:"",a=r?i:s,c={};if(n!==""){let l=e.get(Ii,null,{optional:!0});l!==null&&(c=l.get(zb,[])[Number(n)])}let u={data:c,firstChild:t.firstChild??null};return r&&(u.firstChild=t,_c(u,0,t.nextSibling)),a?t.setAttribute(Yl,a):t.removeAttribute(Yl),u}function eM(){Gb=Jx}function Gf(t,e,r=!1){return Gb(t,e,r)}function tM(t){let e=t._lView;return e[A].type===2?null:(Ha(e)&&(e=e[oe]),e)}function nM(t){return t.textContent?.replace(/\s/gm,"")}function rM(t){let e=Dc(),r=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=nM(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,i=[];for(;n=r.nextNode();)i.push(n);for(let o of i)o.textContent==="ngetn"?o.replaceWith(e.createTextNode("")):o.remove()}function _c(t,e,r){t.segmentHeads??={},t.segmentHeads[e]=r}function Md(t,e){return t.segmentHeads?.[e]??null}function iM(t,e){let r=t.data,n=r[qx]?.[e]??null;return n===null&&r[zf]?.[e]&&(n=Wf(t,e)),n}function Wb(t,e){return t.data[zf]?.[e]??null}function Wf(t,e){let r=Wb(t,e)??[],n=0;for(let i of r)n+=i[Ya]*(i[$b]??1);return n}function oM(t){if(typeof t.disconnectedNodes>"u"){let e=t.data[Hb];t.disconnectedNodes=e?new Set(e):null}return t.disconnectedNodes}function wc(t,e){if(typeof t.disconnectedNodes>"u"){let r=t.data[Hb];t.disconnectedNodes=r?new Set(r):null}return!!oM(t)?.has(e)}var wa=new v(""),qb=!1,Zb=new v("",{providedIn:"root",factory:()=>qb});var Ea;function sM(){if(Ea===void 0&&(Ea=null,ye.trustedTypes))try{Ea=ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function Ec(t){return sM()?.createHTML(t)||t}var Ia;function aM(){if(Ia===void 0&&(Ia=null,ye.trustedTypes))try{Ia=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ia}function Kg(t){return aM()?.createScriptURL(t)||t}var gn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Cv})`}},Sd=class extends gn{getTypeName(){return"HTML"}},Td=class extends gn{getTypeName(){return"Style"}},Ad=class extends gn{getTypeName(){return"Script"}},Nd=class extends gn{getTypeName(){return"URL"}},Rd=class extends gn{getTypeName(){return"ResourceURL"}};function vt(t){return t instanceof gn?t.changingThisBreaksApplicationSecurity:t}function Kn(t,e){let r=cM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Cv})`)}return r===e}function cM(t){return t instanceof gn&&t.getTypeName()||null}function Yb(t){return new Sd(t)}function Kb(t){return new Td(t)}function Qb(t){return new Ad(t)}function Xb(t){return new Nd(t)}function Jb(t){return new Rd(t)}function uM(t){let e=new Fd(t);return lM()?new Od(e):e}var Od=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ec(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Fd=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Ec(e),r}};function lM(){try{return!!new window.DOMParser().parseFromString(Ec(""),"text/html")}catch{return!1}}var dM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ic(t){return t=String(t),t.match(dM)?t:"unsafe:"+t}function bn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Po(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ey=bn("area,br,col,hr,img,wbr"),ty=bn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ny=bn("rp,rt"),fM=Po(ny,ty),hM=Po(ty,bn("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")),pM=Po(ny,bn("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")),Qg=Po(ey,hM,pM,fM),ry=bn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mM=bn("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"),gM=bn("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"),vM=Po(ry,mM,gM),bM=bn("script,style,template"),kd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=_M(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=DM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=Xg(e).toLowerCase();if(!Qg.hasOwnProperty(r))return this.sanitizedSomething=!0,!bM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=Xg(e).toLowerCase();Qg.hasOwnProperty(r)&&!ey.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Jg(e))}};function yM(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw iy(e);return e}function _M(t){let e=t.firstChild;if(e&&yM(t,e))throw iy(e);return e}function Xg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function iy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var wM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EM=/([^\#-~ |!])/g;function Jg(t){return t.replace(/&/g,"&").replace(wM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(EM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ca;function oy(t,e){let r=null;try{Ca=Ca||uM(t);let n=e?String(e):"";r=Ca.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ca.getInertBodyElement(n)}while(n!==o);let a=new kd().sanitizeChildren(ev(r)||r);return Ec(a)}finally{if(r){let n=ev(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ev(t){return"content"in t&&IM(t)?t.content:null}function IM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Pe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Pe||{});function CM(t){let e=ay();return e?e.sanitize(Pe.URL,t)||"":Kn(t,"URL")?vt(t):Ic(fc(t))}function xM(t){let e=ay();if(e)return Kg(e.sanitize(Pe.RESOURCE_URL,t)||"");if(Kn(t,"ResourceURL"))return Kg(vt(t));throw new I(904,!1)}function MM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?xM:CM}function sy(t,e,r){return MM(e,r)(t)}function ay(){let t=R();return t&&t[Yt].sanitizer}var SM=/^>|^->||--!>|)/g,AM="\u200B$1\u200B";function NM(t){return t.replace(SM,e=>e.replace(TM,AM))}function Bz(t){return t.ownerDocument.defaultView}function $z(t){return t.ownerDocument}function RM(t){return t.ownerDocument.body}function cy(t){return t instanceof Function?t():t}function ni(t){return(t??g(ke)).get(Qe)==="browser"}var Qt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Qt||{}),OM;function qf(t,e){return OM(t,e)}function ri(t,e,r,n,i){if(n!=null){let o,s=!1;Xt(n)?o=n:Ft(n)&&(s=!0,n=n[Ze]);let a=Ye(n);t===0&&r!==null?i==null?py(e,r,a):Ka(e,r,a,i||null,!0):t===1&&r!==null?Ka(e,r,a,i||null,!0):t===2?Qf(e,a,s):t===3&&e.destroyNode(a),o!=null&&qM(e,t,o,r,i)}}function uy(t,e){return t.createText(e)}function FM(t,e,r){t.setValue(e,r)}function ly(t,e){return t.createComment(NM(e))}function Zf(t,e,r){return t.createElement(e,r)}function kM(t,e){dy(t,e),e[Ze]=null,e[Ke]=null}function PM(t,e,r,n,i,o){n[Ze]=i,n[Ke]=e,Mc(t,n,r,1,i,o)}function dy(t,e){e[Yt].changeDetectionScheduler?.notify(8),Mc(t,e,e[te],2,null,null)}function LM(t){let e=t[Do];if(!e)return Kl(t[A],t);for(;e;){let r=null;if(Ft(e))r=e[Do];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[Ot]&&e!==t;)Ft(e)&&Kl(e[A],e),e=e[Se];e===null&&(e=t),Ft(e)&&Kl(e[A],e),r=e&&e[Ot]}e=r}}function jM(t,e,r,n){let i=Me+n,o=r.length;n>0&&(r[i-1][Ot]=e),n0&&(t[r-1][Ot]=n[Ot]);let o=ja(t,Me+e);kM(n[A],n);let s=o[hn];s!==null&&s.detachView(o[A]),n[Se]=null,n[Ot]=null,n[F]&=-129}return n}function Cc(t,e){if(!(e[F]&256)){let r=e[te];r.destroyNode&&Mc(t,e,r,3,null,null),LM(e)}}function Kl(t,e){if(e[F]&256)return;let r=$(null);try{e[F]&=-129,e[F]|=256,e[mt]&&zs(e[mt]),UM(t,e),VM(t,e),e[A].type===1&&e[te].destroy();let n=e[gr];if(n!==null&&Xt(e[Se])){n!==e[Se]&&Yf(n,e);let i=e[hn];i!==null&&i.detachView(t)}jx(e)}finally{$(r)}}function VM(t,e){let r=t.cleanup,n=e[Ua];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ua]=null);let i=e[Un];if(i!==null){e[Un]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Zt.None||o===Zt.Emulated)return null}return ot(n,r)}}function Ka(t,e,r,n,i){t.insertBefore(e,r,n,i)}function py(t,e,r){t.appendChild(e,r)}function tv(t,e,r,n,i){n!==null?Ka(t,e,r,n,i):py(t,e,r)}function $M(t,e,r,n){t.removeChild(e,r,n)}function Kf(t,e){return t.parentNode(e)}function HM(t,e){return t.nextSibling(e)}function my(t,e,r){return GM(t,e,r)}function zM(t,e,r){return t.type&40?ot(t,r):null}var GM=zM,nv;function xc(t,e,r,n){let i=hy(t,n,e),o=e[te],s=n.parent||e[Ke],a=my(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;coe&&_y(t,e,oe,!1),Wt(s?2:0,i),r(n,i)}finally{br(o),Wt(s?3:1,i)}}function Jf(t,e,r){if(Nf(e)){let n=$(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function tS(t){Ob(t)?vy(t):rM(t)}function nS(){xy=tS}function rS(t,e,r,n){let i=Ny(e);i.push(r),t.firstCreatePass&&Ry(t).push(n,i.length-1)}function iS(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return _i()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function rv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=Bn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?iv(n,r,u,a,c):iv(n,r,u,a)}return n}function iv(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function oS(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function lS(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ro(r)&&vS(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||qa(r,e),pt(n,e);let s=r.initialInputs;for(let a=i;a{vc(t.lView)},consumerOnSignalRead(){this.lView[mt]=this}});function NS(t){let e=t[mt]??Object.create(RS);return e.lView=t,e}var RS=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=vr(t.lView);for(;e&&!jy(e[A]);)e=vr(e);e&&ob(e)},consumerOnSignalRead(){this.lView[mt]=this}});function jy(t){return t.type!==2}var OS=100;function Vy(t,e=!0,r=0){let n=t[Yt],i=n.rendererFactory,o=!1;o||i.begin?.();try{FS(t,r)}catch(s){throw e&&Fy(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function FS(t,e){let r=lb();try{Hg(!0),Vd(t,e);let n=0;for(;wo(t);){if(n===OS)throw new I(103,!1);n++,Vd(t,1)}}finally{Hg(r)}}function kS(t,e,r,n){let i=e[F];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Yt].inlineEffectRunner?.flush(),Vf(e);let a=!0,c=null,u=null;o||(jy(t)?(u=MS(e),c=eo(u)):Bm()===null?(a=!1,u=NS(e),c=eo(u)):e[mt]&&(zs(e[mt]),e[mt]=null));try{ib(e),ox(t.bindingStartIndex),r!==null&&Iy(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let h=t.preOrderCheckHooks;h!==null&&Na(e,h,null)}else{let h=t.preOrderHooks;h!==null&&Ra(e,h,0,null),zl(e,0)}if(s||PS(e),Uy(e,0),t.contentQueries!==null&&Ay(t,e),!o)if(l){let h=t.contentCheckHooks;h!==null&&Na(e,h)}else{let h=t.contentHooks;h!==null&&Ra(e,h,1),zl(e,1)}KM(t,e);let d=t.components;d!==null&&$y(e,d,0);let f=t.viewQuery;if(f!==null&&jd(2,f,n),!o)if(l){let h=t.viewCheckHooks;h!==null&&Na(e,h)}else{let h=t.viewHooks;h!==null&&Ra(e,h,2),zl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Aa]){for(let h of e[Aa])h();e[Aa]=null}o||(e[F]&=-73)}catch(l){throw o||vc(e),l}finally{u!==null&&($s(u,c),a&&TS(u)),Uf()}}function Uy(t,e){for(let r=Pb(t);r!==null;r=Lb(r))for(let n=Me;n-1&&(Eo(e,n),ja(r,n))}this._attachedToViewContainer=!1}Cc(this._lView[A],this._lView)}onDestroy(e){sb(this._lView,e)}markForCheck(){sh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){md(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Vy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ha(this._lView),r=this._lView[gr];r!==null&&!e&&Yf(r,this._lView),dy(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let r=Ha(this._lView),n=this._lView[gr];n!==null&&!r&&fy(n,this._lView),md(this._lView)}},wr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=US;let t=e;return t})(),jS=wr,VS=class extends jS{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new _r(i)}};function US(){return Ac(_e(),R())}function Ac(t,e){return t.type&4?new VS(e,t,Ei(t,e)):null}var BS=new RegExp(`^(\\d+)*(${Bb}|${Ub})*(.*)`);function $S(t){let e=t.match(BS),[r,n,i,o]=e,s=n?parseInt(n,10):i,a=[];for(let[c,u,l]of o.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function HS(t){return!t.prev&&t.parent?.type===8}function Ql(t){return t.index-oe}function zS(t,e){let r=t.i18nNodes;if(r)return r.get(e)}function Nc(t,e,r,n){let i=Ql(n),o=zS(t,i);if(o===void 0){let s=t.data[Kx];if(s?.[i])o=WS(s[i],r);else if(e.firstChild===n)o=t.firstChild;else{let a=n.prev===null,c=n.prev??n.parent;if(HS(n)){let u=Ql(n.parent);o=Md(t,u)}else{let u=ot(c,r);if(a)o=u.firstChild;else{let l=Ql(c),d=Md(t,l);if(c.type===2&&d){let h=Wf(t,l)+1;o=Rc(h,d)}else o=u.nextSibling}}}}return o}function Rc(t,e){let r=e;for(let n=0;n0&&(o.firstChild=t,t=Rc(n[Ya],t)),r.push(o)}return[t,r]}var Gy=()=>null;function eT(t,e){let r=t[_o];return!e||r===null||r.length===0?null:r[0].data[Yx]===e?r.shift():(Hy(t),null)}function tT(){Gy=eT}function fi(t,e){return Gy(t,e)}var hi=class{},Wy=new v("",{providedIn:"root",factory:()=>!1});var qy=new v(""),Ud=class{},Ja=class{};function nT(t){let e=Error(`No component factory found for ${$e(t)}.`);return e[rT]=t,e}var rT="ngComponent";var Bd=class{resolveComponentFactory(e){throw nT(e)}},Ih=class Ih{};Ih.NULL=new Bd;var pi=Ih,mi=class{},en=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>iT();let t=e;return t})();function iT(){let t=R(),e=_e(),r=Kt(e.index,t);return(Ft(r)?r:t)[te]}var oT=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var ov=new Set;function yt(t){ov.has(t)||(ov.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Zy(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ye.requestAnimationFrame=="function"&&ye.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function sv(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function av(...t){}var P=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,cT(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,sT,av,av);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},sT={};function ah(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function aT(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Zy(()=>{t.callbackScheduled=!1,$d(t),t.isCheckStableRunning=!0,ah(t),t.isCheckStableRunning=!1})}),$d(t))}function cT(t){let e=()=>{aT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(uT(a))return r.invokeTask(i,o,s,a);try{return cv(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),uv(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return cv(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!lT(a)&&e(),uv(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,$d(t),ah(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function $d(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function uv(t){t._nesting--,ah(t)}var Hd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function uT(t){return Yy(t,"__ignore_ng_zone__")}function lT(t){return Yy(t,"__scheduler_tick__")}function Yy(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Be=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Be||{}),Ky={destroy(){}};function dT(t,e){!e&&Ao(dT);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterRender"),Qy(t,r,!1,e?.phase??Be.MixedReadWrite)):Ky}function Bo(t,e){!e&&Ao(Bo);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterNextRender"),Qy(t,r,!0,e?.phase??Be.MixedReadWrite)):Ky}function fT(t,e){if(t instanceof Function)switch(e){case Be.EarlyRead:return{earlyRead:t};case Be.Write:return{write:t};case Be.MixedReadWrite:return{mixedReadWrite:t};case Be.Read:return{read:t}}return t}function Qy(t,e,r,n){let i=fT(t,n),o=e.get(ch),s=o.handler??=new Gd,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(Cr).onDestroy(u),d=(f,h)=>{if(!h)return;let m=r?(...w)=>{u(),h(...w)}:h,_=rt(e,()=>new zd(f,a,m));s.register(_),c.push(_)};return d(Be.EarlyRead,i.earlyRead),d(Be.Write,i.write),d(Be.MixedReadWrite,i.mixedReadWrite),d(Be.Read,i.read),{destroy:u}}var zd=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=g(P),this.errorHandler=g(Te,{optional:!0}),g(hi,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},Gd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Be.EarlyRead]:new Set,[Be.Write]:new Set,[Be.MixedReadWrite]:new Set,[Be.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},ch=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ec(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&yy(t,r,o.join(" "))}}function yT(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=_T;let t=e;return t})();function _T(){let t=_e();return Jy(t,R())}var wT=yn,Xy=class extends wT{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Ei(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){let e=Bf(this._hostTNode,this._hostLView);if(_b(e)){let r=Ga(e,this._hostLView),n=za(e),i=r[A].data[n+8];return new pr(i,r)}else return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=dv(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=fi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!BC(e),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?e:new gi($n(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?u:this.parentInjector).get(Fe,null);_&&(o=_)}let l=$n(c.componentType??{}),d=fi(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,di(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(ZC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Se],u=new Xy(c,c[Ke],c[Se]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Uo(s,i,o,n),e.attachToViewContainerRef(),Ov(Xl(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=dv(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);n&&(ja(Xl(this._lContainer),r),Cc(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);return n&&ja(Xl(this._lContainer),r)!=null?new _r(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function dv(t){return t[Ba]}function Xl(t){return t[Ba]||(t[Ba]=[])}function Jy(t,e){let r,n=e[t.index];return Xt(n)?r=n:(r=Ty(n,e,null,t),e[t.index]=r,Tc(e,r)),eD(r,e,t,n),new Xy(r,t,e)}function ET(t,e){let r=t[te],n=r.createComment(""),i=ot(e,t),o=Kf(r,i);return Ka(r,o,n,HM(r,i),!1),n}var eD=tD,uh=()=>!1;function IT(t,e,r){return uh(t,e,r)}function tD(t,e,r,n){if(t[pn])return;let i;r.type&8?i=Ye(n):i=ET(e,r),t[pn]=i}function CT(t,e,r){if(t[pn]&&t[_o])return!0;let n=r[gt],i=e.index-oe;if(!n||Fx(e)||wc(n,i))return!1;let s=Md(n,i),a=n.data[zf]?.[i],[c,u]=JS(s,a);return t[pn]=c,t[_o]=u,!0}function xT(t,e,r,n){uh(t,r,e)||tD(t,e,r,n)}function MT(){eD=xT,uh=CT}var qd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Zd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=Me;de.trim())}function iD(t,e,r){t.queries===null&&(t.queries=new Yd),t.queries.track(new Kd(e,r))}function PT(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function lh(t,e){return t.queries.getByIndex(e)}function LT(t,e){let r=t[A],n=lh(r,e);return n.crossesNgTemplate?Qd(r,t,e,[]):nD(r,t,n,e)}function Oc(t){return typeof t=="function"&&t[Ut]!==void 0}function Dn(t,e){yt("NgSignals");let r=Jm(t),n=r[Ut];return e?.equal&&(n.equal=e.equal),r.set=i=>Dl(n,i),r.update=i=>eg(n,i),r.asReadonly=jT.bind(r),r}function jT(){let t=this[Ut];if(t.readonlyFn===void 0){let e=()=>this();e[Ut]=t,t.readonlyFn=e}return t.readonlyFn}function oD(t){return Oc(t)&&typeof t.set=="function"}function VT(t){return Object.getPrototypeOf(t.prototype).constructor}function be(t){let e=VT(t.type),r=!0,n=[t];for(;e;){let i;if(mn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=xa(t.inputs),s.inputTransforms=xa(t.inputTransforms),s.declaredInputs=xa(t.declaredInputs),s.outputs=xa(t.outputs);let a=i.hostBindings;a&&zT(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&$T(t,c),u&&HT(t,u),UT(t,i),zI(t.outputs,i.outputs),mn(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=bo(i.hostAttrs,r=bo(r,i.hostAttrs))}}function xa(t){return t===si?{}:t===Oe?[]:t}function $T(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function HT(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function zT(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function st(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var zn=class{},Io=class{};var Xd=class extends zn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tc(this);let i=Hv(e);this._bootstrapComponents=cy(i.bootstrap),this._r3Injector=Ab(e,r,[{provide:zn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],$e(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Jd=class extends Io{constructor(e){super(),this.moduleType=e}create(e){return new Xd(this.moduleType,e,[])}};var rc=class extends zn{constructor(e){super(),this.componentFactoryResolver=new tc(this),this.instance=null;let r=new yo([...e.providers,{provide:zn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Tf(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fc(t,e,r=null){return new rc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function sD(t){return dh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function GT(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function QT(t){return(t&2)==2}function XT(t,e){return t&131071|e<<17}function ef(t){return t|2}function vi(t){return(t&131068)>>2}function Jl(t,e){return t&-131069|e<<2}function JT(t){return(t&1)===1}function tf(t){return t|1}function eA(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Er(s),c=vi(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||To(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=Er(t[a+1]);t[n+1]=Ma(f,a),f!==0&&(t[f+1]=Jl(t[f+1],n)),t[a+1]=XT(t[a+1],n)}else t[n+1]=Ma(a,0),a!==0&&(t[a+1]=Jl(t[a+1],n)),a=n;else t[n+1]=Ma(c,0),a===0?a=n:t[c+1]=Jl(t[c+1],n),c=n;u&&(t[n+1]=ef(t[n+1])),fv(t,l,n,!0),fv(t,l,n,!1),tA(e,l,t,n,o),s=Ma(a,c),o?e.classBindings=s:e.styleBindings=s}function tA(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&To(o,e)>=0&&(r[n+1]=tf(r[n+1]))}function fv(t,e,r,n){let i=t[r+1],o=e===null,s=n?Er(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];nA(c,e)&&(a=!0,t[s+1]=n?tf(u):ef(u)),s=n?Er(u):vi(u)}a&&(t[r+1]=n?ef(i):tf(i))}function nA(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?To(t,e)>=0:!1}var ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uD(t){return t.substring(ve.key,ve.keyEnd)}function rA(t){return t.substring(ve.value,ve.valueEnd)}function iA(t){return fD(t),lD(t,bi(t,0,ve.textEnd))}function lD(t,e){let r=ve.textEnd;return r===e?-1:(e=ve.keyEnd=sA(t,ve.key=e,r),bi(t,e,r))}function oA(t){return fD(t),dD(t,bi(t,0,ve.textEnd))}function dD(t,e){let r=ve.textEnd,n=ve.key=bi(t,e,r);return r===n?-1:(n=ve.keyEnd=aA(t,n,r),n=hv(t,n,r,58),n=ve.value=bi(t,n,r),n=ve.valueEnd=cA(t,n,r),hv(t,n,r,59))}function fD(t){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=t.length}function bi(t,e,r){for(;e32;)e++;return e}function aA(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function hv(t,e,r,n){return e=bi(t,e,r),e32&&(a=s),o=i,i=n,n=c&-33}return a}function pv(t,e,r,n){let i=-1,o=r;for(;o=0;r=dD(e,r))bD(t,uD(e),rA(e))}function Si(t){ph(mA,pD,t,!0)}function pD(t,e){for(let r=iA(e);r>=0;r=lD(e,r))So(t,uD(e),!0)}function mD(t,e,r,n){let i=R(),o=ce(),s=db(2);if(o.firstUpdatePass&&vD(o,t,s,n),e!==bt&&tt(i,s,e)){let a=o.data[Wn()];yD(o,a,i,i[te],t,i[s+1]=vA(e,r),n,s)}}function ph(t,e,r,n){let i=ce(),o=db(2);i.firstUpdatePass&&vD(i,null,o,n);let s=R();if(r!==bt&&tt(s,o,r)){let a=i.data[Wn()];if(DD(a,n)&&!gD(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=sd(c,r||"")),nf(i,a,s,r,n)}else gA(i,a,s,s[te],s[o+1],s[o+1]=pA(t,e,r),n,o)}}function gD(t,e){return e>=t.expandoStartIndex}function vD(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Wn()],s=gD(t,r);DD(o,n)&&e===null&&!s&&(e=!1),e=lA(i,o,e,n),eA(i,o,e,r,s,n)}}function lA(t,e,r,n){let i=Lf(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ed(null,t,e,r,n),r=Co(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ed(i,t,e,r,n),o===null){let c=dA(t,e,n);c!==void 0&&Array.isArray(c)&&(c=ed(null,t,e,c[1],n),c=Co(c,e.attrs,n),fA(t,e,n,c))}else o=hA(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function dA(t,e,r){let n=r?e.classBindings:e.styleBindings;if(vi(n)!==0)return t[Er(n)]}function fA(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Er(i)]=n}function hA(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===bt&&(f=d?Oe:void 0);let h=d?$l(f,n):l===n?f:void 0;if(u&&!oc(h)&&(h=$l(c,n)),oc(h)&&(a=h,s))return a;let m=t[i+1];i=s?Er(m):vi(m)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=$l(c,n))}return a}function oc(t){return t!==void 0}function vA(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=$e(vt(t)))),t}function DD(t,e){return(t.flags&(e?8:16))!==0}function Wz(t,e,r){let n=R(),i=hh(n,t,e,r);ph(So,pD,i,!0)}var rf=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function td(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function bA(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let u=t.at(o),l=e[o],d=td(o,u,o,l,r);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let f=t.at(s),h=e[c],m=td(s,f,c,h,r);if(m!==0){m<0&&t.updateValue(s,h),s--,c--;continue}let _=r(o,u),w=r(s,f),E=r(o,l);if(Object.is(E,w)){let k=r(c,h);Object.is(k,_)?(t.swap(o,s),t.updateValue(s,h),c--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new sc,i??=vv(t,o,s,r),of(t,n,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))n.set(_,t.detach(o)),s--;else{let k=t.create(o,e[o]);t.attach(o,k),o++,s++}}for(;o<=c;)gv(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=s;){let l=t.at(o),d=u.value,f=td(o,l,o,d,r);if(f!==0)f<0&&t.updateValue(o,d),o++,u=c.next();else{n??=new sc,i??=vv(t,o,s,r);let h=r(o,d);if(of(t,n,o,h))t.updateValue(o,d),o++,s++,u=c.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,u=c.next();else{let m=r(o,l);n.set(m,t.detach(o)),s--}}}for(;!u.done;)gv(t,n,r,t.length,u.value),u=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function of(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function gv(t,e,r,n,i){if(of(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function vv(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var sc=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function Pc(t,e){yt("NgControlFlow");let r=R(),n=Gn(),i=r[n]!==bt?r[n]:-1,o=i!==-1?ac(r,oe+i):void 0,s=0;if(tt(r,n,t)){let a=$(null);try{if(o!==void 0&&Py(o,s),t!==-1){let c=oe+t,u=ac(r,c),l=uf(r[A],c),d=fi(u,l.tView.ssrId),f=Vo(r,l,e,{dehydratedView:d});Uo(u,f,s,di(l,d))}}finally{$(a)}}else if(o!==void 0){let a=ky(o,s);a!==void 0&&(a[De]=e)}}var sf=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Me}};function qz(t,e){return e}var af=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Zz(t,e,r,n,i,o,s,a,c,u,l,d,f){yt("NgControlFlow");let h=R(),m=ce(),_=c!==void 0,w=R(),E=a?s.bind(w[He][De]):s,k=new af(_,E);w[oe+t]=k,ic(h,m,t+1,e,r,n,i,Hn(m.consts,o)),_&&ic(h,m,t+2,c,u,l,d,Hn(m.consts,f))}var cf=class extends rf{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Me}at(e){return this.getLView(e)[De].$implicit}attach(e,r){let n=r[gt];this.needsIndexUpdate||=e!==this.length,Uo(this.lContainer,r,e,di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,yA(this.lContainer,e)}create(e,r){let n=fi(this.lContainer,this.templateTNode.tView.ssrId),i=Vo(this.hostLView,this.templateTNode,new sf(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Cc(e[A],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[De].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(qn(!0),Zf(n,i,bb()));function wA(t,e,r,n,i,o){let s=e[gt],a=!s||_i()||$o(r)||wc(s,o);if(qn(a),a)return Zf(n,i,bb());let c=Nc(s,t,e,r);return Wb(s,o)&&_c(s,o,c.nextSibling),s&&(Rb(r)||Ob(c))&&Ro(r)&&(tx(r),vy(c)),c}function EA(){_D=wA}function IA(t,e,r,n,i){let o=e.consts,s=Hn(o,n),a=xi(e,t,8,"ng-container",s);s!==null&&ec(a,s,!0);let c=Hn(o,i);return rh(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function wD(t,e,r){let n=R(),i=ce(),o=t+oe,s=i.firstCreatePass?IA(o,i,n,e,r):i.data[o];Ir(s,!0);let a=ID(i,n,s,t);return n[o]=a,bc()&&xc(i,n,a,s),pt(a,n),gc(s)&&(eh(i,n,s),Jf(i,s,n)),r!=null&&th(n,s),wD}function ED(){let t=_e(),e=ce();return kf()?Pf():(t=t.parent,Ir(t,!1)),e.firstCreatePass&&(yc(e,t),Nf(t)&&e.queries.elementEnd(t)),ED}function CA(t,e,r){return wD(t,e,r),ED(),CA}var ID=(t,e,r,n)=>(qn(!0),ly(e[te],""));function xA(t,e,r,n){let i,o=e[gt],s=!o||_i()||$o(r);if(qn(s),s)return ly(e[te],"");let a=Nc(o,t,e,r),c=iM(o,n);return _c(o,n,a),i=Rc(c,a),i}function MA(){ID=xA}function Kz(){return R()}function mh(t,e,r){let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!0)}return mh}function SA(t,e,r){let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi(),a=Lf(o.data),c=Oy(a,s,n);jo(o,s,n,t,e,c,r,!0)}return SA}var fr=void 0;function TA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var AA=["en",[["a","p"],["AM","PM"],fr],[["AM","PM"],fr,fr],[["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"]],fr,[["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"]],fr,[["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}",fr,"{1} 'at' {0}",fr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",TA],nd={};function Dt(t){let e=NA(t),r=bv(e);if(r)return r;let n=e.split("-")[0];if(r=bv(n),r)return r;if(n==="en")return AA;throw new I(701,!1)}function bv(t){return t in nd||(nd[t]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[t]),nd[t]}var fe=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(fe||{});function NA(t){return t.toLowerCase().replace(/_/g,"-")}var cc="en-US";var RA=cc;function OA(t){typeof t=="string"&&(RA=t.toLowerCase().replace(/_/g,"-"))}var FA=(t,e,r)=>{};function En(t,e,r,n){let i=R(),o=ce(),s=_e();return gh(o,i,i[te],s,t,e,n),En}function kA(t,e){let r=_e(),n=R(),i=ce(),o=Lf(i.data),s=Oy(o,r,n);return gh(i,n,s,r,t,e),kA}function PA(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function gh(t,e,r,n,i,o,s){let a=gc(n),u=t.firstCreatePass&&Ry(t),l=e[De],d=Ny(e),f=!0;if(n.type&3||s){let _=ot(n,e),w=s?s(_):_,E=d.length,k=s?Z=>s(Ye(Z[n.index])):n.index,q=null;if(!s&&a&&(q=PA(t,e,i,n.index)),q!==null){let Z=q.__ngLastListenerFn__||q;Z.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=Dv(n,e,l,o),FA(_,i,o);let Z=r.listen(w,i,o);d.push(o,Z),u&&u.push(i,k,E,E+1)}}else o=Dv(n,e,l,o);let h=n.outputs,m;if(f&&h!==null&&(m=h[i])){let _=m.length;if(_)for(let w=0;w<_;w+=2){let E=m[w],k=m[w+1],We=e[E][k].subscribe(o),pe=d.length;d.push(o,We),u&&u.push(i,n.index,pe,-(pe+1))}}}function yv(t,e,r,n){let i=$(null);try{return Wt(6,e,r),r(n)!==!1}catch(o){return Fy(t,o),!1}finally{Wt(7,e,r),$(i)}}function Dv(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?Kt(t.index,e):e;sh(s,5);let a=yv(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=yv(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Lc(t=1){return lx(t)}function LA(t,e){let r=null,n=DC(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Qz(t){let e=ix();return Of(e,oe+t)}function vh(t,e=""){let r=R(),n=ce(),i=t+oe,o=n.firstCreatePass?xi(n,i,1,e,null):n.data[i],s=SD(n,r,o,e,t);r[i]=s,bc()&&xc(n,r,s,o),Ir(o,!1)}var SD=(t,e,r,n,i)=>(qn(!0),uy(e[te],n));function BA(t,e,r,n,i){let o=e[gt],s=!o||_i()||$o(r)||wc(o,i);return qn(s),s?uy(e[te],n):Nc(o,t,e,r)}function $A(){SD=BA}function HA(t){return Ho("",t,""),HA}function Ho(t,e,r){let n=R(),i=hh(n,t,e,r);return i!==bt&&wS(n,Wn(),i),Ho}function zA(t,e,r){oD(e)&&(e=e());let n=R(),i=Gn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!1)}return zA}function Xz(t,e){let r=oD(t);return r&&t.set(e),r}function GA(t,e){let r=R(),n=ce(),i=_e();return gh(n,r,r[te],i,t,e),GA}function WA(t,e,r){let n=ce();if(n.firstCreatePass){let i=mn(t);lf(r,n.data,n.blueprint,i,!0),lf(e,n.data,n.blueprint,i,!1)}}function lf(t,e,r,n,i){if(t=Ue(t),Array.isArray(t))for(let o=0;o>20;if(ai(t)||!t.multi){let h=new yr(u,i,y),m=id(c,e,i?l:l+f,d);m===-1?(yd(qa(a,s),o,c),rd(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[m]=h,s[m]=h)}else{let h=id(c,e,l+f,d),m=id(c,e,l,l+f),_=h>=0&&r[h],w=m>=0&&r[m];if(i&&!w||!i&&!_){yd(qa(a,s),o,c);let E=YA(i?ZA:qA,r.length,i,n,u);!i&&w&&(r[m].providerFactory=E),rd(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=TD(r[i?m:h],u,!i&&n);rd(o,t,h>-1?h:m,E)}!i&&n&&w&&r[m].componentProviders++}}}function rd(t,e,r,n){let i=ai(e),o=FC(e);if(i||o){let c=(o?Ue(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function TD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function id(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>WA(n,i?i(t):t,e)}}var KA=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Wv(!1,n.type),o=i.length>0?Fc([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(p(Fe))});let t=e;return t})();function at(t){yt("NgStandalone"),t.getStandaloneInjector=e=>e.get(KA).getOrCreateStandaloneInjector(t)}function Jz(t,e,r){let n=Oo()+t,i=R();return i[n]===bt?fh(i,n,r?e.call(r):e()):WT(i,n)}function e3(t,e,r,n){return ND(R(),Oo(),t,e,r,n)}function t3(t,e,r,n,i){return RD(R(),Oo(),t,e,r,n,i)}function AD(t,e){let r=t[e];return r===bt?void 0:r}function ND(t,e,r,n,i,o){let s=e+r;return tt(t,s,i)?fh(t,s+1,o?n.call(o,i):n(i)):AD(t,s+1)}function RD(t,e,r,n,i,o,s){let a=e+r;return qT(t,a,i,o)?fh(t,a+2,s?n.call(s,i,o):n(i,o)):AD(t,a+2)}function n3(t,e){let r=ce(),n,i=t+oe;r.firstCreatePass?(n=QA(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=mr(n.type,!0)),s,a=qe(y);try{let c=Wa(!1),u=o();return Wa(c),UA(r,R(),i,u),u}finally{qe(a)}}function QA(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function r3(t,e,r){let n=t+oe,i=R(),o=Of(i,n);return OD(i,n)?ND(i,Oo(),e,o.transform,r,o):o.transform(r)}function i3(t,e,r,n){let i=t+oe,o=R(),s=Of(o,i);return OD(o,i)?RD(o,Oo(),e,s.transform,r,n,s):s.transform(r,n)}function OD(t,e){return t[A].data[e].pure}function o3(t,e){return Ac(t,e)}var Uc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var bh=new v(""),zo=new v(""),Bc=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,yh||(XA(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(p(P),p($c),p(zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$c=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return yh?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function XA(t){yh=t}var yh;function Qn(t){return!!t&&typeof t.then=="function"}function Dh(t){return!!t&&typeof t.subscribe=="function"}var Hc=new v(""),FD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Hc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Qn(s))n.push(s);else if(Dh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mr=new v("");function JA(){Xm(()=>{throw new I(600,!1)})}function eN(t){return t.isBoundToModule}var tN=10;function nN(t,e,r){try{let n=r();return Qn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var nn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Nb),this.afterRenderEffectManager=g(ch),this.zonelessEnabled=g(Wy),this.externalTestViews=new Set,this.beforeRender=new B,this.afterTick=new B,this.componentTypes=[],this.components=[],this.isStable=g(Jt).hasPendingTasks.pipe(C(n=>!n)),this._injector=g(Fe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Ja;if(!this._injector.get(FD).done){let h=!o&&$v(n),m=!1;throw new I(405,m)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=eN(a)?void 0:this._injector.get(zn),u=i||a.selector,l=a.create(ke.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(bh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),od(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new I(101,!1);let i=$(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,$(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(mi,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;owo(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>wo(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;od(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Mr,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>od(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function od(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Sa;function zc(t){Sa??=new WeakMap;let e=Sa.get(t);if(e)return e;let r=t.isStable.pipe(Nt(n=>n)).toPromise().then(()=>{});return Sa.set(t,r),t.onDestroy(()=>Sa?.delete(t)),r}function rN(t,e,r,n){if(!r&&!wo(t))return;Vy(t,e,r&&!n?0:1)}var ff=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Gc=(()=>{let e=class e{compileModuleSync(n){return new Jd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Hv(n),s=cy(o.declarations).reduce((a,c)=>{let u=$n(c);return u&&a.push(new gi(u)),a},[]);return new ff(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iN=(()=>{let e=class e{constructor(){this.zone=g(P),this.changeDetectionScheduler=g(hi),this.applicationRef=g(nn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oN({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new P(aN()),[{provide:P,useFactory:t},{provide:fn,multi:!0,useFactory:()=>{let r=g(iN,{optional:!0});return()=>r.initialize()}},{provide:fn,multi:!0,useFactory:()=>{let r=g(cN);return()=>{r.initialize()}}},{provide:Nb,useFactory:sN},e===!0?{provide:qy,useValue:!0}:[]]}function sN(){let t=g(P),e=g(Te);return r=>t.runOutsideAngular(()=>e.handleError(r))}function aN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var cN=(()=>{let e=class e{constructor(){this.subscription=new ae,this.initialized=!1,this.zone=g(P),this.pendingTasks=g(Jt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{P.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var uN=(()=>{let e=class e{constructor(){this.appRef=g(nn),this.taskService=g(Jt),this.ngZone=g(P),this.zonelessEnabled=g(Wy),this.disableScheduling=g(qy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ae,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Hd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?sv:Zy;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&P.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lN(){return typeof $localize<"u"&&$localize.locale||cc}var Go=new v("",{providedIn:"root",factory:()=>g(Go,U.Optional|U.SkipSelf)||lN()});var kD=new v("");var ka=null;function dN(t=[],e){return ke.create({name:e,providers:[{provide:mc,useValue:"platform"},{provide:kD,useValue:new Set([()=>ka=null])},...t]})}function fN(t=[]){if(ka)return ka;let e=dN(t);return ka=e,JA(),hN(e),e}function hN(t){t.get(Hf,null)?.forEach(r=>r())}function _h(){return!1}var wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=pN;let t=e;return t})();function pN(t){return mN(_e(),R(),(t&16)===16)}function mN(t,e,r){if(Ro(t)&&!r){let n=Kt(t.index,e);return new _r(n,n)}else if(t.type&175){let n=e[He];return new _r(n,e)}return null}var hf=class{constructor(){}supports(e){return sD(e)}create(e){return new pf(e)}},gN=(t,e)=>e,pf=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||gN}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex<_v(n,i,o)?r:n,a=_v(s,i,o),c=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,s.previousIndex==null)i++;else{o||(o=[]);let u=a-i,l=c-i;if(u!=l){for(let f=0;f{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new mf(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}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(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new uc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new uc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},mf=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},gf=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},uc=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new gf,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function _v(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new yf(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},yf=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function wv(){return new wh([new hf])}var wh=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||wv()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:wv});let t=e;return t})();function Ev(){return new Wc([new vf])}var Wc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Ev()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Ev});let t=e;return t})();var PD=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(p(nn))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function LD(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=fN(n),o=[oN({}),{provide:hi,useExisting:uN},...r||[]],a=new rc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(P);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Te,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=i.get(kD);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),nN(u,c,()=>{let h=a.get(FD);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(Go,cc);OA(m||cc);let _=a.get(nn);return e!==void 0&&_.bootstrap(e),_})})})}catch(e){return Promise.reject(e)}}var jD=new v("");var Iv=!1;function vN(){Iv||(Iv=!0,eM(),EA(),$A(),MA(),KT(),MT(),tT(),nS())}function bN(t,e){return zc(t)}function VD(){return vn([{provide:wa,useFactory:()=>{let t=!0;return ni()&&(t=!!g(Ii,{optional:!0})?.get(zb,null)),t&&yt("NgHydration"),t}},{provide:fn,useValue:()=>{ZS(!1),ni()&&g(wa)&&(yN(),vN())},multi:!0},{provide:Zb,useFactory:()=>ni()&&g(wa)},{provide:Mr,useFactory:()=>{if(ni()&&g(wa)){let t=g(nn),e=g(ke);return()=>{bN(t,e).then(()=>{XS(t)})}}return()=>{}},multi:!0}])}function yN(){let t=Dc(),e;for(let r of t.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&r.textContent?.trim()===Xx){e=r;break}if(!e)throw new I(-507,!1)}function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Eh(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function rn(t,e){yt("NgSignals");let r=Ym(t);return e?.equal&&(r[Ut].equal=e.equal),r}function ct(t){let e=$(null);try{return t()}finally{$(e)}}var DN=new v("",{providedIn:"root",factory:()=>g(_N)}),_N=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new Df});let t=e;return t})(),Df=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(Jt),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},_f=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=ng(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Te,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function qc(t,e){yt("NgSignals"),!e?.injector&&Ao(qc);let r=e?.injector??g(ke),n=e?.manualCleanup!==!0?r.get(Cr):null,i=new _f(r.get(DN),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(wt,null,{optional:!0});return!o||!(o._lView[F]&8)?i.watcher.notify():(o._lView[Aa]??=[]).push(i.watcher.notify),i}function UD(t){let e=$n(t);if(!e)return null;let r=new gi(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var ZD=null;function on(){return ZD}function YD(t){ZD??=t}var nu=class{};var W=new v(""),kh=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(wN),providedIn:"platform"});let t=e;return t})(),KD=new v(""),wN=(()=>{let e=class e extends kh{constructor(){super(),this._doc=g(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return on().getBaseHref(this._doc)}onPopState(n){let i=on().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=on().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Ph(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function BD(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Cn(t){return t&&t[0]!=="?"?"?"+t:t}var Mn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(Lh),providedIn:"root"});let t=e;return t})(),QD=new v(""),Lh=(()=>{let e=class e extends Mn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ph(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Cn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(kh),p(QD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),XD=(()=>{let e=class e extends Mn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Ph(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Cn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(kh),p(QD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ai=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=CN(BD($D(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Cn(i))}normalize(n){return e.stripTrailingSlash(IN(this._basePath,$D(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Cn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Cn,e.joinWithSlash=Ph,e.stripTrailingSlash=BD,e.\u0275fac=function(i){return new(i||e)(p(Mn))},e.\u0275prov=D({token:e,factory:()=>EN(),providedIn:"root"});let t=e;return t})();function EN(){return new Ai(p(Mn))}function IN(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function $D(t){return t.replace(/\/index.html$/,"")}function CN(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ze=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ze||{}),se=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(se||{}),ut=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(ut||{}),Xn={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 xN(t){return Dt(t)[fe.LocaleId]}function MN(t,e,r){let n=Dt(t),i=[n[fe.DayPeriodsFormat],n[fe.DayPeriodsStandalone]],o=Et(i,e);return Et(o,r)}function SN(t,e,r){let n=Dt(t),i=[n[fe.DaysFormat],n[fe.DaysStandalone]],o=Et(i,e);return Et(o,r)}function TN(t,e,r){let n=Dt(t),i=[n[fe.MonthsFormat],n[fe.MonthsStandalone]],o=Et(i,e);return Et(o,r)}function AN(t,e){let n=Dt(t)[fe.Eras];return Et(n,e)}function Zc(t,e){let r=Dt(t);return Et(r[fe.DateFormat],e)}function Yc(t,e){let r=Dt(t);return Et(r[fe.TimeFormat],e)}function Kc(t,e){let n=Dt(t)[fe.DateTimeFormat];return Et(n,e)}function ou(t,e){let r=Dt(t),n=r[fe.NumberSymbols][e];if(typeof n>"u"){if(e===Xn.CurrencyDecimal)return r[fe.NumberSymbols][Xn.Decimal];if(e===Xn.CurrencyGroup)return r[fe.NumberSymbols][Xn.Group]}return n}function JD(t){if(!t[fe.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[fe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function NN(t){let e=Dt(t);return JD(e),(e[fe.ExtraData][2]||[]).map(n=>typeof n=="string"?Ch(n):[Ch(n[0]),Ch(n[1])])}function RN(t,e,r){let n=Dt(t);JD(n);let i=[n[fe.ExtraData][0],n[fe.ExtraData][1]],o=Et(i,e)||[];return Et(o,r)||[]}function Et(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Ch(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var ON=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},FN=/((?:[^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]*)/,xn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(xn||{}),K=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(K||{}),Y=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Y||{});function kN(t,e,r,n){let i=zN(t);e=In(r,e)||e;let s=[],a;for(;e;)if(a=FN.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=t_(n,c),i=HN(i,n,!0));let u="";return s.forEach(l=>{let d=BN(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ru(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function In(t,e){let r=xN(t);if(Qc[r]??={},Qc[r][e])return Qc[r][e];let n="";switch(e){case"shortDate":n=Zc(t,ut.Short);break;case"mediumDate":n=Zc(t,ut.Medium);break;case"longDate":n=Zc(t,ut.Long);break;case"fullDate":n=Zc(t,ut.Full);break;case"shortTime":n=Yc(t,ut.Short);break;case"mediumTime":n=Yc(t,ut.Medium);break;case"longTime":n=Yc(t,ut.Long);break;case"fullTime":n=Yc(t,ut.Full);break;case"short":let i=In(t,"shortTime"),o=In(t,"shortDate");n=Xc(Kc(t,ut.Short),[i,o]);break;case"medium":let s=In(t,"mediumTime"),a=In(t,"mediumDate");n=Xc(Kc(t,ut.Medium),[s,a]);break;case"long":let c=In(t,"longTime"),u=In(t,"longDate");n=Xc(Kc(t,ut.Long),[c,u]);break;case"full":let l=In(t,"fullTime"),d=In(t,"fullDate");n=Xc(Kc(t,ut.Full),[l,d]);break}return n&&(Qc[r][e]=n),n}function Xc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Pt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===K.Hours)a===0&&r===-12&&(a=12);else if(t===K.FractionalSeconds)return PN(a,e);let c=ou(s,Xn.MinusSign);return Pt(a,e,c,n,i)}}function LN(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ue(t,e,r=ze.Format,n=!1){return function(i,o){return jN(i,o,t,e,r,n)}}function jN(t,e,r,n,i,o){switch(r){case Y.Months:return TN(e,i,n)[t.getMonth()];case Y.Days:return SN(e,i,n)[t.getDay()];case Y.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=NN(e),l=RN(e,i,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,m]=f,_=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case xn.Short:return(i>=0?"+":"")+Pt(s,2,o)+Pt(Math.abs(i%60),2,o);case xn.ShortGMT:return"GMT"+(i>=0?"+":"")+Pt(s,1,o);case xn.Long:return"GMT"+(i>=0?"+":"")+Pt(s,2,o)+":"+Pt(Math.abs(i%60),2,o);case xn.Extended:return n===0?"Z":(i>=0?"+":"")+Pt(s,2,o)+":"+Pt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var VN=0,tu=4;function UN(t){let e=ru(t,VN,1).getDay();return ru(t,0,1+(e<=tu?tu:tu+7)-e)}function e_(t){let e=t.getDay(),r=e===0?-3:tu-e;return ru(t.getFullYear(),t.getMonth(),t.getDate()+r)}function xh(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=e_(r),s=UN(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Pt(i,t,ou(n,Xn.MinusSign))}}function eu(t,e=!1){return function(r,n){let o=e_(r).getFullYear();return Pt(o,t,ou(n,Xn.MinusSign),e)}}var Mh={};function BN(t){if(Mh[t])return Mh[t];let e;switch(t){case"G":case"GG":case"GGG":e=ue(Y.Eras,se.Abbreviated);break;case"GGGG":e=ue(Y.Eras,se.Wide);break;case"GGGGG":e=ue(Y.Eras,se.Narrow);break;case"y":e=he(K.FullYear,1,0,!1,!0);break;case"yy":e=he(K.FullYear,2,0,!0,!0);break;case"yyy":e=he(K.FullYear,3,0,!1,!0);break;case"yyyy":e=he(K.FullYear,4,0,!1,!0);break;case"Y":e=eu(1);break;case"YY":e=eu(2,!0);break;case"YYY":e=eu(3);break;case"YYYY":e=eu(4);break;case"M":case"L":e=he(K.Month,1,1);break;case"MM":case"LL":e=he(K.Month,2,1);break;case"MMM":e=ue(Y.Months,se.Abbreviated);break;case"MMMM":e=ue(Y.Months,se.Wide);break;case"MMMMM":e=ue(Y.Months,se.Narrow);break;case"LLL":e=ue(Y.Months,se.Abbreviated,ze.Standalone);break;case"LLLL":e=ue(Y.Months,se.Wide,ze.Standalone);break;case"LLLLL":e=ue(Y.Months,se.Narrow,ze.Standalone);break;case"w":e=xh(1);break;case"ww":e=xh(2);break;case"W":e=xh(1,!0);break;case"d":e=he(K.Date,1);break;case"dd":e=he(K.Date,2);break;case"c":case"cc":e=he(K.Day,1);break;case"ccc":e=ue(Y.Days,se.Abbreviated,ze.Standalone);break;case"cccc":e=ue(Y.Days,se.Wide,ze.Standalone);break;case"ccccc":e=ue(Y.Days,se.Narrow,ze.Standalone);break;case"cccccc":e=ue(Y.Days,se.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=ue(Y.Days,se.Abbreviated);break;case"EEEE":e=ue(Y.Days,se.Wide);break;case"EEEEE":e=ue(Y.Days,se.Narrow);break;case"EEEEEE":e=ue(Y.Days,se.Short);break;case"a":case"aa":case"aaa":e=ue(Y.DayPeriods,se.Abbreviated);break;case"aaaa":e=ue(Y.DayPeriods,se.Wide);break;case"aaaaa":e=ue(Y.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":e=ue(Y.DayPeriods,se.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=ue(Y.DayPeriods,se.Wide,ze.Standalone,!0);break;case"bbbbb":e=ue(Y.DayPeriods,se.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=ue(Y.DayPeriods,se.Abbreviated,ze.Format,!0);break;case"BBBB":e=ue(Y.DayPeriods,se.Wide,ze.Format,!0);break;case"BBBBB":e=ue(Y.DayPeriods,se.Narrow,ze.Format,!0);break;case"h":e=he(K.Hours,1,-12);break;case"hh":e=he(K.Hours,2,-12);break;case"H":e=he(K.Hours,1);break;case"HH":e=he(K.Hours,2);break;case"m":e=he(K.Minutes,1);break;case"mm":e=he(K.Minutes,2);break;case"s":e=he(K.Seconds,1);break;case"ss":e=he(K.Seconds,2);break;case"S":e=he(K.FractionalSeconds,1);break;case"SS":e=he(K.FractionalSeconds,2);break;case"SSS":e=he(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Jc(xn.Short);break;case"ZZZZZ":e=Jc(xn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Jc(xn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Jc(xn.Long);break;default:return null}return Mh[t]=e,e}function t_(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function $N(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function HN(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=t_(e,i);return $N(t,n*(o-i))}function zN(t){if(HD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return ru(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(ON))return GN(n)}let e=new Date(t);if(!HD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function GN(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function HD(t){return t instanceof Date&&!isNaN(t.valueOf())}function su(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Sh=/\s+/,zD=[],C3=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=zD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Sh):zD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Sh):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(Sh).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(en))},e.\u0275dir=G({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Th=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},x3=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Th(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),GD(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);GD(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(yn),y(wr),y(wh))},e.\u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function GD(t,e){t.context.$implicit=e.item}var M3=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Ah,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){WD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){WD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(yn),y(wr))},e.\u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Ah=class{constructor(){this.$implicit=null,this.ngIf=null}};function WD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${$e(e)}'.`)}var S3=(()=>{let e=class e{constructor(n,i,o){this._ngEl=n,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:Qt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(Wc),y(en))},e.\u0275dir=G({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),T3=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(y(yn))},e.\u0275dir=G({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[it]});let t=e;return t})();function n_(t,e){return new I(2100,!1)}var Nh=class{createSubscription(e,r){return ct(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ct(()=>e.unsubscribe())}},Rh=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},WN=new Rh,qN=new Nh,A3=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Qn(n))return WN;if(Dh(n))return qN;throw n_(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(y(wt,16))},e.\u0275pipe=pc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var ZN="mediumDate",YN=new v(""),KN=new v(""),N3=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??ZN,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return kN(n,a,s||this.locale,c)}catch(a){throw n_(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(y(Go,16),y(YN,24),y(KN,24))},e.\u0275pipe=pc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function QN(t,e){return{key:t,value:e}}var R3=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=qD}transform(n,i=qD){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(QN(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(y(Wc,16))},e.\u0275pipe=pc({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function qD(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),jh="browser",XN="server";function Vh(t){return t===jh}function Wo(t){return t===XN}var i_=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Vh(g(Qe))?new Oh(g(W),window):new Fh});let t=e;return t})(),Oh=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=JN(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function JN(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var Fh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Ti=class{};var Zo=class{},uu=class{},an=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Bh=class{encodeKey(e){return s_(e)}encodeValue(e){return s_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function eR(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var tR=/%(\d[a-f0-9])/gi,nR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s_(t){return encodeURIComponent(t).replace(tR,(e,r)=>nR[r]??e)}function au(t){return`${t}`}var sn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Bh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=eR(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(au):[au(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(au(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(au(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var $h=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function rR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function a_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c_(t){return typeof Blob<"u"&&t instanceof Blob}function u_(t){return typeof FormData<"u"&&t instanceof FormData}function iR(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qo=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(rR(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new an,this.context??=new $h,!this.params)this.params=new sn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},er=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(er||{}),Yo=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new an,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},lu=class t extends Yo{constructor(e={}){super(e),this.type=er.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Sr=class t extends Yo{constructor(e={}){super(e),this.type=er.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Jn=class extends Yo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},__=200,oR=204;function Uh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Gh=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof qo)s=n;else{let u;o.headers instanceof an?u=o.headers:u=new an(o.headers);let l;o.params&&(o.params instanceof sn?l=o.params:l=new sn({fromObject:o.params})),s=new qo(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(Gt(u=>this.handler.handle(u)));if(n instanceof qo||o.observe==="events")return a;let c=a.pipe(le(u=>u instanceof Sr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(C(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(C(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new sn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Uh(o,i))}post(n,i,o={}){return this.request("POST",n,Uh(o,i))}put(n,i,o={}){return this.request("PUT",n,Uh(o,i))}};e.\u0275fac=function(i){return new(i||e)(p(Zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),sR=/^\)\]\}',?\n/,aR="X-Request-URL";function l_(t){if(t.url)return t.url;let e=aR.toLocaleLowerCase();return t.headers.get(e)}var cR=(()=>{let e=class e{constructor(){this.fetchImpl=g(Hh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(P)}handle(n){return new N(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(zh,s=>i.error(new Jn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Vr(this,null,function*(){let s=this.createRequestInit(n),a;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:i},s)));uR(m),o.next({type:er.Sent}),a=yield m}catch(m){o.error(new Jn({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let c=new an(a.headers),u=a.statusText,l=l_(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new lu({headers:c,status:d,statusText:u,url:l})),a.body){let m=a.headers.get("content-length"),_=[],w=a.body.getReader(),E=0,k,q,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Vr(this,null,function*(){for(;;){let{done:pe,value:ft}=yield w.read();if(pe)break;if(_.push(ft),E+=ft.length,n.reportProgress){q=n.responseType==="text"?(q??"")+(k??=new TextDecoder).decode(ft,{stream:!0}):void 0;let jr=()=>o.next({type:er.DownloadProgress,total:m?+m:void 0,loaded:E,partialText:q});Z?Z.run(jr):jr()}}}));let We=this.concatChunks(_,E);try{let pe=a.headers.get("Content-Type")??"";f=this.parseBody(n,We,pe)}catch(pe){o.error(new Jn({error:pe,headers:new an(a.headers),status:a.status,statusText:a.statusText,url:l_(a)??n.urlWithParams}));return}}d===0&&(d=f?__:0),d>=200&&d<300?(o.next(new Sr({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new Jn({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(sR,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Hh=class{};function zh(){}function uR(t){t.then(zh,zh)}function w_(t,e){return e(t)}function lR(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function dR(t,e,r){return(n,i)=>rt(r,()=>e(n,o=>t(o,i)))}var fR=new v(""),Wh=new v(""),E_=new v(""),I_=new v("",{providedIn:"root",factory:()=>!0});function hR(){let t=null;return(e,r)=>{t===null&&(t=(g(fR,{optional:!0})??[]).reduceRight(lR,w_));let n=g(Jt);if(g(I_)){let o=n.add();return t(e,r).pipe(ht(()=>n.remove(o)))}else return t(e,r)}}var d_=(()=>{let e=class e extends Zo{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Jt),this.contributeToStability=g(I_)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Wh),...this.injector.get(E_,[])]));this.chain=i.reduceRight((o,s)=>dR(o,s,this.injector),w_)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ht(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(p(uu),p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var pR=/^\)\]\}',?\n/;function mR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var f_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ve(()=>new N(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,E)=>a.setRequestHeader(w,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",E=new an(a.getAllResponseHeaders()),k=mR(a)||n.url;return u=new lu({headers:E,status:a.status,statusText:w,url:k}),u},d=()=>{let{headers:w,status:E,statusText:k,url:q}=l(),Z=null;E!==oR&&(Z=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=Z?__:0);let We=E>=200&&E<300;if(n.responseType==="json"&&typeof Z=="string"){let pe=Z;Z=Z.replace(pR,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ft){Z=pe,We&&(We=!1,Z={error:ft,text:Z})}}We?(s.next(new Sr({body:Z,headers:w,status:E,statusText:k,url:q||void 0})),s.complete()):s.error(new Jn({error:Z,headers:w,status:E,statusText:k,url:q||void 0}))},f=w=>{let{url:E}=l(),k=new Jn({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(k)},h=!1,m=w=>{h||(s.next(l()),h=!0);let E={type:er.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},_=w=>{let E={type:er.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",m),c!==null&&a.upload&&a.upload.addEventListener("progress",_)),a.send(c),s.next({type:er.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",m),c!==null&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(p(Ti))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),C_=new v(""),gR="XSRF-TOKEN",vR=new v("",{providedIn:"root",factory:()=>gR}),bR="X-XSRF-TOKEN",yR=new v("",{providedIn:"root",factory:()=>bR}),du=class{},DR=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=su(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(p(W),p(Qe),p(vR))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _R(t,e){let r=t.url.toLowerCase();if(!g(C_)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(du).getToken(),i=g(yR);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var x_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(x_||{});function wR(t,e){return{\u0275kind:t,\u0275providers:e}}function z3(...t){let e=[Gh,f_,d_,{provide:Zo,useExisting:d_},{provide:uu,useFactory:()=>g(cR,{optional:!0})??g(f_)},{provide:Wh,useValue:_R,multi:!0},{provide:C_,useValue:!0},{provide:du,useClass:DR}];for(let r of t)e.push(...r.\u0275providers);return vn(e)}var h_=new v("");function G3(){return wR(x_.LegacyInterceptors,[{provide:h_,useFactory:hR},{provide:Wh,useExisting:h_,multi:!0}])}var ER=new v(""),p_="b",m_="h",g_="s",v_="st",b_="u",y_="rt",cu=new v(""),IR=["GET","HEAD"];function CR(t,e){let h=g(cu),{isCacheActive:r}=h,n=Vm(h,["isCacheActive"]),{transferCache:i,method:o}=t;if(!r||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!IR.includes(o)||!n.includeRequestsWithAuthHeaders&&xR(t)||n.filter?.(t)===!1)return e(t);let s=g(Ii),a=g(ER,{optional:!0}),c=Wo(g(Qe));if(a&&!c)throw new I(2803,!1);let u=c&&a?AR(t.url,a):t.url,l=SR(t,u),d=s.get(l,null),f=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(f=i.includeHeaders),d){let{[p_]:m,[y_]:_,[m_]:w,[g_]:E,[v_]:k,[b_]:q}=d,Z=m;switch(_){case"arraybuffer":Z=new TextEncoder().encode(m).buffer;break;case"blob":Z=new Blob([m]);break}let We=new an(w);return x(new Sr({body:Z,headers:We,status:E,statusText:k,url:q}))}return e(t).pipe(ee(m=>{m instanceof Sr&&c&&s.set(l,{[p_]:m.body,[m_]:MR(m.headers,f),[g_]:m.status,[v_]:m.statusText,[b_]:u,[y_]:t.responseType})}))}function xR(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function MR(t,e){if(!e)return{};let r={};for(let n of e){let i=t.getAll(n);i!==null&&(r[n]=i)}return r}function D_(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function SR(t,e){let{params:r,method:n,responseType:i}=t,o=D_(r),s=t.serializeBody();s instanceof URLSearchParams?s=D_(s):typeof s!="string"&&(s="");let a=[n,i,e,s,o].join("|"),c=TR(a);return c}function TR(t){let e=0;for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function M_(t){return[{provide:cu,useFactory:()=>(yt("NgHttpTransferCache"),b({isCacheActive:!0},t))},{provide:E_,useValue:CR,multi:!0,deps:[Ii,cu]},{provide:Mr,multi:!0,useFactory:()=>{let e=g(nn),r=g(cu);return()=>{zc(e).then(()=>{r.isCacheActive=!1})}}}]}function AR(t,e){let r=new URL(t,"resolve://").origin,n=e[r];return n?t.replace(r,n):t}var Yh=class extends nu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kh=class t extends Yh{static makeCurrent(){YD(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=RR();return r==null?null:OR(r)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return su(document.cookie,e)}},Ko=null;function RR(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}function OR(t){return new URL(t,document.baseURI).pathname}var Qh=class{addToWindow(e){ye.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new I(5103,!1);return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ye.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?on().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},FR=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),fu=new v(""),N_=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(p(fu),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qo=class{constructor(e){this._doc=e}},qh="ng-app-id",R_=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${qh}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(qh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(qh,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(p(W),p(xr),p(ko,8),p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Zh={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"},ep=/%COMP%/g,O_="%COMP%",kR=`_nghost-${O_}`,PR=`_ngcontent-${O_}`,LR=!0,jR=new v("",{providedIn:"root",factory:()=>LR});function VR(t){return PR.replace(ep,t)}function UR(t){return kR.replace(ep,t)}function F_(t,e){return e.map(r=>r.replace(ep,t))}var S_=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Xo(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Zt.ShadowDom&&(i=O(b({},i),{encapsulation:Zt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof hu?o.applyToHost(n):o instanceof Jo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Zt.Emulated:s=new hu(u,l,i,this.appId,d,a,c,f);break;case Zt.ShadowDom:return new Xh(u,l,n,i,a,c,this.nonce,f);default:s=new Jo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(p(N_),p(R_),p(xr),p(jR),p(W),p(Qe),p(P),p(ko))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xo=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Zh[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(T_(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(T_(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new I(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Zh[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Zh[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Qt.DashCase|Qt.Important)?e.style.setProperty(r,n,i&Qt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Qt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=on().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function T_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xh=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=F_(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Jo=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?F_(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hu=class extends Jo{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=VR(u),this.hostAttr=UR(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},BR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$R=(()=>{let e=class e extends Qo{constructor(n){super(n),this.delegate=g(jD,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),A_=["alt","control","meta","shift"],HR={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},GR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>on().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),A_.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=HR[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),A_.forEach(a=>{if(a!==o){let c=zR[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function s4(t,e){return LD(b({rootComponent:t},WR(e)))}function WR(t){return{appProviders:[...k_,...t?.providers??[]],platformProviders:KR}}function qR(){Kh.makeCurrent()}function ZR(){return new Te}function YR(){return Vb(document),document}var KR=[{provide:Qe,useValue:jh},{provide:Hf,useValue:qR,multi:!0},{provide:W,useFactory:YR,deps:[]}];var QR=new v(""),XR=[{provide:zo,useClass:Qh,deps:[]},{provide:bh,useClass:Bc,deps:[P,$c,zo]},{provide:Bc,useClass:Bc,deps:[P,$c,zo]}],k_=[{provide:mc,useValue:"root"},{provide:Te,useFactory:ZR,deps:[]},{provide:fu,useClass:BR,multi:!0,deps:[W,P,Qe]},{provide:fu,useClass:GR,multi:!0,deps:[W]},{provide:fu,useClass:$R,multi:!0},S_,R_,N_,{provide:mi,useExisting:S_},{provide:Ti,useClass:FR,deps:[]},[]],a4=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:xr,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(p(QR,12))},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[...k_,...XR],imports:[r_,PD]});let t=e;return t})();var P_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=p(JR),o},providedIn:"root"});let t=e;return t})(),JR=(()=>{let e=class e extends tp{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Pe.NONE:return i;case Pe.HTML:return Kn(i,"HTML")?vt(i):oy(this._doc,String(i)).toString();case Pe.STYLE:return Kn(i,"Style")?vt(i):i;case Pe.SCRIPT:if(Kn(i,"Script"))return vt(i);throw new I(5200,!1);case Pe.URL:return Kn(i,"URL")?vt(i):Ic(String(i));case Pe.RESOURCE_URL:if(Kn(i,"ResourceURL"))return vt(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return Yb(n)}bypassSecurityTrustStyle(n){return Kb(n)}bypassSecurityTrustScript(n){return Qb(n)}bypassSecurityTrustUrl(n){return Xb(n)}bypassSecurityTrustResourceUrl(n){return Jb(n)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jh=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t}(Jh||{});function c4(...t){let e=[],r=new Set,n=r.has(Jh.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of t)r.add(o),i.length&&e.push(i);return vn([[],VD(),r.has(Jh.NoHttpTransferCache)||n?[]:M_({}),e])}var j="primary",ps=Symbol("RouteTitle"),sp=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Pi(t){return new sp(t)}function eO(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function K_(t){return t.length>0?t[t.length-1]:null}function rr(t){return Fl(t)?t:Qn(t)?re(Promise.resolve(t)):x(t)}var nO={exact:X_,subset:J_},Q_={exact:rO,subset:iO,ignored:()=>!0};function j_(t,e,r){return nO[r.paths](t.root,e.root,r.matrixParams)&&Q_[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function rO(t,e){return cn(t,e)}function X_(t,e,r){if(!Ar(t.segments,e.segments)||!gu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!X_(t.children[n],e.children[n],r))return!1;return!0}function iO(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Y_(t[r],e[r]))}function J_(t,e,r){return ew(t,e,e.segments,r)}function ew(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Ar(i,r)||e.hasChildren()||!gu(i,r,n))}else if(t.segments.length===r.length){if(!Ar(t.segments,r)||!gu(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!J_(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Ar(t.segments,i)||!gu(t.segments,i,n)||!t.children[j]?!1:ew(t.children[j],e,o,n)}}function gu(t,e,r){return e.every((n,i)=>Q_[r](t[i].parameters,n.parameters))}var Tn=class{constructor(e=new J([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){return aO.serialize(this)}},J=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vu(this)}},Tr=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Pi(this.parameters),this._parameterMap}toString(){return nw(this)}};function oO(t,e){return Ar(t,e)&&t.every((r,n)=>cn(r.parameters,e[n].parameters))}function Ar(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function sO(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===j&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==j&&(r=r.concat(e(i,n)))}),r}var ms=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new Li,providedIn:"root"});let t=e;return t})(),Li=class{parse(e){let r=new up(e);return new Tn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${es(e.root,!0)}`,n=lO(e.queryParams),i=typeof e.fragment=="string"?`#${cO(e.fragment)}`:"";return`${r}${n}${i}`}},aO=new Li;function vu(t){return t.segments.map(e=>nw(e)).join("/")}function es(t,e){if(!t.hasChildren())return vu(t);if(e){let r=t.children[j]?es(t.children[j],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==j&&n.push(`${i}:${es(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=sO(t,(n,i)=>i===j?[es(t.children[j],!1)]:[`${i}:${es(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[j]!=null?`${vu(t)}/${r[0]}`:`${vu(t)}/(${r.join("//")})`}}function tw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pu(t){return tw(t).replace(/%3B/gi,";")}function cO(t){return encodeURI(t)}function cp(t){return tw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bu(t){return decodeURIComponent(t)}function V_(t){return bu(t.replace(/\+/g,"%20"))}function nw(t){return`${cp(t.path)}${uO(t.parameters)}`}function uO(t){return Object.entries(t).map(([e,r])=>`;${cp(e)}=${cp(r)}`).join("")}function lO(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${pu(r)}=${pu(i)}`).join("&"):`${pu(r)}=${pu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var dO=/^[^\/()?;#]+/;function np(t){let e=t.match(dO);return e?e[0]:""}var fO=/^[^\/()?;=#]+/;function hO(t){let e=t.match(fO);return e?e[0]:""}var pO=/^[^=?&#]+/;function mO(t){let e=t.match(pO);return e?e[0]:""}var gO=/^[^&#]+/;function vO(t){let e=t.match(gO);return e?e[0]:""}var up=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[j]=new J(e,r)),n}parseSegment(){let e=np(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(e),new Tr(bu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=hO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=np(this.remaining);i&&(n=i,this.capture(n))}e[bu(r)]=bu(n)}parseQueryParam(e){let r=mO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=vO(this.remaining);s&&(n=s,this.capture(n))}let i=V_(r),o=V_(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=np(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=j);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[j]:new J([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new I(4011,!1)}};function rw(t){return t.segments.length>0?new J([],{[j]:t}):t}function iw(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=iw(i);if(n===j&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new J(t.segments,e);return bO(r)}function bO(t){if(t.numberOfChildren===1&&t.children[j]){let e=t.children[j];return new J(t.segments.concat(e.segments),e.children)}return t}function Nr(t){return t instanceof Tn}function yO(t,e,r=null,n=null){let i=ow(t);return sw(i,e,r,n)}function ow(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new J(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=rw(n);return e??i}function sw(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return rp(i,i,i,r,n);let o=DO(e);if(o.toRoot())return rp(i,i,new J([],{}),r,n);let s=_O(o,i,t),a=s.processChildren?rs(s.segmentGroup,s.index,o.commands):cw(s.segmentGroup,s.index,o.commands);return rp(i,s.segmentGroup,a,r,n)}function yu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ss(t){return typeof t=="object"&&t!=null&&t.outlets}function rp(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=aw(t,e,r);let a=rw(iw(s));return new Tn(a,o,i)}function aw(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=aw(o,e,r)}),new J(t.segments,n)}var Du=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&yu(n[0]))throw new I(4003,!1);let i=n.find(ss);if(i&&i!==K_(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Du(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Du(r,e,n)}var Oi=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function _O(t,e,r){if(t.isAbsolute)return new Oi(e,!0,0);if(!r)return new Oi(e,!1,NaN);if(r.parent===null)return new Oi(r,!0,0);let n=yu(t.commands[0])?0:1,i=r.segments.length-1+n;return wO(r,i,t.numberOfDoubleDots)}function wO(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new I(4005,!1);i=n.segments.length}return new Oi(n,!1,i-o)}function EO(t){return ss(t[0])?t[0].outlets:{[j]:t}}function cw(t,e,r){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return rs(t,e,r);let n=IO(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==j)&&t.children[j]&&t.numberOfChildren===1&&t.children[j].segments.length===0){let o=rs(t.children[j],e,r);return new J(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function IO(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ss(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!B_(c,u,s))return o;n+=2}else{if(!B_(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function lp(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=lp(new J([],{}),0,n))}),e}function U_(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function B_(t,e,r){return t==r.path&&cn(e,r.parameters)}var is="imperative",Ie=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ie||{}),It=class{constructor(e,r){this.id=e,this.url=r}},ji=class extends It{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ie.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends It{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},dt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(dt||{}),_u=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(_u||{}),Sn=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tr=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationSkipped}},as=class extends It{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wu=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fp=class extends It{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},hp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eu=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},cs=class{},Vi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function xO(t,e){return t.providers&&!t._injector&&(t._injector=Fc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Lt(t){return t.outlet||j}function MO(t,e){let r=t.filter(n=>Lt(n)===e);return r.push(...t.filter(n=>Lt(n)!==e)),r}function gs(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var _p=class{get injector(){return gs(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new vs(this.rootInjector),this.attachRef=null}},vs=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new _p(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Iu=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=wp(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=wp(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ep(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ep(e,this._root).map(r=>r.value)}};function wp(t,e){if(t===e.value)return e;for(let r of e.children){let n=wp(t,r);if(n)return n}return null}function Ep(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ep(t,r);if(n.length)return n.unshift(e),n}return[]}var lt=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ri(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Cu=class extends Iu{constructor(e,r){super(e),this.snapshot=r,Rp(this,e)}toString(){return this.snapshot.toString()}};function uw(t){let e=SO(t),r=new de([new Tr("",{})]),n=new de({}),i=new de({}),o=new de({}),s=new de(""),a=new nr(r,n,o,s,i,j,t,e.root);return a.snapshot=e.root,new Cu(new lt(a,[]),e)}function SO(t){let e={},r={},n={},i="",o=new Fi([],e,n,i,r,j,t,null,{});return new Mu("",new lt(o,[]))}var nr=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[ps]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}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(C(e=>Pi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(e=>Pi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),i?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&dw(i)&&(n.resolve[ps]=i.title),n}var Fi=class{get title(){return this.data?.[ps]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=Pi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Mu=class extends Iu{constructor(e,r){super(r),this.url=e,Rp(this,r)}toString(){return lw(this._root)}};function Rp(t,e){e.value._routerState=t,e.children.forEach(r=>Rp(t,r))}function lw(t){let e=t.children.length>0?` { ${t.children.map(lw).join(", ")} } `:"";return`${t.value}${e}`}function ip(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,cn(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),cn(e.params,r.params)||t.paramsSubject.next(r.params),tO(e.url,r.url)||t.urlSubject.next(r.url),cn(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Ip(t,e){let r=cn(t.params,e.params)&&oO(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Ip(t.parent,e.parent))}function dw(t){return typeof t.title=="string"||t.title===null}var TO=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=g(vs),this.location=g(yn),this.changeDetector=g(wt),this.inputBinder=g(Nu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Cp(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[it]});let t=e;return t})(),Cp=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===nr?this.route:e===vs?this.childContexts:this.parent.get(e,r)}},Nu=new v(""),$_=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=dr([i.queryParams,i.params,i.data]).pipe(Ve(([s,a,c],u)=>(c=b(b(b({},s),a),c),u===0?x(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=UD(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function AO(t,e,r){let n=us(t,e._root,r?r._root:void 0);return new Cu(n,e)}function us(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=NO(t,e,r);return new lt(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>us(t,a)),s}}let n=RO(e.value),i=e.children.map(o=>us(t,o));return new lt(n,i)}}function NO(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return us(t,n,i);return us(t,n)})}function RO(t){return new nr(new de(t.url),new de(t.params),new de(t.queryParams),new de(t.fragment),new de(t.data),t.outlet,t.component,t)}var ls=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},fw="ngNavigationCancelingError";function Su(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Nr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=hw(!1,dt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function hw(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[fw]=!0,r.cancellationCode=e,r}function OO(t){return pw(t)&&Nr(t.url)}function pw(t){return!!t&&t[fw]}var FO=(t,e,r,n)=>C(i=>(new xp(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),xp=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),ip(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Dp(o.value.snapshot))}),e.children.length&&this.forwardEvent(new bp(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(ip(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ip(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Tu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ki=class{constructor(e,r){this.component=e,this.route=r}};function kO(t,e,r){let n=t._root,i=e?e._root:null;return ts(n,i,r,[n.value])}function PO(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Bi(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Mv(t)?t:e.get(t):n}function ts(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ri(e);return t.children.forEach(s=>{LO(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>os(a,r.getContext(s),i)),i}function LO(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=jO(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Tu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ts(t,e,a?a.children:null,n,i):ts(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ki(a.outlet.component,s))}else s&&os(e,a,i),i.canActivateChecks.push(new Tu(n)),o.component?ts(t,null,a?a.children:null,n,i):ts(t,null,r,n,i);return i}function jO(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Ar(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ar(t.url,e.url)||!cn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ip(t,e)||!cn(t.queryParams,e.queryParams);case"paramsChange":default:return!Ip(t,e)}}function os(t,e,r){let n=Ri(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?os(s,e.children.getContext(o),r):os(s,null,r):os(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ki(e.outlet.component,i)):r.canDeactivateChecks.push(new ki(null,i)):r.canDeactivateChecks.push(new ki(null,i))}function bs(t){return typeof t=="function"}function VO(t){return typeof t=="boolean"}function UO(t){return t&&bs(t.canLoad)}function BO(t){return t&&bs(t.canActivate)}function $O(t){return t&&bs(t.canActivateChild)}function HO(t){return t&&bs(t.canDeactivate)}function zO(t){return t&&bs(t.canMatch)}function mw(t){return t instanceof At||t?.name==="EmptyError"}var mu=Symbol("INITIAL_VALUE");function Ui(){return Ve(t=>dr(t.map(e=>e.pipe(ge(1),po(mu)))).pipe(C(e=>{for(let r of e)if(r!==!0){if(r===mu)return mu;if(r===!1||GO(r))return r}return!0}),le(e=>e!==mu),ge(1)))}function GO(t){return Nr(t)||t instanceof ls}function WO(t,e){return Q(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(O(b({},r),{guardsResult:!0})):qO(s,n,i,t).pipe(Q(a=>a&&VO(a)?ZO(n,o,t,e):x(a)),C(a=>O(b({},r),{guardsResult:a})))})}function qO(t,e,r,n){return re(t).pipe(Q(i=>JO(i.component,i.route,r,e,n)),Nt(i=>i!==!0,!0))}function ZO(t,e,r,n){return re(e).pipe(Gt(i=>zt(KO(i.route.parent,n),YO(i.route,n),XO(t,i.path,r),QO(t,i.route,r))),Nt(i=>i!==!0,!0))}function YO(t,e){return t!==null&&e&&e(new yp(t)),x(!0)}function KO(t,e){return t!==null&&e&&e(new vp(t)),x(!0)}function QO(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>so(()=>{let s=gs(e)??r,a=Bi(o,s),c=BO(a)?a.canActivate(e,t):rt(s,()=>a(e,t));return rr(c).pipe(Nt())}));return x(i).pipe(Ui())}function XO(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>PO(s)).filter(s=>s!==null).map(s=>so(()=>{let a=s.guards.map(c=>{let u=gs(s.node)??r,l=Bi(c,u),d=$O(l)?l.canActivateChild(n,t):rt(u,()=>l(n,t));return rr(d).pipe(Nt())});return x(a).pipe(Ui())}));return x(o).pipe(Ui())}function JO(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let c=gs(e)??i,u=Bi(a,c),l=HO(u)?u.canDeactivate(t,e,r,n):rt(c,()=>u(t,e,r,n));return rr(l).pipe(Nt())});return x(s).pipe(Ui())}function eF(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=UO(a)?a.canLoad(e,r):rt(t,()=>a(e,r));return rr(c)});return x(o).pipe(Ui(),gw(n))}function gw(t){return xl(ee(e=>{if(typeof e!="boolean")throw Su(t,e)}),C(e=>e===!0))}function tF(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=zO(a)?a.canMatch(e,r):rt(t,()=>a(e,r));return rr(c)});return x(o).pipe(Ui(),gw(n))}var ds=class{constructor(e){this.segmentGroup=e||null}},fs=class extends Error{constructor(e){super(),this.urlTree=e}};function Ni(t){return $t(new ds(t))}function nF(t){return $t(new I(4e3,!1))}function rF(t){return $t(hw(!1,dt.GuardRejected))}var Mp=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[j])return nF(`${e.redirectTo}`);i=i.children[j]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:m,title:_}=i,w=rt(o,()=>a({params:h,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:_}));if(w instanceof Tn)throw new fs(w);r=w}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new fs(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Tn(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new J(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Sp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iF(t,e,r,n,i){let o=Op(t,e,r);return o.matched?(n=xO(e,n),tF(n,e,r,i).pipe(C(s=>s===!0?o:b({},Sp)))):x(o)}function Op(t,e,r){if(e.path==="**")return oF(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?b({},Sp):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||eO)(r,t,e);if(!i)return b({},Sp);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function oF(t){return{matched:!0,parameters:t.length>0?K_(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function H_(t,e,r,n){return r.length>0&&cF(t,r,n)?{segmentGroup:new J(e,aF(n,new J(r,t.children))),slicedSegments:[]}:r.length===0&&uF(t,r,n)?{segmentGroup:new J(t.segments,sF(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new J(t.segments,t.children),slicedSegments:r}}function sF(t,e,r,n){let i={};for(let o of r)if(Ru(t,e,o)&&!n[Lt(o)]){let s=new J([],{});i[Lt(o)]=s}return b(b({},n),i)}function aF(t,e){let r={};r[j]=e;for(let n of t)if(n.path===""&&Lt(n)!==j){let i=new J([],{});r[Lt(n)]=i}return r}function cF(t,e,r){return r.some(n=>Ru(t,e,n)&&Lt(n)!==j)}function uF(t,e,r){return r.some(n=>Ru(t,e,n))}function Ru(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function lF(t,e,r,n){return Lt(t)!==n&&(n===j||!Ru(e,r,t))?!1:Op(e,t,r).matched}function dF(t,e,r){return e.length===0&&!t.children[r]}var Tp=class{};function fF(t,e,r,n,i,o,s="emptyOnly"){return new Ap(t,e,r,n,i,s,o).recognize()}var hF=31,Ap=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Mp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new I(4002,`'${e.segmentGroup}'`)}recognize(){let e=H_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(C(({children:r,rootSnapshot:n})=>{let i=new lt(n,r),o=new Mu("",i),s=yO(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Fi([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,j,r).pipe(C(n=>({children:n,rootSnapshot:r})),Re(n=>{if(n instanceof fs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ds?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(C(s=>s instanceof lt?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(Gt(s=>{let a=n.children[s],c=MO(r,s);return this.processSegmentGroup(e,c,a,s,i)}),fo((s,a)=>(s.push(...a),s)),Ln(null),jl(),Q(s=>{if(s===null)return Ni(n);let a=vw(s);return pF(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(Gt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Re(u=>{if(u instanceof ds)return x(null);throw u}))),Nt(c=>!!c),Re(c=>{if(mw(c))return dF(n,i,o)?x(new Tp):Ni(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return lF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Ni(i):Ni(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Op(r,i,o);if(!c)return Ni(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hF&&(this.allowRedirects=!1));let h=new Fi(o,u,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,z_(i),Lt(i),i.component??i._loadedComponent??null,i,G_(i)),m=xu(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,_).pipe(Q(w=>this.processSegment(e,n,r,w.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=iF(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,m=new Fi(f,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,z_(n),Lt(n),n.component??n._loadedComponent??null,n,G_(n)),_=xu(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(_.params),m.data=Object.freeze(_.data);let{segmentGroup:w,slicedSegments:E}=H_(r,f,h,u);if(E.length===0&&w.hasChildren())return this.processChildren(l,u,w,m).pipe(C(q=>new lt(m,q)));if(u.length===0&&E.length===0)return x(new lt(m,[]));let k=Lt(n)===o;return this.processSegment(l,u,w,E,k?j:o,!0,m).pipe(C(q=>new lt(m,q instanceof lt?[q]:[])))}))):Ni(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):eF(e,r,n,this.urlSerializer).pipe(Q(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):rF(r))):x({routes:[],injector:e})}};function pF(t){t.sort((e,r)=>e.value.outlet===j?-1:r.value.outlet===j?1:e.value.outlet.localeCompare(r.value.outlet))}function mF(t){let e=t.value.routeConfig;return e&&e.path===""}function vw(t){let e=[],r=new Set;for(let n of t){if(!mF(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=vw(n.children);e.push(new lt(n.value,i))}return e.filter(n=>!r.has(n))}function z_(t){return t.data||{}}function G_(t){return t.resolve||{}}function gF(t,e,r,n,i,o){return Q(s=>fF(t,e,r,n,s.extractedUrl,i,o).pipe(C(({state:a,tree:c})=>O(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function vF(t,e){return Q(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of bw(c))s.add(u);let a=0;return re(s).pipe(Gt(c=>o.has(c)?bF(c,n,t,e):(c.data=xu(c,c.parent,t).resolve,x(void 0))),ee(()=>a++),Xr(1),Q(c=>a===s.size?x(r):xe))})}function bw(t){let e=t.children.map(r=>bw(r)).flat();return[t,...e]}function bF(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!dw(i)&&(o[ps]=i.title),yF(o,t,e,n).pipe(C(s=>(t._resolvedData=s,t.data=xu(t,t.parent,r).resolve,null)))}function yF(t,e,r,n){let i=ap(t);if(i.length===0)return x({});let o={};return re(i).pipe(Q(s=>DF(t[s],e,r,n).pipe(Nt(),ee(a=>{if(a instanceof ls)throw Su(new Li,a);o[s]=a}))),Xr(1),lo(o),Re(s=>mw(s)?xe:$t(s)))}function DF(t,e,r,n){let i=gs(e)??n,o=Bi(t,i),s=o.resolve?o.resolve(e,r):rt(i,()=>o(e,r));return rr(s)}function op(t){return Ve(e=>{let r=t(e);return r?re(r).pipe(C(()=>e)):x(e)})}var yw=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===j);return i}getResolvedTitleForRoute(n){return n.data[ps]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(_F),providedIn:"root"});let t=e;return t})(),_F=(()=>{let e=class e extends yw{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(p(P_))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ys=new v("",{providedIn:"root",factory:()=>({})}),wF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["ng-component"]],standalone:!0,features:[at],decls:1,vars:0,template:function(i,o){i&1&&Je(0,"router-outlet")},dependencies:[TO],encapsulation:2});let t=e;return t})();function Fp(t){let e=t.children&&t.children.map(Fp),r=e?O(b({},t),{children:e}):b({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==j&&(r.component=wF),r}var hs=new v(""),kp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Gc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rr(n.loadComponent()).pipe(C(Dw),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),ht(()=>{this.componentLoaders.delete(n)})),o=new Gr(i,()=>new B).pipe(zr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=EF(i,this.compiler,n,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(i)})),a=new Gr(s,()=>new B).pipe(zr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function EF(t,e,r,n){return rr(t.loadChildren()).pipe(C(Dw),Q(i=>i instanceof Io||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),C(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(Fp),injector:o}}))}function IF(t){return t&&typeof t=="object"&&"default"in t}function Dw(t){return IF(t)?t.default:t}var Pp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(CF),providedIn:"root"});let t=e;return t})(),CF=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_w=new v(""),ww=new v("");function xF(t,e,r){let n=t.get(ww),i=t.get(W);return t.get(P).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),MF(t))),{onViewTransitionCreated:c}=n;return c&&rt(t,()=>c({transition:a,from:e,to:r})),s})}function MF(t){return new Promise(e=>{Bo({read:()=>setTimeout(e)},{injector:t})})}var SF=new v(""),Lp=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(kp),this.environmentInjector=g(Fe),this.urlSerializer=g(ms),this.rootContexts=g(vs),this.location=g(Ai),this.inputBindingEnabled=g(Nu,{optional:!0})!==null,this.titleStrategy=g(yw),this.options=g(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Pp),this.createViewTransition=g(_w,{optional:!0}),this.navigationErrorHandler=g(SF,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new mp(o)),i=o=>this.events.next(new gp(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(O(b(b({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new de({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(le(s=>s.id!==0),C(s=>O(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ve(s=>{let a=!1,c=!1;return x(s).pipe(Ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?O(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new tr(u.id,this.urlSerializer.serialize(u.rawUrl),f,_u.IgnoredSameUrlNavigation)),u.resolve(!1),xe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return x(u).pipe(Ve(f=>{let h=this.transitions?.getValue();return this.events.next(new ji(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?xe:Promise.resolve(f)}),gF(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=O(b({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new wu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:_,extras:w}=u,E=new ji(f,this.urlSerializer.serialize(h),m,_);this.events.next(E);let k=uw(this.rootComponentType).snapshot;return this.currentTransition=s=O(b({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:O(b({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,x(s)}else{let f="";return this.events.next(new tr(u.id,this.urlSerializer.serialize(u.extractedUrl),f,_u.IgnoredByUrlHandlingStrategy)),u.resolve(!1),xe}}),ee(u=>{let l=new dp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=s=O(b({},u),{guards:kO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),WO(this.environmentInjector,u=>this.events.next(u)),ee(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Su(this.urlSerializer,u.guardsResult);let l=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),le(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",dt.GuardRejected),!1)),op(u=>{if(u.guards.canActivateChecks.length)return x(u).pipe(ee(l=>{let d=new hp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Ve(l=>{let d=!1;return x(l).pipe(vF(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",dt.NoDataFromResolver)}}))}),ee(l=>{let d=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),op(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),C(()=>{})));for(let h of d.children)f.push(...l(h));return f};return dr(l(u.targetSnapshot.root)).pipe(Ln(null),ge(1))}),op(()=>this.afterPreactivation()),Ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?re(d).pipe(C(()=>s)):x(s)}),C(u=>{let l=AO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=O(b({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new cs)}),FO(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ge(1),ee({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),jn(this.transitionAbortSubject.pipe(ee(u=>{throw u}))),ht(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Re(u=>{if(c=!0,pw(u))this.events.next(new Sn(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),OO(u)?this.events.next(new Vi(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new as(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=rt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ls){let{message:f,cancellationCode:h}=Su(this.urlSerializer,d);this.events.next(new Sn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Vi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return xe}))}))}cancelNavigationTransition(n,i,o){let s=new Sn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function TF(t){return t!==is}var AF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(NF),providedIn:"root"});let t=e;return t})(),Np=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},NF=(()=>{let e=class e extends Np{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ew=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(RF),providedIn:"root"});let t=e;return t})(),RF=(()=>{let e=class e extends Ew{constructor(){super(...arguments),this.location=g(Ai),this.urlSerializer=g(ms),this.options=g(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Pp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uw(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof ji)this.stateMemento=this.createStateMemento();else if(n instanceof tr)this.rawUrlTree=i.initialUrl;else if(n instanceof wu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof cs?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Sn&&(n.code===dt.GuardRejected||n.code===dt.NoDataFromResolver)?this.restoreHistory(i):n instanceof as?this.restoreHistory(i,!0):n instanceof jt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof Tn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=b(b({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ns=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ns||{});function Iw(t,e){t.events.pipe(le(r=>r instanceof jt||r instanceof Sn||r instanceof as||r instanceof tr),C(r=>r instanceof jt||r instanceof tr?ns.COMPLETE:(r instanceof Sn?r.code===dt.Redirect||r.code===dt.SupersededByNewNavigation:!1)?ns.REDIRECTING:ns.FAILED),le(r=>r!==ns.REDIRECTING),ge(1)).subscribe(()=>{e()})}function OF(t){throw t}var FF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Uc),this.stateManager=g(Ew),this.options=g(ys,{optional:!0})||{},this.pendingTasks=g(Jt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Lp),this.urlSerializer=g(ms),this.location=g(Ai),this.urlHandlingStrategy=g(Pp),this._events=new B,this.errorHandler=this.options.errorHandler||OF,this.navigated=!1,this.routeReuseStrategy=g(AF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Nu,{optional:!0}),this.eventsSubscription=new ae,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Sn&&i.code!==dt.Redirect&&i.code!==dt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof jt)this.navigated=!0;else if(i instanceof Vi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||TF(o.source)},a);this.scheduleNavigation(c,is,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}LF(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),is,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=b({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Fp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=ow(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return sw(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Nr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,is,null,i)}navigate(n,i={skipLocationChange:!1}){return PF(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=b({},FF):i===!1?o=b({},kF):o=i,Nr(n))return j_(this.currentUrlTree,n,o);let s=this.parseUrl(n);return j_(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return Iw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PF(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof jt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Nr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:sy(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:Nr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(nr),Fo("tabindex"),y(en),y(ne),y(Mn))},e.\u0275dir=G({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&En("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Xe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[st,it]});let t=e;return t})(),x4=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof jt&&this.update()})}ngAfterContentInit(){x(this.links.changes,x(null)).pipe(Ht()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=re(n).pipe(Ht()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=jF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(ne),y(en),y(wt),y(W_,8))},e.\u0275dir=G({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&xD(s,W_,5),i&2){let a;jc(a=Vc())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[it]});let t=e;return t})();function jF(t){return!!t.paths}var Au=class{};var VF=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(le(n=>n instanceof jt),Gt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Fc(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return re(o).pipe(Ht())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=x(null);let s=o.pipe(Q(a=>a===null?x(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return re([s,a]).pipe(Ht())}else return s})}};e.\u0275fac=function(i){return new(i||e)(p(Ct),p(Gc),p(Fe),p(Au),p(kp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cw=new v(""),UF=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(Fe),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof jt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof tr&&n.code===_u.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Eu&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>Vr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Bo(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Eu(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Lo()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function M4(t,...e){return vn([{provide:hs,multi:!0,useValue:t},[],{provide:nr,useFactory:xw,deps:[Ct]},{provide:Mr,multi:!0,useFactory:Mw},e.map(r=>r.\u0275providers)])}function xw(t){return t.routerState.root}function Ds(t,e){return{\u0275kind:t,\u0275providers:e}}function Mw(){let t=g(ke);return e=>{let r=t.get(nn);if(e!==r.components[0])return;let n=t.get(Ct),i=t.get(Sw);t.get(jp)===1&&n.initialNavigation(),t.get(Tw,null,U.Optional)?.setUpPreloading(),t.get(Cw,null,U.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Sw=new v("",{factory:()=>new B}),jp=new v("",{providedIn:"root",factory:()=>1});function BF(){return Ds(2,[{provide:jp,useValue:0},{provide:Hc,multi:!0,deps:[ke],useFactory:e=>{let r=e.get(KD,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ct),o=e.get(Sw);Iw(i,()=>{n(!0)}),e.get(Lp).afterPreactivation=()=>(n(!0),o.closed?x(void 0):o),i.initialNavigation()}))}}])}function $F(){return Ds(3,[{provide:Hc,multi:!0,useFactory:()=>{let e=g(Ct);return()=>{e.setUpLocationChangeListener()}}},{provide:jp,useValue:2}])}var Tw=new v("");function HF(t){return Ds(0,[{provide:Tw,useExisting:VF},{provide:Au,useExisting:t}])}function zF(){return Ds(8,[$_,{provide:Nu,useExisting:$_}])}function GF(t){let e=[{provide:_w,useValue:xF},{provide:ww,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ds(9,e)}var q_=new v("ROUTER_FORROOT_GUARD"),WF=[Ai,{provide:ms,useClass:Li},Ct,vs,{provide:nr,useFactory:xw,deps:[Ct]},kp,[]],S4=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[WF,[],{provide:hs,multi:!0,useValue:n},{provide:q_,useFactory:KF,deps:[[Ct,new yi,new Mo]]},{provide:ys,useValue:i||{}},i?.useHash?ZF():YF(),qF(),i?.preloadingStrategy?HF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?QF(i):[],i?.bindToComponentInputs?zF().\u0275providers:[],i?.enableViewTransitions?GF().\u0275providers:[],XF()]}}static forChild(n){return{ngModule:e,providers:[{provide:hs,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(p(q_,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function qF(){return{provide:Cw,useFactory:()=>{let t=g(i_),e=g(P),r=g(ys),n=g(Lp),i=g(ms);return r.scrollOffset&&t.setOffset(r.scrollOffset),new UF(i,n,t,e,r)}}}function ZF(){return{provide:Mn,useClass:XD}}function YF(){return{provide:Mn,useClass:Lh}}function KF(t){return"guarded"}function QF(t){return[t.initialNavigation==="disabled"?$F().\u0275providers:[],t.initialNavigation==="enabledBlocking"?BF().\u0275providers:[]]}var Z_=new v("");function XF(){return[{provide:Z_,useFactory:Mw},{provide:Mr,multi:!0,useExisting:Z_}]}var jw=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(y(en),y(ne))},e.\u0275dir=G({type:e});let t=e;return t})(),ek=(()=>{let e=class e extends jw{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})(),Bu=new v("");var tk={provide:Bu,useExisting:kt(()=>Vw),multi:!0};function nk(){let t=on()?on().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var rk=new v(""),Vw=(()=>{let e=class e extends jw{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!nk())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(y(en),y(ne),y(rk,8))},e.\u0275dir=G({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&En("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[_t([tk]),be]});let t=e;return t})();function ir(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Uw(t){return t!=null&&typeof t.length=="number"}var Rr=new v(""),Or=new v(""),ik=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Aw=class{static min(e){return ok(e)}static max(e){return sk(e)}static required(e){return ak(e)}static requiredTrue(e){return ck(e)}static email(e){return uk(e)}static minLength(e){return lk(e)}static maxLength(e){return dk(e)}static pattern(e){return fk(e)}static nullValidator(e){return Bw(e)}static compose(e){return qw(e)}static composeAsync(e){return Zw(e)}};function ok(t){return e=>{if(ir(e.value)||ir(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(ir(e.value)||ir(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function ak(t){return ir(t.value)?{required:!0}:null}function ck(t){return t.value===!0?null:{required:!0}}function uk(t){return ir(t.value)||ik.test(t.value)?null:{email:!0}}function lk(t){return e=>ir(e.value)||!Uw(e.value)?null:e.value.lengthUw(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function fk(t){if(!t)return Bw;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(ir(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Bw(t){return null}function $w(t){return t!=null}function Hw(t){return Qn(t)?re(t):t}function zw(t){let e={};return t.forEach(r=>{e=r!=null?b(b({},e),r):e}),Object.keys(e).length===0?null:e}function Gw(t,e){return e.map(r=>r(t))}function hk(t){return!t.validate}function Ww(t){return t.map(e=>hk(e)?e:r=>e.validate(r))}function qw(t){if(!t)return null;let e=t.filter($w);return e.length==0?null:function(r){return zw(Gw(r,e))}}function zp(t){return t!=null?qw(Ww(t)):null}function Zw(t){if(!t)return null;let e=t.filter($w);return e.length==0?null:function(r){let n=Gw(r,e).map(Hw);return ao(n).pipe(C(zw))}}function Gp(t){return t!=null?Zw(Ww(t)):null}function Nw(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Yw(t){return t._rawValidators}function Kw(t){return t._rawAsyncValidators}function Vp(t){return t?Array.isArray(t)?t:[t]:[]}function Fu(t,e){return Array.isArray(t)?t.includes(e):t===e}function Rw(t,e){let r=Vp(e);return Vp(t).forEach(i=>{Fu(r,i)||r.push(i)}),r}function Ow(t,e){return Vp(e).filter(r=>!Fu(t,r))}var ku=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=zp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Gp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Ge=class extends ku{get formDirective(){return null}get path(){return null}},An=class extends ku{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Pu=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},pk={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},G4=O(b({},pk),{"[class.ng-submitted]":"isSubmitted"}),W4=(()=>{let e=class e extends Pu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(An,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&we("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[be]});let t=e;return t})(),q4=(()=>{let e=class e extends Pu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&we("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[be]});let t=e;return t})();var _s="VALID",Ou="INVALID",$i="PENDING",ws="DISABLED",or=class{},Lu=class extends or{constructor(e,r){super(),this.value=e,this.source=r}},Is=class extends or{constructor(e,r){super(),this.pristine=e,this.source=r}},Cs=class extends or{constructor(e,r){super(),this.touched=e,this.source=r}},Hi=class extends or{constructor(e,r){super(),this.status=e,this.source=r}},Up=class extends or{constructor(e){super(),this.source=e}},Bp=class extends or{constructor(e){super(),this.source=e}};function Wp(t){return($u(t)?t.validators:t)||null}function mk(t){return Array.isArray(t)?zp(t):t||null}function qp(t,e){return($u(e)?e.asyncValidators:t)||null}function gk(t){return Array.isArray(t)?Gp(t):t||null}function $u(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Qw(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new I(1e3,"");if(!n[r])throw new I(1001,"")}function Xw(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new I(1002,"")})}var zi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=rn(()=>this.statusReactive()),this.statusReactive=Dn(void 0),this._pristine=rn(()=>this.pristineReactive()),this.pristineReactive=Dn(!0),this._touched=rn(()=>this.touchedReactive()),this.touchedReactive=Dn(!1),this._events=new B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ct(this.statusReactive)}set status(e){ct(()=>this.statusReactive.set(e))}get valid(){return this.status===_s}get invalid(){return this.status===Ou}get pending(){return this.status==$i}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return ct(this.pristineReactive)}set pristine(e){ct(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ct(this.touchedReactive)}set touched(e){ct(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Rw(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Rw(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ow(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ow(e,this._rawAsyncValidators))}hasValidator(e){return Fu(this._rawValidators,e)}hasAsyncValidator(e){return Fu(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Cs(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Cs(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Is(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new Is(!0,n))}markAsPending(e={}){this.status=$i;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hi(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(O(b({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(i=>{i.disable(O(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lu(this.value,n)),this._events.next(new Hi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=_s,this._forEachChild(n=>{n.enable(O(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_s||this.status===$i)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Lu(this.value,r)),this._events.next(new Hi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(O(b({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:_s}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=$i,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Hw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Hi(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?Ou:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($i)?$i:this._anyControlsHaveStatus(Ou)?Ou:_s}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new Is(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Cs(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$u(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mk(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gk(this._rawAsyncValidators)}},Gi=class extends zi{constructor(e,r,n){super(Wp(r),qp(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){Xw(this,!0,e),Object.keys(e).forEach(n=>{Qw(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var $p=class extends Gi{};var Wi=new v("CallSetDisabledState",{providedIn:"root",factory:()=>Hu}),Hu="always";function zu(t,e){return[...e.path,t]}function Ms(t,e,r=Hu){Zp(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),bk(t,e),Dk(t,e),yk(t,e),vk(t,e)}function ju(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Uu(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Vu(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function vk(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Zp(t,e){let r=Yw(t);e.validator!==null?t.setValidators(Nw(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Kw(t);e.asyncValidator!==null?t.setAsyncValidators(Nw(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Vu(e._rawValidators,i),Vu(e._rawAsyncValidators,i)}function Uu(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Yw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Kw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Vu(e._rawValidators,n),Vu(e._rawAsyncValidators,n),r}function bk(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Jw(t,e)})}function yk(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Jw(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Jw(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Dk(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function eE(t,e){t==null,Zp(t,e)}function _k(t,e){return Uu(t,e)}function Yp(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function wk(t){return Object.getPrototypeOf(t.constructor)===ek}function tE(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Kp(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Vw?r=o:wk(o)?n=o:i=o}),i||n||r||null}function Ek(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Ik={provide:Ge,useExisting:kt(()=>Ck)},Es=Promise.resolve(),Ck=(()=>{let e=class e extends Ge{get submitted(){return ct(this.submittedReactive)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=rn(()=>this.submittedReactive()),this.submittedReactive=Dn(!1),this._directives=new Set,this.ngSubmit=new X,this.form=new Gi({},zp(n),Gp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Ms(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path),o=new Gi({});eE(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){Es.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),tE(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&En("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Ik]),be]});let t=e;return t})();function Fw(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function kw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var xs=class extends zi{constructor(e=null,r,n){super(Wp(r),qp(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$u(r)&&(r.nonNullable||r.initialValueIsDefault)&&(kw(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Fw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Fw(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){kw(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var xk=t=>t instanceof xs,Mk=(()=>{let e=class e extends Ge{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})();var Sk={provide:An,useExisting:kt(()=>Tk)},Pw=Promise.resolve(),Tk=(()=>{let e=class e extends An{constructor(n,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new xs,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kp(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Yp(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ms(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Pw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ee(i);Pw.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?zu(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(y(Ge,9),y(Rr,10),y(Or,10),y(Bu,10),y(wt,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_t([Sk]),be,it]});let t=e;return t})(),Y4=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Qp=new v(""),Ak={provide:An,useExisting:kt(()=>Nk)},Nk=(()=>{let e=class e extends An{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new X,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Kp(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&ju(i,this,!1),Ms(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Yp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ju(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Bu,10),y(Qp,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_t([Ak]),be,it]});let t=e;return t})(),Rk={provide:Ge,useExisting:kt(()=>nE)},nE=(()=>{let e=class e extends Ge{get submitted(){return ct(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=rn(()=>this._submittedReactive()),this._submittedReactive=Dn(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Uu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Ms(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){ju(n.control||null,n,!1),Ek(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),tE(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Up(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Bp(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(ju(i||null,n),xk(o)&&(Ms(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);eE(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&_k(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zp(this.form,this),this._oldForm&&Uu(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&En("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Rk]),be,it]});let t=e;return t})(),Ok={provide:Ge,useExisting:kt(()=>rE)},rE=(()=>{let e=class e extends Mk{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){oE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[_t([Ok]),be]});let t=e;return t})(),Fk={provide:Ge,useExisting:kt(()=>iE)},iE=(()=>{let e=class e extends Ge{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return zu(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){oE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[_t([Fk]),be]});let t=e;return t})();function oE(t){return!(t instanceof rE)&&!(t instanceof nE)&&!(t instanceof iE)}var kk={provide:An,useExisting:kt(()=>Pk)},Pk=(()=>{let e=class e extends An{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Yp(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return zu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10),y(Bu,10),y(Qp,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[_t([kk]),be,it]});let t=e;return t})();var sE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Hp=class extends zi{constructor(e,r,n){super(Wp(r),qp(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){Xw(this,!1,e),e.forEach((n,i)=>{Qw(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Lw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var K4=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return Lw(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Gi(o,s)}record(n,i=null){let o=this._reduceControls(n);return new $p(o,i)}control(n,i,o){let s={};return this.useNonNullable?(Lw(i)?s=i:(s.validators=i,s.asyncValidators=o),new xs(n,O(b({},s),{nonNullable:!0}))):new xs(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new Hp(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof xs)return n;if(n instanceof zi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Q4=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wi,useValue:n.callSetDisabledState??Hu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[sE]});let t=e;return t})(),X4=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Qp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Wi,useValue:n.callSetDisabledState??Hu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[sE]});let t=e;return t})();var Jp;try{Jp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Jp=!1}var je=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Vh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Jp)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qi,aE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function sG(){if(qi)return qi;if(typeof document!="object"||!document)return qi=new Set(aE),qi;let t=document.createElement("input");return qi=new Set(aE.filter(e=>(t.setAttribute("type",e),t.type===e))),qi}var Ss;function Lk(){if(Ss==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ss=!0}))}finally{Ss=Ss||!1}return Ss}function Zi(t){return Lk()?t:!!t.capture}var Fr;function aG(){if(Fr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fr=!1,Fr;if("scrollBehavior"in document.documentElement.style)Fr=!0;else{let t=Element.prototype.scrollTo;t?Fr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fr=!1}}return Fr}var Xp;function jk(){if(Xp==null){let t=typeof document<"u"?document.head:null;Xp=!!(t&&(t.createShadowRoot||t.attachShadow))}return Xp}function cE(t){if(jk()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Vk(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Nn(t){return t.composedPath?t.composedPath()[0]:t.target}function uE(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Wu(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Uk(t){return t!=null&&`${t}`!="false"}function Bk(t,e=0){return $k(t)?Number(t):e}function $k(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function em(t){return Array.isArray(t)?t:[t]}function lG(t){return t==null?"":typeof t=="string"?t:`${t}px`}function kr(t){return t instanceof ne?t.nativeElement:t}var Hk=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var lE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Hk]});let t=e;return t})();var dE=new Set,Pr,zk=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Wk}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&Gk(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(p(je),p(ko,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Gk(t,e){if(!dE.has(t))try{Pr||(Pr=document.createElement("style"),e&&Pr.setAttribute("nonce",e),Pr.setAttribute("type","text/css"),document.head.appendChild(Pr)),Pr.sheet&&(Pr.sheet.insertRule(`@media ${t} {body{ }}`,0),dE.add(t))}catch(r){console.error(r)}}function Wk(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var hE=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return fE(em(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=fE(em(n)).map(a=>this._registerQuery(a).observable),s=dr(o);return s=zt(s.pipe(ge(1)),s.pipe(Jr(1),Kr(0))),s.pipe(C(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:l})=>{c.matches=c.matches||u,c.breakpoints[l]=u}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let i=this._mediaMatcher.matchMedia(n),s={observable:new N(a=>{let c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(po(i),C(({matches:a})=>({query:n,matches:a})),jn(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(p(zk),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var _G={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var yE=" ";function d1(t,e,r){let n=Ku(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(yE)))}function f1(t,e,r){let n=Ku(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(yE)):t.removeAttribute(e)}function Ku(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var DE="cdk-describedby-message",qu="cdk-describedby-host",rm=0,VG=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${rm++}`,this._document=n,this._id=g(xr)+"-"+rm++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=tm(i,o);typeof i!="string"?(pE(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=tm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${qu}="${this._id}"]`);for(let i=0;io.indexOf(DE)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);d1(n,"aria-describedby",o.messageElement.id),n.setAttribute(qu,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,f1(n,"aria-describedby",o.messageElement.id),n.removeAttribute(qu)}_isElementDescribedByMessage(n,i){let o=Ku(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(p(W),p(je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function pE(t,e){t.id||(t.id=`${DE}-${e}-${rm++}`)}var Qu=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B,this._typeaheadSubscription=ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new B,this.change=new B,e instanceof li?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Oc(e)&&(this._effectRef=qc(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ee(r=>this._pressedLetters.push(r)),Kr(e),le(()=>this._pressedLetters.length>0),C(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Oc(this._items)?this._items():this._items instanceof li?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},mE=class extends Qu{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},gE=class extends Qu{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function im(t){return t.buttons===0||t.detail===0}function om(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var h1=new v("cdk-input-modality-detector-options"),p1={ignoreKeys:[18,17,224,91,16]},_E=650,Yi=Zi({passive:!0,capture:!0}),m1=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new de(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Nn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<_E||(this._modality.next(im(a)?"keyboard":"mouse"),this._mostRecentTarget=Nn(a))},this._onTouchstart=a=>{if(om(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Nn(a)},this._options=b(b({},p1),s),this.modalityDetected=this._modality.pipe(Jr(1)),this.modalityChanged=this.modalityDetected.pipe(Qr()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Yi),o.addEventListener("mousedown",this._onMousedown,Yi),o.addEventListener("touchstart",this._onTouchstart,Yi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yi),document.removeEventListener("mousedown",this._onMousedown,Yi),document.removeEventListener("touchstart",this._onTouchstart,Yi))}};e.\u0275fac=function(i){return new(i||e)(p(je),p(P),p(W),p(h1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g1=new v("liveAnnouncerElement",{providedIn:"root",factory:v1});function v1(){return null}var b1=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),y1=0,UG=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",i=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(n,i,o,s,a){this._ngZone=n,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new B,this._rootNodeFocusAndBlurListener=c=>{let u=Nn(c);for(let l=u;l;l=l.parentElement)c.type==="focus"?this._onFocus(c,l):this._onBlur(c,l)},this._document=s,this._detectionMode=a?.detectionMode||Yu.IMMEDIATE}monitor(n,i=!1){let o=kr(n);if(!this._platform.isBrowser||o.nodeType!==1)return x();let s=cE(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new B,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let i=kr(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=kr(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Yu.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===Yu.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?_E:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=Nn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zu)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(jn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(hE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Lr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Lr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Lr.BLACK_ON_WHITE}return Lr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(nm,vE,bE),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Lr.BLACK_ON_WHITE?n.add(nm,vE):i===Lr.WHITE_ON_BLACK&&n.add(nm,bE)}}};e.\u0275fac=function(i){return new(i||e)(p(je),p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BG=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(p(sm))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[lE]});let t=e;return t})();var w1=new v("cdk-dir-doc",{providedIn:"root",factory:E1});function E1(){return g(W)}var I1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function C1(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?I1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var XG=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new X,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=C1(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(p(w1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var am=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var S1=["*",[["mat-option"],["ng-container"]]],T1=["*","mat-option, ng-container"],A1=["text"],N1=[[["mat-icon"]],"*"],R1=["mat-icon","*"];function O1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",1),t&2){let r=Lc();Mi("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function F1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",3),t&2){let r=Lc();Mi("disabled",r.disabled)}}function k1(t,e){if(t&1&&(_n(0,"span",4),vh(1),wn()),t&2){let r=Lc();Ci(),Ho("(",r.group.label,")")}}var P1=["mat-internal-form-field",""],L1=["*"];var y5=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),D5=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function j1(){return!0}var V1=new v("mat-sanity-checks",{providedIn:"root",factory:j1}),un=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return uE()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(p(sm),p(V1,8),p(W))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[am,am]});let t=e;return t})();var EE=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var _5=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xt=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(xt||{}),lm=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=xt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},IE=Zi({passive:!0,capture:!0}),dm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=Nn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,IE)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,IE)))}},CE={enterDuration:225,exitDuration:150},U1=800,xE=Zi({passive:!0,capture:!0}),ME=["mousedown","touchstart"],SE=["mouseup","mouseleave","touchend","touchcancel"],Ts=class Ts{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kr(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=b(b({},CE),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||B1(e,r,i),a=e-i.left,c=r-i.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,n.color!=null&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),f=d.transitionProperty,h=d.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||i.width===0&&i.height===0,_=new lm(this,l,n,m);l.style.transform="scale3d(1, 1, 1)",_.state=xt.FADING_IN,n.persistent||(this._mostRecentTransientRipple=_);let w=null;return!m&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let E=()=>{w&&(w.fallbackTimer=null),clearTimeout(q),this._finishRippleTransition(_)},k=()=>this._destroyRipple(_),q=setTimeout(k,u+100);l.addEventListener("transitionend",E),l.addEventListener("transitioncancel",k),w={onTransitionEnd:E,onTransitionCancel:k,fallbackTimer:q}}),this._activeRipples.set(_,w),(m||!u)&&this._finishRippleTransition(_),_}fadeOutRipple(e){if(e.state===xt.FADING_OUT||e.state===xt.HIDDEN)return;let r=e.element,n=b(b({},CE),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=xt.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=kr(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,ME.forEach(n=>{Ts._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{SE.forEach(r=>{this._triggerElement.addEventListener(r,this,xE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===xt.FADING_IN?this._startFadeOutTransition(e):e.state===xt.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=xt.VISIBLE,!n&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=xt.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=im(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===xt.VISIBLE||e.config.terminateOnPointerUp&&e.state===xt.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ME.forEach(r=>Ts._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(SE.forEach(r=>e.removeEventListener(r,this,xE)),this._pointerUpEventsRegistered=!1))}};Ts._eventManager=new dm;var fm=Ts;function B1(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var RE=new v("mat-ripple-global-options"),OE=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new fm(this,i,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:b(b(b({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(P),y(je),y(RE,8),y(Yn,8))},e.\u0275dir=G({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&we("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),pm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,un]});let t=e;return t})(),$1=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&we("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[at],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),H1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un]});let t=e;return t})(),FE=new v("MAT_OPTION_PARENT_COMPONENT"),z1=0,kE=new v("MatOptgroup"),w5=(()=>{let e=class e{constructor(n){this.disabled=!1,this._labelId=`mat-optgroup-label-${z1++}`,this._inert=n?.inertGroups??!1}};e.\u0275fac=function(i){return new(i||e)(y(FE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){i&2&&Xe("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",Ee]},exportAs:["matOptgroup"],standalone:!0,features:[_t([{provide:kE,useExisting:e}]),st,at],ngContentSelectors:T1,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){i&1&&(tn(S1),_n(0,"span",0)(1,"span",1),vh(2),Le(3),wn()(),Le(4,1)),i&2&&(we("mdc-list-item--disabled",o.disabled),Mi("id",o._labelId),Ci(2),Ho("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0});let t=e;return t})(),G1=0,hm=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},E5=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${G1++}`,this.onSelectionChange=new X,this._stateChanges=new B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Wu(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new hm(this,n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(wt),y(FE,8),y(kE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&MD(A1,7),i&2){let s;jc(s=Vc())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&En("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(mh("id",o.id),Xe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),we("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[st,at],ngContentSelectors:R1,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(tn(N1),kc(0,O1,1,2,"mat-pseudo-checkbox",1),Le(1),_n(2,"span",2,0),Le(4,1),wn(),kc(5,F1,1,1,"mat-pseudo-checkbox",3)(6,k1,2,1,"span",4),Je(7,"div",5)),i&2&&(Pc(o.multiple?0:-1),Ci(5),Pc(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),Ci(),Pc(o.group&&o.group._inert?6:-1),Ci(),Mi("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[$1,OE],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function I5(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var x5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[pm,un,H1]});let t=e;return t})(),TE={capture:!0},AE=["focus","mousedown","mouseenter","touchstart"],cm="mat-ripple-loader-uninitialized",um="mat-ripple-loader-class-name",NE="mat-ripple-loader-centered",Xu="mat-ripple-loader-disabled",PE=(()=>{let e=class e{constructor(){this._document=g(W,{optional:!0}),this._animationMode=g(Yn,{optional:!0}),this._globalRippleOptions=g(RE,{optional:!0}),this._platform=g(je),this._ngZone=g(P),this._hosts=new Map,this._onInteraction=n=>{let i=Nn(n);if(i instanceof HTMLElement){let o=i.closest(`[${cm}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of AE)this._document?.addEventListener(n,this._onInteraction,TE)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of AE)this._document?.removeEventListener(i,this._onInteraction,TE)}configureRipple(n,i){n.setAttribute(cm,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(um))&&n.setAttribute(um,i.className||""),i.centered&&n.setAttribute(NE,""),i.disabled&&n.setAttribute(Xu,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(Xu,""):n.removeAttribute(Xu)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(um)),n.append(o);let s=new OE(new ne(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(NE),s.disabled=n.hasAttribute(Xu),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(cm),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),M5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&we("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[at],attrs:P1,ngContentSelectors:L1,decls:1,vars:0,template:function(i,o){i&1&&(tn(),Le(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var LE=["mat-button",""],jE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],VE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],W1='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',UE=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var q1=["mat-icon-button",""],Z1=["*"];var Y1=new v("MAT_BUTTON_CONFIG");var K1=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],mm=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,i,o,s){this._elementRef=n,this._platform=i,this._ngZone=o,this._animationMode=s,this._focusMonitor=g(wE),this._rippleLoader=g(PE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=g(Y1,{optional:!0}),c=n.nativeElement,u=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of K1)c.hasAttribute(l)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",i){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(i){Lo()},e.\u0275dir=G({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[st]});let t=e;return t})();var Q1=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,o,s),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(i){Lo()},e.\u0275dir=G({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",n=>n==null?void 0:Eh(n)]},features:[st,be]});let t=e;return t})(),B5=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,at],attrs:LE,ngContentSelectors:VE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(tn(jE),Je(0,"span",0),Le(1),_n(2,"span",1),Le(3,1),wn(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),$5=(()=>{let e=class e extends Q1{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,at],attrs:LE,ngContentSelectors:VE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(tn(jE),Je(0,"span",0),Le(1),_n(2,"span",1),Le(3,1),wn(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[W1,UE],encapsulation:2,changeDetection:0});let t=e;return t})();var H5=(()=>{let e=class e extends mm{constructor(n,i,o,s){super(n,i,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Yn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,at],attrs:q1,ngContentSelectors:Z1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(tn(),Je(0,"span",0),Le(1),Je(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',UE],encapsulation:2,changeDetection:0});let t=e;return t})();var z5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,pm,un]});let t=e;return t})();var X1=["*"],Ju;function J1(){if(Ju===void 0&&(Ju=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Ju=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Ju}function As(t){return J1()?.createHTML(t)||t}function BE(t){return Error(`Unable to find icon with the name "${t}"`)}function eP(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function $E(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function HE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Rn=class{constructor(e,r,n){this.url=e,this.svgText=r,this.options=n}},tP=(()=>{let e=class e{constructor(n,i,o,s){this._httpClient=n,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,i,o){return this.addSvgIconInNamespace("",n,i,o)}addSvgIconLiteral(n,i,o){return this.addSvgIconLiteralInNamespace("",n,i,o)}addSvgIconInNamespace(n,i,o,s){return this._addSvgIconConfig(n,i,new Rn(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,i,o,s){let a=this._sanitizer.sanitize(Pe.HTML,o);if(!a)throw HE(o);let c=As(a);return this._addSvgIconConfig(n,i,new Rn("",c,s))}addSvgIconSet(n,i){return this.addSvgIconSetInNamespace("",n,i)}addSvgIconSetLiteral(n,i){return this.addSvgIconSetLiteralInNamespace("",n,i)}addSvgIconSetInNamespace(n,i,o){return this._addSvgIconSetConfig(n,new Rn(i,null,o))}addSvgIconSetLiteralInNamespace(n,i,o){let s=this._sanitizer.sanitize(Pe.HTML,i);if(!s)throw HE(i);let a=As(s);return this._addSvgIconSetConfig(n,new Rn("",a,o))}registerFontClassAlias(n,i=n){return this._fontCssClassesByAlias.set(n,i),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let i=this._sanitizer.sanitize(Pe.RESOURCE_URL,n);if(!i)throw $E(n);let o=this._cachedIconsByUrl.get(i);return o?x(el(o)):this._loadSvgIconFromConfig(new Rn(n,null)).pipe(ee(s=>this._cachedIconsByUrl.set(i,s)),C(s=>el(s)))}getNamedSvgIcon(n,i=""){let o=zE(i,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(n,a):$t(BE(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?x(el(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(C(i=>el(i)))}_getSvgFromIconSetConfigs(n,i){let o=this._extractIconWithNameFromAnySet(n,i);if(o)return x(o);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Re(c=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Pe.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(l)),x(null)})));return ao(s).pipe(C(()=>{let a=this._extractIconWithNameFromAnySet(n,i);if(!a)throw BE(n);return a}))}_extractIconWithNameFromAnySet(n,i){for(let o=i.length-1;o>=0;o--){let s=i[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(ee(i=>n.svgText=i),C(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?x(null):this._fetchIcon(n).pipe(ee(i=>n.svgText=i))}_extractSvgIconFromSet(n,i,o){let s=n.querySelector(`[id="${i}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(As(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){let i=this._document.createElement("DIV");i.innerHTML=n;let o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){let i=this._svgElementFromString(As("")),o=n.attributes;for(let s=0;sAs(l)),ht(()=>this._inProgressUrlFetches.delete(a)),ho());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(n,i,o){return this._svgIconConfigs.set(zE(n,i),o),this}_addSvgIconSetConfig(n,i){let o=this._iconSetConfigs.get(n);return o?o.push(i):this._iconSetConfigs.set(n,[i]),this}_svgElementFromConfig(n){if(!n.svgElement){let i=this._svgElementFromString(n.svgText);this._setSvgAttributes(i,n.options),n.svgElement=i}return n.svgElement}_getIconConfigFromResolvers(n,i){for(let o=0;oe?e.pathname+e.search:""}}var GE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sP=GE.map(t=>`[${t}]`).join(", "),aP=/^url\(['"]?#(.*?)['"]?\)$/,oW=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let i=this._cleanupFontValue(n);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let i=this._cleanupFontValue(n);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(n,i,o,s,a,c){this._elementRef=n,this._iconRegistry=i,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ae.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let i=n.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,i=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=n.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),i.forEach(o=>n.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let i=this._elementsWithExternalReferences;i&&i.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let i=n.querySelectorAll(sP),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=i[s],u=c.getAttribute(a),l=u?u.match(aP):null;if(l){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[i,o]=this._splitIconName(n);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(ge(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(tP),Fo("aria-hidden"),y(iP),y(Te),y(rP,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(Xe("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Si(o.color?"mat-"+o.color:""),we("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[st,at],ngContentSelectors:X1,decls:1,vars:0,template:function(i,o){i&1&&(tn(),Le(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),sW=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[un,un]});let t=e;return t})();var Mt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Mt||{}),cW="*";function uW(t,e){return{type:Mt.Trigger,name:t,definitions:e,options:{}}}function lW(t,e=null){return{type:Mt.Animate,styles:e,timings:t}}function dW(t,e=null){return{type:Mt.Group,steps:t,options:e}}function fW(t,e=null){return{type:Mt.Sequence,steps:t,options:e}}function hW(t){return{type:Mt.Style,styles:t,offset:null}}function pW(t,e,r){return{type:Mt.State,name:t,styles:e,options:r}}function mW(t){return{type:Mt.Keyframes,steps:t}}function gW(t,e,r=null){return{type:Mt.Transition,expr:t,animation:e,options:r}}function vW(t=null){return{type:Mt.AnimateChild,options:t}}function bW(t,e,r=null){return{type:Mt.Query,selector:t,animation:e,options:r}}function yW(t,e){return{type:Mt.Stagger,timings:t,animation:e}}var WE=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},qE=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},DW="!";function gm(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Ao(gm);let n=r?e?.injector?.get(Cr)??g(Cr):null,i=cP(e?.equal),o;e?.requireSync?o=Dn({kind:0},{equal:i}):o=Dn({kind:1,value:e?.initialValue},{equal:i});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});return n?.onDestroy(s.unsubscribe.bind(s)),rn(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new I(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function cP(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var Dm={};function Im(t,e){if(Dm[t]=(Dm[t]||0)+1,typeof e=="function")return vm(t,(...n)=>O(b({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return vm(t,()=>({type:t}));case"props":return vm(t,n=>O(b({},n),{type:t}));default:throw new Error("Unexpected config.")}}function Ki(){return{_as:"props",_p:void 0}}function vm(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function uP(t){return t.charAt(0).toUpperCase()+t.substring(1)}function lP(t){return t.charAt(0).toLowerCase()+t.substring(1)}function u0(t){let{source:e,events:r}=t;return Object.keys(r).reduce((n,i)=>O(b({},n),{[dP(i)]:Im(fP(e,i),r[i])}),{})}function Cm(){return Ki()}function dP(t){return t.trim().split(" ").map((e,r)=>r===0?lP(e):uP(e)).join("")}function fP(t,e){return`[${t}] ${e}`}var l0="@ngrx/store/init",Qi=(()=>{let e=class e extends de{constructor(){super({type:l0})}next(n){if(typeof n=="function")throw new TypeError(` + Dispatch expected an object, instead it received a function. + If you're using the createAction function, make sure to invoke the function + before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hP=[Qi],d0=new v("@ngrx/store Internal Root Guard"),ZE=new v("@ngrx/store Internal Initial State"),xm=new v("@ngrx/store Initial State"),f0=new v("@ngrx/store Reducer Factory"),YE=new v("@ngrx/store Internal Reducer Factory Provider"),h0=new v("@ngrx/store Initial Reducers"),bm=new v("@ngrx/store Internal Initial Reducers"),KE=new v("@ngrx/store Store Features"),QE=new v("@ngrx/store Internal Store Reducers"),ym=new v("@ngrx/store Internal Feature Reducers"),XE=new v("@ngrx/store Internal Feature Configs"),p0=new v("@ngrx/store Internal Store Features"),JE=new v("@ngrx/store Internal Feature Reducers Token"),m0=new v("@ngrx/store Feature Reducers"),e0=new v("@ngrx/store User Provided Meta Reducers"),tl=new v("@ngrx/store Meta Reducers"),t0=new v("@ngrx/store Internal Resolved Meta Reducers"),n0=new v("@ngrx/store User Runtime Checks Config"),r0=new v("@ngrx/store Internal User Runtime Checks Config"),Ns=new v("@ngrx/store Internal Runtime Checks"),Mm=new v("@ngrx/store Check if Action types are unique"),pP=new v("@ngrx/store Root Store Provider"),mP=new v("@ngrx/store Feature State Provider");function Sm(t,e={}){let r=Object.keys(t),n={};for(let o=0;or!==e).reduce((r,n)=>Object.assign(r,{[n]:t[n]}),{})}function g0(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((i,o)=>o(i),r(e))}}function v0(t,e){return Array.isArray(e)&&e.length>0&&(t=g0.apply(null,[...e,t])),(r,n)=>{let i=t(r);return(o,s)=>(o=o===void 0?n:o,i(o,s))}}function vP(t){let e=Array.isArray(t)&&t.length>0?g0(...t):r=>r;return(r,n)=>(r=e(r),(i,o)=>(i=i===void 0?n:i,r(i,o)))}var Rs=class extends N{},nl=class extends Qi{},bP="@ngrx/store/update-reducers",rl=(()=>{let e=class e extends de{get currentReducers(){return this.reducers}constructor(n,i,o,s){super(s(o,i)),this.dispatcher=n,this.initialState=i,this.reducers=o,this.reducerFactory=s}addFeature(n){this.addFeatures([n])}addFeatures(n){let i=n.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:u,key:l})=>{let d=typeof s=="function"?vP(c)(s,u):v0(a,c)(s,u);return o[l]=d,o},{});this.addReducers(i)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(i=>i.key))}addReducer(n,i){this.addReducers({[n]:i})}addReducers(n){this.reducers=b(b({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(i=>{this.reducers=gP(this.reducers,i)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:bP,features:n})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(i){return new(i||e)(p(nl),p(xm),p(h0),p(f0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),yP=[rl,{provide:Rs,useExisting:rl},{provide:nl,useExisting:Qi}],Os=(()=>{let e=class e extends B{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),DP=[Os],il=class extends N{},i0=(()=>{let e=class e extends de{constructor(n,i,o,s){super(s);let c=n.pipe(lr(Nl)).pipe(mo(i)),u={state:s},l=c.pipe(fo(_P,u));this.stateSubscription=l.subscribe(({state:d,action:f})=>{this.next(d),o.next(f)}),this.state=gm(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=l0,e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(xm))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function _P(t={state:void 0},[e,r]){let{state:n}=t;return{state:r(n,e),action:e}}var wP=[i0,{provide:il,useExisting:i0}],Vt=(()=>{let e=class e extends N{constructor(n,i,o){super(),this.actionsObserver=i,this.reducerManager=o,this.source=n,this.state=n.state}select(n,...i){return IP.call(null,n,...i)(this)}selectSignal(n,i){return rn(()=>n(this.state()),i)}lift(n){let i=new e(this,this.actionsObserver,this.reducerManager);return i.operator=n,i}dispatch(n){this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,i){this.reducerManager.addReducer(n,i)}removeReducer(n){this.reducerManager.removeReducer(n)}};e.\u0275fac=function(i){return new(i||e)(p(il),p(Qi),p(rl))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),EP=[Vt];function IP(t,e,...r){return function(i){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=i.pipe(Ul(t,...s))}else if(typeof t=="function")o=i.pipe(C(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Qr())}}var Tm="https://ngrx.io/guide/store/configuration/runtime-checks";function o0(t){return t===void 0}function s0(t){return t===null}function b0(t){return Array.isArray(t)}function CP(t){return typeof t=="string"}function xP(t){return typeof t=="boolean"}function MP(t){return typeof t=="number"}function y0(t){return typeof t=="object"&&t!==null}function SP(t){return y0(t)&&!b0(t)}function TP(t){if(!SP(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function _m(t){return typeof t=="function"}function AP(t){return _m(t)&&t.hasOwnProperty("\u0275cmp")}function NP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var RP=!1;function OP(){return RP}function a0(t,e){return t===e}function FP(t,e,r){for(let n=0;ns(t));return n.memoized.apply(null,o)}let i=e.map(o=>o(t,r));return n.memoized.apply(null,[...i,r])}function PP(t,e={stateFn:kP}){return function(...r){let n=r;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&LP(n[0])&&(n=jP(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(l=>l.release&&typeof l.release=="function"),a=t(function(...l){return o.apply(null,l)}),c=D0(function(l,d){return e.stateFn.apply(null,[l,i,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function _0(t){return ol(e=>{let r=e[t];return!OP()&&_h()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),r},e=>e)}function LP(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function jP(t){let e=Object.values(t),r=Object.keys(t),n=(...i)=>r.reduce((o,s,a)=>O(b({},o),{[s]:i[a]}),{});return[...e,n]}function VP(t){return t instanceof v?g(t):t}function UP(t,e){return e.map((r,n)=>{if(t[n]instanceof v){let i=g(t[n]);return{key:r.key,reducerFactory:i.reducerFactory?i.reducerFactory:Sm,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return r})}function BP(t){return t.map(e=>e instanceof v?g(e):e)}function w0(t){return typeof t=="function"?t():t}function $P(t,e){return t.concat(e)}function HP(){if(g(Vt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function zP(t,e){return function(r,n){let i=e.action(n)?wm(n):n,o=t(r,i);return e.state()?wm(o):o}}function wm(t){Object.freeze(t);let e=_m(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&NP(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let n=t[r];(y0(n)||_m(n))&&!Object.isFrozen(n)&&wm(n)}}),t}function GP(t,e){return function(r,n){if(e.action(n)){let o=Em(n);c0(o,"action")}let i=t(r,n);if(e.state()){let o=Em(i);c0(o,"state")}return i}}function Em(t,e=[]){return(o0(t)||s0(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;let o=t[i];return AP(o)?n:o0(o)||s0(o)||MP(o)||xP(o)||CP(o)||b0(o)?!1:TP(o)?Em(o,[...e,i]):{path:[...e,i],value:o}},!1)}function c0(t,e){if(t===!1)return;let r=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${r}". ${Tm}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=r,n}function WP(t,e){return function(r,n){if(e.action(n)&&!P.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${Tm}#strictactionwithinngzone`);return t(r,n)}}function qP(t){return _h()?b({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ZP({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?GP(r,{action:n=>t&&!Am(n),state:()=>e}):r}function YP({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?zP(r,{action:n=>t&&!Am(n),state:()=>e}):r}function Am(t){return t.type.startsWith("@ngrx")}function KP({strictActionWithinNgZone:t}){return e=>t?WP(e,{action:r=>t&&!Am(r)}):e}function QP(t){return[{provide:r0,useValue:t},{provide:n0,useFactory:XP,deps:[r0]},{provide:Ns,deps:[n0],useFactory:qP},{provide:tl,multi:!0,deps:[Ns],useFactory:YP},{provide:tl,multi:!0,deps:[Ns],useFactory:ZP},{provide:tl,multi:!0,deps:[Ns],useFactory:KP}]}function E0(){return[{provide:Mm,multi:!0,deps:[Ns],useFactory:JP}]}function XP(t){return t}function JP(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(Dm).filter(([,r])=>r>1).map(([r])=>r);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(r=>`"${r}"`).join(", ")}. ${Tm}#strictactiontypeuniqueness`)}function eL(t={},e={}){return[{provide:d0,useFactory:HP},{provide:ZE,useValue:e.initialState},{provide:xm,useFactory:w0,deps:[ZE]},{provide:bm,useValue:t},{provide:QE,useExisting:t instanceof v?t:bm},{provide:h0,deps:[bm,[new Cf(QE)]],useFactory:VP},{provide:e0,useValue:e.metaReducers?e.metaReducers:[]},{provide:t0,deps:[tl,e0],useFactory:$P},{provide:YE,useValue:e.reducerFactory?e.reducerFactory:Sm},{provide:f0,deps:[YE,t0],useFactory:v0},hP,yP,DP,wP,EP,QP(e.runtimeChecks),E0()]}function tL(t,e,r={}){return[{provide:XE,multi:!0,useValue:t instanceof Object?{}:r},{provide:KE,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof v)&&r.reducerFactory?r.reducerFactory:Sm,metaReducers:!(r instanceof v)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof v)&&r.initialState?r.initialState:void 0}},{provide:p0,deps:[XE,KE],useFactory:UP},{provide:ym,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:JE,multi:!0,useExisting:e instanceof v?e:ym},{provide:m0,multi:!0,deps:[ym,[new Cf(JE)]],useFactory:BP},E0()]}var Fs=(()=>{let e=class e{constructor(n,i,o,s,a,c){}};e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Vt),p(d0,8),p(Mm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),sl=(()=>{let e=class e{constructor(n,i,o,s,a){this.features=n,this.featureReducers=i,this.reducerManager=o;let c=n.map((u,l)=>{let f=i.shift()[l];return O(b({},u),{reducers:f,initialState:w0(u.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(i){return new(i||e)(p(p0),p(m0),p(rl),p(Fs),p(Mm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),OW=(()=>{let e=class e{static forRoot(n,i){return{ngModule:Fs,providers:[...eL(n,i)]}}static forFeature(n,i,o={}){return{ngModule:sl,providers:[...tL(n,i,o)]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ks(...t){let e=t.pop(),r=t.map(n=>n.type);return{reducer:e,types:r}}function I0(t,...e){let r=new Map;for(let n of e)for(let i of n.types){let o=r.get(i);if(o){let s=(a,c)=>n.reducer(o(a,c),c);r.set(i,s)}else r.set(i,n.reducer)}return function(n=t,i){let o=r.get(i.type);return o?o(n,i):n}}var Rm={AUTH:{ROOT:"auth",LOGIN:"login"},MODE_SELECT:{ROOT:"mode-select"},WIZARD:{ROOT:"wizard"},MODEL_COMPRESSION:{ROOT:"project-settings"},MACHINE_UNLEARNING:{ROOT:"machine-unlearning"},RUNNING:{ROOT:"running"},MODEL_TRAINING:{ROOT:"model-training"},ALGORITHM_COMPARISON:{ROOT:"algorithm-comparison"},MULTI_MODAL:{ROOT:"multi-modal"},AWQ:{ROOT:"awq"},ADMIN:{ROOT:"admin"},DEMO:{ROOT:"demo",BUTTONS:"buttons",FORM_FIELDS:"form-fields",TABLE:"table",TYPOGRAPHY:"typography",ICONS:"icons",MENU:"menu",CARDS:"cards",WIZARD:"wizard",CHIPS:"chips",CHECKBOXES:"checkboxes",NOTIFICATIONS:"notifications",DRAWER:"drawer",DIALOG:"dialog"}};var et=u0({source:"[Core -> Auth]",events:{Login:Ki(),"Login Success":Ki(),"Login Failure":Ki(),Logout:Cm(),"Logout Success":Cm(),"Logout Failure":Ki()}});var nL={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},cl="__@ngrx/effects_create__";function Ps(t,e={}){let r=e.functional?t:t(),n=b(b({},nL),e);return Object.defineProperty(r,cl,{value:n}),r}function rL(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(cl)?t[n][cl].hasOwnProperty("dispatch"):!1).map(n=>{let i=t[n][cl];return b({propertyName:n},i)})}function iL(t){return rL(t)}function S0(t){return Object.getPrototypeOf(t)}function oL(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function T0(t){return typeof t=="function"}function C0(t){return t.filter(T0)}function sL(t){return t instanceof v||T0(t)}function aL(t,e,r){let n=S0(t),o=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=iL(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof t[a]=="function"?t[a]():t[a],d=u?r(l,e):l;return c===!1?d.pipe(uo()):d.pipe(Vl()).pipe(C(h=>({effect:t[a],notification:h,propertyName:a,sourceName:o,sourceInstance:t})))});return va(...s)}var cL=10;function A0(t,e,r=cL){return t.pipe(Re(n=>(e&&e.handleError(n),r<=1?t:A0(t,e,r-1))))}var N0=(()=>{let e=class e extends N{constructor(n){super(),n&&(this.source=n)}lift(n){let i=new e;return i.source=this,i.operator=n,i}};e.\u0275fac=function(i){return new(i||e)(p(Os))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ls(...t){return le(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var R0=new v("@ngrx/effects Internal Root Guard"),al=new v("@ngrx/effects User Provided Effects"),Om=new v("@ngrx/effects Internal Root Effects"),O0=new v("@ngrx/effects Internal Root Effects Instances"),x0=new v("@ngrx/effects Internal Feature Effects"),F0=new v("@ngrx/effects Internal Feature Effects Instance Groups"),uL=new v("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>A0}),k0="@ngrx/effects/init",WW=Im(k0);function lL(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!dL(r)&&e.handleError(new Error(`Effect ${fL(t)} dispatched an invalid action: ${hL(r)}`))}}function dL(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function fL({propertyName:t,sourceInstance:e,sourceName:r}){let n=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function hL(t){try{return JSON.stringify(t)}catch{return t}}var pL="ngrxOnIdentifyEffects";function mL(t){return Fm(t,pL)}var gL="ngrxOnRunEffects";function vL(t){return Fm(t,gL)}var bL="ngrxOnInitEffects";function yL(t){return Fm(t,bL)}function Fm(t,e){return t&&e in t&&typeof t[e]=="function"}var P0=(()=>{let e=class e extends B{constructor(n,i){super(),this.errorHandler=n,this.effectsErrorHandler=i}addEffects(n){this.next(n)}toActions(){return this.pipe(Da(n=>oL(n)?S0(n):n),Q(n=>n.pipe(Da(DL))),Q(n=>{let i=n.pipe(ya(s=>_L(this.errorHandler,this.effectsErrorHandler)(s)),C(s=>(lL(s,this.errorHandler),s.notification)),le(s=>s.kind==="N"&&s.value!=null),Ll()),o=n.pipe(ge(1),le(yL),C(s=>s.ngrxOnInitEffects()));return va(i,o)}))}};e.\u0275fac=function(i){return new(i||e)(p(Te),p(uL))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DL(t){return mL(t)?t.ngrxOnIdentifyEffects():""}function _L(t,e){return r=>{let n=aL(r,t,e);return vL(r)?r.ngrxOnRunEffects(n):n}}var L0=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,i){this.effectSources=n,this.store=i,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(p(P0),p(Vt))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),j0=(()=>{let e=class e{constructor(n,i,o,s,a,c,u){this.sources=n,i.start();for(let l of s)n.addEffects(l);o.dispatch({type:k0})}addEffects(n){this.sources.addEffects(n)}};e.\u0275fac=function(i){return new(i||e)(p(P0),p(L0),p(Vt),p(O0),p(Fs,8),p(sl,8),p(R0,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),wL=(()=>{let e=class e{constructor(n,i,o,s){let a=i.flat();for(let c of a)n.addEffects(c)}};e.\u0275fac=function(i){return new(i||e)(p(j0),p(F0),p(Fs,8),p(sl,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),qW=(()=>{let e=class e{static forFeature(...n){let i=n.flat(),o=C0(i);return{ngModule:wL,providers:[o,{provide:x0,multi:!0,useValue:i},{provide:al,multi:!0,useValue:[]},{provide:F0,multi:!0,useFactory:M0,deps:[x0,al]}]}}static forRoot(...n){let i=n.flat(),o=C0(i);return{ngModule:j0,providers:[o,{provide:Om,useValue:[i]},{provide:R0,useFactory:EL},{provide:al,multi:!0,useValue:[]},{provide:O0,useFactory:M0,deps:[Om,al]}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function M0(t,e){let r=[];for(let n of t)r.push(...n);for(let n of e)r.push(...n);return r.map(n=>sL(n)?g(n):n)}function EL(){let t=g(L0,{optional:!0,skipSelf:!0}),e=g(Om,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var km={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var js=class{get getMock(){return this.mock}get getMockDelay(){return this.mockDelay}get getMethod(){return this.method}get getUrl(){return this.url}get getParams(){return this.params}get getBody(){return this.body}get getOptions(){return this.options}constructor(e,r,n,i,o){this.mockDelay=0,this.options={},this.method=e,this.params=n,this.options=i||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${km.backendBaseUrl}/${km.apiUrl}/${r}`}},V0=class extends js{constructor(e,r,n,i=!0){let o=new sn;r&&(o=r),super("GET",e,o,n,i)}},ul=class extends js{constructor(e,r,n=!0){super("POST",e,void 0,void 0,n),this.body=r}},ll=class extends js{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var dl=class extends ul{constructor(e){super("login/authenticate",b({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var fl=class extends ll{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var U0=new v("CLIENT");var Pm=_0("core");var hl=ol(Pm,t=>t.auth.isAuthenticated),B0=ol(Pm,t=>t.auth.user);var yq=(()=>{let e=class e{constructor(n,i,o,s){this.apiClient=n,this.actions$=i,this.store=o,this.router=s,this.login$=Ps(()=>this.actions$.pipe(Ls(et.login),mo(this.store.select(hl)),le(([a,c])=>!c),Q(([a,c])=>this.apiClient.serviceCall(new dl({email:a.email,password:a.password})).pipe(C(u=>et.loginSuccess({user:u})),Re(u=>[et.loginFailure({error:u})]))))),this.loginRedirect$=Ps(()=>this.actions$.pipe(Ls(et.loginSuccess),ee(()=>this.router.navigate([`${Rm.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=Ps(()=>this.actions$.pipe(Ls(et.logout),Q(()=>this.apiClient.serviceCall(new fl).pipe(C(()=>et.logoutSuccess()),Re(a=>[et.logoutFailure({error:a})]))))),this.logoutRedirect$=Ps(()=>this.actions$.pipe(Ls(et.logoutSuccess),ee(()=>this.router.navigate([`${Rm.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(i){return new(i||e)(p(U0),p(N0),p(Vt),p(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var CL={isAuthenticated:!1,user:{},error:null},Eq=I0(CL,ks(et.loginSuccess,(t,{user:e})=>O(b({},t),{isAuthenticated:!0,user:b({},e),error:null})),ks(et.loginFailure,(t,{error:e})=>O(b({},t),{error:e})),ks(et.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),ks(et.logoutFailure,(t,{error:e})=>O(b({},t),{error:e})));var Oq=(()=>{let e=class e{constructor(n){this.store=n,this.isAuthenticated$=this.store.select(hl),this.user$=this.store.select(B0)}dispatch(n){this.store.dispatch(n)}};e.\u0275fac=function(i){return new(i||e)(p(Vt))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();export{b as a,O as b,Vm as c,xL as d,ML as e,Vr as f,ae as g,N as h,Gr as i,B as j,de as k,ro as l,fI as m,Nl as n,xe as o,SV as p,lr as q,re as r,x as s,$t as t,Fl as u,DI as v,wI as w,C as x,dr as y,Q as z,so as A,kl as B,co as C,va as D,le as E,jI as F,Re as G,Gt as H,Kr as I,ge as J,Ng as K,Qr as L,ht as M,fo as N,ho as O,BI as P,Jr as Q,po as R,Ve as S,jn as T,$I as U,ee as V,mo as W,I as X,ye as Y,kt as Z,D as _,H as $,v as aa,KI as ba,p as ca,g as da,yi as ea,Mo as fa,fn as ga,nt as ha,z as ia,G as ja,pc as ka,vn as la,AC as ma,Fe as na,it as oa,Pz as pa,Lz as qa,jz as ra,Vz as sa,Zn as ta,Fo as ua,ke as va,Te as wa,ne as xa,X as ya,li as za,Uz as Aa,Yn as Ba,Bz as Ca,$z as Da,Ci as Ea,y as Fa,wr as Ga,pi as Ha,mi as Ia,en as Ja,P as Ka,dT as La,Bo as Ma,yn as Na,be as Oa,st as Pa,kc as Qa,Xe as Ra,Mi as Sa,hD as Ta,we as Ua,Gz as Va,Si as Wa,Wz as Xa,Pc as Ya,qz as Za,Zz as _a,Yz as $a,_n as ab,wn as bb,Je as cb,wD as db,ED as eb,CA as fb,Kz as gb,mh as hb,SA as ib,En as jb,kA as kb,Lc as lb,tn as mb,Le as nb,VA as ob,xD as pb,MD as qb,jc as rb,Vc as sb,Qz as tb,vh as ub,HA as vb,Ho as wb,zA as xb,Xz as yb,GA as zb,_t as Ab,at as Bb,Jz as Cb,e3 as Db,t3 as Eb,n3 as Fb,r3 as Gb,i3 as Hb,o3 as Ib,nn as Jb,_h as Kb,wt as Lb,wh as Mb,Ee as Nb,Eh as Ob,ct as Pb,W as Qb,Ai as Rb,C3 as Sb,x3 as Tb,M3 as Ub,S3 as Vb,T3 as Wb,A3 as Xb,N3 as Yb,R3 as Zb,r_ as _b,an as $b,Gh as ac,fR as bc,z3 as cc,G3 as dc,S_ as ec,s4 as fc,a4 as gc,c4 as hc,jt as ic,nr as jc,TO as kc,Ct as lc,W_ as mc,x4 as nc,M4 as oc,S4 as pc,Mt as qc,cW as rc,uW as sc,lW as tc,dW as uc,fW as vc,hW as wc,pW as xc,mW as yc,gW as zc,vW as Ac,bW as Bc,yW as Cc,WE as Dc,qE as Ec,DW as Fc,gm as Gc,Ki as Hc,u0 as Ic,Cm as Jc,l0 as Kc,Qi as Lc,xm as Mc,Rs as Nc,nl as Oc,bP as Pc,Os as Qc,il as Rc,Vt as Sc,ol as Tc,_0 as Uc,OW as Vc,ks as Wc,I0 as Xc,Ps as Yc,N0 as Zc,Ls as _c,qW as $c,Rm as ad,Pm as bd,Uk as cd,Bk as dd,$k as ed,em as fd,lG as gd,kr as hd,je as id,sG as jd,Zi as kd,aG as ld,Vk as md,Nn as nd,uE as od,Wu as pd,lE as qd,hE as rd,_G as sd,d1 as td,f1 as ud,VG as vd,mE as wd,gE as xd,im as yd,om as zd,UG as Ad,wE as Bd,BG as Cd,XG as Dd,am as Ed,y5 as Fd,D5 as Gd,un as Hd,EE as Id,_5 as Jd,RE as Kd,OE as Ld,pm as Md,$1 as Nd,FE as Od,kE as Pd,w5 as Qd,E5 as Rd,I5 as Sd,C5 as Td,x5 as Ud,PE as Vd,M5 as Wd,Bu as Xd,Vw as Yd,Rr as Zd,Aw as _d,Ge as $d,An as ae,W4 as be,q4 as ce,Gi as de,Ck as ee,xs as fe,Tk as ge,Y4 as he,Nk as ie,nE as je,rE as ke,iE as le,Pk as me,Hp as ne,K4 as oe,Q4 as pe,X4 as qe,B5 as re,$5 as se,H5 as te,z5 as ue,tP as ve,oW as we,sW as xe,et as ye,km as ze,V0 as Ae,ul as Be,U0 as Ce,yq as De,Eq as Ee,Oq as Fe}; diff --git a/frontend/server/modelsmith-build/browser/chunk-6GLTEX3L.js b/frontend/server/modelsmith-build/browser/chunk-6GLTEX3L.js new file mode 100644 index 00000000..a351a065 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-6GLTEX3L.js @@ -0,0 +1,4 @@ +import{a as E,b as P,c as te,d as _}from"./chunk-2VRXO4PD.js";import{a as G,e as I,f as ie}from"./chunk-PR3LNGVD.js";import"./chunk-ZTWJRPOH.js";import{b as J,d as z,f as N}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import"./chunk-YPMBMI5J.js";import{a as K,b as ee}from"./chunk-QTJZRTNN.js";import{a as V,b as Z}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import"./chunk-OFW2ET2O.js";import{$ as j,Cb as y,Ea as d,Fa as p,Sa as u,_ as F,_b as W,ab as i,ad as O,bb as o,ca as H,cb as f,ha as h,ia as q,jb as c,jc as S,kc as Y,lc as g,p as Q,pc as x,re as v,ub as r,ue as $,we as C,xe as X}from"./chunk-64NP6AY6.js";var s={PRETRAINED_MODEL:"pretrained-model",PRUNING_TIME:"pruning-time",PTQ_TIME:"ptq-time",SIMILAR_ACCURACY:"similar-accuracy",HIGHER_ACCURACY:"higher-accuracy",RECOMMENDED_BASIC_PTQ:"recommended-basic-ptq",RECOMMENDED_BRECQ:"recommended-brecq",RECOMMENDED_GRASP:"recommended-grasp",RECOMMENDED_ITERATIVE:"recommended-iterative",RECOMMENDED_ITERATIVE_ONE_SHOT:"recommended-iterative-one-shot",RECOMMENDED_MINMAX:"recommended-minmax"};var fe=()=>["Yes","No"],oe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var Se=()=>["Yes","No"],ne=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,Se)),d(2),u("disabled",!t.selectedOption))},dependencies:[_,v]});let l=e;return l})();var ge=()=>["Yes","No"],re=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Pruning "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,ge)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var ve=()=>["Yes","No"],ce=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_MINMAX],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-ptq-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long PTQ time?"),o(),i(2,"p",1),r(3,` Our system supports processing times ranging from minutes (short) to several hours (long), ensuring consistent efficiency and reliability for tasks of any duration. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Post-training quantization "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,ve)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var D,R=(D=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Z(this)).subscribe(e=>{this.isScriptActive=J(e)})}ctaCallScript(e){if(!e)return;let L=ie(e);L&&this.scriptFacadeService.dispatch(K.callScript({configs:{alg:L}}))}},D.\u0275fac=function(L){return new(L||D)(H(ee))},D.\u0275prov=F({token:D,factory:D.\u0275fac}),D);R=Q([V()],R);var ae=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-basic-ptq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," High Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var me=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BRECQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-brecq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Low Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var se=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IPG,N.IPR,N.IPM])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-grasp"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Short pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Init pruning "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var le=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP,N.OMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative-one-shot"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Long pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Higher accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var pe=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long pruning time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var de=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.MINMAXPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-minmax"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,C,E,P,v]});let l=e;return l})();var Te=()=>["Yes","No"],ue=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE_ONE_SHOT],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_GRASP],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-similar-accuracy"]],decls:16,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you want to have a similar or higher accuracy?\xA0"),o(),i(2,"p",1),r(3,` Expectations for compressed model performance: Anticipate achieving comparable or enhanced accuracy relative to the original model. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPretrainedPage()}),r(6," Pruning "),o(),i(7,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(8," Short pruning time "),o()(),i(9,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",5)(11,"button",6),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",7),r(13," Previous "),o(),i(14,"button",8),c("click",function(){return t.handleSelection()}),r(15,"Next"),o()()),n&2&&(d(9),u("options",y(2,Te)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,C,E,P,v]});let l=e;return l})();var he=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=h({type:e,selectors:[["ms-wizard"]],decls:5,vars:0,consts:[[1,"wizard-layout"],[1,"left"],[1,"right"]],template:function(n,t){n&1&&(i(0,"div",0)(1,"div",1),f(2,"router-outlet"),o(),i(3,"div",2),f(4,"ms-terminal"),o()())},dependencies:[Y,G],styles:[".wizard-layout[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:20px;height:100%}.wizard-layout[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:45%;gap:20px}.wizard-layout[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:55%}"]});let l=e;return l})();var Ce=[{path:"",component:he,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:ne},{path:s.PRUNING_TIME,component:re},{path:s.PTQ_TIME,component:ce},{path:s.SIMILAR_ACCURACY,component:ue},{path:s.HIGHER_ACCURACY,component:oe},{path:s.RECOMMENDED_BASIC_PTQ,component:ae},{path:s.RECOMMENDED_BRECQ,component:me},{path:s.RECOMMENDED_GRASP,component:se},{path:s.RECOMMENDED_ITERATIVE,component:pe},{path:s.RECOMMENDED_MINMAX,component:de},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:le}]}],_e=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({imports:[x.forChild(Ce),x]});let l=e;return l})();var li=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({providers:[R],imports:[W,_e,G,_,X,te,$]});let l=e;return l})();export{li as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-6NECGAK4.js b/frontend/server/modelsmith-build/browser/chunk-6NECGAK4.js new file mode 100644 index 00000000..a724c75a --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-6NECGAK4.js @@ -0,0 +1 @@ +import{c as Be,p as Ne,r as He,s as P,v as Ye}from"./chunk-W4S57J6B.js";import{$ as _e,Ab as Pe,Bb as ae,Bd as le,D as S,Dd as Fe,E as g,Ea as $,Fa as r,Ga as J,Hd as ce,J as W,K as G,Ka as ee,Lb as k,Ld as je,Ma as Me,Md as Le,Na as ye,Nb as R,Pa as te,Qa as ie,Qb as Ee,R as x,Ra as y,S as K,Sa as ne,T as A,Ua as Ie,Wa as Ce,Ya as we,_b as De,a as E,aa as v,ab as I,b as pe,bb as L,cb as se,da as O,g as D,gb as ke,ha as Z,ia as fe,j as T,ja as ge,jb as B,kd as Te,lb as c,m as Q,mb as oe,nb as N,pa as b,pb as H,pd as Se,qa as M,qb as Re,ra as ve,rb as C,s as X,sb as w,sc as re,tc as Y,va as q,wc as u,xa as F,xc as me,xd as xe,ya as j,yd as Ae,za as be,zc as V,zd as Oe}from"./chunk-64NP6AY6.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let m=ke();I(0,"div",0),B("keydown",function(t){b(m);let i=c();return M(i._handleKeydown(t))})("click",function(){b(m);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(m);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(m);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let m=c();Ce(m._classList),ne("id",m.panelId)("@transformMenu",m._panelAnimationState),y("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),V("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:re("fadeInItems",[me("showing",u({opacity:1})),V("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,Vt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var z=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new j,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Me(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(F),r(ee),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(J,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(oe(),ie(0,it,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var mt={provide:Qe,deps:[P],useFactory:rt},Ve=Te({passive:!0});var zt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,l,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new j,this.onMenuOpen=this.menuOpened,this.menuClosed=new j,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof z?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ve)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ve),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof z&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(g(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,l],[p,_]=[i,n],f=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}f=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=l==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:f},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:f},{originX:i,originY:h,overlayX:p,overlayY:l,offsetY:-f},{originX:n,originY:h,overlayX:_,overlayY:l,offsetY:-f}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(g(s=>s!==this._menuItemInstance),g(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(g(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Be(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(F),r(ye),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(le),r(ee))},o.\u0275dir=ge({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=fe({type:o}),o.\u0275inj=_e({providers:[mt],imports:[De,Le,ce,Ye,Ne,ce]});let a=o;return a})();export{ue as a,z as b,zt as c,Ut as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-6VRVKV6C.js b/frontend/server/modelsmith-build/browser/chunk-6VRVKV6C.js new file mode 100644 index 00000000..1b614510 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-6VRVKV6C.js @@ -0,0 +1,38 @@ +import{Aa as b,T as f,Y as d,ba as D,g as l,j as i,o as a,r as p,z as c}from"./chunk-64NP6AY6.js";var P=D;function S(e){return!!e[P]}var w=Symbol("__destroy"),g=Symbol("__decoratorApplied");function v(e){return typeof e=="string"?Symbol(`__destroy__${e}`):w}function x(e){e.prototype[g]=!0}function O(e,t){e[t]||(e[t]=new i)}function _(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function C(e){e instanceof l&&e.unsubscribe()}function j(e){Array.isArray(e)&&e.forEach(C)}function E(e,t){return function(){if(e&&e.call(this),_(this,v()),t.arrayName&&j(this[t.arrayName]),t.checkProperties)for(let o in this)t.blackList?.includes(o)||C(this[o])}}function k(e,t){e.prototype.ngOnDestroy=E(e.prototype.ngOnDestroy,t)}function A(e,t){let o=e.\u0275pipe;o.onDestroy=E(o.onDestroy,t)}function G(e={}){return t=>{S(t)?A(t,e):k(t,e),x(t)}}var m=7,y=Symbol("CheckerHasBeenSet");function B(e,t){e[y]||I()||(h(()=>p(Promise.resolve()).pipe(c(()=>{let o;try{o=b(e)}catch{o=null}let n=o?.lView;if(n==null)return a;let r=n[m]||(n[m]=[]),s=new i;return r.push(function(){h(()=>{s.next(),s.complete()})}),s}),c(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(T(e))})),e[y]=!0)}function I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function h(e){let t=d.Zone;return!!t&&typeof t.root?.run=="function"?t.root.run(e):e()}function T(e){return` + The ${e.constructor.name} still has subscriptions that haven't been unsubscribed. + This may happen if the class extends another class decorated with @UntilDestroy(). + The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy(). + Let's look at the following example: + @UntilDestroy() + @Directive() + export abstract class BaseDirective {} + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + } + } + The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy() + on the ConcreteComponent, but not on the BaseDirective. + One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective: + @UntilDestroy() + @Directive() + export abstract class BaseDirective { + ngOnDestroy(): void {} + } + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + super.ngOnDestroy(); + } + } + `}var u=!1;function U(e,t,o){let n=e[t];if(u&&typeof n!="function")throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);O(e,o),e[t]=function(){n.apply(this,arguments),_(this,o),e[t]=n}}function H(e,t){return o=>{let n=v(t);typeof t=="string"?U(e,t,n):(u&&L(e),O(e,n));let r=e[n];return u&&B(e,r),o.pipe(f(r))}}function L(e){let t=Object.getPrototypeOf(e);if(!(g in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}export{G as a,H as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7DL2PMFN.js b/frontend/server/modelsmith-build/browser/chunk-7DL2PMFN.js new file mode 100644 index 00000000..9a013f42 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-7DL2PMFN.js @@ -0,0 +1 @@ +import{a as w,b as F}from"./chunk-OWLYOD4I.js";import{a as He}from"./chunk-F7URI57V.js";import{a as Ve,b as je}from"./chunk-JMFIGVCB.js";import{a as Me,b as ye}from"./chunk-OA3ZLQZZ.js";import{a as E,c as f}from"./chunk-LRK34XDC.js";import{a as L,b as R}from"./chunk-QVMVB2QY.js";import{c as Le}from"./chunk-XX6ZYDLH.js";import{a as Fe,b as Re}from"./chunk-QTJZRTNN.js";import{o as we}from"./chunk-W4S57J6B.js";import{h as Te}from"./chunk-OFW2ET2O.js";import{$ as te,Ab as pe,Bb as he,E as y,Ea as c,Eb as me,Fa as d,Fb as ue,Gb as de,Ib as G,J as A,K as q,Lb as ge,Q as J,Qa as b,R as X,Ra as ae,Rd as be,S as I,Sa as s,Sb as fe,T as h,Ub as _e,V as O,Xb as Se,Xd as Ie,Yd as Oe,Z as Y,_ as ee,_b as Ce,aa as ie,ab as g,bb as m,be as ve,ca as ne,cb as M,fe as xe,gb as T,ha as N,ia as oe,ie as Ee,j as K,ja as j,jb as P,k,lb as u,mb as se,nb as D,pa as S,pb as W,qa as C,qb as Q,qe as ke,rb as v,s as Z,sb as x,tb as $,te as Ae,ub as B,ue as Ne,vb as le,wb as ce,we as Pe,x as _,xa as H,xe as De,y as z,ya as re}from"./chunk-64NP6AY6.js";var ct=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=N({type:n,selectors:[["ms-spining-indicator"]],standalone:!0,features:[he],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(o,r){o&1&&M(0,"mat-spinner",0),o&2&&s("diameter",25)},dependencies:[F,w,R,L]});let i=n;return i})();var p=function(i){return i.MODEL_COMPRESSION="MODEL_COMPRESSION",i.MACHINE_UNLEARNING="MACHINE_UNLEARNING",i.MODEL_TRAINING="MODEL_TRAINING",i.AWQ="AWQ",i.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",i.NONE="NONE",i}(p||{});var Ct=(()=>{let n=class n{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(t){this.scriptFacadeService=t,this._currentRunningPage=new k(p.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(y(t=>t===E.RUNNING||t===E.STOPPING),O(()=>this.scriptFacadeService.dispatch(Fe.getCurrentOrLastActiveScriptDetails())),I(()=>this.scriptFacadeService.scriptDetails$.pipe(J(1),A(1),y(t=>!Le(t?.algKey)))),_(t=>t.type)).subscribe(t=>{switch(t){case f.PRUNING:case f.QUANTIZATION:this._currentRunningPage.next(p.MODEL_COMPRESSION);break;case f.MACHINE_UNLEARNING:{this._currentRunningPage.next(p.MACHINE_UNLEARNING);break}case f.AWQ:{this._currentRunningPage.next(p.AWQ);break}case f.TRAIN:{this._currentRunningPage.next(p.MODEL_TRAINING);break}case f.MULTIFLOW:{this._currentRunningPage.next(p.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(p.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(t=>{t!==E.RUNNING&&t!==E.STOPPING&&this._currentRunningPage.next(p.NONE)})}};n.\u0275fac=function(o){return new(o||n)(ne(Re))},n.\u0275prov=ee({token:n,factory:n.\u0275fac});let i=n;return i})();var Be=["searchSelectInput"],Ge=["innerSelectSearch"],Ue=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ke=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Ze=(i,n)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":n});function ze(i,n){if(i&1){let e=T();g(0,"mat-checkbox",12),P("change",function(o){S(e);let r=u();return C(r._emitSelectAllBooleanToParent(o.checked))}),m()}if(i&2){let e=u();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function qe(i,n){i&1&&M(0,"mat-spinner",13)}function Je(i,n){i&1&&D(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Xe(i,n){if(i&1&&(g(0,"mat-icon",16),B(1),m()),i&2){let e=u(2);s("svgIcon",e.closeSvgIcon),c(),ce(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function Ye(i,n){if(i&1){let e=T();g(0,"button",14),P("click",function(){S(e);let o=u();return C(o._reset(!0))}),b(1,Je,1,0,"ng-content",15)(2,Xe,2,2,"ng-template",null,2,G),m()}if(i&2){let e=$(3),t=u();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function et(i,n){i&1&&D(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function tt(i,n){if(i&1&&B(0),i&2){let e=u(2);le(e.noEntriesFoundLabel)}}function it(i,n){if(i&1&&(g(0,"div",17),b(1,et,1,0,"ng-content",15)(2,tt,1,1,"ng-template",null,3,G),m()),i&2){let e=$(3),t=u();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var nt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),ot=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],rt=new ie("mat-selectsearch-default-options"),at=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),ci=(()=>{class i{constructor(e,t,o,r=null,a=null,U){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new re,this.onTouched=l=>{},this._options$=new k(null),this.optionsList$=this._options$.pipe(I(l=>l?l.changes.pipe(_(V=>V.toArray()),X(l.toArray())):Z(null))),this.optionsLength$=this.optionsList$.pipe(_(l=>l?l.length:0)),this._formControl=new xe(""),this._showNoEntriesFound$=z([this._formControl.valueChanges,this.optionsLength$]).pipe(_(([l,V])=>this.noEntriesFoundLabel&&l&&V===this.getOptionsLengthOffset())),this._onDestroy=new K,this.applyDefaultOptions(U)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let t of ot)e.hasOwnProperty(t)&&(this[t]=e[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(q(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(A(1),I(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(O(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!t||!this.matSelect.compareWith(t.value,r.value)||!a.activeItem||!o.find(l=>this.matSelect.compareWith(l.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=r})}))})).pipe(h(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(h(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(h(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(h(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode===32||this.preventHomeEndKeyPropagation&&(e.keyCode===36||e.keyCode===35))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&e.keyCode===27&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.keyCode===38||e.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===t);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(y(t=>t!==this._lastExternalInputValue),O(()=>this._lastExternalInputValue=void 0),h(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(h(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(e.push(r),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,t;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(e){return new(e||i)(d(He),d(ge),d(we),d(be,8),d(Te,8),d(rt,8))},i.\u0275cmp=N({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,o){if(e&1&&(W(o,nt,5),W(o,at,5)),e&2){let r;v(r=x())&&(t.clearIcon=r.first),v(r=x())&&(t.noEntriesFound=r.first)}},viewQuery:function(e,t){if(e&1&&(Q(Be,7,H),Q(Ge,7,H)),e&2){let o;v(o=x())&&(t.searchSelectInput=o.first),v(o=x())&&(t.innerSelectSearch=o.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[pe([{provide:Ie,useExisting:Y(()=>i),multi:!0}])],ngContentSelectors:Ke,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,t){if(e&1){let o=T();se(Ue),M(0,"input",4),g(1,"div",5,0)(3,"div",6),b(4,ze,1,5,"mat-checkbox",7),g(5,"input",8,1),P("keydown",function(a){return S(o),C(t._handleKeydown(a))})("keyup",function(a){return S(o),C(t._handleKeyup(a))})("blur",function(){return S(o),C(t.onBlur())}),m(),b(7,qe,1,0,"mat-spinner",9)(8,Ye,4,2,"button",10),D(9),m(),M(10,"mat-divider"),m(),b(11,it,4,2,"div",11),ue(12,"async")}e&2&&(c(),s("ngClass",me(11,Ze,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ae("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",de(12,9,t._showNoEntriesFound$)))},dependencies:[fe,_e,Oe,ve,Ee,Ae,Ve,Pe,w,L,Me,Se],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var pi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=oe({type:i}),i.\u0275inj=te({imports:[Ce,ke,Ne,je,De,F,R,ye]}),i})();export{ct as a,p as b,Ct as c,rt as d,ci as e,pi as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7WTGJY2P.js b/frontend/server/modelsmith-build/browser/chunk-7WTGJY2P.js new file mode 100644 index 00000000..eaefde12 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-7WTGJY2P.js @@ -0,0 +1,5 @@ +import{b as ca}from"./chunk-LRK34XDC.js";import{a as he,c as ha}from"./chunk-XX6ZYDLH.js";import{b as fa,r as Ss,s as ua}from"./chunk-QTJZRTNN.js";import{a as la,b as qe}from"./chunk-6VRVKV6C.js";import{$ as qr,Ab as ra,Bb as aa,Ea as ta,Fa as ce,K as qn,Ka as ea,L as Gr,Sa as ia,_ as Ee,a as xs,ab as sa,b as _s,bb as na,ca as ys,cb as oa,d as Uf,e as Yf,ha as Kr,ia as Zr,j as Gn,ja as Qr,k as Mi,oa as vs,p as $r,qb as Zn,rb as Qn,sb as Jn,xa as Jr,ya as Kn}from"./chunk-64NP6AY6.js";var Gh=Uf((MT,Fn)=>{"use strict";(function(e,i,t,s){"use strict";var n=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),r="function",a=Math.round,l=Math.abs,c=Date.now;function h(d,g,x){return setTimeout(S(d,x),g)}function f(d,g,x){return Array.isArray(d)?(u(d,x[g],x),!0):!1}function u(d,g,x){var v;if(d)if(d.forEach)d.forEach(g,x);else if(d.length!==s)for(v=0;v\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",B=e.console&&(e.console.warn||e.console.log);return B&&B.call(e.console,v,k),d.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(g){if(g===s||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(g),v=1;v-1}function D(d){return d.trim().split(/\s+/g)}function I(d,g,x){if(d.indexOf&&!x)return d.indexOf(g);for(var v=0;vht[g]}):v=v.sort()),v}function Q(d,g){for(var x,v,P=g[0].toUpperCase()+g.slice(1),k=0;k1&&!x.firstMultiple?x.firstMultiple=kr(g):P===1&&(x.firstMultiple=!1);var k=x.firstInput,B=x.firstMultiple,nt=B?B.center:k.center,at=g.center=Dr(v);g.timeStamp=c(),g.deltaTime=g.timeStamp-k.timeStamp,g.angle=Nn(nt,at),g.distance=hs(nt,at),yf(x,g),g.offsetDirection=Ir(g.deltaX,g.deltaY);var ht=Er(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=ht.x,g.overallVelocityY=ht.y,g.overallVelocity=l(ht.x)>l(ht.y)?ht.x:ht.y,g.scale=B?Cf(B.pointers,v):1,g.rotation=B?Sf(B.pointers,v):0,g.maxPointers=x.prevInput?g.pointers.length>x.prevInput.maxPointers?g.pointers.length:x.prevInput.maxPointers:g.pointers.length,vf(x,g);var Ft=d.element;A(g.srcEvent.target,Ft)&&(Ft=g.srcEvent.target),g.target=Ft}function yf(d,g){var x=g.center,v=d.offsetDelta||{},P=d.prevDelta||{},k=d.prevInput||{};(g.eventType===K||k.eventType===et)&&(P=d.prevDelta={x:k.deltaX||0,y:k.deltaY||0},v=d.offsetDelta={x:x.x,y:x.y}),g.deltaX=P.x+(x.x-v.x),g.deltaY=P.y+(x.y-v.y)}function vf(d,g){var x=d.lastInterval||g,v=g.timeStamp-x.timeStamp,P,k,B,nt;if(g.eventType!=gt&&(v>Oe||x.velocity===s)){var at=g.deltaX-x.deltaX,ht=g.deltaY-x.deltaY,Ft=Er(v,at,ht);k=Ft.x,B=Ft.y,P=l(Ft.x)>l(Ft.y)?Ft.x:Ft.y,nt=Ir(at,ht),d.lastInterval=g}else P=x.velocity,k=x.velocityX,B=x.velocityY,nt=x.direction;g.velocity=P,g.velocityX=k,g.velocityY=B,g.direction=nt}function kr(d){for(var g=[],x=0;x=l(g)?d<0?xi:_i:g<0?yi:vi}function hs(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.sqrt(v*v+P*P)}function Nn(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.atan2(P,v)*180/Math.PI}function Sf(d,g){return Nn(g[1],g[0],cs)+Nn(d[1],d[0],cs)}function Cf(d,g){return hs(g[0],g[1],cs)/hs(d[0],d[1],cs)}var Tf={mousedown:K,mousemove:Ae,mouseup:et},Mf="mousedown",Pf="mousemove mouseup";function fs(){this.evEl=Mf,this.evWin=Pf,this.pressed=!1,St.apply(this,arguments)}y(fs,St,{handler:function(g){var x=Tf[g.type];x&K&&g.button===0&&(this.pressed=!0),x&Ae&&g.which!==1&&(x=et),this.pressed&&(x&et&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[g],changedPointers:[g],pointerType:Ut,srcEvent:g}))}});var wf={pointerdown:K,pointermove:Ae,pointerup:et,pointercancel:gt,pointerout:gt},Of={2:It,3:ae,4:Ut,5:Yt},Lr="pointerdown",Rr="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Lr="MSPointerDown",Rr="MSPointerMove MSPointerUp MSPointerCancel");function Bn(){this.evEl=Lr,this.evWin=Rr,St.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(Bn,St,{handler:function(g){var x=this.store,v=!1,P=g.type.toLowerCase().replace("ms",""),k=wf[P],B=Of[g.pointerType]||g.pointerType,nt=B==It,at=I(x,g.pointerId,"pointerId");k&K&&(g.button===0||nt)?at<0&&(x.push(g),at=x.length-1):k&(et|gt)&&(v=!0),!(at<0)&&(x[at]=g,this.callback(this.manager,k,{pointers:x,changedPointers:[g],pointerType:B,srcEvent:g}),v&&x.splice(at,1))}});var Af={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},kf="touchstart",Df="touchstart touchmove touchend touchcancel";function Fr(){this.evTarget=kf,this.evWin=Df,this.started=!1,St.apply(this,arguments)}y(Fr,St,{handler:function(g){var x=Af[g.type];if(x===K&&(this.started=!0),!!this.started){var v=Ef.call(this,g,x);x&(et|gt)&&v[0].length-v[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}}});function Ef(d,g){var x=R(d.touches),v=R(d.changedTouches);return g&(et|gt)&&(x=z(x.concat(v),"identifier",!0)),[x,v]}var If={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},Lf="touchstart touchmove touchend touchcancel";function us(){this.evTarget=Lf,this.targetIds={},St.apply(this,arguments)}y(us,St,{handler:function(g){var x=If[g.type],v=Rf.call(this,g,x);v&&this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}});function Rf(d,g){var x=R(d.touches),v=this.targetIds;if(g&(K|Ae)&&x.length===1)return v[x[0].identifier]=!0,[x,x];var P,k,B=R(d.changedTouches),nt=[],at=this.target;if(k=x.filter(function(ht){return A(ht.target,at)}),g===K)for(P=0;P-1&&v.splice(k,1)};setTimeout(P,Ff)}}function Nf(d){for(var g=d.srcEvent.clientX,x=d.srcEvent.clientY,v=0;v-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var g=this,x=this.state;function v(P){g.manager.emit(P,d)}x=le&&v(g.options.event+Hr(x))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=Rt},canEmit:function(){for(var d=0;dg.threshold&&P&g.direction},attrTest:function(d){return Pt.prototype.attrTest.call(this,d)&&(this.state&Ct||!(this.state&Ct)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var g=Ur(d.direction);g&&(d.additionalEvent=this.options.event+g),this._super.emit.call(this,d)}});function Hn(){Pt.apply(this,arguments)}y(Hn,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ct)},emit:function(d){if(d.scale!==1){var g=d.scale<1?"in":"out";d.additionalEvent=this.options.event+g}this._super.emit.call(this,d)}});function Un(){$t.apply(this,arguments),this._timer=null,this._input=null}y(Un,$t,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[jr]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distanceg.time;if(this._input=d,!v||!x||d.eventType&(et|gt)&&!P)this.reset();else if(d.eventType&K)this.reset(),this._timer=h(function(){this.state=Xt,this.tryEmit()},g.time,this);else if(d.eventType&et)return Xt;return Rt},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===Xt&&(d&&d.eventType&et?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}});function Yn(){Pt.apply(this,arguments)}y(Yn,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ct)}});function Xn(){Pt.apply(this,arguments)}y(Xn,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Lt|ke,pointers:1},getTouchAction:function(){return ms.prototype.getTouchAction.call(this)},attrTest:function(d){var g=this.options.direction,x;return g&(Lt|ke)?x=d.overallVelocity:g&Lt?x=d.overallVelocityX:g&ke&&(x=d.overallVelocityY),this._super.attrTest.call(this,d)&&g&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&l(x)>this.options.velocity&&d.eventType&et},emit:function(d){var g=Ur(d.offsetDirection);g&&this.manager.emit(this.options.event+g,d),this.manager.emit(this.options.event,d)}});function bs(){$t.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(bs,$t,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wn]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distance{let i=class i{get toggleZoom$(){return this._toggleZoomSubject.asObservable()}set toggleZoom(s){this._toggleZoomSubject.next(s)}get toggleTooltips$(){return this._toggleTooltipsSubject.asObservable()}set toggleTooltips(s){this._toggleTooltipsSubject.next(s)}constructor(){this._toggleTooltipsSubject=new Mi(!1),this._toggleZoomSubject=new Mi(!1)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac});let e=i;return e})();function Oi(e){return e+.5|0}var fe=(e,i,t)=>Math.max(Math.min(e,t),i);function Pi(e){return fe(Oi(e*2.55),0,255)}function ue(e){return fe(Oi(e*255),0,255)}function qt(e){return fe(Oi(e/2.55)/100,0,1)}function pa(e){return fe(Oi(e*100),0,100)}var Tt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},io=[..."0123456789ABCDEF"],$f=e=>io[e&15],Gf=e=>io[(e&240)>>4]+io[e&15],Cs=e=>(e&240)>>4===(e&15),qf=e=>Cs(e.r)&&Cs(e.g)&&Cs(e.b)&&Cs(e.a);function Kf(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&Tt[e[1]]*17,g:255&Tt[e[2]]*17,b:255&Tt[e[3]]*17,a:i===5?Tt[e[4]]*17:255}:(i===7||i===9)&&(t={r:Tt[e[1]]<<4|Tt[e[2]],g:Tt[e[3]]<<4|Tt[e[4]],b:Tt[e[5]]<<4|Tt[e[6]],a:i===9?Tt[e[7]]<<4|Tt[e[8]]:255})),t}var Zf=(e,i)=>e<255?i(e):"";function Qf(e){var i=qf(e)?$f:Gf;return e?"#"+i(e.r)+i(e.g)+i(e.b)+Zf(e.a,i):void 0}var Jf=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xa(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function tu(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function eu(e,i,t){let s=xa(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function iu(e,i,t,s,n){return e===n?(i-t)/s+(i.5?h/(2-o-r):h/(o+r),l=iu(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function no(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(ue)}function oo(e,i,t){return no(xa,e,i,t)}function su(e,i,t){return no(eu,e,i,t)}function nu(e,i,t){return no(tu,e,i,t)}function _a(e){return(e%360+360)%360}function ou(e){let i=Jf.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Pi(+i[5]):ue(+i[5]));let n=_a(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=su(n,o,r):i[1]==="hsv"?s=nu(n,o,r):s=oo(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function ru(e,i){var t=so(e);t[0]=_a(t[0]+i),t=oo(t),e.r=t[0],e.g=t[1],e.b=t[2]}function au(e){if(!e)return;let i=so(e),t=i[0],s=pa(i[1]),n=pa(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${qt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var ga={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ma={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lu(){let e={},i=Object.keys(ma),t=Object.keys(ga),s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}var Ts;function cu(e){Ts||(Ts=lu(),Ts.transparent=[0,0,0,0]);let i=Ts[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var hu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function fu(e){let i=hu.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Pi(r):fe(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Pi(s):fe(s,0,255)),n=255&(i[4]?Pi(n):fe(n,0,255)),o=255&(i[6]?Pi(o):fe(o,0,255)),{r:s,g:n,b:o,a:t}}}function uu(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var eo=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ke=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function du(e,i,t){let s=Ke(qt(e.r)),n=Ke(qt(e.g)),o=Ke(qt(e.b));return{r:ue(eo(s+t*(Ke(qt(i.r))-s))),g:ue(eo(n+t*(Ke(qt(i.g))-n))),b:ue(eo(o+t*(Ke(qt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function Ms(e,i,t){if(e){let s=so(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=oo(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function ya(e,i){return e&&Object.assign(i||{},e)}function ba(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=ue(e[3]))):(i=ya(e,{r:0,g:0,b:0,a:1}),i.a=ue(i.a)),i}function pu(e){return e.charAt(0)==="r"?fu(e):ou(e)}var wi=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=ba(i):t==="string"&&(s=Kf(i)||cu(i)||pu(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=ya(this._rgb);return i&&(i.a=qt(i.a)),i}set rgb(i){this._rgb=ba(i)}rgbString(){return this._valid?uu(this._rgb):void 0}hexString(){return this._valid?Qf(this._rgb):void 0}hslString(){return this._valid?au(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=du(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=ue(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=Oi(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Ms(this._rgb,2,i),this}darken(i){return Ms(this._rgb,2,-i),this}saturate(i){return Ms(this._rgb,1,i),this}desaturate(i){return Ms(this._rgb,1,-i),this}rotate(i){return ru(this._rgb,i),this}};function At(){}var co=(()=>{let e=0;return()=>e++})();function V(e){return e===null||typeof e>"u"}function H(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function N(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function G(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function dt(e,i){return G(e)?e:i}function E(e,i){return typeof e>"u"?i:e}var ho=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,Ds=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function L(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function F(e,i,t,s){let n,o,r;if(H(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;ne,x:e=>e.x,y:e=>e.y};function Ia(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function gu(e){let i=Ia(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function Bt(e,i){return(va[i]||(va[i]=gu(i)))(e)}function Ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ze=e=>typeof e<"u",zt=e=>typeof e=="function",Es=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function fo(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var U=Math.PI,Y=2*U,La=Y+U,Di=Number.POSITIVE_INFINITY,Ra=U/180,Z=U/2,de=U/4,ao=U*2/3,Nt=Math.log10,ut=Math.sign;function Ne(e,i,t){return Math.abs(e-i)n-o).pop(),i}function ge(e){return!isNaN(parseFloat(e))&&isFinite(e)}function po(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function Ls(e,i,t){let s,n,o;for(s=0,n=e.length;sl&&c=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function Ri(e,i,t){t=t||(r=>e[r]1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var wt=(e,i,t,s)=>Ri(e,t,s?n=>{let o=e[n][i];return oe[n][i]Ri(e,t,s=>e[s][i]>=t);function bo(e,i,t){let s=0,n=e.length;for(;ss&&e[n-1]>t;)n--;return s>0||n{let s="_onData"+Ii(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function zs(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>0)&&(za.forEach(o=>{delete e[o]}),delete e._chartjs)}function Ns(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var Bs=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Vs(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,Bs.call(window,()=>{s=!1,e.apply(i,t)}))}}function _o(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var Fi=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,yo=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function Ws(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:u}=r.getUserBounds();f&&(n=it(Math.min(wt(a,l,c).lo,t?s:wt(i,l,r.getPixelForValue(c)).lo),0,s-1)),u?o=it(Math.max(wt(a,r.axis,h,!0).hi+1,t?0:wt(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function js(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var Ps=e=>e===0||e===1,Sa=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*Y/t)),Ca=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*Y/t)+1,Ie={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Z)+1,easeOutSine:e=>Math.sin(e*Z),easeInOutSine:e=>-.5*(Math.cos(U*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ps(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ps(e)?e:Sa(e,.075,.3),easeOutElastic:e=>Ps(e)?e:Ca(e,.075,.3),easeInOutElastic(e){return Ps(e)?e:e<.5?.5*Sa(e*2,.1125,.45):.5+.5*Ca(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-Ie.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ie.easeInBounce(e*2)*.5:Ie.easeOutBounce(e*2-1)*.5+.5};function Hs(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function Us(e){return Hs(e)?e:new wi(e)}function As(e){return Hs(e)?e:new wi(e).saturate(.5).darken(.1).hexString()}var mu=["x","y","borderWidth","radius","tension"],bu=["color","borderColor","backgroundColor"];function xu(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:bu},numbers:{type:"number",properties:mu}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}})}function _u(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ta=new Map;function yu(e,i){i=i||{};let t=e+JSON.stringify(i),s=Ta.get(t);return s||(s=new Intl.NumberFormat(e,i),Ta.set(t,s)),s}function Ve(e,i,t){return yu(i,t).format(e)}var Na={values(e){return H(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=vu(e,t)}let r=Nt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ve(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(Nt(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?Na.numeric.call(this,e,i,t):""}};function vu(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var zi={formatters:Na};function Su(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var me=Object.create(null),Ys=Object.create(null);function Ai(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>As(n.backgroundColor),this.hoverBorderColor=(s,n)=>As(n.borderColor),this.hoverColor=(s,n)=>As(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return ro(this,i,t)}get(i){return Ai(this,i)}describe(i,t){return ro(Ys,i,t)}override(i,t){return ro(me,i,t)}route(i,t,s,n){let o=Ai(this,i),r=Ai(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return N(l)?Object.assign({},c,l):E(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},X=new lo({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xu,_u,Su]);function Ba(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ze(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function vo(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,u;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function Ot(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.xi.top-t&&e.y0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,Cu(e,o),l=0;l+e||0;function Bi(e,i){let t={},s=N(i),n=s?Object.keys(i):i,o=N(e)?s?r=>E(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=Ou(o(r));return t}function Gs(e){return Bi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Jt(e){return Bi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rt(e){let i=Gs(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function J(e,i){e=e||{},i=i||X.font;let t=E(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=E(e.style,i.style);s&&!(""+s).match(wu)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:E(e.family,i.family),lineHeight:Va(E(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:E(e.weight,i.weight),string:""};return n.string=Ba(n),n}function je(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;ot&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function Vt(e,i){return Object.assign(Object.create(e),i)}function Vi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=Ha("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Vi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Wa(a,l,()=>Fu(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Pa(a).includes(l)},ownKeys(a){return Pa(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function pe(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:qs(e,s),setContext:o=>pe(e,o,t,s),override:o=>pe(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return Wa(o,r,()=>ku(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function qs(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:zt(t)?t:()=>t,isIndexable:zt(s)?s:()=>s}}var Au=(e,i)=>e?e+Ii(i):i,Mo=(e,i)=>N(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function Wa(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i))return e[i];let s=t();return e[i]=s,s}function ku(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return zt(a)&&r.isScriptable(i)&&(a=Du(i,a,e,t)),H(a)&&a.length&&(a=Eu(i,a,e,r.isIndexable)),Mo(i,a)&&(a=pe(a,n,o&&o[i],r)),a}function Du(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),Mo(e,l)&&(l=Po(n._scopes,n,e,l)),l}function Eu(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(N(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Po(c,n,e,h);i.push(pe(f,o,r&&r[e],a))}}return i}function ja(e,i,t){return zt(e)?e(i,t):e}var Iu=(e,i)=>e===!0?i:typeof e=="string"?Bt(i,e):void 0;function Lu(e,i,t,s,n){for(let o of i){let r=Iu(t,o);if(r){e.add(r);let a=ja(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Po(e,i,t,s){let n=i._rootScopes,o=ja(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Ma(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Ma(a,r,o,l,s),l===null)?!1:Vi(Array.from(a),[""],n,o,()=>Ru(i,t,s))}function Ma(e,i,t,s,n){for(;t;)t=Lu(e,i,t,s,n);return t}function Ru(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return H(n)&&N(t)?t:n||{}}function Fu(e,i,t,s){let n;for(let o of i)if(n=Ha(Au(o,e),t),typeof n<"u")return Mo(e,n)?Po(t,s,e,n):n}function Ha(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function Pa(e){let i=e._keys;return i||(i=e._keys=zu(e._scopes)),i}function zu(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ks(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;aie==="x"?"y":"x";function Ya(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=Ei(o,n),l=Ei(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,u=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+u*(r.x-n.x),y:o.y+u*(r.y-n.y)}}}function Bu(e,i,t){let s=e.length,n,o,r,a,l,c=Qe(e,0);for(let h=0;h!c.skip)),i.cubicInterpolationMode==="monotone")Xa(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function $a(e,i){return Zs(e).getPropertyValue(i)}var ju=["top","right","bottom","left"];function Le(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=ju[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var Hu=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function Uu(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(Hu(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function vt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=Zs(t),o=n.boxSizing==="border-box",r=Le(n,"padding"),a=Le(n,"border","width"),{x:l,y:c,box:h}=Uu(e,t),f=r.left+(h&&a.left),u=r.top+(h&&a.top),{width:p,height:m}=i;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-f)/p*t.width/s),y:Math.round((c-u)/m*t.height/s)}}function Yu(e,i,t){let s,n;if(i===void 0||t===void 0){let o=ji(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=Zs(o),l=Le(a,"border","width"),c=Le(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=ks(a.maxWidth,o,"clientWidth"),n=ks(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||Di,maxHeight:n||Di}}var Os=e=>Math.round(e*10)/10;function Oo(e,i,t,s){let n=Zs(e),o=Le(n,"margin"),r=ks(n.maxWidth,e,"clientWidth")||Di,a=ks(n.maxHeight,e,"clientHeight")||Di,l=Yu(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let u=Le(n,"border","width"),p=Le(n,"padding");c-=p.width+u.width,h-=p.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=Os(Math.min(c,r,l.maxWidth)),h=Os(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Os(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=Os(Math.floor(h*s))),{width:c,height:h}}function Qs(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var Ao=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};Wi()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function Js(e,i){let t=$a(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Kt(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function ko(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function Do(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Kt(e,n,t),a=Kt(n,o,t),l=Kt(o,i,t),c=Kt(r,a,t),h=Kt(a,l,t);return Kt(c,h,t)}var Xu=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},$u=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function be(e,i,t){return e?Xu(i,t):$u()}function tn(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function en(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function Ga(e){return e==="angle"?{between:Be,compare:Fa,normalize:ft}:{between:kt,compare:(i,t)=>i-t,normalize:i=>i}}function wa({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Gu(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=Ga(s),l=i.length,{start:c,end:h,loop:f}=e,u,p;if(f){for(c+=l,h+=l,u=0,p=l;ul(n,T,y)&&a(n,T)!==0,C=()=>a(o,y)===0||l(o,T,y),M=()=>b||w(),A=()=>!b||C();for(let O=h,D=h;O<=f;++O)S=i[O%r],!S.skip&&(y=c(S[s]),y!==T&&(b=l(y,n,o),_===null&&M()&&(_=a(y,n)===0?O:D),_!==null&&A()&&(m.push(wa({start:_,end:O,loop:u,count:r,style:p})),_=null),D=O,T=y));return _!==null&&m.push(wa({start:_,end:f,loop:u,count:r,style:p})),m}function nn(e,i){let t=[],s=e.segments;for(let n=0;nn&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Ku(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function Eo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=qu(t,n,o,s);if(s===!0)return Oa(e,[{start:r,end:a,loop:o}],t,i);let l=aa({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Bs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},te=new jo,qa="transparent",Ju={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=Us(e||qa),n=s.valid&&Us(i||qa);return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},Ho=class{constructor(i,t,s,n){let o=t[s];n=je([i.to,n,o,i.from]);let r=je([i.from,o,n]);this._active=!0,this._fn=i.fn||Ju[i.type||typeof r],this._easing=Ie[i.easing]||Ie.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=je([i.to,t,n,i.from]),this._from=je([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n{let o=i[n];if(!N(o))return;let r={};for(let a of t)r[a]=o[a];(H(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=ed(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&td(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],u=s.get(c);if(f)if(u&&f.active()){f.update(u,h,a);continue}else f.cancel();if(!u||!u.duration){i[c]=h;continue}o[c]=f=new Ho(u,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return te.add(this._chart,s),!0}};function td(e,i){let t=[],s=Object.keys(i);for(let n=0;n0||!t&&o<0)return n.index}return null}function tl(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=od(o,r,s),f=i.length,u;for(let p=0;pt[s].axis===i).shift()}function ld(e,i){return Vt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function cd(e,i,t){return Vt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Hi(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Lo=e=>e==="reset"||e==="none",el=(e,i)=>i?e:Object.assign({},e),hd=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:Kl(t,!0),values:null},_e=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Qa(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Hi(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(u,p,m,b)=>u==="x"?p:u==="r"?b:m,r=s.xAxisID=E(n.xAxisID,Io(t,"x")),a=s.yAxisID=E(n.yAxisID,Io(t,"y")),l=s.rAxisID=E(n.rAxisID,Io(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&zs(this._data,this),t._stacked&&Hi(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(N(s))this._data=nd(s);else if(n!==s){if(n){zs(n,this);let o=this._cachedMeta;Hi(o),o._parsed=[]}s&&Object.isExtensible(s)&&xo(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=Qa(s.vScale,s),s.stack!==n.stack&&(o=!0,Hi(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&tl(this,s._parsed)}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,u,p;if(this._parsing===!1)n._parsed=o,n._sorted=!0,p=o;else{H(o[t])?p=this.parseArrayData(n,o,t,s):N(o[t])?p=this.parseObjectData(n,o,t,s):p=this.parsePrimitiveData(n,o,t,s);let m=()=>u[l]===null||h&&u[l]_||u<_}for(p=0;p=0;--p)if(!b()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o=0&&tthis.getContext(n,o,s),_=h.resolveNamedOptions(p,m,b,u);return _.$shared&&(_.$shared=c,r[a]=Object.freeze(el(_,c))),_}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,u=f.datasetAnimationScopeKeys(this._type,s),p=f.getOptionScopes(this.getDataset(),u);c=f.createResolver(p,this.getContext(t,n,s))}let h=new pn(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Lo(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Lo(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Lo(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;ln-o))}return e._cache.$bar}function ud(e){let i=e.iScale,t=fd(i,e.type),s=i._length,n,o,r,a,l=()=>{r===32767||r===-32768||(ze(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n0?n[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Zl(e,i,t,s){return H(e)?gd(e,i,t,s):i[t.axis]=t.parse(e,s),i}function il(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,u;for(c=t,h=t+s;c=t?1:-1)}function bd(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base{class e extends _e{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,s,n,o){return il(t,s,n,o)}parseArrayData(t,s,n,o){return il(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,u=[],p,m,b,_;for(p=n,m=n+o;pc.controller.options.grouped),r=n.options.stacked,a=[],l=c=>{let h=c.controller.getParsed(s),f=h&&h[c.vScale.axis];if(V(f)||isNaN(f))return!0};for(let c of o)if(!(s!==void 0&&l(c))&&((r===!1||a.indexOf(c.stack)===-1||r===void 0&&c.stack===void 0)&&a.push(c.stack),c.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r{class e extends _e{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,u=l.axis;for(let p=s;pBe(T,a,l,!0)?1:Math.max(w,w*t,C,C*t),m=(T,w,C)=>Be(T,a,l,!0)?-1:Math.min(w,w*t,C,C*t),b=p(0,c,f),_=p(Z,h,u),y=m(U,c,f),S=m(U+Z,h,u);s=(b-y)/2,n=(_-S)/2,o=-(b+y)/2,r=-(_+S)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var cr=(()=>{class e extends _e{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}};constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(N(n[t])){let{key:c="value"}=this._parsing;r=h=>+Bt(n[h],c)}let a,l;for(a=t,l=t+s;a0&&!isNaN(t)?Y*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o{class e extends _e{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=Ws(s,o,a);this._drawStart=l,this._drawCount=c,js(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:u}=this._getSharedOptions(s,o),p=a.axis,m=l.axis,{spanGaps:b,segment:_}=this.options,y=ge(b)?b:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||r||o==="none",T=s+n,w=t.length,C=s>0&&this.getParsed(s-1);for(let M=0;M=T){O.skip=!0;continue}let D=this.getParsed(M),I=V(D[m]),R=O[p]=a.getPixelForValue(D[p],M),z=O[m]=r||I?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,D,c):D[m],M);O.skip=isNaN(R)||isNaN(z)||I,O.stop=M>0&&Math.abs(D[p]-C[p])>y,_&&(O.parsed=D,O.raw=h.data[M]),u&&(O.options=f||this.resolveDataElementOptions(M,A.active?"active":o)),S||this.updateElement(A,M,O,o),C=D}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),Ql=(()=>{class e extends _e{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(rs.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,u=h.yCenter,p=h.getIndexAngle(0)-.5*U,m=p,b,_=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?yt(this.resolveDataElementOptions(t,s).angle||n):0}}return e})(),Md=(()=>{class e extends cr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),Pd=(()=>{class e extends _e{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l{class e extends _e{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=Ws(s,n,o);if(this._drawStart=r,this._drawCount=a,js(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),u=this.getSharedOptions(f),p=this.includeOptions(o,u),m=a.axis,b=l.axis,{spanGaps:_,segment:y}=this.options,S=ge(_)?_:Number.POSITIVE_INFINITY,T=this.chart._animationsDisabled||r||o==="none",w=s>0&&this.getParsed(s-1);for(let C=s;C0&&Math.abs(A[m]-w[m])>S,y&&(O.parsed=A,O.raw=h.data[C]),p&&(O.options=u||this.resolveDataElementOptions(C,M.active?"active":o)),T||this.updateElement(M,C,O,o),w=A}this.updateSharedOptions(u,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return e})(),Od=Object.freeze({__proto__:null,BarController:vd,BubbleController:Sd,DoughnutController:cr,LineController:Td,PieController:Md,PolarAreaController:Ql,RadarController:Pd,ScatterController:wd});function He(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Uo=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return He()}parse(){return He()}format(){return He()}add(){return He()}diff(){return He()}startOf(){return He()}endOf(){return He()}},Ad={_date:Uo};function kd(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?mo:wt;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),u=l(o,i,t+h);return{lo:f.lo,hi:u.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function Ji(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a{l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var Ld={evaluateInteractionItems:Ji,modes:{index(e,i,t,s){let n=vt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=vt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;ht.pos===i)}function rl(e,i){return e.filter(t=>Jl.indexOf(t.pos)===-1&&t.box.axis===i)}function Yi(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Rd(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;tc.box.fullSize),!0),s=Yi(Ui(i,"left"),!0),n=Yi(Ui(i,"right")),o=Yi(Ui(i,"top"),!0),r=Yi(Ui(i,"bottom")),a=rl(i,"x"),l=rl(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Ui(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function al(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function tc(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function Bd(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!N(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&tc(r,o.getPadding());let a=Math.max(0,i.outerWidth-al(r,e,"left","right")),l=Math.max(0,i.outerHeight-al(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function Vd(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function Wd(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Gi(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o{typeof b.beforeLayout=="function"&&b.beforeLayout()});let h=l.reduce((b,_)=>_.box.options&&_.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);tc(u,rt(s));let p=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=zd(l.concat(c),f);Gi(a.fullSize,p,f,m),Gi(l,p,f,m),Gi(c,p,f,m)&&Gi(l,p,f,m),Vd(p),ll(a.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,ll(a.rightAndBottom,p,f,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},F(a.chartArea,b=>{let _=b.box;Object.assign(_,e.chartArea),_.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},gn=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Yo=class extends gn{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},un="$chartjs",jd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},cl=e=>e===null||e==="";function Hd(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[un]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",cl(n)){let o=Js(e,"width");o!==void 0&&(e.width=o)}if(cl(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=Js(e,"height");o!==void 0&&(e.height=o)}return e}var ec=Ao?{passive:!0}:!1;function Ud(e,i,t){e.addEventListener(i,t,ec)}function Yd(e,i,t){e.canvas.removeEventListener(i,t,ec)}function Xd(e,i){let t=jd[e.type]||e.type,{x:s,y:n}=vt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function mn(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function $d(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.addedNodes,s),r=r&&!mn(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Gd(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.removedNodes,s),r=r&&!mn(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Ki=new Map,hl=0;function ic(){let e=window.devicePixelRatio;e!==hl&&(hl=e,Ki.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function qd(e,i){Ki.size||window.addEventListener("resize",ic),Ki.set(e,i)}function Kd(e){Ki.delete(e),Ki.size||window.removeEventListener("resize",ic)}function Zd(e,i,t){let s=e.canvas,n=s&&ji(s);if(!n)return;let o=Vs((a,l)=>{let c=n.clientWidth;t(a,l),c{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),qd(e,o),r}function No(e,i,t){t&&t.disconnect(),i==="resize"&&Kd(e)}function Qd(e,i,t){let s=e.canvas,n=Vs(o=>{e.ctx!==null&&t(Xd(o,e))},e);return Ud(s,i,n),n}var Xo=class extends gn{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(Hd(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[un])return!1;let s=t[un].initial;["height","width"].forEach(o=>{let r=s[o];V(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[un],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:$d,detach:Gd,resize:Zd}[t]||Qd;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:No,detach:No,resize:No}[t]||Yd)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return Oo(i,t,s,n)}isAttached(i){let t=ji(i);return!!(t&&t.isConnected)}};function Jd(e){return!Wi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Yo:Xo}var Dt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return ge(this.x)&&ge(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};function tp(e,i){let t=e.options.ticks,s=ep(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?sp(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return np(i,c,o,r/n),c;let h=ip(o,i,n);if(r>0){let f,u,p=r>1?Math.round((l-a)/(r-1)):null;for(rn(i,c,h,V(p)?0:a-p,a),f=0,u=r-1;fn)return l}return Math.max(n,1)}function sp(e){let i=[],t,s;for(t=0,s=e.length;te==="left"?"right":e==="right"?"left":e,fl=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,ul=(e,i)=>Math.min(i||e,e);function dl(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;or+a)))return l}function lp(e,i){F(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;os?s:t,s=n&&t>s?t:s,{min:dt(t,dt(s,t)),max:dt(s,dt(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){L(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=To(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,u=h.highest.height,p=it(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:p/(s-1),f+6>a&&(a=p/(s-(i.offset?.5:1)),l=this.maxHeight-Xi(i.grid)-t.padding-pl(i.title,this.chart.options.font),c=Math.sqrt(f*f+u*u),r=Li(Math.min(Math.asin(it((h.highest.height+6)/a,-1,1)),Math.asin(it(l/c,-1,1))-Math.asin(it(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){L(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){L(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=pl(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Xi(o)+l):(i.height=this.maxHeight,i.width=Xi(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:u}=this._getLabelSizes(),p=s.padding*2,m=yt(this.labelRotation),b=Math.cos(m),_=Math.sin(m);if(a){let y=s.mirror?0:_*f.width+b*u.height;i.height=Math.min(this.maxHeight,i.height+y+p)}else{let y=s.mirror?0:b*f.width+_*u.height;i.width=Math.min(this.maxWidth,i.width+y+p)}this._calculatePadding(c,h,_,b)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),u=0,p=0;l?c?(u=n*i.width,p=s*t.height):(u=s*i.height,p=n*t.width):o==="start"?p=t.width:o==="end"?u=i.width:o!=="inner"&&(u=i.width/2,p=t.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((p-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){L(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t({width:r[D]||0,height:a[D]||0});return{first:O(0),last:O(t-1),widest:O(M),highest:O(A),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return go(this._alignToPixels?Zt(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&ia*n?a/s:l/n:l*n0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),u=Xi(o),p=[],m=a.setContext(this.getContext()),b=m.display?m.width:0,_=b/2,y=function(j){return Zt(s,j,b)},S,T,w,C,M,A,O,D,I,R,z,Q;if(r==="top")S=y(this.bottom),A=this.bottom-u,D=S-_,R=y(i.top)+_,Q=i.bottom;else if(r==="bottom")S=y(this.top),R=i.top,Q=y(i.bottom)-_,A=S+_,D=this.top+u;else if(r==="left")S=y(this.right),M=this.right-u,O=S-_,I=y(i.left)+_,z=i.right;else if(r==="right")S=y(this.left),I=i.left,z=y(i.right)-_,M=S+_,O=this.left+u;else if(t==="x"){if(r==="center")S=y((i.top+i.bottom)/2+.5);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}R=i.top,Q=i.bottom,A=S+_,D=A+u}else if(t==="y"){if(r==="center")S=y((i.left+i.right)/2);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}M=S-_,O=M-u,I=i.left,z=i.right}let ct=E(n.ticks.maxTicksLimit,f),W=Math.max(1,Math.ceil(f/ct));for(T=0;T0&&(K-=Yt/2);break}It={left:K,top:Oe,width:Yt+ae.width,height:Ut+ae.height,color:W.backdropColor}}_.push({label:w,font:D,textOffset:z,options:{rotation:b,color:q,strokeColor:pt,strokeWidth:st,textAlign:re,textBaseline:Q,translation:[C,M],backdrop:It}})}return _}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-yt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");X.route(o,n,l,a)})}function gp(e){return"id"in e&&"defaults"in e}var $o=class{constructor(){this.controllers=new si(_e,"datasets",!0),this.elements=new si(Dt,"elements"),this.plugins=new si(Object,"plugins"),this.scales=new si(Ye,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):F(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=Ii(i);L(s["before"+n],[],s),t[i](s),L(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;to.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function mp(e){let i={},t=[],s=Object.keys(jt.plugins.items);for(let o=0;o1&&gl(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function ml(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Cp(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return ml(e,"x",t[0])||ml(e,"y",t[0])}return{}}function Tp(e,i){let t=me[e.type]||{scales:{}},s=i.scales||{},n=qo(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!N(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=Ko(r,a,Cp(r,e),X.scales[a.type]),c=vp(l,n),h=t.scales||{};o[r]=Fe(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||qo(a,i),h=(me[a]||{}).scales||{};Object.keys(h).forEach(f=>{let u=yp(f,l),p=r[u+"AxisID"]||u;o[p]=o[p]||Object.create(null),Fe(o[p],[{axis:u},s[p],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];Fe(a,[X.scales[a.type],X.scale])}),o}function sc(e){let i=e.options||(e.options={});i.plugins=E(i.plugins,{}),i.scales=Tp(e,i)}function nc(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Mp(e){return e=e||{},e.data=nc(e.data),sc(e),e}var bl=new Map,oc=new Set;function an(e,i){let t=bl.get(e);return t||(t=i(),bl.set(e,t),oc.add(t)),t}var $i=(e,i,t)=>{let s=Bt(i,t);s!==void 0&&e.add(s)},Zo=class{constructor(i){this._config=Mp(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=nc(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),sc(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return an(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return an(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return an(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return an(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>$i(l,i,f))),h.forEach(f=>$i(l,n,f)),h.forEach(f=>$i(l,me[o]||{},f)),h.forEach(f=>$i(l,X,f)),h.forEach(f=>$i(l,Ys,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oc.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,me[t]||{},X.datasets[t]||{},{type:t},X,Ys]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=xl(this._resolverCache,i,n),l=r;if(wp(r,t)){o.$shared=!1,s=zt(s)?s():s;let c=this.createResolver(i,s,a);l=pe(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=xl(this._resolverCache,i,s);return N(t)?pe(o,t,void 0,n):o}};function xl(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:Vi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var Pp=e=>N(e)&&Object.getOwnPropertyNames(e).some(i=>zt(e[i]));function wp(e,i){let{isScriptable:t,isIndexable:s}=qs(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(zt(a)||Pp(a))||r&&H(a))return!0}return!1}var Op="4.4.1",Ap=["top","bottom","left","right","chartArea"];function _l(e,i){return e==="top"||e==="bottom"||Ap.indexOf(e)===-1&&i==="x"}function yl(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function vl(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),L(t&&t.onComplete,[e],i)}function kp(e){let i=e.chart,t=i.options.animation;L(t&&t.onProgress,[e],i)}function rc(e){return Wi()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var dn={},Sl=e=>{let i=rc(e);return Object.values(dn).filter(t=>t.canvas===i).pop()};function Dp(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function Ep(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function ln(e,i,t){return e.options.clip?e[t]:i[t]}function Ip(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:ln(t,i,"left"),right:ln(t,i,"right"),top:ln(s,i,"top"),bottom:ln(s,i,"bottom")}:i}var Et=(()=>{class e{static defaults=X;static instances=dn;static overrides=me;static registry=jt;static version=Op;static getChart=Sl;static register(...t){jt.add(...t),Cl()}static unregister(...t){jt.remove(...t),Cl()}constructor(t,s){let n=this.config=new Zo(s),o=rc(t),r=Sl(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Jd(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=co(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Go,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_o(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],dn[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}te.listen(this,"complete",vl),te.listen(this,"progress",kp),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return V(t)?s&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return jt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Xs(this.canvas,this.ctx),this}stop(){return te.stop(this),this}resize(t,s){te.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),L(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};F(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=Ko(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),F(r,a=>{let l=a.options,c=l.id,h=Ko(c,l),f=E(l.type,a.dtype);(l.position===void 0||_l(l.position,h)!==_l(a.dposition))&&(l.position=a.dposition),o[c]=!0;let u=null;if(c in n&&n[c].type===f)u=n[c];else{let p=jt.getScale(f);u=new p({id:c,type:f,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(l,t)}),F(o,(a,l)=>{a||delete n[l]}),F(n,a=>{lt.configure(this,a,a.options),lt.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;os.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(yl("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){F(this.scales,t=>{lt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Es(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;Dp(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lt.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],F(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=Ip(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&ti(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&ei(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Ot(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=Ld.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);ze(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),te.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};F(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){F(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},F(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Je(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(u=>f.datasetIndex===u.datasetIndex&&f.index===u.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=fo(t),h=Ep(t,this._lastEvent,n,c);n&&(this._lastEvent=null,L(r.onHover,[t,l,this],this),c&&L(r.onClick,[t,l,this],this));let f=!Je(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return e})();function Cl(){return F(Et.instances,e=>e._plugins.invalidate())}function Lp(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+Z,s-Z),e.closePath(),e.clip()}function Rp(e){return Bi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Fp(e,i,t,s){let n=Rp(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return it(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:it(n.innerStart,0,r),innerEnd:it(n.innerEnd,0,r)}}function ii(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function bn(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),u=h>0?h+s+t+c:0,p=0,m=n-l;if(s){let W=h>0?h-s:0,j=f>0?f-s:0,q=(W+j)/2,pt=q!==0?m*q/(q+s):m;p=(m-pt)/2}let b=Math.max(.001,m*f-t/U)/f,_=(m-b)/2,y=l+_+p,S=n-_-p,{outerStart:T,outerEnd:w,innerStart:C,innerEnd:M}=Fp(i,u,f,S-y),A=f-T,O=f-w,D=y+T/A,I=S-w/O,R=u+C,z=u+M,Q=y+C/R,ct=S-M/z;if(e.beginPath(),o){let W=(D+I)/2;if(e.arc(r,a,f,D,W),e.arc(r,a,f,W,I),w>0){let st=ii(O,I,r,a);e.arc(st.x,st.y,w,I,S+Z)}let j=ii(z,S,r,a);if(e.lineTo(j.x,j.y),M>0){let st=ii(z,ct,r,a);e.arc(st.x,st.y,M,S+Z,ct+Math.PI)}let q=(S-M/u+(y+C/u))/2;if(e.arc(r,a,u,S-M/u,q,!0),e.arc(r,a,u,q,y+C/u,!0),C>0){let st=ii(R,Q,r,a);e.arc(st.x,st.y,C,Q+Math.PI,y-Z)}let pt=ii(A,y,r,a);if(e.lineTo(pt.x,pt.y),T>0){let st=ii(A,D,r,a);e.arc(st.x,st.y,T,y-Z,D)}}else{e.moveTo(r,a);let W=Math.cos(D)*f+r,j=Math.sin(D)*f+a;e.lineTo(W,j);let q=Math.cos(I)*f+r,pt=Math.sin(I)*f+a;e.lineTo(q,pt)}e.closePath()}function zp(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){bn(e,i,t,s,l,n);for(let c=0;ci!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=Fs(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,m=E(f,l-a)>=Y||Be(o,a,l),b=kt(r,c+u,h+u);return m&&b}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>Y?Math.floor(s/Y):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(U,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,zp(i,this,c,o,r),Np(i,this,c,o,r),i.restore()}};function ac(e,i,t=i){e.lineCap=E(t.borderCapStyle,i.borderCapStyle),e.setLineDash(E(t.borderDash,i.borderDash)),e.lineDashOffset=E(t.borderDashOffset,i.borderDashOffset),e.lineJoin=E(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=E(t.borderWidth,i.borderWidth),e.strokeStyle=E(t.borderColor,i.borderColor)}function Bp(e,i,t){e.lineTo(t.x,t.y)}function Vp(e){return e.stepped?So:e.tension||e.cubicInterpolationMode==="monotone"?Co:Bp}function lc(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}=i,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:s,start:l,loop:i.loop,ilen:c(r+(c?a-w:w))%o,T=()=>{b!==_&&(e.lineTo(h,_),e.lineTo(h,b),e.lineTo(h,y))};for(l&&(p=n[S(0)],e.moveTo(p.x,p.y)),u=0;u<=a;++u){if(p=n[S(u)],p.skip)continue;let w=p.x,C=p.y,M=w|0;M===m?(C_&&(_=C),h=(f*h+w)/++f):(T(),e.lineTo(w,C),m=M,f=0,b=_=C),y=C}T()}function Jo(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?jp:Wp}function Hp(e){return e.stepped?ko:e.tension||e.cubicInterpolationMode==="monotone"?Do:Kt}function Up(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),ac(e,i.options),e.stroke(n)}function Yp(e,i,t,s){let{segments:n,options:o}=i,r=Jo(i);for(let a of n)ac(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var Xp=typeof Path2D=="function";function $p(e,i,t,s){Xp&&!i.options.segment?Up(e,i,t,s):Yp(e,i,t,s)}var yn=(()=>{class e extends Dt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;wo(this._points,n,t,o,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Eo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=nn(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=Hp(n),h,f;for(h=0,f=a.length;h{class e extends Dt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function hc(e){return er[e%er.length]}function fc(e){return Ml[e%Ml.length]}function eg(e,i){return e.borderColor=hc(i),e.backgroundColor=fc(i),++i}function ig(e,i){return e.backgroundColor=e.data.map(()=>hc(i++)),i}function sg(e,i){return e.backgroundColor=e.data.map(()=>fc(i++)),i}function ng(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof cr?i=ig(t,i):n instanceof Ql?i=sg(t,i):n&&(i=eg(t,i))}}function Pl(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function og(e){return e&&(e.borderColor||e.backgroundColor)}var rg={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n;if(!t.forceOverride&&(Pl(s)||og(n)||o&&Pl(o)))return;let r=ng(e);s.forEach(r)}};function ag(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,u,p,m,b;for(r[l++]=e[h],f=0;fp&&(p=m,u=e[S],b=S);r[l++]=u,h=b}return r[l++]=e[c],r}function lg(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,u,p,m,b,_=[],y=i+t-1,S=e[i].x,w=e[y].x-S;for(r=i;rb&&(b=c,u=r),n=(o*n+a.x)/++o;else{let M=r-1;if(!V(f)&&!V(u)){let A=Math.min(f,u),O=Math.max(f,u);A!==p&&A!==M&&_.push(_s(xs({},e[A]),{x:n})),O!==p&&O!==M&&_.push(_s(xs({},e[O]),{x:n}))}r>0&&M!==p&&_.push(e[M]),_.push(a),h=C,o=0,m=b=c,f=u=p=r}}return _}function uc(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function wl(e){e.data.datasets.forEach(i=>{uc(i)})}function cg(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=it(wt(i,o.axis,r).lo,0,t-1)),c?n=it(wt(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var hg={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){wl(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(je([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:u}=cg(l,c),p=t.threshold||4*s;if(u<=p){uc(n);return}V(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(t.algorithm){case"lttb":m=ag(c,f,u,s,t);break;case"min-max":m=lg(c,f,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=m})},destroy(e){wl(e)}};function fg(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=hr(l,c,n);let h=ir(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=nn(i,h);for(let u of f){let p=ir(t,o[u.start],o[u.end],u.loop),m=sn(a,n,p);for(let b of m)r.push({source:b,target:u,start:{[t]:Ol(h,p,"start",Math.max)},end:{[t]:Ol(h,p,"end",Math.min)}})}}return r}function ir(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=ft(n),o=ft(o)),{property:e,start:n,end:o}}function ug(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=hr(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function hr(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Ol(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function dc(e,i){let t=[],s=!1;return H(e)?(s=!0,t=e):t=ug(e,i),t.length?new yn({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Al(e){return e&&e.fill!==!1}function dg(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!G(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function pg(e,i,t){let s=xg(e);if(N(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return G(n)&&Math.floor(n)===n?gg(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function gg(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function mg(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:N(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function bg(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:N(e)?s=e.value:s=i.getBaseValue(),s}function xg(e){let i=e.options,t=i.fill,s=E(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function _g(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=yg(i,t);a.push(dc({x:null,y:i.bottom},s));for(let l=0;l=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Wo(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Al(o)&&Wo(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Al(s)||t.drawTime!=="beforeDatasetDraw"||Wo(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Il=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},Dg=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,_n=class extends Dt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=L(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=J(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Il(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-h;return this.legendItems.forEach((m,b)=>{let _=s+t/2+o.measureText(m.text).width;(b===0||c[c.length-1]+_+2*a>r)&&(f+=h,c[c.length-(b>0?0:1)]=0,p+=h,u++),l[b]={left:0,top:p,row:u,width:_,height:n},c[c.length-1]+=_+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,u=0,p=0,m=0,b=0;return this.legendItems.forEach((_,y)=>{let{itemWidth:S,itemHeight:T}=Eg(s,t,o,_,n);y>0&&p+T+2*a>h&&(f+=u+a,c.push({width:u,height:p}),m+=u+a,b++,u=p=0),l[y]={left:m,top:p,col:b,width:S,height:T},u=Math.max(u,S),p+=T+a}),f+=u,c.push({width:u,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=be(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=ot(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;ti(i,this),this._draw(),ei(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=X.color,l=be(i.rtl,this.left,this.width),c=J(r.font),{padding:h}=r,f=c.size,u=f/2,p;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:m,boxHeight:b,itemHeight:_}=Il(r,f),y=function(M,A,O){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;n.save();let D=E(O.lineWidth,1);if(n.fillStyle=E(O.fillStyle,a),n.lineCap=E(O.lineCap,"butt"),n.lineDashOffset=E(O.lineDashOffset,0),n.lineJoin=E(O.lineJoin,"miter"),n.lineWidth=D,n.strokeStyle=E(O.strokeStyle,a),n.setLineDash(E(O.lineDash,[])),r.usePointStyle){let I={radius:b*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:D},R=l.xPlus(M,m/2),z=A+u;$s(n,I,R,z,r.pointStyleWidth&&m)}else{let I=A+Math.max((f-b)/2,0),R=l.leftForLtr(M,m),z=Jt(O.borderRadius);n.beginPath(),Object.values(z).some(Q=>Q!==0)?We(n,{x:R,y:I,w:m,h:b,radius:z}):n.rect(R,I,m,b),n.fill(),D!==0&&n.stroke()}n.restore()},S=function(M,A,O){Qt(n,O.text,M,A+_/2,c,{strikethrough:O.hidden,textAlign:l.textAlign(O.textAlign)})},T=this.isHorizontal(),w=this._computeTitleHeight();T?p={x:ot(o,this.left+h,this.right-s[0]),y:this.top+h+w,line:0}:p={x:this.left+h,y:ot(o,this.top+w+h,this.bottom-t[0].height),line:0},tn(this.ctx,i.textDirection);let C=_+h;this.legendItems.forEach((M,A)=>{n.strokeStyle=M.fontColor,n.fillStyle=M.fontColor;let O=n.measureText(M.text).width,D=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),I=m+u+O,R=p.x,z=p.y;l.setWidth(this.width),T?A>0&&R+I+h>this.right&&(z=p.y+=C,p.line++,R=p.x=ot(o,this.left+h,this.right-s[p.line])):A>0&&z+C>this.bottom&&(R=p.x=R+t[p.line].width+h,p.line++,z=p.y=ot(o,this.top+w+h,this.bottom-t[p.line].height));let Q=l.x(R);if(y(Q,z,M),R=yo(D,R+m+u,T?R+I:this.right,i.rtl),S(l.x(R),z,M),T)p.x+=I+h;else if(typeof M.text!="string"){let ct=c.lineHeight;p.y+=pc(M,ct)+h}else p.y+=C}),en(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=J(t.font),n=rt(t.padding);if(!t.display)return;let o=be(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,f=ot(i.align,f,this.right-u);else{let m=this.columnSizes.reduce((b,_)=>Math.max(b,_.height),0);h=c+ot(i.align,this.top,this.bottom-m-i.labels.padding-this._computeTitleHeight())}let p=ot(a,f,f+u);r.textAlign=o.textAlign(Fi(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,Qt(r,t.text,p,h,s)}_computeTitleHeight(){let i=this.options.title,t=J(i.font),s=rt(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(kt(i,this.left,this.right)&&kt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function Lg(e,i,t){let s=e;return typeof i.text!="string"&&(s=pc(i,t)),s}function pc(e,i){let t=e.text?e.text.length:0;return i*t}function Rg(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var Fg={id:"legend",_element:_n,start(e,i,t){let s=e.legend=new _n({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s)},stop(e){lt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;lt.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=rt(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Zi=class extends Dt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=H(s.text)?s.text.length:1;this._padding=rt(s.padding);let o=n*J(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=ot(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=ot(a,n,t),l=U*-.5):(h=o-i,f=ot(a,t,n),l=U*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=J(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Qt(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:Fi(t.align),textBaseline:"middle",translation:[r,a]})}};function zg(e,i){let t=new Zi({ctx:e.ctx,options:i,chart:e});lt.configure(e,t,i),lt.addBox(e,t),e.titleBlock=t}var Ng={id:"title",_element:Zi,start(e,i,t){zg(e,t)},stop(e){let i=e.titleBlock;lt.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;lt.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},cn=new WeakMap,Bg={id:"subtitle",start(e,i,t){let s=new Zi({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s),cn.set(e,s)},stop(e){lt.removeBox(e,cn.get(e)),cn.delete(e)},beforeUpdate(e,i,t){let s=cn.get(e);lt.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},qi={average(e){if(!e.length)return!1;let i,t,s=0,n=0,o=0;for(i=0,t=e.length;i-1?e.split(` +`):e}function Vg(e,i){let{element:t,datasetIndex:s,index:n}=i,o=e.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:e,label:r,parsed:o.getParsed(n),raw:e.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:t}}function Ll(e,i){let t=e.chart.ctx,{body:s,footer:n,title:o}=e,{boxWidth:r,boxHeight:a}=i,l=J(i.bodyFont),c=J(i.titleFont),h=J(i.footerFont),f=o.length,u=n.length,p=s.length,m=rt(i.padding),b=m.height,_=0,y=s.reduce((w,C)=>w+C.before.length+C.lines.length+C.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*i.titleSpacing+i.titleMarginBottom),y){let w=i.displayColors?Math.max(a,l.lineHeight):l.lineHeight;b+=p*w+(y-p)*l.lineHeight+(y-1)*i.bodySpacing}u&&(b+=i.footerMarginTop+u*h.lineHeight+(u-1)*i.footerSpacing);let S=0,T=function(w){_=Math.max(_,t.measureText(w).width+S)};return t.save(),t.font=c.string,F(e.title,T),t.font=l.string,F(e.beforeBody.concat(e.afterBody),T),S=i.displayColors?r+2+i.boxPadding:0,F(s,w=>{F(w.before,T),F(w.lines,T),F(w.after,T)}),S=0,t.font=h.string,F(e.footer,T),t.restore(),_+=m.width,{width:_,height:b}}function Wg(e,i){let{y:t,height:s}=i;return te.height-s/2?"bottom":"center"}function jg(e,i,t,s){let{x:n,width:o}=s,r=t.caretSize+t.caretPadding;if(e==="left"&&n+o+r>i.width||e==="right"&&n-o-r<0)return!0}function Hg(e,i,t,s){let{x:n,width:o}=t,{width:r,chartArea:{left:a,right:l}}=e,c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),jg(c,e,i,t)&&(c="center"),c}function Rl(e,i,t){let s=t.yAlign||i.yAlign||Wg(e,t);return{xAlign:t.xAlign||i.xAlign||Hg(e,i,t,s),yAlign:s}}function Ug(e,i){let{x:t,width:s}=e;return i==="right"?t-=s:i==="center"&&(t-=s/2),t}function Yg(e,i,t){let{y:s,height:n}=e;return i==="top"?s+=t:i==="bottom"?s-=n+t:s-=n/2,s}function Fl(e,i,t,s){let{caretSize:n,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=t,c=n+o,{topLeft:h,topRight:f,bottomLeft:u,bottomRight:p}=Jt(r),m=Ug(i,a),b=Yg(i,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(h,u)+n:a==="right"&&(m+=Math.max(f,p)+n),{x:it(m,0,s.width-i.width),y:it(b,0,s.height-i.height)}}function hn(e,i,t){let s=rt(t.padding);return i==="center"?e.x+e.width/2:i==="right"?e.x+e.width-s.right:e.x+s.left}function zl(e){return Wt([],ee(e))}function Xg(e,i,t){return Vt(e,{tooltip:i,tooltipItems:t,type:"tooltip"})}function Nl(e,i){let t=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return t?e.override(t):e}var gc={beforeTitle:At,title(e){if(e.length>0){let i=e[0],t=i.chart.data.labels,s=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return i.dataset.label||"";if(i.label)return i.label;if(s>0&&i.dataIndex"u"?gc[i].call(t,s):n}var Bl=(()=>{class e extends Dt{static positioners=qi;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let s=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&s.options.animation&&n.animations,r=new pn(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Xg(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,s){let{callbacks:n}=s,o=mt(n,"beforeTitle",this,t),r=mt(n,"title",this,t),a=mt(n,"afterTitle",this,t),l=[];return l=Wt(l,ee(o)),l=Wt(l,ee(r)),l=Wt(l,ee(a)),l}getBeforeBody(t,s){return zl(mt(s.callbacks,"beforeBody",this,t))}getBody(t,s){let{callbacks:n}=s,o=[];return F(t,r=>{let a={before:[],lines:[],after:[]},l=Nl(n,r);Wt(a.before,ee(mt(l,"beforeLabel",this,r))),Wt(a.lines,mt(l,"label",this,r)),Wt(a.after,ee(mt(l,"afterLabel",this,r))),o.push(a)}),o}getAfterBody(t,s){return zl(mt(s.callbacks,"afterBody",this,t))}getFooter(t,s){let{callbacks:n}=s,o=mt(n,"beforeFooter",this,t),r=mt(n,"footer",this,t),a=mt(n,"afterFooter",this,t),l=[];return l=Wt(l,ee(o)),l=Wt(l,ee(r)),l=Wt(l,ee(a)),l}_createItems(t){let s=this._active,n=this.chart.data,o=[],r=[],a=[],l=[],c,h;for(c=0,h=s.length;ct.filter(f,u,p,n))),t.itemSort&&(l=l.sort((f,u)=>t.itemSort(f,u,n))),F(l,f=>{let u=Nl(t.callbacks,f);o.push(mt(u,"labelColor",this,f)),r.push(mt(u,"labelPointStyle",this,f)),a.push(mt(u,"labelTextColor",this,f))}),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(t,s){let n=this.options.setContext(this.getContext()),o=this._active,r,a=[];if(!o.length)this.opacity!==0&&(r={opacity:0});else{let l=qi[n.position].call(this,o,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let c=this._size=Ll(this,n),h=Object.assign({},l,c),f=Rl(this.chart,n,h),u=Fl(n,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(t,s,n,o){let r=this.getCaretPosition(t,n,o);s.lineTo(r.x1,r.y1),s.lineTo(r.x2,r.y2),s.lineTo(r.x3,r.y3)}getCaretPosition(t,s,n){let{xAlign:o,yAlign:r}=this,{caretSize:a,cornerRadius:l}=n,{topLeft:c,topRight:h,bottomLeft:f,bottomRight:u}=Jt(l),{x:p,y:m}=t,{width:b,height:_}=s,y,S,T,w,C,M;return r==="center"?(C=m+_/2,o==="left"?(y=p,S=y-a,w=C+a,M=C-a):(y=p+b,S=y+a,w=C-a,M=C+a),T=y):(o==="left"?S=p+Math.max(c,f)+a:o==="right"?S=p+b-Math.max(h,u)-a:S=this.caretX,r==="top"?(w=m,C=w-a,y=S-a,T=S+a):(w=m+_,C=w+a,y=S+a,T=S-a),M=w),{x1:y,x2:S,x3:T,y1:w,y2:C,y3:M}}drawTitle(t,s,n){let o=this.title,r=o.length,a,l,c;if(r){let h=be(n.rtl,this.x,this.width);for(t.x=hn(this,n.titleAlign,n),s.textAlign=h.textAlign(n.titleAlign),s.textBaseline="middle",a=J(n.titleFont),l=n.titleSpacing,s.fillStyle=n.titleColor,s.font=a.string,c=0;cT!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,We(t,{x:_,y:b,w:h,h:c,radius:S}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),We(t,{x:y,y:b+1,w:h-2,h:c-2,radius:S}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(_,b,h,c),t.strokeRect(_,b,h,c),t.fillStyle=a.backgroundColor,t.fillRect(y,b+1,h-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,s,n){let{body:o}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:f}=n,u=J(n.bodyFont),p=u.lineHeight,m=0,b=be(n.rtl,this.x,this.width),_=function(D){s.fillText(D,b.x(t.x+m),t.y+p/2),t.y+=p+r},y=b.textAlign(a),S,T,w,C,M,A,O;for(s.textAlign=a,s.textBaseline="middle",s.font=u.string,t.x=hn(this,y,n),s.fillStyle=n.bodyColor,F(this.beforeBody,_),m=l&&y!=="right"?a==="center"?h/2+f:h+2+f:0,C=0,A=o.length;C0&&s.stroke()}_updateAnimationTarget(t){let s=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){let a=qi[t.position].call(this,this._active,this._eventPosition);if(!a)return;let l=this._size=Ll(this,t),c=Object.assign({},a,this._size),h=Rl(s,t,c),f=Fl(t,c,h,s);(o._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){let s=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(s);let o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=rt(s.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,o,s),tn(t,s.textDirection),r.y+=a.top,this.drawTitle(r,t,s),this.drawBody(r,t,s),this.drawFooter(r,t,s),en(t,s.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,s){let n=this._active,o=t.map(({datasetIndex:l,index:c})=>{let h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),r=!Je(n,o),a=this._positionChanged(o,s);(r||a)&&(this._active=o,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,s,n=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let o=this.options,r=this._active||[],a=this._getActiveElements(t,r,s,n),l=this._positionChanged(a,t),c=s||!Je(a,r)||l;return c&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,s))),c}_getActiveElements(t,s,n,o){let r=this.options;if(t.type==="mouseout")return[];if(!o)return s.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let a=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(t,s){let{caretX:n,caretY:o,options:r}=this,a=qi[r.position].call(this,t,s);return a!==!1&&(n!==a.x||o!==a.y)}}return e})(),$g={id:"tooltip",_element:Bl,positioners:qi,afterInit(e,i,t){t&&(e.tooltip=new Bl({chart:e,options:t}))},beforeUpdate(e,i,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,i,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let i=e.tooltip;if(i&&i._willRender()){let t={tooltip:i};if(e.notifyPlugins("beforeTooltipDraw",_s(xs({},t),{cancelable:!0}))===!1)return;i.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,i){if(e.tooltip){let t=i.replay;e.tooltip.handleEvent(i.event,t,i.inChartArea)&&(i.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,i)=>i.bodyFont.size,boxWidth:(e,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:gc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Gg=Object.freeze({__proto__:null,Colors:rg,Decimation:hg,Filler:kg,Legend:Fg,SubTitle:Bg,Title:Ng,Tooltip:$g}),qg=(e,i,t,s)=>(typeof i=="string"?(t=e.push(i)-1,s.unshift({index:t,label:i})):isNaN(i)&&(t=null),t);function Kg(e,i,t,s){let n=e.indexOf(i);if(n===-1)return qg(e,i,t,s);let o=e.lastIndexOf(i);return n!==o?t:n}var Zg=(e,i)=>e===null?null:it(Math.round(e),0,i);function Vl(e){let i=this.getLabels();return e>=0&&e{class e extends Ye{static id="category";static defaults={ticks:{callback:Vl}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let s=this._addedLabels;if(s.length){let n=this.getLabels();for(let{index:o,label:r}of s)n[o]===r&&n.splice(o,1);this._addedLabels=[]}super.init(t)}parse(t,s){if(V(t))return null;let n=this.getLabels();return s=isFinite(s)&&n[s]===t?s:Kg(n,t,E(s,t),this._addedLabels),Zg(s,n.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),s||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){let t=this.min,s=this.max,n=this.options.offset,o=[],r=this.getLabels();r=t===0&&s===r.length-1?r:r.slice(t,s+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let a=t;a<=s;a++)o.push({value:a});return o}getLabelForValue(t){return Vl.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let s=this.ticks;return t<0||t>s.length-1?null:this.getPixelForValue(s[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return e})();function Jg(e,i){let t=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:f,includeBounds:u}=e,p=o||1,m=h-1,{min:b,max:_}=i,y=!V(r),S=!V(a),T=!V(c),w=(_-b)/(f+1),C=Is((_-b)/m/p)*p,M,A,O,D;if(C<1e-14&&!y&&!S)return[{value:b},{value:_}];D=Math.ceil(_/C)-Math.floor(b/C),D>m&&(C=Is(D*C/m/p)*p),V(l)||(M=Math.pow(10,l),C=Math.ceil(C*M)/M),n==="ticks"?(A=Math.floor(b/C)*C,O=Math.ceil(_/C)*C):(A=b,O=_),y&&S&&o&&po((a-r)/o,C/1e3)?(D=Math.round(Math.min((a-r)/C,h)),C=(a-r)/D,A=r,O=a):T?(A=y?r:A,O=S?a:O,D=c-1,C=(O-A)/D):(D=(O-A)/C,Ne(D,Math.round(D),C/1e3)?D=Math.round(D):D=Math.ceil(D));let I=Math.max(Rs(C),Rs(A));M=Math.pow(10,V(l)?I:l),A=Math.round(A*M)/M,O=Math.round(O*M)/M;let R=0;for(y&&(u&&A!==r?(t.push({value:r}),Aa)break;t.push({value:z})}return S&&u&&O!==a?t.length&&Ne(t[t.length-1].value,a,Wl(a,w,e))?t[t.length-1].value=a:t.push({value:a}):(!S||O===a)&&t.push({value:O}),t}function Wl(e,i,{horizontal:t,minRotation:s}){let n=yt(s),o=(t?Math.sin(n):Math.cos(n))||.001,r=.75*i*(""+e).length;return Math.min(i/o,r)}var ni=class extends Ye{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,t){return V(i)||(typeof i=="number"||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){let{beginAtZero:i}=this.options,{minDefined:t,maxDefined:s}=this.getUserBounds(),{min:n,max:o}=this,r=l=>n=t?n:l,a=l=>o=s?o:l;if(i){let l=ut(n),c=ut(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),i||r(n-l)}this.min=n,this.max=o}getTickLimit(){let i=this.options.ticks,{maxTicksLimit:t,stepSize:s}=i,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),t=t||11),t&&(n=Math.min(t,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let i=this.options,t=i.ticks,s=this.getTickLimit();s=Math.max(2,s);let n={maxTicks:s,bounds:i.bounds,min:i.min,max:i.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},o=this._range||this,r=Jg(n,o);return i.bounds==="ticks"&&Ls(r,this,"value"),i.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let i=this.ticks,t=this.min,s=this.max;if(super.configure(),this.options.offset&&i.length){let n=(s-t)/Math.max(i.length-1,1)/2;t-=n,s+=n}this._startValue=t,this._endValue=s,this._valueRange=s-t}getLabelForValue(i){return Ve(i,this.chart.options.locale,this.options.ticks.format)}},sr=class extends ni{static id="linear";static defaults={ticks:{callback:zi.formatters.numeric}};determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=G(i)?i:0,this.max=G(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let i=this.isHorizontal(),t=i?this.width:this.height,s=yt(this.options.ticks.minRotation),n=(i?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/n))}getPixelForValue(i){return i===null?NaN:this.getPixelForDecimal((i-this._startValue)/this._valueRange)}getValueForPixel(i){return this._startValue+this.getDecimalForPixel(i)*this._valueRange}},Qi=e=>Math.floor(Nt(e)),Ue=(e,i)=>Math.pow(10,Qi(e)+i);function jl(e){return e/Math.pow(10,Qi(e))===1}function Hl(e,i,t){let s=Math.pow(10,t),n=Math.floor(e/s);return Math.ceil(i/s)-n}function tm(e,i){let t=i-e,s=Qi(t);for(;Hl(e,i,s)>10;)s++;for(;Hl(e,i,s)<10;)s--;return Math.min(s,Qi(e))}function em(e,{min:i,max:t}){i=dt(e.min,i);let s=[],n=Qi(i),o=tm(i,t),r=o<0?Math.pow(10,Math.abs(o)):1,a=Math.pow(10,o),l=n>o?Math.pow(10,n):0,c=Math.round((i-l)*r)/r,h=Math.floor((i-l)/a/10)*a*10,f=Math.floor((c-h)/Math.pow(10,o)),u=dt(e.min,Math.round((l+h+f*Math.pow(10,o))*r)/r);for(;u=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,r=o>=0?1:r),u=Math.round((l+h+f*Math.pow(10,o))*r)/r;let p=dt(e.max,u);return s.push({value:p,major:jl(p),significand:f}),s}var nr=class extends Ye{static id="logarithmic";static defaults={ticks:{callback:zi.formatters.logarithmic,major:{enabled:!0}}};constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(i,t){let s=ni.prototype.parse.apply(this,[i,t]);if(s===0){this._zero=!0;return}return G(s)&&s>0?s:null}determineDataLimits(){let{min:i,max:t}=this.getMinMax(!0);this.min=G(i)?Math.max(0,i):null,this.max=G(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!G(this._userMin)&&(this.min=i===Ue(this.min,0)?Ue(this.min,-1):Ue(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:i,maxDefined:t}=this.getUserBounds(),s=this.min,n=this.max,o=a=>s=i?s:a,r=a=>n=t?n:a;s===n&&(s<=0?(o(1),r(10)):(o(Ue(s,-1)),r(Ue(n,1)))),s<=0&&o(Ue(n,-1)),n<=0&&r(Ue(s,1)),this.min=s,this.max=n}buildTicks(){let i=this.options,t={min:this._userMin,max:this._userMax},s=em(t,this);return i.bounds==="ticks"&&Ls(s,this,"value"),i.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(i){return i===void 0?"0":Ve(i,this.chart.options.locale,this.options.ticks.format)}configure(){let i=this.min;super.configure(),this._startValue=Nt(i),this._valueRange=Nt(this.max)-Nt(i)}getPixelForValue(i){return(i===void 0||i===0)&&(i=this.min),i===null||isNaN(i)?NaN:this.getPixelForDecimal(i===this.min?0:(Nt(i)-this._startValue)/this._valueRange)}getValueForPixel(i){let t=this.getDecimalForPixel(i);return Math.pow(10,this._startValue+t*this._valueRange)}};function or(e){let i=e.ticks;if(i.display&&e.display){let t=rt(i.backdropPadding);return E(i.font&&i.font.size,X.font.size)+t.height}return 0}function im(e,i,t){return t=H(t)?t:[t],{w:vo(e,i.string,t),h:t.length*i.lineHeight}}function Ul(e,i,t,s,n){return e===s||e===n?{start:i-t/2,end:i+t/2}:en?{start:i-t,end:i}:{start:i,end:i+t}}function sm(e){let i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},i),s=[],n=[],o=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?U/o:0;for(let l=0;li.r&&(a=(s.end-i.r)/o,e.r=Math.max(e.r,i.r+a)),n.starti.b&&(l=(n.end-i.b)/r,e.b=Math.max(e.b,i.b+l))}function om(e,i,t){let s=e.drawingArea,{extra:n,additionalAngle:o,padding:r,size:a}=t,l=e.getPointPosition(i,s+n+r,o),c=Math.round(Li(ft(l.angle+Z))),h=hm(l.y,a.h,c),f=lm(c),u=cm(l.x,a.w,f);return{visible:!0,x:l.x,y:h,textAlign:f,left:u,top:h,right:u+a.w,bottom:h+a.h}}function rm(e,i){if(!i)return!0;let{left:t,top:s,right:n,bottom:o}=e;return!(Ot({x:t,y:s},i)||Ot({x:t,y:o},i)||Ot({x:n,y:s},i)||Ot({x:n,y:o},i))}function am(e,i,t){let s=[],n=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:or(o)/2,additionalAngle:r?U/n:0},c;for(let h=0;h270||t<90)&&(e-=i),e}function fm(e,i,t){let{left:s,top:n,right:o,bottom:r}=t,{backdropColor:a}=i;if(!V(a)){let l=Jt(i.borderRadius),c=rt(i.backdropPadding);e.fillStyle=a;let h=s-c.left,f=n-c.top,u=o-s+c.width,p=r-n+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),We(e,{x:h,y:f,w:u,h:p,radius:l}),e.fill()):e.fillRect(h,f,u,p)}}function um(e,i){let{ctx:t,options:{pointLabels:s}}=e;for(let n=i-1;n>=0;n--){let o=e._pointLabelItems[n];if(!o.visible)continue;let r=s.setContext(e.getPointLabelContext(n));fm(t,r,o);let a=J(r.font),{x:l,y:c,textAlign:h}=o;Qt(t,e._pointLabels[n],l,c+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}function mc(e,i,t,s){let{ctx:n}=e;if(t)n.arc(e.xCenter,e.yCenter,i,0,Y);else{let o=e.getPointPosition(0,i);n.moveTo(o.x,o.y);for(let r=1;r{let n=L(this.options.pointLabels.callback,[t,s],this);return n||n===0?n:""}).filter((t,s)=>this.chart.getDataVisibility(s))}fit(){let i=this.options;i.display&&i.pointLabels.display?sm(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(i,t,s,n){this.xCenter+=Math.floor((i-t)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(i,t,s,n))}getIndexAngle(i){let t=Y/(this._pointLabels.length||1),s=this.options.startAngle||0;return ft(i*t+yt(s))}getDistanceFromCenterForValue(i){if(V(i))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-i)*t:(i-this.min)*t}getValueForDistanceFromCenter(i){if(V(i))return NaN;let t=i/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(i){let t=this._pointLabels||[];if(i>=0&&i{if(f!==0){l=this.getDistanceFromCenterForValue(h.value);let u=this.getContext(f),p=n.setContext(u),m=o.setContext(u);dm(this,p,l,r,m)}}),s.display){for(i.save(),a=r-1;a>=0;a--){let h=s.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:u}=h;!u||!f||(i.lineWidth=u,i.strokeStyle=f,i.setLineDash(h.borderDash),i.lineDashOffset=h.borderDashOffset,l=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(c.x,c.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){let i=this.ctx,t=this.options,s=t.ticks;if(!s.display)return;let n=this.getIndexAngle(0),o,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(n),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!t.reverse)return;let c=s.setContext(this.getContext(l)),h=J(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=h.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;let f=rt(c.backdropPadding);i.fillRect(-r/2-f.left,-o-h.size/2-f.top,r+f.width,h.size+f.height)}Qt(i,a.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),i.restore()}drawTitle(){}},vn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bt=Object.keys(vn);function Yl(e,i){return e-i}function Xl(e,i){if(V(i))return null;let t=e._adapter,{parser:s,round:n,isoWeekday:o}=e._parseOpts,r=i;return typeof s=="function"&&(r=s(r)),G(r)||(r=typeof s=="string"?t.parse(r,s):t.parse(r)),r===null?null:(n&&(r=n==="week"&&(ge(o)||o===!0)?t.startOf(r,"isoWeek",o):t.startOf(r,n)),+r)}function $l(e,i,t,s){let n=bt.length;for(let o=bt.indexOf(e);o=bt.indexOf(t);o--){let r=bt[o];if(vn[r].common&&e._adapter.diff(n,s,r)>=i-1)return r}return bt[t?bt.indexOf(t):0]}function mm(e){for(let i=bt.indexOf(e)+1,t=bt.length;i=i?t[s]:t[n];e[o]=!0}}function bm(e,i,t,s){let n=e._adapter,o=+n.startOf(i[0].value,s),r=i[i.length-1].value,a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=t[a],l>=0&&(i[l].major=!0);return i}function ql(e,i,t){let s=[],n={},o=i.length,r,a;for(r=0;r{class e extends Ye{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,s={}){let n=t.time||(t.time={}),o=this._adapter=new Ad._date(t.adapters.date);o.init(s),Fe(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=s.normalized}parse(t,s){return t===void 0?null:Xl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,s=this._adapter,n=t.time.unit||"day",{min:o,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(h){!a&&!isNaN(h.min)&&(o=Math.min(o,h.min)),!l&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),o=G(o)&&!isNaN(o)?o:+s.startOf(Date.now(),n),r=G(r)&&!isNaN(r)?r:+s.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){let t=this.getLabelTimestamps(),s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(s=t[0],n=t[t.length-1]),{min:s,max:n}}buildTicks(){let t=this.options,s=t.time,n=t.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let r=this.min,a=this.max,l=bo(o,r,a);return this._unit=s.unit||(n.autoSkip?$l(s.minUnit,this.min,this.max,this._getLabelCapacity(r)):gm(this,l.length,s.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:mm(this._unit),this.initOffsets(o),t.reverse&&l.reverse(),ql(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s=0,n=0,o,r;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?s=1-o:s=(this.getDecimalForValue(t[1])-o)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?n=r:n=(r-this.getDecimalForValue(t[t.length-2]))/2);let a=t.length<3?.5:.25;s=it(s,0,a),n=it(n,0,a),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){let t=this._adapter,s=this.min,n=this.max,o=this.options,r=o.time,a=r.unit||$l(r.minUnit,s,n,this._getLabelCapacity(s)),l=E(o.ticks.stepSize,1),c=a==="week"?r.isoWeekday:!1,h=ge(c)||c===!0,f={},u=s,p,m;if(h&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,h?"day":a),t.diff(n,s,a)>1e5*l)throw new Error(s+" and "+n+" are too far apart with stepSize of "+l+" "+a);let b=o.ticks.source==="data"&&this.getDataTimestamps();for(p=u,m=0;p+_)}getLabelForValue(t){let s=this._adapter,n=this.options.time;return n.tooltipFormat?s.format(t,n.tooltipFormat):s.format(t,n.displayFormats.datetime)}format(t,s){let o=this.options.time.displayFormats,r=this._unit,a=s||o[r];return this._adapter.format(t,a)}_tickFormatFunction(t,s,n,o){let r=this.options,a=r.ticks.callback;if(a)return L(a,[t,s,n],this);let l=r.time.displayFormats,c=this._unit,h=this._majorUnit,f=c&&l[c],u=h&&l[h],p=n[s],m=h&&u&&p&&p.major;return this._adapter.format(t,o||(m?u:f))}generateTickLabels(t){let s,n,o;for(s=0,n=t.length;s0?l:1}getDataTimestamps(){let t=this._cache.data||[],s,n;if(t.length)return t;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(s=0,n=o.length;s=e[s].pos&&i<=e[n].pos&&({lo:s,hi:n}=wt(e,"pos",i)),{pos:o,time:a}=e[s],{pos:r,time:l}=e[n]):(i>=e[s].time&&i<=e[n].time&&({lo:s,hi:n}=wt(e,"time",i)),{time:o,pos:a}=e[s],{time:r,pos:l}=e[n]);let c=r-o;return c?a+(l-a)*(i-o)/c:a}var lr=class extends ar{static id="timeseries";static defaults=ar.defaults;constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let i=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(i);this._minPos=fn(t,this.min),this._tableRange=fn(t,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){let{min:t,max:s}=this,n=[],o=[],r,a,l,c,h;for(r=0,a=i.length;r=t&&c<=s&&n.push(c);if(n.length<2)return[{time:t,pos:0},{time:s,pos:1}];for(r=0,a=n.length;rn-o)}_getTimestampsForTable(){let i=this._cache.all||[];if(i.length)return i;let t=this.getDataTimestamps(),s=this.getLabelTimestamps();return t.length&&s.length?i=this.normalize(t.concat(s)):i=t.length?t:s,i=this._cache.all=i,i}getDecimalForValue(i){return(fn(this._table,i)-this._minPos)/this._tableRange}getValueForPixel(i){let t=this._offsets,s=this.getDecimalForPixel(i)/t.factor-t.end;return fn(this._table,s*this._tableRange+this._minPos,!0)}},xm=Object.freeze({__proto__:null,CategoryScale:Qg,LinearScale:sr,LogarithmicScale:nr,RadialLinearScale:rr,TimeScale:ar,TimeSeriesScale:lr}),bc=[Od,tg,Gg,xm];var _m=typeof global=="object"&&global&&global.Object===Object&&global,Sn=_m;var ym=typeof self=="object"&&self&&self.Object===Object&&self,vm=Sn||ym||Function("return this")(),Mt=vm;var Sm=Mt.Symbol,oi=Sm;var xc=Object.prototype,Cm=xc.hasOwnProperty,Tm=xc.toString,ts=oi?oi.toStringTag:void 0;function Mm(e){var i=Cm.call(e,ts),t=e[ts];try{e[ts]=void 0;var s=!0}catch{}var n=Tm.call(e);return s&&(i?e[ts]=t:delete e[ts]),n}var _c=Mm;var Pm=Object.prototype,wm=Pm.toString;function Om(e){return wm.call(e)}var yc=Om;var Am="[object Null]",km="[object Undefined]",vc=oi?oi.toStringTag:void 0;function Dm(e){return e==null?e===void 0?km:Am:vc&&vc in Object(e)?_c(e):yc(e)}var ye=Dm;function Em(e){return e!=null&&typeof e=="object"}var Ht=Em;var Im=Array.isArray,es=Im;function Lm(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}var xt=Lm;function Rm(e){return e}var Cn=Rm;var Fm="[object AsyncFunction]",zm="[object Function]",Nm="[object GeneratorFunction]",Bm="[object Proxy]";function Vm(e){if(!xt(e))return!1;var i=ye(e);return i==zm||i==Nm||i==Fm||i==Bm}var ri=Vm;var Wm=Mt["__core-js_shared__"],Tn=Wm;var Sc=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jm(e){return!!Sc&&Sc in e}var Cc=jm;var Hm=Function.prototype,Um=Hm.toString;function Ym(e){if(e!=null){try{return Um.call(e)}catch{}try{return e+""}catch{}}return""}var Tc=Ym;var Xm=/[\\^$.*+?()[\]{}|]/g,$m=/^\[object .+?Constructor\]$/,Gm=Function.prototype,qm=Object.prototype,Km=Gm.toString,Zm=qm.hasOwnProperty,Qm=RegExp("^"+Km.call(Zm).replace(Xm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jm(e){if(!xt(e)||Cc(e))return!1;var i=ri(e)?Qm:$m;return i.test(Tc(e))}var Mc=Jm;function tb(e,i){return e?.[i]}var Pc=tb;function eb(e,i){var t=Pc(e,i);return Mc(t)?t:void 0}var ai=eb;var wc=Object.create,ib=function(){function e(){}return function(i){if(!xt(i))return{};if(wc)return wc(i);e.prototype=i;var t=new e;return e.prototype=void 0,t}}(),Oc=ib;function sb(e,i,t){switch(t.length){case 0:return e.call(i);case 1:return e.call(i,t[0]);case 2:return e.call(i,t[0],t[1]);case 3:return e.call(i,t[0],t[1],t[2])}return e.apply(i,t)}var Ac=sb;function nb(e,i){var t=-1,s=e.length;for(i||(i=Array(s));++t0){if(++i>=ob)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}var Dc=lb;function cb(e){return function(){return e}}var Ec=cb;var hb=function(){try{var e=ai(Object,"defineProperty");return e({},"",{}),e}catch{}}(),li=hb;var fb=li?function(e,i){return li(e,"toString",{configurable:!0,enumerable:!1,value:Ec(i),writable:!0})}:Cn,Ic=fb;var ub=Dc(Ic),Lc=ub;var db=9007199254740991,pb=/^(?:0|[1-9]\d*)$/;function gb(e,i){var t=typeof e;return i=i??db,!!i&&(t=="number"||t!="symbol"&&pb.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Tb}var Pn=Mb;function Pb(e){return e!=null&&Pn(e.length)&&!ri(e)}var hi=Pb;function wb(e,i,t){if(!xt(t))return!1;var s=typeof i;return(s=="number"?hi(t)&&Mn(i,t.length):s=="string"&&i in t)?ve(t[i],e):!1}var Vc=wb;function Ob(e){return Bc(function(i,t){var s=-1,n=t.length,o=n>1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(n--,o):void 0,r&&Vc(t[0],t[1],r)&&(o=n<3?void 0:o,n=1),i=Object(i);++s-1}var hh=Hx;function Ux(e,i){var t=this.__data__,s=Se(t,e);return s<0?(++this.size,t.push([e,i])):t[s][1]=i,this}var fh=Ux;function ui(e){var i=-1,t=e==null?0:e.length;for(this.clear();++i{let i=class i{constructor(){this.colorschemesOptions=new Mi(void 0)}setColorschemesOptions(s){this.pColorschemesOptions=s,this.colorschemesOptions.next(s)}getColorschemesOptions(){return this.pColorschemesOptions}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Ln=(()=>{let i=class i{constructor(s,n,o){this.zone=n,this.themeService=o,this.type="bar",this.plugins=[],this.chartClick=new Kn,this.chartHover=new Kn,this.subs=[],this.themeOverrides={},this.ctx=s.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(Gr()).subscribe(r=>this.themeChanged(r)))}ngOnChanges(s){let n=["type"],o=Object.getOwnPropertyNames(s);if(o.some(r=>n.includes(r))||o.every(r=>s[r].isFirstChange()))this.render();else{let r=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,r.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,r.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,r.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(s=>s.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new Et(this.ctx,this.getChartConfiguration()))}update(s){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(s))}hideDataset(s,n){this.chart&&(this.chart.getDatasetMeta(s).hidden=n,this.update())}isDatasetHidden(s){return this.chart?.getDatasetMeta(s)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(s){this.themeOverrides=s,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return In({onHover:(s,n)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:s,active:n}))},onClick:(s,n)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:s,active:n}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}};i.\u0275fac=function(n){return new(n||i)(ce(Jr),ce(ea),ce(P_))},i.\u0275dir=Qr({type:i,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[vs]});let e=i;return e})(),w_=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],O_={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:e=>Me(Pe(e.datasetIndex),.4),borderColor:e=>Me(Pe(e.datasetIndex),1),pointBackgroundColor:e=>Me(Pe(e.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:e=>Me(Pe(e.datasetIndex),.6),borderColor:e=>Me(Pe(e.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:e=>Me(Pe(e.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:e=>Me(Pe(e.dataIndex),.6),borderColor:e=>Me(Pe(e.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function Me(e,i){return"rgba("+e.concat(i).join(",")+")"}function mr(e,i){return Math.floor(Math.random()*(i-e+1))+e}function A_(){return[mr(0,255),mr(0,255),mr(0,255)]}function Pe(e=0){return w_[e]||A_()}var jh=(()=>{let i=class i{constructor(){this.generateColors=!0}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();Et.register(...bc);var Hh=(()=>{let i=class i{constructor(s){s?.plugins&&Et.register(...s.plugins);let n=In(s?.generateColors?O_:{},s?.defaults||{});X.set(n)}static forRoot(s){return{ngModule:i,providers:[{provide:jh,useValue:s}]}}};i.\u0275fac=function(n){return new(n||i)(ys(jh,8))},i.\u0275mod=Zr({type:i}),i.\u0275inj=qr({});let e=i;return e})();var se=function(e){return e.GREEN="green",e.RED="red",e.YELLOW="yellow",e.BLUE="blue",e}(se||{});var gT={isXAxisVisible:!0,isYAxisVisible:!0,xAxisLabelPrefix:"Epoch:",datasetLabelPrefix:"Pruning:",yAxisMinimumValue:0,yAxisTickInterval:20,datasetColorSettingsKey:se.GREEN},Uh=500,Yh=5,br=5,xr=se.GREEN,Xh=391,mT=100,$h=2;var Xe=function(e){return e.SINGLE_PHASE_X_AXIS="singlePhase",e.SINGLE_PHASE_X_AXIS_SKIP_ONE="singlePhaseXAxisSkipOne",e.MUlTI_PHASE_X_AXIS="multiplePhase",e}(Xe||{});var $e=function(e){return e.ACCURACY="accuracy",e.TESTING_ACCURACY="testingAccuracy",e.LOSS="loss",e.TESTING_LOSS="testingLoss",e.SPARSITY="sparsity",e}($e||{});var Rn=(()=>{let i=class i{constructor(s){this.websocketService=s,this.latestValuesToUpdate=new Gn,this.enhanceXAxis=new Gn}initializeWebSocket(s){ha(s)||(this.websocketSubscription&&this.websocketSubscription.unsubscribe(),this.websocketSubscription=this.websocketService.chartsMessages$.subscribe(n=>{this.handleWebsocketMessage(n,s)}))}handleWebsocketMessage(s,n){switch(s.topic){case Ss.UPDATE_LATEST_VALUE:{let{accuracy:c,loss:h,sparsity:f,datasetIndex:u}=s.data;c!==void 0&&n===$e.ACCURACY?this.latestValuesToUpdate.next({datasetIndex:u,value:c}):h!==void 0&&n===$e.LOSS?this.latestValuesToUpdate.next({datasetIndex:u,value:h}):f!==void 0&&n===$e.SPARSITY&&this.latestValuesToUpdate.next({datasetIndex:0,value:f});break}case Ss.UPDATE_TESTING:let{accuracy:o,loss:r,datasetIndex:a}=s.data;o!==void 0&&n===$e.TESTING_ACCURACY?this.latestValuesToUpdate.next({datasetIndex:a,value:o}):r!==void 0&&n===$e.TESTING_LOSS&&this.latestValuesToUpdate.next({datasetIndex:a,value:r});break;case Ss.ENHANCE_SINGLE_PHASE_X_AXIS:let{reconstructionIndex:l}=s.data;this.enhanceXAxis.next(l);break;default:break}}ngOnDestroy(){this.websocketSubscription&&this.websocketSubscription.unsubscribe()}};i.\u0275fac=function(n){return new(n||i)(ys(ua))},i.\u0275prov=Ee({token:i,factory:i.\u0275fac});let e=i;return e})();var gi=Yf(Gh());var as=e=>e&&e.enabled&&e.modifierKey,sf=(e,i)=>e&&i[e+"Key"],Mr=(e,i)=>e&&!i[e+"Key"];function we(e,i,t){return e===void 0?!0:typeof e=="string"?e.indexOf(i)!==-1:typeof e=="function"?e({chart:t}).indexOf(i)!==-1:!1}function _r(e,i){return typeof e=="function"&&(e=e({chart:i})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function E_(e,i){let t;return function(){return clearTimeout(t),t=setTimeout(e,i),i}}function I_({x:e,y:i},t){let s=t.scales,n=Object.keys(s);for(let o=0;o=r.top&&i<=r.bottom&&e>=r.left&&e<=r.right)return r}return null}function nf(e,i,t){let{mode:s="xy",scaleMode:n,overScaleMode:o}=e||{},r=I_(i,t),a=_r(s,t),l=_r(n,t);if(o){let h=_r(o,t);for(let f of["x","y"])h[f]&&(l[f]=a[f],a[f]=!1)}if(r&&l[r.axis])return[r];let c=[];return F(t.scales,function(h){a[h.axis]&&c.push(h)}),c}var yr=new WeakMap;function tt(e){let i=yr.get(e);return i||(i={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},yr.set(e,i)),i}function L_(e){yr.delete(e)}function of(e,i,t){let s=e.max-e.min,n=s*(i-1),o=e.isHorizontal()?t.x:t.y,r=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/s||0)),a=1-r;return{min:n*r,max:n*a}}function qh(e,i,t,s,n){let o=t[s];if(o==="original"){let r=e.originalScaleLimits[i.id][s];o=E(r.options,r.scale)}return E(o,n)}function R_(e,i,t){let s=e.getValueForPixel(i),n=e.getValueForPixel(t);return{min:Math.min(s,n),max:Math.max(s,n)}}function mi(e,{min:i,max:t},s,n=!1){let o=tt(e.chart),{id:r,axis:a,options:l}=e,c=s&&(s[r]||s[a])||{},{minRange:h=0}=c,f=qh(o,e,c,"min",-1/0),u=qh(o,e,c,"max",1/0),p=n?Math.max(t-i,h):e.max-e.min,m=(p-t+i)/2;return i-=m,t+=m,iu&&(t=u,i=Math.max(u-p,f)),l.min=i,l.max=t,o.updatedScaleLimits[e.id]={min:i,max:t},e.parse(i)!==e.min||e.parse(t)!==e.max}function F_(e,i,t,s){let n=of(e,i,t),o={min:e.min+n.min,max:e.max-n.max};return mi(e,o,s,!0)}function z_(e,i,t,s){mi(e,R_(e,i,t),s,!0)}var Kh=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function N_(e){let t=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),r=a===1?o:o+a,h=o===0),mi(e,{min:o,max:r},t)||h}var j_={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function rf(e,i,t,s=!1){let{min:n,max:o,options:r}=e,a=r.time&&r.time.round,l=j_[a]||0,c=e.getValueForPixel(e.getPixelForValue(n+l)-i),h=e.getValueForPixel(e.getPixelForValue(o+l)-i),{min:f=-1/0,max:u=1/0}=s&&t&&t[e.axis]||{};return isNaN(c)||isNaN(h)||cu?!0:mi(e,{min:c,max:h},t,s)}function Zh(e,i,t){return rf(e,i,t,!0)}var vr={category:B_,default:F_},Sr={default:z_},Cr={category:W_,default:rf,logarithmic:Zh,timeseries:Zh};function H_(e,i,t){let{id:s,options:{min:n,max:o}}=e;if(!i[s]||!t[s])return!0;let r=t[s];return r.min!==n||r.max!==o}function Qh(e,i){F(e,(t,s)=>{i[s]||delete e[s]})}function bi(e,i){let{scales:t}=e,{originalScaleLimits:s,updatedScaleLimits:n}=i;return F(t,function(o){H_(o,s,n)&&(s[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),Qh(s,t),Qh(n,t),s}function Jh(e,i,t,s){let n=vr[e.type]||vr.default;L(n,[e,i,t,s])}function tf(e,i,t,s,n){let o=Sr[e.type]||Sr.default;L(o,[e,i,t,s,n])}function U_(e){let i=e.chartArea;return{x:(i.left+i.right)/2,y:(i.top+i.bottom)/2}}function Pr(e,i,t="none"){let{x:s=1,y:n=1,focalPoint:o=U_(e)}=typeof i=="number"?{x:i,y:i}:i,r=tt(e),{options:{limits:a,zoom:l}}=r;bi(e,r);let c=s!==1,h=n!==1,f=nf(l,o,e);F(f||e.scales,function(u){u.isHorizontal()&&c?Jh(u,s,o,a):!u.isHorizontal()&&h&&Jh(u,n,o,a)}),e.update(t),L(l.onZoom,[{chart:e}])}function af(e,i,t,s="none"){let n=tt(e),{options:{limits:o,zoom:r}}=n,{mode:a="xy"}=r;bi(e,n);let l=we(a,"x",e),c=we(a,"y",e);F(e.scales,function(h){h.isHorizontal()&&l?tf(h,i.x,t.x,o):!h.isHorizontal()&&c&&tf(h,i.y,t.y,o)}),e.update(s),L(r.onZoom,[{chart:e}])}function Y_(e,i,t,s="none"){bi(e,tt(e));let n=e.scales[i];mi(n,t,void 0,!0),e.update(s)}function X_(e,i="default"){let t=tt(e),s=bi(e,t);F(e.scales,function(n){let o=n.options;s[n.id]?(o.min=s[n.id].min.options,o.max=s[n.id].max.options):(delete o.min,delete o.max)}),e.update(i),L(t.options.zoom.onZoomComplete,[{chart:e}])}function $_(e,i){let t=e.originalScaleLimits[i];if(!t)return;let{min:s,max:n}=t;return E(n.options,n.scale)-E(s.options,s.scale)}function G_(e){let i=tt(e),t=1,s=1;return F(e.scales,function(n){let o=$_(i,n.id);if(o){let r=Math.round(o/(n.max-n.min)*100)/100;t=Math.min(t,r),s=Math.max(s,r)}}),t<1?t:s}function ef(e,i,t,s){let{panDelta:n}=s,o=n[e.id]||0;ut(o)===ut(i)&&(i+=o);let r=Cr[e.type]||Cr.default;L(r,[e,i,t])?n[e.id]=0:n[e.id]=i}function lf(e,i,t,s="none"){let{x:n=0,y:o=0}=typeof i=="number"?{x:i,y:i}:i,r=tt(e),{options:{pan:a,limits:l}}=r,{onPan:c}=a||{};bi(e,r);let h=n!==0,f=o!==0;F(t||e.scales,function(u){u.isHorizontal()&&h?ef(u,n,l,r):!u.isHorizontal()&&f&&ef(u,o,l,r)}),e.update(s),L(c,[{chart:e}])}function cf(e){let i=tt(e);bi(e,i);let t={};for(let s of Object.keys(e.scales)){let{min:n,max:o}=i.originalScaleLimits[s]||{min:{},max:{}};t[s]={min:n.scale,max:o.scale}}return t}function q_(e){let i=cf(e);for(let t of Object.keys(e.scales)){let{min:s,max:n}=i[t];if(s!==void 0&&e.scales[t].min!==s||n!==void 0&&e.scales[t].max!==n)return!0}return!1}function _t(e,i){let{handlers:t}=tt(e),s=t[i];s&&s.target&&(s.target.removeEventListener(i,s),delete t[i])}function rs(e,i,t,s){let{handlers:n,options:o}=tt(e),r=n[t];r&&r.target===i||(_t(e,t),n[t]=a=>s(e,a,o),n[t].target=i,i.addEventListener(t,n[t]))}function K_(e,i){let t=tt(e);t.dragStart&&(t.dragging=!0,t.dragEnd=i,e.update("none"))}function Z_(e,i){let t=tt(e);!t.dragStart||i.key!=="Escape"||(_t(e,"keydown"),t.dragging=!1,t.dragStart=t.dragEnd=null,e.update("none"))}function hf(e,i,t){let{onZoomStart:s,onZoomRejected:n}=t;if(s){let o=vt(i,e);if(L(s,[{chart:e,event:i,point:o}])===!1)return L(n,[{chart:e,event:i}]),!1}}function Q_(e,i){let t=tt(e),{pan:s,zoom:n={}}=t.options;if(i.button!==0||sf(as(s),i)||Mr(as(n.drag),i))return L(n.onZoomRejected,[{chart:e,event:i}]);hf(e,i,n)!==!1&&(t.dragStart=i,rs(e,e.canvas,"mousemove",K_),rs(e,window.document,"keydown",Z_))}function ff(e,i,t,s){let n=we(i,"x",e),o=we(i,"y",e),{top:r,left:a,right:l,bottom:c,width:h,height:f}=e.chartArea,u=vt(t,e),p=vt(s,e);n&&(a=Math.min(u.x,p.x),l=Math.max(u.x,p.x)),o&&(r=Math.min(u.y,p.y),c=Math.max(u.y,p.y));let m=l-a,b=c-r;return{left:a,top:r,right:l,bottom:c,width:m,height:b,zoomX:n&&m?1+(h-m)/h:1,zoomY:o&&b?1+(f-b)/f:1}}function J_(e,i){let t=tt(e);if(!t.dragStart)return;_t(e,"mousemove");let{mode:s,onZoomComplete:n,drag:{threshold:o=0}}=t.options.zoom,r=ff(e,s,t.dragStart,i),a=we(s,"x",e)?r.width:0,l=we(s,"y",e)?r.height:0,c=Math.sqrt(a*a+l*l);if(t.dragStart=t.dragEnd=null,c<=o){t.dragging=!1,e.update("none");return}af(e,{x:r.left,y:r.top},{x:r.right,y:r.bottom},"zoom"),setTimeout(()=>t.dragging=!1,500),L(n,[{chart:e}])}function ty(e,i,t){if(Mr(as(t.wheel),i)){L(t.onZoomRejected,[{chart:e,event:i}]);return}if(hf(e,i,t)!==!1&&(i.cancelable&&i.preventDefault(),i.deltaY!==void 0))return!0}function ey(e,i){let{handlers:{onZoomComplete:t},options:{zoom:s}}=tt(e);if(!ty(e,i,s))return;let n=i.target.getBoundingClientRect(),o=1+(i.deltaY>=0?-s.wheel.speed:s.wheel.speed),r={x:o,y:o,focalPoint:{x:i.clientX-n.left,y:i.clientY-n.top}};Pr(e,r),t&&t()}function iy(e,i,t,s){t&&(tt(e).handlers[i]=E_(()=>L(t,[{chart:e}]),s))}function sy(e,i){let t=e.canvas,{wheel:s,drag:n,onZoomComplete:o}=i.zoom;s.enabled?(rs(e,t,"wheel",ey),iy(e,"onZoomComplete",o,250)):_t(e,"wheel"),n.enabled?(rs(e,t,"mousedown",Q_),rs(e,t.ownerDocument,"mouseup",J_)):(_t(e,"mousedown"),_t(e,"mousemove"),_t(e,"mouseup"),_t(e,"keydown"))}function ny(e){_t(e,"mousedown"),_t(e,"mousemove"),_t(e,"mouseup"),_t(e,"wheel"),_t(e,"click"),_t(e,"keydown")}function oy(e,i){return function(t,s){let{pan:n,zoom:o={}}=i.options;if(!n||!n.enabled)return!1;let r=s&&s.srcEvent;return r&&!i.panning&&s.pointerType==="mouse"&&(Mr(as(n),r)||sf(as(o.drag),r))?(L(n.onPanRejected,[{chart:e,event:s}]),!1):!0}}function ry(e,i){let t=Math.abs(e.clientX-i.clientX),s=Math.abs(e.clientY-i.clientY),n=t/s,o,r;return n>.3&&n<1.7?o=r=!0:t>s?o=!0:r=!0,{x:o,y:r}}function uf(e,i,t){if(i.scale){let{center:s,pointers:n}=t,o=1/i.scale*t.scale,r=t.target.getBoundingClientRect(),a=ry(n[0],n[1]),l=i.options.zoom.mode,c={x:a.x&&we(l,"x",e)?o:1,y:a.y&&we(l,"y",e)?o:1,focalPoint:{x:s.x-r.left,y:s.y-r.top}};Pr(e,c),i.scale=t.scale}}function ay(e,i){i.options.zoom.pinch.enabled&&(i.scale=1)}function ly(e,i,t){i.scale&&(uf(e,i,t),i.scale=null,L(i.options.zoom.onZoomComplete,[{chart:e}]))}function df(e,i,t){let s=i.delta;s&&(i.panning=!0,lf(e,{x:t.deltaX-s.x,y:t.deltaY-s.y},i.panScales),i.delta={x:t.deltaX,y:t.deltaY})}function cy(e,i,t){let{enabled:s,onPanStart:n,onPanRejected:o}=i.options.pan;if(!s)return;let r=t.target.getBoundingClientRect(),a={x:t.center.x-r.left,y:t.center.y-r.top};if(L(n,[{chart:e,event:t,point:a}])===!1)return L(o,[{chart:e,event:t}]);i.panScales=nf(i.options.pan,a,e),i.delta={x:0,y:0},clearTimeout(i.panEndTimeout),df(e,i,t)}function hy(e,i){i.delta=null,i.panning&&(i.panEndTimeout=setTimeout(()=>i.panning=!1,500),L(i.options.pan.onPanComplete,[{chart:e}]))}var Tr=new WeakMap;function fy(e,i){let t=tt(e),s=e.canvas,{pan:n,zoom:o}=i,r=new gi.default.Manager(s);o&&o.pinch.enabled&&(r.add(new gi.default.Pinch),r.on("pinchstart",()=>ay(e,t)),r.on("pinch",a=>uf(e,t,a)),r.on("pinchend",a=>ly(e,t,a))),n&&n.enabled&&(r.add(new gi.default.Pan({threshold:n.threshold,enable:oy(e,t)})),r.on("panstart",a=>cy(e,t,a)),r.on("panmove",a=>df(e,t,a)),r.on("panend",()=>hy(e,t))),Tr.set(e,r)}function uy(e){let i=Tr.get(e);i&&(i.remove("pinchstart"),i.remove("pinch"),i.remove("pinchend"),i.remove("panstart"),i.remove("pan"),i.remove("panend"),i.destroy(),Tr.delete(e))}var dy="2.0.1";function zn(e,i,t){let s=t.zoom.drag,{dragStart:n,dragEnd:o}=tt(e);if(s.drawTime!==i||!o)return;let{left:r,top:a,width:l,height:c}=ff(e,t.zoom.mode,n,o),h=e.ctx;h.save(),h.beginPath(),h.fillStyle=s.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(r,a,l,c),s.borderWidth>0&&(h.lineWidth=s.borderWidth,h.strokeStyle=s.borderColor||"rgba(225,225,225)",h.strokeRect(r,a,l,c)),h.restore()}var pf={id:"zoom",version:dy,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,i,t){let s=tt(e);s.options=t,Object.prototype.hasOwnProperty.call(t.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(t.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(t.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),gi.default&&fy(e,t),e.pan=(n,o,r)=>lf(e,n,o,r),e.zoom=(n,o)=>Pr(e,n,o),e.zoomRect=(n,o,r)=>af(e,n,o,r),e.zoomScale=(n,o,r)=>Y_(e,n,o,r),e.resetZoom=n=>X_(e,n),e.getZoomLevel=()=>G_(e),e.getInitialScaleBounds=()=>cf(e),e.isZoomedOrPanned=()=>q_(e)},beforeEvent(e){let i=tt(e);if(i.panning||i.dragging)return!1},beforeUpdate:function(e,i,t){let s=tt(e);s.options=t,sy(e,t)},beforeDatasetsDraw(e,i,t){zn(e,"beforeDatasetsDraw",t)},afterDatasetsDraw(e,i,t){zn(e,"afterDatasetsDraw",t)},beforeDraw(e,i,t){zn(e,"beforeDraw",t)},afterDraw(e,i,t){zn(e,"afterDraw",t)},stop:function(e){ny(e),gi.default&&uy(e),L_(e)},panFunctions:Cr,zoomFunctions:vr,zoomRectFunctions:Sr};var gf={[se.GREEN]:{datasetColors:[{borderColor:"#40dab7",backgroundColor:"rgba(64, 218, 183, 0.2)"},{borderColor:"#3ac4a5",backgroundColor:"rgba(58, 196, 165, 0.2)"},{borderColor:"#33ae92",backgroundColor:"rgba(51, 174, 146, 0.2)"},{borderColor:"#2d9980",backgroundColor:"rgba(45, 153, 128, 0.2)"},{borderColor:"#26836e",backgroundColor:"rgba(38, 131, 110, 0.2)"},{borderColor:"#206d5c",backgroundColor:"rgba(32, 109, 92, 0.2)"},{borderColor:"#1a5749",backgroundColor:"rgba(26, 87, 73, 0.2)"},{borderColor:"#134137",backgroundColor:"rgba(19, 65, 55, 0.2)"},{borderColor:"#0d2c25",backgroundColor:"rgba(13, 44, 37, 0.2)"},{borderColor:"#061612",backgroundColor:"rgba(6, 22, 18, 0.2)"}]},[se.BLUE]:{datasetColors:[{borderColor:"#29aadc",backgroundColor:"rgba(41, 170, 220, 0.2)"},{borderColor:"#2599c6",backgroundColor:"rgba(37, 153, 198, 0.2)"},{borderColor:"#2188b0",backgroundColor:"rgba(33, 136, 176, 0.2)"},{borderColor:"#1d779a",backgroundColor:"rgba(29, 119, 154, 0.2)"},{borderColor:"#196684",backgroundColor:"rgba(25, 102, 132, 0.2)"},{borderColor:"#15556e",backgroundColor:"rgba(21, 85, 110, 0.2)"},{borderColor:"#104458",backgroundColor:"rgba(16, 68, 88, 0.2)"},{borderColor:"#0c3342",backgroundColor:"rgba(12, 51, 66, 0.2)"},{borderColor:"#08222c",backgroundColor:"rgba(8, 34, 44, 0.2)"},{borderColor:"#041116",backgroundColor:"rgba(4, 17, 22, 0.2)"}]},[se.RED]:{datasetColors:[{borderColor:"#b02863",backgroundColor:"rgba(176, 40, 99, 0.2)"},{borderColor:"#9e2459",backgroundColor:"rgba(158, 36, 89, 0.2)"},{borderColor:"#8d204f",backgroundColor:"rgba(141, 32, 79, 0.2)"},{borderColor:"#7b1c45",backgroundColor:"rgba(123, 28, 69, 0.2)"},{borderColor:"#6a183b",backgroundColor:"rgba(106, 24, 59, 0.2)"},{borderColor:"#581432",backgroundColor:"rgba(88, 20, 50, 0.2)"},{borderColor:"#461028",backgroundColor:"rgba(70, 16, 40, 0.2)"},{borderColor:"#350c1e",backgroundColor:"rgba(53, 12, 30, 0.2)"},{borderColor:"#230814",backgroundColor:"rgba(35, 8, 20, 0.2)"},{borderColor:"#12040a",backgroundColor:"rgba(18, 4, 10, 0.2)"}]},[se.YELLOW]:{datasetColors:[{borderColor:"#f1c40f",backgroundColor:"rgba(241, 196, 15, 0.2)"},{borderColor:"#d9b00e",backgroundColor:"rgba(217, 176, 14, 0.2)"},{borderColor:"#c19d0c",backgroundColor:"rgba(193, 157, 12, 0.2)"},{borderColor:"#a9890b",backgroundColor:"rgba(169, 137, 11, 0.2)"},{borderColor:"#917609",backgroundColor:"rgba(145, 118, 9, 0.2)"},{borderColor:"#796208",backgroundColor:"rgba(121, 98, 8, 0.2)"},{borderColor:"#604e06",backgroundColor:"rgba(96, 78, 6, 0.2)"},{borderColor:"#483b04",backgroundColor:"rgba(72, 59, 4, 0.2)"},{borderColor:"#302703",backgroundColor:"rgba(48, 39, 3, 0.2)"},{borderColor:"#181401",backgroundColor:"rgba(24, 20, 1, 0.2)"}]}};var wr=6,ne=class{static registerZoomPlugin(){Et.register(pf)}static createXAxisLabels(i){let t=i.xAxisLabelDensity||1,s=i.xAxisRepetitionCount||$h,n=i.xAxisDataPointsCount||Xh;return Array.from({length:s*n},(o,r)=>r%(n*t)===0?`${i?.xAxisLabelPrefix||""} ${r/n}`:"")}static createSinglePhaseAxisLabels(i,t){let s=i.xAxisInitialLabelValue??1,n=i.xAxisDataPointsCount??0,o=n+s-1,r=`${i?.xAxisLabelPrefix||""} ${o}`,a=wr,l=r.length*a,c=Math.floor(t/l),h=Math.max(1,Math.ceil(n/c));return Array.from({length:n},(f,u)=>u%h===0?`${i?.xAxisLabelPrefix||""} ${u+s}`:"")}static createSinglePhaseSkipOneAxisLabels(i,t){let s=i.xAxisDataPointsCount||0,n=i.xAxisInitialLabelValue??1,o=s+n-1,r=`${i?.xAxisLabelPrefix||""} ${o}`,a=wr,l=r.length*a,c=Math.floor(t/l),h=Math.max(1,Math.ceil(s/c));return Array.from({length:s},(f,u)=>u%h===0&&u!==0?`${i?.xAxisLabelPrefix||""} ${u-1}`:"")}static configureChartOptions(i){return{responsive:!0,maintainAspectRatio:!1,animation:{duration:0},scales:{y:{display:!0,min:i.yAxisMinimumValue,max:i.yAxisMaximumValue,ticks:{display:i.isYAxisVisible,stepSize:i.yAxisTickInterval}},x:{display:i.isXAxisVisible,type:"category",ticks:{autoSkip:!1},grid:{drawOnChartArea:!0,color:t=>t.tick&&t.tick.label!==""?"rgba(225, 228, 232, 1)":"transparent",lineWidth:1,tickLength:10},border:{display:!0,width:1,color:"rgba(225, 228, 232, 1)",dash:[],dashOffset:0}}},plugins:{tooltip:{mode:"index",intersect:!1,enabled:i.areTooltipsEnabled,callbacks:{title:t=>{let n=t[0].dataIndex+1,o=i.tooltipLabelPrefix||i.xAxisLabelPrefix||"",r=i.xAxisDataPointsCount||1;if(i.chartDataStructure===Xe.MUlTI_PHASE_X_AXIS){let a=Math.floor(n/r),l=n%r;return l===0&&n!==0&&(l=r),`${o} ${a}, Step: ${l}`}else return`${o} ${n}`},label:t=>{let s=t?.dataset?.label||"",n=t.raw;return`${s}: ${n}`}}},legend:{display:i.isDatasetLabelVisible},zoom:{pan:{mode:"xy",onPan:({chart:t})=>{this.dynamicUpdateOfXAxisLabels(t,i)},onPanComplete:({chart:t})=>{this.dynamicUpdateOfXAxisLabels(t,i)}},limits:{y:{min:i?.zoomRangeLimits?.min||0,max:i?.zoomRangeLimits?.max||void 0},x:{min:0}},zoom:{onZoom:({chart:t})=>{this.dynamicUpdateOfXAxisLabels(t,i)},onZoomComplete:({chart:t})=>{this.dynamicUpdateOfXAxisLabels(t,i)}}}}}}static dynamicUpdateOfXAxisLabels(i,t){if(!t.isXAxisDynamic)return;let s=i.scales.x,n=Math.floor(s.min),o=Math.ceil(s.max),r=i.width||0,a=t.xAxisInitialLabelValue??1,l=o-n+1,c=l+a-1,h=`${t?.xAxisLabelPrefix||""} ${c}`,f=wr,u=h.length*f,p=Math.floor(r/u),m=Math.max(1,Math.ceil(l/p)),b=Array.from({length:i?.data?.labels.length},(_,y)=>yo?"":y%m===0?`${t?.xAxisLabelPrefix||""} ${a+y}`:"");i.data.labels=b,i.update("none")}static prepareSinglePhaseChartDataStructure(i,t){return{datasets:[],labels:this.createSinglePhaseAxisLabels(i,t)}}static prepareSinglePhaseSkipOneChartDataStructure(i,t){return{datasets:[],labels:this.createSinglePhaseSkipOneAxisLabels(i,t)}}static prepareChartDataStructure(i){return{datasets:[],labels:this.createXAxisLabels(i)}}static initializeDatasetTemplate(i,t){let s=this.getDatasetColorSetting(i,t);return{label:this.getDatasetLabel(i,t),data:[],borderColor:s.borderColor,backgroundColor:s.backgroundColor,fill:"origin",pointRadius:0,pointHoverRadius:0,pointBackgroundColor:s.borderColor,pointHoverBackgroundColor:s.borderColor,pointHoverBorderColor:s.borderColor,stepped:t.useSteppedLines||!1}}static getDatasetColorSetting(i,t){let n=this.determineColorSettings(t)?.datasetColors||[];return n[i%n.length]||{borderColor:"black",backgroundColor:"white"}}static determineColorSettings(i){if(i.isChartWithCustomColorSettings&&!he(i.customChartColors))return i.customChartColors;let t=i.datasetColorSettingsKey||xr,s=gf[t];return i.isChartWithCustomColorSettings&&he(i.customChartColors)&&console.warn(`No custom chart colors found. Using default settings: ${xr}`),s}static getDatasetLabel(i,t){return t.hasCustomDatasetsLabels?t?.customDatasetsLabels?.[i]??"":`${t?.datasetLabelPrefix||""} ${i}`}};var py=["chartContainer"],oe,mf=(oe=class{constructor(i,t,s){this.scriptFacadeService=i,this.chartToolsGlobalSignalsService=t,this.chartWebsocketService=s,this.data=[],this.latestValuesToUpdate=[],this.lineChartType="line",this.isScriptActive=!1,this.maxY=0}ngOnInit(){this.registerPlugins(),this.listenToScriptStateChanges(),this.listenToToolsSignals(),this.listenToChartWebsocketEvents()}listenToChartWebsocketEvents(){this.chartWebsocketService.latestValuesToUpdate.pipe(qe(this)).subscribe(i=>{this.addLatestValueToChart(i.datasetIndex,i.value)}),this.chartWebsocketService.enhanceXAxis.pipe(qe(this)).subscribe(i=>{this.settings.enhanceSinglePhaseXAxisWebsocketEvent&&this.enhanceSinglePhaseXAxis(i)})}registerPlugins(){ne.registerZoomPlugin()}ngOnChanges(i){i.settings&&i.settings.currentValue&&(this.stopAutoUpdate(),this.startAutoUpdate(),this.initializeChartSettings(),this.chartWebsocketService.initializeWebSocket(this.settings?.realtimeUpdateMetric)),i.data&&i.data.currentValue&&this.prependNewChartData(i.data.currentValue)}listenToToolsSignals(){this.chartToolsGlobalSignalsService&&(this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(qn(100),qe(this)).subscribe(i=>{he(this.lineChartOptions)||(Et.defaults.plugins.tooltip.enabled=i,this.chart&&this.chart.update())}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(qn(100),qe(this)).subscribe(i=>{he(this.lineChartOptions)||(Et.defaults.plugins.zoom.pan.enabled=i,Et.defaults.plugins.zoom.zoom.wheel.enabled=i,this.updateCursor(i),!i&&this.chart&&this.chart.chart?.resetZoom(),this.chart&&this.chart?.render())}))}updateCursor(i){let t=i?"add":"remove";this.chartContainer.nativeElement.classList[t]("zoom-cursor")}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(qe(this)).subscribe(i=>{this.isScriptActive=ca(i),this.isScriptActive?this.startAutoUpdate():this.stopAutoUpdate(),this.updateChartSettingsBasedOnScriptState()})}updateChartSettingsBasedOnScriptState(){let i=!1;this.lineChartData&&this.lineChartData.datasets&&(this.lineChartData.datasets.forEach(t=>{t.pointHoverRadius=this.isScriptActive?0:5}),i=!0),i&&this.chart?.update()}initializeChartSettings(){this.lineChartOptions=ne.configureChartOptions(this.settings),this.updateChartSettingsBasedOnScriptState();let i=this.chartContainer.nativeElement.offsetWidth;switch(this.settings?.chartDataStructure){case Xe.SINGLE_PHASE_X_AXIS:{this.lineChartData=ne.prepareSinglePhaseChartDataStructure(this.settings,i);break}case Xe.SINGLE_PHASE_X_AXIS_SKIP_ONE:{this.lineChartData=ne.prepareSinglePhaseSkipOneChartDataStructure(this.settings,i);break}case Xe.MUlTI_PHASE_X_AXIS:{this.lineChartData=ne.prepareChartDataStructure(this.settings);break}default:break}this.chart?.update()}enhanceSinglePhaseXAxis(i){if(!this.settings.isXAxisDynamic)return;let t=`${this.settings.xAxisLabelPrefix} ${i}`;this.lineChartData.labels?.includes(t)||(this.lineChartData.labels?.push(t),this.chart?.update())}prependNewChartData(i){if(!he(this.lineChartData)){if(i.forEach(t=>{let s=t.datasetIndex;this.ensureDatasetLength(s);let n=this.lineChartData.datasets[s];n.data=[...t.values,...n.data]}),this.settings?.isYAxisDynamic){let t=i.flatMap(s=>s.values);this.updateDynamicYAxis(t)}this.chart?.update()}}startAutoUpdate(){if(!this.isScriptActive||he(this.settings))return;this.settings.updateInterval=Uh;let i=Number(this.settings.updateInterval);if(i<=0){console.warn("Invalid update interval. Auto update will not start.");return}this.updateIntervalId!==void 0&&clearInterval(this.updateIntervalId),this.updateIntervalId=setInterval(()=>{this.refreshChartData()},i)}refreshChartData(){try{if(!this.latestValuesToUpdate.length)return;this.latestValuesToUpdate.forEach(i=>{this.ensureDatasetLength(i.datasetIndex),this.lineChartData.datasets[i.datasetIndex].data.push(i.value)}),this.settings?.isYAxisDynamic&&this.updateDynamicYAxis(this.latestValuesToUpdate.map(i=>i.value)),this.chart?.update(),this.latestValuesToUpdate.splice(0,this.latestValuesToUpdate.length)}catch(i){console.error("Error updating chart:",i)}}updateDynamicYAxis(i){if(i.length===0)return;let t=i.reduce((s,n)=>Math.max(s,n));t>this.maxY&&(this.maxY=Math.ceil((t+(this.settings?.dynamicYAxisGrowthOffset||Yh))/(this.settings?.dynamicYAxisGrowthRoundFactor||br))*(this.settings?.dynamicYAxisGrowthRoundFactor||br),this.updateAxisMaxLimits(this.maxY),this.chart?.render())}updateAxisMaxLimits(i){this.lineChartOptions&&this.lineChartOptions.scales&&this.lineChartOptions.scales.y&&(this.lineChartOptions.scales.y.max=i)}ensureDatasetLength(i){for(;i>=this.lineChartData?.datasets?.length;)this.lineChartData.datasets.push(ne.initializeDatasetTemplate(this.lineChartData.datasets.length,this.settings))}addLatestValueToChart(i,t){t!=null&&this.latestValuesToUpdate.push({datasetIndex:i,value:t})}stopAutoUpdate(){this.updateIntervalId&&clearInterval(this.updateIntervalId)}resetLocalChartSettings(){this.chartToolsGlobalSignalsService&&(this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1)}ngOnDestroy(){this.resetLocalChartSettings(),this.stopAutoUpdate()}},oe.\u0275fac=function(t){return new(t||oe)(ce(fa),ce(da,8),ce(Rn))},oe.\u0275cmp=Kr({type:oe,selectors:[["ms-line-chart"]],viewQuery:function(t,s){if(t&1&&(Zn(Ln,7),Zn(py,7)),t&2){let n;Qn(n=Jn())&&(s.chart=n.first),Qn(n=Jn())&&(s.chartContainer=n.first)}},inputs:{data:"data",settings:"settings"},standalone:!0,features:[ra([Rn]),vs,aa],decls:4,vars:3,consts:[["chartContainer",""],["chart",""],["baseChart","","id","chart",3,"data","options","type"]],template:function(t,s){t&1&&(sa(0,"div",null,0),oa(2,"canvas",2,1),na()),t&2&&(ta(2),ia("data",s.lineChartData)("options",s.lineChartOptions)("type",s.lineChartType))},dependencies:[Hh,Ln],styles:["#chart[_ngcontent-%COMP%]{display:block;height:250px;width:100%!important}.zoom-cursor[_ngcontent-%COMP%]{cursor:crosshair}"],changeDetection:0}),oe);mf=$r([la()],mf);export{se as a,gT as b,Xh as c,mT as d,Xe as e,$e as f,gf as g,da as h,mf as i}; diff --git a/frontend/server/modelsmith-build/browser/chunk-AKLXM26R.js b/frontend/server/modelsmith-build/browser/chunk-AKLXM26R.js new file mode 100644 index 00000000..c2e3cf14 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-AKLXM26R.js @@ -0,0 +1 @@ +import{Bb as d,Ea as a,ab as i,bb as s,cb as c,ha as m,ub as l,vb as o}from"./chunk-64NP6AY6.js";var u=(()=>{let e=class e{constructor(){this.title="",this.message=""}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["ms-empty-state"]],inputs:{title:"title",message:"message"},standalone:!0,features:[d],decls:6,vars:2,consts:[["src","assets/icons/empty-state.svg"],[1,"heading-section-title"],[1,"paragraph-regular-p2-large"]],template:function(t,r){t&1&&(i(0,"div"),c(1,"img",0),i(2,"div",1),l(3),s(),i(4,"div",2),l(5),s()()),t&2&&(a(3),o(r.title),a(2),o(r.message))},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]});let n=e;return n})();export{u as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-CHZOVJ7N.js b/frontend/server/modelsmith-build/browser/chunk-CHZOVJ7N.js new file mode 100644 index 00000000..31b26b41 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-CHZOVJ7N.js @@ -0,0 +1 @@ +import{a as O}from"./chunk-FF67PNLR.js";import{a as I}from"./chunk-W3QFCG25.js";import"./chunk-7DL2PMFN.js";import"./chunk-OWLYOD4I.js";import"./chunk-VLJTKNYA.js";import"./chunk-MK5CNTNK.js";import{a as Ot,b as It}from"./chunk-F7URI57V.js";import"./chunk-OVEUDHWN.js";import"./chunk-JMFIGVCB.js";import"./chunk-OA3ZLQZZ.js";import{a as _,b as Et,c as Rt,d as H}from"./chunk-PR3LNGVD.js";import"./chunk-ZTWJRPOH.js";import{b as g,c as h,f as Ft,k as Pt}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import{b as z,c as Mt}from"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import{a as Nt,b as _t}from"./chunk-YPMBMI5J.js";import{a as P,b as N,c as bt,j as Gt}from"./chunk-QTJZRTNN.js";import{a as T,b as f}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import{h as At,i as Tt}from"./chunk-OFW2ET2O.js";import{$ as v,$a as k,$d as u,Ab as nt,E as C,Ea as n,Fa as c,I as B,J as Z,L as J,Q as W,Qd as lt,Rd as pt,Sa as m,_a as D,_b as at,_d as ct,a as R,ab as a,ad as st,b as L,bb as s,be as dt,cb as U,ce as M,da as X,db as Y,de as F,eb as tt,fe as ht,gb as et,ha as y,ia as A,jb as K,je as ft,ke as ut,lc as mt,me as gt,p as S,pa as w,pc as Q,pe as St,qa as j,qb as it,qe as Ct,rb as rt,re as vt,sb as ot,ub as d,ue as yt,wb as V,x as q}from"./chunk-64NP6AY6.js";var Lt=(r,t)=>t.key;function Ut(r,t){if(r&1&&(a(0,"mat-option",6),d(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",e.value," ")}}function Kt(r,t){if(r&1&&(a(0,"mat-option",6),d(1),s()),r&2){let e=t.$implicit;m("value",e.key),n(),V(" ",e.value," ")}}var l,b=(l=class{get parentFormGroup(){return this.controlContainer.control}get algorithmFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmFormControl(){return this.algorithmFormGroup?.get(this.ALGORITHM_CONTROL_NAME)}constructor(t,e){this.controlContainer=t,this.scriptFacadeService=e,this.controlKey="",this.pruningAlgorithmsList=Et,this.quantAlgorithmsList=Rt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(W(1),Z(1),C(t=>!Mt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===h.PRUNING||e===h.QUANTIZATION?t.algKey:H;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new ht(H,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(u),c(N))},l.\u0275cmp=y({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[nt([],[{provide:u,useFactory:()=>X(u,{skipSelf:!0})}])],decls:12,vars:2,consts:[[1,"ms-card","algorithm-card"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],["label","Pruning"],[3,"value"],["label","Quantization"]],template:function(e,i){e&1&&(a(0,"mat-card",0)(1,"p",1),d(2,"Algorithm"),s(),a(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),D(7,Ut,2,2,"mat-option",6,Lt),s(),a(9,"mat-optgroup",7),D(10,Kt,2,2,"mat-option",6,Lt),s()()()()()),e&2&&(n(3),m("formGroupName",i.controlKey),n(2),m("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),k(i.pruningAlgorithmsList),n(3),k(i.quantAlgorithmsList))},dependencies:[Nt,At,Ot,pt,lt,dt,M,gt,ut]}),l);b=S([T()],b);var x="custommodel";function wt(r){let t=r.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9_]/.test(t)&&(t="file_"+t),/.py$/.test(t)||(t+=".py"),t}var Qt=["panelParameters"],p,G=(p=class{constructor(t,e,i,o){this.scriptFacadeService=t,this.fileService=e,this.snackbarService=i,this.router=o,this.form=new F({}),this.AlgorithmType=h,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ft.IMP,this.selectedAlgorithmType=h.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(B(50),q(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),J(),C(t=>!z(t)),f(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=Pt(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(z(this.selectedAlgorithm)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{algorithm:t,model:e}=this.form.getRawValue(),{model:i}=e;if(i===x&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===x?wt(this.fileService?.file.name):i,E=L(R({},t),{params:L(R({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(P.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(N),c(Gt),c(bt),c(mt))},p.\u0275cmp=y({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&it(Qt,5),e&2){let o;rt(o=ot())&&(i.panelParametersComponent=o.first)}},decls:17,vars:5,consts:[["panelAlgorithm",""],["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","algorithm"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(e,i){if(e&1){let o=et();a(0,"p",2),d(1,"Model Compression"),s(),a(2,"div",3)(3,"div",4),Y(4,5),U(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),tt(),a(10,"div")(11,"button",9),K("click",function(){return w(o),j(i.submit())}),d(12," Run "),s(),a(13,"button",10),K("click",function(){return w(o),j(i.goToChartPage())}),d(14,"View Chart"),s()()(),a(15,"div",11),U(16,"ms-terminal"),s()()}e&2&&(n(2),m("formGroup",i.form),n(2),m("formGroup",i.form),n(3),m("algorithmType",i.selectedAlgorithmType),n(),m("algorithm",i.selectedAlgorithm),n(3),m("disabled",i.isScriptActive||i.form.invalid))},dependencies:[_,O,I,M,ft,vt,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([T()],G);var zt=[{path:"",component:G}],jt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[Q.forChild(zt),Q]});let r=t;return r})();var $e=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,jt,_,O,I,_t,Tt,It,St,Ct,yt]});let r=t;return r})();export{$e as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-CIO4ZYDC.js b/frontend/server/modelsmith-build/browser/chunk-CIO4ZYDC.js new file mode 100644 index 00000000..9adea14e --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-CIO4ZYDC.js @@ -0,0 +1 @@ +import{Bb as d,ab as i,bb as o,ha as r,mb as a,nb as c}from"./chunk-64NP6AY6.js";var l=["*"],p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r({type:e,selectors:[["ms-background-gradient"]],standalone:!0,features:[d],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"full-page-gradient"]],template:function(n,g){n&1&&(a(),i(0,"div",0),c(1),o())},styles:[".full-page-gradient[_ngcontent-%COMP%]{height:100vh;width:100vw;background:linear-gradient(to right,var(--header-left),var(--header-right))}"]});let t=e;return t})();export{p as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-DFNZUJOD.js b/frontend/server/modelsmith-build/browser/chunk-DFNZUJOD.js new file mode 100644 index 00000000..0067ed1c --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-DFNZUJOD.js @@ -0,0 +1 @@ +import{a as Q,b as Y}from"./chunk-6VRVKV6C.js";import{b as it,s as at}from"./chunk-W4S57J6B.js";import{Bb as N,Ca as z,Ea as l,Fa as w,Fb as W,Hb as $,Ib as I,Qa as C,Sa as m,Vb as X,Wb as q,Ya as O,_ as B,_b as J,a as S,aa as L,ab as a,bb as r,ca as y,cb as G,fb as M,gb as h,ha as V,j as A,jb as g,ka as H,lb as c,mb as U,nb as F,p as j,pa as u,qa as f,re as Z,tb as k,te as tt,ub as x,ue as et,va as _,vb as K,wb as E,we as ot,xe as nt,ya as R}from"./chunk-64NP6AY6.js";var D=new L("DIALOG_DATA");function b(t,e){let o={};return t&&rt(o,t,"width"),e&&rt(o,e,"height"),o}function rt(t,e,o){let n=ut(e);n==="px"||n==="rem"||n==="em"?t[`${o}.${n}`]=parseFloat(e):t[o]=e}function ut(t){let o=(typeof t=="string"?t:"").match(/(px|rem|em|vw|vh|%)$/);return o?o[0]:"px"}var p=function(t){return t.OPEN="open",t.DISMISS="dismiss",t.SAVE="save",t.CLOSE="close",t}(p||{});var lt=(()=>{let e=class e{transform(n,i){return b(n,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=H({name:"dialogSizeStyles",type:e,pure:!0,standalone:!0});let t=e;return t})();var d=class{constructor(e){this.overlayRef=e,this.afterClosedSubject=new A}backdropClick(){return this.overlayRef.backdropClick()}close(e){this.overlayRef.dispose(),this.afterClosedSubject.next(e),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var _t=["*"];function Ct(t,e){t&1&&M(0)}function ht(t,e){if(t&1){let o=h();a(0,"div",7)(1,"div",8),x(2),r(),a(3,"div",9)(4,"button",10),g("click",function(){u(o);let i=c();return f(i.onDismiss())}),G(5,"mat-icon",11),r()()()}if(t&2){let o=c();l(2),K(o.data.title)}}function xt(t,e){t&1&&M(0)}function Dt(t,e){if(t&1){let o=h();a(0,"button",15),g("click",function(){u(o);let i=c(2);return f(i.onClose())}),x(1),r()}if(t&2){let o=c(2);m("disabled",o.isDismissDisabled),l(),E(" ",o.data.closeButtonLabel," ")}}function bt(t,e){if(t&1){let o=h();a(0,"button",16),g("click",function(){u(o);let i=c(2);return f(i.onSave())}),x(1),r()}if(t&2){let o=c(2);m("disabled",o.isSaveDisabled),l(),E(" ",o.data.saveButtonLabel," ")}}function vt(t,e){if(t&1&&(a(0,"div",12),C(1,Dt,2,2,"button",13)(2,bt,2,2,"button",14),r()),t&2){let o=c();l(),O(o.data.showCloseButton?1:-1),l(),O(o.data.showSaveButton?2:-1)}}var s,ct=(s=class{constructor(e,o){this.dialogRef=e,this.data=o,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new R,this.closeDrawerOnBackdropClick()}get dialogSizeStyles(){return b(this.data.width,this.data.height)}onClose(){this.actionEvent.emit(p.CLOSE),this.dialogRef.close({status:p.CLOSE})}onSave(){this.actionEvent.emit(p.SAVE)}onDismiss(){this.actionEvent.emit(p.DISMISS),this.dialogRef.close({status:p.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.dialogRef.backdropClick().pipe(Y(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},s.\u0275fac=function(o){return new(o||s)(w(d),w(D))},s.\u0275cmp=V({type:s,selectors:[["ms-dialog"]],hostBindings:function(o,n){o&1&&g("keyup.esc",function(){return n.onEscKeyDown()},!1,z)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[N],ngContentSelectors:_t,decls:12,vars:6,consts:[["defaultDialogHeader",""],["defaultDialogActions",""],[1,"dialog-wrapper",3,"ngStyle"],[1,"dialog-header"],[4,"ngTemplateOutlet"],[1,"dialog-content"],[1,"dialog-actions"],[1,"dialog-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],[1,"actions-wrapper"],["mat-stroked-button","",3,"disabled"],["mat-flat-button","","color","primary",3,"disabled"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(o,n){if(o&1&&(U(),a(0,"div",2),W(1,"dialogSizeStyles"),a(2,"div",3),C(3,Ct,1,0,"ng-container",4)(4,ht,6,1,"ng-template",null,0,I),r(),a(6,"div",5),F(7),r(),a(8,"div",6),C(9,xt,1,0,"ng-container",4)(10,vt,3,2,"ng-template",null,1,I),r()()),o&2){let i=k(5),v=k(11);m("ngStyle",$(1,3,n.data.width,n.data.height)),l(3),m("ngTemplateOutlet",n.headerTemplate||i),l(6),m("ngTemplateOutlet",n.actionsTemplate||v)}},dependencies:[J,q,X,et,Z,tt,nt,ot,lt],styles:[".dialog-wrapper[_ngcontent-%COMP%]{width:inherit;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.dialog-wrapper[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{min-height:60px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.dialog-wrapper[_ngcontent-%COMP%] .dialog-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:24px 32px}.dialog-wrapper[_ngcontent-%COMP%] .dialog-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.dialog-wrapper[_ngcontent-%COMP%] .dialog-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.dialog-wrapper[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:16px 32px}.dialog-wrapper[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:16px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.dialog-wrapper[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.dialog-wrapper[_ngcontent-%COMP%] .dialog-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),s);ct=j([Q()],ct);var pt="1024px",dt="400px";var ne=(()=>{let e=class e{constructor(n,i){this.overlay=n,this.injector=i}open(n,i){let v=this.overlay.position().global().centerHorizontally().centerVertically(),T=this.overlay.create(S({positionStrategy:v,hasBackdrop:!0,backdropClass:"dialog-backdrop"},i)),P=new d(T),mt=_.create({parent:this.injector,providers:[{provide:d,useValue:P},{provide:D,useValue:S({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:i?.width||pt,height:i?.height||dt},i)}]}),gt=new it(n,null,mt);return T.attach(gt),P}};e.\u0275fac=function(i){return new(i||e)(y(at),y(_))},e.\u0275prov=B({token:e,factory:e.\u0275fac});let t=e;return t})();export{D as a,d as b,ct as c,ne as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-F7URI57V.js b/frontend/server/modelsmith-build/browser/chunk-F7URI57V.js new file mode 100644 index 00000000..b3af8aaa --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-F7URI57V.js @@ -0,0 +1 @@ +import{l as Ge,o as Ye,p as Xe,s as Z,t as J,u as ee,v as Ue}from"./chunk-W4S57J6B.js";import{e as ze,f as He,i as Qe}from"./chunk-OFW2ET2O.js";import{$ as se,A as ae,Ab as Ce,Ac as Ie,Ad as Ee,Bb as Oe,Bc as xe,D as w,Dd as De,E as P,Ea as g,Fa as l,Hd as U,Id as Re,J as ne,Jd as Fe,Ka as ue,L as re,Lb as Me,Nb as C,Ob as H,Od as Ve,Pa as _e,Pd as Pe,Qa as I,R as L,Ra as x,Rd as Le,S as W,Sa as j,Sb as we,Sd as We,T as m,Td as je,Ua as ge,Ud as $,Xa as fe,Ya as B,_b as Se,_d as Be,aa as S,ab as h,ae as Ke,bb as f,cb as ye,da as oe,ee as qe,gb as K,ha as le,ia as ce,j as O,jb as M,je as Ne,lb as y,mb as ve,nb as q,oa as de,pa as u,pb as A,pd as Y,qa as _,qb as T,ra as he,rb as v,sb as b,sc as Q,tb as be,tc as G,td as Ae,ua as pe,ub as N,ud as X,vb as z,wc as E,wd as Te,x as V,xa as me,xc as ke,ya as k,zc as D}from"./chunk-64NP6AY6.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",xe("@transformPanel",[Ie()],{optional:!0}))]),transformPanel:Q("transformPanel",[ke("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(Z);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[Z],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=je(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Be.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Re(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ge(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Ae(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ne(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof J?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Te(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};r.\u0275fac=function(t){return new(t||r)(l(Ye),l(Me),l(ue),l(Fe),l(me),l(De,8),l(qe,8),l(Ne,8),l(He,8),l(Ke,10),pe("tabindex"),l(it),l(Ee),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,Le,5),A(a,Pe,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(ee,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:ze,useExisting:r},{provide:Ve,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[J,ee,we],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Ue,$,U,Xe,Qe,$,U]});let n=r;return n})();export{ri as a,si as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-FF67PNLR.js b/frontend/server/modelsmith-build/browser/chunk-FF67PNLR.js new file mode 100644 index 00000000..9c9e096e --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-FF67PNLR.js @@ -0,0 +1 @@ +import{a as ie,b as ae,c as le,e as fe,f as Me}from"./chunk-7DL2PMFN.js";import{b as te}from"./chunk-OWLYOD4I.js";import{a as pe,b as ce}from"./chunk-F7URI57V.js";import{a as y,e as ue}from"./chunk-ZTWJRPOH.js";import{b as oe}from"./chunk-LRK34XDC.js";import{c as ne,d as re}from"./chunk-XX6ZYDLH.js";import{a as me,b as de}from"./chunk-YPMBMI5J.js";import{b as se}from"./chunk-QTJZRTNN.js";import{a as K,b as h}from"./chunk-6VRVKV6C.js";import{h as Q,i as Y}from"./chunk-OFW2ET2O.js";import{$a as x,$d as f,Ab as E,Bb as I,Db as G,E as F,Ea as n,Fa as p,Fb as _,Gb as S,Qa as s,Qd as j,R as b,Rd as k,Sa as c,Xb as V,Ya as l,_a as L,_b as D,_d as B,ab as m,ad as A,bb as r,be as $,cb as M,ce as z,da as P,de as q,fe as v,ha as O,ie as U,ke as W,lb as g,mc as w,me as X,oa as N,p as T,pe as H,qe as J,ub as u,wb as R,we as Z,x as C,xe as ee}from"./chunk-64NP6AY6.js";var ge=(i,e)=>e.name,_e=i=>[i];function Se(i,e){i&1&&M(0,"ms-spining-indicator",10)}function ve(i,e){if(i&1&&s(0,Se,1,0,"ms-spining-indicator",10),i&2){let t=g(2);l(e===t.PageKey.MODEL_TRAINING?0:-1)}}function ye(i,e){if(i&1&&(m(0,"div",3)(1,"a",9),u(2,"Train models"),r(),s(3,ve,1,1),_(4,"async"),r()),i&2){let t,o=g();n(),c("routerLink",G(4,_e,"/"+o.RoutesList.MODEL_TRAINING.ROOT)),n(2),l((t=S(4,2,o.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?3:-1,t)}}function Te(i,e){i&1&&M(0,"mat-icon",13)}function Fe(i,e){if(i&1&&(m(0,"mat-option",11),u(1),s(2,Te,1,0,"mat-icon",13),r()),i&2){let t=e.$implicit;c("value",t.name)("disabled",!t.isTrained),n(),R(" ",t.name," "),n(),l(t.isTrained?-1:2)}}function be(i,e){i&1&&(m(0,"mat-option",12),u(1,"No results found"),r())}function Pe(i,e){if(i&1&&(L(0,Fe,3,4,"mat-option",11,ge),s(2,be,2,0,"mat-option",12)),i&2){let t=e;x(t),n(2),l(t.length===0?2:-1)}}var a,he=(a=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,o,d){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=o,this.pageRunningScriptSpiningIndicatorService=d,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=ae,this.RoutesList=A,this.searchModel=new v,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){e&&(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(y.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(y.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(ne(e))return;let t=this.models.find(o=>o.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(F(o=>!re(o)),C(o=>[...o].sort((d,Ce)=>Number(Ce.isTrained)-Number(d.isTrained)))).subscribe(o=>{this.models=o,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new q({[this.MODEL_CONTROL_NAME]:new v("",B.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{oe(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(h(this),b(""),C(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(o=>o.name.toLowerCase().includes(t))}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},a.\u0275fac=function(t){return new(t||a)(p(f),p(ue),p(se),p(le))},a.\u0275cmp=O({type:a,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:f,useFactory:()=>P(f,{skipSelf:!0})}]),N,I],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"train-models"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],[3,"formControl"],["label","Predefined Models"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled"],["disabled",""],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(t,o){if(t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),u(3,"Model"),r(),s(4,ye,5,6,"div",3),r(),m(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-option"),M(9,"ngx-mat-select-search",7),r(),m(10,"mat-optgroup",8),s(11,Pe,3,1),_(12,"async"),r()()()()()),t&2){let d;n(4),l(o.isTrainModelsPageRouteVisible?4:-1),n(),c("formGroupName",o.controlKey),n(4),c("formControl",o.searchModel),n(2),l((d=S(12,4,o.filteredModels))?11:-1,d)}},dependencies:[D,V,H,$,z,J,U,X,W,de,me,Y,Q,ce,pe,k,j,ee,Z,Me,fe,w,te,ie],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),a);he=T([K()],he);export{he as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GJTXMCBX.js b/frontend/server/modelsmith-build/browser/chunk-GJTXMCBX.js new file mode 100644 index 00000000..1fe95cf5 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GJTXMCBX.js @@ -0,0 +1 @@ +import{Hc as o,Ic as r}from"./chunk-64NP6AY6.js";var i=r({source:"[Core -> Configs]",events:{"Set Default Mode":o(),"Set Current Mode":o()}});var t=function(e){return e.GUIDED="guided",e.EXPERT="expert",e}(t||{});export{i as a,t as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GJVIMBQE.js b/frontend/server/modelsmith-build/browser/chunk-GJVIMBQE.js new file mode 100644 index 00000000..4a96bd94 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GJVIMBQE.js @@ -0,0 +1 @@ +import{ka as o}from"./chunk-64NP6AY6.js";var l=(()=>{let t=class t{transform(a,e=2){let n=Number(a);if(isNaN(n)||n===0)return"0 Bytes";let s=1024,c=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],u=Math.floor(Math.log(n)/Math.log(s));return parseFloat((n/Math.pow(s,u)).toFixed(c))+" "+r[u]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"adaptiveFileSize",type:t,pure:!0,standalone:!0});let i=t;return i})();var d=(()=>{let t=class t{transform(a){return{creation_date:"Creation Date",epochs:"Number of Epochs",file_size_bytes:"File Size",learning_rate:"Learning Rate",model:"Model Architecture",training_duration_seconds:"Training Duration",duration_seconds:"Total Duration",arch:"Model Architecture",best_acc:"Best Accuracy",device:"Device Used",lr:"Learning Rate",pruning_ratio:"Pruning Ratio",start_epoch:"Starting Epoch",pruning_times:"Pruning Iterations",rewinding_epoch:"Rewinding Epoch",save_dir:"Saving Directory",algorithm_key:"Algorithm Key",execution_date:"Execution Date",seed:"Random Seed",dataset:"Dataset Name",batch_size:"Batch Size",workers:"Workers",n_bits_w:"Bitwidth for Weights",channel_wise:"Channel-wise Quantization",n_bits_a:"Bitwidth for Activations",disable_8bit_head_stem:"Disable 8-bit Head and Stem",num_samples:"Number of Samples",iters_w:"Number of Iterations",weight:"Weight Parameter",keep_cpu:"Keep Calibration Data on CPU",wwq:"Weight Quantization",waq:"Activation Quantization",b_start:"Initial Temperature",b_end:"Final Temperature",warmup:"Warmup Period",awq:"Activation Weight Quantization",aaq:"Activation Activation Quantization",init_wmode:"Weight Initialization Mode",init_amode:"Activation Initialization Mode",order:"Order of Quantization",prob:"Probability",input_prob:"Input Probability",act_quant:"Apply Activation Quantization",num_indexes_to_replace:"Number of Indexes to Replace",alpha:"L1 Regularization Coefficient (Alpha)",unlearn_lr:"Learning Rate for Unlearning",unlearn_epochs:"Nr. of Epochs for L1-Sparse Unlearning",train_seed:"Random Seed for Training",class_to_replace:"Specific Class to Forget",data:"Location of the Data Corpus",indexes_to_replace:"Specific Index Data to Forget",no_aug:"No Augmentation in Training Dataset",decreasing_lr:"Decreasing Strategy",rewind_epoch:"Rewind Checkpoint",imagenet_arch:"Architecture for ImageNet Size Samples",no_l1_epochs:"Non L1 Epochs",momentum:"Momentum",weight_decay:"Weight Decay",num_workers:"Number of workers"}[a]||a}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"parametersLabel",type:t,pure:!0,standalone:!0});let i=t;return i})();var f=(()=>{let t=class t{transform(a){let e=Number(a);if(isNaN(e))return"Invalid duration";let n=Math.floor(e/3600),s=Math.floor(e%3600/60),c=Math.floor(e%60),r="";return n>0&&(r+=`${n}h `),(s>0||n>0)&&(r+=`${s}m `),r+=`${c}s`,r.trim()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"readableDuration",type:t,pure:!0,standalone:!0});let i=t;return i})();export{l as a,d as b,f as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-HZOHDHN6.js b/frontend/server/modelsmith-build/browser/chunk-HZOHDHN6.js new file mode 100644 index 00000000..9a589ff0 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-HZOHDHN6.js @@ -0,0 +1 @@ +import{a as d}from"./chunk-FF67PNLR.js";import{a as u}from"./chunk-W3QFCG25.js";import"./chunk-7DL2PMFN.js";import"./chunk-OWLYOD4I.js";import"./chunk-VLJTKNYA.js";import"./chunk-MK5CNTNK.js";import"./chunk-F7URI57V.js";import"./chunk-OVEUDHWN.js";import"./chunk-JMFIGVCB.js";import"./chunk-OA3ZLQZZ.js";import{a as f}from"./chunk-PR3LNGVD.js";import"./chunk-ZTWJRPOH.js";import{b as A,c as K,h as T}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import"./chunk-YPMBMI5J.js";import{a as q,b as Z}from"./chunk-QTJZRTNN.js";import{a as G,b as W}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import"./chunk-OFW2ET2O.js";import{$ as p,Ea as m,Fa as y,Sa as a,_b as j,a as g,ab as s,b as v,bb as c,cb as C,ce as z,db as w,eb as I,gb as N,ha as Q,ia as l,jb as E,je as D,oe as O,p as b,pa as F,pc as M,pe as _,qa as P,qb as V,qe as U,rb as L,re as k,sb as R,ub as S,ue as B}from"./chunk-64NP6AY6.js";var H=["panelParameters"],r,h=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=K,this.AWQAlgorithmsEnum=T,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(W(this)).subscribe(t=>{this.isScriptActive=A(t),A(t)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(T.AWQ_QUANTIZATION)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,o=v(g({},t),{params:v(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(q.callScript({configs:o}))}},r.\u0275fac=function(i){return new(i||r)(y(O),y(Z))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V(H,5),i&2){let o;L(o=R())&&(e.panelParametersComponent=o.first)}},decls:13,vars:6,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType","isTrainModelsPageRouteVisible"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=N();s(0,"p",1),S(1,"LLM Quantization"),c(),s(2,"div",2)(3,"div",3),w(4,4),C(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),I(),s(8,"div")(9,"button",7),E("click",function(){return F(o),P(e.submit())}),S(10," Run "),c()()(),s(11,"div",8),C(12,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.AWQ)("isTrainModelsPageRouteVisible",!1),m(),a("algorithm",e.AWQAlgorithmsEnum.AWQ_QUANTIZATION),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[d,u,f,z,D,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);h=b([G()],h);var J=[{path:"",component:h}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[M.forChild(J),M]});let n=t;return n})();var bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[j,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-IICO2ENP.js b/frontend/server/modelsmith-build/browser/chunk-IICO2ENP.js new file mode 100644 index 00000000..5ca7b9e4 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-IICO2ENP.js @@ -0,0 +1 @@ +import{Ae as R,Ce as E,G as z,Hc as s,Ic as w,M as C,S as b,Tc as p,Uc as j,Wc as u,Xc as y,Yc as D,Zc as A,_ as l,_c as M,a as n,b as c,ca as d,k as x,s as F,x as v}from"./chunk-64NP6AY6.js";var a=w({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":s(),"Get Run Records Filenames Success":s(),"Get Run Records Filenames Failure":s(),"Get Run Record Summarized Data":s(),"Get Run Record Summarized Data Success":s(),"Get Run Record Summarized Data Failure":s()}});var G=j("runRecords");var I=p(G,r=>r.records),H=p(I,r=>r.filenames),J=p(I,r=>r.summarizedRecord);var f=class extends R{constructor(e){super(`run-records-filenames/${e}`,void 0,void 0,!1)}};var g=class extends R{constructor(e,T){super(`run-records-summarized-data/${e}/${T}`,void 0,void 0,!1)}};var se=(()=>{let e=class e{constructor(o,t){this.apiClient=o,this.actions$=t,this.getRunRecordsFilenames$=D(()=>this.actions$.pipe(M(a.getRunRecordsFilenames),b(i=>{let{algorithmType:h}=i;return this.apiClient.serviceCall(new f(h)).pipe(v(m=>a.getRunRecordsFilenamesSuccess({files:m})),z(m=>F(a.getRunRecordsFilenamesFailure({error:m}))))}))),this.getRunRecordSummarizedData$=D(()=>this.actions$.pipe(M(a.getRunRecordSummarizedData),b(i=>{let{algorithmType:h,filename:m}=i;return this.apiClient.serviceCall(new g(h,m)).pipe(v(S=>a.getRunRecordSummarizedDataSuccess({record:S})),z(S=>F(a.getRunRecordSummarizedDataFailure({error:S}))))})))}};e.\u0275fac=function(t){return new(t||e)(d(E),d(A))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();var k={filenames:[],summarizedRecord:{},error:""},me=y(k,u(a.getRunRecordsFilenamesSuccess,(r,{files:e})=>c(n({},r),{filenames:e,error:null})),u(a.getRunRecordsFilenamesFailure,(r,{error:e})=>c(n({},r),{error:e})),u(a.getRunRecordSummarizedData,r=>c(n({},r),{loading:!0,error:null})),u(a.getRunRecordSummarizedDataSuccess,(r,{record:e})=>c(n({},r),{summarizedRecord:e,error:null})),u(a.getRunRecordSummarizedDataFailure,(r,{error:e})=>c(n({},r),{error:e})));var O=function(r){return r.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",r}(O||{}),U=[{key:O.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],L=(()=>{let e=class e{constructor(){this.loadingMap=new Map}setLoading(o,t){this.loadingMap.has(t)||this.loadingMap.set(t,new x(!1)),this.loadingMap.get(t).next(o)}getLoadingObservableForKey(o){if(this.loadingMap.has(o))return this.loadingMap.get(o).asObservable();{let t=new x(!1);return this.loadingMap.set(o,t),t.asObservable()}}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Fe=(()=>{let e=class e{constructor(o){this.loadingService=o}intercept(o,t){let i=this.getMatchingConfig(o);return i&&i.track&&this.loadingService.setLoading(!0,i.key),t.handle(o).pipe(C(()=>{i&&i.track&&this.loadingService.setLoading(!1,i.key)}))}getMatchingConfig(o){let t=o.url.split("?")[0];return U.find(i=>i.track&&(i.useRegex?new RegExp(i.urlPattern).test(t):i.urlPattern===t))}};e.\u0275fac=function(t){return new(t||e)(d(L))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();export{a,se as b,me as c,H as d,J as e,O as f,L as g,Fe as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-JMFIGVCB.js b/frontend/server/modelsmith-build/browser/chunk-JMFIGVCB.js new file mode 100644 index 00000000..03346e96 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-JMFIGVCB.js @@ -0,0 +1 @@ +import{$ as z,Ab as K,Ba as j,Bb as Z,Ea as x,Fa as l,Hd as E,Ka as q,Lb as G,Ld as T,Nb as k,Ob as Y,Pa as U,Ra as C,Sa as u,Ua as I,Wa as N,Wd as $,Xd as J,Z as w,Zd as W,aa as D,ab as r,bb as d,cb as _,gb as S,ha as R,hb as B,ia as F,jb as p,mb as X,nb as Q,oa as M,pa as h,qa as s,qb as f,ra as O,rb as g,sa as V,sb as v,tb as H,ua as L,xa as P,ya as y}from"./chunk-64NP6AY6.js";var ie=["input"],oe=["label"],ne=["*"],ae=new D("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var n=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(n||{}),re={provide:J,useExisting:w(()=>te),multi:!0},A=class{},de=0,ee=ce(),te=(()=>{let a=class a{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new A;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,c,o,m,b){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=c,this._animationMode=m,this._options=b,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=n.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(n.Indeterminate):this._transitionCheckState(this.checked?n.Checked:n.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,c=this._getAnimationTargetElement();if(!(t===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?n.Checked:n.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case n.Init:if(t===n.Checked)return this._animationClasses.uncheckedToChecked;if(t==n.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case n.Unchecked:return t===n.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case n.Checked:return t===n.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case n.Indeterminate:return t===n.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};a.\u0275fac=function(t){return new(t||a)(l(P),l(G),l(q),L("tabindex"),l(j,8),l(ae,8))},a.\u0275cmp=R({type:a,selectors:[["mat-checkbox"]],viewQuery:function(t,c){if(t&1&&(f(ie,5),f(oe,5),f(T,5)),t&2){let o;g(o=v())&&(c._inputElement=o.first),g(o=v())&&(c._labelElement=o.first),g(o=v())&&(c.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,c){t&2&&(B("id",c.id),C("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),I("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",k],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",k],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",k],disabled:[2,"disabled","disabled",k],indeterminate:[2,"indeterminate","indeterminate",k]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:a,multi:!0}]),U,M,Z],ngContentSelectors:ne,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,c){if(t&1){let o=S();X(),r(0,"div",3),p("click",function(b){return h(o),s(c._preventBubblingFromLabel(b))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(o),s(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(o),s(c._onBlur())})("click",function(){return h(o),s(c._onInputClick())})("change",function(b){return h(o),s(c._onInteractionEvent(b))}),d(),_(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),_(9,"path",10),d(),V(),_(10,"div",11),d(),_(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(t&2){let o=H(2);u("labelPosition",c.labelPosition),x(4),I("mdc-checkbox--selected",c.checked),u("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),C("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),u("matRippleTrigger",o)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),u("for",c.inputId)}},dependencies:[T,$],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=a;return i})();var we=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=F({type:a}),a.\u0275inj=z({imports:[te,E,E]});let i=a;return i})();export{te as a,we as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-LRK34XDC.js b/frontend/server/modelsmith-build/browser/chunk-LRK34XDC.js new file mode 100644 index 00000000..f8519e68 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-LRK34XDC.js @@ -0,0 +1 @@ +import{e as R}from"./chunk-XX6ZYDLH.js";var r=function(N){return N.RUNNING="running",N.NOT_RUNNING="not_running",N.STOPPING="stopping",N.ERROR="error",N}(r||{});function M(N){return N?N===r.RUNNING||N===r.STOPPING:!1}var e=function(N){return N.QUANTIZATION="quantization",N.PRUNING="pruning",N.MACHINE_UNLEARNING="machine_unlearning",N.AWQ="awq",N.MULTIFLOW="multiflow",N.TRAIN="train",N}(e||{}),_=Object.entries(e).map(([N,c])=>({key:c,value:R(N)})),n=function(N){return N.BPTQ="BPTQ",N.BRECQ="BRECQ",N.MINMAXPTQ="MINMAXPTQ",N}(n||{}),t=function(N){return N.MULTIFLOW_PRUNE="MULTIFLOW_PRUNE",N}(t||{}),T=function(N){return N.IPG="IPG",N.IPM="IPM",N.IPR="IPR",N.IMP="IMP",N.OMP="OMP",N.IPS="IPS",N.IPSY="IPSY",N.IPMB="IPMB",N}(T||{}),A=function(N){return N.MU="MU",N}(A||{}),U=function(N){return N.AWQ_QUANTIZATION="AWQ_Q",N}(U||{}),I=function(N){return N.QUANTIZATION_TRAIN="Q_TRAIN",N.PRUNING_TRAIN="P_TRAIN",N.MACHINE_UNLEARNING_TRAIN="MU_TRAIN",N}(I||{}),f={[e.MACHINE_UNLEARNING]:I.MACHINE_UNLEARNING_TRAIN,[e.PRUNING]:I.PRUNING_TRAIN,[e.QUANTIZATION]:I.QUANTIZATION_TRAIN};function o(N){return Object.values(T).includes(N)?e.PRUNING:Object.values(n).includes(N)?e.QUANTIZATION:Object.values(A).includes(N)?e.MACHINE_UNLEARNING:Object.values(U).includes(N)?e.AWQ:Object.values(I).includes(N)?e.TRAIN:Object.values(t).includes(N)?e.MULTIFLOW:null}export{r as a,M as b,e as c,n as d,t as e,T as f,A as g,U as h,I as i,f as j,o as k}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MK5CNTNK.js b/frontend/server/modelsmith-build/browser/chunk-MK5CNTNK.js new file mode 100644 index 00000000..97eae8b2 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-MK5CNTNK.js @@ -0,0 +1 @@ +import{a as L}from"./chunk-LRK34XDC.js";import{a as r}from"./chunk-QTJZRTNN.js";import{Ae as f,Be as m,Ce as w,G as l,S as o,Wc as p,Xc as D,Yc as n,Zc as T,_ as O,_c as u,a as c,b as s,ca as $,s as a,x as S}from"./chunk-64NP6AY6.js";var h=class extends f{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var C=class extends f{constructor(){super("script-status",void 0,void 0,!1)}};var d=class extends m{constructor(e){super("run-script",e,!1)}};var x=class extends m{constructor(){super("stop-script",{},!1)}};var Q=(()=>{let e=class e{constructor(A,v){this.apiClient=A,this.actions$=v,this.callScript$=n(()=>this.actions$.pipe(u(r.callScript),o(({configs:i})=>this.apiClient.serviceCall(new d(i)).pipe(o(()=>[r.callScriptSuccess(),r.fetchScriptStatus()]),l(F=>a(r.callScriptFailure({error:F}))))))),this.fetchScriptStatus$=n(()=>this.actions$.pipe(u(r.fetchScriptStatus),o(()=>this.apiClient.serviceCall(new C).pipe(S(i=>{let{status:F}=i;return r.fetchScriptStatusSuccess({status:F})}),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.getCurrentOrLastActiveScriptDetails$=n(()=>this.actions$.pipe(u(r.getCurrentOrLastActiveScriptDetails),o(()=>this.apiClient.serviceCall(new h).pipe(S(i=>r.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:i})),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.stopScript$=n(()=>this.actions$.pipe(u(r.stopScript),o(()=>this.apiClient.serviceCall(new x).pipe(S(()=>r.stopScriptSuccess()),l(i=>a(r.stopScriptFailure({error:i})))))))}};e.\u0275fac=function(v){return new(v||e)($(w),$(T))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let t=e;return t})();var g={scriptStatus:L.NOT_RUNNING,scriptDetails:{},error:""},Z=D(g,p(r.callScriptSuccess,t=>s(c({},t),{error:null})),p(r.callScriptFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>s(c({},t),{scriptDetails:e,error:null})),p(r.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.fetchScriptStatusSuccess,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.fetchScriptStatusFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.updateScriptStatus,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.stopScript,t=>s(c({},t),{error:null})),p(r.stopScriptSuccess,t=>s(c({},t),{error:null})),p(r.stopScriptFailure,(t,{error:e})=>s(c({},t),{error:e})));export{Q as a,Z as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-O7CNECT6.js b/frontend/server/modelsmith-build/browser/chunk-O7CNECT6.js new file mode 100644 index 00000000..b70900f2 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-O7CNECT6.js @@ -0,0 +1 @@ +import{a as u}from"./chunk-W3QFCG25.js";import"./chunk-VLJTKNYA.js";import"./chunk-MK5CNTNK.js";import"./chunk-F7URI57V.js";import"./chunk-OVEUDHWN.js";import"./chunk-JMFIGVCB.js";import{a as f}from"./chunk-PR3LNGVD.js";import"./chunk-ZTWJRPOH.js";import{b as S,c as x,e as y}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import"./chunk-YPMBMI5J.js";import{a as q,b as K}from"./chunk-QTJZRTNN.js";import{a as G,b as L}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import"./chunk-OFW2ET2O.js";import{$ as p,Ea as n,Fa as g,Sa as s,_b as D,a as h,ab as a,b as F,bb as c,cb as v,ce as U,db as E,eb as P,gb as I,ha as w,ia as l,jb as N,je as V,oe as _,p as b,pa as A,pc as C,pe as Q,qa as T,qb as O,qe as k,rb as R,re as B,sb as j,ub as M,ue as W}from"./chunk-64NP6AY6.js";var z=["panelParameters"],r,d=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=x,this.MultiflowAlgorithmsEnum=y,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(y.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(L(this)).subscribe(t=>{this.isScriptActive=S(t),S(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=F(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(K))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O(z,5),i&2){let o;R(o=j())&&(e.panelParametersComponent=o.first)}},decls:12,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=I();a(0,"p",1),M(1,"Multi-modal"),c(),a(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),a(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),M(9," Run "),c()()(),a(10,"div",7),v(11,"ms-terminal"),c()()}i&2&&(n(2),s("formGroup",e.form),n(2),s("formGroup",e.form),n(),s("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),s("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=b([G()],d);var H=[{path:"",component:d}],$=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(H),C]});let m=t;return m})();var yt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[D,u,f,$,Q,k,W]});let m=t;return m})();export{yt as MultiModalModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OA3ZLQZZ.js b/frontend/server/modelsmith-build/browser/chunk-OA3ZLQZZ.js new file mode 100644 index 00000000..0021adcb --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-OA3ZLQZZ.js @@ -0,0 +1 @@ +import{$ as d,Bb as m,Hd as n,Ra as c,Ua as v,cd as a,ha as s,ia as l}from"./chunk-64NP6AY6.js";var u=(()=>{let t=class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=a(e)}get inset(){return this._inset}set inset(e){this._inset=a(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=s({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(c("aria-orientation",o.vertical?"vertical":"horizontal"),v("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[m],decls:0,vars:0,template:function(r,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=t;return i})(),g=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[n,n]});let i=t;return i})();export{u as a,g as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OFW2ET2O.js b/frontend/server/modelsmith-build/browser/chunk-OFW2ET2O.js new file mode 100644 index 00000000..e24f93d0 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-OFW2ET2O.js @@ -0,0 +1,4 @@ +import{$ as L,Ab as k,Ba as ve,Bb as K,D as se,Dd as Ae,E as he,Ea as m,Fa as r,Hd as A,Ib as Ce,Id as Pe,Jd as Ne,Ka as _,La as ye,Lb as Me,P as ue,Qa as x,Qb as ze,Ra as H,Sa as M,T as N,Ua as E,Wb as Re,Ya as p,_ as B,_b as Te,_d as He,aa as w,ab as f,ae as je,bb as s,ca as $,cb as S,cd as D,da as T,ee as qe,g as ce,gb as we,h as me,ha as Z,hb as j,hd as ee,ia as I,id as O,j as y,ja as g,jb as q,jd as te,je as Be,kd as De,lb as C,mb as W,nb as b,o as fe,oa as xe,pa as pe,pb as z,qa as ge,qb as R,qd as Oe,rb as h,sb as u,sc as Se,tb as G,tc as ke,ua as _e,ub as Fe,va as be,vb as Ee,wc as J,xa as F,xc as Le,zc as Ie}from"./chunk-64NP6AY6.js";var ie=class{constructor(t){this._box=t,this._destroyed=new y,this._resizeSubject=new y,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new me(n=>{let e=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),e.unsubscribe(),this._elementObservables.delete(t)}}).pipe(he(n=>n.some(e=>e.target===t)),ue({bufferSize:1,refCount:!0}),N(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Ye=(()=>{let t=class t{constructor(){this._observers=new Map,this._ngZone=T(_),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,d){let i=d?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new ie(i)),this._observers.get(i).observe(e)}};t.\u0275fac=function(d){return new(d||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let l=t;return l})();var at=["notch"],rt=["matFormFieldNotchedOutline",""],ct=["*"],mt=["textField"],ft=["iconPrefixContainer"],st=["textPrefixContainer"],ht=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ut=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function xt(l,t){l&1&&S(0,"span",19)}function pt(l,t){if(l&1&&(f(0,"label",18),b(1,1),x(2,xt,1,0,"span",19),s()),l&2){let n=C(2);M("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),H("for",n._control.disableAutomaticLabeling?null:n._control.id),m(2),p(!n.hideRequiredMarker&&n._control.required?2:-1)}}function gt(l,t){if(l&1&&x(0,pt,3,5,"label",18),l&2){let n=C();p(n._hasFloatingLabel()?0:-1)}}function _t(l,t){l&1&&S(0,"div",5)}function bt(l,t){}function vt(l,t){if(l&1&&x(0,bt,0,0,"ng-template",11),l&2){C(2);let n=G(1);M("ngTemplateOutlet",n)}}function yt(l,t){if(l&1&&(f(0,"div",7),x(1,vt,1,1,null,11),s()),l&2){let n=C();M("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),m(),p(n._forceDisplayInfixLabel()?-1:1)}}function wt(l,t){l&1&&(f(0,"div",8,2),b(2,2),s())}function Ft(l,t){l&1&&(f(0,"div",9,3),b(2,3),s())}function Et(l,t){}function Ct(l,t){if(l&1&&x(0,Et,0,0,"ng-template",11),l&2){C();let n=G(1);M("ngTemplateOutlet",n)}}function Mt(l,t){l&1&&(f(0,"div",12),b(1,4),s())}function zt(l,t){l&1&&(f(0,"div",13),b(1,5),s())}function Rt(l,t){l&1&&S(0,"div",14)}function Tt(l,t){if(l&1&&(f(0,"div",16),b(1,6),s()),l&2){let n=C();M("@transitionMessages",n._subscriptAnimationState)}}function St(l,t){if(l&1&&(f(0,"mat-hint",20),Fe(1),s()),l&2){let n=C(2);M("id",n._hintLabelId),m(),Ee(n.hintLabel)}}function kt(l,t){if(l&1&&(f(0,"div",17),x(1,St,2,2,"mat-hint",20),b(2,7),S(3,"div",21),b(4,8),s()),l&2){let n=C();M("@transitionMessages",n._subscriptAnimationState),m(),p(n.hintLabel?1:-1)}}var Ve=(()=>{let t=class t{};t.\u0275fac=function(d){return new(d||t)},t.\u0275dir=g({type:t,selectors:[["mat-label"]],standalone:!0});let l=t;return l})(),Lt=0,et=new w("MatError"),pi=(()=>{let t=class t{constructor(e,d){this.id=`mat-mdc-error-${Lt++}`,e||d.nativeElement.setAttribute("aria-live","polite")}};t.\u0275fac=function(d){return new(d||t)(_e("aria-live"),r(F))},t.\u0275dir=g({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(d,i){d&2&&j("id",i.id)},inputs:{id:"id"},standalone:!0,features:[k([{provide:et,useExisting:t}])]});let l=t;return l})(),It=0,Xe=(()=>{let t=class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${It++}`}};t.\u0275fac=function(d){return new(d||t)},t.\u0275dir=g({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(d,i){d&2&&(j("id",i.id),H("align",null),E("mat-mdc-form-field-hint-end",i.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let l=t;return l})(),tt=new w("MatPrefix"),gi=(()=>{let t=class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}};t.\u0275fac=function(d){return new(d||t)},t.\u0275dir=g({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[k([{provide:tt,useExisting:t}])]});let l=t;return l})(),it=new w("MatSuffix"),_i=(()=>{let t=class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}};t.\u0275fac=function(d){return new(d||t)},t.\u0275dir=g({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[k([{provide:it,useExisting:t}])]});let l=t;return l})(),dt=new w("FloatingLabelParent"),Qe=(()=>{let t=class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=T(Ye),this._ngZone=T(_),this._parent=T(dt),this._resizeSubscription=new ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Dt(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};t.\u0275fac=function(d){return new(d||t)(r(F))},t.\u0275dir=g({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(d,i){d&2&&E("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let l=t;return l})();function Dt(l){let t=l;if(t.offsetParent!==null)return t.scrollWidth;let n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let e=n.scrollWidth;return n.remove(),e}var Ue="mdc-line-ripple--active",Y="mdc-line-ripple--deactivating",$e=(()=>{let t=class t{constructor(e,d){this._elementRef=e,this._handleTransitionEnd=i=>{let o=this._elementRef.nativeElement.classList,a=o.contains(Y);i.propertyName==="opacity"&&a&&o.remove(Ue,Y)},d.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Y),e.add(Ue)}deactivate(){this._elementRef.nativeElement.classList.add(Y)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};t.\u0275fac=function(d){return new(d||t)(r(F),r(_))},t.\u0275dir=g({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let l=t;return l})(),Ze=(()=>{let t=class t{constructor(e,d){this._elementRef=e,this._ngZone=d,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};t.\u0275fac=function(d){return new(d||t)(r(F),r(_))},t.\u0275cmp=Z({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(d,i){if(d&1&&R(at,5),d&2){let o;h(o=u())&&(i._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(d,i){d&2&&E("mdc-notched-outline--notched",i.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[K],attrs:rt,ngContentSelectors:ct,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(d,i){d&1&&(W(),S(0,"div",1),f(1,"div",2,0),b(3),s(),S(4,"div",3))},encapsulation:2,changeDetection:0});let l=t;return l})(),Ot={transitionMessages:Se("transitionMessages",[Le("enter",J({opacity:1,transform:"translateY(0%)"})),Ie("void => enter",[J({opacity:0,transform:"translateY(-5px)"}),ke("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},le=(()=>{let t=class t{};t.\u0275fac=function(d){return new(d||t)},t.\u0275dir=g({type:t});let l=t;return l})();var oe=new w("MatFormField"),At=new w("MAT_FORM_FIELD_DEFAULT_OPTIONS"),We=0,Ge="fill",Pt="auto",Ke="fixed",Nt="translateY(-50%)",bi=(()=>{let t=class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=D(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Pt}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let d=this._appearance,i=e||this._defaults?.appearance||Ge;this._appearance=i,this._appearance==="outline"&&this._appearance!==d&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Ke}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Ke}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,d,i,o,a,c,v,V){this._elementRef=e,this._changeDetectorRef=d,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=v,this._hideRequiredMarker=!1,this.color="primary",this._appearance=Ge,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${We++}`,this._hintLabelId=`mat-mdc-hint-${We++}`,this._subscriptAnimationState="",this._destroyed=new y,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=T(be),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(N(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),ye(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(N(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){let d=this._control?this._control.ngControl:null;return d&&d[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let d=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,i=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;d?e.push(d.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push(...this._errorChildren.map(d=>d.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let d=this._iconPrefixContainer?.nativeElement,i=this._textPrefixContainer?.nativeElement,o=d?.getBoundingClientRect().width??0,a=i?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",v=`${o+a}px`,X=`calc(${c} * (${v} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${Nt} translateX(${X}) + )`}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let d=e.getRootNode();return d&&d!==e}return document.documentElement.contains(e)}};t.\u0275fac=function(d){return new(d||t)(r(F),r(Me),r(_),r(Ae),r(O),r(At,8),r(ve,8),r(ze))},t.\u0275cmp=Z({type:t,selectors:[["mat-form-field"]],contentQueries:function(d,i,o){if(d&1&&(z(o,Ve,5),z(o,Ve,7),z(o,le,5),z(o,tt,5),z(o,it,5),z(o,et,5),z(o,Xe,5)),d&2){let a;h(a=u())&&(i._labelChildNonStatic=a.first),h(a=u())&&(i._labelChildStatic=a.first),h(a=u())&&(i._formFieldControl=a.first),h(a=u())&&(i._prefixChildren=a),h(a=u())&&(i._suffixChildren=a),h(a=u())&&(i._errorChildren=a),h(a=u())&&(i._hintChildren=a)}},viewQuery:function(d,i){if(d&1&&(R(mt,5),R(ft,5),R(st,5),R(Qe,5),R(Ze,5),R($e,5)),d&2){let o;h(o=u())&&(i._textField=o.first),h(o=u())&&(i._iconPrefixContainer=o.first),h(o=u())&&(i._textPrefixContainer=o.first),h(o=u())&&(i._floatingLabel=o.first),h(o=u())&&(i._notchedOutline=o.first),h(o=u())&&(i._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(d,i){d&2&&E("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations",i._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[k([{provide:oe,useExisting:t},{provide:dt,useExisting:t}]),K],ngContentSelectors:ut,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(d,i){if(d&1){let o=we();W(ht),x(0,gt,1,1,"ng-template",null,0,Ce),f(2,"div",4,1),q("click",function(c){return pe(o),ge(i._control.onContainerClick(c))}),x(4,_t,1,0,"div",5),f(5,"div",6),x(6,yt,2,2,"div",7)(7,wt,3,0,"div",8)(8,Ft,3,0,"div",9),f(9,"div",10),x(10,Ct,1,1,null,11),b(11),s(),x(12,Mt,2,0,"div",12)(13,zt,2,0,"div",13),s(),x(14,Rt,1,0,"div",14),s(),f(15,"div",15),x(16,Tt,2,1,"div",16)(17,kt,5,2,"div",17),s()}if(d&2){let o;m(2),E("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),m(2),p(!i._hasOutline()&&!i._control.disabled?4:-1),m(2),p(i._hasOutline()?6:-1),m(),p(i._hasIconPrefix?7:-1),m(),p(i._hasTextPrefix?8:-1),m(2),p(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),m(2),p(i._hasTextSuffix?12:-1),m(),p(i._hasIconSuffix?13:-1),m(),p(i._hasOutline()?-1:14),m(),E("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic"),m(),p((o=i._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[Qe,Ze,Re,$e,Xe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Ot.transitionMessages]},changeDetection:0});let l=t;return l})(),ne=(()=>{let t=class t{};t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=I({type:t}),t.\u0275inj=L({imports:[A,Te,Oe,A]});let l=t;return l})();var lt=De({passive:!0}),ot=(()=>{let t=class t{constructor(e,d){this._platform=e,this._ngZone=d,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return fe;let d=ee(e),i=this._monitoredElements.get(d);if(i)return i.subject;let o=new y,a="cdk-text-field-autofilled",c=v=>{v.animationName==="cdk-text-field-autofill-start"&&!d.classList.contains(a)?(d.classList.add(a),this._ngZone.run(()=>o.next({target:v.target,isAutofilled:!0}))):v.animationName==="cdk-text-field-autofill-end"&&d.classList.contains(a)&&(d.classList.remove(a),this._ngZone.run(()=>o.next({target:v.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{d.addEventListener("animationstart",c,lt),d.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(d,{subject:o,unlisten:()=>{d.removeEventListener("animationstart",c,lt)}}),o}stopMonitoring(e){let d=ee(e),i=this._monitoredElements.get(d);i&&(i.unlisten(),i.subject.complete(),d.classList.remove("cdk-text-field-autofill-monitored"),d.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(d))}ngOnDestroy(){this._monitoredElements.forEach((e,d)=>this.stopMonitoring(d))}};t.\u0275fac=function(d){return new(d||t)($(O),$(_))},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let l=t;return l})();var nt=(()=>{let t=class t{};t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=I({type:t}),t.\u0275inj=L({});let l=t;return l})();var jt=new w("MAT_INPUT_VALUE_ACCESSOR"),qt=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Bt=0,Yi=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){this._disabled=D(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(He.required)??!1}set required(e){this._required=D(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&te().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=D(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,d,i,o,a,c,v,V,X,ae){this._elementRef=e,this._platform=d,this.ngControl=i,this._autofillMonitor=V,this._formField=ae,this._uid=`mat-input-${Bt++}`,this.focused=!1,this.stateChanges=new y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(U=>te().has(U)),this._iOSKeyupListener=U=>{let P=U.target;!P.value&&P.selectionStart===0&&P.selectionEnd===0&&(P.setSelectionRange(1,1),P.setSelectionRange(0,0))};let Q=this._elementRef.nativeElement,re=Q.nodeName.toLowerCase();this._inputValueAccessor=v||Q,this._previousNativeValue=this.value,this.id=this.id,d.IOS&&X.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Pe(c,i,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=re==="select",this._isTextarea=re==="textarea",this._isInFormField=!!ae,this._isNativeSelect&&(this.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let d=this._elementRef.nativeElement;this._previousPlaceholder=e,e?d.setAttribute("placeholder",e):d.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){qt.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,d=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&d&&d.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};t.\u0275fac=function(d){return new(d||t)(r(F),r(O),r(je,10),r(qe,8),r(Be,8),r(Ne),r(jt,10),r(ot),r(_),r(oe,8))},t.\u0275dir=g({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(d,i){d&1&&q("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),d&2&&(j("id",i.id)("disabled",i.disabled)("required",i.required),H("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),E("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[k([{provide:le,useExisting:t}]),xe]});let l=t;return l})(),Vi=(()=>{let t=class t{};t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=I({type:t}),t.\u0275inj=L({imports:[A,ne,ne,nt,A]});let l=t;return l})();export{Ve as a,pi as b,gi as c,_i as d,le as e,oe as f,At as g,bi as h,ne as i,Yi as j,Vi as k}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OVEUDHWN.js b/frontend/server/modelsmith-build/browser/chunk-OVEUDHWN.js new file mode 100644 index 00000000..216e7a72 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-OVEUDHWN.js @@ -0,0 +1,2 @@ +import{b as T}from"./chunk-OFW2ET2O.js";import{Bb as g,Ea as f,Fa as a,Na as p,Qa as I,T as c,Ya as D,ab as E,ae as R,bb as h,ha as u,j as m,ja as d,jb as v,lb as A,ub as _,wb as x}from"./chunk-64NP6AY6.js";function N(t,e){if(t&1&&(E(0,"mat-error",0),_(1),h()),t&2){let o=A();f(),x(" ",o.text,` +`)}}var V=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=u({type:e,selectors:[["ms-error-message"]],inputs:{text:"text"},standalone:!0,features:[g],decls:1,vars:1,consts:[[1,"error-message"]],template:function(r,n){r&1&&I(0,N,2,1,"mat-error",0),r&2&&D(n.text?0:-1)},dependencies:[T],styles:[".error-message[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in-translate .3s}@keyframes _ngcontent-%COMP%_fade-in-translate{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}"]});let t=e;return t})();var s="commaSeparatedValues";function S(){return t=>{let{value:e}=t;return e&&/^(\d+)(,\d+)*$/.test(e)===!1?{[s]:{actual:e}}:null}}var y="interval";function j(t){return e=>{let o=e.value;if(o==null)return null;let[i,r]=t;return or?{interval:{min:i,max:r,actual:o}}:null}}var M="maxDate";var C="maxDecimals";function P(t){return e=>{if(!e.value||isNaN(e.value))return null;let i=e.value.toString().split(".")[1];return i&&i.length>t?{maxDecimals:{requiredDecimals:t,actualDecimals:i.length}}:null}}var O="minDate";var l="onlyDigits";function X(){return t=>{let{value:e}=t;return e&&/^\d+(\.\d+)?$/.test(e)===!1?{[l]:{actual:e}}:null}}function b(t){if(!t)return;let[[e,o]]=Object.entries(t),r={required:"Field is required",email:"Invalid email format",min:n=>`Minimum allowed value is ${n.min}`,max:n=>`Maximum allowed value is ${n.max}`,minLength:n=>`Minimum length is ${n.requiredLength} characters`,maxLength:n=>`Maximum length is ${n.requiredLength} characters`,pattern:"Invalid format",nullValidator:"Field must not be null",requiredTrue:"Field must be true (checked)",url:"Invalid URL format",unique:"Value must be unique",whitespace:"Field cannot be empty or contain only whitespace",ip:"Invalid IP address format",uuid:"Invalid UUID format",[M]:n=>`Date must be before ${n.maxDate}`,[O]:n=>`Date must be after ${n.minDate}`,[l]:"Only digits are allowed",[C]:n=>`Maximum ${n.maxDecimals} decimal places allowed`,[s]:"Values must be a comma-separated list of numbers",[y]:n=>`Value must be between ${n.min} and ${n.max}.`}[e];return typeof r=="function"?r(o):r||`Unknown validation error: ${e}`}var ie=(()=>{let e=class e{constructor(i,r){this.control=i,this.vcr=r,this._destroyed$=new m}onBlur(){this.control.invalid&&!this.control.disabled&&this.insertErrorComponent()}ngOnInit(){this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),this.control?.statusChanges?.pipe(c(this._destroyed$)).subscribe(()=>{this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),(this.control.valid||this.control.disabled)&&this.destroyErrorComponent()})}insertErrorComponent(){if(!this.componentRef){this.componentRef=this.vcr.createComponent(V);let i=this.componentRef.location.nativeElement;i.parentElement?.parentElement?.parentElement?.parentElement?.getElementsByClassName("mat-mdc-form-field-subscript-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-spacer")[0].appendChild(i)}this.componentRef.instance&&(this.componentRef.instance.text=b(this.control.errors))}destroyErrorComponent(){this.componentRef&&(this.vcr.remove(),this.componentRef.destroy(),this.componentRef=void 0)}ngOnDestroy(){this.destroyErrorComponent(),this._destroyed$.next(),this._destroyed$.complete()}};e.\u0275fac=function(r){return new(r||e)(a(R),a(p))},e.\u0275dir=d({type:e,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,n){r&1&&v("blur",function(){return n.onBlur()})},standalone:!0});let t=e;return t})();export{s as a,S as b,y as c,j as d,C as e,P as f,l as g,X as h,ie as i}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OWLYOD4I.js b/frontend/server/modelsmith-build/browser/chunk-OWLYOD4I.js new file mode 100644 index 00000000..29f47ef8 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-OWLYOD4I.js @@ -0,0 +1 @@ +import{$ as v,Ba as C,Bb as W,Ea as a,Fa as l,Hd as B,Ib as P,Ob as _,Pa as T,Qa as x,Ra as n,Sa as p,Ta as g,Ua as E,Wa as z,Wb as N,_b as D,aa as y,ab as o,bb as m,cb as f,fb as u,ha as b,ia as k,lb as I,qb as M,ra as h,rb as O,sa as w,sb as A,tb as R,xa as S}from"./chunk-64NP6AY6.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OXPAOCDX.js b/frontend/server/modelsmith-build/browser/chunk-OXPAOCDX.js new file mode 100644 index 00000000..5fe74b4f --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-OXPAOCDX.js @@ -0,0 +1 @@ +import{a as n}from"./chunk-GJTXMCBX.js";import{Wc as d,Xc as f,a as r,b as t}from"./chunk-64NP6AY6.js";var i={defaultMode:void 0,currentMode:void 0},p=f(i,d(n.setDefaultMode,(e,{mode:o})=>t(r({},e),{defaultMode:o})),d(n.setCurrentMode,(e,{mode:o})=>t(r({},e),{currentMode:o})));export{p as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PR3LNGVD.js b/frontend/server/modelsmith-build/browser/chunk-PR3LNGVD.js new file mode 100644 index 00000000..00092e14 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-PR3LNGVD.js @@ -0,0 +1,52 @@ +import{a as yt,b as Ie,e as st}from"./chunk-ZTWJRPOH.js";import{b as Qt,c as Ze,d as Qe,f as ce,i as et}from"./chunk-LRK34XDC.js";import{a as Ye,b as Je}from"./chunk-QVMVB2QY.js";import{f as ei,g as ti}from"./chunk-XX6ZYDLH.js";import{a as ii,c as si,d as tt}from"./chunk-DFNZUJOD.js";import{a as Zt,b as De,n as it,s as ri}from"./chunk-QTJZRTNN.js";import{a as we,b as qe}from"./chunk-6VRVKV6C.js";import{b as Yt,s as Jt}from"./chunk-W4S57J6B.js";import{a as Xe,d as Kt,h as qt,i as Vt,j as Gt,k as Xt}from"./chunk-OFW2ET2O.js";import{Ab as $e,Bb as Se,Ea as ae,Fa as ie,I as Rt,Ib as Ft,J as Fe,Na as Bt,Q as We,Qa as Ce,Sa as oe,Sb as Wt,Ub as ze,Wb as Nt,Yd as jt,_b as Ke,a as vt,ab as G,bb as X,be as $t,cb as se,d as xt,db as Ot,e as He,eb as It,f as Dt,fb as Pt,fe as bt,gb as de,ha as me,ie as zt,ja as At,jb as te,lb as Oe,p as ye,pa as Q,pe as Ve,qa as ee,qb as Ne,qe as Ge,rb as Ue,sb as je,sc as Ut,tb as Ht,tc as mt,te as Ee,ub as le,ue as ke,v as Lt,wc as gt,we as Te,xa as Mt,xc as St,xe,ya as ge,zc as Ct}from"./chunk-64NP6AY6.js";var Et=xt((rt,wt)=>{"use strict";(function($,O){if(typeof rt=="object"&&typeof wt=="object")wt.exports=O();else if(typeof define=="function"&&define.amd)define([],O);else{var H=O();for(var W in H)(typeof rt=="object"?rt:$)[W]=H[W]}})(self,()=>(()=>{"use strict";var $={4567:function(L,r,o){var c=this&&this.__decorate||function(i,a,l,p){var g,h=arguments.length,v=h<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,l):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(i,a,l,p);else for(var b=i.length-1;b>=0;b--)(g=i[b])&&(v=(h<3?g(v):h>3?g(a,l,v):g(a,l))||v);return h>3&&v&&Object.defineProperty(a,l,v),v},u=this&&this.__param||function(i,a){return function(l,p){a(l,p,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(6114),f=o(9924),m=o(844),_=o(5596),e=o(4725),s=o(3656),t=r.AccessibilityManager=class extends m.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;lthis._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +`))),this.register(this._terminal.onA11yTab(l=>this._handleTab(l))),this.register(this._terminal.onKey(l=>this._handleKey(l.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,m.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let a=0;a0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(i)||this._charsToConsume.push(i)}_refreshRows(i,a){this._liveRegionDebouncer.refresh(i,a,this._terminal.rows)}_renderRows(i,a){let l=this._terminal.buffer,p=l.lines.length.toString();for(let g=i;g<=a;g++){let h=l.translateBufferLineToString(l.ydisp+g,!0),v=(l.ydisp+g+1).toString(),b=this._rowElements[g];b&&(h.length===0?b.innerText="\xA0":b.textContent=h,b.setAttribute("aria-posinset",v),b.setAttribute("aria-setsize",p))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,a){let l=i.target,p=this._rowElements[a===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==p)return;let g,h;if(a===0?(g=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(g=this._rowElements.shift(),h=l,this._rowContainer.removeChild(g)),g.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){let v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else{let v=this._createAccessibilityTreeNode();this._rowElements.push(v),this._rowContainer.appendChild(v)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;ai;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,m,_){d=c(d=o(d),m.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),m.triggerDataEvent(d,!0),f.value=""}function n(d,f,m){let _=m.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,m,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,m,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,m,_,e){n(d,f,m),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;let c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,u,n){o.addEventListener(c,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,u,n))}}}},6465:function(L,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,p=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(p=(l<3?a(p):l>3?a(s,t,p):a(s,t))||p);return l>3&&p&&Object.defineProperty(s,t,p),p},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;let n=o(3656),d=o(8460),f=o(844),m=o(2585),_=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{let s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;let t=e.composedPath();for(let i=0;i{l?.forEach(p=>{p.link.dispose&&p.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(let[l,p]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(a=this._checkLinkProviderResult(l,e,a)):p.provideLinks(e.y,g=>{var h,v;if(this._isMouseOut)return;let b=g?.map(T=>({link:T}));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),a=this._checkLinkProviderResult(l,e,a),((v=this._activeProviderReplies)===null||v===void 0?void 0:v.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){let t=new Set;for(let i=0;ie?this._bufferService.cols:p.link.range.end.x;for(let v=g;v<=h;v++){if(t.has(v)){a.splice(l--,1);break}t.add(v)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;let a=this._activeProviderReplies.get(e),l=!1;for(let p=0;pthis._linkAtPosition(g.link,s));p&&(t=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let p=0;pthis._linkAtPosition(h.link,s));if(g){t=!0,this._handleNewLink(g);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,a;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,a,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;let i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(i,a),this._lastMouseEvent&&this._element)){let l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){let t=e.range,i=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){let t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,a=s.y*this._bufferService.cols+s.x;return t<=a&&a<=i}_positionFromMouseEvent(e,s,t){let i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,a){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=_=c([u(0,m.IBufferService)],_)},9042:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(L,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var p=_.length-1;p>=0;p--)(i=_[p])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;let n=o(511),d=o(2585),f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;let t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);let i=[],a=this._optionsService.rawOptions.linkHandler,l=new n.CellData,p=t.getTrimmedLength(),g=-1,h=-1,v=!1;for(let b=0;ba?a.activate(R,B,y):m(0,B),hover:(R,B)=>{var P;return(P=a?.hover)===null||P===void 0?void 0:P.call(a,R,B,y)},leave:(R,B)=>{var P;return(P=a?.leave)===null||P===void 0?void 0:P.call(a,R,B,y)}})}v=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,g=l.extended.urlId):(h=-1,g=-1)}}e(i)}};function m(_,e){if(confirm(`Do you want to navigate to ${e}? + +WARNING: This link could potentially be dangerous`)){let s=window.open();if(s){try{s.opener=null}catch{}s.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}}r.OscLinkProvider=f=c([u(0,d.IBufferService),u(1,d.IOptionsService),u(2,d.IOscLinkService)],f)},6193:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RenderDebouncer=void 0,r.RenderDebouncer=class{constructor(o,c){this._parentWindow=o,this._renderCallback=c,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(o){return this._refreshCallbacks.push(o),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(o,c,u){this._rowCount=u,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();let o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},5596:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ScreenDprMonitor=void 0;let c=o(844);class u extends c.Disposable{constructor(d){super(),this._parentWindow=d,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,c.toDisposable)(()=>{this.clearListener()}))}setListener(d){this._listener&&this.clearListener(),this._listener=d,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var d;this._outerListener&&((d=this._resolutionMediaMatchList)===null||d===void 0||d.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}r.ScreenDprMonitor=u},3236:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Terminal=void 0;let c=o(3614),u=o(3656),n=o(6465),d=o(9042),f=o(3730),m=o(1680),_=o(3107),e=o(5744),s=o(2950),t=o(1296),i=o(428),a=o(4269),l=o(5114),p=o(8934),g=o(3230),h=o(9312),v=o(4725),b=o(6731),T=o(8055),y=o(8969),k=o(8460),R=o(844),B=o(6114),P=o(8437),I=o(2584),C=o(7399),w=o(5941),E=o(9074),x=o(2585),F=o(5435),N=o(4567),z=typeof window<"u"?window.document:null;class j extends y.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(S={}){super(S),this.browser=B,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new R.MutableDisposable),this._onCursorMove=this.register(new k.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new k.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new k.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new k.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new k.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new k.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new k.EventEmitter),this._onBlur=this.register(new k.EventEmitter),this._onA11yCharEmitter=this.register(new k.EventEmitter),this._onA11yTabEmitter=this.register(new k.EventEmitter),this._onWillOpen=this.register(new k.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(f.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(E.DecorationService),this._instantiationService.setService(x.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((D,M)=>this.refresh(D,M))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(D=>this._reportWindowsOptions(D))),this.register(this._inputHandler.onColor(D=>this._handleColorEvent(D))),this.register((0,k.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,k.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,k.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,k.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(D=>this._afterResize(D.cols,D.rows))),this.register((0,R.toDisposable)(()=>{var D,M;this._customKeyEventHandler=void 0,(M=(D=this.element)===null||D===void 0?void 0:D.parentNode)===null||M===void 0||M.removeChild(this.element)}))}_handleColorEvent(S){if(this._themeService)for(let D of S){let M,A="";switch(D.index){case 256:M="foreground",A="10";break;case 257:M="background",A="11";break;case 258:M="cursor",A="12";break;default:M="ansi",A="4;"+D.index}switch(D.type){case 0:let K=T.color.toColorRGB(M==="ansi"?this._themeService.colors.ansi[D.index]:this._themeService.colors[M]);this.coreService.triggerDataEvent(`${I.C0.ESC}]${A};${(0,w.toRgbString)(K)}${I.C1_ESCAPED.ST}`);break;case 1:if(M==="ansi")this._themeService.modifyColors(U=>U.ansi[D.index]=T.rgba.toColor(...D.color));else{let U=M;this._themeService.modifyColors(V=>V[U]=T.rgba.toColor(...D.color))}break;case 2:this._themeService.restoreColor(D.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(S){S?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(N.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(S){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(I.C0.ESC+"[I"),this.updateCursorStyle(S),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var S;return(S=this.textarea)===null||S===void 0?void 0:S.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(I.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let S=this.buffer.ybase+this.buffer.y,D=this.buffer.lines.get(S);if(!D)return;let M=Math.min(this.buffer.x,this.cols-1),A=this._renderService.dimensions.css.cell.height,K=D.getWidth(M),U=this._renderService.dimensions.css.cell.width*K,V=this.buffer.y*this._renderService.dimensions.css.cell.height,Z=M*this._renderService.dimensions.css.cell.width;this.textarea.style.left=Z+"px",this.textarea.style.top=V+"px",this.textarea.style.width=U+"px",this.textarea.style.height=A+"px",this.textarea.style.lineHeight=A+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,u.addDisposableDomListener)(this.element,"copy",D=>{this.hasSelection()&&(0,c.copyHandler)(D,this._selectionService)}));let S=D=>(0,c.handlePasteEvent)(D,this.textarea,this.coreService,this.optionsService);this.register((0,u.addDisposableDomListener)(this.textarea,"paste",S)),this.register((0,u.addDisposableDomListener)(this.element,"paste",S)),B.isFirefox?this.register((0,u.addDisposableDomListener)(this.element,"mousedown",D=>{D.button===2&&(0,c.rightClickHandler)(D,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,u.addDisposableDomListener)(this.element,"contextmenu",D=>{(0,c.rightClickHandler)(D,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),B.isLinux&&this.register((0,u.addDisposableDomListener)(this.element,"auxclick",D=>{D.button===1&&(0,c.moveTextAreaUnderMouseCursor)(D,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,u.addDisposableDomListener)(this.textarea,"keyup",S=>this._keyUp(S),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"keydown",S=>this._keyDown(S),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"keypress",S=>this._keyPress(S),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionupdate",S=>this._compositionHelper.compositionupdate(S))),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,u.addDisposableDomListener)(this.textarea,"input",S=>this._inputEvent(S),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(S){var D;if(!S)throw new Error("Terminal requires a parent element.");S.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=S.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),S.appendChild(this.element);let M=z.createDocumentFragment();this._viewportElement=z.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),M.appendChild(this._viewportElement),this._viewportScrollArea=z.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=z.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=z.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),M.appendChild(this.screenElement),this.textarea=z.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",d.promptLabel),B.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(l.CoreBrowserService,this.textarea,(D=this._document.defaultView)!==null&&D!==void 0?D:window),this._instantiationService.setService(v.ICoreBrowserService,this._coreBrowserService),this.register((0,u.addDisposableDomListener)(this.textarea,"focus",A=>this._handleTextAreaFocus(A))),this.register((0,u.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(i.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(v.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(b.ThemeService),this._instantiationService.setService(v.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(a.CharacterJoinerService),this._instantiationService.setService(v.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(g.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(v.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(A=>this._onRender.fire(A))),this.onResize(A=>this._renderService.resize(A.cols,A.rows)),this._compositionView=z.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(M);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(p.MouseService),this._instantiationService.setService(v.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(m.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(h.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(v.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(A=>this._renderService.handleSelectionChanged(A.start,A.end,A.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(A=>{this.textarea.value=A,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(A=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(_.BufferDecorationRenderer,this.screenElement)),this.register((0,u.addDisposableDomListener)(this.element,"mousedown",A=>this._selectionService.handleMouseDown(A))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(N.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",A=>this._handleScreenReaderModeOptionChange(A))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",A=>{!this._overviewRulerRenderer&&A&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(t.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){let S=this,D=this.element;function M(U){let V=S._mouseService.getMouseReportCoords(U,S.screenElement);if(!V)return!1;let Z,re;switch(U.overrideType||U.type){case"mousemove":re=32,U.buttons===void 0?(Z=3,U.button!==void 0&&(Z=U.button<3?U.button:3)):Z=1&U.buttons?0:4&U.buttons?1:2&U.buttons?2:3;break;case"mouseup":re=0,Z=U.button<3?U.button:3;break;case"mousedown":re=1,Z=U.button<3?U.button:3;break;case"wheel":if(S.viewport.getLinesScrolled(U)===0)return!1;re=U.deltaY<0?0:1,Z=4;break;default:return!1}return!(re===void 0||Z===void 0||Z>4)&&S.coreMouseService.triggerMouseEvent({col:V.col,row:V.row,x:V.x,y:V.y,button:Z,action:re,ctrl:U.ctrlKey,alt:U.altKey,shift:U.shiftKey})}let A={mouseup:null,wheel:null,mousedrag:null,mousemove:null},K={mouseup:U=>(M(U),U.buttons||(this._document.removeEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.removeEventListener("mousemove",A.mousedrag)),this.cancel(U)),wheel:U=>(M(U),this.cancel(U,!0)),mousedrag:U=>{U.buttons&&M(U)},mousemove:U=>{U.buttons||M(U)}};this.register(this.coreMouseService.onProtocolChange(U=>{U?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(U)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&U?A.mousemove||(D.addEventListener("mousemove",K.mousemove),A.mousemove=K.mousemove):(D.removeEventListener("mousemove",A.mousemove),A.mousemove=null),16&U?A.wheel||(D.addEventListener("wheel",K.wheel,{passive:!1}),A.wheel=K.wheel):(D.removeEventListener("wheel",A.wheel),A.wheel=null),2&U?A.mouseup||(D.addEventListener("mouseup",K.mouseup),A.mouseup=K.mouseup):(this._document.removeEventListener("mouseup",A.mouseup),D.removeEventListener("mouseup",A.mouseup),A.mouseup=null),4&U?A.mousedrag||(A.mousedrag=K.mousedrag):(this._document.removeEventListener("mousemove",A.mousedrag),A.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,u.addDisposableDomListener)(D,"mousedown",U=>{if(U.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(U))return M(U),A.mouseup&&this._document.addEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.addEventListener("mousemove",A.mousedrag),this.cancel(U)})),this.register((0,u.addDisposableDomListener)(D,"wheel",U=>{if(!A.wheel){if(!this.buffer.hasScrollback){let V=this.viewport.getLinesScrolled(U);if(V===0)return;let Z=I.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(U.deltaY<0?"A":"B"),re="";for(let be=0;be{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(U),this.cancel(U)},{passive:!0})),this.register((0,u.addDisposableDomListener)(D,"touchmove",U=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(U)?void 0:this.cancel(U)},{passive:!1}))}refresh(S,D){var M;(M=this._renderService)===null||M===void 0||M.refreshRows(S,D)}updateCursorStyle(S){var D;!((D=this._selectionService)===null||D===void 0)&&D.shouldColumnSelect(S)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(S,D,M=0){var A;M===1?(super.scrollLines(S,D,M),this.refresh(0,this.rows-1)):(A=this.viewport)===null||A===void 0||A.scrollLines(S)}paste(S){(0,c.paste)(S,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(S){this._customKeyEventHandler=S}registerLinkProvider(S){return this.linkifier2.registerLinkProvider(S)}registerCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let D=this._characterJoinerService.register(S);return this.refresh(0,this.rows-1),D}deregisterCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(S)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(S){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+S)}registerDecoration(S){return this._decorationService.registerDecoration(S)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(S,D,M){this._selectionService.setSelection(S,D,M)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var S;(S=this._selectionService)===null||S===void 0||S.clearSelection()}selectAll(){var S;(S=this._selectionService)===null||S===void 0||S.selectAll()}selectLines(S,D){var M;(M=this._selectionService)===null||M===void 0||M.selectLines(S,D)}_keyDown(S){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;let D=this.browser.isMac&&this.options.macOptionIsMeta&&S.altKey;if(!D&&!this._compositionHelper.keydown(S))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;D||S.key!=="Dead"&&S.key!=="AltGraph"||(this._unprocessedDeadKey=!0);let M=(0,C.evaluateKeyboardEvent)(S,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(S),M.type===3||M.type===2){let A=this.rows-1;return this.scrollLines(M.type===2?-A:A),this.cancel(S,!0)}return M.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,S)||(M.cancel&&this.cancel(S,!0),!M.key||!!(S.key&&!S.ctrlKey&&!S.altKey&&!S.metaKey&&S.key.length===1&&S.key.charCodeAt(0)>=65&&S.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(M.key!==I.C0.ETX&&M.key!==I.C0.CR||(this.textarea.value=""),this._onKey.fire({key:M.key,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(M.key,!0),!this.optionsService.rawOptions.screenReaderMode||S.altKey||S.ctrlKey?this.cancel(S,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(S,D){let M=S.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||S.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||S.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?M:M&&(!D.keyCode||D.keyCode>47)}_keyUp(S){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(S)||this.focus(),this.updateCursorStyle(S),this._keyPressHandled=!1)}_keyPress(S){let D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;if(this.cancel(S),S.charCode)D=S.charCode;else if(S.which===null||S.which===void 0)D=S.keyCode;else{if(S.which===0||S.charCode===0)return!1;D=S.which}return!(!D||(S.altKey||S.ctrlKey||S.metaKey)&&!this._isThirdLevelShift(this.browser,S)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(S){if(S.data&&S.inputType==="insertText"&&(!S.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let D=S.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(S),!0}return!1}resize(S,D){S!==this.cols||D!==this.rows?super.resize(S,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(S,D){var M,A;(M=this._charSizeService)===null||M===void 0||M.measure(),(A=this.viewport)===null||A===void 0||A.syncScrollArea(!0)}clear(){var S;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let D=1;D{Object.defineProperty(r,"__esModule",{value:!0}),r.TimeBasedDebouncer=void 0,r.TimeBasedDebouncer=class{constructor(o,c=1e3){this._renderCallback=o,this._debounceThresholdMS=c,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,c,u){this._rowCount=u,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c;let n=Date.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){let d=n-this._lastRefreshMs,f=this._debounceThresholdMS-d;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},f)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c)}}},1680:function(L,r,o){var c=this&&this.__decorate||function(s,t,i,a){var l,p=arguments.length,g=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(s,t,i,a);else for(var h=s.length-1;h>=0;h--)(l=s[h])&&(g=(p<3?l(g):p>3?l(t,i,g):l(t,i))||g);return p>3&&g&&Object.defineProperty(t,i,g),g},u=this&&this.__param||function(s,t){return function(i,a){t(i,a,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Viewport=void 0;let n=o(3656),d=o(4725),f=o(8460),m=o(844),_=o(2585),e=r.Viewport=class extends m.Disposable{constructor(s,t,i,a,l,p,g,h){super(),this._viewportElement=s,this._scrollArea=t,this._bufferService=i,this._optionsService=a,this._charSizeService=l,this._renderService=p,this._coreBrowserService=g,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new f.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(v=>this._activeBuffer=v.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(v=>this._renderDimensions=v)),this._handleThemeChange(h.colors),this.register(h.onChangeColors(v=>this._handleThemeChange(v))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(s){this._viewportElement.style.backgroundColor=s.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(s){if(s)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;let t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}let s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null}syncScrollArea(s=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(s);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(s)}_handleScroll(s){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});let t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;let s=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(s*(this._smoothScrollState.target-this._smoothScrollState.origin)),s<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(s,t){let i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&i0&&(a=y),l=""}}return{bufferElements:p,cursorElement:a}}getLinesScrolled(s){if(s.deltaY===0||s.shiftKey)return 0;let t=this._applyScrollModifier(s.deltaY,s);return s.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):s.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(s,t){let i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&t.altKey||i==="ctrl"&&t.ctrlKey||i==="shift"&&t.shiftKey?s*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:s*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(s){this._lastTouchY=s.touches[0].pageY}handleTouchMove(s){let t=this._lastTouchY-s.touches[0].pageY;return this._lastTouchY=s.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(s,t))}};r.Viewport=e=c([u(2,_.IBufferService),u(3,_.IOptionsService),u(4,d.ICharSizeService),u(5,d.IRenderService),u(6,d.ICoreBrowserService),u(7,d.IThemeService)],e)},3107:function(L,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,p=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(p=(l<3?a(p):l>3?a(s,t,p):a(s,t))||p);return l>3&&p&&Object.defineProperty(s,t,p),p},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferDecorationRenderer=void 0;let n=o(3656),d=o(4725),f=o(844),m=o(2585),_=r.BufferDecorationRenderer=class extends f.Disposable{constructor(e,s,t,i){super(),this._screenElement=e,this._bufferService=s,this._decorationService=t,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(a=>this._removeDecoration(a))),this.register((0,f.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var s,t;let i=document.createElement("div");i.classList.add("xterm-decoration"),i.classList.toggle("xterm-decoration-top-layer",((s=e?.options)===null||s===void 0?void 0:s.layer)==="top"),i.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,i.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",i.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",i.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let a=(t=e.options.x)!==null&&t!==void 0?t:0;return a&&a>this._bufferService.cols&&(i.style.display="none"),this._refreshXPosition(e,i),i}_refreshStyle(e){let s=e.marker.line-this._bufferService.buffers.active.ydisp;if(s<0||s>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let t=this._decorationElements.get(e);t||(t=this._createElement(e),e.element=t,this._decorationElements.set(e,t),this._container.appendChild(t),e.onDispose(()=>{this._decorationElements.delete(e),t.remove()})),t.style.top=s*this._renderService.dimensions.css.cell.height+"px",t.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(t)}}_refreshXPosition(e,s=e.element){var t;if(!s)return;let i=(t=e.options.x)!==null&&t!==void 0?t:0;(e.options.anchor||"left")==="right"?s.style.right=i?i*this._renderService.dimensions.css.cell.width+"px":"":s.style.left=i?i*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var s;(s=this._decorationElements.get(e))===null||s===void 0||s.remove(),this._decorationElements.delete(e),e.dispose()}};r.BufferDecorationRenderer=_=c([u(1,m.IBufferService),u(2,m.IDecorationService),u(3,d.IRenderService)],_)},5871:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorZoneStore=void 0,r.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(o){if(o.options.overviewRulerOptions){for(let c of this._zones)if(c.color===o.options.overviewRulerOptions.color&&c.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(c,o.marker.line))return;if(this._lineAdjacentToZone(c,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(c,o.marker.line)}if(this._zonePoolIndex=o.startBufferLine&&c<=o.endBufferLine}_lineAdjacentToZone(o,c,u){return c>=o.startBufferLine-this._linePadding[u||"full"]&&c<=o.endBufferLine+this._linePadding[u||"full"]}_addLineToZone(o,c){o.startBufferLine=Math.min(o.startBufferLine,c),o.endBufferLine=Math.max(o.endBufferLine,c)}}},5744:function(L,r,o){var c=this&&this.__decorate||function(a,l,p,g){var h,v=arguments.length,b=v<3?l:g===null?g=Object.getOwnPropertyDescriptor(l,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(a,l,p,g);else for(var T=a.length-1;T>=0;T--)(h=a[T])&&(b=(v<3?h(b):v>3?h(l,p,b):h(l,p))||b);return v>3&&b&&Object.defineProperty(l,p,b),b},u=this&&this.__param||function(a,l){return function(p,g){l(p,g,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OverviewRulerRenderer=void 0;let n=o(5871),d=o(3656),f=o(4725),m=o(844),_=o(2585),e={full:0,left:0,center:0,right:0},s={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},i=r.OverviewRulerRenderer=class extends m.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(a,l,p,g,h,v,b){var T;super(),this._viewportElement=a,this._screenElement=l,this._bufferService=p,this._decorationService=g,this._renderService=h,this._optionsService=v,this._coreBrowseService=b,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(T=this._viewportElement.parentElement)===null||T===void 0||T.insertBefore(this._canvas,this._viewportElement);let y=this._canvas.getContext("2d");if(!y)throw new Error("Ctx cannot be null");this._ctx=y,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,m.toDisposable)(()=>{var k;(k=this._canvas)===null||k===void 0||k.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,d.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){let a=Math.floor(this._canvas.width/3),l=Math.ceil(this._canvas.width/3);s.full=this._canvas.width,s.left=a,s.center=l,s.right=a,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=s.left,t.right=s.left+s.center}_refreshDrawHeightConstants(){e.full=Math.round(2*this._coreBrowseService.dpr);let a=this._canvas.height/this._bufferService.buffer.lines.length,l=Math.round(Math.max(Math.min(a,12),6)*this._coreBrowseService.dpr);e.left=l,e.center=l,e.right=l}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let l of this._decorationService.decorations)this._colorZoneStore.addDecoration(l);this._ctx.lineWidth=1;let a=this._colorZoneStore.zones;for(let l of a)l.position!=="full"&&this._renderColorZone(l);for(let l of a)l.position==="full"&&this._renderColorZone(l);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(t[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-e[a.position||"full"]/2),s[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+e[a.position||"full"]))}_queueRefresh(a,l){this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=l||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};r.OverviewRulerRenderer=i=c([u(2,_.IBufferService),u(3,_.IDecorationService),u(4,f.IRenderService),u(5,_.IOptionsService),u(6,f.ICoreBrowserService)],i)},2950:function(L,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var p=_.length-1;p>=0;p--)(i=_[p])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompositionHelper=void 0;let n=o(4725),d=o(2585),f=o(2584),m=r.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(_,e,s,t,i,a){this._textarea=_,this._compositionView=e,this._bufferService=s,this._optionsService=t,this._coreService=i,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(_){this._compositionView.textContent=_.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(_){if(this._isComposing||this._isSendingComposition){if(_.keyCode===229||_.keyCode===16||_.keyCode===17||_.keyCode===18)return!1;this._finalizeComposition(!1)}return _.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(_){if(this._compositionView.classList.remove("active"),this._isComposing=!1,_){let e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let s;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,s=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),s.length>0&&this._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;let e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){let _=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let e=this._textarea.value,s=e.replace(_,"");this._dataAlreadySent=s,e.length>_.length?this._coreService.triggerDataEvent(s,!0):e.length<_.length?this._coreService.triggerDataEvent(`${f.C0.DEL}`,!0):e.length===_.length&&e!==_&&this._coreService.triggerDataEvent(e,!0)}},0)}updateCompositionElements(_){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),s=this._renderService.dimensions.css.cell.height,t=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,i=e*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=t+"px",this._compositionView.style.height=s+"px",this._compositionView.style.lineHeight=s+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let a=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=t+"px",this._textarea.style.width=Math.max(a.width,1)+"px",this._textarea.style.height=Math.max(a.height,1)+"px",this._textarea.style.lineHeight=a.height+"px"}_||setTimeout(()=>this.updateCompositionElements(!0),0)}}};r.CompositionHelper=m=c([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,n.IRenderService)],m)},9806:(L,r)=>{function o(c,u,n){let d=n.getBoundingClientRect(),f=c.getComputedStyle(n),m=parseInt(f.getPropertyValue("padding-left")),_=parseInt(f.getPropertyValue("padding-top"));return[u.clientX-d.left-m,u.clientY-d.top-_]}Object.defineProperty(r,"__esModule",{value:!0}),r.getCoords=r.getCoordsRelativeToElement=void 0,r.getCoordsRelativeToElement=o,r.getCoords=function(c,u,n,d,f,m,_,e,s){if(!m)return;let t=o(c,u,n);return t?(t[0]=Math.ceil((t[0]+(s?_/2:0))/_),t[1]=Math.ceil(t[1]/e),t[0]=Math.min(Math.max(t[0],1),d+(s?1:0)),t[1]=Math.min(Math.max(t[1],1),f),t):void 0}},9504:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.moveToCellSequence=void 0;let c=o(2584);function u(e,s,t,i){let a=e-n(e,t),l=s-n(s,t),p=Math.abs(a-l)-function(g,h,v){let b=0,T=g-n(g,v),y=h-n(h,v);for(let k=0;k=0&&es?"A":"B"}function f(e,s,t,i,a,l){let p=e,g=s,h="";for(;p!==t||g!==i;)p+=a?1:-1,a&&p>l.cols-1?(h+=l.buffer.translateBufferLineToString(g,!1,e,p),p=0,e=0,g++):!a&&p<0&&(h+=l.buffer.translateBufferLineToString(g,!1,0,e+1),p=l.cols-1,e=p,g--);return h+l.buffer.translateBufferLineToString(g,!1,e,p)}function m(e,s){let t=s?"O":"[";return c.C0.ESC+t+e}function _(e,s){e=Math.floor(e);let t="";for(let i=0;i0?T-n(T,y):v;let B=T,P=function(I,C,w,E,x,F){let N;return N=u(w,E,x,F).length>0?E-n(E,x):C,I=w&&Ne?"D":"C",_(Math.abs(a-e),m(p,i));p=l>s?"D":"C";let g=Math.abs(l-s);return _(function(h,v){return v.cols-h}(l>s?e:a,t)+(g-1)*t.cols+1+((l>s?a:e)-1),m(p,i))}},1296:function(L,r,o){var c=this&&this.__decorate||function(y,k,R,B){var P,I=arguments.length,C=I<3?k:B===null?B=Object.getOwnPropertyDescriptor(k,R):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,k,R,B);else for(var w=y.length-1;w>=0;w--)(P=y[w])&&(C=(I<3?P(C):I>3?P(k,R,C):P(k,R))||C);return I>3&&C&&Object.defineProperty(k,R,C),C},u=this&&this.__param||function(y,k){return function(R,B){k(R,B,y)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRenderer=void 0;let n=o(3787),d=o(2550),f=o(2223),m=o(6171),_=o(4725),e=o(8055),s=o(8460),t=o(844),i=o(2585),a="xterm-dom-renderer-owner-",l="xterm-rows",p="xterm-fg-",g="xterm-bg-",h="xterm-focus",v="xterm-selection",b=1,T=r.DomRenderer=class extends t.Disposable{constructor(y,k,R,B,P,I,C,w,E,x){super(),this._element=y,this._screenElement=k,this._viewportElement=R,this._linkifier2=B,this._charSizeService=I,this._optionsService=C,this._bufferService=w,this._coreBrowserService=E,this._themeService=x,this._terminalClass=b++,this._rowElements=[],this.onRequestRedraw=this.register(new s.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(l),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(v),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,m.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(F=>this._injectCss(F))),this._injectCss(this._themeService.colors),this._rowFactory=P.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(a+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(F=>this._handleLinkHover(F))),this.register(this._linkifier2.onHideLinkUnderline(F=>this._handleLinkLeave(F))),this.register((0,t.toDisposable)(()=>{this._element.classList.remove(a+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new d.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let y=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*y,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*y),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/y),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/y),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let R of this._rowElements)R.style.width=`${this.dimensions.css.canvas.width}px`,R.style.height=`${this.dimensions.css.cell.height}px`,R.style.lineHeight=`${this.dimensions.css.cell.height}px`,R.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let k=`${this._terminalSelector} .${l} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=k,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(y){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let k=`${this._terminalSelector} .${l} { color: ${y.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;k+=`${this._terminalSelector} .${l} .xterm-dim { color: ${e.color.multiplyOpacity(y.foreground,.5).css};}`,k+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,k+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",k+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${y.cursor.css}; color: ${y.cursorAccent.css}; } 50% { background-color: inherit; color: ${y.cursor.css}; }}`,k+=`${this._terminalSelector} .${l}.${h} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${l}.${h} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${l} .xterm-cursor.xterm-cursor-block { background-color: ${y.cursor.css}; color: ${y.cursorAccent.css};}${this._terminalSelector} .${l} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${y.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${l} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${y.cursor.css} inset;}${this._terminalSelector} .${l} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${y.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,k+=`${this._terminalSelector} .${v} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${v} div { position: absolute; background-color: ${y.selectionBackgroundOpaque.css};}${this._terminalSelector} .${v} div { position: absolute; background-color: ${y.selectionInactiveBackgroundOpaque.css};}`;for(let[R,B]of y.ansi.entries())k+=`${this._terminalSelector} .${p}${R} { color: ${B.css}; }${this._terminalSelector} .${p}${R}.xterm-dim { color: ${e.color.multiplyOpacity(B,.5).css}; }${this._terminalSelector} .${g}${R} { background-color: ${B.css}; }`;k+=`${this._terminalSelector} .${p}${f.INVERTED_DEFAULT_COLOR} { color: ${e.color.opaque(y.background).css}; }${this._terminalSelector} .${p}${f.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${e.color.multiplyOpacity(e.color.opaque(y.background),.5).css}; }${this._terminalSelector} .${g}${f.INVERTED_DEFAULT_COLOR} { background-color: ${y.foreground.css}; }`,this._themeStyleElement.textContent=k}_setDefaultSpacing(){let y=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${y}px`,this._rowFactory.defaultSpacing=y}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(y,k){for(let R=this._rowElements.length;R<=k;R++){let B=document.createElement("div");this._rowContainer.appendChild(B),this._rowElements.push(B)}for(;this._rowElements.length>k;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(y,k){this._refreshRowElements(y,k),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(h)}handleFocus(){this._rowContainer.classList.add(h),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(y,k,R){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(y,k,R),this.renderRows(0,this._bufferService.rows-1),!y||!k)return;let B=y[1]-this._bufferService.buffer.ydisp,P=k[1]-this._bufferService.buffer.ydisp,I=Math.max(B,0),C=Math.min(P,this._bufferService.rows-1);if(I>=this._bufferService.rows||C<0)return;let w=document.createDocumentFragment();if(R){let E=y[0]>k[0];w.appendChild(this._createSelectionElement(I,E?k[0]:y[0],E?y[0]:k[0],C-I+1))}else{let E=B===I?y[0]:0,x=I===P?k[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(I,E,x));let F=C-I-1;if(w.appendChild(this._createSelectionElement(I+1,0,this._bufferService.cols,F)),I!==C){let N=P===C?k[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(C,0,N))}}this._selectionContainer.appendChild(w)}_createSelectionElement(y,k,R,B=1){let P=document.createElement("div");return P.style.height=B*this.dimensions.css.cell.height+"px",P.style.top=y*this.dimensions.css.cell.height+"px",P.style.left=k*this.dimensions.css.cell.width+"px",P.style.width=this.dimensions.css.cell.width*(R-k)+"px",P}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let y of this._rowElements)y.replaceChildren()}renderRows(y,k){let R=this._bufferService.buffer,B=R.ybase+R.y,P=Math.min(R.x,this._bufferService.cols-1),I=this._optionsService.rawOptions.cursorBlink,C=this._optionsService.rawOptions.cursorStyle,w=this._optionsService.rawOptions.cursorInactiveStyle;for(let E=y;E<=k;E++){let x=E+R.ydisp,F=this._rowElements[E],N=R.lines.get(x);if(!F||!N)break;F.replaceChildren(...this._rowFactory.createRow(N,x,x===B,C,w,P,I,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${a}${this._terminalClass}`}_handleLinkHover(y){this._setCellUnderline(y.x1,y.x2,y.y1,y.y2,y.cols,!0)}_handleLinkLeave(y){this._setCellUnderline(y.x1,y.x2,y.y1,y.y2,y.cols,!1)}_setCellUnderline(y,k,R,B,P,I){R<0&&(y=0),B<0&&(k=0);let C=this._bufferService.rows-1;R=Math.max(Math.min(R,C),0),B=Math.max(Math.min(B,C),0),P=Math.min(P,this._bufferService.cols);let w=this._bufferService.buffer,E=w.ybase+w.y,x=Math.min(w.x,P-1),F=this._optionsService.rawOptions.cursorBlink,N=this._optionsService.rawOptions.cursorStyle,z=this._optionsService.rawOptions.cursorInactiveStyle;for(let j=R;j<=B;++j){let Y=j+w.ydisp,S=this._rowElements[j],D=w.lines.get(Y);if(!S||!D)break;S.replaceChildren(...this._rowFactory.createRow(D,Y,Y===E,N,z,x,F,this.dimensions.css.cell.width,this._widthCache,I?j===R?y:0:-1,I?(j===B?k:P)-1:-1))}}};r.DomRenderer=T=c([u(4,i.IInstantiationService),u(5,_.ICharSizeService),u(6,i.IOptionsService),u(7,i.IBufferService),u(8,_.ICoreBrowserService),u(9,_.IThemeService)],T)},3787:function(L,r,o){var c=this&&this.__decorate||function(p,g,h,v){var b,T=arguments.length,y=T<3?g:v===null?v=Object.getOwnPropertyDescriptor(g,h):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(p,g,h,v);else for(var k=p.length-1;k>=0;k--)(b=p[k])&&(y=(T<3?b(y):T>3?b(g,h,y):b(g,h))||y);return T>3&&y&&Object.defineProperty(g,h,y),y},u=this&&this.__param||function(p,g){return function(h,v){g(h,v,p)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRendererRowFactory=void 0;let n=o(2223),d=o(643),f=o(511),m=o(2585),_=o(8055),e=o(4725),s=o(4269),t=o(6171),i=o(3734),a=r.DomRendererRowFactory=class{constructor(p,g,h,v,b,T,y){this._document=p,this._characterJoinerService=g,this._optionsService=h,this._coreBrowserService=v,this._coreService=b,this._decorationService=T,this._themeService=y,this._workCell=new f.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(p,g,h){this._selectionStart=p,this._selectionEnd=g,this._columnSelectMode=h}createRow(p,g,h,v,b,T,y,k,R,B,P){let I=[],C=this._characterJoinerService.getJoinedCharacters(g),w=this._themeService.colors,E,x=p.getNoBgTrimmedLength();h&&x0&&V===C[0][0]){re=!0;let J=C.shift();q=new s.JoinedCellData(this._workCell,p.translateToString(!0,J[0],J[1]),J[1]-J[0]),be=J[1]-1,Z=q.getWidth()}let Re=this._isCellInSelection(V,g),dt=h&&V===T,_t=U&&V>=B&&V<=P,ut=!1;this._decorationService.forEachDecorationAtCell(V,g,void 0,J=>{ut=!0});let Pe=q.getChars()||d.WHITESPACE_CELL_CHAR;if(Pe===" "&&(q.isUnderline()||q.isOverline())&&(Pe="\xA0"),A=Z*k-R.get(Pe,q.isBold(),q.isItalic()),E){if(F&&(Re&&M||!Re&&!M&&q.bg===z)&&(Re&&M&&w.selectionForeground||q.fg===j)&&q.extended.ext===Y&&_t===S&&A===D&&!dt&&!re&&!ut){N+=Pe,F++;continue}F&&(E.textContent=N),E=this._document.createElement("span"),F=0,N=""}else E=this._document.createElement("span");if(z=q.bg,j=q.fg,Y=q.extended.ext,S=_t,D=A,M=Re,re&&T>=V&&T<=be&&(T=V),!this._coreService.isCursorHidden&&dt){if(K.push("xterm-cursor"),this._coreBrowserService.isFocused)y&&K.push("xterm-cursor-blink"),K.push(v==="bar"?"xterm-cursor-bar":v==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(b)switch(b){case"outline":K.push("xterm-cursor-outline");break;case"block":K.push("xterm-cursor-block");break;case"bar":K.push("xterm-cursor-bar");break;case"underline":K.push("xterm-cursor-underline")}}if(q.isBold()&&K.push("xterm-bold"),q.isItalic()&&K.push("xterm-italic"),q.isDim()&&K.push("xterm-dim"),N=q.isInvisible()?d.WHITESPACE_CELL_CHAR:q.getChars()||d.WHITESPACE_CELL_CHAR,q.isUnderline()&&(K.push(`xterm-underline-${q.extended.underlineStyle}`),N===" "&&(N="\xA0"),!q.isUnderlineColorDefault()))if(q.isUnderlineColorRGB())E.style.textDecorationColor=`rgb(${i.AttributeData.toColorRGB(q.getUnderlineColor()).join(",")})`;else{let J=q.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&q.isBold()&&J<8&&(J+=8),E.style.textDecorationColor=w.ansi[J].css}q.isOverline()&&(K.push("xterm-overline"),N===" "&&(N="\xA0")),q.isStrikethrough()&&K.push("xterm-strikethrough"),_t&&(E.style.textDecoration="underline");let ne=q.getFgColor(),Ae=q.getFgColorMode(),he=q.getBgColor(),Me=q.getBgColorMode(),ft=!!q.isInverse();if(ft){let J=ne;ne=he,he=J;let bi=Ae;Ae=Me,Me=bi}let pe,pt,ve,Be=!1;switch(this._decorationService.forEachDecorationAtCell(V,g,void 0,J=>{J.options.layer!=="top"&&Be||(J.backgroundColorRGB&&(Me=50331648,he=J.backgroundColorRGB.rgba>>8&16777215,pe=J.backgroundColorRGB),J.foregroundColorRGB&&(Ae=50331648,ne=J.foregroundColorRGB.rgba>>8&16777215,pt=J.foregroundColorRGB),Be=J.options.layer==="top")}),!Be&&Re&&(pe=this._coreBrowserService.isFocused?w.selectionBackgroundOpaque:w.selectionInactiveBackgroundOpaque,he=pe.rgba>>8&16777215,Me=50331648,Be=!0,w.selectionForeground&&(Ae=50331648,ne=w.selectionForeground.rgba>>8&16777215,pt=w.selectionForeground)),Be&&K.push("xterm-decoration-top"),Me){case 16777216:case 33554432:ve=w.ansi[he],K.push(`xterm-bg-${he}`);break;case 50331648:ve=_.rgba.toColor(he>>16,he>>8&255,255&he),this._addStyle(E,`background-color:#${l((he>>>0).toString(16),"0",6)}`);break;default:ft?(ve=w.foreground,K.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):ve=w.background}switch(pe||q.isDim()&&(pe=_.color.multiplyOpacity(ve,.5)),Ae){case 16777216:case 33554432:q.isBold()&&ne<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ne+=8),this._applyMinimumContrast(E,ve,w.ansi[ne],q,pe,void 0)||K.push(`xterm-fg-${ne}`);break;case 50331648:let J=_.rgba.toColor(ne>>16&255,ne>>8&255,255&ne);this._applyMinimumContrast(E,ve,J,q,pe,pt)||this._addStyle(E,`color:#${l(ne.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(E,ve,w.foreground,q,pe,void 0)||ft&&K.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}K.length&&(E.className=K.join(" "),K.length=0),dt||re||ut?E.textContent=N:F++,A!==this.defaultSpacing&&(E.style.letterSpacing=`${A}px`),I.push(E),V=be}return E&&F&&(E.textContent=N),I}_applyMinimumContrast(p,g,h,v,b,T){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,t.excludeFromContrastRatioDemands)(v.getCode()))return!1;let y=this._getContrastCache(v),k;if(b||T||(k=y.getColor(g.rgba,h.rgba)),k===void 0){let R=this._optionsService.rawOptions.minimumContrastRatio/(v.isDim()?2:1);k=_.color.ensureContrastRatio(b||g,T||h,R),y.setColor((b||g).rgba,(T||h).rgba,k??null)}return!!k&&(this._addStyle(p,`color:${k.css}`),!0)}_getContrastCache(p){return p.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(p,g){p.setAttribute("style",`${p.getAttribute("style")||""}${g};`)}_isCellInSelection(p,g){let h=this._selectionStart,v=this._selectionEnd;return!(!h||!v)&&(this._columnSelectMode?h[0]<=v[0]?p>=h[0]&&g>=h[1]&&p=h[1]&&p>=v[0]&&g<=v[1]:g>h[1]&&g=h[0]&&p=h[0])}};function l(p,g,h){for(;p.length{Object.defineProperty(r,"__esModule",{value:!0}),r.WidthCache=void 0,r.WidthCache=class{constructor(o){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=o.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let c=o.createElement("span"),u=o.createElement("span");u.style.fontWeight="bold";let n=o.createElement("span");n.style.fontStyle="italic";let d=o.createElement("span");d.style.fontWeight="bold",d.style.fontStyle="italic",this._measureElements=[c,u,n,d],this._container.appendChild(c),this._container.appendChild(u),this._container.appendChild(n),this._container.appendChild(d),o.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(o,c,u,n){o===this._font&&c===this._fontSize&&u===this._weight&&n===this._weightBold||(this._font=o,this._fontSize=c,this._weight=u,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${u}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${u}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(o,c,u){let n=0;if(!c&&!u&&o.length===1&&(n=o.charCodeAt(0))<256)return this._flat[n]!==-9999?this._flat[n]:this._flat[n]=this._measure(o,0);let d=o;c&&(d+="B"),u&&(d+="I");let f=this._holey.get(d);if(f===void 0){let m=0;c&&(m|=1),u&&(m|=2),f=this._measure(o,m),this._holey.set(d,f)}return f}_measure(o,c){let u=this._measureElements[c];return u.textContent=o.repeat(32),u.offsetWidth/32}}},2223:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;let c=o(6114);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=c.isFirefox||c.isLegacyEdge?"bottom":"ideographic"},6171:(L,r)=>{function o(c){return 57508<=c&&c<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.createRenderDimensions=r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(c){if(!c)throw new Error("value must not be falsy");return c},r.isPowerlineGlyph=o,r.isRestrictedPowerlineGlyph=function(c){return 57520<=c&&c<=57527},r.excludeFromContrastRatioDemands=function(c){return o(c)||function(u){return 9472<=u&&u<=9631}(c)},r.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionModel=void 0,r.SelectionModel=class{constructor(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?o%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)-1]:[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[o,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[Math.max(o,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let o=this.selectionStart,c=this.selectionEnd;return!(!o||!c)&&(o[1]>c[1]||o[1]===c[1]&&o[0]>c[0])}handleTrim(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(L,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,p=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(p=(l<3?a(p):l>3?a(s,t,p):a(s,t))||p);return l>3&&p&&Object.defineProperty(s,t,p),p},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharSizeService=void 0;let n=o(2585),d=o(8460),f=o(844),m=r.CharSizeService=class extends f.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,s,t){super(),this._optionsService=t,this.width=0,this.height=0,this._onCharSizeChange=this.register(new d.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new _(e,s,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){let e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};r.CharSizeService=m=c([u(2,n.IOptionsService)],m);class _{constructor(s,t,i){this._document=s,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;let s={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return s.width!==0&&s.height!==0&&(this._result.width=s.width/32,this._result.height=Math.ceil(s.height)),this._result}}},4269:function(L,r,o){var c=this&&this.__decorate||function(s,t,i,a){var l,p=arguments.length,g=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,i):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(s,t,i,a);else for(var h=s.length-1;h>=0;h--)(l=s[h])&&(g=(p<3?l(g):p>3?l(t,i,g):l(t,i))||g);return p>3&&g&&Object.defineProperty(t,i,g),g},u=this&&this.__param||function(s,t){return function(i,a){t(i,a,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterJoinerService=r.JoinedCellData=void 0;let n=o(3734),d=o(643),f=o(511),m=o(2585);class _ extends n.AttributeData{constructor(t,i,a){super(),this.content=0,this.combinedData="",this.fg=t.fg,this.bg=t.bg,this.combinedData=i,this._width=a}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(t){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.JoinedCellData=_;let e=r.CharacterJoinerService=class ni{constructor(t){this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new f.CellData}register(t){let i={id:this._nextCharacterJoinerId++,handler:t};return this._characterJoiners.push(i),i.id}deregister(t){for(let i=0;i1){let y=this._getJoinedRanges(l,h,g,i,p);for(let k=0;k1){let T=this._getJoinedRanges(l,h,g,i,p);for(let y=0;y{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreBrowserService=void 0,r.CoreBrowserService=class{constructor(o,c){this._textarea=o,this.window=c,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(L,r,o){var c=this&&this.__decorate||function(m,_,e,s){var t,i=arguments.length,a=i<3?_:s===null?s=Object.getOwnPropertyDescriptor(_,e):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(m,_,e,s);else for(var l=m.length-1;l>=0;l--)(t=m[l])&&(a=(i<3?t(a):i>3?t(_,e,a):t(_,e))||a);return i>3&&a&&Object.defineProperty(_,e,a),a},u=this&&this.__param||function(m,_){return function(e,s){_(e,s,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.MouseService=void 0;let n=o(4725),d=o(9806),f=r.MouseService=class{constructor(m,_){this._renderService=m,this._charSizeService=_}getCoords(m,_,e,s,t){return(0,d.getCoords)(window,m,_,e,s,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,t)}getMouseReportCoords(m,_){let e=(0,d.getCoordsRelativeToElement)(window,m,_);if(this._charSizeService.hasValidSize)return e[0]=Math.min(Math.max(e[0],0),this._renderService.dimensions.css.canvas.width-1),e[1]=Math.min(Math.max(e[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(e[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(e[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(e[0]),y:Math.floor(e[1])}}};r.MouseService=f=c([u(0,n.IRenderService),u(1,n.ICharSizeService)],f)},3230:function(L,r,o){var c=this&&this.__decorate||function(a,l,p,g){var h,v=arguments.length,b=v<3?l:g===null?g=Object.getOwnPropertyDescriptor(l,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(a,l,p,g);else for(var T=a.length-1;T>=0;T--)(h=a[T])&&(b=(v<3?h(b):v>3?h(l,p,b):h(l,p))||b);return v>3&&b&&Object.defineProperty(l,p,b),b},u=this&&this.__param||function(a,l){return function(p,g){l(p,g,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.RenderService=void 0;let n=o(3656),d=o(6193),f=o(5596),m=o(4725),_=o(8460),e=o(844),s=o(7226),t=o(2585),i=r.RenderService=class extends e.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(a,l,p,g,h,v,b,T){if(super(),this._rowCount=a,this._charSizeService=g,this._renderer=this.register(new e.MutableDisposable),this._pausedResizeTask=new s.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new _.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new _.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new _.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new _.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new d.RenderDebouncer(b.window,(y,k)=>this._renderRows(y,k)),this.register(this._renderDebouncer),this._screenDprMonitor=new f.ScreenDprMonitor(b.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(v.onResize(()=>this._fullRefresh())),this.register(v.buffers.onBufferActivate(()=>{var y;return(y=this._renderer.value)===null||y===void 0?void 0:y.clear()})),this.register(p.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(h.onDecorationRegistered(()=>this._fullRefresh())),this.register(h.onDecorationRemoved(()=>this._fullRefresh())),this.register(p.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(v.cols,v.rows),this._fullRefresh()})),this.register(p.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(v.buffer.y,v.buffer.y,!0))),this.register((0,n.addDisposableDomListener)(b.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(T.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in b.window){let y=new b.window.IntersectionObserver(k=>this._handleIntersectionChange(k[k.length-1]),{threshold:0});y.observe(l),this.register({dispose:()=>y.disconnect()})}}_handleIntersectionChange(a){this._isPaused=a.isIntersecting===void 0?a.intersectionRatio===0:!a.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(a,l,p=!1){this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(a,l,this._rowCount))}_renderRows(a,l){this._renderer.value&&(a=Math.min(a,this._rowCount-1),l=Math.min(l,this._rowCount-1),this._renderer.value.renderRows(a,l),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:a,end:l}),this._onRender.fire({start:a,end:l}),this._isNextRenderRedrawOnly=!0)}resize(a,l){this._rowCount=l,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(a){this._renderer.value=a,this._renderer.value.onRequestRedraw(l=>this.refreshRows(l.start,l.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(a){return this._renderDebouncer.addRefreshCallback(a)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var a,l;this._renderer.value&&((l=(a=this._renderer.value).clearTextureAtlas)===null||l===void 0||l.call(a),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(a,l){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(a,l)):this._renderer.value.handleResize(a,l),this._fullRefresh())}handleCharSizeChanged(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCharSizeChanged()}handleBlur(){var a;(a=this._renderer.value)===null||a===void 0||a.handleBlur()}handleFocus(){var a;(a=this._renderer.value)===null||a===void 0||a.handleFocus()}handleSelectionChanged(a,l,p){var g;this._selectionState.start=a,this._selectionState.end=l,this._selectionState.columnSelectMode=p,(g=this._renderer.value)===null||g===void 0||g.handleSelectionChanged(a,l,p)}handleCursorMove(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCursorMove()}clear(){var a;(a=this._renderer.value)===null||a===void 0||a.clear()}};r.RenderService=i=c([u(2,t.IOptionsService),u(3,m.ICharSizeService),u(4,t.IDecorationService),u(5,t.IBufferService),u(6,m.ICoreBrowserService),u(7,m.IThemeService)],i)},9312:function(L,r,o){var c=this&&this.__decorate||function(h,v,b,T){var y,k=arguments.length,R=k<3?v:T===null?T=Object.getOwnPropertyDescriptor(v,b):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(h,v,b,T);else for(var B=h.length-1;B>=0;B--)(y=h[B])&&(R=(k<3?y(R):k>3?y(v,b,R):y(v,b))||R);return k>3&&R&&Object.defineProperty(v,b,R),R},u=this&&this.__param||function(h,v){return function(b,T){v(b,T,h)}};Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionService=void 0;let n=o(9806),d=o(9504),f=o(456),m=o(4725),_=o(8460),e=o(844),s=o(6114),t=o(4841),i=o(511),a=o(2585),l="\xA0",p=new RegExp(l,"g"),g=r.SelectionService=class extends e.Disposable{constructor(h,v,b,T,y,k,R,B,P){super(),this._element=h,this._screenElement=v,this._linkifier=b,this._bufferService=T,this._coreService=y,this._mouseService=k,this._optionsService=R,this._renderService=B,this._coreBrowserService=P,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new i.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new _.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new _.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new _.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new _.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=I=>this._handleMouseMove(I),this._mouseUpListener=I=>this._handleMouseUp(I),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(I=>this._handleTrim(I)),this.register(this._bufferService.buffers.onBufferActivate(I=>this._handleBufferActivate(I))),this.enable(),this._model=new f.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,e.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let h=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;return!(!h||!v||h[0]===v[0]&&h[1]===v[1])}get selectionText(){let h=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;if(!h||!v)return"";let b=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(h[0]===v[0])return"";let y=h[0]y.replace(p," ")).join(s.isWindows?`\r +`:` +`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(h){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),s.isLinux&&h&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(h){let v=this._getMouseBufferCoords(h),b=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(b&&T&&v)&&this._areCoordsInSelection(v,b,T)}isCellInSelection(h,v){let b=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!b||!T)&&this._areCoordsInSelection([h,v],b,T)}_areCoordsInSelection(h,v,b){return h[1]>v[1]&&h[1]=v[0]&&h[0]=v[0]}_selectWordAtCursor(h,v){var b,T;let y=(T=(b=this._linkifier.currentLink)===null||b===void 0?void 0:b.link)===null||T===void 0?void 0:T.range;if(y)return this._model.selectionStart=[y.start.x-1,y.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(y,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let k=this._getMouseBufferCoords(h);return!!k&&(this._selectWordAt(k,v),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(h,v){this._model.clearSelection(),h=Math.max(h,0),v=Math.min(v,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,h],this._model.selectionEnd=[this._bufferService.cols,v],this.refresh(),this._onSelectionChange.fire()}_handleTrim(h){this._model.handleTrim(h)&&this.refresh()}_getMouseBufferCoords(h){let v=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(v)return v[0]--,v[1]--,v[1]+=this._bufferService.buffer.ydisp,v}_getMouseEventScrollAmount(h){let v=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,h,this._screenElement)[1],b=this._renderService.dimensions.css.canvas.height;return v>=0&&v<=b?0:(v>b&&(v-=b),v=Math.min(Math.max(v,-50),50),v/=50,v/Math.abs(v)+Math.round(14*v))}shouldForceSelection(h){return s.isMac?h.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:h.shiftKey}handleMouseDown(h){if(this._mouseDownTimeStamp=h.timeStamp,(h.button!==2||!this.hasSelection)&&h.button===0){if(!this._enabled){if(!this.shouldForceSelection(h))return;h.stopPropagation()}h.preventDefault(),this._dragScrollAmount=0,this._enabled&&h.shiftKey?this._handleIncrementalClick(h):h.detail===1?this._handleSingleClick(h):h.detail===2?this._handleDoubleClick(h):h.detail===3&&this._handleTripleClick(h),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(h){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(h))}_handleSingleClick(h){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(h)?3:0,this._model.selectionStart=this._getMouseBufferCoords(h),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let v=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);v&&v.length!==this._model.selectionStart[0]&&v.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(h){this._selectWordAtCursor(h,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(h){let v=this._getMouseBufferCoords(h);v&&(this._activeSelectionMode=2,this._selectLineAt(v[1]))}shouldColumnSelect(h){return h.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(h){if(h.stopImmediatePropagation(),!this._model.selectionStart)return;let v=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(h),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let b=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(h.ydisp+this._bufferService.rows,h.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=h.ydisp),this.refresh()}}_handleMouseUp(h){let v=h.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&v<500&&h.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let b=this._mouseService.getCoords(h,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(b&&b[0]!==void 0&&b[1]!==void 0){let T=(0,d.moveToCellSequence)(b[0]-1,b[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let h=this._model.finalSelectionStart,v=this._model.finalSelectionEnd,b=!(!h||!v||h[0]===v[0]&&h[1]===v[1]);b?h&&v&&(this._oldSelectionStart&&this._oldSelectionEnd&&h[0]===this._oldSelectionStart[0]&&h[1]===this._oldSelectionStart[1]&&v[0]===this._oldSelectionEnd[0]&&v[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(h,v,b)):this._oldHasSelection&&this._fireOnSelectionChange(h,v,b)}_fireOnSelectionChange(h,v,b){this._oldSelectionStart=h,this._oldSelectionEnd=v,this._oldHasSelection=b,this._onSelectionChange.fire()}_handleBufferActivate(h){this.clearSelection(),this._trimListener.dispose(),this._trimListener=h.activeBuffer.lines.onTrim(v=>this._handleTrim(v))}_convertViewportColToCharacterIndex(h,v){let b=v;for(let T=0;v>=T;T++){let y=h.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?b--:y>1&&v!==T&&(b+=y-1)}return b}setSelection(h,v,b){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[h,v],this._model.selectionStartLength=b,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(h){this._isClickInSelection(h)||(this._selectWordAtCursor(h,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(h,v,b=!0,T=!0){if(h[0]>=this._bufferService.cols)return;let y=this._bufferService.buffer,k=y.lines.get(h[1]);if(!k)return;let R=y.translateBufferLineToString(h[1],!1),B=this._convertViewportColToCharacterIndex(k,h[0]),P=B,I=h[0]-B,C=0,w=0,E=0,x=0;if(R.charAt(B)===" "){for(;B>0&&R.charAt(B-1)===" ";)B--;for(;P1&&(x+=Y-1,P+=Y-1);z>0&&B>0&&!this._isCharWordSeparator(k.loadCell(z-1,this._workCell));){k.loadCell(z-1,this._workCell);let S=this._workCell.getChars().length;this._workCell.getWidth()===0?(C++,z--):S>1&&(E+=S-1,B-=S-1),B--,z--}for(;j1&&(x+=S-1,P+=S-1),P++,j++}}P++;let F=B+I-C+E,N=Math.min(this._bufferService.cols,P-B+C+w-E-x);if(v||R.slice(B,P).trim()!==""){if(b&&F===0&&k.getCodePoint(0)!==32){let z=y.lines.get(h[1]-1);if(z&&k.isWrapped&&z.getCodePoint(this._bufferService.cols-1)!==32){let j=this._getWordAt([this._bufferService.cols-1,h[1]-1],!1,!0,!1);if(j){let Y=this._bufferService.cols-j.start;F-=Y,N+=Y}}}if(T&&F+N===this._bufferService.cols&&k.getCodePoint(this._bufferService.cols-1)!==32){let z=y.lines.get(h[1]+1);if(z?.isWrapped&&z.getCodePoint(0)!==32){let j=this._getWordAt([0,h[1]+1],!1,!1,!0);j&&(N+=j.length)}}return{start:F,length:N}}}_selectWordAt(h,v){let b=this._getWordAt(h,v);if(b){for(;b.start<0;)b.start+=this._bufferService.cols,h[1]--;this._model.selectionStart=[b.start,h[1]],this._model.selectionStartLength=b.length}}_selectToWordAt(h){let v=this._getWordAt(h,!0);if(v){let b=h[1];for(;v.start<0;)v.start+=this._bufferService.cols,b--;if(!this._model.areSelectionValuesReversed())for(;v.start+v.length>this._bufferService.cols;)v.length-=this._bufferService.cols,b++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?v.start:v.start+v.length,b]}}_isCharWordSeparator(h){return h.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(h.getChars())>=0}_selectLineAt(h){let v=this._bufferService.buffer.getWrappedRangeForLine(h),b={start:{x:0,y:v.first},end:{x:this._bufferService.cols-1,y:v.last}};this._model.selectionStart=[0,v.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,t.getRangeLength)(b,this._bufferService.cols)}};r.SelectionService=g=c([u(3,a.IBufferService),u(4,a.ICoreService),u(5,m.IMouseService),u(6,a.IOptionsService),u(7,m.IRenderService),u(8,m.ICoreBrowserService)],g)},4725:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;let c=o(8343);r.ICharSizeService=(0,c.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,c.createDecorator)("CoreBrowserService"),r.IMouseService=(0,c.createDecorator)("MouseService"),r.IRenderService=(0,c.createDecorator)("RenderService"),r.ISelectionService=(0,c.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,c.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,c.createDecorator)("ThemeService")},6731:function(L,r,o){var c=this&&this.__decorate||function(g,h,v,b){var T,y=arguments.length,k=y<3?h:b===null?b=Object.getOwnPropertyDescriptor(h,v):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(g,h,v,b);else for(var R=g.length-1;R>=0;R--)(T=g[R])&&(k=(y<3?T(k):y>3?T(h,v,k):T(h,v))||k);return y>3&&k&&Object.defineProperty(h,v,k),k},u=this&&this.__param||function(g,h){return function(v,b){h(v,b,g)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;let n=o(7239),d=o(8055),f=o(8460),m=o(844),_=o(2585),e=d.css.toColor("#ffffff"),s=d.css.toColor("#000000"),t=d.css.toColor("#ffffff"),i=d.css.toColor("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let g=[d.css.toColor("#2e3436"),d.css.toColor("#cc0000"),d.css.toColor("#4e9a06"),d.css.toColor("#c4a000"),d.css.toColor("#3465a4"),d.css.toColor("#75507b"),d.css.toColor("#06989a"),d.css.toColor("#d3d7cf"),d.css.toColor("#555753"),d.css.toColor("#ef2929"),d.css.toColor("#8ae234"),d.css.toColor("#fce94f"),d.css.toColor("#729fcf"),d.css.toColor("#ad7fa8"),d.css.toColor("#34e2e2"),d.css.toColor("#eeeeec")],h=[0,95,135,175,215,255];for(let v=0;v<216;v++){let b=h[v/36%6|0],T=h[v/6%6|0],y=h[v%6];g.push({css:d.channels.toCss(b,T,y),rgba:d.channels.toRgba(b,T,y)})}for(let v=0;v<24;v++){let b=8+10*v;g.push({css:d.channels.toCss(b,b,b),rgba:d.channels.toRgba(b,b,b)})}return g})());let l=r.ThemeService=class extends m.Disposable{get colors(){return this._colors}constructor(g){super(),this._optionsService=g,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new f.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:s,cursor:t,cursorAccent:i,selectionForeground:void 0,selectionBackgroundTransparent:a,selectionBackgroundOpaque:d.color.blend(s,a),selectionInactiveBackgroundTransparent:a,selectionInactiveBackgroundOpaque:d.color.blend(s,a),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(g={}){let h=this._colors;if(h.foreground=p(g.foreground,e),h.background=p(g.background,s),h.cursor=p(g.cursor,t),h.cursorAccent=p(g.cursorAccent,i),h.selectionBackgroundTransparent=p(g.selectionBackground,a),h.selectionBackgroundOpaque=d.color.blend(h.background,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundTransparent=p(g.selectionInactiveBackground,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundOpaque=d.color.blend(h.background,h.selectionInactiveBackgroundTransparent),h.selectionForeground=g.selectionForeground?p(g.selectionForeground,d.NULL_COLOR):void 0,h.selectionForeground===d.NULL_COLOR&&(h.selectionForeground=void 0),d.color.isOpaque(h.selectionBackgroundTransparent)&&(h.selectionBackgroundTransparent=d.color.opacity(h.selectionBackgroundTransparent,.3)),d.color.isOpaque(h.selectionInactiveBackgroundTransparent)&&(h.selectionInactiveBackgroundTransparent=d.color.opacity(h.selectionInactiveBackgroundTransparent,.3)),h.ansi=r.DEFAULT_ANSI_COLORS.slice(),h.ansi[0]=p(g.black,r.DEFAULT_ANSI_COLORS[0]),h.ansi[1]=p(g.red,r.DEFAULT_ANSI_COLORS[1]),h.ansi[2]=p(g.green,r.DEFAULT_ANSI_COLORS[2]),h.ansi[3]=p(g.yellow,r.DEFAULT_ANSI_COLORS[3]),h.ansi[4]=p(g.blue,r.DEFAULT_ANSI_COLORS[4]),h.ansi[5]=p(g.magenta,r.DEFAULT_ANSI_COLORS[5]),h.ansi[6]=p(g.cyan,r.DEFAULT_ANSI_COLORS[6]),h.ansi[7]=p(g.white,r.DEFAULT_ANSI_COLORS[7]),h.ansi[8]=p(g.brightBlack,r.DEFAULT_ANSI_COLORS[8]),h.ansi[9]=p(g.brightRed,r.DEFAULT_ANSI_COLORS[9]),h.ansi[10]=p(g.brightGreen,r.DEFAULT_ANSI_COLORS[10]),h.ansi[11]=p(g.brightYellow,r.DEFAULT_ANSI_COLORS[11]),h.ansi[12]=p(g.brightBlue,r.DEFAULT_ANSI_COLORS[12]),h.ansi[13]=p(g.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),h.ansi[14]=p(g.brightCyan,r.DEFAULT_ANSI_COLORS[14]),h.ansi[15]=p(g.brightWhite,r.DEFAULT_ANSI_COLORS[15]),g.extendedAnsi){let v=Math.min(h.ansi.length-16,g.extendedAnsi.length);for(let b=0;b{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;let c=o(8460),u=o(844);class n extends u.Disposable{constructor(f){super(),this._maxLength=f,this.onDeleteEmitter=this.register(new c.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new c.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new c.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(f){if(this._maxLength===f)return;let m=new Array(f);for(let _=0;_this._length)for(let m=this._length;m=f;e--)this._array[this._getCyclicIndex(e+_.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;e<_.length;e++)this._array[this._getCyclicIndex(f+e)]=_[e];if(_.length&&this.onInsertEmitter.fire({index:f,amount:_.length}),this._length+_.length>this._maxLength){let e=this._length+_.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=_.length}trimStart(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)}shiftElements(f,m,_){if(!(m<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+_<0)throw new Error("Cannot shift elements in list beyond index 0");if(_>0){for(let s=m-1;s>=0;s--)this.set(f+s+_,this.get(f+s));let e=f+m+_-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function o(c,u=5){if(typeof c!="object")return c;let n=Array.isArray(c)?[]:{};for(let d in c)n[d]=u<=1?c[d]:c[d]&&o(c[d],u-1);return n}},8055:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;let c=o(6114),u=0,n=0,d=0,f=0;var m,_,e,s,t;function i(l){let p=l.toString(16);return p.length<2?"0"+p:p}function a(l,p){return l>>0}}(m||(r.channels=m={})),function(l){function p(g,h){return f=Math.round(255*h),[u,n,d]=t.toChannels(g.rgba),{css:m.toCss(u,n,d,f),rgba:m.toRgba(u,n,d,f)}}l.blend=function(g,h){if(f=(255&h.rgba)/255,f===1)return{css:h.css,rgba:h.rgba};let v=h.rgba>>24&255,b=h.rgba>>16&255,T=h.rgba>>8&255,y=g.rgba>>24&255,k=g.rgba>>16&255,R=g.rgba>>8&255;return u=y+Math.round((v-y)*f),n=k+Math.round((b-k)*f),d=R+Math.round((T-R)*f),{css:m.toCss(u,n,d),rgba:m.toRgba(u,n,d)}},l.isOpaque=function(g){return(255&g.rgba)==255},l.ensureContrastRatio=function(g,h,v){let b=t.ensureContrastRatio(g.rgba,h.rgba,v);if(b)return t.toColor(b>>24&255,b>>16&255,b>>8&255)},l.opaque=function(g){let h=(255|g.rgba)>>>0;return[u,n,d]=t.toChannels(h),{css:m.toCss(u,n,d),rgba:h}},l.opacity=p,l.multiplyOpacity=function(g,h){return f=255&g.rgba,p(g,f*h/255)},l.toColorRGB=function(g){return[g.rgba>>24&255,g.rgba>>16&255,g.rgba>>8&255]}}(_||(r.color=_={})),function(l){let p,g;if(!c.isNode){let h=document.createElement("canvas");h.width=1,h.height=1;let v=h.getContext("2d",{willReadFrequently:!0});v&&(p=v,p.globalCompositeOperation="copy",g=p.createLinearGradient(0,0,1,1))}l.toColor=function(h){if(h.match(/#[\da-f]{3,8}/i))switch(h.length){case 4:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),t.toColor(u,n,d);case 5:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),f=parseInt(h.slice(4,5).repeat(2),16),t.toColor(u,n,d,f);case 7:return{css:h,rgba:(parseInt(h.slice(1),16)<<8|255)>>>0};case 9:return{css:h,rgba:parseInt(h.slice(1),16)>>>0}}let v=h.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(v)return u=parseInt(v[1]),n=parseInt(v[2]),d=parseInt(v[3]),f=Math.round(255*(v[5]===void 0?1:parseFloat(v[5]))),t.toColor(u,n,d,f);if(!p||!g)throw new Error("css.toColor: Unsupported css format");if(p.fillStyle=g,p.fillStyle=h,typeof p.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(p.fillRect(0,0,1,1),[u,n,d,f]=p.getImageData(0,0,1,1).data,f!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:m.toRgba(u,n,d,f),css:h}}}(e||(r.css=e={})),function(l){function p(g,h,v){let b=g/255,T=h/255,y=v/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.0722*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}l.relativeLuminance=function(g){return p(g>>16&255,g>>8&255,255&g)},l.relativeLuminance2=p}(s||(r.rgb=s={})),function(l){function p(h,v,b){let T=h>>24&255,y=h>>16&255,k=h>>8&255,R=v>>24&255,B=v>>16&255,P=v>>8&255,I=a(s.relativeLuminance2(R,B,P),s.relativeLuminance2(T,y,k));for(;I0||B>0||P>0);)R-=Math.max(0,Math.ceil(.1*R)),B-=Math.max(0,Math.ceil(.1*B)),P-=Math.max(0,Math.ceil(.1*P)),I=a(s.relativeLuminance2(R,B,P),s.relativeLuminance2(T,y,k));return(R<<24|B<<16|P<<8|255)>>>0}function g(h,v,b){let T=h>>24&255,y=h>>16&255,k=h>>8&255,R=v>>24&255,B=v>>16&255,P=v>>8&255,I=a(s.relativeLuminance2(R,B,P),s.relativeLuminance2(T,y,k));for(;I>>0}l.ensureContrastRatio=function(h,v,b){let T=s.relativeLuminance(h>>8),y=s.relativeLuminance(v>>8);if(a(T,y)>8));if(Pa(T,s.relativeLuminance(I>>8))?B:I}return B}let k=g(h,v,b),R=a(T,s.relativeLuminance(k>>8));if(Ra(T,s.relativeLuminance(B>>8))?k:B}return k}},l.reduceLuminance=p,l.increaseLuminance=g,l.toChannels=function(h){return[h>>24&255,h>>16&255,h>>8&255,255&h]},l.toColor=function(h,v,b,T){return{css:m.toCss(h,v,b,T),rgba:m.toRgba(h,v,b,T)}}}(t||(r.rgba=t={})),r.toPaddedHex=i,r.contrastRatio=a},8969:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;let c=o(844),u=o(2585),n=o(4348),d=o(7866),f=o(744),m=o(7302),_=o(6975),e=o(8460),s=o(1753),t=o(1480),i=o(7994),a=o(9282),l=o(5435),p=o(5981),g=o(2660),h=!1;class v extends c.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event(T=>{var y;(y=this._onScrollApi)===null||y===void 0||y.fire(T.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(T){for(let y in T)this.optionsService.options[y]=T[y]}constructor(T){super(),this._windowsWrappingHeuristics=this.register(new c.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new m.OptionsService(T)),this._instantiationService.setService(u.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(f.BufferService)),this._instantiationService.setService(u.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(d.LogService)),this._instantiationService.setService(u.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(_.CoreService)),this._instantiationService.setService(u.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(s.CoreMouseService)),this._instantiationService.setService(u.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(t.UnicodeService)),this._instantiationService.setService(u.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(i.CharsetService),this._instantiationService.setService(u.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(g.OscLinkService),this._instantiationService.setService(u.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new l.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new p.WriteBuffer((y,k)=>this._inputHandler.parse(y,k))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(T,y){this._writeBuffer.write(T,y)}writeSync(T,y){this._logService.logLevel<=u.LogLevelEnum.WARN&&!h&&(this._logService.warn("writeSync is unreliable and will be removed soon."),h=!0),this._writeBuffer.writeSync(T,y)}resize(T,y){isNaN(T)||isNaN(y)||(T=Math.max(T,f.MINIMUM_COLS),y=Math.max(y,f.MINIMUM_ROWS),this._bufferService.resize(T,y))}scroll(T,y=!1){this._bufferService.scroll(T,y)}scrollLines(T,y,k){this._bufferService.scrollLines(T,y,k)}scrollPages(T){this.scrollLines(T*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(T){let y=T-this._bufferService.buffer.ydisp;y!==0&&this.scrollLines(y)}registerEscHandler(T,y){return this._inputHandler.registerEscHandler(T,y)}registerDcsHandler(T,y){return this._inputHandler.registerDcsHandler(T,y)}registerCsiHandler(T,y){return this._inputHandler.registerCsiHandler(T,y)}registerOscHandler(T,y){return this._inputHandler.registerOscHandler(T,y)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let T=!1,y=this.optionsService.rawOptions.windowsPty;y&&y.buildNumber!==void 0&&y.buildNumber!==void 0?T=y.backend==="conpty"&&y.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(T=!0),T?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let T=[];T.push(this.onLineFeed(a.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.registerCsiHandler({final:"H"},()=>((0,a.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,c.toDisposable)(()=>{for(let y of T)y.dispose()})}}}r.CoreTerminal=v},8460:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;cc.fire(u))}},5435:function(L,r,o){var c=this&&this.__decorate||function(I,C,w,E){var x,F=arguments.length,N=F<3?C:E===null?E=Object.getOwnPropertyDescriptor(C,w):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(I,C,w,E);else for(var z=I.length-1;z>=0;z--)(x=I[z])&&(N=(F<3?x(N):F>3?x(C,w,N):x(C,w))||N);return F>3&&N&&Object.defineProperty(C,w,N),N},u=this&&this.__param||function(I,C){return function(w,E){C(w,E,I)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;let n=o(2584),d=o(7116),f=o(2015),m=o(844),_=o(482),e=o(8437),s=o(8460),t=o(643),i=o(511),a=o(3734),l=o(2585),p=o(6242),g=o(6351),h=o(5941),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2},b=131072;function T(I,C){if(I>24)return C.setWinLines||!1;switch(I){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}var y;(function(I){I[I.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",I[I.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(y||(r.WindowsOptionsReportType=y={}));let k=0;class R extends m.Disposable{getAttrData(){return this._curAttrData}constructor(C,w,E,x,F,N,z,j,Y=new f.EscapeSequenceParser){super(),this._bufferService=C,this._charsetService=w,this._coreService=E,this._logService=x,this._optionsService=F,this._oscLinkService=N,this._coreMouseService=z,this._unicodeService=j,this._parser=Y,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new _.StringToUtf32,this._utf8Decoder=new _.Utf8ToUtf32,this._workCell=new i.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new s.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new s.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new s.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new s.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new s.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new s.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new s.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new s.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new s.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new s.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new s.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new s.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new s.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new B(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._parser.setCsiHandlerFallback((S,D)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(S),params:D.toArray()})}),this._parser.setEscHandlerFallback(S=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(S)})}),this._parser.setExecuteHandlerFallback(S=>{this._logService.debug("Unknown EXECUTE code: ",{code:S})}),this._parser.setOscHandlerFallback((S,D,M)=>{this._logService.debug("Unknown OSC code: ",{identifier:S,action:D,data:M})}),this._parser.setDcsHandlerFallback((S,D,M)=>{D==="HOOK"&&(M=M.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(S),action:D,payload:M})}),this._parser.setPrintHandler((S,D,M)=>this.print(S,D,M)),this._parser.registerCsiHandler({final:"@"},S=>this.insertChars(S)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},S=>this.scrollLeft(S)),this._parser.registerCsiHandler({final:"A"},S=>this.cursorUp(S)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},S=>this.scrollRight(S)),this._parser.registerCsiHandler({final:"B"},S=>this.cursorDown(S)),this._parser.registerCsiHandler({final:"C"},S=>this.cursorForward(S)),this._parser.registerCsiHandler({final:"D"},S=>this.cursorBackward(S)),this._parser.registerCsiHandler({final:"E"},S=>this.cursorNextLine(S)),this._parser.registerCsiHandler({final:"F"},S=>this.cursorPrecedingLine(S)),this._parser.registerCsiHandler({final:"G"},S=>this.cursorCharAbsolute(S)),this._parser.registerCsiHandler({final:"H"},S=>this.cursorPosition(S)),this._parser.registerCsiHandler({final:"I"},S=>this.cursorForwardTab(S)),this._parser.registerCsiHandler({final:"J"},S=>this.eraseInDisplay(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},S=>this.eraseInDisplay(S,!0)),this._parser.registerCsiHandler({final:"K"},S=>this.eraseInLine(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},S=>this.eraseInLine(S,!0)),this._parser.registerCsiHandler({final:"L"},S=>this.insertLines(S)),this._parser.registerCsiHandler({final:"M"},S=>this.deleteLines(S)),this._parser.registerCsiHandler({final:"P"},S=>this.deleteChars(S)),this._parser.registerCsiHandler({final:"S"},S=>this.scrollUp(S)),this._parser.registerCsiHandler({final:"T"},S=>this.scrollDown(S)),this._parser.registerCsiHandler({final:"X"},S=>this.eraseChars(S)),this._parser.registerCsiHandler({final:"Z"},S=>this.cursorBackwardTab(S)),this._parser.registerCsiHandler({final:"`"},S=>this.charPosAbsolute(S)),this._parser.registerCsiHandler({final:"a"},S=>this.hPositionRelative(S)),this._parser.registerCsiHandler({final:"b"},S=>this.repeatPrecedingCharacter(S)),this._parser.registerCsiHandler({final:"c"},S=>this.sendDeviceAttributesPrimary(S)),this._parser.registerCsiHandler({prefix:">",final:"c"},S=>this.sendDeviceAttributesSecondary(S)),this._parser.registerCsiHandler({final:"d"},S=>this.linePosAbsolute(S)),this._parser.registerCsiHandler({final:"e"},S=>this.vPositionRelative(S)),this._parser.registerCsiHandler({final:"f"},S=>this.hVPosition(S)),this._parser.registerCsiHandler({final:"g"},S=>this.tabClear(S)),this._parser.registerCsiHandler({final:"h"},S=>this.setMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"h"},S=>this.setModePrivate(S)),this._parser.registerCsiHandler({final:"l"},S=>this.resetMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"l"},S=>this.resetModePrivate(S)),this._parser.registerCsiHandler({final:"m"},S=>this.charAttributes(S)),this._parser.registerCsiHandler({final:"n"},S=>this.deviceStatus(S)),this._parser.registerCsiHandler({prefix:"?",final:"n"},S=>this.deviceStatusPrivate(S)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},S=>this.softReset(S)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},S=>this.setCursorStyle(S)),this._parser.registerCsiHandler({final:"r"},S=>this.setScrollRegion(S)),this._parser.registerCsiHandler({final:"s"},S=>this.saveCursor(S)),this._parser.registerCsiHandler({final:"t"},S=>this.windowOptions(S)),this._parser.registerCsiHandler({final:"u"},S=>this.restoreCursor(S)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},S=>this.insertColumns(S)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},S=>this.deleteColumns(S)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},S=>this.selectProtected(S)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},S=>this.requestMode(S,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},S=>this.requestMode(S,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new p.OscHandler(S=>(this.setTitle(S),this.setIconName(S),!0))),this._parser.registerOscHandler(1,new p.OscHandler(S=>this.setIconName(S))),this._parser.registerOscHandler(2,new p.OscHandler(S=>this.setTitle(S))),this._parser.registerOscHandler(4,new p.OscHandler(S=>this.setOrReportIndexedColor(S))),this._parser.registerOscHandler(8,new p.OscHandler(S=>this.setHyperlink(S))),this._parser.registerOscHandler(10,new p.OscHandler(S=>this.setOrReportFgColor(S))),this._parser.registerOscHandler(11,new p.OscHandler(S=>this.setOrReportBgColor(S))),this._parser.registerOscHandler(12,new p.OscHandler(S=>this.setOrReportCursorColor(S))),this._parser.registerOscHandler(104,new p.OscHandler(S=>this.restoreIndexedColor(S))),this._parser.registerOscHandler(110,new p.OscHandler(S=>this.restoreFgColor(S))),this._parser.registerOscHandler(111,new p.OscHandler(S=>this.restoreBgColor(S))),this._parser.registerOscHandler(112,new p.OscHandler(S=>this.restoreCursorColor(S))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let S in d.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:S},()=>this.selectCharset("("+S)),this._parser.registerEscHandler({intermediates:")",final:S},()=>this.selectCharset(")"+S)),this._parser.registerEscHandler({intermediates:"*",final:S},()=>this.selectCharset("*"+S)),this._parser.registerEscHandler({intermediates:"+",final:S},()=>this.selectCharset("+"+S)),this._parser.registerEscHandler({intermediates:"-",final:S},()=>this.selectCharset("-"+S)),this._parser.registerEscHandler({intermediates:".",final:S},()=>this.selectCharset("."+S)),this._parser.registerEscHandler({intermediates:"/",final:S},()=>this.selectCharset("/"+S));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(S=>(this._logService.error("Parsing error: ",S),S)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new g.DcsHandler((S,D)=>this.requestStatusString(S,D)))}_preserveStack(C,w,E,x){this._parseStack.paused=!0,this._parseStack.cursorStartX=C,this._parseStack.cursorStartY=w,this._parseStack.decodedLength=E,this._parseStack.position=x}_logSlowResolvingAsync(C){this._logService.logLevel<=l.LogLevelEnum.WARN&&Promise.race([C,new Promise((w,E)=>setTimeout(()=>E("#SLOW_TIMEOUT"),5e3))]).catch(w=>{if(w!=="#SLOW_TIMEOUT")throw w;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(C,w){let E,x=this._activeBuffer.x,F=this._activeBuffer.y,N=0,z=this._parseStack.paused;if(z){if(E=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,w))return this._logSlowResolvingAsync(E),E;x=this._parseStack.cursorStartX,F=this._parseStack.cursorStartY,this._parseStack.paused=!1,C.length>b&&(N=this._parseStack.position+b)}if(this._logService.logLevel<=l.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof C=="string"?` "${C}"`:` "${Array.prototype.map.call(C,j=>String.fromCharCode(j)).join("")}"`),typeof C=="string"?C.split("").map(j=>j.charCodeAt(0)):C),this._parseBuffer.lengthb)for(let j=N;j0&&M.getWidth(this._activeBuffer.x-1)===2&&M.setCellFromCodePoint(this._activeBuffer.x-1,0,1,D.fg,D.bg,D.extended);for(let A=w;A=j){if(Y){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),M=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=j-1,F===2)continue}if(S&&(M.insertCells(this._activeBuffer.x,F,this._activeBuffer.getNullCell(D),D),M.getWidth(j-1)===2&&M.setCellFromCodePoint(j-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,D.fg,D.bg,D.extended)),M.setCellFromCodePoint(this._activeBuffer.x++,x,F,D.fg,D.bg,D.extended),F>0)for(;--F;)M.setCellFromCodePoint(this._activeBuffer.x++,0,0,D.fg,D.bg,D.extended)}else M.getWidth(this._activeBuffer.x-1)?M.addCodepointToCell(this._activeBuffer.x-1,x):M.addCodepointToCell(this._activeBuffer.x-2,x)}E-w>0&&(M.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&M.getWidth(this._activeBuffer.x)===0&&!M.hasContent(this._activeBuffer.x)&&M.setCellFromCodePoint(this._activeBuffer.x,0,1,D.fg,D.bg,D.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(C,w){return C.final!=="t"||C.prefix||C.intermediates?this._parser.registerCsiHandler(C,w):this._parser.registerCsiHandler(C,E=>!T(E.params[0],this._optionsService.rawOptions.windowOptions)||w(E))}registerDcsHandler(C,w){return this._parser.registerDcsHandler(C,new g.DcsHandler(w))}registerEscHandler(C,w){return this._parser.registerEscHandler(C,w)}registerOscHandler(C,w){return this._parser.registerOscHandler(C,new p.OscHandler(w))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var C;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((C=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||C===void 0)&&C.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let w=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);w.hasWidth(this._activeBuffer.x)&&!w.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let C=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-C),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(C=this._bufferService.cols-1){this._activeBuffer.x=Math.min(C,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(C,w){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=C,this._activeBuffer.y=this._activeBuffer.scrollTop+w):(this._activeBuffer.x=C,this._activeBuffer.y=w),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(C,w){this._restrictCursor(),this._setCursor(this._activeBuffer.x+C,this._activeBuffer.y+w)}cursorUp(C){let w=this._activeBuffer.y-this._activeBuffer.scrollTop;return w>=0?this._moveCursor(0,-Math.min(w,C.params[0]||1)):this._moveCursor(0,-(C.params[0]||1)),!0}cursorDown(C){let w=this._activeBuffer.scrollBottom-this._activeBuffer.y;return w>=0?this._moveCursor(0,Math.min(w,C.params[0]||1)):this._moveCursor(0,C.params[0]||1),!0}cursorForward(C){return this._moveCursor(C.params[0]||1,0),!0}cursorBackward(C){return this._moveCursor(-(C.params[0]||1),0),!0}cursorNextLine(C){return this.cursorDown(C),this._activeBuffer.x=0,!0}cursorPrecedingLine(C){return this.cursorUp(C),this._activeBuffer.x=0,!0}cursorCharAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(C){return this._setCursor(C.length>=2?(C.params[1]||1)-1:0,(C.params[0]||1)-1),!0}charPosAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(C){return this._moveCursor(C.params[0]||1,0),!0}linePosAbsolute(C){return this._setCursor(this._activeBuffer.x,(C.params[0]||1)-1),!0}vPositionRelative(C){return this._moveCursor(0,C.params[0]||1),!0}hVPosition(C){return this.cursorPosition(C),!0}tabClear(C){let w=C.params[0];return w===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:w===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(C){let w=C.params[0];return w===1&&(this._curAttrData.bg|=536870912),w!==2&&w!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(C,w,E,x=!1,F=!1){let N=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);N.replaceCells(w,E,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),F),x&&(N.isWrapped=!1)}_resetBufferLine(C,w=!1){let E=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);E&&(E.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),w),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+C),E.isWrapped=!1)}eraseInDisplay(C,w=!1){let E;switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:for(E=this._activeBuffer.y,this._dirtyRowTracker.markDirty(E),this._eraseInBufferLine(E++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);E=this._bufferService.cols&&(this._activeBuffer.lines.get(E+1).isWrapped=!1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 2:for(E=this._bufferService.rows,this._dirtyRowTracker.markDirty(E-1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 3:let x=this._activeBuffer.lines.length-this._bufferService.rows;x>0&&(this._activeBuffer.lines.trimStart(x),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-x,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-x,0),this._onScroll.fire(0))}return!0}eraseInLine(C,w=!1){switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,w);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,w)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(C){this._restrictCursor();let w=C.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(C){return C.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(C.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(C){return(this._optionsService.rawOptions.termName+"").indexOf(C)===0}setMode(C){for(let w=0;wV?1:2,A=C.params[0];return K=A,U=w?A===2?4:A===4?M(N.modes.insertMode):A===12?3:A===20?M(D.convertEol):0:A===1?M(E.applicationCursorKeys):A===3?D.windowOptions.setWinLines?j===80?2:j===132?1:0:0:A===6?M(E.origin):A===7?M(E.wraparound):A===8?3:A===9?M(x==="X10"):A===12?M(D.cursorBlink):A===25?M(!N.isCursorHidden):A===45?M(E.reverseWraparound):A===66?M(E.applicationKeypad):A===67?4:A===1e3?M(x==="VT200"):A===1002?M(x==="DRAG"):A===1003?M(x==="ANY"):A===1004?M(E.sendFocus):A===1005?4:A===1006?M(F==="SGR"):A===1015?4:A===1016?M(F==="SGR_PIXELS"):A===1048?1:A===47||A===1047||A===1049?M(Y===S):A===2004?M(E.bracketedPasteMode):0,N.triggerDataEvent(`${n.C0.ESC}[${w?"":"?"}${K};${U}$y`),!0;var K,U}_updateAttrColor(C,w,E,x,F){return w===2?(C|=50331648,C&=-16777216,C|=a.AttributeData.fromColorRGB([E,x,F])):w===5&&(C&=-50331904,C|=33554432|255&E),C}_extractColor(C,w,E){let x=[0,0,-1,0,0,0],F=0,N=0;do{if(x[N+F]=C.params[w+N],C.hasSubParams(w+N)){let z=C.getSubParams(w+N),j=0;do x[1]===5&&(F=1),x[N+j+1+F]=z[j];while(++j=2||x[1]===2&&N+F>=5)break;x[1]&&(F=1)}while(++N+w5)&&(C=1),w.extended.underlineStyle=C,w.fg|=268435456,C===0&&(w.fg&=-268435457),w.updateExtended()}_processSGR0(C){C.fg=e.DEFAULT_ATTR_DATA.fg,C.bg=e.DEFAULT_ATTR_DATA.bg,C.extended=C.extended.clone(),C.extended.underlineStyle=0,C.extended.underlineColor&=-67108864,C.updateExtended()}charAttributes(C){if(C.length===1&&C.params[0]===0)return this._processSGR0(this._curAttrData),!0;let w=C.length,E,x=this._curAttrData;for(let F=0;F=30&&E<=37?(x.fg&=-50331904,x.fg|=16777216|E-30):E>=40&&E<=47?(x.bg&=-50331904,x.bg|=16777216|E-40):E>=90&&E<=97?(x.fg&=-50331904,x.fg|=16777224|E-90):E>=100&&E<=107?(x.bg&=-50331904,x.bg|=16777224|E-100):E===0?this._processSGR0(x):E===1?x.fg|=134217728:E===3?x.bg|=67108864:E===4?(x.fg|=268435456,this._processUnderline(C.hasSubParams(F)?C.getSubParams(F)[0]:1,x)):E===5?x.fg|=536870912:E===7?x.fg|=67108864:E===8?x.fg|=1073741824:E===9?x.fg|=2147483648:E===2?x.bg|=134217728:E===21?this._processUnderline(2,x):E===22?(x.fg&=-134217729,x.bg&=-134217729):E===23?x.bg&=-67108865:E===24?(x.fg&=-268435457,this._processUnderline(0,x)):E===25?x.fg&=-536870913:E===27?x.fg&=-67108865:E===28?x.fg&=-1073741825:E===29?x.fg&=2147483647:E===39?(x.fg&=-67108864,x.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):E===49?(x.bg&=-67108864,x.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):E===38||E===48||E===58?F+=this._extractColor(C,F,x):E===53?x.bg|=1073741824:E===55?x.bg&=-1073741825:E===59?(x.extended=x.extended.clone(),x.extended.underlineColor=-1,x.updateExtended()):E===100?(x.fg&=-67108864,x.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,x.bg&=-67108864,x.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",E);return!0}deviceStatus(C){switch(C.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:let w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${w};${E}R`)}return!0}deviceStatusPrivate(C){if(C.params[0]===6){let w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${w};${E}R`)}return!0}softReset(C){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(C){let w=C.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}let E=w%2==1;return this._optionsService.options.cursorBlink=E,!0}setScrollRegion(C){let w=C.params[0]||1,E;return(C.length<2||(E=C.params[1])>this._bufferService.rows||E===0)&&(E=this._bufferService.rows),E>w&&(this._activeBuffer.scrollTop=w-1,this._activeBuffer.scrollBottom=E-1,this._setCursor(0,0)),!0}windowOptions(C){if(!T(C.params[0],this._optionsService.rawOptions.windowOptions))return!0;let w=C.length>1?C.params[1]:0;switch(C.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(C){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(C){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(C){return this._windowTitle=C,this._onTitleChange.fire(C),!0}setIconName(C){return this._iconName=C,!0}setOrReportIndexedColor(C){let w=[],E=C.split(";");for(;E.length>1;){let x=E.shift(),F=E.shift();if(/^\d+$/.exec(x)){let N=parseInt(x);if(P(N))if(F==="?")w.push({type:0,index:N});else{let z=(0,h.parseColor)(F);z&&w.push({type:1,index:N,color:z})}}}return w.length&&this._onColor.fire(w),!0}setHyperlink(C){let w=C.split(";");return!(w.length<2)&&(w[1]?this._createHyperlink(w[0],w[1]):!w[0]&&this._finishHyperlink())}_createHyperlink(C,w){this._getCurrentLinkId()&&this._finishHyperlink();let E=C.split(":"),x,F=E.findIndex(N=>N.startsWith("id="));return F!==-1&&(x=E[F].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:x,uri:w}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(C,w){let E=C.split(";");for(let x=0;x=this._specialColors.length);++x,++w)if(E[x]==="?")this._onColor.fire([{type:0,index:this._specialColors[w]}]);else{let F=(0,h.parseColor)(E[x]);F&&this._onColor.fire([{type:1,index:this._specialColors[w],color:F}])}return!0}setOrReportFgColor(C){return this._setOrReportSpecialColor(C,0)}setOrReportBgColor(C){return this._setOrReportSpecialColor(C,1)}setOrReportCursorColor(C){return this._setOrReportSpecialColor(C,2)}restoreIndexedColor(C){if(!C)return this._onColor.fire([{type:2}]),!0;let w=[],E=C.split(";");for(let x=0;x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let C=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,C,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(C){return this._charsetService.setgLevel(C),!0}screenAlignmentPattern(){let C=new i.CellData;C.content=4194373,C.fg=this._curAttrData.fg,C.bg=this._curAttrData.bg,this._setCursor(0,0);for(let w=0;w(this._coreService.triggerDataEvent(`${n.C0.ESC}${F}${n.C0.ESC}\\`),!0))(C==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:C==='"p'?'P1$r61;1"p':C==="r"?`P1$r${E.scrollTop+1};${E.scrollBottom+1}r`:C==="m"?"P1$r0m":C===" q"?`P1$r${{block:2,underline:4,bar:6}[x.cursorStyle]-(x.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(C,w){this._dirtyRowTracker.markRangeDirty(C,w)}}r.InputHandler=R;let B=class{constructor(I){this._bufferService=I,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(I){Ithis.end&&(this.end=I)}markRangeDirty(I,C){I>C&&(k=I,I=C,C=k),Ithis.end&&(this.end=C)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function P(I){return 0<=I&&I<256}B=c([u(0,l.IBufferService)],B)},844:(L,r)=>{function o(c){for(let u of c)u.dispose();c.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){let u=this._disposables.indexOf(c);u!==-1&&this._disposables.splice(u,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var u;this._isDisposed||c===this._value||((u=this._value)===null||u===void 0||u.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}},r.toDisposable=function(c){return{dispose:c}},r.disposeArray=o,r.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}},1505:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(u,n,d){this._data[u]||(this._data[u]={}),this._data[u][n]=d}get(u,n){return this._data[u]?this._data[u][n]:void 0}clear(){this._data={}}}r.TwoKeyMap=o,r.FourKeyMap=class{constructor(){this._data=new o}set(c,u,n,d,f){this._data.get(c,u)||this._data.set(c,u,new o),this._data.get(c,u).set(n,d,f)}get(c,u,n,d){var f;return(f=this._data.get(c,u))===null||f===void 0?void 0:f.get(n,d)}clear(){this._data.clear()}}},6114:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";let o=r.isNode?"node":navigator.userAgent,c=r.isNode?"node":navigator.platform;r.isFirefox=o.includes("Firefox"),r.isLegacyEdge=o.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(o),r.getSafariVersion=function(){if(!r.isSafari)return 0;let u=o.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(c),r.isIpad=c==="iPad",r.isIphone=c==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(c),r.isLinux=c.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(o)},6106:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let o=0;r.SortedList=class{constructor(c){this._getKey=c,this._array=[]}clear(){this._array.length=0}insert(c){this._array.length!==0?(o=this._search(this._getKey(c)),this._array.splice(o,0,c)):this._array.push(c)}delete(c){if(this._array.length===0)return!1;let u=this._getKey(c);if(u===void 0||(o=this._search(u),o===-1)||this._getKey(this._array[o])!==u)return!1;do if(this._array[o]===c)return this._array.splice(o,1),!0;while(++o=this._array.length)&&this._getKey(this._array[o])===c))do yield this._array[o];while(++o=this._array.length)&&this._getKey(this._array[o])===c))do u(this._array[o]);while(++o=u;){let d=u+n>>1,f=this._getKey(this._array[d]);if(f>c)n=d-1;else{if(!(f0&&this._getKey(this._array[d-1])===c;)d--;return d}u=d+1}}return u}}},7226:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;let c=o(6114);class u{constructor(){this._tasks=[],this._i=0}enqueue(f){this._tasks.push(f),this._start()}flush(){for(;this._is)return e-m<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-m))}ms`),void this._start();e=s}this.clear()}}class n extends u{_requestCallback(f){return setTimeout(()=>f(this._createDeadline(16)))}_cancelCallback(f){clearTimeout(f)}_createDeadline(f){let m=Date.now()+f;return{timeRemaining:()=>Math.max(0,m-Date.now())}}}r.PriorityTaskQueue=n,r.IdleTaskQueue=!c.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(d){return requestIdleCallback(d)}_cancelCallback(d){cancelIdleCallback(d)}}:n,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(d){this._queue.clear(),this._queue.enqueue(d)}flush(){this._queue.flush()}}},9282:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;let c=o(643);r.updateWindowsModeWrappedState=function(u){let n=u.buffer.lines.get(u.buffer.ybase+u.buffer.y-1),d=n?.get(u.cols-1),f=u.buffer.lines.get(u.buffer.ybase+u.buffer.y);f&&d&&(f.isWrapped=d[c.CHAR_DATA_CODE_INDEX]!==c.NULL_CELL_CODE&&d[c.CHAR_DATA_CODE_INDEX]!==c.WHITESPACE_CELL_CODE)}},3734:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new c}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){let n=new o;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=o;class c{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}constructor(n=0,d=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=d}clone(){return new c(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=c},9092:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;let c=o(6349),u=o(7226),n=o(3734),d=o(8437),f=o(4634),m=o(511),_=o(643),e=o(4863),s=o(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(t,i,a){this._hasScrollback=t,this._optionsService=i,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=d.DEFAULT_ATTR_DATA.clone(),this.savedCharset=s.DEFAULT_CHARSET,this.markers=[],this._nullCell=m.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),this._whitespaceCell=m.CellData.fromCharData([0,_.WHITESPACE_CELL_CHAR,_.WHITESPACE_CELL_WIDTH,_.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new u.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(t,i){return new d.BufferLine(this._bufferService.cols,this.getNullCell(t),i)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let t=this.ybase+this.y-this.ydisp;return t>=0&&tr.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:i}fillViewportRows(t){if(this.lines.length===0){t===void 0&&(t=d.DEFAULT_ATTR_DATA);let i=this._rows;for(;i--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(t,i){let a=this.getNullCell(d.DEFAULT_ATTR_DATA),l=0,p=this._getCorrectBufferLength(i);if(p>this.lines.maxLength&&(this.lines.maxLength=p),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+g+1?(this.ybase--,g++,this.ydisp>0&&this.ydisp--):this.lines.push(new d.BufferLine(t,a)));else for(let h=this._rows;h>i;h--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(p0&&(this.lines.trimStart(h),this.ybase=Math.max(this.ybase-h,0),this.ydisp=Math.max(this.ydisp-h,0),this.savedY=Math.max(this.savedY-h,0)),this.lines.maxLength=p}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,i-1),g&&(this.y+=g),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(t,i),this._cols>t))for(let g=0;g.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let t=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,t=!1);let i=0;for(;this._memoryCleanupPosition100)return!0;return t}get _isReflowEnabled(){let t=this._optionsService.rawOptions.windowsPty;return t&&t.buildNumber?this._hasScrollback&&t.backend==="conpty"&&t.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(t,i){this._cols!==t&&(t>this._cols?this._reflowLarger(t,i):this._reflowSmaller(t,i))}_reflowLarger(t,i){let a=(0,f.reflowLargerGetLinesToRemove)(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(d.DEFAULT_ATTR_DATA));if(a.length>0){let l=(0,f.reflowLargerCreateNewLayout)(this.lines,a);(0,f.reflowLargerApplyNewLayout)(this.lines,l.layout),this._reflowLargerAdjustViewport(t,i,l.countRemoved)}}_reflowLargerAdjustViewport(t,i,a){let l=this.getNullCell(d.DEFAULT_ATTR_DATA),p=a;for(;p-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;g--){let h=this.lines.get(g);if(!h||!h.isWrapped&&h.getTrimmedLength()<=t)continue;let v=[h];for(;h.isWrapped&&g>0;)h=this.lines.get(--g),v.unshift(h);let b=this.ybase+this.y;if(b>=g&&b0&&(l.push({start:g+v.length+p,newLines:B}),p+=B.length),v.push(...B);let P=y.length-1,I=y[P];I===0&&(P--,I=y[P]);let C=v.length-k-1,w=T;for(;C>=0;){let x=Math.min(w,I);if(v[P]===void 0)break;if(v[P].copyCellsFrom(v[C],w-x,I-x,x,!0),I-=x,I===0&&(P--,I=y[P]),w-=x,w===0){C--;let F=Math.max(C,0);w=(0,f.getWrappedLineTrimmedLength)(v,F,this._cols)}}for(let x=0;x0;)this.ybase===0?this.y0){let g=[],h=[];for(let P=0;P=0;P--)if(y&&y.start>b+k){for(let I=y.newLines.length-1;I>=0;I--)this.lines.set(P--,y.newLines[I]);P++,g.push({index:b+1,amount:y.newLines.length}),k+=y.newLines.length,y=l[++T]}else this.lines.set(P,h[b--]);let R=0;for(let P=g.length-1;P>=0;P--)g[P].index+=R,this.lines.onInsertEmitter.fire(g[P]),R+=g[P].amount;let B=Math.max(0,v+p-this.lines.maxLength);B>0&&this.lines.onTrimEmitter.fire(B)}}translateBufferLineToString(t,i,a=0,l){let p=this.lines.get(t);return p?p.translateToString(i,a,l):""}getWrappedRangeForLine(t){let i=t,a=t;for(;i>0&&this.lines.get(i).isWrapped;)i--;for(;a+10;);return t>=this._cols?this._cols-1:t<0?0:t}nextStop(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t}clearMarkers(t){this._isClearing=!0;for(let i=0;i{i.line-=a,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(a=>{i.line>=a.index&&(i.line+=a.amount)})),i.register(this.lines.onDelete(a=>{i.line>=a.index&&i.linea.index&&(i.line-=a.amount)})),i.register(i.onDispose(()=>this._removeMarker(i))),i}_removeMarker(t){this._isClearing||this.markers.splice(this.markers.indexOf(t),1)}}},8437:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;let c=o(3734),u=o(511),n=o(643),d=o(482);r.DEFAULT_ATTR_DATA=Object.freeze(new c.AttributeData);let f=0;class m{constructor(e,s,t=!1){this.isWrapped=t,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);let i=s||u.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let a=0;a>22,2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):t]}set(e,s){this._data[3*e+1]=s[n.CHAR_DATA_ATTR_INDEX],s[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=s[1],this._data[3*e+0]=2097152|e|s[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=s[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){let s=this._data[3*e+0];return 2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&s}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){let s=this._data[3*e+0];return 2097152&s?this._combined[e]:2097151&s?(0,d.stringFromCodePoint)(2097151&s):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,s){return f=3*e,s.content=this._data[f+0],s.fg=this._data[f+1],s.bg=this._data[f+2],2097152&s.content&&(s.combinedData=this._combined[e]),268435456&s.bg&&(s.extended=this._extendedAttrs[e]),s}setCell(e,s){2097152&s.content&&(this._combined[e]=s.combinedData),268435456&s.bg&&(this._extendedAttrs[e]=s.extended),this._data[3*e+0]=s.content,this._data[3*e+1]=s.fg,this._data[3*e+2]=s.bg}setCellFromCodePoint(e,s,t,i,a,l){268435456&a&&(this._extendedAttrs[e]=l),this._data[3*e+0]=s|t<<22,this._data[3*e+1]=i,this._data[3*e+2]=a}addCodepointToCell(e,s){let t=this._data[3*e+0];2097152&t?this._combined[e]+=(0,d.stringFromCodePoint)(s):(2097151&t?(this._combined[e]=(0,d.stringFromCodePoint)(2097151&t)+(0,d.stringFromCodePoint)(s),t&=-2097152,t|=2097152):t=s|4194304,this._data[3*e+0]=t)}insertCells(e,s,t,i){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,i?.fg||0,i?.bg||0,i?.extended||new c.ExtendedAttrs),s=0;--l)this.setCell(e+s+l,this.loadCell(e+l,a));for(let l=0;lthis.length){if(this._data.buffer.byteLength>=4*t)this._data=new Uint32Array(this._data.buffer,0,t);else{let i=new Uint32Array(t);i.set(this._data),this._data=i}for(let i=this.length;i=e&&delete this._combined[p]}let a=Object.keys(this._extendedAttrs);for(let l=0;l=e&&delete this._extendedAttrs[p]}}return this.length=e,4*t*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,s,t,i,a){let l=e._data;if(a)for(let g=i-1;g>=0;g--){for(let h=0;h<3;h++)this._data[3*(t+g)+h]=l[3*(s+g)+h];268435456&l[3*(s+g)+2]&&(this._extendedAttrs[t+g]=e._extendedAttrs[s+g])}else for(let g=0;g=s&&(this._combined[h-s+t]=e._combined[h])}}translateToString(e=!1,s=0,t=this.length){e&&(t=Math.min(t,this.getTrimmedLength()));let i="";for(;s>22||1}return i}}r.BufferLine=m},4841:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(o,c){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return c*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(L,r)=>{function o(c,u,n){if(u===c.length-1)return c[u].getTrimmedLength();let d=!c[u].hasContent(n-1)&&c[u].getWidth(n-1)===1,f=c[u+1].getWidth(0)===2;return d&&f?n-1:n}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(c,u,n,d,f){let m=[];for(let _=0;_=_&&d0&&(h>i||t[h].getTrimmedLength()===0);h--)g++;g>0&&(m.push(_+t.length-g),m.push(g)),_+=t.length-1}return m},r.reflowLargerCreateNewLayout=function(c,u){let n=[],d=0,f=u[d],m=0;for(let _=0;_o(c,t,u)).reduce((s,t)=>s+t),m=0,_=0,e=0;for(;es&&(m-=s,_++);let t=c[_].getWidth(m-1)===2;t&&m--;let i=t?n-1:n;d.push(i),e+=i}return d},r.getWrappedLineTrimmedLength=o},5295:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;let c=o(8460),u=o(844),n=o(9092);class d extends u.Disposable{constructor(m,_){super(),this._optionsService=m,this._bufferService=_,this._onBufferActivate=this.register(new c.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(m){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(m),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(m,_){this._normal.resize(m,_),this._alt.resize(m,_),this.setupTabStops(m)}setupTabStops(m){this._normal.setupTabStops(m),this._alt.setupTabStops(m)}}r.BufferSet=d},511:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;let c=o(482),u=o(643),n=o(3734);class d extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(m){let _=new d;return _.setFromCharData(m),_}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,c.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(m){this.fg=m[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let _=!1;if(m[u.CHAR_DATA_CHAR_INDEX].length>2)_=!0;else if(m[u.CHAR_DATA_CHAR_INDEX].length===2){let e=m[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){let s=m[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(e-55296)+s-56320+65536|m[u.CHAR_DATA_WIDTH_INDEX]<<22:_=!0}else _=!0}else this.content=m[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|m[u.CHAR_DATA_WIDTH_INDEX]<<22;_&&(this.combinedData=m[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|m[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=d},643:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;let c=o(8460),u=o(844);class n{get id(){return this._id}constructor(f){this.line=f,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new c.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,u.disposeArray)(this._disposables),this._disposables.length=0)}register(f){return this._disposables.push(f),f}}r.Marker=n,n._nextId=1},7116:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},r.CHARSETS.A={"#":"\xA3"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},r.CHARSETS.C=r.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},r.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},r.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},r.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},r.CHARSETS.E=r.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},r.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},r.CHARSETS.H=r.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(L,r)=>{var o,c,u;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=` +`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL="\x7F"}(o||(r.C0=o={})),function(n){n.PAD="\x80",n.HOP="\x81",n.BPH="\x82",n.NBH="\x83",n.IND="\x84",n.NEL="\x85",n.SSA="\x86",n.ESA="\x87",n.HTS="\x88",n.HTJ="\x89",n.VTS="\x8A",n.PLD="\x8B",n.PLU="\x8C",n.RI="\x8D",n.SS2="\x8E",n.SS3="\x8F",n.DCS="\x90",n.PU1="\x91",n.PU2="\x92",n.STS="\x93",n.CCH="\x94",n.MW="\x95",n.SPA="\x96",n.EPA="\x97",n.SOS="\x98",n.SGCI="\x99",n.SCI="\x9A",n.CSI="\x9B",n.ST="\x9C",n.OSC="\x9D",n.PM="\x9E",n.APC="\x9F"}(c||(r.C1=c={})),function(n){n.ST=`${o.ESC}\\`}(u||(r.C1_ESCAPED=u={}))},7399:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;let c=o(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,d,f,m){let _={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?_.key=d?c.C0.ESC+"OA":c.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?_.key=d?c.C0.ESC+"OD":c.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?_.key=d?c.C0.ESC+"OC":c.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(_.key=d?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(n.altKey){_.key=c.C0.ESC+c.C0.DEL;break}_.key=c.C0.DEL;break;case 9:if(n.shiftKey){_.key=c.C0.ESC+"[Z";break}_.key=c.C0.HT,_.cancel=!0;break;case 13:_.key=n.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,_.cancel=!0;break;case 27:_.key=c.C0.ESC,n.altKey&&(_.key=c.C0.ESC+c.C0.ESC),_.cancel=!0;break;case 37:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"D",_.key===c.C0.ESC+"[1;3D"&&(_.key=c.C0.ESC+(f?"b":"[1;5D"))):_.key=d?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"C",_.key===c.C0.ESC+"[1;3C"&&(_.key=c.C0.ESC+(f?"f":"[1;5C"))):_.key=d?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"A",f||_.key!==c.C0.ESC+"[1;3A"||(_.key=c.C0.ESC+"[1;5A")):_.key=d?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"B",f||_.key!==c.C0.ESC+"[1;3B"||(_.key=c.C0.ESC+"[1;5B")):_.key=d?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(_.key=c.C0.ESC+"[2~");break;case 46:_.key=e?c.C0.ESC+"[3;"+(e+1)+"~":c.C0.ESC+"[3~";break;case 36:_.key=e?c.C0.ESC+"[1;"+(e+1)+"H":d?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:_.key=e?c.C0.ESC+"[1;"+(e+1)+"F":d?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:n.shiftKey?_.type=2:n.ctrlKey?_.key=c.C0.ESC+"[5;"+(e+1)+"~":_.key=c.C0.ESC+"[5~";break;case 34:n.shiftKey?_.type=3:n.ctrlKey?_.key=c.C0.ESC+"[6;"+(e+1)+"~":_.key=c.C0.ESC+"[6~";break;case 112:_.key=e?c.C0.ESC+"[1;"+(e+1)+"P":c.C0.ESC+"OP";break;case 113:_.key=e?c.C0.ESC+"[1;"+(e+1)+"Q":c.C0.ESC+"OQ";break;case 114:_.key=e?c.C0.ESC+"[1;"+(e+1)+"R":c.C0.ESC+"OR";break;case 115:_.key=e?c.C0.ESC+"[1;"+(e+1)+"S":c.C0.ESC+"OS";break;case 116:_.key=e?c.C0.ESC+"[15;"+(e+1)+"~":c.C0.ESC+"[15~";break;case 117:_.key=e?c.C0.ESC+"[17;"+(e+1)+"~":c.C0.ESC+"[17~";break;case 118:_.key=e?c.C0.ESC+"[18;"+(e+1)+"~":c.C0.ESC+"[18~";break;case 119:_.key=e?c.C0.ESC+"[19;"+(e+1)+"~":c.C0.ESC+"[19~";break;case 120:_.key=e?c.C0.ESC+"[20;"+(e+1)+"~":c.C0.ESC+"[20~";break;case 121:_.key=e?c.C0.ESC+"[21;"+(e+1)+"~":c.C0.ESC+"[21~";break;case 122:_.key=e?c.C0.ESC+"[23;"+(e+1)+"~":c.C0.ESC+"[23~";break;case 123:_.key=e?c.C0.ESC+"[24;"+(e+1)+"~":c.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(f&&!m||!n.altKey||n.metaKey)!f||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?_.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(_.key=c.C0.US),n.key==="@"&&(_.key=c.C0.NUL)):n.keyCode===65&&(_.type=1);else{let s=u[n.keyCode],t=s?.[n.shiftKey?1:0];if(t)_.key=c.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){let i=n.ctrlKey?n.keyCode-64:n.keyCode+32,a=String.fromCharCode(i);n.shiftKey&&(a=a.toUpperCase()),_.key=c.C0.ESC+a}else if(n.keyCode===32)_.key=c.C0.ESC+(n.ctrlKey?c.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),_.key=c.C0.ESC+i,_.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?_.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?_.key=c.C0.NUL:n.keyCode>=51&&n.keyCode<=55?_.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?_.key=c.C0.DEL:n.keyCode===219?_.key=c.C0.ESC:n.keyCode===220?_.key=c.C0.FS:n.keyCode===221&&(_.key=c.C0.GS)}return _}},482:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},r.utf32ToString=function(o,c=0,u=o.length){let n="";for(let d=c;d65535?(f-=65536,n+=String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):n+=String.fromCharCode(f)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,c){let u=o.length;if(!u)return 0;let n=0,d=0;if(this._interim){let f=o.charCodeAt(d++);56320<=f&&f<=57343?c[n++]=1024*(this._interim-55296)+f-56320+65536:(c[n++]=this._interim,c[n++]=f),this._interim=0}for(let f=d;f=u)return this._interim=m,n;let _=o.charCodeAt(f);56320<=_&&_<=57343?c[n++]=1024*(m-55296)+_-56320+65536:(c[n++]=m,c[n++]=_)}else m!==65279&&(c[n++]=m)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,c){let u=o.length;if(!u)return 0;let n,d,f,m,_=0,e=0,s=0;if(this.interim[0]){let a=!1,l=this.interim[0];l&=(224&l)==192?31:(240&l)==224?15:7;let p,g=0;for(;(p=63&this.interim[++g])&&g<4;)l<<=6,l|=p;let h=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=h-g;for(;s=u)return 0;if(p=o[s++],(192&p)!=128){s--,a=!0;break}this.interim[g++]=p,l<<=6,l|=63&p}a||(h===2?l<128?s--:c[_++]=l:h===3?l<2048||l>=55296&&l<=57343||l===65279||(c[_++]=l):l<65536||l>1114111||(c[_++]=l)),this.interim.fill(0)}let t=u-4,i=s;for(;i=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(e=(31&n)<<6|63&d,e<128){i--;continue}c[_++]=e}else if((240&n)==224){if(i>=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=o[i++],(192&f)!=128){i--;continue}if(e=(15&n)<<12|(63&d)<<6|63&f,e<2048||e>=55296&&e<=57343||e===65279)continue;c[_++]=e}else if((248&n)==240){if(i>=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=o[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,this.interim[2]=f,_;if(m=o[i++],(192&m)!=128){i--;continue}if(e=(7&n)<<18|(63&d)<<12|(63&f)<<6|63&m,e<65536||e>1114111)continue;c[_++]=e}}return _}}},225:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;let o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],u;r.UnicodeV6=class{constructor(){if(this.version="6",!u){u=new Uint8Array(65536),u.fill(1),u[0]=0,u.fill(0,1,32),u.fill(0,127,160),u.fill(2,4352,4448),u[9001]=2,u[9002]=2,u.fill(2,11904,42192),u[12351]=1,u.fill(2,44032,55204),u.fill(2,63744,64256),u.fill(2,65040,65050),u.fill(2,65072,65136),u.fill(2,65280,65377),u.fill(2,65504,65511);for(let n=0;nf[e][1])return!1;for(;e>=_;)if(m=_+e>>1,d>f[m][1])_=m+1;else{if(!(d=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;let c=o(8460),u=o(844);class n extends u.Disposable{constructor(f){super(),this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(f,m){if(m!==void 0&&this._syncCalls>m)return void(this._syncCalls=0);if(this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let _;for(this._isSyncWriting=!0;_=this._writeBuffer.shift();){this._action(_);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(f,m){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(m),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(m)}_innerWrite(f=0,m=!0){let _=f||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],s=this._action(e,m);if(s){let i=a=>Date.now()-_>=12?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(_,a);return void s.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(i)}let t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-_>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;let o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function u(n,d){let f=n.toString(16),m=f.length<2?"0"+f:f;switch(d){case 4:return f[0];case 8:return m;case 12:return(m+m).slice(0,3);default:return m+m}}r.parseColor=function(n){if(!n)return;let d=n.toLowerCase();if(d.indexOf("rgb:")===0){d=d.slice(4);let f=o.exec(d);if(f){let m=f[1]?15:f[4]?255:f[7]?4095:65535;return[Math.round(parseInt(f[1]||f[4]||f[7]||f[10],16)/m*255),Math.round(parseInt(f[2]||f[5]||f[8]||f[11],16)/m*255),Math.round(parseInt(f[3]||f[6]||f[9]||f[12],16)/m*255)]}}else if(d.indexOf("#")===0&&(d=d.slice(1),c.exec(d)&&[3,6,9,12].includes(d.length))){let f=d.length/3,m=[0,0,0];for(let _=0;_<3;++_){let e=parseInt(d.slice(f*_,f*_+f),16);m[_]=f===1?e<<4:f===2?e:f===3?e>>4:e>>8}return m}},r.toRgbString=function(n,d=16){let[f,m,_]=n;return`rgb:${u(f,d)}/${u(m,d)}/${u(_,d)}`}},5770:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;let c=o(482),u=o(8742),n=o(5770),d=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=d}registerHandler(m,_){this._handlers[m]===void 0&&(this._handlers[m]=[]);let e=this._handlers[m];return e.push(_),{dispose:()=>{let s=e.indexOf(_);s!==-1&&e.splice(s,1)}}}clearHandler(m){this._handlers[m]&&delete this._handlers[m]}setHandlerFallback(m){this._handlerFb=m}reset(){if(this._active.length)for(let m=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;m>=0;--m)this._active[m].unhook(!1);this._stack.paused=!1,this._active=d,this._ident=0}hook(m,_){if(this.reset(),this._ident=m,this._active=this._handlers[m]||d,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(_);else this._handlerFb(this._ident,"HOOK",_)}put(m,_,e){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(m,_,e);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(m,_,e))}unhook(m,_=!0){if(this._active.length){let e=!1,s=this._active.length-1,t=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,e=_,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;s>=0&&(e=this._active[s].unhook(m),e!==!0);s--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,e;s--}for(;s>=0;s--)if(e=this._active[s].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",m);this._active=d,this._ident=0}};let f=new u.Params;f.addParam(0),r.DcsHandler=class{constructor(m){this._handler=m,this._data="",this._params=f,this._hitLimit=!1}hook(m){this._params=m.length>1||m.params[0]?m.clone():f,this._data="",this._hitLimit=!1}put(m,_,e){this._hitLimit||(this._data+=(0,c.utf32ToString)(m,_,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(m){let _=!1;if(this._hitLimit)_=!1;else if(m&&(_=this._handler(this._data,this._params),_ instanceof Promise))return _.then(e=>(this._params=f,this._data="",this._hitLimit=!1,e));return this._params=f,this._data="",this._hitLimit=!1,_}}},2015:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;let c=o(844),u=o(8742),n=o(6242),d=o(6351);class f{constructor(s){this.table=new Uint8Array(s)}setDefault(s,t){this.table.fill(s<<4|t)}add(s,t,i,a){this.table[t<<8|s]=i<<4|a}addMany(s,t,i,a){for(let l=0;lh),t=(g,h)=>s.slice(g,h),i=t(32,127),a=t(0,24);a.push(25),a.push.apply(a,t(28,32));let l=t(0,14),p;for(p in e.setDefault(1,0),e.addMany(i,0,2,0),l)e.addMany([24,26,153,154],p,3,0),e.addMany(t(128,144),p,3,0),e.addMany(t(144,152),p,3,0),e.add(156,p,0,0),e.add(27,p,11,1),e.add(157,p,4,8),e.addMany([152,158,159],p,0,7),e.add(155,p,11,3),e.add(144,p,11,9);return e.addMany(a,0,3,0),e.addMany(a,1,3,1),e.add(127,1,0,1),e.addMany(a,8,0,8),e.addMany(a,3,3,3),e.add(127,3,0,3),e.addMany(a,4,3,4),e.add(127,4,0,4),e.addMany(a,6,3,6),e.addMany(a,5,3,5),e.add(127,5,0,5),e.addMany(a,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(a,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(a,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(a,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(a,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(a,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(a,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(m,0,2,0),e.add(m,8,5,8),e.add(m,6,0,6),e.add(m,11,0,11),e.add(m,13,13,13),e}();class _ extends c.Disposable{constructor(s=r.VT500_TRANSITION_TABLE){super(),this._transitions=s,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new u.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,i,a)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,i)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new d.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(s,t=[64,126]){let i=0;if(s.prefix){if(s.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=s.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(s.intermediates){if(s.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let l=0;lp||p>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=p}}if(s.final.length!==1)throw new Error("final must be a single byte");let a=s.final.charCodeAt(0);if(t[0]>a||a>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=a,i}identToString(s){let t=[];for(;s;)t.push(String.fromCharCode(255&s)),s>>=8;return t.reverse().join("")}setPrintHandler(s){this._printHandler=s}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(s,t){let i=this._identifier(s,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);let a=this._escHandlers[i];return a.push(t),{dispose:()=>{let l=a.indexOf(t);l!==-1&&a.splice(l,1)}}}clearEscHandler(s){this._escHandlers[this._identifier(s,[48,126])]&&delete this._escHandlers[this._identifier(s,[48,126])]}setEscHandlerFallback(s){this._escHandlerFb=s}setExecuteHandler(s,t){this._executeHandlers[s.charCodeAt(0)]=t}clearExecuteHandler(s){this._executeHandlers[s.charCodeAt(0)]&&delete this._executeHandlers[s.charCodeAt(0)]}setExecuteHandlerFallback(s){this._executeHandlerFb=s}registerCsiHandler(s,t){let i=this._identifier(s);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);let a=this._csiHandlers[i];return a.push(t),{dispose:()=>{let l=a.indexOf(t);l!==-1&&a.splice(l,1)}}}clearCsiHandler(s){this._csiHandlers[this._identifier(s)]&&delete this._csiHandlers[this._identifier(s)]}setCsiHandlerFallback(s){this._csiHandlerFb=s}registerDcsHandler(s,t){return this._dcsParser.registerHandler(this._identifier(s),t)}clearDcsHandler(s){this._dcsParser.clearHandler(this._identifier(s))}setDcsHandlerFallback(s){this._dcsParser.setHandlerFallback(s)}registerOscHandler(s,t){return this._oscParser.registerHandler(s,t)}clearOscHandler(s){this._oscParser.clearHandler(s)}setOscHandlerFallback(s){this._oscParser.setHandlerFallback(s)}setErrorHandler(s){this._errorHandler=s}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(s,t,i,a,l){this._parseStack.state=s,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=a,this._parseStack.chunkPos=l}parse(s,t,i){let a,l=0,p=0,g=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,g=this._parseStack.chunkPos+1;else{if(i===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let h=this._parseStack.handlers,v=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&v>-1){for(;v>=0&&(a=h[v](this._params),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 4:if(i===!1&&v>-1){for(;v>=0&&(a=h[v](),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 6:if(l=s[this._parseStack.chunkPos],a=this._dcsParser.unhook(l!==24&&l!==26,i),a)return a;l===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(l=s[this._parseStack.chunkPos],a=this._oscParser.end(l!==24&&l!==26,i),a)return a;l===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,g=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let h=g;h>4){case 2:for(let k=h+1;;++k){if(k>=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=0&&(a=v[b](this._params),a!==!0);b--)if(a instanceof Promise)return this._preserveStack(3,v,b,p,h),a;b<0&&this._csiHandlerFb(this._collect<<8|l,this._params),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(l-48)}while(++h47&&l<60);h--;break;case 9:this._collect<<=8,this._collect|=l;break;case 10:let T=this._escHandlers[this._collect<<8|l],y=T?T.length-1:-1;for(;y>=0&&(a=T[y](),a!==!0);y--)if(a instanceof Promise)return this._preserveStack(4,T,y,p,h),a;y<0&&this._escHandlerFb(this._collect<<8|l),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|l,this._params);break;case 13:for(let k=h+1;;++k)if(k>=t||(l=s[k])===24||l===26||l===27||l>127&&l=t||(l=s[k])<32||l>127&&l{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;let c=o(5770),u=o(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(d,f){this._handlers[d]===void 0&&(this._handlers[d]=[]);let m=this._handlers[d];return m.push(f),{dispose:()=>{let _=m.indexOf(f);_!==-1&&m.splice(_,1)}}}clearHandler(d){this._handlers[d]&&delete this._handlers[d]}setHandlerFallback(d){this._handlerFb=d}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let d=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;d>=0;--d)this._active[d].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let d=this._active.length-1;d>=0;d--)this._active[d].start();else this._handlerFb(this._id,"START")}_put(d,f,m){if(this._active.length)for(let _=this._active.length-1;_>=0;_--)this._active[_].put(d,f,m);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(d,f,m))}start(){this.reset(),this._state=1}put(d,f,m){if(this._state!==3){if(this._state===1)for(;f0&&this._put(d,f,m)}}end(d,f=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let m=!1,_=this._active.length-1,e=!1;if(this._stack.paused&&(_=this._stack.loopPosition-1,m=f,e=this._stack.fallThrough,this._stack.paused=!1),!e&&m===!1){for(;_>=0&&(m=this._active[_].end(d),m!==!0);_--)if(m instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!1,m;_--}for(;_>=0;_--)if(m=this._active[_].end(!1),m instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!0,m}else this._handlerFb(this._id,"END",d);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(d){this._handler=d,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(d,f,m){this._hitLimit||(this._data+=(0,u.utf32ToString)(d,f,m),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(d){let f=!1;if(this._hitLimit)f=!1;else if(d&&(f=this._handler(this._data),f instanceof Promise))return f.then(m=>(this._data="",this._hitLimit=!1,m));return this._data="",this._hitLimit=!1,f}}},8742:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;let o=2147483647;class c{static fromArray(n){let d=new c;if(!n.length)return d;for(let f=Array.isArray(n[0])?1:0;f256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let n=new c(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){let n=[];for(let d=0;d>8,m=255&this._subParamsIdx[d];m-f>0&&n.push(Array.prototype.slice.call(this._subParams,f,m))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>o?o:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>o?o:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){let d=this._subParamsIdx[n]>>8,f=255&this._subParamsIdx[n];return f-d>0?this._subParams.subarray(d,f):null}getSubParamsAll(){let n={};for(let d=0;d>8,m=255&this._subParamsIdx[d];m-f>0&&(n[d]=this._subParams.slice(f,m))}return n}addDigit(n){let d;if(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let f=this._digitIsSub?this._subParams:this.params,m=f[d-1];f[d-1]=~m?Math.min(10*m+n,o):n}}r.Params=c},5741:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,c){let u={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(u),c.dispose=()=>this._wrappedAddonDispose(u),c.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let c=-1;for(let u=0;u{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;let c=o(3785),u=o(511);r.BufferApiView=class{constructor(n,d){this._buffer=n,this.type=d}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){let d=this._buffer.lines.get(n);if(d)return new c.BufferLineApiView(d)}getNullCell(){return new u.CellData}}},3785:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;let c=o(511);r.BufferLineApiView=class{constructor(u){this._line=u}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(u,n){if(!(u<0||u>=this._line.length))return n?(this._line.loadCell(u,n),n):this._line.loadCell(u,new c.CellData)}translateToString(u,n,d){return this._line.translateToString(u,n,d)}}},8285:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;let c=o(8771),u=o(8460),n=o(844);class d extends n.Disposable{constructor(m){super(),this._core=m,this._onBufferChange=this.register(new u.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=d},7975:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,c){return this._core.registerCsiHandler(o,u=>c(u.toArray()))}addCsiHandler(o,c){return this.registerCsiHandler(o,c)}registerDcsHandler(o,c){return this._core.registerDcsHandler(o,(u,n)=>c(u,n.toArray()))}addDcsHandler(o,c){return this.registerDcsHandler(o,c)}registerEscHandler(o,c){return this._core.registerEscHandler(o,c)}addEscHandler(o,c){return this.registerEscHandler(o,c)}registerOscHandler(o,c){return this._core.registerOscHandler(o,c)}addOscHandler(o,c){return this.registerOscHandler(o,c)}}},7090:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(L,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,p=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(p=(l<3?a(p):l>3?a(s,t,p):a(s,t))||p);return l>3&&p&&Object.defineProperty(s,t,p),p},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;let n=o(8460),d=o(844),f=o(5295),m=o(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let _=r.BufferService=class extends d.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new f.BufferSet(e,this))}resize(e,s){this.cols=e,this.rows=s,this.buffers.resize(e,s),this._onResize.fire({cols:e,rows:s})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,s=!1){let t=this.buffer,i;i=this._cachedBlankLine,i&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=t.getBlankLine(e,s),this._cachedBlankLine=i),i.isWrapped=s;let a=t.ybase+t.scrollTop,l=t.ybase+t.scrollBottom;if(t.scrollTop===0){let p=t.lines.isFull;l===t.lines.length-1?p?t.lines.recycle().copyFrom(i):t.lines.push(i.clone()):t.lines.splice(l+1,0,i.clone()),p?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{let p=l-a+1;t.lines.shiftElements(a+1,p-1,-1),t.lines.set(l,i.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,s,t){let i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);let a=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),a!==i.ydisp&&(s||this._onScroll.fire(i.ydisp))}};r.BufferService=_=c([u(0,m.IOptionsService)],_)},7994:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,c){this._charsets[o]=c,this.glevel===o&&(this.charset=c)}}},1753:function(L,r,o){var c=this&&this.__decorate||function(i,a,l,p){var g,h=arguments.length,v=h<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,l):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(i,a,l,p);else for(var b=i.length-1;b>=0;b--)(g=i[b])&&(v=(h<3?g(v):h>3?g(a,l,v):g(a,l))||v);return h>3&&v&&Object.defineProperty(a,l,v),v},u=this&&this.__param||function(i,a){return function(l,p){a(l,p,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;let n=o(2585),d=o(8460),f=o(844),m={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:i=>i.button!==4&&i.action===1&&(i.ctrl=!1,i.alt=!1,i.shift=!1,!0)},VT200:{events:19,restrict:i=>i.action!==32},DRAG:{events:23,restrict:i=>i.action!==32||i.button!==3},ANY:{events:31,restrict:i=>!0}};function _(i,a){let l=(i.ctrl?16:0)|(i.shift?4:0)|(i.alt?8:0);return i.button===4?(l|=64,l|=i.action):(l|=3&i.button,4&i.button&&(l|=64),8&i.button&&(l|=128),i.action===32?l|=32:i.action!==0||a||(l|=3)),l}let e=String.fromCharCode,s={DEFAULT:i=>{let a=[_(i,!1)+32,i.col+32,i.row+32];return a[0]>255||a[1]>255||a[2]>255?"":`\x1B[M${e(a[0])}${e(a[1])}${e(a[2])}`},SGR:i=>{let a=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.col};${i.row}${a}`},SGR_PIXELS:i=>{let a=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.x};${i.y}${a}`}},t=r.CoreMouseService=class extends f.Disposable{constructor(i,a){super(),this._bufferService=i,this._coreService=a,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new d.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(let l of Object.keys(m))this.addProtocol(l,m[l]);for(let l of Object.keys(s))this.addEncoding(l,s[l]);this.reset()}addProtocol(i,a){this._protocols[i]=a}addEncoding(i,a){this._encodings[i]=a}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(i){if(!this._protocols[i])throw new Error(`unknown protocol "${i}"`);this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(i){if(!this._encodings[i])throw new Error(`unknown encoding "${i}"`);this._activeEncoding=i}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows||i.button===4&&i.action===32||i.button===3&&i.action!==32||i.button!==4&&(i.action===2||i.action===3)||(i.col++,i.row++,i.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,i,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(i))return!1;let a=this._encodings[this._activeEncoding](i);return a&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(a):this._coreService.triggerDataEvent(a,!0)),this._lastEvent=i,!0}explainEvents(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}}_equalEvents(i,a,l){if(l){if(i.x!==a.x||i.y!==a.y)return!1}else if(i.col!==a.col||i.row!==a.row)return!1;return i.button===a.button&&i.action===a.action&&i.ctrl===a.ctrl&&i.alt===a.alt&&i.shift===a.shift}};r.CoreMouseService=t=c([u(0,n.IBufferService),u(1,n.ICoreService)],t)},6975:function(L,r,o){var c=this&&this.__decorate||function(t,i,a,l){var p,g=arguments.length,h=g<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(t,i,a,l);else for(var v=t.length-1;v>=0;v--)(p=t[v])&&(h=(g<3?p(h):g>3?p(i,a,h):p(i,a))||h);return g>3&&h&&Object.defineProperty(i,a,h),h},u=this&&this.__param||function(t,i){return function(a,l){i(a,l,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;let n=o(1439),d=o(8460),f=o(844),m=o(2585),_=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=r.CoreService=class extends f.Disposable{constructor(t,i,a){super(),this._bufferService=t,this._logService=i,this._optionsService=a,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new d.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new d.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new d.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new d.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,i=!1){if(this._optionsService.rawOptions.disableStdin)return;let a=this._bufferService.buffer;i&&this._optionsService.rawOptions.scrollOnUserInput&&a.ybase!==a.ydisp&&this._onRequestScrollToBottom.fire(),i&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(l=>l.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(i=>i.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=s=c([u(0,m.IBufferService),u(1,m.ILogService),u(2,m.IOptionsService)],s)},9074:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;let c=o(8055),u=o(8460),n=o(844),d=o(6106),f=0,m=0;class _ extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new d.SortedList(t=>t?.marker.line),this._onDecorationRegistered=this.register(new u.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new u.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;let i=new e(t);if(i){let a=i.marker.onDispose(()=>i.dispose());i.onDispose(()=>{i&&(this._decorations.delete(i)&&this._onDecorationRemoved.fire(i),a.dispose())}),this._decorations.insert(i),this._onDecorationRegistered.fire(i)}return i}reset(){for(let t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,i,a){var l,p,g;let h=0,v=0;for(let b of this._decorations.getKeyIterator(i))h=(l=b.options.x)!==null&&l!==void 0?l:0,v=h+((p=b.options.width)!==null&&p!==void 0?p:1),t>=h&&t{var g,h,v;f=(g=p.options.x)!==null&&g!==void 0?g:0,m=f+((h=p.options.width)!==null&&h!==void 0?h:1),t>=f&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;let c=o(2585),u=o(8343);class n{constructor(...f){this._entries=new Map;for(let[m,_]of f)this.set(m,_)}set(f,m){let _=this._entries.get(f);return this._entries.set(f,m),_}forEach(f){for(let[m,_]of this._entries.entries())f(m,_)}has(f){return this._entries.has(f)}get(f){return this._entries.get(f)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(c.IInstantiationService,this)}setService(d,f){this._services.set(d,f)}getService(d){return this._services.get(d)}createInstance(d,...f){let m=(0,u.getServiceDependencies)(d).sort((s,t)=>s.index-t.index),_=[];for(let s of m){let t=this._services.get(s.id);if(!t)throw new Error(`[createInstance] ${d.name} depends on UNKNOWN service ${s.id}.`);_.push(t)}let e=m.length>0?m[0].index:f.length;if(f.length!==e)throw new Error(`[createInstance] First service dependency of ${d.name} at position ${e+1} conflicts with ${f.length} static arguments`);return new d(...f,..._)}}},7866:function(L,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,p=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var g=e.length-1;g>=0;g--)(a=e[g])&&(p=(l<3?a(p):l>3?a(s,t,p):a(s,t))||p);return l>3&&p&&Object.defineProperty(s,t,p),p},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;let n=o(844),d=o(2585),f={trace:d.LogLevelEnum.TRACE,debug:d.LogLevelEnum.DEBUG,info:d.LogLevelEnum.INFO,warn:d.LogLevelEnum.WARN,error:d.LogLevelEnum.ERROR,off:d.LogLevelEnum.OFF},m,_=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=d.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),m=this}_updateLogLevel(){this._logLevel=f[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let s=0;sJSON.stringify(p)).join(", ")})`);let l=i.apply(this,a);return m.trace(`GlyphRenderer#${i.name} return`,l),l}}},7302:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;let c=o(8460),u=o(844),n=o(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};let d=["normal","bold","100","200","300","400","500","600","700","800","900"];class f extends u.Disposable{constructor(_){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;let e=Object.assign({},r.DEFAULT_OPTIONS);for(let s in _)if(s in e)try{let t=_[s];e[s]=this._sanitizeAndValidateOption(s,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(_,e){return this.onOptionChange(s=>{s===_&&e(this.rawOptions[_])})}onMultipleOptionChange(_,e){return this.onOptionChange(s=>{_.indexOf(s)!==-1&&e()})}_setupOptions(){let _=s=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);return this.rawOptions[s]},e=(s,t)=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);t=this._sanitizeAndValidateOption(s,t),this.rawOptions[s]!==t&&(this.rawOptions[s]=t,this._onOptionChange.fire(s))};for(let s in this.rawOptions){let t={get:_.bind(this,s),set:e.bind(this,s)};Object.defineProperty(this.options,s,t)}}_sanitizeAndValidateOption(_,e){switch(_){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[_]),!function(s){return s==="block"||s==="underline"||s==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${_}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[_]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=d.includes(e)?e:r.DEFAULT_OPTIONS[_];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${_} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${_} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${_} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${_} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=f},2660:function(L,r,o){var c=this&&this.__decorate||function(f,m,_,e){var s,t=arguments.length,i=t<3?m:e===null?e=Object.getOwnPropertyDescriptor(m,_):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(f,m,_,e);else for(var a=f.length-1;a>=0;a--)(s=f[a])&&(i=(t<3?s(i):t>3?s(m,_,i):s(m,_))||i);return t>3&&i&&Object.defineProperty(m,_,i),i},u=this&&this.__param||function(f,m){return function(_,e){m(_,e,f)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;let n=o(2585),d=r.OscLinkService=class{constructor(f){this._bufferService=f,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(f){let m=this._bufferService.buffer;if(f.id===void 0){let a=m.addMarker(m.ybase+m.y),l={data:f,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(l,a)),this._dataByLinkId.set(l.id,l),l.id}let _=f,e=this._getEntryIdKey(_),s=this._entriesWithId.get(e);if(s)return this.addLineToLink(s.id,m.ybase+m.y),s.id;let t=m.addMarker(m.ybase+m.y),i={id:this._nextId++,key:this._getEntryIdKey(_),data:_,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(i,t)),this._entriesWithId.set(i.key,i),this._dataByLinkId.set(i.id,i),i.id}addLineToLink(f,m){let _=this._dataByLinkId.get(f);if(_&&_.lines.every(e=>e.line!==m)){let e=this._bufferService.buffer.addMarker(m);_.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(_,e))}}getLinkData(f){var m;return(m=this._dataByLinkId.get(f))===null||m===void 0?void 0:m.data}_getEntryIdKey(f){return`${f.id};;${f.uri}`}_removeMarkerFromLink(f,m){let _=f.lines.indexOf(m);_!==-1&&(f.lines.splice(_,1),f.lines.length===0&&(f.data.id!==void 0&&this._entriesWithId.delete(f.key),this._dataByLinkId.delete(f.id)))}};r.OscLinkService=d=c([u(0,n.IBufferService)],d)},8343:(L,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;let o="di$target",c="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(u){return u[c]||[]},r.createDecorator=function(u){if(r.serviceRegistry.has(u))return r.serviceRegistry.get(u);let n=function(d,f,m){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(_,e,s){e[o]===e?e[c].push({id:_,index:s}):(e[c]=[{id:_,index:s}],e[o]=e)})(n,d,m)};return n.toString=()=>u,r.serviceRegistry.set(u,n),n}},2585:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;let c=o(8343);var u;r.IBufferService=(0,c.createDecorator)("BufferService"),r.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),r.ICoreService=(0,c.createDecorator)("CoreService"),r.ICharsetService=(0,c.createDecorator)("CharsetService"),r.IInstantiationService=(0,c.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(u||(r.LogLevelEnum=u={})),r.ILogService=(0,c.createDecorator)("LogService"),r.IOptionsService=(0,c.createDecorator)("OptionsService"),r.IOscLinkService=(0,c.createDecorator)("OscLinkService"),r.IUnicodeService=(0,c.createDecorator)("UnicodeService"),r.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(L,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;let c=o(8460),u=o(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;let n=new u.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let d=0,f=n.length;for(let m=0;m=f)return d+this.wcwidth(_);let e=n.charCodeAt(m);56320<=e&&e<=57343?_=1024*(_-55296)+e-56320+65536:d+=this.wcwidth(e)}d+=this.wcwidth(_)}return d}}}},O={};function H(L){var r=O[L];if(r!==void 0)return r.exports;var o=O[L]={exports:{}};return $[L].call(o.exports,o,o.exports,H),o.exports}var W={};return(()=>{var L=W;Object.defineProperty(L,"__esModule",{value:!0}),L.Terminal=void 0;let r=H(9042),o=H(3236),c=H(844),u=H(5741),n=H(8285),d=H(7975),f=H(7090),m=["cols","rows"];class _ extends c.Disposable{constructor(s){super(),this._core=this.register(new o.Terminal(s)),this._addonManager=this.register(new u.AddonManager),this._publicOptions=Object.assign({},this._core.options);let t=a=>this._core.options[a],i=(a,l)=>{this._checkReadonlyOptions(a),this._core.options[a]=l};for(let a in this._core.options){let l={get:t.bind(this,a),set:i.bind(this,a)};Object.defineProperty(this._publicOptions,a,l)}}_checkReadonlyOptions(s){if(m.includes(s))throw new Error(`Option "${s}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new d.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new f.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let s=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:s.applicationCursorKeys,applicationKeypadMode:s.applicationKeypad,bracketedPasteMode:s.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:s.origin,reverseWraparoundMode:s.reverseWraparound,sendFocusMode:s.sendFocus,wraparoundMode:s.wraparound}}get options(){return this._publicOptions}set options(s){for(let t in s)this._publicOptions[t]=s[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(s,t){this._verifyIntegers(s,t),this._core.resize(s,t)}open(s){this._core.open(s)}attachCustomKeyEventHandler(s){this._core.attachCustomKeyEventHandler(s)}registerLinkProvider(s){return this._core.registerLinkProvider(s)}registerCharacterJoiner(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)}deregisterCharacterJoiner(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)}registerMarker(s=0){return this._verifyIntegers(s),this._core.registerMarker(s)}registerDecoration(s){var t,i,a;return this._checkProposedApi(),this._verifyPositiveIntegers((t=s.x)!==null&&t!==void 0?t:0,(i=s.width)!==null&&i!==void 0?i:0,(a=s.height)!==null&&a!==void 0?a:0),this._core.registerDecoration(s)}hasSelection(){return this._core.hasSelection()}select(s,t,i){this._verifyIntegers(s,t,i),this._core.select(s,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(s,t){this._verifyIntegers(s,t),this._core.selectLines(s,t)}dispose(){super.dispose()}scrollLines(s){this._verifyIntegers(s),this._core.scrollLines(s)}scrollPages(s){this._verifyIntegers(s),this._core.scrollPages(s)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(s){this._verifyIntegers(s),this._core.scrollToLine(s)}clear(){this._core.clear()}write(s,t){this._core.write(s,t)}writeln(s,t){this._core.write(s),this._core.write(`\r +`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(let t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(let t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}L.Terminal=_})(),W})())});var Tt=xt((nt,kt)=>{"use strict";(function($,O){typeof nt=="object"&&typeof kt=="object"?kt.exports=O():typeof define=="function"&&define.amd?define([],O):typeof nt=="object"?nt.FitAddon=O():$.FitAddon=O()})(self,()=>(()=>{"use strict";var $={};return(()=>{var O=$;Object.defineProperty(O,"__esModule",{value:!0}),O.FitAddon=void 0,O.FitAddon=class{activate(H){this._terminal=H}dispose(){}fit(){let H=this.proposeDimensions();if(!H||!this._terminal||isNaN(H.cols)||isNaN(H.rows))return;let W=this._terminal._core;this._terminal.rows===H.rows&&this._terminal.cols===H.cols||(W._renderService.clear(),this._terminal.resize(H.cols,H.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let H=this._terminal._core,W=H._renderService.dimensions;if(W.css.cell.width===0||W.css.cell.height===0)return;let L=this._terminal.options.scrollback===0?0:H.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),c=Math.max(0,parseInt(r.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),n=o-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),d=c-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-L;return{cols:Math.max(2,Math.floor(d/W.css.cell.width)),rows:Math.max(1,Math.floor(n/W.css.cell.height))}}}})(),$})())});var mi=He(Et()),gi=He(Tt());var Le=function($){return $.SUCCESS="success",$.ERROR="error",$.INFO="info",$.WARNING="warning",$}(Le||{});var oi=new Map([[Le.ERROR,"\x1B[38;5;124m"],[Le.SUCCESS,"\x1B[38;5;22m"],[Le.WARNING,"\x1B[38;5;136m"],[Le.INFO,"\x1B[38;5;0m"]]);var ot=$=>{let O=oi.get($.type)||"\x1B[38;5;0m",H=$.data.endsWith(` +`)?$.data.slice(0,-1):$.data;return`${O}${H}\x1B[0m`};var ai=($,O)=>{if($.length!==O.length)return!1;let H=new Set($);return O.every(W=>H.has(W))},hi=$=>{let O=[];for(let H=0;H<$.length;H++){let W=$.getLine(H);W&&O.push(W.translateToString(!0))}return O};var li=Ut("tooltipState",[St("hidden",gt({opacity:0,transform:"scale(0.9)"})),St("visible",gt({opacity:1,transform:"scale(1)"})),Ct("hidden => visible",mt("150ms ease-in")),Ct("visible => hidden",mt("150ms ease-out"))]);function wi($,O){$&1&&Pt(0)}function Ei($,O){if($&1&&(Ot(0),G(1,"div",5),Ce(2,wi,1,0,"ng-container",6),X(),It()),$&2){let H=Oe();ae(2),oe("ngTemplateOutlet",H.contentTemplate)}}function ki($,O){if($&1){let H=de();G(0,"div",7)(1,"button",8),te("click",function(){Q(H);let L=Oe();return ee(L.triggerClose())}),se(2,"mat-icon",9),X()()}}var _i=(()=>{let O=class O{constructor(){this.position="bottom",this.showCloseButton=!1,this.state="hidden",this.close=new ge}triggerClose(){this.state="hidden",setTimeout(()=>this.close.emit(),150)}};O.\u0275fac=function(L){return new(L||O)},O.\u0275cmp=me({type:O,selectors:[["ms-tooltip-panel"]],inputs:{contentTemplate:"contentTemplate",position:"position",showCloseButton:"showCloseButton",state:"state"},outputs:{close:"close"},standalone:!0,features:[Se],decls:5,vars:4,consts:[[1,"tooltip-container",3,"ngClass"],[1,"tooltip-arrow"],[1,"tooltip-wrapper"],[4,"ngIf"],["class","close-button",4,"ngIf"],[1,"tooltip-content"],[4,"ngTemplateOutlet"],[1,"close-button"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(L,r){L&1&&(G(0,"div",0),se(1,"div",1),G(2,"div",2),Ce(3,Ei,3,1,"ng-container",3)(4,ki,3,0,"div",4),X()()),L&2&&(oe("ngClass",r.position)("@tooltipState",r.state),ae(3),oe("ngIf",r.contentTemplate),ae(),oe("ngIf",r.showCloseButton))},dependencies:[Ke,Wt,ze,Nt,xe,Te,ke,Ee],styles:[".tooltip-container[_ngcontent-%COMP%]{position:relative;background-color:var(--tooltip);color:var(--terminal-color);border-radius:6px;box-shadow:0 4px 8px #0000001a}.tooltip-wrapper[_ngcontent-%COMP%]{display:flex;padding:2px 6px}.tooltip-arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-style:solid}.close-button[_ngcontent-%COMP%]{display:flex;align-items:center}.tooltip-content[_ngcontent-%COMP%]{padding:12px}.tooltip-container.top[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{bottom:-10px;left:50%;transform:translate(-50%);border-width:10px 10px 0 10px;border-color:var(--tooltip) transparent transparent transparent}.tooltip-container.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{top:-10px;left:50%;transform:translate(-50%);border-width:0 10px 10px 10px;border-color:transparent transparent var(--tooltip) transparent}.tooltip-container.left[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{right:-10px;top:50%;transform:translateY(-50%);border-width:10px 0 10px 10px;border-color:transparent transparent transparent var(--tooltip)}.tooltip-container.right[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{left:-10px;top:50%;transform:translateY(-50%);border-width:10px 10px 10px 0;border-color:transparent var(--tooltip) transparent transparent}"],data:{animation:[li]}});let $=O;return $})();var ui=(()=>{let O=class O{constructor(W,L,r){this.overlay=W,this.viewContainerRef=L,this.elementRef=r,this.position="bottom",this.showCloseButton=!1,this.closeOnBackdropClick=!0,this.closed=new ge,this.overlayRef=null}onClick(){this.overlayRef?this.closePanel():this.openPanel()}openPanel(){let W=this.getPositionStrategy();this.overlayRef=this.overlay.create({positionStrategy:W,hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),backdropClass:"cdk-overlay-transparent-backdrop"});let L=new Yt(_i,this.viewContainerRef),o=this.overlayRef.attach(L).instance;o.contentTemplate=this.contentTemplate,o.position=this.position,o.showCloseButton=this.showCloseButton,setTimeout(()=>{o.state="visible"},0),o.close.subscribe(()=>{this.closePanel()}),this.closeOnBackdropClick&&(this.backdropClickSubscription=this.overlayRef.backdropClick().subscribe(()=>{this.closePanel()}))}closePanel(){if(this.overlayRef){let W=this.overlayRef.overlayElement.querySelector("ms-tooltip-panel");W&&(W.state="hidden",setTimeout(()=>{this.overlayRef?.detach(),this.overlayRef=null,this.closed.emit()},150)),this.backdropClickSubscription&&this.backdropClickSubscription.unsubscribe()}}getPositionStrategy(){let W={top:{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},bottom:{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},left:{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},right:{originX:"end",originY:"center",overlayX:"start",overlayY:"center"}};return this.overlay.position().flexibleConnectedTo(this.elementRef).withPositions([W[this.position]])}ngOnDestroy(){this.overlayRef&&this.overlayRef.dispose(),this.backdropClickSubscription&&this.backdropClickSubscription.unsubscribe()}};O.\u0275fac=function(L){return new(L||O)(ie(Jt),ie(Bt),ie(Mt))},O.\u0275dir=At({type:O,selectors:[["","msTooltipPanel",""]],hostBindings:function(L,r){L&1&&te("click",function(){return r.onClick()})},inputs:{contentTemplate:"contentTemplate",position:"position",showCloseButton:"showCloseButton",closeOnBackdropClick:"closeOnBackdropClick"},outputs:{closed:"closed"},standalone:!0});let $=O;return $})();var fi=He(Et()),pi=He(Tt());var ht=class{constructor(O,H){this.terminal=O,this.searchControl=new bt(""),this.worker=null;let L=vt(vt({},{caseSensitive:!1,debounceTimeMs:300}),H);this.caseSensitive=L.caseSensitive,this.debounceTimeMs=L.debounceTimeMs,this.searchControl=new bt("")}initialize(O){this.processMessagesWithWorker(O,""),this.setupSearch(O)}setupSearch(O){this.searchControl.valueChanges.pipe(Rt(this.debounceTimeMs)).subscribe(H=>{this.processMessagesWithWorker(O,H||"")})}processMessagesWithWorker(O,H){this.worker||(this.worker=new Worker(new URL("worker-UXAYXL2U.js",import.meta.url),{type:"module"}),this.worker.onmessage=({data:W})=>{this.displayMessagesInTerminal(W)}),this.worker.postMessage({messages:O,searchTerm:H,caseSensitive:this.caseSensitive})}displayMessagesInTerminal(O){let H=hi(this.terminal.buffer.active);(O.length!==H.length||!ai(O,H))&&(this.terminal.clear(),O.forEach(W=>{this.writeToTerminal(W)}),this.terminal.clearSelection())}writeToTerminal(O){O.split(` +`).forEach(W=>{this.terminal.writeln(W)})}terminateWorker(){this.worker&&(this.worker.terminate(),this.worker=null)}clearSearch(){this.searchControl.setValue("")}};var Li=["terminalHistory"];function Ri($,O){if($&1){let H=de();G(0,"mat-icon",16),te("click",function(){Q(H);let L=Oe();return ee(L.terminalSearch.clearSearch())}),le(1,"close"),X()}}function Ai($,O){$&1&&(G(0,"mat-icon",17),le(1,"search"),X())}var _e,lt=(_e=class{constructor(O,H){this.dialogConfig=O,this.terminalFacadeService=H,this.terminal=new fi.Terminal({theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000"}}),this.fitAddon=new pi.FitAddon,this.messages=[],this.terminalSearch=new ht(this.terminal,{caseSensitive:!1,debounceTimeMs:300})}ngOnInit(){this.initializeTerminal(),this.loadData(),ei()}ngAfterViewInit(){this.adjustHeightToParent(),this.fitTerminalToContainer()}loadData(){this.terminalFacadeService.dispatch(Ie.getAllMessages()),this.terminalFacadeService.allMessages$.pipe(We(1),Fe(1)).subscribe(O=>{this.messages=O,this.terminalSearch.initialize(this.messages)})}initializeTerminal(){this.terminal.loadAddon(this.fitAddon),this.terminal.open(this.terminalHistoryDiv.nativeElement),this.terminal.writeln(`Welcome to ModelSmith terminal!\r +`),this.setupResizeObserver()}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>this.fitTerminalToContainer()),this.resizeObserver.observe(this.terminalHistoryDiv.nativeElement)}fitTerminalToContainer(){this.fitAddon.fit()}adjustHeightToParent(){let O=this.terminalHistoryDiv.nativeElement.parentElement.parentElement.parentElement.parentElement;if(O){let H;H=O.offsetHeight-280,this.terminalHistoryDiv.nativeElement.style.height=`${H}px`}}scrollToTopTerminal(){this.terminal.scrollToTop()}scrollToBottomTerminal(){this.terminal.scrollToBottom()}ngOnDestroy(){this.resizeObserver?.disconnect(),ti(),this.terminalSearch&&this.terminalSearch.terminateWorker()}},_e.\u0275fac=function(H){return new(H||_e)(ie(ii),ie(it))},_e.\u0275cmp=me({type:_e,selectors:[["ms-terminal-messages-history-dialog"]],viewQuery:function(H,W){if(H&1&&Ne(Li,7),H&2){let L;Ue(L=je())&&(W.terminalHistoryDiv=L.first)}},standalone:!0,features:[Se],decls:19,vars:3,consts:[["terminalHistory",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"left"],[1,"form-field-container"],["subscriptSizing","dynamic"],["matInput","","placeholder","Search terminal messages",3,"formControl"],["matSuffix","","class","mat-error scale-on-hover",3,"click",4,"ngIf"],["matSuffix","","class","mat-primary",4,"ngIf"],[1,"right"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],[1,"terminal"],[1,"terminal-wrapper"],["matSuffix","",1,"mat-error","scale-on-hover",3,"click"],["matSuffix","",1,"mat-primary"]],template:function(H,W){if(H&1){let L=de();G(0,"ms-dialog")(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-label"),le(6,"Search"),X(),G(7,"mat-form-field",5),se(8,"input",6),Ce(9,Ri,2,0,"mat-icon",7)(10,Ai,2,0,"mat-icon",8),X()()(),G(11,"div",9)(12,"button",10),te("click",function(){return Q(L),ee(W.scrollToTopTerminal())}),se(13,"mat-icon",11),X(),G(14,"button",12),te("click",function(){return Q(L),ee(W.scrollToBottomTerminal())}),se(15,"mat-icon",13),X()()(),G(16,"div",14),se(17,"div",15,0),X()()()}H&2&&(ae(8),oe("formControl",W.terminalSearch.searchControl),ae(),oe("ngIf",W.terminalSearch.searchControl.value),ae(),oe("ngIf",!W.terminalSearch.searchControl.value))},dependencies:[Ke,ze,si,xe,Te,ke,Ee,Ve,jt,$t,Ge,zt,Xt,Gt,qt,Xe,Kt,Je,Ye],styles:[`.ms-terminal-wrapper{overflow-x:auto}.ms-terminal-wrapper .terminal-wrapper{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper .xterm-viewport{overflow-y:auto!important}.ms-terminal-wrapper .top-terminal-section{display:flex;justify-content:space-between;margin-bottom:10px}.ms-terminal-wrapper .top-terminal-section .right{display:flex;align-items:flex-end} +`],encapsulation:2}),_e);lt=ye([we()],lt);function Mi($,O){$&1&&(G(0,"div",12)(1,"mat-label"),le(2,"TODO"),X()())}var ue,ct=(ue=class{constructor(O,H){this.scriptFacadeService=O,this.dialogService=H,this.isScriptActive=!1,this.clearTerminal=new ge,this.scrollToTopTerminal=new ge,this.scrollToBottomTerminal=new ge}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(qe(this)).subscribe(O=>{this.isScriptActive=Qt(O)})}ctaStopScript(){this.scriptFacadeService.dispatch(Zt.stopScript())}openTerminalMessagesHistoryDialog(){this.dialogService.open(lt,{title:"Terminal history",showSaveButton:!1,width:"60vw",height:"75vh"})}},ue.\u0275fac=function(H){return new(H||ue)(ie(De),ie(tt))},ue.\u0275cmp=me({type:ue,selectors:[["ms-terminal-toolbar"]],outputs:{clearTerminal:"clearTerminal",scrollToTopTerminal:"scrollToTopTerminal",scrollToBottomTerminal:"scrollToBottomTerminal"},standalone:!0,features:[$e([tt]),Se],decls:17,vars:4,consts:[["searchTooltipContent",""],[1,"buttons-wrapper"],["mat-icon-button","","color","primary","matTooltip","Search terminal","msTooltipPanel","","position","bottom",3,"contentTemplate","closeOnBackdropClick","showCloseButton"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["mat-icon-button","","color","primary","matTooltip","Terminal history",3,"click"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],["mat-icon-button","","color","primary","matTooltip","Clear terminal",3,"click"],["mat-icon-button","","color","warn","matTooltip","Stop current process",3,"click","disabled"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],[1,"search-panel"]],template:function(H,W){if(H&1){let L=de();G(0,"div",1)(1,"button",2),se(2,"mat-icon",3),X(),G(3,"button",4),te("click",function(){return Q(L),ee(W.openTerminalMessagesHistoryDialog())}),G(4,"mat-icon"),le(5,"history"),X()(),G(6,"button",5),te("click",function(){return Q(L),ee(W.scrollToTopTerminal.emit())}),se(7,"mat-icon",6),X(),G(8,"button",7),te("click",function(){return Q(L),ee(W.scrollToBottomTerminal.emit())}),se(9,"mat-icon",8),X(),G(10,"button",9),te("click",function(){return Q(L),ee(W.clearTerminal.emit())}),G(11,"mat-icon"),le(12," clear_all"),X()(),G(13,"button",10),te("click",function(){return Q(L),ee(W.ctaStopScript())}),se(14,"mat-icon",11),X()(),Ce(15,Mi,3,0,"ng-template",null,0,Ft)}if(H&2){let L=Ht(16);ae(),oe("contentTemplate",L)("closeOnBackdropClick",!1)("showCloseButton",!0),ae(12),oe("disabled",!W.isScriptActive)}},dependencies:[ke,Ee,xe,Te,Je,Ye,ui,Ve,Ge,Vt,Xe]}),ue);ct=ye([we({})],ct);var Bi=["terminal"],fe,vi=(fe=class{constructor(O,H,W,L){this.websocketService=O,this.terminalFacadeService=H,this.scriptFacadeService=W,this.modelsFacadeService=L,this.messagesBuffer=[],this.displayWebSocketMessages=!1,this.terminal=new mi.Terminal({cursorBlink:!0,theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000"}}),this.fitAddon=new gi.FitAddon,this.listenToIncommingMessages()}listenToIncommingMessages(){this.websocketService.terminalMessages$.pipe(qe(this)).subscribe(O=>{O?.data==="Script execution ended successfully."&&this.updateModelsListOnTrainAlgorithmCompletion();let H=ot(O);this.displayWebSocketMessages?this.writeToTerminal(H):this.messagesBuffer.push(O)})}ngOnInit(){this.initializeTerminal(),this.loadLatestMessages()}ngAfterViewInit(){setTimeout(()=>{this.adjustHeightToParent()},0),this.fitTerminalToContainer()}writeToTerminal(O){O.split(` +`).forEach(W=>{this.terminal.writeln(W)})}loadLatestMessages(){this.terminalFacadeService.messages$.pipe(We(1),Fe(1)).subscribe(O=>{O.forEach(H=>{let W=ot(H);this.writeToTerminal(W)}),this.messagesBuffer.forEach(H=>{let W=ot(H);this.writeToTerminal(W)}),this.messagesBuffer=[],this.displayWebSocketMessages=!0}),this.terminalFacadeService.dispatch(Ie.getLatestMessages())}initializeTerminal(){this.terminal.loadAddon(this.fitAddon),this.terminal.open(this.terminalDiv.nativeElement),this.terminal.writeln(`Welcome to ModelSmith terminal!\r +`),this.setupResizeObserver()}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>this.fitTerminalToContainer()),this.resizeObserver.observe(this.terminalDiv.nativeElement)}fitTerminalToContainer(){this.fitAddon.fit()}adjustHeightToParent(){let O=this.terminalDiv.nativeElement.parentElement.parentElement.parentElement.parentElement;if(O){let H;H=O.offsetHeight-100,this.terminalDiv.nativeElement.style.height=`${H}px`}}updateModelsListOnTrainAlgorithmCompletion(){return Dt(this,null,function*(){let O=yield Lt(this.scriptFacadeService.scriptDetails$),H={[et.MACHINE_UNLEARNING_TRAIN]:Ze.MACHINE_UNLEARNING,[et.PRUNING_TRAIN]:Ze.PRUNING,[et.QUANTIZATION_TRAIN]:Ze.QUANTIZATION};O.algKey in H&&(this.modelsFacadeService.dispatch(yt.getModelsList({algorithmType:H[O.algKey]})),this.modelsFacadeService.dispatch(yt.getModelMetadata({algorithmType:H[O.algKey],modelName:O.model})))})}clearTerminal(){this.terminalFacadeService.dispatch(Ie.postClearHistory()),this.terminal.clear()}scrollToTopTerminal(){this.terminal.scrollToTop()}scrollToBottomTerminal(){this.terminal.scrollToBottom()}ngOnDestroy(){this.resizeObserver?.disconnect()}},fe.\u0275fac=function(H){return new(H||fe)(ie(ri),ie(it),ie(De),ie(st))},fe.\u0275cmp=me({type:fe,selectors:[["ms-terminal"]],viewQuery:function(H,W){if(H&1&&Ne(Bi,7),H&2){let L;Ue(L=je())&&(W.terminalDiv=L.first)}},standalone:!0,features:[$e([De,st]),Se],decls:9,vars:0,consts:[["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],[3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal"],[1,"terminal"],[1,"terminal-wrapper"]],template:function(H,W){if(H&1){let L=de();G(0,"div",1)(1,"div",2)(2,"div",3),le(3,"Terminal"),X(),G(4,"div")(5,"ms-terminal-toolbar",4),te("clearTerminal",function(){return Q(L),ee(W.clearTerminal())})("scrollToTopTerminal",function(){return Q(L),ee(W.scrollToTopTerminal())})("scrollToBottomTerminal",function(){return Q(L),ee(W.scrollToBottomTerminal())}),X()()(),G(6,"div",5),se(7,"div",6,0),X()()}},dependencies:[ct],styles:[`.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.ms-terminal-wrapper{overflow-x:auto}.ms-terminal-wrapper .terminal-wrapper{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper .xterm-viewport{overflow-y:auto!important}.ms-terminal-wrapper .top-terminal-section{display:flex;justify-content:space-between} +/*! Bundled license information: + +xterm/css/xterm.css: + (** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * 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. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + *) +*/ +`],encapsulation:2}),fe);vi=ye([we()],vi);var Si=[{key:ce.IPG,value:"GraSP pruning"},{key:ce.IPM,value:"Magnitude-based init pruning"},{key:ce.IPR,value:"Random init pruning"},{key:ce.IMP,value:"Iterative Magnitude Pruning"},{key:ce.OMP,value:"One-shot Magnitude Pruning"},{key:ce.IPS,value:"Init Pruning Snip"},{key:ce.IPSY,value:"Init Pruning Synflow"},{key:ce.IPMB,value:"Init Pruning Magnitude Both"}],Ci=[{key:Qe.BPTQ,value:"Basic PTQ"},{key:Qe.BRECQ,value:"Brec-q"},{key:Qe.MINMAXPTQ,value:"Minmax-ptq"}],Oi=[...Si,...Ci],sn=ce.IMP,rn=$=>Oi.filter(O=>$.includes(O.key)).map(O=>O.value),nn=$=>{let O=Si.find(W=>W.value===$);if(O)return O.key;let H=Ci.find(W=>W.value===$);return H?H.key:null};export{vi as a,Si as b,Ci as c,sn as d,rn as e,nn as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-Q3ONM42N.js b/frontend/server/modelsmith-build/browser/chunk-Q3ONM42N.js new file mode 100644 index 00000000..193ef68c --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-Q3ONM42N.js @@ -0,0 +1 @@ +import{a as u,b as y}from"./chunk-OA3ZLQZZ.js";import{Bb as d,Ea as o,Qa as f,Sa as p,Sb as c,Ya as g,_b as M,ab as n,bb as i,cb as l,ha as s,ub as m,wb as h}from"./chunk-64NP6AY6.js";function _(t,e){t&1&&l(0,"div",3)}function P(t,e){t&1&&l(0,"div",3)}var b=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=s({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},standalone:!0,features:[d],decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],[1,"col-span-1"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"]],template:function(r,a){r&1&&(n(0,"div",0)(1,"div",1),l(2,"mat-divider"),i(),n(3,"footer",2),f(4,_,1,0,"div",3),n(5,"div",4)(6,"div",5),m(7),i(),n(8,"div",6)(9,"a",7),m(10,"Privacy Policy"),i(),n(11,"a"),m(12,"Terms of Service"),i()()(),f(13,P,1,0,"div",3),i()()),r&2&&(o(4),g(a.styleMode!=="mainLayout"?4:-1),o(),p("ngClass",a.styleMode==="mainLayout"?"col-span-12":"col-span-10"),o(2),h("\xA9 ",a.currentYear," Cisco Systems, Inc"),o(6),g(a.styleMode!=="mainLayout"?13:-1))},dependencies:[M,c,y,u],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.footer-wrapper[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;display:flex;justify-content:space-between}[styleMode=fullWidth][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;bottom:30px}[styleMode=mainLayout][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{position:relative;bottom:0}"]});let t=e;return t})();export{b as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QNESWJWL.js b/frontend/server/modelsmith-build/browser/chunk-QNESWJWL.js new file mode 100644 index 00000000..947934ed --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QNESWJWL.js @@ -0,0 +1 @@ +import"./chunk-OXPAOCDX.js";import{a as b,b as x}from"./chunk-GJTXMCBX.js";import{a as R,b as U,c as V}from"./chunk-TYRSQJJL.js";import{a as A,b as F}from"./chunk-OA3ZLQZZ.js";import{a as G,b as B}from"./chunk-QVMVB2QY.js";import{c as M}from"./chunk-XX6ZYDLH.js";import{a as k,b as z}from"./chunk-YPMBMI5J.js";import"./chunk-QTJZRTNN.js";import{a as D,b as E}from"./chunk-6VRVKV6C.js";import{a as T}from"./chunk-W4S57J6B.js";import{$ as d,Ea as s,Fa as y,J as v,Sa as p,_b as S,ab as e,bb as o,be as I,cb as c,fe as w,ha as C,ia as l,ie as N,p as h,pc as g,qe as O,ub as n,we as j,xe as P}from"./chunk-64NP6AY6.js";var i,f=(i=class{constructor(t){this.configsFacadeService=t,this.selectedModeControl=new w(""),this.AppModes=x}ngOnInit(){this.loadDefaultValue(),this.listenToModeChanges()}listenToModeChanges(){this.selectedModeControl.valueChanges.pipe(E(this)).subscribe(t=>{M(t)||this.configsFacadeService.dispatch(b.setDefaultMode({mode:t}))})}loadDefaultValue(){this.configsFacadeService.defaultMode$.pipe(v(1)).subscribe(t=>{M(t)||this.selectedModeControl.setValue(t)})}},i.\u0275fac=function(a){return new(a||i)(y(T))},i.\u0275cmp=C({type:i,selectors:[["ms-admin"]],decls:20,vars:3,consts:[[1,"admin-settings-container"],[1,"heading-primary-title"],[1,"paragraph-regular-p3-default"],[1,"divider-container","mb-2"],[1,"ms-card","default-mode-card"],[1,"default-mode-header"],[1,"flex","items-center","mr-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Allows users to choose the default startup mode for the app."],[1,"paragraph-bold-p3-small-bold","flex","items-center"],[1,"mt-2","mb-2"],[1,"mode-toggle-group",3,"formControl"],[3,"value"]],template:function(a,m){a&1&&(e(0,"div",0)(1,"p",1),n(2,"Admin"),o(),e(3,"p",2),n(4," The Global Settings Admin Page allows administrators to manage and customize key app configurations, all from one central location. "),o(),e(5,"div",3),c(6,"mat-divider"),o(),e(7,"mat-card",4)(8,"div",5)(9,"div",6),c(10,"mat-icon",7),o(),e(11,"div",8),n(12,"Default mode:"),o()(),e(13,"div",9),c(14,"mat-divider"),o(),e(15,"mat-button-toggle-group",10)(16,"mat-button-toggle",11),n(17,"Guided"),o(),e(18,"mat-button-toggle",11),n(19,"Expert"),o()()()()),a&2&&(s(15),p("formControl",m.selectedModeControl),s(),p("value",m.AppModes.GUIDED),s(2),p("value",m.AppModes.EXPERT))},dependencies:[A,j,G,R,U,I,N,k],styles:[".divider-container[_ngcontent-%COMP%]{margin-bottom:20px}.default-mode-card[_ngcontent-%COMP%]{width:300px}.default-mode-header[_ngcontent-%COMP%]{display:flex}.mode-toggle-group[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),i);f=h([D()],f);var q=[{path:"",component:f}],$=(()=>{let t=class t{};t.\u0275fac=function(u){return new(u||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[g.forChild(q),g]});let r=t;return r})();var Ct=(()=>{let t=class t{};t.\u0275fac=function(u){return new(u||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[S,$,F,P,B,V,O,z]});let r=t;return r})();export{Ct as AdminModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QTJZRTNN.js b/frontend/server/modelsmith-build/browser/chunk-QTJZRTNN.js new file mode 100644 index 00000000..4c0ff842 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QTJZRTNN.js @@ -0,0 +1,2 @@ +import{b as ft,c as Vt,d as Kt,e as gt,r as Wt,s as Xt}from"./chunk-W4S57J6B.js";import{Ad as Gt,Ae as y,Bb as q,C as bt,Ce as J,E as _t,Ea as I,Fa as _,G as R,Ga as It,Hc as o,Ic as D,Jc as C,Ka as wt,Lb as Rt,Oa as Dt,Qa as G,Qb as Ft,Ra as Et,S as F,Sc as b,T as vt,Tc as h,Wc as g,Xc as Z,Ya as K,Yc as B,Zc as Y,_ as l,_c as O,a as p,aa as st,ab as k,ad as Nt,b as f,bb as v,bd as d,ca as s,cb as Q,da as xt,f as St,gb as jt,ha as z,ib as Pt,ic as Bt,id as Lt,j as x,ja as V,jb as W,k as Ct,kb as Mt,lb as ot,lc as Ot,pa as kt,qa as yt,qb as ct,rb as lt,rd as zt,re as Qt,s as M,sb as mt,sc as Ut,sd as $t,tc as ut,ub as w,va as $,vb as Tt,wb as pt,wc as X,we as qt,x as T,xa as At,xc as ht,xe as Ht,zc as dt,ze as Zt}from"./chunk-64NP6AY6.js";var Yt=D({source:"[Core -> Script]",events:{"Call Script":o(),"Call Script Success":C(),"Call Script Failure":o(),"Fetch Script Status":C(),"Update Script Status":o(),"Fetch Script Status Success":o(),"Fetch Script Status Failure":o(),"Stop Script":C(),"Stop Script Success":C(),"Stop Script Failure":o(),"Get Current or Last Active Script Details":C(),"Get Current or Last Active Script Details Success":o(),"Get Current or Last Active Script Details Failure":o()}});var Jt=h(d,i=>i.script.scriptStatus),te=h(d,i=>i.script.scriptDetails);var ee=(()=>{let t=class t{constructor(e){this.store=e,this.scriptStatus$=this.store.select(Jt),this.scriptDetails$=this.store.select(te)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var E=function(i){return i.SUCCESS="success",i.ERROR="error",i.INFO="info",i.WARNING="warning",i}(E||{});function ve(i,t){if(i&1){let j=jt();k(0,"div",1)(1,"button",2),W("click",function(){kt(j);let n=ot();return yt(n.action())}),w(2),v()()}if(i&2){let j=ot();I(2),pt(" ",j.data.action," ")}}var xe=["label"];function ke(i,t){}var ye=Math.pow(2,31)-1,U=class{constructor(t,j){this._overlayRef=j,this._afterDismissed=new x,this._afterOpened=new x,this._onAction=new x,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,ye))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},tt=new st("MatSnackBarData"),N=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},Ae=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=t;return i})(),Ie=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=t;return i})(),we=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=V({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=t;return i})(),De=(()=>{let t=class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};t.\u0275fac=function(n){return new(n||t)(_(U),_(tt))},t.\u0275cmp=z({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[q],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(k(0,"div",0),w(1),v(),G(2,ve,3,1,"div",1)),n&2&&(I(),pt(" ",r.data.message,` +`),I(),K(r.hasAction?2:-1))},dependencies:[Qt,Ae,Ie,we],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=t;return i})(),Ee={snackBarState:Ut("state",[ht("void, hidden",X({transform:"scale(0.8)",opacity:0})),ht("visible",X({transform:"scale(1)",opacity:1})),dt("* => visible",ut("150ms cubic-bezier(0, 0, 0.2, 1)")),dt("* => void, * => hidden",ut("75ms cubic-bezier(0.4, 0.0, 1, 1)",X({opacity:0})))])},je=0,Pe=(()=>{let t=class t extends Kt{constructor(e,n,r,a,c){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=a,this.snackBarConfig=c,this._document=xt(Ft),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new x,this._onExit=new x,this._onEnter=new x,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${je++}`,this.attachDomPortal=u=>{this._assertNotAttached();let P=this._portalOutlet.attachDomPortal(u);return this._afterPortalAttached(),P},c.politeness==="assertive"&&!c.announcementMessage?this._live="assertive":c.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){let{fromState:n,toState:r}=e;if((r==="void"&&n!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(c=>e.classList.add(c)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,a="mdc-snackbar__label";r.classList.toggle(a,!r.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};t.\u0275fac=function(n){return new(n||t)(_(wt),_(At),_(Rt),_(Lt),_(N))},t.\u0275cmp=z({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(ct(gt,7),ct(xe,7)),n&2){let a;lt(a=mt())&&(r._portalOutlet=a.first),lt(a=mt())&&(r._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&Mt("@state.done",function(c){return r.onAnimationEnd(c)}),n&2&&Pt("@state",r._animationState)},standalone:!0,features:[Dt,q],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(k(0,"div",1)(1,"div",2,0)(3,"div",3),G(4,ke,0,0,"ng-template",4),v(),Q(5,"div"),v()()),n&2&&(I(5),Et("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[gt],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[Ee.snackBarState]}});let i=t;return i})();function Me(){return new N}var Te=new st("mat-snack-bar-default-options",{providedIn:"root",factory:Me}),ie=(()=>{let t=class t{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,n,r,a,c,u){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=a,this._parentSnackBar=c,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=De,this.snackBarContainerComponent=Pe,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let a=p(p({},this._defaultConfig),r);return a.data={message:e,action:n},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=$.create({parent:r||this._injector,providers:[{provide:N,useValue:n}]}),c=new ft(this.snackBarContainerComponent,n.viewContainerRef,a),u=e.attach(c);return u.instance.snackBarConfig=n,u.instance}_attach(e,n){let r=p(p(p({},new N),this._defaultConfig),n),a=this._createOverlay(r),c=this._attachSnackBarContainer(a,r),u=new U(c,a);if(e instanceof It){let P=new Vt(e,null,{$implicit:r.data,snackBarRef:u});u.instance=c.attachTemplatePortal(P)}else{let P=this._createInjector(r,u),Ce=new ft(e,void 0,P),be=c.attachComponentPortal(Ce);u.instance=be.instance}return this._breakpointObserver.observe($t.HandsetPortrait).pipe(vt(a.detachments())).subscribe(P=>{a.overlayElement.classList.toggle(this.handsetCssClass,P.matches)}),r.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(u,r),this._openedSnackBarRef=u,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){let n=new Wt;n.direction=e.direction;let r=this._overlay.position().global(),a=e.direction==="rtl",c=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,u=!c&&e.horizontalPosition!=="center";return c?r.left("0"):u?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return $.create({parent:r||this._injector,providers:[{provide:U,useValue:n},{provide:tt,useValue:e.data}]})}};t.\u0275fac=function(n){return new(n||t)(s(Xt),s(Gt),s($),s(zt),s(t,12),s(Te))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Re(i,t){i&1&&Q(0,"mat-icon",3)}function Fe(i,t){i&1&&Q(0,"mat-icon",4)}function Be(i,t){i&1&&(k(0,"mat-icon",5),w(1,"error_outline"),v())}function Oe(i,t){i&1&&(k(0,"mat-icon",6),w(1,"warning"),v())}var re=(()=>{let t=class t{constructor(e,n){this.bannerRef=e,this.data=n,this.NotificationTypes=E}};t.\u0275fac=function(n){return new(n||t)(_(U),_(tt))},t.\u0275cmp=z({type:t,selectors:[["ms-banner"]],standalone:!0,features:[q],decls:13,vars:2,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"]],template:function(n,r){if(n&1&&(k(0,"div",0)(1,"div",1)(2,"div",2),G(3,Re,1,0,"mat-icon",3)(4,Fe,1,0,"mat-icon",4)(5,Be,2,0,"mat-icon",5)(6,Oe,2,0,"mat-icon",6),v()(),k(7,"div",7)(8,"div"),w(9),v()(),k(10,"div",8)(11,"mat-icon",9),W("click",function(){return r.bannerRef.dismiss()}),w(12,"clear"),v()()()),n&2){let a;I(3),K((a=r.data.notificationType)===r.NotificationTypes.SUCCESS?3:a===r.NotificationTypes.INFO?4:a===r.NotificationTypes.ERROR?5:a===r.NotificationTypes.WARNING?6:-1),I(6),Tt(r.data.message)}},dependencies:[Ht,qt],styles:[".banner[_ngcontent-%COMP%]{display:flex;width:100%}.banner[_ngcontent-%COMP%] .banner-left-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-middle-container[_ngcontent-%COMP%]{flex:0 1 90%;margin:2px 10px}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let i=t;return i})();var Ue=5e3,ae=5e3,Ne=1e4,se=(()=>{let t=class t{constructor(e){this.snackbar=e}showSuccess(e){this.showBanner(e,E.SUCCESS,Ue,"notification-panel-success")}showInfo(e){this.showBanner(e,E.INFO,ae,"notification-panel-info")}showError(e){this.showBanner(e,E.ERROR,Ne,"notification-panel-error")}showWarning(e){this.showBanner(e,E.WARNING,ae,"notification-panel-warning")}showBanner(e,n,r,a){this.snackbar.openFromComponent(re,{duration:r,data:{message:e,notificationType:n},panelClass:a})}};t.\u0275fac=function(n){return new(n||t)(s(ie))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var m=D({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":C(),"Get Current Pruning Chart Data Success":o(),"Get Current Pruning Chart Data Failure":o(),"Get Current Quantization Chart Data":C(),"Get Current Quantization Chart Data Success":o(),"Get Current Quantization Chart Data Failure":o(),"Get Current Machine Unlearning Chart Data":C(),"Get Current Machine Unlearning Chart Data Success":o(),"Get Current Machine Unlearning Chart Data Failure":o(),"Get Chart Configuration Settings":o(),"Get Chart Configuration Settings Success":o(),"Get Chart Configuration Settings Failure":o()}});var et=class extends y{constructor(t){let j=`type=${t.join(",")}`;super(`chart-configuration-settings?${j}`,void 0,void 0,!1)}};var it=class extends y{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var nt=class extends y{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var rt=class extends y{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var en=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getCurrentPruningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentPruningChartData),F(()=>this.apiClient.serviceCall(new nt).pipe(T(r=>m.getCurrentPruningChartDataSuccess({pruningProgress:r})),R(r=>M(m.getCurrentPruningChartDataFailure({error:r}))))))),this.getCurrentQuantizationChartData$=B(()=>this.actions$.pipe(O(m.getCurrentQuantizationChartData),F(()=>this.apiClient.serviceCall(new rt).pipe(T(r=>m.getCurrentQuantizationChartDataSuccess({quantizationProgress:r})),R(r=>M(m.getCurrentQuantizationChartDataFailure({error:r}))))))),this.getCurrentMachineUnlearningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentMachineUnlearningChartData),F(()=>this.apiClient.serviceCall(new it).pipe(T(r=>m.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:r})),R(r=>M(m.getCurrentMachineUnlearningChartDataFailure({error:r}))))))),this.getChartConfigurationSettings$=B(()=>this.actions$.pipe(O(m.getChartConfigurationSettings),F(r=>this.apiClient.serviceCall(new et(r.chartTypes)).pipe(T(a=>m.getChartConfigurationSettingsSuccess({settings:a})),R(a=>M(m.getChartConfigurationSettingsFailure({error:a})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var $e={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},sn=Z($e,g(m.getCurrentPruningChartDataSuccess,(i,{pruningProgress:t})=>f(p({},i),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),g(m.getCurrentPruningChartDataFailure,(i,{error:t})=>f(p({},i),{pruningProgress:[],error:t})),g(m.getCurrentQuantizationChartDataSuccess,(i,{quantizationProgress:t})=>f(p({},i),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),g(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>f(p({},i),{quantizationProgress:void 0,error:t})),g(m.getCurrentMachineUnlearningChartDataSuccess,(i,{machineUnlearningProgress:t})=>f(p({},i),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),g(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>f(p({},i),{quantizationProgress:void 0,error:t})),g(m.getCurrentPruningChartDataFailure,(i,{error:t})=>f(p({},i),{pruningProgress:[],error:t})),g(m.getChartConfigurationSettingsSuccess,(i,{settings:t})=>f(p({},i),{settings:p(p({},i.settings),t),error:null})),g(m.getChartConfigurationSettingsFailure,(i,{error:t})=>f(p({},i),{error:t})));var oe=h(d,i=>i.charts.pruningProgress),ce=h(d,i=>i.charts.quantizationProgress),le=h(d,i=>i.charts.machineUnlearningProgress),me=h(d,i=>i.charts.settings);var bn=(()=>{let t=class t{constructor(e){this.store=e,this.pruningProgress=this.store.select(oe),this.quantizationProgress$=this.store.select(ce),this.machineUnlearningProgress$=this.store.select(le),this.settings$=this.store.select(me)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var pe=D({source:"[Core -> File]",events:{"Upload File":o(),"Upload File Success":o(),"Upload File Failure":o(),"Upload File and Call Script":o()}});var ue=(()=>{let t=class t{constructor(e){this.store=e}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var An=(()=>{let t=class t{constructor(e,n){this.bannerService=e,this.fileFacadeService=n,this._fileSubject=new Ct(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(e){this._fileSubject.next(e)}get file(){return this._fileSubject.value}clearFile(){this._fileSubject.next(null)}uploadFile(){if(!this.file){this.bannerService.showError("No file to upload.");return}this.fileFacadeService.dispatch(pe.uploadFile({file:this.file}))}};t.\u0275fac=function(n){return new(n||t)(s(se),s(ue))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Pn=(()=>{let t=class t{constructor(e){this.router=e,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(_t(e=>e instanceof Bt)).subscribe(e=>{this.history.push(e.urlAfterRedirects)})}addInitialUrl(){let e=this.router.url;this.history.push(e)}goToPreviousPage(e=Nt.MODEL_COMPRESSION.ROOT){let n=this.getPreviousUrl();n==="/"?this.router.navigateByUrl(`/${e}`):this.router.navigateByUrl(n)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(n){return new(n||t)(s(Ot))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var he=h(d,i=>i.parameters);var On=(()=>{let t=class t{constructor(e){this.store=e,this.parameters$=this.store.select(he)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var de=h(d,i=>i.statistics.statistics);var fe=(()=>{let t=class t{constructor(e){this.store=e,this.statistics$=this.store.select(de)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var ge=h(d,i=>i.terminal.messages),Se=h(d,i=>i.terminal.allMessages);var Vn=(()=>{let t=class t{constructor(e){this.store=e,this.messages$=this.store.select(ge),this.allMessages$=this.store.select(Se)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var A=D({source:"[Core -> Statistics]",events:{"Get Statistics":C(),"Get Statistics Success":o(),"Get Statistics Failure":o(),"Update Statistics":o()}});var at=class extends y{constructor(){super("statistics",void 0,void 0,!1)}};var rr=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getStatistics=B(()=>this.actions$.pipe(O(A.getStatistics),F(()=>this.apiClient.serviceCall(new at).pipe(T(r=>A.getStatisticsSuccess({statistics:r})),R(r=>M(A.getStatisticsFailure({error:r})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var qe={statistics:{},error:null},cr=Z(qe,g(A.getStatisticsSuccess,(i,{statistics:t})=>f(p({},i),{statistics:t,error:null})),g(A.getStatisticsFailure,(i,{error:t})=>f(p({},i),{error:t})),g(A.updateStatistics,(i,{statistics:t})=>f(p({},i),{statistics:t,error:null})));var L=function(i){return i.TERMINAL="terminal",i.SCRIPT_STATUS="script_status",i.STATISTICS="statistics",i.CHARTS_PREFIX="chart_",i}(L||{}),He=function(i){return i.UPDATE_TESTING="chart_updateTesting",i.UPDATE_LATEST_VALUE="chart_updateLatestValue",i.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",i}(He||{});var Ar=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(e,n){this.scriptFacadeService=e,this.statisticsFacadeService=n,this.terminalMessagesSubject=new x,this.chartsMessagesSubject=new x,this.connect()}connect(){this.close(),this.socket=new WebSocket(Zt.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=e=>St(this,null,function*(){let n=JSON.parse(e.data),{topic:r="",data:a}=n;switch(r){case L.TERMINAL:this.terminalMessagesSubject.next(a);break;case L.SCRIPT_STATUS:this.scriptFacadeService.dispatch(Yt.updateScriptStatus({status:a}));break;case L.STATISTICS:let{statistics:c}=a||{};this.statisticsFacadeService.dispatch(A.updateStatistics({statistics:c}));break;default:r.startsWith(L.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:r,data:a}):console.warn("Unknown message type:",r)}}),this.socket.onerror=e=>{console.error("WebSocket Error:",e)},this.socket.onclose=e=>{e.wasClean?console.log(`Closed cleanly, code=${e.code}, reason=${e.reason}`):console.error("Connection died"),bt(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(e){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(e)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(n){return new(n||t)(s(ee),s(fe))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();export{Yt as a,ee as b,se as c,m as d,en as e,sn as f,bn as g,ue as h,pe as i,An as j,Pn as k,On as l,fe as m,Vn as n,A as o,rr as p,cr as q,He as r,Ar as s}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QVMVB2QY.js b/frontend/server/modelsmith-build/browser/chunk-QVMVB2QY.js new file mode 100644 index 00000000..39a6a9c1 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QVMVB2QY.js @@ -0,0 +1 @@ +import{b as st,n as nt,p as rt,s as m,v as at}from"./chunk-W4S57J6B.js";import{$ as C,Ba as M,Bb as B,Bd as it,Cd as et,Dd as ot,Ea as S,Fa as r,Hd as w,Ka as x,Lb as Z,Ma as N,Na as k,Qb as $,Sa as V,Sb as Q,T as h,Ta as Y,Ua as v,_b as W,a as d,aa as u,ab as y,bb as j,cd as T,da as g,dd as I,gb as H,ha as P,ia as E,id as q,j as f,ja as R,jb as b,kd as K,pa as A,pd as J,qa as O,qb as z,rb as F,sb as X,ub as G,va as L,vb as U,vd as tt,xa as p}from"./chunk-64NP6AY6.js";var ut=["tooltip"],ct=20;var dt=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}});function gt(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}var vt={provide:dt,deps:[m],useFactory:gt};function yt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var bt=new u("mat-tooltip-default-options",{providedIn:"root",factory:yt});var lt="tooltip-panel",ht=K({passive:!0}),Tt=8,It=8,wt=24,Dt=200,Kt=(()=>{let s=class s{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=T(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,o,n,c,_,pt,mt,D,l,_t){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=o,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=pt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Ct,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f,this._injector=g(L),this._scrollStrategy=mt,this._document=_t,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Tt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new st(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=e.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!J(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),o.main)),this._addOffset(d(d({},e.fallback),o.fallback))])}_addOffset(t){let i=It,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),N(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:o}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${lt}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,e),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}};s.\u0275fac=function(i){return new(i||s)(r(m),r(p),r(nt),r(k),r(x),r(q),r(tt),r(it),r(dt),r(ot),r(bt,8),r($))},s.\u0275dir=R({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let a=s;return a})(),Ct=(()=>{let s=class s{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>wt&&t.width>=Dt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:e),i.classList.add(t?e:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};s.\u0275fac=function(i){return new(i||s)(r(Z),r(p),r(M,8))},s.\u0275cmp=P({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&z(ut,7),i&2){let o;F(o=X())&&(e._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)}),i&2&&Y("zoom",e.isVisible()?1:null)},standalone:!0,features:[B],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,e){if(i&1){let o=H();y(0,"div",1,0),b("animationend",function(c){return A(o),O(e._handleAnimationEnd(c))}),y(2,"div",2),G(3),j()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),S(3),U(e.message))},dependencies:[Q],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let a=s;return a})();var Jt=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=E({type:s}),s.\u0275inj=C({providers:[vt],imports:[et,W,at,w,w,rt]});let a=s;return a})();export{Kt as a,Jt as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QVPAEFCW.js b/frontend/server/modelsmith-build/browser/chunk-QVPAEFCW.js new file mode 100644 index 00000000..552d8936 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QVPAEFCW.js @@ -0,0 +1,3 @@ +import{a as B,b as Ut,c as tn,d as Le,e as H,f as U,h as be,i as wt}from"./chunk-7WTGJY2P.js";import{a as Me}from"./chunk-AKLXM26R.js";import{a as ga,b as fa}from"./chunk-TP3SZI6Y.js";import"./chunk-MK5CNTNK.js";import{b as ye,c as At}from"./chunk-LRK34XDC.js";import{a as Ce,c as we}from"./chunk-XX6ZYDLH.js";import{a as Se,b as pa}from"./chunk-YPMBMI5J.js";import{a as Zt,b as kt,d as Ct,g as $t,k as va,m as _a,o as ya}from"./chunk-QTJZRTNN.js";import{a as yt,b as Ot}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import{$ as ue,$a as Zn,Db as ia,E as st,Ea as I,Fa as W,Fb as ge,Gb as fe,J as Q,Ja as qn,Q as Z,Qa as at,Sa as R,Xb as ra,Ya as it,Za as Kn,Zb as oa,_a as Qn,_b as sa,a as E,ab as w,b as D,bb as v,be as ca,cb as A,f as S,gb as Jn,ge as la,ha as X,ia as me,jb as Rt,ka as Yn,lb as dt,p as ht,pa as Gn,pc as Je,pe as ha,qa as Vn,qb as ta,qe as da,rb as ea,re as ve,sb as na,ub as L,ue as ua,vb as aa,wb as pe,we as _e,xa as Xn,xb as Ke,xe as ma,yb as Qe,zb as Ze}from"./chunk-64NP6AY6.js";var Mi=Object.defineProperty,Li=(s,n,a)=>n in s?Mi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,x=(s,n,a)=>Li(s,typeof n!="symbol"?n+"":n,a),bi=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Ai=class{constructor(){x(this,"_lastHandleId",0),x(this,"_lastImmediate",null)}requestAnimationFrame(s){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{s(Date.now())}),this._lastHandleId}cancelAnimationFrame(s){this._lastImmediate&&clearImmediate(this._lastImmediate)}},Ii=class{constructor(){x(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new bi:new Ai}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Pt=typeof window<"u"&&typeof window.document<"u",Ae={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},Pi=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,y=new Promise((t,e)=>{c=t,p=e}),Y=Object.assign({},a),ot="./this.program",V="";typeof document<"u"&&document.currentScript&&(V=document.currentScript.src),s&&(V=s),V.startsWith("blob:")?V="":V=V.substr(0,V.replace(/[?#].*/,"").lastIndexOf("/")+1);var Et=a.print||console.log.bind(console),xt=a.printErr||console.error.bind(console);Object.assign(a,Y),Y=null,a.thisProgram&&(ot=a.thisProgram);var Nt;a.wasmBinary&&(Nt=a.wasmBinary);var ee,hn=!1,St,O,Ft,jt,z,F,dn,un;function mn(){var t=ee.buffer;a.HEAP8=St=new Int8Array(t),a.HEAP16=Ft=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=jt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=F=new Uint32Array(t),a.HEAPF32=dn=new Float32Array(t),a.HEAPF64=un=new Float64Array(t)}var pn=[],gn=[],fn=[];function ka(){var t=a.preRun.shift();pn.unshift(t)}var Mt=0,zt=null;function ne(t){throw a.onAbort?.(t),t="Aborted("+t+")",xt(t),hn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var vn=t=>t.startsWith("data:application/octet-stream;base64,"),Dt;if(Dt="DotLottiePlayer.wasm",!vn(Dt)){var _n=Dt;Dt=a.locateFile?a.locateFile(_n,V):V+_n}function yn(t){if(t==Dt&&Nt)return new Uint8Array(Nt);throw"both async and sync fetching of the wasm failed"}function $a(t){return Nt||typeof fetch!="function"?Promise.resolve().then(()=>yn(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>yn(t))}function Cn(t,e,i){return $a(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{xt(`failed to asynchronously prepare wasm: ${r}`),ne(r)})}function Ua(t,e){var i=Dt;return Nt||typeof WebAssembly.instantiateStreaming!="function"||vn(i)||typeof fetch!="function"?Cn(i,t,e):fetch(i,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(e,function(o){return xt(`wasm streaming compile failed: ${o}`),xt("falling back to ArrayBuffer instantiation"),Cn(i,t,e)}))}var Fe=t=>{for(;0{var r=e+i;for(i=e;t[i]&&!(i>=r);)++i;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r};class Wa{constructor(e){this.ya=e-24}}var Sn=0,Mn=t=>{for(var e=0,i=0;i=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++i):e+=3}return e},Ln=(t,e,i,r)=>{if(0=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(127>=l){if(i>=r)break;e[i++]=l}else{if(2047>=l){if(i+1>=r)break;e[i++]=192|l>>6}else{if(65535>=l){if(i+2>=r)break;e[i++]=224|l>>12}else{if(i+3>=r)break;e[i++]=240|l>>18,e[i++]=128|l>>12&63}e[i++]=128|l>>6&63}e[i++]=128|l&63}}e[i]=0}},ae={},De=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Bt(t){return this.fromWireType(F[t>>2])}var Tt={},bt={},ie={},Ht,vt=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Ht("Mismatched type converter count");for(var g=0;g{bt.hasOwnProperty(d)?o[g]=bt[d]:(l.push(d),Tt.hasOwnProperty(d)||(Tt[d]=[]),Tt[d].push(()=>{o[g]=bt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},bn,N=t=>{for(var e="";O[t];)e+=bn[O[t++]];return e},M;function Na(t,e,i={}){var r=e.name;if(!t)throw new M(`type "${r}" must have a positive integer typeid pointer`);if(bt.hasOwnProperty(t)){if(i.ib)return;throw new M(`Cannot register type '${r}' twice`)}bt[t]=e,delete ie[t],Tt.hasOwnProperty(t)&&(e=Tt[t],delete Tt[t],e.forEach(o=>o()))}function J(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Na(t,e,i)}var Te=t=>{throw new M(t.ma.za.xa.name+" instance already deleted")},Re=!1,An=()=>{},In=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=In(t,e,i.Ca),t===null?null:i.ab(t)),Pn={},Yt=[],Oe=()=>{for(;Yt.length;){var t=Yt.pop();t.ma.Ka=!1,t.delete()}},Gt,Vt={},ja=(t,e)=>{if(e===void 0)throw new M("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return Vt[e]},re=(t,e)=>{if(!e.za||!e.ya)throw new Ht("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Ht("Both smartPtrType and smartPtr must be specified");return e.count={value:1},Xt(Object.create(t,{ma:{value:e,writable:!0}}))},Xt=t=>typeof FinalizationRegistry>"u"?(Xt=e=>e,t):(Re=new FinalizationRegistry(e=>{e=e.ma,--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya))}),Xt=e=>{var i=e.ma;return i.Aa&&Re.register(e,{ma:i},e),e},An=e=>{Re.unregister(e)},Xt(t));function oe(){}var qt=(t,e)=>Object.defineProperty(e,"name",{value:t}),En=(t,e,i)=>{if(t[e].Ba===void 0){var r=t[e];t[e]=function(...o){if(!t[e].Ba.hasOwnProperty(o.length))throw new M(`Function '${i}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].Ba})!`);return t[e].Ba[o.length].apply(this,o)},t[e].Ba=[],t[e].Ba[r.Oa]=r}},ke=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new M(`Cannot register public name '${t}' twice`);if(En(a,t,t),a.hasOwnProperty(i))throw new M(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);a[t].Ba[i]=e}else a[t]=e,i!==void 0&&(a[t].vb=i)},za=t=>{if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t};function Ba(t,e,i,r,o,l,u,d){this.name=t,this.constructor=e,this.La=i,this.Fa=r,this.Ca=o,this.cb=l,this.Na=u,this.ab=d,this.kb=[]}var $e=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new M(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function Ha(t,e){if(e===null){if(this.Ta)throw new M(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(e.ma.ya,e.ma.za.xa,this.xa)}function Ya(t,e){if(e===null){if(this.Ta)throw new M(`null is not a valid ${this.name}`);if(this.Qa){var i=this.Ua();return t!==null&&t.push(this.Fa,i),i}return 0}if(!e||!e.ma)throw new M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new M(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=$e(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new M("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(e.ma.Da===this)i=e.ma.Aa;else throw new M(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);break;case 1:i=e.ma.Aa;break;case 2:if(e.ma.Da===this)i=e.ma.Aa;else{var r=e.clone();i=this.lb(i,ce(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new M("Unsupporting sharing policy")}}return i}function Ga(t,e){if(e===null){if(this.Ta)throw new M(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new M(`Cannot pass "${He(e)}" as a ${this.name}`);if(!e.ma.ya)throw new M(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new M(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return $e(e.ma.ya,e.ma.za.xa,this.xa)}function Kt(t,e,i,r,o,l,u,d,g,m,f){this.name=t,this.xa=e,this.Ta=i,this.Pa=r,this.Qa=o,this.jb=l,this.pb=u,this.Za=d,this.Ua=g,this.lb=m,this.Fa=f,o||e.Ca!==void 0?this.toWireType=Ya:(this.toWireType=r?Ha:Ga,this.Ea=null)}var xn=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Ht("Replacing nonexistent public symbol");a[t].Ba!==void 0&&i!==void 0?a[t].Ba[i]=e:(a[t]=e,a[t].Oa=i)},K,Va=(t,e,i=[])=>(t.includes("j")?(t=t.replace(/p/g,"i"),e=(0,a["dynCall_"+t])(e,...i)):e=K.get(e)(...i),e),Xa=(t,e)=>(...i)=>Va(t,e,i),G=(t,e)=>{t=N(t);var i=t.includes("j")?Xa(t,e):K.get(e);if(typeof i!="function")throw new M(`unknown function pointer with signature ${t}: ${e}`);return i},Fn,Dn=t=>{t=jn(t);var e=N(t);return lt(t),e},se=(t,e)=>{function i(l){o[l]||bt[l]||(ie[l]?ie[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Fn(`${t}: `+r.map(Dn).join([", "]))},Ue=(t,e)=>{for(var i=[],r=0;r>2]);return i};function qa(t){for(var e=1;el)throw new M("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=qa(e),g=e[0].name!=="void",m=l-2,f=Array(m),b=[],P=[];return qt(t,function(...h){if(h.length!==m)throw new M(`function ${t} called with ${h.length} arguments, expected ${m}`);if(P.length=0,b.length=u?2:1,b[0]=o,u){var _=e[1].toWireType(P,this);b[1]=_}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ne=[],ct=[],je=t=>{9{if(!t)throw new M("Cannot use deleted val. handle = "+t);return ct[t]},ce=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ne.pop()||ct.length;return ct[e]=t,ct[e+1]=1,e}},Rn={name:"emscripten::val",fromWireType:t=>{var e=ze(t);return je(t),e},toWireType:(t,e)=>ce(e),argPackAdvance:8,readValueFromPointer:Bt,Ea:null},Ka=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(St[r])}:function(r){return this.fromWireType(O[r])};case 2:return i?function(r){return this.fromWireType(Ft[r>>1])}:function(r){return this.fromWireType(jt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(F[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Be=(t,e)=>{var i=bt[t];if(i===void 0)throw t=`${e} has unknown type ${Dn(t)}`,new M(t);return i},He=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},Qa=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(dn[i>>2])};case 8:return function(i){return this.fromWireType(un[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Za=(t,e,i)=>{switch(e){case 1:return i?r=>St[r]:r=>O[r];case 2:return i?r=>Ft[r>>1]:r=>jt[r>>1];case 4:return i?r=>z[r>>2]:r=>F[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},On=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Ja=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&jt[i];)++i;if(i<<=1,32=e/2);++r){var o=Ft[t+2*r>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},ti=(t,e,i)=>{if(i??(i=2147483647),2>i)return 0;i-=2;var r=e;i=i<2*t.length?i/2:t.length;for(var o=0;o>1]=t.charCodeAt(o),e+=2;return Ft[e>>1]=0,e-r},ei=t=>2*t.length,ni=(t,e)=>{for(var i=0,r="";!(i>=e/4);){var o=z[t+4*i>>2];if(o==0)break;++i,65536<=o?(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):r+=String.fromCharCode(o)}return r},ai=(t,e,i)=>{if(i??(i=2147483647),4>i)return 0;var r=e;i=r+i-4;for(var o=0;o=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(z[e>>2]=l,e+=4,e+4>i)break}return z[e>>2]=0,e-r},ii=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ye=[],ri=t=>{var e=Ye.length;return Ye.push(t),e},oi=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},si=Reflect.construct,Ge={},kn=()=>{if(!Ve){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ot||"./this.program"},e;for(e in Ge)Ge[e]===void 0?delete t[e]:t[e]=Ge[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);Ve=i}return Ve},Ve,ci=[null,[],[]],li=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ne("initRandomDevice")},$n=t=>($n=li())(t),le=t=>t%4===0&&(t%100!==0||t%400===0),Un=[31,29,31,30,31,30,31,31,30,31,30,31],Wn=[31,28,31,30,31,30,31,31,30,31,30,31];function hi(t){var e=Array(Mn(t)+1);return Ln(t,e,0,e.length),e}var di=(t,e,i,r)=>{function o(h,_,C){for(h=typeof h=="number"?h.toString():h||"";h.length<_;)h=C[0]+h;return h}function l(h,_){return o(h,_,"0")}function u(h,_){function C(_t){return 0>_t?-1:0<_t?1:0}var $;return($=C(h.getFullYear()-_.getFullYear()))===0&&($=C(h.getMonth()-_.getMonth()))===0&&($=C(h.getDate()-_.getDate())),$}function d(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function g(h){var _=h.Ia;for(h=new Date(new Date(h.Ja+1900,0,1).getTime());0<_;){var C=h.getMonth(),$=(le(h.getFullYear())?Un:Wn)[C];if(_>$-h.getDate())_-=$-h.getDate()+1,h.setDate(1),11>C?h.setMonth(C+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+_);break}}return C=new Date(h.getFullYear()+1,0,4),_=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(_,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=F[r+40>>2];r={sb:z[r>>2],rb:z[r+4>>2],Ra:z[r+8>>2],Va:z[r+12>>2],Sa:z[r+16>>2],Ja:z[r+20>>2],Ga:z[r+24>>2],Ia:z[r+28>>2],wb:z[r+32>>2],qb:z[r+36>>2],tb:m&&m?Lt(O,m):""},i=i?Lt(O,i):"",m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in m)i=i.replace(new RegExp(f,"g"),m[f]);var b="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),P="January February March April May June July August September October November December".split(" ");m={"%a":h=>b[h.Ga].substring(0,3),"%A":h=>b[h.Ga],"%b":h=>P[h.Sa].substring(0,3),"%B":h=>P[h.Sa],"%C":h=>l((h.Ja+1900)/100|0,2),"%d":h=>l(h.Va,2),"%e":h=>o(h.Va,2," "),"%g":h=>g(h).toString().substring(2),"%G":g,"%H":h=>l(h.Ra,2),"%I":h=>(h=h.Ra,h==0?h=12:12{for(var _=0,C=0;C<=h.Sa-1;_+=(le(h.Ja+1900)?Un:Wn)[C++]);return l(h.Va+_,3)},"%m":h=>l(h.Sa+1,2),"%M":h=>l(h.rb,2),"%n":()=>` +`,"%p":h=>0<=h.Ra&&12>h.Ra?"AM":"PM","%S":h=>l(h.sb,2),"%t":()=>" ","%u":h=>h.Ga||7,"%U":h=>l(Math.floor((h.Ia+7-h.Ga)/7),2),"%V":h=>{var _=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&_++,_)_==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&le(h.Ja)||(_=1));else{_=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&le(h.Ja%400-1))&&_++}return l(_,2)},"%w":h=>h.Ga,"%W":h=>l(Math.floor((h.Ia+7-(h.Ga+6)%7)/7),2),"%y":h=>(h.Ja+1900).toString().substring(2),"%Y":h=>h.Ja+1900,"%z":h=>{h=h.qb;var _=0<=h;return h=Math.abs(h)/60,(_?"+":"-")+("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.tb,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0");for(f in m)i.includes(f)&&(i=i.replace(new RegExp(f,"g"),m[f](r)));return i=i.replace(/\0\0/g,"%"),f=hi(i),f.length>e?0:(St.set(f,t),f.length-1)};Ht=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Nn=Array(256),he=0;256>he;++he)Nn[he]=String.fromCharCode(he);bn=Nn,M=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(oe.prototype,{isAliasOf:function(t){if(!(this instanceof oe&&t instanceof oe))return!1;var e=this.ma.za.xa,i=this.ma.ya;t.ma=t.ma;var r=t.ma.za.xa;for(t=t.ma.ya;e.Ca;)i=e.Na(i),e=e.Ca;for(;r.Ca;)t=r.Na(t),r=r.Ca;return e===r&&i===t},clone:function(){if(this.ma.ya||Te(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=Xt,e=Object,i=e.create,r=Object.getPrototypeOf(this),o=this.ma;return t=t(i.call(e,r,{ma:{value:{count:o.count,Ka:o.Ka,Ma:o.Ma,ya:o.ya,za:o.za,Aa:o.Aa,Da:o.Da}}})),t.ma.count.value+=1,t.ma.Ka=!1,t},delete(){if(this.ma.ya||Te(this),this.ma.Ka&&!this.ma.Ma)throw new M("Object already scheduled for deletion");An(this);var t=this.ma;--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0)},isDeleted:function(){return!this.ma.ya},deleteLater:function(){if(this.ma.ya||Te(this),this.ma.Ka&&!this.ma.Ma)throw new M("Object already scheduled for deletion");return Yt.push(this),Yt.length===1&&Gt&&Gt(Oe),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(Vt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in Vt)Vt.hasOwnProperty(e)&&t.push(Vt[e]);return t},a.flushPendingDeletes=Oe,a.setDelayFunction=t=>{Gt=t,Yt.length&&Gt&&Gt(Oe)},Object.assign(Kt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Bt,fromWireType:function(t){function e(){return this.Qa?re(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):re(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=ja(this.xa,i);if(r!==void 0)return r.ma.count.value===0?(r.ma.ya=i,r.ma.Aa=t,r.clone()):(r=r.clone(),this.Xa(t),r);if(r=this.xa.cb(i),r=Pn[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=In(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?re(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):re(r.xa.La,{za:r,ya:o})}}),Fn=a.UnboundTypeError=((t,e)=>{var i=qt(e,function(r){this.name=e,this.message=r,r=Error(r).stack,r!==void 0&&(this.stack=this.toString()+` +`+r.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i})(Error,"UnboundTypeError"),ct.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>ct.length/2-5-Ne.length;var ui={c:(t,e,i,r)=>{ne(`Assertion failed: ${t?Lt(O,t):""}, at: `+[e?e?Lt(O,e):"":"unknown filename",i,r?r?Lt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Wa(t);throw F[r.ya+16>>2]=0,F[r.ya+4>>2]=e,F[r.ya+8>>2]=i,Sn=t,Sn},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=ae[t];delete ae[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));vt([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],b=g.fb,P=g.gb,h=u[m+o.length],_=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(b(P,$)),write:($,_t)=>{var q=[];_(C,$,h.toWireType(q,_t)),De(q)}}}),[{name:e.name,fromWireType:g=>{var m={},f;for(f in d)m[f]=d[f].read(g);return r(g),m},toWireType:(g,m)=>{for(var f in d)if(!(f in m))throw new TypeError(`Missing field: "${f}"`);var b=i();for(f in d)d[f].write(b,m[f]);return g!==null&&g.push(r,b),b},argPackAdvance:8,readValueFromPointer:Bt,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),J(t,{name:e,fromWireType:function(o){return!!o},toWireType:function(o,l){return l?i:r},argPackAdvance:8,readValueFromPointer:function(o){return this.fromWireType(O[o])},Ea:null})},r:(t,e,i,r,o,l,u,d,g,m,f,b,P)=>{f=N(f),l=G(o,l),d&&(d=G(u,d)),m&&(m=G(g,m)),P=G(b,P);var h=za(f);ke(h,function(){se(`Cannot construct ${f} due to unbound types`,[r])}),vt([t,e,i],r?[r]:[],_=>{if(_=_[0],r)var C=_.xa,$=C.La;else $=oe.prototype;_=qt(f,function(...qe){if(Object.getPrototypeOf(this)!==_t)throw new M("Use 'new' to construct "+f);if(q.Ha===void 0)throw new M(f+" has no accessible constructor");var Hn=q.Ha[qe.length];if(Hn===void 0)throw new M(`Tried to invoke ctor of ${f} with invalid number of parameters (${qe.length}) - expected (${Object.keys(q.Ha).toString()}) parameters instead!`);return Hn.apply(this,qe)});var _t=Object.create($,{constructor:{value:_}});_.prototype=_t;var q=new Ba(f,_,_t,P,C,l,d,m);if(q.Ca){var Qt;(Qt=q.Ca).Wa??(Qt.Wa=[]),q.Ca.Wa.push(q)}return C=new Kt(f,q,!0,!1,!1),Qt=new Kt(f+"*",q,!1,!1,!1),$=new Kt(f+" const*",q,!1,!0,!1),Pn[t]={pointerType:Qt,$a:$},xn(h,_),[C,Qt,$]})},q:(t,e,i,r,o,l)=>{var u=Ue(e,i);o=G(r,o),vt([],[t],d=>{d=d[0];var g=`constructor ${d.name}`;if(d.xa.Ha===void 0&&(d.xa.Ha=[]),d.xa.Ha[e-1]!==void 0)throw new M(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.xa.Ha[e-1]=()=>{se(`Cannot construct ${d.name} due to unbound types`,u)},vt([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=We(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ue(i,r);e=N(e),e=Tn(e),l=G(o,l),vt([],[t],m=>{function f(){se(`Cannot call ${b} due to unbound types`,g)}m=m[0];var b=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var P=m.xa.La,h=P[e];return h===void 0||h.Ba===void 0&&h.className!==m.name&&h.Oa===i-2?(f.Oa=i-2,f.className=m.name,P[e]=f):(En(P,e,b),P[e].Ba[i-2]=f),vt([],g,_=>(_=We(b,_,m,l,u),P[e].Ba===void 0?(_.Oa=i-2,P[e]=_):P[e].Ba[i-2]=_,[])),[]})},X:t=>J(t,Rn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},J(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:Ka(e,i,r),Ea:null}),ke(e,o)},k:(t,e,i)=>{var r=Be(t,"enum");e=N(e),t=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:i},constructor:{value:qt(`${r.name}_${e}`,function(){})}}),t.values[i]=r,t[e]=r},C:(t,e,i)=>{e=N(e),J(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:Qa(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ue(e,i);t=N(t),t=Tn(t),o=G(r,o),ke(t,function(){se(`Cannot call ${t} due to unbound types`,u)},e-1),vt([],u,d=>(xn(t,We(t,[d[0],null].concat(d.slice(1)),null,o,l),e-1),[]))},l:(t,e,i,r,o)=>{if(e=N(e),o===-1&&(o=4294967295),o=d=>d,r===0){var l=32-8*i;o=d=>d<>>l}var u=e.includes("unsigned")?function(d,g){return g>>>0}:function(d,g){return g};J(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:Za(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(St.buffer,F[l+4>>2],F[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),J(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{J(t,Rn)},ca:(t,e,i,r,o,l,u,d,g,m,f,b)=>{i=N(i),l=G(o,l),d=G(u,d),m=G(g,m),b=G(f,b),vt([t],[e],P=>(P=P[0],[new Kt(i,P.xa,!1,!1,!0,P,r,l,d,m,b)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";J(t,{name:e,fromWireType:function(r){var o=F[r>>2],l=r+4;if(i)for(var u=l,d=0;d<=o;++d){var g=l+d;if(d==o||O[g]==0){if(u=u?Lt(O,u,g-u):"",m===void 0)var m=u;else m+="\0",m+=u;u=g+1}}else{for(m=Array(o),d=0;d>2]=u,i&&l)Ln(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=Ja,o=ti,l=ei,u=d=>jt[d>>1];else e===4&&(r=ni,o=ai,l=ii,u=d=>F[d>>2]);J(t,{name:i,fromWireType:d=>{for(var g=F[d>>2],m,f=d+4,b=0;b<=g;++b){var P=d+4+b*e;(b==g||u(P)==0)&&(f=r(f,P-f),m===void 0?m=f:(m+="\0",m+=f),f=P+e)}return lt(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new M(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=Xe(4+m+e);return F[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(lt,f),f},argPackAdvance:8,readValueFromPointer:Bt,Ea(d){lt(d)}})},s:(t,e,i,r,o,l)=>{ae[t]={name:N(e),Ua:G(i,r),Fa:G(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{ae[t].Ya.push({bb:N(e),hb:i,fb:G(r,o),gb:l,nb:u,mb:G(d,g),ob:m})},Z:(t,e)=>{e=N(e),J(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ye[t],e=ze(e),t(null,e,i,r)),F:je,$:(t,e,i)=>{var r=oi(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,ri(qt(e,(u,d,g,m)=>{for(var f=0,b=0;b>2]=ce(u)),d}))},ba:t=>{9{var e=ze(t);De(e),je(t)},o:(t,e)=>(t=Be(t,"_emval_take_value"),t=t.readValueFromPointer(e),ce(t)),W:()=>{ne("")},V:()=>performance.now(),L:t=>{var e=O.length;if(t>>>=0,2147483648=i;i*=2){var r=e*(1+.2/i);r=Math.min(r,t+100663296);var o=Math;r=Math.max(t,r);t:{o=(o.min.call(o,2147483648,r+(65536-r%65536)%65536)-ee.buffer.byteLength+65535)/65536;try{ee.grow(o),mn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return kn().forEach((r,o)=>{var l=e+i;for(o=F[t+4*o>>2]=l,l=0;l{var i=kn();F[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),F[e>>2]=r,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(t,e,i,r)=>{for(var o=0,l=0;l>2],d=F[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>($n(O.subarray(t,t+e)),0),i:vi,d:fi,e:gi,p:_i,y:wi,b:mi,a:pi,h:Ci,n:yi,G:Si,K:(t,e,i,r)=>di(t,e,i,r)},k=function(){function t(i){return k=i.exports,ee=k.da,mn(),K=k.ha,gn.unshift(k.ea),Mt--,a.monitorRunDependencies?.(Mt),Mt==0&&zt&&(i=zt,zt=null,i()),k}var e={a:ui};if(Mt++,a.monitorRunDependencies?.(Mt),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){xt(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Ua(e,function(i){t(i.instance)}).catch(p),{}}(),Xe=t=>(Xe=k.fa)(t),jn=t=>(jn=k.ga)(t),lt=t=>(lt=k.ia)(t),tt=(t,e)=>(tt=k.ja)(t,e),et=t=>(et=k.ka)(t),nt=()=>(nt=k.la)();a.dynCall_iijj=(t,e,i,r,o,l)=>(a.dynCall_iijj=k.na)(t,e,i,r,o,l),a.dynCall_vijj=(t,e,i,r,o,l)=>(a.dynCall_vijj=k.oa)(t,e,i,r,o,l),a.dynCall_jiii=(t,e,i,r)=>(a.dynCall_jiii=k.pa)(t,e,i,r),a.dynCall_jii=(t,e,i)=>(a.dynCall_jii=k.qa)(t,e,i);var zn=a.dynCall_viiij=(t,e,i,r,o,l)=>(zn=a.dynCall_viiij=k.ra)(t,e,i,r,o,l);a.dynCall_jiji=(t,e,i,r,o)=>(a.dynCall_jiji=k.sa)(t,e,i,r,o),a.dynCall_viijii=(t,e,i,r,o,l,u)=>(a.dynCall_viijii=k.ta)(t,e,i,r,o,l,u),a.dynCall_iiiiij=(t,e,i,r,o,l,u)=>(a.dynCall_iiiiij=k.ua)(t,e,i,r,o,l,u),a.dynCall_iiiiijj=(t,e,i,r,o,l,u,d,g)=>(a.dynCall_iiiiijj=k.va)(t,e,i,r,o,l,u,d,g),a.dynCall_iiiiiijj=(t,e,i,r,o,l,u,d,g,m)=>(a.dynCall_iiiiiijj=k.wa)(t,e,i,r,o,l,u,d,g,m);function mi(t,e){var i=nt();try{K.get(t)(e)}catch(r){if(et(i),r!==r+0)throw r;tt(1,0)}}function pi(t,e,i){var r=nt();try{K.get(t)(e,i)}catch(o){if(et(r),o!==o+0)throw o;tt(1,0)}}function gi(t,e,i,r){var o=nt();try{return K.get(t)(e,i,r)}catch(l){if(et(o),l!==l+0)throw l;tt(1,0)}}function fi(t,e,i){var r=nt();try{return K.get(t)(e,i)}catch(o){if(et(r),o!==o+0)throw o;tt(1,0)}}function vi(t,e){var i=nt();try{return K.get(t)(e)}catch(r){if(et(i),r!==r+0)throw r;tt(1,0)}}function _i(t,e,i,r,o,l){var u=nt();try{return K.get(t)(e,i,r,o,l)}catch(d){if(et(u),d!==d+0)throw d;tt(1,0)}}function yi(t,e,i,r,o){var l=nt();try{K.get(t)(e,i,r,o)}catch(u){if(et(l),u!==u+0)throw u;tt(1,0)}}function Ci(t,e,i,r){var o=nt();try{K.get(t)(e,i,r)}catch(l){if(et(o),l!==l+0)throw l;tt(1,0)}}function wi(t){var e=nt();try{K.get(t)()}catch(i){if(et(e),i!==i+0)throw i;tt(1,0)}}function Si(t,e,i,r,o,l){var u=nt();try{zn(t,e,i,r,o,l)}catch(d){if(et(u),d!==d+0)throw d;tt(1,0)}}var de;zt=function t(){de||Bn(),de||(zt=t)};function Bn(){function t(){if(!de&&(de=!0,a.calledRun=!0,!hn)){if(Fe(gn),c(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();fn.unshift(e)}Fe(fn)}}if(!(0s})})}static _loadWithBackup(){return S(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>S(this,null,function*(){let n=`https://unpkg.com/${Ae.name}@${Ae.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${s.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{return yield this._tryLoad(n)}catch(a){throw console.error(`Primary WASM URL failed: ${s.message}`),console.error(`Backup WASM URL failed: ${a.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return S(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};x(Ie,"_ModulePromise",null),x(Ie,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Ae.name}@${Ae.version}/dist/dotlottie-player.wasm`);var Ma=class{constructor(){x(this,"_eventListeners",new Map)}addEventListener(s,n){let a=this._eventListeners.get(s);a||(a=new Set,this._eventListeners.set(s,a)),a.add(n)}removeEventListener(s,n){let a=this._eventListeners.get(s);a&&(n?(a.delete(n),a.size===0&&this._eventListeners.delete(s)):this._eventListeners.delete(s))}dispatch(s){this._eventListeners.get(s.type)?.forEach(n=>n(s))}removeAllEventListeners(){this._eventListeners.clear()}};function xi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function Fi(s){if(!xi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var en=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,nn=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,an=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},rn=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},La=class T{constructor(n){x(this,"_canvas"),x(this,"_context",null),x(this,"_eventManager"),x(this,"_animationFrameId",null),x(this,"_frameManager"),x(this,"_dotLottieCore",null),x(this,"_renderConfig",{}),x(this,"_isFrozen",!1),x(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new Ma,this._frameManager=new Ii,this._renderConfig=n.renderConfig??{},Ie.load().then(a=>{T._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:en(n.mode??"forward",a),segment:rn(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:an(n.layout.align,a),fit:nn(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor)}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)})})}_loadFromSrc(n){function a(){return S(this,null,function*(){let c=yield fetch(n);if(!c.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${c.status}: ${c.statusText}`);let p=(c.headers.get("content-type")??"").trim(),y;return["application/json","text/plain"].some(Y=>p.startsWith(Y))?y=yield c.text():y=yield c.arrayBuffer(),y})}a().then(c=>{this._loadFromData(c)}).catch(c=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${c}`)})})}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,c=this._canvas.height,p=!1;if(typeof n=="string")p=this._dotLottieCore.loadAnimationData(n,a,c);else if(n instanceof ArrayBuffer)p=this._dotLottieCore.loadDotLottieData(n,a,c);else if(typeof n=="object")p=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,c);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}p?(this._eventManager.dispatch({type:"load"}),Pt&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return{align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case T._wasmModule?.Fit.Contain:return"contain";case T._wasmModule?.Fit.Cover:return"cover";case T._wasmModule?.Fit.Fill:return"fill";case T._wasmModule?.Fit.FitHeight:return"fit-height";case T._wasmModule?.Fit.FitWidth:return"fit-width";case T._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return[n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===T._wasmModule?.Mode.Reverse?"reverse":n===T._wasmModule?.Mode.Bounce?"bounce":n===T._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||T._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:en(n.mode??"forward",T._wasmModule),segment:rn(n.segment??[],T._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:an(n.layout.align,T._wasmModule),fit:nn(n.layout.fit,T._wasmModule)}:T._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let n=this._dotLottieCore.buffer(),a=new Uint8ClampedArray(n,0,this._canvas.width*this._canvas.height*4),c=null;return typeof ImageData>"u"?(c=this._context.createImageData(this._canvas.width,this._canvas.height),c.data.set(a)):c=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(c,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(n){this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Pt&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{backgroundColor:Fi(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{useFrameInterpolation:n}))}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){if(Pt&&this._canvas instanceof HTMLCanvasElement){let n=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:a,width:c}=this._canvas.getBoundingClientRect();this._canvas.width=c*n,this._canvas.height=a*n}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(n,a){this._dotLottieCore===null||T._wasmModule===null||this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{segment:rn([n,a],T._wasmModule)}))}setMode(n){this._dotLottieCore===null||T._wasmModule===null||this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{mode:en(n,T._wasmModule)}))}setRenderConfig(n){this._renderConfig=n}loadAnimation(n){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n||(this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)}))}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(D(E({},this._dotLottieCore.config()),{marker:n}))}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let c=0;cn in s?Pn(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a;var I=(s,n,a)=>An(s,typeof n!="symbol"?n+"":n,a);var Ke=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},Xe=class{constructor(){I(this,"_lastHandleId",0);I(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},Ie=class{constructor(){I(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new Ke:new Xe;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var te=typeof window<"u"&&typeof window.document<"u";var me={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}};var Sn=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,d,w,T=new Promise((e,t)=>{d=e,w=t;}),W=Object.assign({},a),Y="./this.program",j="";typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),s&&(j=s),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1);var Wt=a.print||console.log.bind(console),Q=a.printErr||console.error.bind(console);Object.assign(a,W),W=null,a.thisProgram&&(Y=a.thisProgram);var ne;a.wasmBinary&&(ne=a.wasmBinary);var ve,tt=!1,G,L,Z,re,A,b,nt,rt;function at(){var e=ve.buffer;a.HEAP8=G=new Int8Array(e),a.HEAP16=Z=new Int16Array(e),a.HEAPU8=L=new Uint8Array(e),a.HEAPU16=re=new Uint16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU32=b=new Uint32Array(e),a.HEAPF32=nt=new Float32Array(e),a.HEAPF64=rt=new Float64Array(e);}var ot=[],it=[],st=[];function jt(){var e=a.preRun.shift();ot.unshift(e);}var N=0,ae=null;function ye(e){throw a.onAbort?.(e),e="Aborted("+e+")",Q(e),tt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),w(e),e}var lt=e=>e.startsWith("data:application/octet-stream;base64,"),q;if(q="DotLottiePlayer.wasm",!lt(q)){var dt=q;q=a.locateFile?a.locateFile(dt,j):j+dt;}function ut(e){if(e==q&&ne)return new Uint8Array(ne);throw "both async and sync fetching of the wasm failed"}function Bt(e){return ne||typeof fetch!="function"?Promise.resolve().then(()=>ut(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw `failed to load wasm binary file at \'${e}\'`;return t.arrayBuffer()}).catch(()=>ut(e))}function ct(e,t,r){return Bt(e).then(o=>WebAssembly.instantiate(o,t)).then(r,o=>{Q(`failed to asynchronously prepare wasm: ${o}`),ye(o);})}function Ut(e,t){var r=q;return ne||typeof WebAssembly.instantiateStreaming!="function"||lt(r)||typeof fetch!="function"?ct(r,e,t):fetch(r,{credentials:"same-origin"}).then(o=>WebAssembly.instantiateStreaming(o,e).then(t,function(i){return Q(`wasm streaming compile failed: ${i}`),Q("falling back to ArrayBuffer instantiation"),ct(r,e,t)}))}var Ae=e=>{for(;0{var o=t+r;for(r=t;e[r]&&!(r>=o);)++r;if(16i?o+=String.fromCharCode(i):(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023));}}else o+=String.fromCharCode(i);}return o};class Ht{constructor(t){this.ya=t-24;}}var pt=0,mt=e=>{for(var t=0,r=0;r=o?t++:2047>=o?t+=2:55296<=o&&57343>=o?(t+=4,++r):t+=3;}return t},ft=(e,t,r,o)=>{if(0=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(127>=l){if(r>=o)break;t[r++]=l;}else {if(2047>=l){if(r+1>=o)break;t[r++]=192|l>>6;}else {if(65535>=l){if(r+2>=o)break;t[r++]=224|l>>12;}else {if(r+3>=o)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63;}t[r++]=128|l>>6&63;}t[r++]=128|l&63;}}t[r]=0;}},ge={},Te=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function oe(e){return this.fromWireType(b[e>>2])}var ee={},K={},we={},ie,H=(e,t,r)=>{function o(c){if(c=r(c),c.length!==e.length)throw new ie("Mismatched type converter count");for(var m=0;m{K.hasOwnProperty(c)?i[m]=K[c]:(l.push(c),ee.hasOwnProperty(c)||(ee[c]=[]),ee[c].push(()=>{i[m]=K[c],++h,h===l.length&&o(i);}));}),l.length===0&&o(i);},vt,P=e=>{for(var t="";L[e];)t+=vt[L[e++]];return t},g;function Yt(e,t,r={}){var o=t.name;if(!e)throw new g(`type "${o}" must have a positive integer typeid pointer`);if(K.hasOwnProperty(e)){if(r.ib)return;throw new g(`Cannot register type \'${o}\' twice`)}K[e]=t,delete we[e],ee.hasOwnProperty(e)&&(t=ee[e],delete ee[e],t.forEach(i=>i()));}function k(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Yt(e,t,r)}var Se=e=>{throw new g(e.ma.za.xa.name+" instance already deleted")},Re=!1,yt=()=>{},gt=(e,t,r)=>t===r?e:r.Ca===void 0?null:(e=gt(e,t,r.Ca),e===null?null:r.ab(e)),wt={},se=[],$e=()=>{for(;se.length;){var e=se.pop();e.ma.Ka=!1,e.delete();}},le,de={},Gt=(e,t)=>{if(t===void 0)throw new g("ptr should not be undefined");for(;e.Ca;)t=e.Na(t),e=e.Ca;return de[t]},_e=(e,t)=>{if(!t.za||!t.ya)throw new ie("makeClassHandle requires ptr and ptrType");if(!!t.Da!=!!t.Aa)throw new ie("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ma:{value:t,writable:!0}}))},ue=e=>typeof FinalizationRegistry>"u"?(ue=t=>t,e):(Re=new FinalizationRegistry(t=>{t=t.ma,--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya));}),ue=t=>{var r=t.ma;return r.Aa&&Re.register(t,{ma:r},t),t},yt=t=>{Re.unregister(t);},ue(e));function Ee(){}var ce=(e,t)=>Object.defineProperty(t,"name",{value:e}),_t=(e,t,r)=>{if(e[t].Ba===void 0){var o=e[t];e[t]=function(...i){if(!e[t].Ba.hasOwnProperty(i.length))throw new g(`Function \'${r}\' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].Ba})!`);return e[t].Ba[i.length].apply(this,i)},e[t].Ba=[],e[t].Ba[o.Oa]=o;}},ke=(e,t,r)=>{if(a.hasOwnProperty(e)){if(r===void 0||a[e].Ba!==void 0&&a[e].Ba[r]!==void 0)throw new g(`Cannot register public name \'${e}\' twice`);if(_t(a,e,e),a.hasOwnProperty(r))throw new g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);a[e].Ba[r]=t;}else a[e]=t,r!==void 0&&(a[e].vb=r);},Nt=e=>{if(e===void 0)return "_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function Jt(e,t,r,o,i,l,h,c){this.name=e,this.constructor=t,this.La=r,this.Fa=o,this.Ca=i,this.cb=l,this.Na=h,this.ab=c,this.kb=[];}var De=(e,t,r)=>{for(;t!==r;){if(!t.Na)throw new g(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Na(e),t=t.Ca;}return e};function Kt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function Xt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);if(this.Qa){var r=this.Ua();return e!==null&&e.push(this.Fa,r),r}return 0}if(!t||!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);if(r=De(t.ma.ya,t.ma.za.xa,this.xa),this.Qa){if(t.ma.Aa===void 0)throw new g("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(t.ma.Da===this)r=t.ma.Aa;else throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);break;case 1:r=t.ma.Aa;break;case 2:if(t.ma.Da===this)r=t.ma.Aa;else {var o=t.clone();r=this.lb(r,Me(()=>o.delete())),e!==null&&e.push(this.Fa,r);}break;default:throw new g("Unsupporting sharing policy")}}return r}function Qt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.za.name} to parameter type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function he(e,t,r,o,i,l,h,c,m,p,f){this.name=e,this.xa=t,this.Ta=r,this.Pa=o,this.Qa=i,this.jb=l,this.pb=h,this.Za=c,this.Ua=m,this.lb=p,this.Fa=f,i||t.Ca!==void 0?this.toWireType=Xt:(this.toWireType=o?Kt:Qt,this.Ea=null);}var Et=(e,t,r)=>{if(!a.hasOwnProperty(e))throw new ie("Replacing nonexistent public symbol");a[e].Ba!==void 0&&r!==void 0?a[e].Ba[r]=t:(a[e]=t,a[e].Oa=r);},$,Zt=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, a["dynCall_"+e])(t,...r)):t=$.get(t)(...r),t),qt=(e,t)=>(...r)=>Zt(e,t,r),S=(e,t)=>{e=P(e);var r=e.includes("j")?qt(e,t):$.get(t);if(typeof r!="function")throw new g(`unknown function pointer with signature ${e}: ${t}`);return r},Ct,Mt=e=>{e=St(e);var t=P(e);return U(e),t},Ce=(e,t)=>{function r(l){i[l]||K[l]||(we[l]?we[l].forEach(r):(o.push(l),i[l]=!0));}var o=[],i={};throw t.forEach(r),new Ct(`${e}: `+o.map(Mt).join([", "]))},ze=(e,t)=>{for(var r=[],o=0;o>2]);return r};function en(e){for(var t=1;tl)throw new g("argTypes array size mismatch! Must at least get return value and \'this\' types!");var h=t[1]!==null&&r!==null,c=en(t),m=t[0].name!=="void",p=l-2,f=Array(p),_=[],C=[];return ce(e,function(...u){if(u.length!==p)throw new g(`function ${e} called with ${u.length} arguments, expected ${p}`);if(C.length=0,_.length=h?2:1,_[0]=i,h){var v=t[1].toWireType(C,this);_[1]=v;}for(var y=0;y{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},We=[],B=[],je=e=>{9{if(!e)throw new g("Cannot use deleted val. handle = "+e);return B[e]},Me=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=We.pop()||B.length;return B[t]=e,B[t+1]=1,t}},Lt={name:"emscripten::val",fromWireType:e=>{var t=Be(e);return je(e),t},toWireType:(e,t)=>Me(t),argPackAdvance:8,readValueFromPointer:oe,Ea:null},tn=(e,t,r)=>{switch(t){case 1:return r?function(o){return this.fromWireType(G[o])}:function(o){return this.fromWireType(L[o])};case 2:return r?function(o){return this.fromWireType(Z[o>>1])}:function(o){return this.fromWireType(re[o>>1])};case 4:return r?function(o){return this.fromWireType(A[o>>2])}:function(o){return this.fromWireType(b[o>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ue=(e,t)=>{var r=K[e];if(r===void 0)throw e=`${t} has unknown type ${Mt(e)}`,new g(e);return r},He=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},nn=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(nt[r>>2])};case 8:return function(r){return this.fromWireType(rt[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rn=(e,t,r)=>{switch(t){case 1:return r?o=>G[o]:o=>L[o];case 2:return r?o=>Z[o>>1]:o=>re[o>>1];case 4:return r?o=>A[o>>2]:o=>b[o>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ft=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,t)=>{for(var r=e>>1,o=r+t/2;!(r>=o)&&re[r];)++r;if(r<<=1,32=t/2);++o){var i=Z[e+2*o>>1];if(i==0)break;r+=String.fromCharCode(i);}return r},on=(e,t,r)=>{if(r??(r=2147483647),2>r)return 0;r-=2;var o=t;r=r<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return Z[t>>1]=0,t-o},sn=e=>2*e.length,ln=(e,t)=>{for(var r=0,o="";!(r>=t/4);){var i=A[e+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023)):o+=String.fromCharCode(i);}return o},dn=(e,t,r)=>{if(r??(r=2147483647),4>r)return 0;var o=t;r=o+r-4;for(var i=0;i=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(A[t>>2]=l,t+=4,t+4>r)break}return A[t>>2]=0,t-o},un=e=>{for(var t=0,r=0;r=o&&++r,t+=4;}return t},Ve=[],cn=e=>{var t=Ve.length;return Ve.push(e),t},hn=(e,t)=>{for(var r=Array(e),o=0;o>2],"parameter "+o);return r},pn=Reflect.construct,Ye={},It=()=>{if(!Ge){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Y||"./this.program"},t;for(t in Ye)Ye[t]===void 0?delete e[t]:e[t]=Ye[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);Ge=r;}return Ge},Ge,mn=[null,[],[]],fn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ye("initRandomDevice");},xt=e=>(xt=fn())(e),be=e=>e%4===0&&(e%100!==0||e%400===0),Pt=[31,29,31,30,31,30,31,31,30,31,30,31],At=[31,28,31,30,31,30,31,31,30,31,30,31];function vn(e){var t=Array(mt(e)+1);return ft(e,t,0,t.length),t}var yn=(e,t,r,o)=>{function i(u,v,y){for(u=typeof u=="number"?u.toString():u||"";u.lengthV?-1:0x-u.getDate())v-=x-u.getDate()+1,u.setDate(1),11>y?u.setMonth(y+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else {u.setDate(u.getDate()+v);break}}return y=new Date(u.getFullYear()+1,0,4),v=c(new Date(u.getFullYear(),0,4)),y=c(y),0>=h(v,u)?0>=h(y,u)?u.getFullYear()+1:u.getFullYear():u.getFullYear()-1}var p=b[o+40>>2];o={sb:A[o>>2],rb:A[o+4>>2],Ra:A[o+8>>2],Va:A[o+12>>2],Sa:A[o+16>>2],Ja:A[o+20>>2],Ga:A[o+24>>2],Ia:A[o+28>>2],wb:A[o+32>>2],qb:A[o+36>>2],tb:p&&p?J(L,p):""},r=r?J(L,r):"",p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in p)r=r.replace(new RegExp(f,"g"),p[f]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");p={"%a":u=>_[u.Ga].substring(0,3),"%A":u=>_[u.Ga],"%b":u=>C[u.Sa].substring(0,3),"%B":u=>C[u.Sa],"%C":u=>l((u.Ja+1900)/100|0,2),"%d":u=>l(u.Va,2),"%e":u=>i(u.Va,2," "),"%g":u=>m(u).toString().substring(2),"%G":m,"%H":u=>l(u.Ra,2),"%I":u=>(u=u.Ra,u==0?u=12:12{for(var v=0,y=0;y<=u.Sa-1;v+=(be(u.Ja+1900)?Pt:At)[y++]);return l(u.Va+v,3)},"%m":u=>l(u.Sa+1,2),"%M":u=>l(u.rb,2),"%n":()=>`\n`,"%p":u=>0<=u.Ra&&12>u.Ra?"AM":"PM","%S":u=>l(u.sb,2),"%t":()=>" ","%u":u=>u.Ga||7,"%U":u=>l(Math.floor((u.Ia+7-u.Ga)/7),2),"%V":u=>{var v=Math.floor((u.Ia+7-(u.Ga+6)%7)/7);if(2>=(u.Ga+371-u.Ia-2)%7&&v++,v)v==53&&(y=(u.Ga+371-u.Ia)%7,y==4||y==3&&be(u.Ja)||(v=1));else {v=52;var y=(u.Ga+7-u.Ia-1)%7;(y==4||y==5&&be(u.Ja%400-1))&&v++;}return l(v,2)},"%w":u=>u.Ga,"%W":u=>l(Math.floor((u.Ia+7-(u.Ga+6)%7)/7),2),"%y":u=>(u.Ja+1900).toString().substring(2),"%Y":u=>u.Ja+1900,"%z":u=>{u=u.qb;var v=0<=u;return u=Math.abs(u)/60,(v?"+":"-")+("0000"+(u/60*100+u%60)).slice(-4)},"%Z":u=>u.tb,"%%":()=>"%"},r=r.replace(/%%/g,"\\0\\0");for(f in p)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),p[f](o)));return r=r.replace(/\\0\\0/g,"%"),f=vn(r),f.length>t?0:(G.set(f,e),f.length-1)};ie=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var Tt=Array(256),Le=0;256>Le;++Le)Tt[Le]=String.fromCharCode(Le);vt=Tt,g=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(Ee.prototype,{isAliasOf:function(e){if(!(this instanceof Ee&&e instanceof Ee))return !1;var t=this.ma.za.xa,r=this.ma.ya;e.ma=e.ma;var o=e.ma.za.xa;for(e=e.ma.ya;t.Ca;)r=t.Na(r),t=t.Ca;for(;o.Ca;)e=o.Na(e),o=o.Ca;return t===o&&r===e},clone:function(){if(this.ma.ya||Se(this),this.ma.Ma)return this.ma.count.value+=1,this;var e=ue,t=Object,r=t.create,o=Object.getPrototypeOf(this),i=this.ma;return e=e(r.call(t,o,{ma:{value:{count:i.count,Ka:i.Ka,Ma:i.Ma,ya:i.ya,za:i.za,Aa:i.Aa,Da:i.Da}}})),e.ma.count.value+=1,e.ma.Ka=!1,e},delete(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");yt(this);var e=this.ma;--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0);},isDeleted:function(){return !this.ma.ya},deleteLater:function(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");return se.push(this),se.length===1&&le&&le($e),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(de).length,a.getLiveInheritedInstances=()=>{var e=[],t;for(t in de)de.hasOwnProperty(t)&&e.push(de[t]);return e},a.flushPendingDeletes=$e,a.setDelayFunction=e=>{le=e,se.length&&le&&le($e);},Object.assign(he.prototype,{eb(e){return this.Za&&(e=this.Za(e)),e},Xa(e){this.Fa?.(e);},argPackAdvance:8,readValueFromPointer:oe,fromWireType:function(e){function t(){return this.Qa?_e(this.xa.La,{za:this.jb,ya:r,Da:this,Aa:e}):_e(this.xa.La,{za:this,ya:e})}var r=this.eb(e);if(!r)return this.Xa(e),null;var o=Gt(this.xa,r);if(o!==void 0)return o.ma.count.value===0?(o.ma.ya=r,o.ma.Aa=e,o.clone()):(o=o.clone(),this.Xa(e),o);if(o=this.xa.cb(r),o=wt[o],!o)return t.call(this);o=this.Pa?o.$a:o.pointerType;var i=gt(r,this.xa,o.xa);return i===null?t.call(this):this.Qa?_e(o.xa.La,{za:o,ya:i,Da:this,Aa:e}):_e(o.xa.La,{za:o,ya:i})}}),Ct=a.UnboundTypeError=((e,t)=>{var r=ce(t,function(o){this.name=t,this.message=o,o=Error(o).stack,o!==void 0&&(this.stack=this.toString()+`\n`+o.replace(/^Error(:[^\\n]*)?\\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),B.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>B.length/2-5-We.length;var gn={c:(e,t,r,o)=>{ye(`Assertion failed: ${e?J(L,e):""}, at: `+[t?t?J(L,t):"":"unknown filename",r,o?o?J(L,o):"":"unknown function"]);},m:(e,t,r)=>{var o=new Ht(e);throw b[o.ya+16>>2]=0,b[o.ya+4>>2]=t,b[o.ya+8>>2]=r,pt=e,pt},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:e=>{var t=ge[e];delete ge[e];var r=t.Ua,o=t.Fa,i=t.Ya,l=i.map(h=>h.hb).concat(i.map(h=>h.nb));H([e],l,h=>{var c={};return i.forEach((m,p)=>{var f=h[p],_=m.fb,C=m.gb,u=h[p+i.length],v=m.mb,y=m.ob;c[m.bb]={read:x=>f.fromWireType(_(C,x)),write:(x,V)=>{var R=[];v(y,x,u.toWireType(R,V)),Te(R);}};}),[{name:t.name,fromWireType:m=>{var p={},f;for(f in c)p[f]=c[f].read(m);return o(m),p},toWireType:(m,p)=>{for(var f in c)if(!(f in p))throw new TypeError(`Missing field: "${f}"`);var _=r();for(f in c)c[f].write(_,p[f]);return m!==null&&m.push(o,_),_},argPackAdvance:8,readValueFromPointer:oe,Ea:o}]});},I:()=>{},Y:(e,t,r,o)=>{t=P(t),k(e,{name:t,fromWireType:function(i){return !!i},toWireType:function(i,l){return l?r:o},argPackAdvance:8,readValueFromPointer:function(i){return this.fromWireType(L[i])},Ea:null});},r:(e,t,r,o,i,l,h,c,m,p,f,_,C)=>{f=P(f),l=S(i,l),c&&(c=S(h,c)),p&&(p=S(m,p)),C=S(_,C);var u=Nt(f);ke(u,function(){Ce(`Cannot construct ${f} due to unbound types`,[o]);}),H([e,t,r],o?[o]:[],v=>{if(v=v[0],o)var y=v.xa,x=y.La;else x=Ee.prototype;v=ce(f,function(...Je){if(Object.getPrototypeOf(this)!==V)throw new g("Use \'new\' to construct "+f);if(R.Ha===void 0)throw new g(f+" has no accessible constructor");var kt=R.Ha[Je.length];if(kt===void 0)throw new g(`Tried to invoke ctor of ${f} with invalid number of parameters (${Je.length}) - expected (${Object.keys(R.Ha).toString()}) parameters instead!`);return kt.apply(this,Je)});var V=Object.create(x,{constructor:{value:v}});v.prototype=V;var R=new Jt(f,v,V,C,y,l,c,p);if(R.Ca){var pe;(pe=R.Ca).Wa??(pe.Wa=[]),R.Ca.Wa.push(R);}return y=new he(f,R,!0,!1,!1),pe=new he(f+"*",R,!1,!1,!1),x=new he(f+" const*",R,!1,!0,!1),wt[e]={pointerType:pe,$a:x},Et(u,v),[y,pe,x]});},q:(e,t,r,o,i,l)=>{var h=ze(t,r);i=S(o,i),H([],[e],c=>{c=c[0];var m=`constructor ${c.name}`;if(c.xa.Ha===void 0&&(c.xa.Ha=[]),c.xa.Ha[t-1]!==void 0)throw new g(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class \'${c.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return c.xa.Ha[t-1]=()=>{Ce(`Cannot construct ${c.name} due to unbound types`,h);},H([],h,p=>(p.splice(1,0,null),c.xa.Ha[t-1]=Oe(m,p,null,i,l),[])),[]});},f:(e,t,r,o,i,l,h,c)=>{var m=ze(r,o);t=P(t),t=bt(t),l=S(i,l),H([],[e],p=>{function f(){Ce(`Cannot call ${_} due to unbound types`,m);}p=p[0];var _=`${p.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),c&&p.xa.kb.push(t);var C=p.xa.La,u=C[t];return u===void 0||u.Ba===void 0&&u.className!==p.name&&u.Oa===r-2?(f.Oa=r-2,f.className=p.name,C[t]=f):(_t(C,t,_),C[t].Ba[r-2]=f),H([],m,v=>(v=Oe(_,v,p,l,h),C[t].Ba===void 0?(v.Oa=r-2,C[t]=v):C[t].Ba[r-2]=v,[])),[]});},X:e=>k(e,Lt),x:(e,t,r,o)=>{function i(){}t=P(t),i.values={},k(e,{name:t,constructor:i,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,h)=>h.value,argPackAdvance:8,readValueFromPointer:tn(t,r,o),Ea:null}),ke(t,i);},k:(e,t,r)=>{var o=Ue(e,"enum");t=P(t),e=o.constructor,o=Object.create(o.constructor.prototype,{value:{value:r},constructor:{value:ce(`${o.name}_${t}`,function(){})}}),e.values[r]=o,e[t]=o;},C:(e,t,r)=>{t=P(t),k(e,{name:t,fromWireType:o=>o,toWireType:(o,i)=>i,argPackAdvance:8,readValueFromPointer:nn(t,r),Ea:null});},E:(e,t,r,o,i,l)=>{var h=ze(t,r);e=P(e),e=bt(e),i=S(o,i),ke(e,function(){Ce(`Cannot call ${e} due to unbound types`,h);},t-1),H([],h,c=>(Et(e,Oe(e,[c[0],null].concat(c.slice(1)),null,i,l),t-1),[]));},l:(e,t,r,o,i)=>{if(t=P(t),i===-1&&(i=4294967295),i=c=>c,o===0){var l=32-8*r;i=c=>c<>>l;}var h=t.includes("unsigned")?function(c,m){return m>>>0}:function(c,m){return m};k(e,{name:t,fromWireType:i,toWireType:h,argPackAdvance:8,readValueFromPointer:rn(t,r,o!==0),Ea:null});},g:(e,t,r)=>{function o(l){return new i(G.buffer,b[l+4>>2],b[l>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=P(r),k(e,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ib:!0});},w:e=>{k(e,Lt);},ca:(e,t,r,o,i,l,h,c,m,p,f,_)=>{r=P(r),l=S(i,l),c=S(h,c),p=S(m,p),_=S(f,_),H([e],[t],C=>(C=C[0],[new he(r,C.xa,!1,!1,!0,C,o,l,c,p,_)]));},D:(e,t)=>{t=P(t);var r=t==="std::string";k(e,{name:t,fromWireType:function(o){var i=b[o>>2],l=o+4;if(r)for(var h=l,c=0;c<=i;++c){var m=l+c;if(c==i||L[m]==0){if(h=h?J(L,h,m-h):"",p===void 0)var p=h;else p+="\\0",p+=h;h=m+1;}}else {for(p=Array(i),c=0;c>2]=h,r&&l)ft(i,L,m,h+1);else if(l)for(l=0;l{if(r=P(r),t===2)var o=an,i=on,l=sn,h=c=>re[c>>1];else t===4&&(o=ln,i=dn,l=un,h=c=>b[c>>2]);k(e,{name:r,fromWireType:c=>{for(var m=b[c>>2],p,f=c+4,_=0;_<=m;++_){var C=c+4+_*t;(_==m||h(C)==0)&&(f=o(f,C-f),p===void 0?p=f:(p+="\\0",p+=f),f=C+t);}return U(c),p},toWireType:(c,m)=>{if(typeof m!="string")throw new g(`Cannot pass non-string to C++ string type ${r}`);var p=l(m),f=Ne(4+p+t);return b[f>>2]=p/t,i(m,f+4,p+t),c!==null&&c.push(U,f),f},argPackAdvance:8,readValueFromPointer:oe,Ea(c){U(c);}});},s:(e,t,r,o,i,l)=>{ge[e]={name:P(t),Ua:S(r,o),Fa:S(i,l),Ya:[]};},j:(e,t,r,o,i,l,h,c,m,p)=>{ge[e].Ya.push({bb:P(t),hb:r,fb:S(o,i),gb:l,nb:h,mb:S(c,m),ob:p});},Z:(e,t)=>{t=P(t),k(e,{ub:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}});},J:()=>{throw 1/0},aa:(e,t,r,o)=>(e=Ve[e],t=Be(t),e(null,t,r,o)),F:je,$:(e,t,r)=>{var o=hn(e,t),i=o.shift();e--;var l=Array(e);return t=`methodCaller<(${o.map(h=>h.name).join(", ")}) => ${i.name}>`,cn(ce(t,(h,c,m,p)=>{for(var f=0,_=0;_>2]=Me(h)),c}))},ba:e=>{9{var t=Be(e);Te(t),je(e);},o:(e,t)=>(e=Ue(e,"_emval_take_value"),e=e.readValueFromPointer(t),Me(e)),W:()=>{ye("");},V:()=>performance.now(),L:e=>{var t=L.length;if(e>>>=0,2147483648=r;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o);e:{i=(i.min.call(i,2147483648,o+(65536-o%65536)%65536)-ve.buffer.byteLength+65535)/65536;try{ve.grow(i),at();var l=1;break e}catch{}l=void 0;}if(l)return !0}return !1},S:(e,t)=>{var r=0;return It().forEach((o,i)=>{var l=t+r;for(i=b[e+4*i>>2]=l,l=0;l{var r=It();b[e>>2]=r.length;var o=0;return r.forEach(i=>o+=i.length+1),b[t>>2]=o,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(e,t,r,o)=>{for(var i=0,l=0;l>2],c=b[t+4>>2];t+=8;for(var m=0;m>2]=i,0},U:(e,t)=>(xt(L.subarray(e,e+t)),0),i:Mn,d:Cn,e:En,p:bn,y:In,b:wn,a:_n,h:Fn,n:Ln,G:xn,K:(e,t,r,o)=>yn(e,t,r,o)},F=function(){function e(r){return F=r.exports,ve=F.da,at(),$=F.ha,it.unshift(F.ea),N--,a.monitorRunDependencies?.(N),N==0&&(ae&&(r=ae,ae=null,r())),F}var t={a:gn};if(N++,a.monitorRunDependencies?.(N),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(r){Q(`Module.instantiateWasm callback failed with error: ${r}`),w(r);}return Ut(t,function(r){e(r.instance);}).catch(w),{}}(),Ne=e=>(Ne=F.fa)(e),St=e=>(St=F.ga)(e),U=e=>(U=F.ia)(e),D=(e,t)=>(D=F.ja)(e,t),z=e=>(z=F.ka)(e),O=()=>(O=F.la)();a.dynCall_iijj=(e,t,r,o,i,l)=>(a.dynCall_iijj=F.na)(e,t,r,o,i,l),a.dynCall_vijj=(e,t,r,o,i,l)=>(a.dynCall_vijj=F.oa)(e,t,r,o,i,l),a.dynCall_jiii=(e,t,r,o)=>(a.dynCall_jiii=F.pa)(e,t,r,o),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=F.qa)(e,t,r);var Rt=a.dynCall_viiij=(e,t,r,o,i,l)=>(Rt=a.dynCall_viiij=F.ra)(e,t,r,o,i,l);a.dynCall_jiji=(e,t,r,o,i)=>(a.dynCall_jiji=F.sa)(e,t,r,o,i),a.dynCall_viijii=(e,t,r,o,i,l,h)=>(a.dynCall_viijii=F.ta)(e,t,r,o,i,l,h),a.dynCall_iiiiij=(e,t,r,o,i,l,h)=>(a.dynCall_iiiiij=F.ua)(e,t,r,o,i,l,h),a.dynCall_iiiiijj=(e,t,r,o,i,l,h,c,m)=>(a.dynCall_iiiiijj=F.va)(e,t,r,o,i,l,h,c,m),a.dynCall_iiiiiijj=(e,t,r,o,i,l,h,c,m,p)=>(a.dynCall_iiiiiijj=F.wa)(e,t,r,o,i,l,h,c,m,p);function wn(e,t){var r=O();try{$.get(e)(t);}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function _n(e,t,r){var o=O();try{$.get(e)(t,r);}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function En(e,t,r,o){var i=O();try{return $.get(e)(t,r,o)}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function Cn(e,t,r){var o=O();try{return $.get(e)(t,r)}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function Mn(e,t){var r=O();try{return $.get(e)(t)}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function bn(e,t,r,o,i,l){var h=O();try{return $.get(e)(t,r,o,i,l)}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}function Ln(e,t,r,o,i){var l=O();try{$.get(e)(t,r,o,i);}catch(h){if(z(l),h!==h+0)throw h;D(1,0);}}function Fn(e,t,r,o){var i=O();try{$.get(e)(t,r,o);}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function In(e){var t=O();try{$.get(e)();}catch(r){if(z(t),r!==r+0)throw r;D(1,0);}}function xn(e,t,r,o,i,l){var h=O();try{Rt(e,t,r,o,i,l);}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}var Fe;ae=function e(){Fe||$t(),Fe||(ae=e);};function $t(){function e(){if(!Fe&&(Fe=!0,a.calledRun=!0,!tt)){if(Ae(it),d(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var t=a.postRun.shift();st.unshift(t);}Ae(st);}}if(!(0n})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async n=>{let a=`https://unpkg.com/${me.name}@${me.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${a}`);try{return await this._tryLoad(a)}catch(d){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${d.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};I(X,"_ModulePromise",null),I(X,"_wasmURL",`https://cdn.jsdelivr.net/npm/${me.name}@${me.version}/dist/dotlottie-player.wasm`);var xe=class{constructor(){I(this,"_eventListeners",new Map);}addEventListener(n,a){let d=this._eventListeners.get(n);d||(d=new Set,this._eventListeners.set(n,d)),d.add(a);}removeEventListener(n,a){let d=this._eventListeners.get(n);d&&(a?(d.delete(a),d.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){this._eventListeners.get(n.type)?.forEach(d=>d(n));}removeAllEventListeners(){this._eventListeners.clear();}};function Rn(s){return /^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(s)}function zt(s){if(!Rn(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var Qe=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,Ze=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,qe=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},et=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},M=class M{constructor(n){I(this,"_canvas");I(this,"_context",null);I(this,"_eventManager");I(this,"_animationFrameId",null);I(this,"_frameManager");I(this,"_dotLottieCore",null);I(this,"_renderConfig",{});I(this,"_isFrozen",!1);I(this,"_backgroundColor",null);this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new xe,this._frameManager=new Ie,this._renderConfig=n.renderConfig??{},X.load().then(a=>{M._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",a),segment:et(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,a),fit:Ze(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)});});}_loadFromSrc(n){async function a(){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${d.status}: ${d.statusText}`);let w=(d.headers.get("content-type")??"").trim(),T;return ["application/json","text/plain"].some(W=>w.startsWith(W))?T=await d.text():T=await d.arrayBuffer(),T}a().then(d=>{this._loadFromData(d);}).catch(d=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${d}`)});});}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,d=this._canvas.height,w=!1;if(typeof n=="string")w=this._dotLottieCore.loadAnimationData(n,a,d);else if(n instanceof ArrayBuffer)w=this._dotLottieCore.loadDotLottieData(n,a,d);else if(typeof n=="object")w=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,d);else {this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}w?(this._eventManager.dispatch({type:"load"}),te&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")});}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case M._wasmModule?.Fit.Contain:return "contain";case M._wasmModule?.Fit.Cover:return "cover";case M._wasmModule?.Fit.Fill:return "fill";case M._wasmModule?.Fit.FitHeight:return "fit-height";case M._wasmModule?.Fit.FitWidth:return "fit-width";case M._wasmModule?.Fit.None:return "none";default:return "contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===M._wasmModule?.Mode.Reverse?"reverse":n===M._wasmModule?.Mode.Bounce?"bounce":n===M._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||M._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",M._wasmModule),segment:et(n.segment??[],M._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,M._wasmModule),fit:Ze(n.layout.fit,M._wasmModule)}:M._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let a=this._dotLottieCore.buffer(),d=new Uint8ClampedArray(a,0,this._canvas.width*this._canvas.height*4),w=null;return typeof ImageData>"u"?(w=this._context.createImageData(this._canvas.width,this._canvas.height),w.data.set(d)):w=new ImageData(d,this._canvas.width,this._canvas.height),this._context.putImageData(w,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return !1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this));}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)));}pause(){if(this._dotLottieCore===null)return;this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:n});}setBackgroundColor(n){this._dotLottieCore!==null&&(te&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:zt(n)}),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:n});}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:n});}addEventListener(n,a){this._eventManager.addEventListener(n,a);}removeEventListener(n,a){this._eventManager.removeEventListener(n,a);}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}));}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}));}resize(){if(te&&this._canvas instanceof HTMLCanvasElement){let a=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:d,width:w}=this._canvas.getBoundingClientRect();this._canvas.width=w*a,this._canvas.height=d*a;}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,a){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:et([n,a],M._wasmModule)});}setMode(n){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Qe(n,M._wasmModule)});}setRenderConfig(n){this._renderConfig=n;}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:n});}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let d=0;dn=>{let a={id:"",method:"onReady",result:{instanceId:s,event:n}};self.postMessage(a);},complete:s=>n=>{let a={id:"",method:"onComplete",result:{instanceId:s,event:n}};self.postMessage(a);},load:s=>n=>{let d={id:"",method:"onLoad",result:{instanceId:s,event:n}};self.postMessage(d);},loadError:s=>n=>{let d={id:"",method:"onLoadError",result:{instanceId:s,event:n}};self.postMessage(d);},loop:s=>n=>{let d={id:"",method:"onLoop",result:{instanceId:s,event:n}};self.postMessage(d);},play:s=>n=>{let d={id:"",method:"onPlay",result:{instanceId:s,event:n}};self.postMessage(d);},pause:s=>n=>{let d={id:"",method:"onPause",result:{instanceId:s,event:n}};self.postMessage(d);},stop:s=>n=>{let d={id:"",method:"onStop",result:{instanceId:s,event:n}};self.postMessage(d);},frame:s=>n=>{let d={id:"",method:"onFrame",result:{instanceId:s,event:n}};self.postMessage(d);},render:s=>n=>{let d={id:"",method:"onRender",result:{instanceId:s,event:n}};self.postMessage(d);},freeze:s=>n=>{let d={id:"",method:"onFreeze",result:{instanceId:s,event:n}};self.postMessage(d);},unfreeze:s=>n=>{let d={id:"",method:"onUnfreeze",result:{instanceId:s,event:n}};self.postMessage(d);},destroy:s=>n=>{let d={id:"",method:"onDestroy",result:{instanceId:s,event:n}};self.postMessage(d);}},Ot={getDotLottieInstanceState(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return {state:{isLoaded:a.isLoaded,isPaused:a.isPaused,isPlaying:a.isPlaying,isStopped:a.isStopped,isFrozen:a.isFrozen,loop:a.loop,mode:a.mode,speed:a.speed,currentFrame:a.currentFrame,totalFrames:a.totalFrames,duration:a.duration,useFrameInterpolation:a.useFrameInterpolation,renderConfig:a.renderConfig,marker:a.marker,backgroundColor:a.backgroundColor,markers:a.markers(),activeAnimationId:a.activeAnimationId,activeThemeId:a.activeThemeId,autoplay:a.autoplay,segment:a.segment,layout:a.layout,segmentDuration:a.segmentDuration,isReady:a.isReady,manifest:a.manifest}}},setLayout(s){let n=s.params.instanceId,a=s.params.layout,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLayout(a),{success:!0}},getStateMachineListeners(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.getStateMachineListeners()},postStateMachineEvent(s){let n=s.params.instanceId,a=s.params.event,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.postStateMachineEvent(a)},startStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.startStateMachine()},stopStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.stopStateMachine()},loadStateMachine(s){let n=s.params.instanceId,a=s.params.stateMachineId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadStateMachine(a)},create:s=>{let n=s.params.instanceId,a=s.params.config,d=s.params.width,w=s.params.height;if(E.has(n))throw new Error(`Instance with id ${n} already exists.`);let T=new fe(a);return T.canvas.height=w,T.canvas.width=d,E.set(n,T),["complete","frame","load","loadError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready"].forEach(Y=>{T.addEventListener(Y,$n[Y](n));}),{instanceId:n}},destroy:s=>{let n=s.params.instanceId,a=E.get(n);a&&(a.destroy(),E.delete(n));},freeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.freeze();},load:s=>{let n=s.params.instanceId,a=s.params.config,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.load(a);},loadAnimation:s=>{let n=s.params.instanceId,a=s.params.animationId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.loadAnimation(a);},loadTheme:s=>{let n=s.params.instanceId,a=s.params.themeId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadTheme(a)},loadThemeData:s=>{let n=s.params.instanceId,a=s.params.themeData,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadThemeData(a)},pause:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.pause()},play:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.play()},resize:s=>{let n=s.params.instanceId,a=s.params.width,d=s.params.height,w=E.get(n);if(!w)throw new Error(`Instance with id ${n} does not exist.`);return w.canvas.height=d,w.canvas.width=a,w.resize(),{success:!0}},setBackgroundColor:s=>{let n=s.params.instanceId,a=s.params.backgroundColor,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setBackgroundColor(a);},setFrame:s=>{let n=s.params.instanceId,a=s.params.frame,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setFrame(a);},setMode:s=>{let n=s.params.instanceId,a=s.params.mode,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setMode(a);},setRenderConfig:s=>{let n=s.params.instanceId,a=s.params.renderConfig,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setRenderConfig(a);},setSegment:s=>{let n=s.params.instanceId,a=s.params.segment,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSegment(a[0],a[1]);},setSpeed:s=>{let n=s.params.instanceId,a=s.params.speed,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSpeed(a);},setUseFrameInterpolation:s=>{let n=s.params.instanceId,a=s.params.useFrameInterpolation,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setUseFrameInterpolation(a);},setWasmUrl:s=>{fe.setWasmUrl(s.params.url);},stop:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.stop();},unfreeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.unfreeze();},setViewport(s){let n=s.params.instanceId,a=s.params.x,d=s.params.y,w=s.params.width,T=s.params.height,W=E.get(n);if(!W)throw new Error(`Instance with id ${n} does not exist.`);return W.setViewport(a,d,w,T)},setMarker(s){let n=s.params.instanceId,a=s.params.marker,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setMarker(a),{success:!0}},setLoop(s){let n=s.params.instanceId,a=s.params.loop,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLoop(a),{success:!0}}};function kn(s){let n=s.method;if(typeof Ot[n]=="function")return Ot[n](s);throw new Error(`Method ${n} is not implemented in commands.`)}self.onmessage=s=>{try{let n=kn(s.data),a={id:s.data.id,method:s.data.method,result:n};self.postMessage(a);}catch(n){let a={id:s.data.id,method:s.data.method,error:n.message};self.postMessage(a);}};var Dn="",lr=Dn;\n\nexport { lr as default };\n',Ti=class{constructor(){x(this,"_workers",new Map),x(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([Di],{type:"application/javascript"});return new Worker(URL.createObjectURL(n),{type:"module",name:s})}getWorker(s){return this._workers.has(s)||this._workers.set(s,this._createWorker(s)),this._workers.get(s)}assignAnimationToWorker(s,n){this._animationWorkerMap.set(s,n)}unassignAnimationFromWorker(s){this._animationWorkerMap.delete(s)}sendMessage(s,n,a){this.getWorker(s).postMessage(n,a||[])}terminateWorker(s){let n=this._workers.get(s);n&&(n.terminate(),this._workers.delete(s))}};function Ca(s){if(s instanceof OffscreenCanvas)return{width:s.width,height:s.height};let{height:n,width:a}=s.getBoundingClientRect();return{width:a*window.devicePixelRatio,height:n*window.devicePixelRatio}}function wa(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Sa=class It{constructor(n){x(this,"_eventManager",new Ma),x(this,"_id"),x(this,"_worker"),x(this,"_canvas"),x(this,"_dotLottieInstanceState",{markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:window.devicePixelRatio},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),x(this,"_created",!1),this._canvas=n.canvas,this._id=`dotlottie-${wa()}`;let a=n.workerId||"defaultWorker";this._worker=It._workerManager.getWorker(a),It._workerManager.assignAnimationToWorker(this._id,a),It._wasmUrl&&this._sendMessage("setWasmUrl",{url:It._wasmUrl}),this._create(n),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}_handleWorkerEvent(n){return S(this,null,function*(){let a=n.data;a.id||(a.method==="onLoad"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onComplete"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onDestroy"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onUnfreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(a.result.event)),a.method==="onFrame"&&a.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=a.result.event.currentFrame,this._eventManager.dispatch(a.result.event)),a.method==="onRender"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onFreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPause"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPlay"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onStop"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onLoadError"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onReady"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)))})}_create(n){return S(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",E({instanceId:this._id,config:D(E({},n),{canvas:a})},Ca(this._canvas)),[a]);if(c!==this._id)throw new Error("Instance ID mismatch");this._created=!0,yield this._updateDotLottieInstanceState()})}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}play(){return S(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return S(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return S(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return S(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return S(this,null,function*(){if(!this._created)return!1;let a=this._sendMessage("loadTheme",{instanceId:this._id,themeId:n});return yield this._updateDotLottieInstanceState(),a})}load(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return S(this,null,function*(){if(!this._created)return;let{height:n,width:a}=Ca(this._canvas);this._canvas.width=a,this._canvas.height=n,yield this._sendMessage("resize",{height:n,instanceId:this._id,width:a}),yield this._updateDotLottieInstanceState()})}destroy(){return S(this,null,function*(){this._created&&(this._created=!1,yield this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),It._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners())})}freeze(){return S(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return S(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return S(this,null,function*(){if(!this._created)return;let n=yield this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=n.state})}markers(){return this._dotLottieInstanceState.markers}setMarker(n){return S(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return S(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadThemeData",{instanceId:this._id,themeData:n});return yield this._updateDotLottieInstanceState(),a})}setViewport(n,a,c,p){return S(this,null,function*(){return this._created?this._sendMessage("setViewport",{x:n,y:a,width:c,height:p,instanceId:this._id}):!1})}_sendMessage(n,a,c){return S(this,null,function*(){let p={id:`dotlottie-request-${wa()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((y,Y)=>{let ot=V=>{let Et=V.data;Et.id===p.id&&(this._worker.removeEventListener("message",ot),Et.error?Y(new Error(`Failed to execute method ${n}: ${Et.error}`)):y(Et.result))};this._worker.addEventListener("message",ot)})})}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}static setWasmUrl(n){It._wasmUrl=n}loadStateMachine(n){return S(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),a})}startStateMachine(){return S(this,null,function*(){if(!this._created)return!1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return S(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return S(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return S(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let a=this._canvas.getBoundingClientRect(),c=this._canvas.width/a.width,p=this._canvas.height/a.height,y=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,Y=(n.clientX-a.left)*c/y,ot=(n.clientY-a.top)*p/y;return{x:Y,y:ot}}_onPointerUp(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerUp: ${a} ${c}`)}_onPointerDown(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerDown: ${a} ${c}`)}_onPointerMove(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerMove: ${a} ${c}`)}_onPointerEnter(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerEnter: ${a} ${c}`)}_onPointerLeave(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerExit: ${a} ${c}`)}_onComplete(){this.postStateMachineEvent("OnComplete")}_setupStateMachineListeners(){return S(this,null,function*(){if(Pt&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._onPointerUp.bind(this)),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._onPointerDown.bind(this)),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._onPointerMove.bind(this)),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._onPointerEnter.bind(this)),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._onPointerLeave.bind(this)),n.includes("Complete")&&this.addEventListener("complete",this._onComplete.bind(this))}})}_cleanupStateMachineListeners(){Pt&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._onPointerUp.bind(this)),this._canvas.removeEventListener("pointerdown",this._onPointerDown.bind(this)),this._canvas.removeEventListener("pointermove",this._onPointerMove.bind(this)),this._canvas.removeEventListener("pointerenter",this._onPointerEnter.bind(this)),this._canvas.removeEventListener("pointerleave",this._onPointerLeave.bind(this)),this.removeEventListener("complete",this._onComplete.bind(this)))}};x(Sa,"_workerManager",new Ti),x(Sa,"_wasmUrl","");function Aa(s,n){let a=s.ngOnInit;s.ngOnInit=function(){if(this[n]===void 0||this[n]===null)throw new Error(`Required input '${n}' was not provided in ${s.constructor.name}.`);if(a)return a.apply(this)}}var Wt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(Wt||{});var Ia={[Wt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[Wt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var Oi=["dotlottieCanvas"],ut,Jt=(ut=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Ia[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new ba({autoplay:!1,loop:!0,canvas:this.dotlottieCanvas.nativeElement,src:n.path,speed:n.speed||1}),this.dotLottie.addEventListener("load",()=>{this.listenToScriptStateChanges()}),this.renderer.addClass(this.el.nativeElement,n.className)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Ot(this)).subscribe(n=>{ye(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},ut.\u0275fac=function(a){return new(a||ut)(W(kt),W(Xn),W(qn))},ut.\u0275cmp=X({type:ut,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ta(Oi,7),a&2){let p;ea(p=na())&&(c.dotlottieCanvas=p.first)}},inputs:{animationType:"animationType"},decls:3,vars:0,consts:[["dotlottieCanvas",""],[1,"parent-container"],["id","dotlottie-canvas"]],template:function(a,c){a&1&&(w(0,"div",1),A(1,"canvas",2,0),v())},styles:[".parent-container[_ngcontent-%COMP%]{overflow:hidden;height:300px;border-radius:10px;margin-bottom:10px;position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}canvas[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover;position:absolute;top:50%;left:0;transform:translateY(-50%)}.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#b2ddff}@media (max-width: 1000px){.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1200px){.pruning[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#1649a8}@media (max-width: 1000px){.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1100px){.quant[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}"],changeDetection:0}),ut);ht([Aa],Jt.prototype,"animationType",void 0);Jt=ht([yt()],Jt);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),$i=100,te=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Pa=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[$i,...n]}]},on=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],sn=(s,n)=>n===j.LOSS?s.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p?.loss).filter(p=>p!=null)})):[{datasetIndex:0,values:s.map(a=>a.accuracy).filter(a=>a!=null)}],cn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),ln=(s,n)=>s.tests.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])}));var Fa=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialAccuracyChartData=[],this.accuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisDynamic:!0,datasetLabelPrefix:"Epoch:",xAxisLabelPrefix:"Step",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY},this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY},this.initialLossChartData=[],this.lossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Epoch:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:1,dynamicYAxisGrowthRoundFactor:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.dispatch(Ct.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),st(c=>!Ce(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=cn(c,j.ACCURACY),this.initialLossChartData=cn(c,j.LOSS),this.initialAccuracyTestingChartData=ln(c,j.ACCURACY),this.initialLossTestingChartData=ln(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W($t))},n.\u0275cmp=X({type:n,selectors:[["ms-running-machine-unlearning-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,y){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()()()),p&2&&(I(5),R("data",y.initialAccuracyChartData)("settings",y.accuracyChartDisplaySettings),I(4),R("data",y.initialAccuracyTestingChartData)("settings",y.testingAccuracyChartDisplaySettings),I(5),R("data",y.initialLossChartData)("settings",y.lossChartDisplaySettings),I(4),R("data",y.initialLossTestingChartData)("settings",y.testingLossChartDisplaySettings))},dependencies:[wt],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var rt=function(s){return s.SPARSITY_PRUNING="sparsityPruning",s.ACCURACY_PRUNING="accuracyPruning",s.ACCURACY_QUANTIZATION="accuracyQuantization",s.ACCURACY_MACHINE_UNLEARNING="accuracyMachineUnlearning",s.LOSS_QUANTIZATION="lossQuantization",s.LOSS_PRUNING="lossPruning",s.LOSS_MACHINE_UNLEARNING="lossMachineUnlearning",s.TESTING_ACCURACY_CHART="testing_accuracyChart",s.TESTING_LOSS_CHART="testing_lossChart",s}(rt||{});var pt,Pe=(pt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=D(E({},Ut),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:tn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=D(E({},Ut),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Le,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=D(E({},Ut),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:tn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=D(E({},Ut),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Le,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=D(E({},Ut),{xAxisLabelPrefix:"Pruning",isDatasetLabelVisible:!1,yAxisTickInterval:100,chartDataStructure:H.SINGLE_PHASE_X_AXIS_SKIP_ONE,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.BLUE,useSteppedLines:!0,realtimeUpdateMetric:U.SPARSITY})}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(n=>{n&&(this.accuracyPruningChartSettings=n[rt.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=D(E({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=D(E({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=D(E({},n[rt.LOSS_PRUNING]||{}),{testingSteps:Le}),this.lossChartDisplaySettings=D(E({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=D(E({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=E({},n[rt.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=D(E({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(Ct.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(Ct.getChartConfigurationSettings({chartTypes:[rt.ACCURACY_PRUNING,rt.LOSS_PRUNING,rt.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),st(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=te(n,j.LOSS),this.initialLossTestingChartData=te(n,j.LOSS,!0),this.initialAccuracyChartData=te(n,j.ACCURACY),this.initialAccuracyTestingChartData=te(n,j.ACCURACY,!0),this.initialSparsityChartData=Pa(n)})}},pt.\u0275fac=function(a){return new(a||pt)(W($t))},pt.\u0275cmp=X({type:pt,selectors:[["ms-running-pruning-charts"]],decls:23,vars:10,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"],[1,"ms-chart-display","sparsity-chart"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),L(21,"Sparsity Training"),v(),A(22,"ms-line-chart",4),v()()),a&2&&(I(5),R("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),I(4),R("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),I(5),R("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),I(4),R("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),I(4),R("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[wt],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%]{flex-direction:column}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;flex:0 0 30%}"]}),pt);Pe=ht([yt()],Pe);var Da=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.initialLossTestingChartData=[],this.initialAccuracyChartData=[],this.initialAccuracyTestingChartData=[],this.lossChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:40,datasetLabelPrefix:"Reconstruction:",xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:50,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.lossTestingChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,datasetColorSettingsKey:B.YELLOW,dynamicYAxisGrowthRoundFactor:2,realtimeUpdateMetric:U.TESTING_LOSS},this.accuracyChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisLabelPrefix:"Recon.",isDatasetLabelVisible:!1,isXAxisVisible:!0,xAxisInitialLabelValue:0,chartDataStructure:H.SINGLE_PHASE_X_AXIS,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,isXAxisDynamic:!0,realtimeUpdateMetric:U.ACCURACY,enhanceSinglePhaseXAxisWebsocketEvent:!0},this.accuracyTestingChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(c=>{c&&(this.accuracyChartDisplaySettings=D(E({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[rt.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(Ct.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(Ct.getChartConfigurationSettings({chartTypes:[rt.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),st(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=sn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=sn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=on(c.testing,j.LOSS),this.initialAccuracyTestingChartData=on(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W($t))},n.\u0275cmp=X({type:n,selectors:[["ms-running-quantization-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"reconstructions"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,y){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),L(4,"Accuracy Training"),v(),A(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),L(8,"Accuracy Test"),v(),A(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),L(13,"Loss Training"),v(),A(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),L(17,"Loss Test"),v(),A(18,"ms-line-chart",4),v()()()),p&2&&(I(5),R("data",y.initialAccuracyChartData)("settings",y.accuracyChartDisplaySettings),I(4),R("data",y.initialAccuracyTestingChartData)("settings",y.accuracyTestingChartDisplaySettings),I(5),R("data",y.initialLossChartData)("settings",y.lossChartDisplaySettings),I(4),R("data",y.initialLossTestingChartData)("settings",y.lossTestingChartDisplaySettings))},dependencies:[wt],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .reconstructions[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var Ta=(()=>{let n=class n{constructor(){this.keyMap={forget_acc:"Forget Accuracy",retain_acc:"Retain Accuracy",test_acc:"Test Accuracy",val_acc:"Validation Accuracy"}}transform(c){if(!c)return c;let p=c.split("_");if(p.length<3)return c;let y=p.slice(0,-2).join("_"),Y=p[p.length-1];return`${this.keyMap[y]||y.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${Y})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Yn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Yi=s=>({stats:s});function Gi(s,n){if(s&1&&(w(0,"div",4)(1,"span",5),L(2),ge(3,"readableStatisticsLabel"),v(),w(4,"span",6),L(5),v()()),s&2){let a=n.$implicit;I(2),pe("",fe(3,2,a.key),":"),I(3),aa(a.value)}}function Vi(s,n){if(s&1&&(w(0,"div",2),Qn(1,Gi,6,4,"div",4,Kn),v()),s&2){let a=dt();I(),Zn(a.stats)}}function Xi(s,n){s&1&&A(0,"ms-empty-state",3)}function qi(s,n){if(s&1&&at(0,Vi,3,0,"div",2)(1,Xi,1,0,"ms-empty-state",3),s&2){let a=n;it(a.stats!=null&&a.stats.length?0:1)}}var Ra=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(ya.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(_a))},n.\u0275cmp=X({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[[1,"ms-card"],[1,"heading-section-title"],[1,"key-value-container","dense"],["title","No statistics available."],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"]],template:function(p,y){if(p&1&&(w(0,"mat-card",0)(1,"p",1),L(2,"Statistics"),v(),at(3,qi,2,1),ge(4,"async"),ge(5,"keyvalue"),v()),p&2){let Y;I(3),it((Y=ia(5,Yi,fe(5,3,fe(4,1,y.statistics$))))?3:-1,Y)}},dependencies:[Me,Se,ra,oa,Ta]});let s=n;return s})();function Ji(s,n){if(s&1){let a=Jn();w(0,"div",4)(1,"button",18),Rt("click",function(){Gn(a);let p=dt();return Vn(p.runStopScript())}),L(2," Stop "),v()()}}function tr(s,n){s&1&&(w(0,"div",16)(1,"div",13),L(2,"\u2014"),v(),w(3,"div",14),L(4,"Sparsity"),v()())}var gt,Ee=(gt=class{constructor(n,a){this.scriptFacadeService=n,this.chartToolsGlobalSignalsService=a,this.isScriptActive=!1,this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToScriptStateChanges(),this.subscribeToChartToolsSignals()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(Zt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),st(n=>!we(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe(Ot(this)).subscribe(n=>{this.isScriptActive=ye(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===At.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(Ot(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(Ot(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(Zt.stopScript())}},gt.\u0275fac=function(a){return new(a||gt)(W(kt),W(be))},gt.\u0275cmp=X({type:gt,selectors:[["ms-running-status-bar"]],decls:33,vars:7,consts:[[1,"training-status","mb-2"],[1,"status-bar"],[1,"runnning-title-container"],[1,"model-name","heading-sub-section-title"],[1,"ml-2"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel","disabled"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel","disabled"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[1,"metrics"],[1,"metric","accuracy"],[1,"metric-value"],[1,"metric-name","paragraph-semibold-p2-large-emphasis"],[1,"metric","loss"],[1,"metric","sparsity"],[1,"metric","testing"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),L(5),v(),at(6,Ji,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),Ze("ngModelChange",function(y){return Qe(c.enableTooltips,y)||(c.enableTooltips=y),y}),Rt("change",function(y){return c.toggleTooltip(y)}),L(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),Ze("ngModelChange",function(y){return Qe(c.enableZoom,y)||(c.enableZoom=y),y}),Rt("change",function(y){return c.toggleZoom(y)}),L(13," Enable zoom "),v(),w(14,"div",9),A(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),L(19,"\u2014"),v(),w(20,"div",14),L(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),L(24,"\u2014"),v(),w(25,"div",14),L(26,"Loss"),v()(),at(27,tr,5,0,"div",16),w(28,"div",17)(29,"div",13),L(30,"\u2014"),v(),w(31,"div",14),L(32,"Test"),v()()()()),a&2&&(I(5),pe("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),I(),it(c.isScriptActive?6:-1),I(3),Ke("ngModel",c.enableTooltips),R("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),I(3),Ke("ngModel",c.enableZoom),R("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),I(15),it(c.isSparsityVisible?27:-1))},dependencies:[_e,ve,ca,la,ga],styles:[".training-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.training-status[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.training-status[_ngcontent-%COMP%] .runnning-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%], .training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%]{display:flex;gap:10px}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:1.25rem}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.sparsity[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-sparsity)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.accuracy[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-accuracy)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.loss[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-loss)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.testing[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-testing)}"]}),gt);Ee=ht([yt()],Ee);function nr(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.QUANTIZATION)}}function ar(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.PRUNING)}}function ir(s,n){if(s&1&&A(0,"ms-running-animation",1),s&2){let a=dt();R("animationType",a.AnimationType.PRUNING)}}function rr(s,n){s&1&&A(0,"ms-running-quantization-charts")}function or(s,n){s&1&&A(0,"ms-running-pruning-charts")}function sr(s,n){s&1&&A(0,"ms-running-machine-unlearning-charts")}function cr(s,n){if(s&1&&at(0,rr,1,0,"ms-running-quantization-charts")(1,or,1,0,"ms-running-pruning-charts")(2,sr,1,0,"ms-running-machine-unlearning-charts"),s&2){let a,c=dt();it((a=c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.QUANTIZATION?0:a===c.AlgorithmType.PRUNING?1:a===c.AlgorithmType.MACHINE_UNLEARNING?2:-1)}}function lr(s,n){s&1&&A(0,"ms-empty-state",3)}function hr(s,n){s&1&&(w(0,"div",4),A(1,"ms-running-statistics"),v())}var ft,xe=(ft=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=At,this.AnimationType=Wt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(Zt.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),st(n=>!we(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ce(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==At.TRAIN&&this.scriptDetails?.type!==At.AWQ&&this.scriptDetails?.type!==At.MULTIFLOW}},ft.\u0275fac=function(a){return new(a||ft)(W(va),W(kt))},ft.\u0275cmp=X({type:ft,selectors:[["ms-running"]],decls:14,vars:3,consts:[[1,"heading-primary-title","title"],[3,"animationType"],[1,"ms-card","running-prunning"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(a,c){if(a&1&&(w(0,"p",0),L(1,"Running"),v(),at(2,nr,1,1,"ms-running-animation",1)(3,ar,1,1,"ms-running-animation",1)(4,ir,1,1,"ms-running-animation",1),w(5,"mat-card",2),A(6,"ms-running-status-bar"),at(7,cr,3,1)(8,lr,1,0,"ms-empty-state",3),v(),at(9,hr,2,0,"div",4),w(10,"div",5)(11,"button",6),Rt("click",function(){return c.navigationService.goToPreviousPage()}),A(12,"mat-icon",7),L(13," Go back "),v()()),a&2){let p;I(2),it((p=c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.QUANTIZATION?2:p===c.AlgorithmType.PRUNING?3:p===c.AlgorithmType.MACHINE_UNLEARNING?4:-1),I(5),it(c.isChartVisible?7:8),I(2),it((c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING?9:-1)}},dependencies:[Me,_e,ve,Se,Pe,Da,Fa,Jt,Ra,Ee]}),ft);xe=ht([yt()],xe);var dr=[{path:"",component:xe}],Oa=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ue({imports:[Je.forChild(dr),Je]});let s=n;return s})();var is=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=me({type:n}),n.\u0275inj=ue({providers:[be],imports:[sa,Oa,wt,ma,ua,pa,ha,da,fa]});let s=n;return s})();export{is as RunningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SW5QWC5Y.js b/frontend/server/modelsmith-build/browser/chunk-SW5QWC5Y.js new file mode 100644 index 00000000..a945d040 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-SW5QWC5Y.js @@ -0,0 +1,11 @@ +import{a as vt,e as xt,g as fn,h as ze,i as Ge}from"./chunk-7WTGJY2P.js";import{a as _n,b as bt,c as Cn}from"./chunk-GJVIMBQE.js";import{a as Ct}from"./chunk-AKLXM26R.js";import{a as Gt,d as Ui,e as Qi,f as vn,g as xn}from"./chunk-IICO2ENP.js";import{a as tn,b as nn,c as on,d as rn,e as an,f as sn,g as ln,h as cn,i as dn,j as pn,k as mn,l as hn,m as un,n as ye,o as gn,p as _t,q as je}from"./chunk-UKDWQOGW.js";import{a as Ji,b as en}from"./chunk-TP3SZI6Y.js";import{a as Xi,b as Wi}from"./chunk-OWLYOD4I.js";import{a as ft,b as Zi}from"./chunk-F7URI57V.js";import{a as at,b as Ti}from"./chunk-OA3ZLQZZ.js";import{c as R}from"./chunk-LRK34XDC.js";import{a as ut}from"./chunk-QVMVB2QY.js";import{a as Le,c as gt,d as zt}from"./chunk-XX6ZYDLH.js";import{a as Ki,b as qi}from"./chunk-YPMBMI5J.js";import"./chunk-QTJZRTNN.js";import{a as be,b as L}from"./chunk-6VRVKV6C.js";import{c as Gi,e as Yi,f as $i,m as ht}from"./chunk-W4S57J6B.js";import{a as pt,h as mt,i as Hi,j as ji,k as zi}from"./chunk-OFW2ET2O.js";import{$ as Y,$a as W,$d as Ke,Ab as H,Ba as Ft,Bb as it,Bc as Qe,Bd as Ai,Ca as di,Cc as Lt,D as Tt,Da as It,Db as Bt,E as Ee,Ea as c,Fa as p,Fb as D,Fd as Mi,Ga as pi,Gb as M,Gd as Ei,Ha as mi,Hb as fi,Hd as jt,I as ii,J as de,Jb as _i,Lb as J,Na as hi,Nb as ee,Oa as Ot,Ob as Ci,Pa as ie,Q as Pt,Qa as f,Qb as vi,R as kt,Ra as et,Rd as rt,Sa as h,Sc as yi,Ta as B,Tb as xi,Ua as q,Ub as Nt,Va as ui,Vb as nt,Xb as Oe,Xd as Pi,Ya as S,Yb as bi,Yd as ki,Z as ni,Za as ne,Zb as wi,_ as pe,_a as X,_b as ot,_d as Te,a as Ae,aa as me,ab as s,b as Xe,bb as l,be as we,ca as he,cb as g,ce as Ne,da as oi,db as U,de as st,eb as Q,g as Ze,gb as E,ge as Fi,ha as A,he as lt,ia as $,j as Me,ja as P,jb as _,je as ct,k as Et,ka as Je,ke as Ii,l as ei,lb as m,mb as tt,me as Ve,nb as fe,o as ti,oa as ue,oe as dt,p as ce,pa as v,pb as Rt,pc as Vt,pd as Si,pe as Oi,qa as x,qb as Z,qe as Ri,ra as Ie,rb as N,re as Bi,sa as ri,sb as V,sc as We,ta as ai,tb as gi,tc as Re,te as Ni,ua as si,ub as u,ue as Vi,va as li,vb as _e,wb as w,wc as k,we as He,xa as ge,xb as Ce,xc as Ue,xd as Di,xe as Li,ya as y,yb as ve,yc as Ht,za as ci,zb as xe,zc as Be}from"./chunk-64NP6AY6.js";var Un=["hueSlider"],Qn=["alphaSlider"];function Kn(n,i){if(n&1){let e=E();s(0,"div",10),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("saturation-lightness",o))}),s(1,"div",11),g(2,"div"),l()()}if(n&2){let e=m();B("background-color",e.hueSliderColor),h("rgX",1)("rgY",1),c(),B("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function qn(n,i){if(n&1&&(s(0,"div",12),g(1,"div",13)(2,"div",14),l()),n&2){let e=m();c(2),B("background-color",e.selectedColor)}}function Zn(n,i){if(n&1){let e=E();s(0,"div",15,1),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("hue",o))}),s(2,"div",16)(3,"div"),g(4,"div"),l()()()}if(n&2){let e=m();h("rgX",1),c(2),B("left",e.slider==null?null:e.slider.h,"px")}}function Jn(n,i){if(n&1){let e=E();s(0,"div",17,2),_("newValue",function(o){v(e);let r=m();return x(r.onSliderChange("alpha",o))}),g(2,"div",18),s(3,"div",16)(4,"div"),g(5,"div"),l()()()}if(n&2){let e=m();h("rgX",1),c(2),h("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),c(),B("left",e.slider==null?null:e.slider.a,"px")}}var eo=["dialog"],yn=n=>({background:n});function to(n,i){n&1&&g(0,"div",12)}function io(n,i){if(n&1){let e=E();U(0),s(1,"div",9)(2,"div",10),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.onColorClick(o))}),f(3,to,1,0,"div",11),l()(),Q()}if(n&2){let e=i.$implicit,t=i.index,o=m(2);c(2),q("colornull",!e),h("ngStyle",o.getBackgroundColor(e)),c(),h("ngIf",t==o.indexSeleccionado)}}function no(n,i){if(n&1&&g(0,"div",18),n&2){let e=m(3);h("ngStyle",e.getBackgroundColor(e.color))}}function oo(n,i){if(n&1){let e=E();s(0,"div",13),_("click",function(){v(e);let o=m(2);return x(o.addColor())}),f(1,no,1,1,"div",14),Ie(),s(2,"svg",15),g(3,"path",16)(4,"path",17),l()()}if(n&2){let e=m(2);c(),h("ngIf",e.indexSeleccionado===void 0)}}function ro(n,i){if(n&1){let e=E();s(0,"color-picker",19),_("colorChange",function(o){v(e);let r=m(2);return x(r.onChangeColorPicker(o))})("onAlphaChange",function(o){v(e);let r=m(2);return x(r.onAlphaChange(o))}),l()}if(n&2){let e=m(2);h("controls",e.colorPickerControls)("color",e.hsva)}}function ao(n,i){if(n&1&&(U(0),s(1,"div",5),f(2,io,4,4,"ng-container",6)(3,oo,5,1,"div",7)(4,ro,1,2,"color-picker",8),l(),Q()),n&2){let e=m();c(),h("@colorsAnimation",e.colorsAnimationEffect),c(),h("ngForOf",e.palette),c(),h("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),c(),h("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function so(n,i){n&1&&g(0,"div",12)}function lo(n,i){if(n&1){let e=E();U(0),s(1,"div",9)(2,"div",25),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.changeColor(o))}),f(3,so,1,0,"div",11),l()(),Q()}if(n&2){let e=i.$implicit,t=m(2);c(2),q("colornull",!e),h("ngStyle",Bt(4,yn,e)),c(),h("ngIf",t.isSelected(e))}}function co(n,i){if(n&1){let e=E();U(0),s(1,"div",5)(2,"div",20)(3,"div",21),_("click",function(){v(e);let o=m();return x(o.onClickBack())}),Ie(),s(4,"svg",22),g(5,"path",23)(6,"path",24),l()()(),f(7,lo,4,6,"ng-container",6),l(),Q()}if(n&2){let e=m();c(),h("@colorsAnimation",e.colorsAnimationEffect),c(6),h("ngForOf",e.variants)}}function po(n,i){if(n&1){let e=E();U(0),s(1,"div",26)(2,"div",27),_("click",function(){v(e);let o=m();return x(o.onClickBack())}),Ie(),s(3,"svg",22),g(4,"path",23)(5,"path",24),l()(),ri(),s(6,"button",28),_("click",function(){v(e);let o=m();return x(o.emitClose("cancel"))}),u(7),l(),s(8,"button",28),_("click",function(){v(e);let o=m();return x(o.emitClose("accept"))}),u(9),l()(),s(10,"div",29)(11,"color-picker",30),_("sliderChange",function(o){v(e);let r=m();return x(r.onChangeColorPicker(o))}),l()(),Q()}if(n&2){let e=m();c(7),w(" ",e.cancelLabel," "),c(2),w(" ",e.acceptLabel," "),c(2),h("controls",e.colorPickerControls)("color",e.hsva)}}function mo(n,i){if(n&1){let e=E();s(0,"div",31)(1,"p",32),_("click",function(){v(e);let o=m();return x(o.nextFormat())}),u(2),l(),s(3,"div",33)(4,"input",34,1),_("keyup",function(){v(e);let o=gi(5),r=m();return x(r.changeColorManual(o.value))})("keydown.enter",function(){v(e);let o=m();return x(o.emitClose("accept"))}),l()()()}if(n&2){let e=m();c(2),_e(e.colorFormats[e.format]),c(2),B("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),h("placeholder",e.placeholder)("value",e.color)}}var Yt=["hex","rgba","hsla","cmyk"],F=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(F||{}),bn=[{color:"rojo",preview:"#E57373",variants:["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828"]},{color:"rosa",preview:"#F06292",variants:["#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457"]},{color:"purpura",preview:"#BA68C8",variants:["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A"]},{color:"purpura oscuro",preview:"#9575CD",variants:["#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0"]},{color:"indigo",preview:"#7986CB",variants:["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593"]},{color:"azul",preview:"#64B5F6",variants:["#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0"]},{color:"celeste",preview:"#4FC3F7",variants:["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD"]},{color:"cyan",preview:"#4DD0E1",variants:["#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F"]},{color:"color",preview:"#4DB6AC",variants:["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C"]},{color:"verde",preview:"#81C784",variants:["#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32"]},{color:"verde claro",preview:"#AED581",variants:["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F"]},{color:"lima",preview:"#DCE775",variants:["#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24"]},{color:"amarillo",preview:"#FFF176",variants:["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825"]},{color:"ambar",preview:"#FFD54F",variants:["#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00"]},{color:"naranja",preview:"#FFB74D",variants:["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00"]},{color:"naranja oscuro",preview:"#FF8A65",variants:["#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315"]},{color:"marron",preview:"#A1887F",variants:["#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E"]},{color:"escala de grises",preview:"#E0E0E0",variants:["#FFFFFF","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#000000"]},{color:"azul gris",preview:"#90A4AE",variants:["#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F"]}],te=class{constructor(i,e,t,o){this.r=i,this.g=e,this.b=t,this.a=o}denormalize(){return this.r=Math.round(this.r*255),this.g=Math.round(this.g*255),this.b=Math.round(this.b*255),this}toString(){return this.denormalize(),"rgb"+(this.a!=1?"a(":"(")+this.r+", "+this.g+", "+this.b+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},K=class{constructor(i,e,t,o){this.h=i,this.s=e,this.v=t,this.a=o,this.onChange=new y(!0)}onColorChange(i){this.s=i.s/i.rgX,this.v=i.v/i.rgY}onHueChange(i){this.h=i.v/i.rgX}onValueChange(i){this.v=i.v/i.rgX}onAlphaChange(i){this.a=i.v/i.rgX}},Pe=class{constructor(i,e,t,o){this.h=i,this.s=e,this.l=t,this.a=o}denormalize(){return this.h=Math.round(this.h*360),this.s=Math.round(this.s*100),this.l=Math.round(this.l*100),this}toString(){return"hsl"+(this.a!=1?"a(":"(")+this.h+", "+this.s+"%, "+this.l+"%"+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},Se=class{constructor(i,e,t,o,r=1){this.c=i,this.m=e,this.y=t,this.k=o,this.a=r}denormalize(){return this.c=Math.round(this.c*100),this.m=Math.round(this.m*100),this.y=Math.round(this.y*100),this.k=Math.round(this.k*100),this}toString(){return this.denormalize(),"cmyk("+this.c+", "+this.m+", "+this.y+", "+this.k+")"}},$t=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},yt=(()=>{class n{constructor(){}toFormat(e,t){var o="";if(e)switch(t){case F.HEX:var a=this.hsvaToRgba(e);a.denormalize();var o=this.rgbaToHex(a,!0);break;case F.HSLA:var r=this.hsva2hsla(e);r.denormalize();var o=r.toString();break;case F.RGBA:var a=this.hsvaToRgba(e),o=a.toString();break;case F.CMYK:var d=this.hsvaToCmyk(e),o=d.toString();break}return o}stringToFormat(e,t){var o=this.stringToHsva(e,!0);return this.toFormat(o,t)}hsva2hsla(e){let t=e.h,o=e.s,r=e.v,a=e.a;if(r===0)return new Pe(t,0,0,a);if(o===0&&r===1)return new Pe(t,1,1,a);{let d=r*(2-o)/2;return new Pe(t,r*o/(1-Math.abs(2*d-1)),d,a)}}hsla2hsva(e){let t=Math.min(e.h,1),o=Math.min(e.s,1),r=Math.min(e.l,1),a=Math.min(e.a,1);if(r===0)return new K(t,0,0,a);{let d=r+o*(1-Math.abs(2*r-1))/2;return new K(t,2*(d-r)/d,d,a)}}hsvaToRgba(e){let t,o,r,a=e.h,d=e.s,C=e.v,b=e.a,G=Math.floor(a*6),I=a*6-G,O=C*(1-d),$e=C*(1-I*d),De=C*(1-(1-I)*d);switch(G%6){case 0:t=C,o=De,r=O;break;case 1:t=$e,o=C,r=O;break;case 2:t=O,o=C,r=De;break;case 3:t=O,o=$e,r=C;break;case 4:t=De,o=O,r=C;break;case 5:t=C,o=O,r=$e;break;default:t=0,o=0,r=0}return new te(t,o,r,b)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),o=(1-e.m)*(1-e.k),r=(1-e.y)*(1-e.k);return new te(t,o,r,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new Se(0,0,0,1,e.a);{let o=(1-e.r-t)/(1-t),r=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new Se(o,r,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,o,r=Math.min(e.r,1),a=Math.min(e.g,1),d=Math.min(e.b,1),C=Math.min(e.a,1),b=Math.max(r,a,d),G=Math.min(r,a,d),I=b,O=b-G;if(o=b===0?0:O/b,b===G)t=0;else{switch(b){case r:t=(a-d)/O+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new y,this.dragStart=new y,this.newValue=new y,this.listenerMove=t=>this.move(t),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){let t=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,r=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:r/t,v:1-a/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:r/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(p(ge))},n.\u0275dir=P({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&_("mousedown",function(r){return t.mouseDown(r)})("touchstart",function(r){return t.touchStart(r)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),uo=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new K(0,1,1,1),this.controls="default",this.sliderChange=new y(!1),this.onAlphaChange=new y(!1),this.hsva=new K(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new K(0,1,1,1)),this.slider=new wt(0,0,0,0),this.update()}ngOnDestroy(){}ngOnChanges(e){e.color&&this.color&&this.update()}ngAfterViewInit(){let e=this.hueSlider?.nativeElement.offsetWidth||140,t=this.alphaSlider?.nativeElement.offsetWidth||140;this.sliderDimMax=new Xt(e,220,130,t),this.update()}onSliderChange(e,t){switch(e){case"saturation-lightness":this.hsva.onColorChange(t);break;case"hue":this.hsva.onHueChange(t);break;case"alpha":this.hsva.onAlphaChange(t),this.onAlphaChange.emit(t);break;case"value":this.hsva.onValueChange(t);break}this.update(),this.setColor(this.outputColor)}setColor(e){this.color=e,this.sliderChange.emit(this.color)}getBackgroundColor(e){return{background:"linear-gradient(90deg, rgba(36,0,0,0) 0%, "+e+" 100%)"}}update(){if(this.hsva=this.color,this.sliderDimMax){let e=this.service.hsvaToRgba(this.hsva).denormalize(),t=this.service.hsvaToRgba(new K(this.hsva.h,1,1,1)).denormalize();this.hueSliderColor="rgb("+t.r+","+t.g+","+t.b+")",this.alphaSliderColor="rgb("+e.r+","+e.g+","+e.b+")",this.outputColor=this.hsva,this.selectedColor=this.service.hsvaToRgba(this.hsva).toString(),this.slider=new wt(this.hsva.h*this.sliderDimMax.h-5,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-5),this.cdr.detectChanges()}}}return n.\u0275fac=function(e){return new(e||n)(p(yt),p(J))},n.\u0275cmp=A({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(Z(Un,5),Z(Qn,5)),e&2){let o;N(o=V())&&(t.hueSlider=o.first),N(o=V())&&(t.alphaSlider=o.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[ue],decls:8,vars:4,consts:[["dialogPopup",""],["hueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue",4,"ngIf"],[1,"hue-alpha","box"],["class","left",4,"ngIf"],[1,"right"],["class","hue",3,"slider","rgX","newValue",4,"ngIf"],["class","alpha",3,"slider","rgX","newValue",4,"ngIf"],[1,"saturation-lightness",3,"newValue","slider","rgX","rgY"],[1,"cursor"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],[1,"hue",3,"newValue","slider","rgX"],[1,"sliderCursor"],[1,"alpha",3,"newValue","slider","rgX"],[1,"alpha-gradient",3,"ngStyle"]],template:function(e,t){if(e&1){let o=E();s(0,"div",3,0),_("click",function(a){return v(o),x(a.stopPropagation())}),f(2,Kn,3,8,"div",4),s(3,"div",5),f(4,qn,3,2,"div",6),s(5,"div",7),f(6,Zn,5,3,"div",8)(7,Jn,6,4,"div",9),l()()()}e&2&&(c(2),h("ngIf",t.controls!="only-alpha"),c(2),h("ngIf",t.controls!="only-alpha"),c(2),h("ngIf",t.controls!="only-alpha"),c(),h("ngIf",t.controls!="no-alpha"))},dependencies:[Nt,nt,ho],styles:[`.color-picker{position:relative;z-index:1000;width:220px;height:auto;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .sliderCursor{width:10px;border-radius:5px;position:absolute;margin-top:-3px;border:1px solid black}.color-picker .sliderCursor>div{border:2px solid white;border-radius:5px}.color-picker .sliderCursor>div>div{border-radius:5px;border:1px solid black;height:24px}.color-picker .cursor{position:absolute;width:21px;border:3px solid black;border-radius:100%;margin:-2px 0 0 -2px}.color-picker .cursor>div{height:15px;border:3px solid white;border-radius:100%}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:12px 8px}.color-picker .hue-alpha{display:flex;align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:24px;border:none;border-radius:5px;position:relative;cursor:pointer;background-size:100% 100%;background:linear-gradient(to right,red 0%,#ff0 17%,lime 33%,cyan 50%,blue 66%,#f0f 83%,red 100%)}.color-picker .alpha{direction:ltr;position:relative;width:100%;height:24px;border:none;border-radius:5px;cursor:pointer;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .alpha-gradient{width:100%;height:100%;border-radius:5px;position:absolute}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;box-shadow:0 1px 1px 1px #00000026;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .saturation-lightness{direction:ltr;cursor:crosshair;width:100%;position:relative;height:130px;border:none;touch-action:manipulation;background-image:linear-gradient(to top,#000 0%,transparent 100%),linear-gradient(to right,#fff 0%,transparent 100%)} +`],encapsulation:2}),n})(),go=(()=>{class n{click(e){this.isOutside(e)&&this.emitClose("cancel")}onScroll(){this.onScreenMovement()}onResize(){this.onScreenMovement()}constructor(e,t){this.service=e,this.cdr=t,this.color="#000000",this.previewColor="#000000",this.hsva=new K(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=bn,this.variants=[],this.userFormats=[],this.colorFormats=Yt,this.format=F.HEX,this.formatMap={hex:F.HEX,rgba:F.RGBA,hsla:F.HSLA,cmyk:F.CMYK},this.canChangeFormat=!0,this.menu=1,this.hideColorPicker=!1,this.hideTextInput=!1,this.colorPickerControls="default",this.placeholder="#FFFFFF"}ngOnInit(){this.setPosition(),this.hsva=this.service.stringToHsva(this.color),this.indexSeleccionado=this.findIndexSelectedColor(this.palette)}ngAfterViewInit(){this.setPositionY()}onScreenMovement(){this.setPosition(),this.setPositionY(),this.panelRef.nativeElement.style.transition||(this.panelRef.nativeElement.style.transition="transform 0.5s ease-out")}findIndexSelectedColor(e){let t;if(this.color)for(let o=0;oYt.includes(Wn))&&(this.colorFormats=De),d?this.colorFormats.includes(d)?(this.format=this.colorFormats.indexOf(d.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=d.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=F.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=r??bn,this.colorsAnimationEffect=a,$e=="top"){let Jt=this.TriggerBBox.nativeElement.getBoundingClientRect();this.positionString="transform: translateY(calc( -100% - "+Jt.height+"px ))"}}setPosition(){if(this.TriggerBBox){let t=this.TriggerBBox.nativeElement.getBoundingClientRect();this.top=t.top+t.height,t.left+250>window.innerWidth?this.left=t.right<250?window.innerWidth/2-250/2:t.right-250:this.left=t.left}}setPositionY(){let e=this.TriggerBBox.nativeElement.getBoundingClientRect(),t=this.panelRef.nativeElement.getBoundingClientRect(),o=t.height;e.bottom+o>window.innerHeight?this.positionString=e.topt.toUpperCase()==this.previewColor.toUpperCase()):!1}isSelected(e){return this.previewColor?typeof e=="string"&&e.toUpperCase()==this.previewColor.toUpperCase():!1}getBackgroundColor(e){return typeof e=="string"?{background:e}:{background:e?.preview}}onAlphaChange(e){this.palette=this.ChangeAlphaOnPalette(e,this.palette)}ChangeAlphaOnPalette(e,t){var o=[];for(let r=0;r slide-in",[Qe(":enter",k({opacity:0}),{optional:!0}),Qe(":enter",Lt("10ms",[Re(".3s ease-in",Ht([k({opacity:0,transform:"translatex(-50%)",offset:0}),k({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),k({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Be("void => popup",[Qe(":enter",k({opacity:0,transform:"scale(0)"}),{optional:!0}),Qe(":enter",Lt("10ms",[Re("500ms ease-out",Ht([k({opacity:.5,transform:"scale(.5)",offset:.3}),k({opacity:1,transform:"scale(1.1)",offset:.8}),k({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),wn={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Sn=(()=>{class n{constructor(e,t,o){this.resolver=e,this.applicationRef=t,this.injector=o}createPanel(e,t){this.componentRef!=null&&this.removePanel();let o=this.resolver.resolveComponentFactory(go);this.componentRef=o.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let r=this.componentRef.hostView.rootNodes[0];return this.overlay=document.createElement("div"),this.overlay.id="ngx-colors-overlay",this.overlay.classList.add("ngx-colors-overlay"),this.overlay.classList.add(t),Object.keys(wn).forEach(a=>{this.overlay.style[a]=wn[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(r),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(he(mi),he(_i),he(li))},n.\u0275prov=pe({token:n,factory:n.\u0275fac}),n})(),Ut=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,o){this.triggerRef=e,this.panelFactory=t,this.service=o,this.color="",this.colorsAnimation="slide-in",this.position="bottom",this.attachTo=void 0,this.overlayClassName=void 0,this.colorPickerControls="default",this.acceptLabel="ACCEPT",this.cancelLabel="CANCEL",this.change=new y,this.input=new y,this.slider=new y,this.close=new y,this.open=new y,this.isDisabled=!1,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnDestroy(){this.panelRef&&this.panelFactory.removePanel()}openPanel(){this.isDisabled||(this.panelRef=this.panelFactory.createPanel(this.attachTo,this.overlayClassName),this.panelRef.instance.iniciate(this,this.triggerRef,this.color,this.palette,this.colorsAnimation,this.format,this.hideTextInput,this.hideColorPicker,this.acceptLabel,this.cancelLabel,this.colorPickerControls,this.position,this.formats)),this.open.emit(this.color)}closePanel(){this.panelFactory.removePanel(),this.onTouchedCallback(),this.close.emit(this.color)}setDisabledState(e){this.isDisabled=e,this.triggerRef.nativeElement.style.opacity=e?.5:1}setColor(e,t=""){this.writeValue(e,t),this.onChangeCallback(e),this.input.emit(e)}sliderChange(e){this.slider.emit(e)}get value(){return this.color}set value(e){this.setColor(e),this.onChangeCallback(e)}writeValue(e,t=""){if(e!==this.color){if(this.format){let r=Yt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,r)}this.color=e;let o=!1;e&&e.startsWith("cmyk")&&(o=!0,t||(t=this.service.stringToFormat(e,F.RGBA))),this.change.emit(o?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(p(ge),p(Sn),p(yt))},n.\u0275dir=P({type:n,selectors:[["","ngx-colors-trigger",""]],hostBindings:function(e,t){e&1&&_("click",function(){return t.onClick()})},inputs:{colorsAnimation:"colorsAnimation",palette:"palette",format:"format",formats:"formats",position:"position",hideTextInput:"hideTextInput",hideColorPicker:"hideColorPicker",attachTo:"attachTo",overlayClassName:"overlayClassName",colorPickerControls:"colorPickerControls",acceptLabel:"acceptLabel",cancelLabel:"cancelLabel"},outputs:{change:"change",input:"input",slider:"slider",close:"close",open:"open"},features:[H([{provide:Pi,useExisting:ni(()=>n),multi:!0}])]}),n})(),Dn=(()=>{class n{constructor(e,t){this.cdRef=e,this.triggerDirective=t,this.triggerDirectiveColorChangeSubscription=null,this.color=this.triggerDirective.color}ngOnInit(){this.triggerDirectiveColorChangeSubscription=this.triggerDirective.change.subscribe(e=>{this.color=e,this.cdRef.markForCheck()})}ngOnDestroy(){this.triggerDirectiveColorChangeSubscription&&this.triggerDirectiveColorChangeSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(J),p(Ut,1))},n.\u0275cmp=A({type:n,selectors:[["ngx-colors"]],decls:4,vars:5,consts:[[1,"app-color-picker"],[1,"preview"],[1,"preview-background"],[1,"circle",3,"ngStyle"]],template:function(e,t){e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),l()()()),e&2&&(c(3),q("colornull",!t.color),h("ngStyle",Bt(3,yn,t.color)))},dependencies:[nt],styles:["[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%]{line-height:1px;font-family:sans-serif}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{margin:2px;display:inline-block;box-sizing:border-box;border-radius:100%;background:white;cursor:pointer;padding:3px;box-shadow:0 1px 1px #0003,0 1px 1px 1px #00000024,0 1px 1px 1px #0000001f}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .preview-background[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px;border-radius:100%}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{height:20px;width:20px;box-sizing:border-box;border-radius:100%;cursor:pointer}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle.colornull[_ngcontent-%COMP%]{background:linear-gradient(135deg,rgba(236,236,236,.7) 0%,rgba(236,236,236,.7) 45%,#de0f00 50%,rgba(236,236,236,.7) 55%,rgba(236,236,236,.7) 100%)}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .noselected[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}"]}),n})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=$({type:n}),n.\u0275inj=Y({providers:[yt,Sn],imports:[ot]}),n})();var Mn=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,o){this.tooltip=t,this.elementRef=o,this.maxEllipsisLines=2,this.display="-webkit-box",this.overflow="hidden",this.boxOrient="vertical",this.textOverflow="ellipsis",this.whiteSpace="normal",this.wordBreak="break-all"}ngAfterViewInit(){setTimeout(()=>{this.tooltip.message=this.elementRef.nativeElement.textContent.trim(),this.tooltip.position="above"},0)}get isTextOverflowing(){let t=parseInt(window.getComputedStyle(this.elementRef.nativeElement).lineHeight),o=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>o}};i.\u0275fac=function(o){return new(o||i)(p(ut),p(ge))},i.\u0275dir=P({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(o,r){o&1&&_("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),o&2&&B("display",r.display)("overflow",r.overflow)("-webkit-box-orient",r.boxOrient)("-webkit-line-clamp",r.lineClamp)("text-overflow",r.textOverflow)("white-space",r.whiteSpace)("word-break",r.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[H([ut])]});let n=i;return n})();var vo=0,Qt=new me("CdkAccordion"),En=(()=>{let i=class i{constructor(){this._stateChanges=new Me,this._openCloseAllActions=new Me,this.id=`cdk-accordion-${vo++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=P({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",ee]},exportAs:["cdkAccordion"],standalone:!0,features:[H([{provide:Qt,useExisting:i}]),ie,ue]});let n=i;return n})(),xo=0,Tn=(()=>{let i=class i{get expanded(){return this._expanded}set expanded(t){if(this._expanded!==t){if(this._expanded=t,this.expandedChange.emit(t),t){this.opened.emit();let o=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,o)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(t,o,r){this.accordion=t,this._changeDetectorRef=o,this._expansionDispatcher=r,this._openCloseAllSubscription=Ze.EMPTY,this.closed=new y,this.opened=new y,this.destroyed=new y,this.expandedChange=new y,this.id=`cdk-accordion-child-${xo++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((a,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==a&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}};i.\u0275fac=function(o){return new(o||i)(p(Qt,12),p(J),p(ht))},i.\u0275dir=P({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",ee],disabled:[2,"disabled","disabled",ee]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[H([{provide:Qt,useValue:void 0}]),ie]});let n=i;return n})(),Pn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({});let n=i;return n})();var yo=["body"],So=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Do=["mat-expansion-panel-header","*","mat-action-row"];function Ao(n,i){}var Mo=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Eo=["mat-panel-title","mat-panel-description","*"];function To(n,i){if(n&1&&(s(0,"span",1),Ie(),s(1,"svg",2),g(2,"path",3),l()()),n&2){let e=m();h("@indicatorRotate",e._getExpandedState())}}var Kt=new me("MAT_ACCORDION"),kn="225ms cubic-bezier(0.4,0.0,0.2,1)",In={indicatorRotate:We("indicatorRotate",[Ue("collapsed, void",k({transform:"rotate(0deg)"})),Ue("expanded",k({transform:"rotate(180deg)"})),Be("expanded <=> collapsed, void => collapsed",Re(kn))]),bodyExpansion:We("bodyExpansion",[Ue("collapsed, void",k({height:"0px",visibility:"hidden"})),Ue("expanded",k({height:"*",visibility:""})),Be("expanded <=> collapsed, void => collapsed",Re(kn))])},On=new me("MAT_EXPANSION_PANEL"),Po=(()=>{let i=class i{constructor(t,o){this._template=t,this._expansionPanel=o}};i.\u0275fac=function(o){return new(o||i)(p(pi),p(On,8))},i.\u0275dir=P({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let n=i;return n})(),ko=0,Rn=new me("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),oe=(()=>{let i=class i extends Tn{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,o,r,a,d,C,b){super(t,o,r),this._viewContainerRef=a,this._animationMode=C,this._hideToggle=!1,this.afterExpand=new y,this.afterCollapse=new y,this._inputChanges=new Me,this._headerId=`mat-expansion-panel-header-${ko++}`,this.accordion=t,this._document=d,this._animationsDisabled=C==="NoopAnimations",b&&(this.hideToggle=b.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(kt(null),Ee(()=>this.expanded&&!this._portal),de(1)).subscribe(()=>{this._portal=new Gi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let t=this._document.activeElement,o=this._body.nativeElement;return t===o||o.contains(t)}return!1}_animationStarted(t){!Fn(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){Fn(t)||(t.toState==="expanded"?this.afterExpand.emit():t.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};i.\u0275fac=function(o){return new(o||i)(p(Kt,12),p(J),p(ht),p(hi),p(vi),p(Ft,8),p(Rn,8))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(o,r,a){if(o&1&&Rt(a,Po,5),o&2){let d;N(d=V())&&(r._lazyContent=d.first)}},viewQuery:function(o,r){if(o&1&&Z(yo,5),o&2){let a;N(a=V())&&(r._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(o,r){o&2&&q("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[H([{provide:Kt,useValue:void 0},{provide:On,useExisting:i}]),ie,Ot,ue,it],ngContentSelectors:Do,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(o,r){if(o&1){let a=E();tt(So),fe(0),s(1,"div",1,0),_("@bodyExpansion.start",function(C){return v(a),x(r._animationStarted(C))})("@bodyExpansion.done",function(C){return v(a),x(r._animationDone(C))}),s(3,"div",2),fe(4,1),f(5,Ao,0,0,"ng-template",3),l(),fe(6,2),l()}o&2&&(c(),h("@bodyExpansion",r._getExpandedState())("id",r.id),et("aria-labelledby",r._headerId),c(4),h("cdkPortalOutlet",r._portal))},dependencies:[Yi],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[In.bodyExpansion]},changeDetection:0});let n=i;return n})();function Fn(n){return n.fromState==="void"}var ke=(()=>{let i=class i{constructor(t,o,r,a,d,C,b){this.panel=t,this._element=o,this._focusMonitor=r,this._changeDetectorRef=a,this._animationMode=C,this._parentChangeSubscription=Ze.EMPTY,this.tabIndex=0;let G=t.accordion?t.accordion._stateChanges.pipe(Ee(I=>!!(I.hideToggle||I.togglePosition))):ti;this.tabIndex=parseInt(b||"")||0,this._parentChangeSubscription=Tt(t.opened,t.closed,G,t._inputChanges.pipe(Ee(I=>!!(I.hideToggle||I.disabled||I.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Ee(()=>t._containsFocus())).subscribe(()=>r.focusVia(o,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Si(t)||(t.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t);return}}focus(t,o){t?this._focusMonitor.focusVia(this._element,t,o):this._element.nativeElement.focus(o)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};i.\u0275fac=function(o){return new(o||i)(p(oe,1),p(ge),p(Ai),p(J),p(Rn,8),p(Ft,8),si("tabindex"))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(o,r){o&1&&_("click",function(){return r._toggle()})("keydown",function(d){return r._keydown(d)}),o&2&&(et("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),B("height",r._getHeaderHeight()),q("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Ci(t)]},standalone:!0,features:[ie,it],ngContentSelectors:Eo,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(o,r){o&1&&(tt(Mo),s(0,"span",0),fe(1),fe(2,1),fe(3,2),l(),f(4,To,3,1,"span",1)),o&2&&(q("mat-content-hide-toggle",!r._showToggle()),c(4),S(r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[In.indicatorRotate]},changeDetection:0});let n=i;return n})();var Ye=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=P({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let n=i;return n})(),Bn=(()=>{let i=class i extends En{constructor(){super(...arguments),this._ownHeaders=new ci,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(o=>o.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Di(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};i.\u0275fac=(()=>{let t;return function(r){return(t||(t=ai(i)))(r||i)}})(),i.\u0275dir=P({type:i,selectors:[["mat-accordion"]],contentQueries:function(o,r,a){if(o&1&&Rt(a,ke,5),o&2){let d;N(d=V())&&(r._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(o,r){o&2&&q("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[H([{provide:Kt,useExisting:i}]),ie,Ot]});let n=i;return n})(),Nn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({imports:[jt,Pn,$i]});let n=i;return n})();var Vn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var Hn=(()=>{let i=class i{transform(t){return t&&typeof t=="object"&&Object.keys(t).length>0}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var j=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(j||{});var St=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(Ui),this.summarizedRecord$=this.store.select(Qi)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(o){return new(o||i)(he(yi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac});let n=i;return n})();var z=(()=>{let i=class i{get algorithmType(){return this._algorithmType.value}get algorithmType$(){return this._algorithmType.asObservable()}set algorithmType(t){this._recordsMap.set(this._algorithmType.value,this._records.value),this._algorithmType.next(t);let o=this._recordsMap.get(t)||[];this._records.next(o)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let r=[...this._records.value,t];this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}updateRecord(t,o){this.stopTooltips();let r=this._records.value;if(t>=0&&t=0&&td!==t);this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new Et([]),this._algorithmType=new Et(R.PRUNING)}};i.\u0275fac=function(o){return new(o||i)(he(ze))},i.\u0275prov=pe({token:i,factory:i.\u0275fac});let n=i;return n})();var jn=(()=>{let i=class i{get parentFormGroup(){return this.controlContainer.control}get chartFormGroup(){return this.parentFormGroup.get(this.controlKey)}get borderColorControl(){return this.chartFormGroup.get(this.CHART_BODER_COLOR_CONTROL_NAME)}get backgroundColorControl(){return this.chartFormGroup.get(this.CHART_BACKGROUND_COLOR_CONTROL_NAME)}constructor(t){this.controlContainer=t,this.controlKey="",this.CHART_BODER_COLOR_CONTROL_NAME="borderColor",this.CHART_BACKGROUND_COLOR_CONTROL_NAME="backgroundColor"}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)(p(Ke))},i.\u0275cmp=A({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[H([],[{provide:Ke,useFactory:()=>oi(Ke,{skipSelf:!0})}])],decls:15,vars:5,consts:[[3,"formGroupName"],[1,"form-field-container"],[1,"flex","items-center"],[1,"mr-2"],["ngx-colors-trigger","",3,"formControlName"]],template:function(o,r){o&1&&(U(0,0),s(1,"div",1)(2,"mat-label"),u(3,"Chart border color"),l(),s(4,"div",2)(5,"div",3),g(6,"ngx-colors",4),l(),u(7),l()(),s(8,"div",1)(9,"mat-label"),u(10,"Chart background color"),l(),s(11,"div",2)(12,"div",3),g(13,"ngx-colors",4),l(),u(14),l()(),Q()),o&2&&(h("formGroupName",r.controlKey),c(6),h("formControlName",r.CHART_BODER_COLOR_CONTROL_NAME),c(),w(" ",r.borderColorControl==null?null:r.borderColorControl.value," "),c(6),h("formControlName",r.CHART_BACKGROUND_COLOR_CONTROL_NAME),c(),w(" ",r.backgroundColorControl==null?null:r.backgroundColorControl.value," "))},dependencies:[Dn,Ut,we,Ne,Ve,Ii,pt]});let n=i;return n})();function Go(n,i){if(n&1&&(s(0,"mat-option",5),u(1),l()),n&2){let e=m();c(),w(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function Yo(n,i){if(n&1&&(s(0,"mat-option",6),u(1),l()),n&2){let e=i.$implicit;h("value",e.name)("disabled",e.disabled),c(),w(" ",e.name," ")}}function $o(n,i){if(n&1&&X(0,Yo,2,3,"mat-option",6,ne),n&2){let e=m();W(e.files)}}function Xo(n,i){n&1&&(s(0,"div")(1,"div",7),g(2,"mat-spinner",8),l()())}function Wo(n,i){if(n&1&&(u(0),D(1,"readableDuration")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function Uo(n,i){if(n&1&&u(0),n&2){let e=m().$implicit;w(" ",e.value," ")}}function Qo(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function Ko(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),f(6,Wo,2,3)(7,Uo,1,1),l()(),f(8,Qo,2,0,"div",20),l()),n&2){let e,t=i.$implicit,o=i.$index,r=i.$count;c(3),w("",M(4,3,t.key),":"),c(3),S((e=t.key)==="duration_seconds"?6:7),c(2),S(o!==r-1?8:-1)}}function qo(n,i){n&1&&X(0,Ko,9,5,"div",16,ne),n&2&&W(i)}function Zo(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function Jo(n,i){if(n&1&&(u(0),D(1,"adaptiveFileSize")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function er(n,i){if(n&1&&(u(0),D(1,"date")),n&2){let e=m().$implicit;w(" ",fi(1,1,e.value,"medium")," ")}}function tr(n,i){if(n&1&&(u(0),D(1,"readableDuration")),n&2){let e=m().$implicit;w(" ",M(1,1,e.value)," ")}}function ir(n,i){if(n&1&&u(0),n&2){let e=m().$implicit;w(" ",e.value," ")}}function nr(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function or(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),f(6,Jo,2,3)(7,er,2,4)(8,tr,2,3)(9,ir,1,1),l()(),f(10,nr,2,0,"div",20),l()),n&2){let e,t=i.$implicit,o=i.$index,r=i.$count;c(3),w("",M(4,3,t.key),":"),c(3),S((e=t.key)==="file_size_bytes"?6:e==="creation_date"?7:e==="training_duration_seconds"?8:9),c(4),S(o!==r-1?10:-1)}}function rr(n,i){if(n&1&&(X(0,or,11,5,"div",16,ne),D(2,"keyvalue")),n&2){let e=m(3);W(M(2,0,e.summarizedRecord.modelTrainingDetails))}}function ar(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function sr(n,i){n&1&&(s(0,"div",20),g(1,"mat-divider"),l())}function lr(n,i){if(n&1&&(s(0,"div",16)(1,"div",17)(2,"div",18),u(3),D(4,"parametersLabel"),l(),s(5,"div",19),u(6),l()(),f(7,sr,2,0,"div",20),l()),n&2){let e=i.$implicit,t=i.$index,o=i.$count;c(3),w("",M(4,3,e.key),":"),c(3),_e(e.value),c(),S(t!==o-1?7:-1)}}function cr(n,i){n&1&&X(0,lr,8,5,"div",16,ne),n&2&&W(i)}function dr(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function pr(n,i){if(n&1&&g(0,"ms-chart-colors-form-controls",21)(1,"ms-line-chart",22),n&2){let e=m(3);c(),h("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function mr(n,i){n&1&&(s(0,"div",15),u(1,"No data available"),l())}function hr(n,i){if(n&1){let e=E();g(0,"mat-divider"),s(1,"div",10)(2,"mat-label"),u(3,"Set run name"),l(),s(4,"mat-form-field",3),g(5,"input",11),l()(),s(6,"mat-accordion",12)(7,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.statistics,o)||(r.panelStates.statistics=o),x(o)}),s(8,"mat-expansion-panel-header")(9,"mat-panel-title",14),u(10," Statistics "),l()(),f(11,qo,2,0),D(12,"keyvalue"),f(13,Zo,2,0,"div",15),l(),s(14,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.modelTrainingDetails,o)||(r.panelStates.modelTrainingDetails=o),x(o)}),s(15,"mat-expansion-panel-header")(16,"mat-panel-title",14),u(17," Model training details "),l()(),f(18,rr,3,2),D(19,"hasKeys"),f(20,ar,2,0,"div",15),l(),s(21,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.parameters,o)||(r.panelStates.parameters=o),x(o)}),s(22,"mat-expansion-panel-header")(23,"mat-panel-title",14),u(24," Parameters "),l()(),f(25,cr,2,0),D(26,"keyvalue"),f(27,dr,2,0,"div",15),l(),s(28,"mat-expansion-panel",13),xe("expandedChange",function(o){v(e);let r=m(2);return ve(r.panelStates.accuracy,o)||(r.panelStates.accuracy=o),x(o)}),s(29,"mat-expansion-panel-header")(30,"mat-panel-title",14),u(31," Last Accuracy Test Run "),l()(),f(32,pr,2,2),D(33,"keyvalue"),f(34,mr,2,0,"div",15),l()()}if(n&2){let e,t,o,r=m(2);c(7),Ce("expanded",r.panelStates.statistics),c(4),S((e=M(12,8,r.summarizedRecord.statistics))?11:13,e),c(3),Ce("expanded",r.panelStates.modelTrainingDetails),c(4),S(M(19,10,r.summarizedRecord.modelTrainingDetails)?18:20),c(3),Ce("expanded",r.panelStates.parameters),c(4),S((t=M(26,12,r.summarizedRecord.parameters))?25:27,t),c(3),Ce("expanded",r.panelStates.accuracy),c(4),S((o=M(33,14,r.summarizedRecord.parameters))?32:34,o)}}function ur(n,i){n&1&&g(0,"ms-empty-state",9)}function gr(n,i){if(n&1&&f(0,hr,35,16)(1,ur,1,0,"ms-empty-state",9),n&2){let e=m();S(e.summarizedRecord?0:1)}}var re,Fe=(re=class{get chartFormGroup(){return this.form.get("chart")}get selectRunFormControl(){return this.form.get("selectRun")}get runNameFormControl(){return this.form.get("runName")}constructor(i,e,t,o,r,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=o,this.recordsDataService=r,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new st({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(vn.RUN_RECORDS_SUMMARIZED_DATA),this.testingAccuracyChartDisplaySettings={},this.lastRunAccuracyTestingChartData=[]}ngAfterViewInit(){this.restorePanelStates()}ngOnInit(){switch(this.initForm(),this.initChartDisplaySettings(),this.listenToChartColorChanges(),this.algorithmTypeLabel=this.getAlgorithmTypeString(),this.drawerConfig.actionType){case j.ADD:{this.loadData(),this.configureAddTypeActions();break}case j.EDIT:case j.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case R.PRUNING:return"pruning";case R.QUANTIZATION:return"quantization";case R.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case R.PRUNING:{i=100;break}case R.QUANTIZATION:{i=79;break}case R.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:i,yAxisMaximumValue:100,isXAxisVisible:!0,isXAxisDynamic:!0,areTooltipsEnabled:!0,xAxisInitialLabelValue:1,xAxisLabelPrefix:"Step:",datasetLabelPrefix:"Test:",isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:[{backgroundColor:"rgba(241, 196, 15, 0.2)",borderColor:"#f1c40f"}]}}}listenToChartColorChanges(){this.chartFormGroup.valueChanges.pipe(ii(300),L(this)).subscribe(i=>{if(Le(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=Xe(Ae({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:o}=this.drawerConfig.data;this.drawerConfig.actionType===j.VIEW?this.form.disable():this.drawerConfig.actionType===j.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:o.borderColor,backgroundColor:o.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=Xe(Ae({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:o.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:o.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(L(this),Ee(i=>!gt(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(Gt.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(L(this),Pt(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!gt(e)&&!gt(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(Gt.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Pt(1),de(1)).subscribe(i=>{let e=new Set(this.recordsDataService.records.map(t=>t.recordFilename));this.files=i.map(t=>({name:t,disabled:e.has(t)}))})}initForm(){let i=this.getDefaultChartColors();this.form=this.fb.group({selectRun:[null,Te.required],runName:[null,Te.required],chart:this.fb.group({borderColor:[i.borderColor,Te.required],backgroundColor:[i.backgroundColor,Te.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=fn[vt.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==ye.SAVE)return;let{backgroundColor:e,borderColor:t}=this.form.get("chart")?.getRawValue();this.drawerRef.close({result:{recordName:this.runNameFormControl.value,recordFilename:this.selectRunFormControl.value,record:this.summarizedRecord,chartColors:{backgroundColor:e,borderColor:t}},status:i})}close(){this.drawerRef.close()}savePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]=i.expanded})}restorePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]!==void 0&&(i.expanded=this.panelStates[e])})}},re.\u0275fac=function(e){return new(e||re)(p(gn),p(un),p(dt),p(St),p(z),p(xn))},re.\u0275cmp=A({type:re,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&Z(oe,5),e&2){let o;N(o=V())&&(t.panels=o)}},decls:12,vars:7,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled",""],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],[1,"no-data-container"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[1,"pt-2"],["controlKey","chart"],[3,"data","settings"]],template:function(e,t){e&1&&(s(0,"ms-drawer",0),_("actionEvent",function(r){return t.save(r)}),s(1,"form",1)(2,"div",2)(3,"mat-label"),u(4,"Select run record"),l(),s(5,"mat-form-field",3)(6,"mat-select",4),f(7,Go,2,1,"mat-option",5)(8,$o,2,0),l()()(),f(9,Xo,3,0,"div"),D(10,"async"),f(11,gr,2,1),l()()),e&2&&(h("isSaveDisabled",t.form.invalid),c(),h("formGroup",t.form),c(6),S(t.files.length===0?7:-1),c(),S(t.files.length>0?8:-1),c(),S(M(10,5,t.isSummarizedRecordLoading$)?9:11))},dependencies:[_t,Ge,Ct,Bn,oe,ke,Ye,lt,ki,we,Ne,ct,Ve,mt,pt,ft,rt,at,Xi,ji,jn,Oe,bi,wi,Cn,bt,_n,Hn],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),re);Fe=ce([be()],Fe);function _r(n,i){if(n&1){let e=E();s(0,"mat-card",1)(1,"div",2)(2,"div",3),u(3),l(),s(4,"div",4)(5,"button",5),_("click",function(){let o=v(e).$implicit,r=m(2);return x(r.viewRecord(o))}),g(6,"mat-icon",6),l(),s(7,"button",5),_("click",function(){let o=v(e),r=o.$implicit,a=o.$index,d=m(2);return x(d.editRecord(a,r))}),g(8,"mat-icon",7),l(),s(9,"button",8),_("click",function(){let o=v(e).$index,r=m(2);return x(r.removeRecord(o))}),s(10,"mat-icon",9),u(11,"delete"),l()()()()()}if(n&2){let e=i.$implicit;c(3),_e(e.recordName)}}function Cr(n,i){n&1&&X(0,_r,12,1,"mat-card",1,ne),n&2&&W(i)}var Yn=(()=>{let i=class i{constructor(t,o){this.recordsDataService=t,this.drawerService=o}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(Fe,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:j.VIEW,data:t})}editRecord(t,o){this.drawerService.open(Fe,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:j.EDIT,data:o}).afterClosed().pipe(de(1)).subscribe(a=>{let{status:d}=a;if(d===ye.DISMISS||d===ye.CLOSE)return;let{result:C}=a;Le(C)||this.recordsDataService.updateRecord(t,C)})}};i.\u0275fac=function(o){return new(o||i)(p(z),p(je))},i.\u0275cmp=A({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[1,"ms-card","comparison-item"],[1,"item-wrapper"],["msUseEllipsis",""],[1,"record-summary-buttons-wrapper"],["mat-icon-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Eye",1,"mat-primary"],["fontSet","ms","fontIcon","icon-PencilSimple",1,"mat-primary"],["mat-icon-button","","color","error",3,"click"],[1,"mat-error"]],template:function(o,r){if(o&1&&(s(0,"div",0),f(1,Cr,2,0),D(2,"async"),l()),o&2){let a;c(),S((a=M(2,1,r.recordsDataService.records$))?1:-1,a)}},dependencies:[Mn,He,Ki,Ni,Oe],styles:[".items-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px;padding:20px 0}.items-wrapper[_ngcontent-%COMP%] .ms-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 16px #0003}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%] .record-summary-buttons-wrapper[_ngcontent-%COMP%]{display:flex}"]});let n=i;return n})();var ae,Dt=(ae=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:vt.YELLOW,isXAxisVisible:!0,xAxisLabelPrefix:"Step:",zoomRangeLimits:{min:0,max:100},isXAxisDynamic:!0,hasCustomDatasetsLabels:!0},this.lastRunsAccuracyTestingChartData=[],this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToRecordsChanges(),this.subscribeToChartToolsSignals()}listenToRecordsChanges(){this.recordsDataService.records$.pipe(L(this)).subscribe(i=>{zt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=Xe(Ae({},this.testingAccuracyChartDisplaySettings),{customDatasetsLabels:i.map(e=>e.recordName),xAxisDataPointsCount:i[0].record.lastRunTestingAccuracyData.length,isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:i.map(e=>e.chartColors)}}))})}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(L(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(L(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,o)=>{let{record:r}=t;e.push({datasetIndex:o,values:r.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},ae.\u0275fac=function(e){return new(e||ae)(p(z),p(ze))},ae.\u0275cmp=A({type:ae,selectors:[["ms-algorithm-comparison-chart"]],decls:14,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[3,"data","settings"]],template:function(e,t){e&1&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),u(3," Last Accuracy Test Run "),l()(),s(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),xe("ngModelChange",function(r){return ve(t.enableTooltips,r)||(t.enableTooltips=r),r}),_("change",function(r){return t.toggleTooltip(r)}),u(7," Enable tooltips "),l()(),s(8,"div",4)(9,"mat-slide-toggle",5),xe("ngModelChange",function(r){return ve(t.enableZoom,r)||(t.enableZoom=r),r}),_("change",function(r){return t.toggleZoom(r)}),u(10," Enable zoom "),l(),s(11,"div",6),g(12,"mat-icon",7),l()()(),g(13,"ms-line-chart",8),l()),e&2&&(c(6),Ce("ngModel",t.enableTooltips),c(3),Ce("ngModel",t.enableZoom),c(4),h("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Ge,oe,ke,Ye,we,Fi,He,Ji]}),ae);Dt=ce([be()],Dt);var br=new me("MAT_SORT_DEFAULT_OPTIONS"),$n=(()=>{let i=class i{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new ei(1),this.sortables=new Map,this._stateChanges=new Me,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new y,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let o=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=wr(t.start||this.start,o),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};i.\u0275fac=function(o){return new(o||i)(p(br,8))},i.\u0275dir=P({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",ee],disabled:[2,"matSortDisabled","disabled",ee]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ie,ue]});let n=i;return n})();function wr(n,i){let e=["asc","desc"];return n=="desc"&&e.reverse(),i||e.push(""),e}var zs=Ei.ENTERING+" "+Mi.STANDARD_CURVE;function yr(n,i){n&1&&(s(0,"th",10),u(1,"Record Name"),l())}function Sr(n,i){if(n&1&&(s(0,"td",11),u(1),l()),n&2){let e=i.$implicit;c(),_e(e.recordName)}}function Dr(n,i){if(n&1&&(s(0,"th",10),u(1),D(2,"parametersLabel"),l()),n&2){let e=m().$implicit;c(),w(" ",M(2,1,e)," ")}}function Ar(n,i){if(n&1&&(s(0,"td",11),u(1),D(2,"emptyTableField"),l()),n&2){let e=i.$implicit,t=m().$implicit;c(),w(" ",M(2,1,e[t])," ")}}function Mr(n,i){if(n&1&&(U(0,7),f(1,Dr,3,3,"th",5)(2,Ar,3,3,"td",6),Q()),n&2){let e=i.$implicit;h("matColumnDef",e)}}function Er(n,i){n&1&&g(0,"tr",12)}function Tr(n,i){n&1&&g(0,"tr",13)}var se,At=(se=class{constructor(i){this.recordsDataService=i,this.dataSource=new hn,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(L(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Le(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(o=>{o!=="save_dir"&&o!=="data"&&e.add(o)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let o=t.record.parameters;return Ae({recordName:t.recordName},o)});this.dataSource.data=e}},se.\u0275fac=function(e){return new(e||se)(p(z))},se.\u0275cmp=A({type:se,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&Z($n,5),e&2){let o;N(o=V())&&(t.sort=o.first)}},decls:13,vars:3,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"table-container"],["mat-table","","matSort","",1,"mat-table",3,"dataSource"],["matColumnDef","recordName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),u(3," Parameters "),l()(),s(4,"div",2)(5,"table",3),U(6,4),f(7,yr,2,0,"th",5)(8,Sr,2,1,"td",6),Q(),X(9,Mr,3,1,"ng-container",7,ne),f(11,Er,1,0,"tr",8)(12,Tr,1,0,"tr",9),l()()()),e&2&&(c(5),h("dataSource",t.dataSource),c(4),W(t.displayedColumns.slice(1)),c(2),h("matHeaderRowDef",t.displayedColumns),c(),h("matRowDefColumns",t.displayedColumns))},dependencies:[oe,ke,Ye,tn,on,ln,rn,nn,cn,an,sn,dn,pn,bt,Vn],styles:[".table-container[_ngcontent-%COMP%]{overflow:auto}.hover-highlight[_ngcontent-%COMP%]:hover{background-color:var(--backgrounds-80)}.mat-column-disable_8bit_head_stem[_ngcontent-%COMP%]{min-width:200px}.mat-column-workers[_ngcontent-%COMP%], .mat-column-n_bits_w[_ngcontent-%COMP%], .mat-column-channel_wise[_ngcontent-%COMP%], .mat-column-n_bits_a[_ngcontent-%COMP%]{min-width:160px}.mat-column-act_quant[_ngcontent-%COMP%]{min-width:180px}.mat-column-num_samples[_ngcontent-%COMP%], .mat-column-iters_w[_ngcontent-%COMP%]{min-width:160px}.mat-column-keep_cpu[_ngcontent-%COMP%], .mat-column-awq[_ngcontent-%COMP%]{min-width:180px}.mat-column-aaq[_ngcontent-%COMP%], .mat-column-init_wmode[_ngcontent-%COMP%], .mat-column-init_amode[_ngcontent-%COMP%]{min-width:200px}.mat-column-num_indexes_to_replace[_ngcontent-%COMP%]{min-width:185px}.mat-column-unlearn_lr[_ngcontent-%COMP%], .mat-column-alpha[_ngcontent-%COMP%], .mat-column-unlearn_epochs[_ngcontent-%COMP%], .mat-column-train_seed[_ngcontent-%COMP%], .mat-column-class_to_replace[_ngcontent-%COMP%], .mat-column-indexes_to_replace[_ngcontent-%COMP%], .mat-column-no_aug[_ngcontent-%COMP%]{min-width:200px}.mat-column-imagenet_arch[_ngcontent-%COMP%]{min-width:220px}.mat-column-num_workers[_ngcontent-%COMP%]{min-width:180px}"]}),se);At=ce([be()],At);var kr=(n,i)=>i.key;function Fr(n,i){if(n&1&&(s(0,"mat-option",6),u(1),l()),n&2){let e=i.$implicit;h("value",e.key),c(),w(" ",e.value," ")}}function Ir(n,i){n&1&&(g(0,"ms-algorithm-comparison-list"),s(1,"div",7),g(2,"mat-divider"),l(),g(3,"ms-algorithm-comparison-table"),s(4,"div",7),g(5,"mat-divider"),l(),g(6,"ms-algorithm-comparison-chart"))}function Or(n,i){n&1&&(s(0,"div",11),g(1,"ms-empty-state",12),l())}var le,Mt=(le=class{get algorithmTypeFormControl(){return this.form.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(i,e,t){this.drawerService=i,this.recordsDataService=e,this.fb=t,this.form=new st({}),this.algorithmTypesOptions=[{key:R.QUANTIZATION,value:"Quantization"},{key:R.PRUNING,value:"Pruning"},{key:R.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(Fe,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:j.ADD,width:"40vw"}).afterClosed().pipe(de(1)).subscribe(e=>{let{status:t}=e;if(t===ye.DISMISS||t===ye.CLOSE)return;let{result:o}=e;this.recordsDataService.addRecord(o)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,Te.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(L(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}},le.\u0275fac=function(e){return new(e||le)(p(je),p(z),p(dt))},le.\u0275cmp=A({type:le,selectors:[["ms-algorithm-comparison"]],decls:19,vars:5,consts:[[1,"title-wrapper"],[1,"heading-primary-title","title"],[1,"ml-2",3,"formGroup"],[1,"form-field-container","w-56","mt-2"],["appearance","outline"],["placeholder","Select a run record",3,"formControlName"],[3,"value"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){e&1&&(s(0,"div",0)(1,"p",1),u(2,"Algorithm Comparison for"),l(),s(3,"form",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),X(7,Fr,2,2,"mat-option",6,kr),l()()()()(),s(9,"div",7),g(10,"mat-divider"),l(),s(11,"button",8),_("click",function(){return t.openAddRunDrawer()}),g(12,"mat-icon",9),u(13,` Add run +`),l(),s(14,"div",10),g(15,"mat-divider"),l(),f(16,Ir,7,0),D(17,"async"),f(18,Or,2,0,"div",11)),e&2&&(c(3),h("formGroup",t.form),c(3),h("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),c(),W(t.algorithmTypesOptions),c(9),S(M(17,3,t.recordsDataService.records$).length>0?16:18))},dependencies:[Ct,lt,we,Ne,ct,Ve,mt,ft,rt,at,He,Bi,Yn,Dt,At,Oe],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),le);Mt=ce([be()],Mt);var Rr=[{path:"",component:Mt}],Xn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({imports:[Vt.forChild(Rr),Vt]});let n=i;return n})();var nc=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=$({type:i}),i.\u0275inj=Y({providers:[je,St,z,ze],imports:[ot,Xn,_t,An,Ge,Nn,Oi,Ri,Hi,Zi,Ti,Wi,Li,qi,mn,en,Vi,zi]});let n=i;return n})();export{nc as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TP3SZI6Y.js b/frontend/server/modelsmith-build/browser/chunk-TP3SZI6Y.js new file mode 100644 index 00000000..61071452 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-TP3SZI6Y.js @@ -0,0 +1 @@ +import{$ as C,Ab as U,Ba as M,Bb as Q,Bd as Y,Ea as m,Fa as o,Hd as y,Lb as $,Ld as Z,Nb as n,Ob as H,Pa as S,Qa as F,Ra as _,Sa as w,Ua as v,Wa as O,Wd as J,Xd as K,Ya as x,Z as I,Zd as W,aa as z,ab as s,bb as r,cb as l,gb as q,ha as D,hb as V,ia as E,jb as k,mb as P,nb as j,oa as R,pa as p,qa as g,qb as N,ra as L,rb as G,sb as X,tb as B,ua as T,xa as A,ya as f}from"./chunk-64NP6AY6.js";var ce=["switch"],ie=["*"];function de(d,c){d&1&&(s(0,"div",10),L(),s(1,"svg",12),l(2,"path",13),r(),s(3,"svg",14),l(4,"path",15),r()())}var ae=new z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),se={provide:K,useExisting:I(()=>ee),multi:!0},b=class{constructor(c,te){this.source=c,this.checked=te}},re=0,ee=(()=>{let c=class c{_createChangeEvent(t){return new b(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,i,e,a,h,u){this._elementRef=t,this._focusMonitor=i,this._changeDetectorRef=e,this.defaults=h,this._onChange=oe=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new f,this.toggleChange=new f,this.tabIndex=parseInt(a)||0,this.color=h.color||"accent",this._noopAnimations=u==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++re}`,this.hideIcon=h.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new b(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};c.\u0275fac=function(i){return new(i||c)(o(A),o(Y),o($),T("tabindex"),o(ae),o(M,8))},c.\u0275cmp=D({type:c,selectors:[["mat-slide-toggle"]],viewQuery:function(i,e){if(i&1&&N(ce,5),i&2){let a;G(a=X())&&(e._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,e){i&2&&(V("id",e.id),_("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),O(e.color?"mat-"+e.color:""),v("mat-mdc-slide-toggle-focused",e._focused)("mat-mdc-slide-toggle-checked",e.checked)("_mat-animation-noopable",e._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",n],color:"color",disabled:[2,"disabled","disabled",n],disableRipple:[2,"disableRipple","disableRipple",n],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:H(t)],checked:[2,"checked","checked",n],hideIcon:[2,"hideIcon","hideIcon",n]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[U([se,{provide:W,useExisting:c,multi:!0}]),S,R,Q],ngContentSelectors:ie,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,e){if(i&1){let a=q();P(),s(0,"div",1)(1,"button",2,0),k("click",function(){return p(a),g(e._handleClick())}),l(3,"div",3),s(4,"div",4)(5,"div",5)(6,"div",6),l(7,"div",7),r(),s(8,"div",8),l(9,"div",9),r(),F(10,de,5,0,"div",10),r()()(),s(11,"label",11),k("click",function(u){return p(a),g(u.stopPropagation())}),j(12),r()()}if(i&2){let a=B(2);w("labelPosition",e.labelPosition),m(),v("mdc-switch--selected",e.checked)("mdc-switch--unselected",!e.checked)("mdc-switch--checked",e.checked)("mdc-switch--disabled",e.disabled),w("tabIndex",e.disabled?-1:e.tabIndex)("disabled",e.disabled),_("id",e.buttonId)("name",e.name)("aria-label",e.ariaLabel)("aria-labelledby",e._getAriaLabelledBy())("aria-describedby",e.ariaDescribedby)("aria-required",e.required||null)("aria-checked",e.checked),m(8),w("matRippleTrigger",a)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0),m(),x(e.hideIcon?-1:10),m(),w("for",e.buttonId),_("id",e._labelId)}},dependencies:[Z,J],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let d=c;return d})();var Le=(()=>{let c=class c{};c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=E({type:c}),c.\u0275inj=C({imports:[ee,y,y]});let d=c;return d})();export{ee as a,Le as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TYRSQJJL.js b/frontend/server/modelsmith-build/browser/chunk-TYRSQJJL.js new file mode 100644 index 00000000..01ad6869 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-TYRSQJJL.js @@ -0,0 +1 @@ +import{l as tt}from"./chunk-W4S57J6B.js";import{$ as G,Ab as W,Bb as q,Bd as $,Dd as Y,Ea as b,Fa as s,Hd as w,Lb as C,Ld as Z,Md as J,Nb as d,Nd as K,Pa as k,Qa as N,Ra as h,Sa as g,Ua as y,Xd as X,Ya as T,Z as B,aa as v,ab as x,bb as L,cb as p,gb as j,ha as R,ia as A,ja as E,jb as m,lb as S,mb as P,nb as U,pa as D,pb as z,qa as F,qb as Q,rb as I,sb as M,tb as H,ua as O,xa as V,ya as u}from"./chunk-64NP6AY6.js";var it=["button"],lt=["*"];function rt(i,a){if(i&1&&p(0,"mat-pseudo-checkbox",3),i&2){let c=S();g("disabled",c.disabled)}}function st(i,a){if(i&1&&p(0,"mat-pseudo-checkbox",3),i&2){let c=S();g("disabled",c.disabled)}}var et=new v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:dt});function dt(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var ot=new v("MatButtonToggleGroup"),ct={provide:X,useExisting:B(()=>gt),multi:!0},at=0,f=class{constructor(a,c){this.source=a,this.value=c}},gt=(()=>{let a=class a{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(o=>o.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,o,e){this._changeDetector=t,this._dir=e,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${at++}`,this.valueChange=new u,this.change=new u,this.appearance=o&&o.appearance?o.appearance:"standard",this.hideSingleSelectionIndicator=o?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=o?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new tt(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let e=t.target.id,n=this._buttonToggles.toArray().findIndex(r=>r.buttonId===e),l=null;switch(t.keyCode){case 32:case 13:l=this._buttonToggles.get(n)||null;break;case 38:l=this._getNextButton(n,-1);break;case 37:l=this._getNextButton(n,this.dir==="ltr"?-1:1);break;case 40:l=this._getNextButton(n,1);break;case 39:l=this._getNextButton(n,this.dir==="ltr"?1:-1);break;default:return}l&&(t.preventDefault(),l._onButtonClick(),l.focus())}_emitChangeEvent(t){let o=new f(t,this.value);this._rawValue=o.value,this._controlValueAccessorChangeFn(o.value),this.change.emit(o)}_syncButtonToggle(t,o,e=!1,n=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?o?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve().then(()=>this._updateModelValue(t,e)):this._updateModelValue(t,e)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(o=>t.value!=null&&o===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(o))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let o=this._buttonToggles.find(e=>e.value!=null&&e.value===t);o&&(o.checked=!0,this._selectionModel.select(o),this.multiple||(o.tabIndex=0))}_updateModelValue(t,o){o&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};a.\u0275fac=function(o){return new(o||a)(s(C),s(et,8),s(Y,8))},a.\u0275dir=E({type:a,selectors:[["mat-button-toggle-group"]],contentQueries:function(o,e,n){if(o&1&&z(n,nt,5),o&2){let l;I(l=M())&&(e._buttonToggles=l)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(o,e){o&1&&m("keydown",function(l){return e._keydown(l)}),o&2&&(h("role",e.multiple?"group":"radiogroup")("aria-disabled",e.disabled),y("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard",e.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",d],value:"value",multiple:[2,"multiple","multiple",d],disabled:[2,"disabled","disabled",d],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",d],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",d]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[W([ct,{provide:ot,useExisting:a}]),k]});let i=a;return i})(),nt=(()=>{let a=class a{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}constructor(t,o,e,n,l,r){this._changeDetectorRef=o,this._elementRef=e,this._focusMonitor=n,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new u;let _=Number(l);this.tabIndex=_||_===0?_:null,this.buttonToggleGroup=t,this.appearance=r&&r.appearance?r.appearance:"standard"}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${at++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let o=this.buttonToggleGroup._buttonToggles.find(e=>e.tabIndex===0);o&&(o.tabIndex=-1),this.tabIndex=0}this.change.emit(new f(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};a.\u0275fac=function(o){return new(o||a)(s(ot,8),s(C),s(V),s($),O("tabindex"),s(et,8))},a.\u0275cmp=R({type:a,selectors:[["mat-button-toggle"]],viewQuery:function(o,e){if(o&1&&Q(it,5),o&2){let n;I(n=M())&&(e._buttonElement=n.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(o,e){o&1&&m("focus",function(){return e.focus()}),o&2&&(h("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),y("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard",e.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",d],appearance:"appearance",checked:[2,"checked","checked",d],disabled:[2,"disabled","disabled",d]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[k,q],ngContentSelectors:lt,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(o,e){if(o&1){let n=j();P(),x(0,"button",1,0),m("click",function(){return D(n),F(e._onButtonClick())}),x(2,"span",2),N(3,rt,1,1,"mat-pseudo-checkbox",3)(4,st,1,1,"mat-pseudo-checkbox",3),U(5),L()(),p(6,"span",4)(7,"span",5)}if(o&2){let n=H(1);g("id",e.buttonId)("disabled",e.disabled||null),h("role",e.isSingleSelector()?"radio":"button")("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.isSingleSelector()?null:e.checked)("aria-checked",e.isSingleSelector()?e.checked:null)("name",e._getButtonName())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),b(3),T(e.buttonToggleGroup&&e.checked&&!e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),b(),T(e.buttonToggleGroup&&e.checked&&e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),b(3),g("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},dependencies:[Z,K],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let i=a;return i})(),Vt=(()=>{let a=class a{};a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=A({type:a}),a.\u0275inj=G({imports:[w,J,nt,w]});let i=a;return i})();export{gt as a,nt as b,Vt as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-UJFXJ7BZ.js b/frontend/server/modelsmith-build/browser/chunk-UJFXJ7BZ.js new file mode 100644 index 00000000..e1b08358 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-UJFXJ7BZ.js @@ -0,0 +1 @@ +import{a as nt,b as at,c as mt}from"./chunk-GJVIMBQE.js";import{a as rt}from"./chunk-AKLXM26R.js";import{a as de}from"./chunk-W3QFCG25.js";import{b as We,c as Xe,e as it,f as ot}from"./chunk-7DL2PMFN.js";import{b as Ze}from"./chunk-OWLYOD4I.js";import"./chunk-VLJTKNYA.js";import"./chunk-MK5CNTNK.js";import{a as se,b as pe}from"./chunk-F7URI57V.js";import"./chunk-OVEUDHWN.js";import"./chunk-JMFIGVCB.js";import{a as Ve,b as je}from"./chunk-OA3ZLQZZ.js";import{a as ce}from"./chunk-PR3LNGVD.js";import{a as O,e as K}from"./chunk-ZTWJRPOH.js";import{b as E,c as p,i as g,j as Je}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import{b as Ye,c as G,d as qe}from"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import{a as U,b as le}from"./chunk-YPMBMI5J.js";import{a as me,b as D,c as et,k as tt}from"./chunk-QTJZRTNN.js";import{a as A,b as d}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import{h as oe,i as re}from"./chunk-OFW2ET2O.js";import{$ as z,$a as x,$d as h,Ab as Y,Bb as xe,E as P,Ea as n,Fa as s,Fb as I,Gb as b,Hb as ke,I as ge,J as Ne,L as Ce,Q,Qa as C,Qd as Ke,R as Fe,Rd as J,Sa as c,Xb as we,Ya as M,Yb as Le,Za as Ae,Zb as De,_a as R,_b as q,_d as W,a as Te,ab as m,ad as Ue,b as Se,bb as r,be as X,cb as u,ce as w,da as H,db as Pe,de as L,eb as be,fe as $,gb as Ee,ha as F,ia as Z,ie as $e,jb as _e,je as Be,ke as ee,lb as k,me as te,oa as Ie,p as S,pa as Me,pc as ve,pe as Qe,qa as ye,qb as Ge,qe as ie,rb as Oe,re as ze,sb as Re,ub as l,ue as He,wb as f,we as ne,x as N,xe as ae}from"./chunk-64NP6AY6.js";var Ct=(i,e)=>e.name;function Mt(i,e){i&1&&u(0,"mat-icon",10)}function yt(i,e){if(i&1&&(m(0,"mat-option",8),l(1),C(2,Mt,1,0,"mat-icon",10),r()),i&2){let t=e.$implicit;c("value",t.name),n(),f(" ",t.name," "),n(),M(t.isTrained?-1:2)}}function _t(i,e){i&1&&(m(0,"mat-option",9),l(1,"No results found"),r())}function vt(i,e){if(i&1&&(R(0,yt,3,3,"mat-option",8,Ct),C(2,_t,2,0,"mat-option",9)),i&2){let t=e;x(t),n(2),M(t.length===0?2:-1)}}var y,V=(y=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,o,a){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=o,this.pageRunningScriptSpiningIndicatorService=a,this.controlKey="",this.PageKey=We,this.RoutesList=Ue,this.searchModel=new $,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){if(e)switch(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(O.getModelsList({algorithmType:e})),e){case p.PRUNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.PRUNING_TRAIN}));break}case p.QUANTIZATION:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.QUANTIZATION_TRAIN}));break}case p.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(O.getCurrentOrPreviousSelectedModel({algorithmType:g.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(d(this)).subscribe(e=>{if(G(e))return;this.models.find(o=>o.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(P(o=>!qe(o)),N(o=>[...o].sort((a,j)=>Number(j.isTrained)-Number(a.isTrained)))).subscribe(o=>{this.models=o,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.MODEL_CONTROL_NAME]:new $("",W.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{E(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(d(this),Fe(""),N(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(o=>o.name.toLowerCase().includes(t))}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},y.\u0275fac=function(t){return new(t||y)(s(h),s(K),s(D),s(Xe))},y.\u0275cmp=F({type:y,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Y([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}]),Ie,xe],decls:12,vars:5,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],[3,"formControl"],["label","Predefined Models"],[3,"value"],["disabled",""],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(t,o){if(t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),r()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-option"),u(8,"ngx-mat-select-search",6),r(),m(9,"mat-optgroup",7),C(10,vt,3,1),I(11,"async"),r()()()()()),t&2){let a;n(4),c("formGroupName",o.controlKey),n(4),c("formControl",o.searchModel),n(2),M((a=b(11,3,o.filteredModels))?10:-1,a)}},dependencies:[ie,X,w,$e,te,ee,le,U,re,oe,pe,se,J,Ke,ae,ne,q,we,ot,it,Ze],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),y);V=S([A()],V);var Nt=(i,e)=>e.key;function Ft(i,e){if(i&1&&(m(0,"mat-option",6),l(1),r()),i&2){let t=e.$implicit;c("value",t.key),n(),f(" ",t.value," ")}}var _,ue=(_=class{get parentFormGroup(){return this.controlContainer.control}get algorithmTypeFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmTypeFormControl(){return this.algorithmTypeFormGroup.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(e,t){this.controlContainer=e,this.scriptFacadeService=t,this.controlKey="",this.algorithmTypesOptions=[{key:p.QUANTIZATION,value:"Quantization"},{key:p.PRUNING,value:"Pruning"},{key:p.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),Ne(1),P(e=>!G(e?.algKey)),N(e=>e.algKey)).subscribe(e=>{switch(e){case g.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(p.PRUNING);break}case g.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(p.MACHINE_UNLEARNING);break}case g.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(p.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(p.PRUNING)}}),this.scriptFacadeService.dispatch(me.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.ALGORITHM_TYPE_CONTROL_NAME]:new $(p.PRUNING,W.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{E(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}},_.\u0275fac=function(t){return new(t||_)(s(h),s(D))},_.\u0275cmp=F({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Y([],[{provide:h,useFactory:()=>H(h,{skipSelf:!0})}])],decls:9,vars:2,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[3,"formGroupName"],[1,"form-field-container"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],[3,"value"]],template:function(t,o){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),r(),Pe(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),R(7,Ft,2,2,"mat-option",6,Nt),r()()(),be(),r()),t&2&&(n(3),c("formGroupName",o.controlKey),n(3),c("formControlName",o.ALGORITHM_TYPE_CONTROL_NAME),n(),x(o.algorithmTypesOptions))},dependencies:[U,oe,se,J,X,w,te,ee]}),_);ue=S([A()],ue);function At(i,e){if(i&1&&(l(0),I(1,"adaptiveFileSize")),i&2){let t=k().$implicit;f(" ",b(1,1,t.value)," ")}}function Pt(i,e){if(i&1&&(l(0),I(1,"date")),i&2){let t=k().$implicit;f(" ",ke(1,1,t.value,"medium")," ")}}function bt(i,e){if(i&1&&(l(0),I(1,"readableDuration")),i&2){let t=k().$implicit;f(" ",b(1,1,t.value)," ")}}function Et(i,e){if(i&1&&l(0),i&2){let t=k().$implicit;f(" ",t.value," ")}}function Gt(i,e){i&1&&(m(0,"div",8),u(1,"mat-divider"),r())}function Ot(i,e){if(i&1&&(m(0,"div")(1,"div",5)(2,"div",6),l(3),I(4,"parametersLabel"),r(),m(5,"div",7),C(6,At,2,3)(7,Pt,2,4)(8,bt,2,3)(9,Et,1,1),r()(),C(10,Gt,2,0,"div",8),r()),i&2){let t,o=e.$implicit,a=e.$index,j=e.$count;n(3),f("",b(4,3,o.key),":"),n(3),M((t=o.key)==="file_size_bytes"?6:t==="creation_date"?7:t==="training_duration_seconds"?8:9),n(4),M(a!==j-1?10:-1)}}function Rt(i,e){if(i&1&&(m(0,"div",3),R(1,Ot,11,5,"div",null,Ae),r()),i&2){let t=k();n(),x(t)}}function xt(i,e){i&1&&u(0,"ms-empty-state",4)}function kt(i,e){i&1&&(m(0,"div",2),C(1,Rt,3,0,"div",3)(2,xt,1,0,"ms-empty-state",4),r()),i&2&&(n(),M(e.length>0?1:2))}var v,fe=(v=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),d(this)).subscribe(e=>{this.metadata=e})}},v.\u0275fac=function(t){return new(t||v)(s(K))},v.\u0275cmp=F({type:v,selectors:[["ms-panel-model-metadata"]],decls:5,vars:3,consts:[[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],[1,"metadata-wrapper"],[1,"key-value-container","single"],["title","No metadata available"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[1,"pt-2"]],template:function(t,o){if(t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Model Training Information"),r(),C(3,kt,3,1,"div",2),I(4,"keyvalue"),r()),t&2){let a;n(3),M((a=b(4,1,o.metadata))?3:-1,a)}},dependencies:[rt,U,Ve,Le,De,nt,mt,at],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),v);fe=S([A()],fe);var Lt=["panelParameters"],T,he=(T=class{constructor(e,t,o,a){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=o,this.modelsFacadeService=a,this.form=new L({}),this.isScriptActive=!1,this.selectedAlgorithmType=p.PRUNING,this.selectedAlgorithmKey=g.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(ge(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),Ce(),P(e=>!!e),d(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=Je[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(e=>{this.isScriptActive=E(e),E(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(ge(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,o=e.model?.model;return{algorithmType:t,model:o}}),Ce((e,t)=>JSON.stringify(e)===JSON.stringify(t)),P(({algorithmType:e,model:t})=>!G(e)&&!G(t)),d(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(O.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,o={alg:this.selectedAlgorithmKey,params:Se(Te({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(me.callScript({configs:o}))}},T.\u0275fac=function(t){return new(t||T)(s(tt),s(D),s(et),s(K))},T.\u0275cmp=F({type:T,selectors:[["ms-model-training"]],viewQuery:function(t,o){if(t&1&&Ge(Lt,5),t&2){let a;Oe(a=Re())&&(o.panelParametersComponent=a.first)}},decls:17,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper"],[1,"left",3,"formGroup"],["controlKey","algorithmTypeGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"ml-2",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[1,"right"]],template:function(t,o){if(t&1){let a=Ee();m(0,"p",1),l(1,"Model Training"),r(),m(2,"div",2)(3,"div",3),u(4,"ms-panel-algorithm-type-for-training",4)(5,"ms-panel-model-training",5)(6,"ms-panel-model-metadata")(7,"ms-panel-parameters",6,0),m(9,"div")(10,"button",7),_e("click",function(){return Me(a),ye(o.submit())}),l(11," Run "),r(),m(12,"button",8),_e("click",function(){return Me(a),ye(o.navigationService.goToPreviousPage())}),u(13,"mat-icon",9),l(14," Go back "),r()()(),m(15,"div",10),u(16,"ms-terminal"),r()()}t&2&&(n(3),c("formGroup",o.form),n(2),c("algorithmType",o.selectedAlgorithmType),n(2),c("algorithm",o.selectedAlgorithmKey),n(3),c("disabled",o.isScriptActive||o.form.invalid))},dependencies:[ce,V,de,w,Be,ne,ze,ue,fe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),T);he=S([A()],he);var Dt=[{path:"",component:he}],ct=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[ve.forChild(Dt),ve]});let i=e;return i})();var yo=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=z({imports:[q,ct,ce,V,de,le,je,pe,re,Qe,ie,ae,He]});let i=e;return i})();export{yo as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-UKDWQOGW.js b/frontend/server/modelsmith-build/browser/chunk-UKDWQOGW.js new file mode 100644 index 00000000..3fbde31b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-UKDWQOGW.js @@ -0,0 +1 @@ +import{a as dt,b as ut}from"./chunk-6VRVKV6C.js";import{b as Dt,g as Ct,h as _e,i as vt,j as re,k as De,o as Rt,q as bt,s as kt}from"./chunk-W4S57J6B.js";import{$ as ue,Ab as C,Bb as x,Ca as Je,D as Fe,Dd as mt,Ea as _,Fa as c,Fb as nt,Ga as E,Gb as ot,Hd as Ne,Ib as Ae,Ka as ie,Lb as rt,Ma as et,Mb as G,Na as q,Nb as O,Oa as m,Pa as L,Qa as P,Qb as st,Sa as Z,T as le,Ua as ye,Vb as at,Wb as ct,Ya as M,_ as de,_b as lt,a as Ie,aa as $,ab as f,bb as p,ca as te,cb as tt,da as B,ed as ht,fb as g,gb as we,ha as b,ia as he,id as ft,j as U,ja as h,jb as ne,k as W,ka as Xe,lb as k,mb as Y,nb as S,oa as fe,p as Ze,pa as me,pb as T,qa as pe,rb as I,re as pt,s as Q,sb as F,ta as v,tb as Oe,te as gt,u as Ye,ua as Ge,ub as X,ue as yt,va as K,vb as it,wb as oe,we as wt,x as ae,xa as j,xe as _t,y as ce,ya as ge}from"./chunk-64NP6AY6.js";var zt=[[["caption"]],[["colgroup"],["col"]],"*"],Ut=["caption","colgroup, col","*"];function Wt(n,e){n&1&&S(0,2)}function Qt(n,e){n&1&&(f(0,"thead",0),g(1,1),p(),f(2,"tbody",0),g(3,2)(4,3),p(),f(5,"tfoot",0),g(6,4),p())}function $t(n,e){n&1&&g(0,1)(1,2)(2,3)(3,4)}var R=new $("CDK_TABLE");var xe=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let n=e;return n})(),Ee=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let n=e;return n})(),Et=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let n=e;return n})(),J=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,a){if(i&1&&(T(a,xe,5),T(a,Ee,5),T(a,Et,5)),i&2){let s;I(s=F())&&(o.cell=s.first),I(s=F())&&(o.headerCell=s.first),I(s=F())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",O],stickyEnd:[2,"stickyEnd","stickyEnd",O]},standalone:!0,features:[C([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),L]});let n=e;return n})(),ve=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},Mt=(()=>{let e=class e extends ve{constructor(t,i){super(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(j))},e.\u0275dir=h({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[m]});let n=e;return n})();var Tt=(()=>{let e=class e extends ve{constructor(t,i){super(t,i);let o=t._table?._getCellRole();o&&i.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(j))},e.\u0275dir=h({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[m]});let n=e;return n})(),Re=class{constructor(){this.tasks=[],this.endTasks=[]}},be=new $("_COALESCED_STYLE_SCHEDULER"),Pe=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=B(ie)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Re,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new Re;for(let i of t.tasks)i();for(let i of t.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(te(ie))},e.\u0275prov=de({token:e,factory:e.\u0275fac});let n=e;return n})();var Be=(()=>{let e=class e{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){let i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof se?t.headerCell.template:this instanceof Le?t.footerCell.template:t.cell.template}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G))},e.\u0275dir=h({type:e,features:[fe]});let n=e;return n})(),se=(()=>{let e=class e extends Be{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,o){super(t,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",O]},standalone:!0,features:[L,m,fe]});let n=e;return n})(),Le=(()=>{let e=class e extends Be{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,o){super(t,i),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",O]},standalone:!0,features:[L,m,fe]});let n=e;return n})(),Me=(()=>{let e=class e extends Be{constructor(t,i,o){super(t,i),this._table=o}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[m]});let n=e;return n})(),H=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(c(q))},e.\u0275dir=h({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let n=e;return n})(),He=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let n=e;return n})();var Ve=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let n=e;return n})(),It=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let n=e;return n})(),St=["top","bottom","left","right"],je=class{constructor(e,r,t,i,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let t=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){t.push(i);for(let o=0;o{for(let i of t)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,t,i=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||t.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],a=o.children.length,s=this._getCellWidths(o,i),l=this._getStickyStartColumnPositions(s,r),d=this._getStickyEndColumnPositions(s,t),u=r.lastIndexOf(!0),w=t.indexOf(!0),y=this.direction==="rtl",N=y?"right":"left",Ke=y?"left":"right";for(let ee of e)for(let D=0;Dr[D]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:w===-1?[]:s.slice(w).map((ee,D)=>t[D+w]?ee:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let u=0,w=0;u{let t=e.querySelector("tfoot");t&&(r.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);St.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let i of St)e.style[i]&&(t+=r[i]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=e.children;for(let o=0;o0;o--)r[o]&&(t[o]=i,i+=e[o]);return t}};var ke=new $("CDK_SPL");var ze=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let o=B(R);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let n=e;return n})(),Ue=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let o=B(R);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let n=e;return n})(),We=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let o=B(R);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let n=e;return n})(),Qe=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let o=B(R);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(j))},e.\u0275dir=h({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let n=e;return n})();var $e=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),i=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,i,o,a,s,l,d,u,w,y,N,Ke){this._differs=t,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=d,this._viewRepeater=u,this._coalescedStyleScheduler=w,this._viewportRuler=y,this._stickyPositioningListener=N,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ge,this.viewChange=new W({start:0,end:Number.MAX_VALUE}),this._injector=B(K),a||o.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!d.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(le(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),_e(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===vt.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=i.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),et(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=xt(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let i=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=xt(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let i=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(s)?o.get(s):[];if(l.length){let d=l.shift();return d.dataIndex=i,d}else return{data:t,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ce(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Ce(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ce(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ce(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),i||o||a}_switchDataSource(t){this._data=[],_e(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;_e(this.dataSource)?t=this.dataSource.connect(this):Ye(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Q(this.dataSource)),this._renderChangeSubscription=t.pipe(le(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){let o=Array.from(i.columns||[]).map(l=>{let d=this._columnDefsByName.get(l);return d}),a=o.map(l=>l.sticky),s=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let i=[];for(let o=0;o!a.when||a.when(i,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(i,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,i){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:i}}_renderRow(t,i,o,a={}){let s=t.viewContainer.createEmbeddedView(i.template,a,o);return this._renderCellTemplateForItem(i,a),s}_renderCellTemplateForItem(t,i){for(let o of this._getCellTemplates(t))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let i=0,o=t.length;i{let o=this._columnDefsByName.get(i);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new je(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Q()).pipe(le(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(i){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(c(G),c(rt),c(j),Ge("role"),c(mt,8),c(st),c(ft),c(re),c(be),c(Rt),c(ke,12),c(ie,8))},e.\u0275cmp=b({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,a){if(i&1&&(T(a,It,5),T(a,J,5),T(a,Me,5),T(a,se,5),T(a,Le,5)),i&2){let s;I(s=F())&&(o._noDataRow=s.first),I(s=F())&&(o._contentColumnDefs=s),I(s=F())&&(o._contentRowDefs=s),I(s=F())&&(o._contentHeaderRowDefs=s),I(s=F())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&ye("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",O],fixedLayout:[2,"fixedLayout","fixedLayout",O]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[C([{provide:R,useExisting:e},{provide:re,useClass:De},{provide:be,useClass:Pe},{provide:ke,useValue:null}]),L,x],ngContentSelectors:Ut,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(Y(zt),S(0),S(1,1),P(2,Wt,1,0)(3,Qt,7,0)(4,$t,4,0)),i&2&&(_(2),M(o._isServer?2:-1),_(),M(o._isNativeHtmlTable?3:4))},dependencies:[Ue,ze,Qe,We],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let n=e;return n})();function Ce(n,e){return n.concat(Array.from(e))}function xt(n,e){let r=e.toUpperCase(),t=n.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===r)return t;if(i==="TABLE")break;t=t.parentNode}return null}var Ft=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=he({type:e}),e.\u0275inj=ue({imports:[bt]});let n=e;return n})();var Kt=[[["caption"]],[["colgroup"],["col"]],"*"],qt=["caption","colgroup, col","*"];function Zt(n,e){n&1&&S(0,2)}function Yt(n,e){n&1&&(f(0,"thead",0),g(1,1),p(),f(2,"tbody",2),g(3,3)(4,4),p(),f(5,"tfoot",0),g(6,5),p())}function Xt(n,e){n&1&&g(0,1)(1,3)(2,4)(3,5)}var Gi=(()=>{let e=class e extends $e{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){i&2&&ye("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[C([{provide:$e,useExisting:e},{provide:R,useExisting:e},{provide:be,useClass:Pe},{provide:re,useClass:De},{provide:ke,useValue:null}]),m,x],ngContentSelectors:qt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(Y(Kt),S(0),S(1,1),P(2,Zt,1,0)(3,Yt,7,0)(4,Xt,4,0)),i&2&&(_(2),M(o._isServer?2:-1),_(),M(o._isNativeHtmlTable?3:4))},dependencies:[Ue,ze,Qe,We],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let n=e;return n})(),Ji=(()=>{let e=class e extends xe{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[C([{provide:xe,useExisting:e}]),m]});let n=e;return n})(),en=(()=>{let e=class e extends Ee{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[C([{provide:Ee,useExisting:e}]),m]});let n=e;return n})();var tn=(()=>{let e=class e extends J{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[C([{provide:J,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),m]});let n=e;return n})(),nn=(()=>{let e=class e extends Mt{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[m]});let n=e;return n})();var on=(()=>{let e=class e extends Tt{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[m]});let n=e;return n})();var rn=(()=>{let e=class e extends se{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",O]},standalone:!0,features:[C([{provide:se,useExisting:e}]),L,m]});let n=e;return n})();var sn=(()=>{let e=class e extends Me{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[C([{provide:Me,useExisting:e}]),m]});let n=e;return n})(),an=(()=>{let e=class e extends He{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[C([{provide:He,useExisting:e}]),m,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let n=e;return n})();var cn=(()=>{let e=class e extends Ve{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=v(e)))(o||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[C([{provide:Ve,useExisting:e}]),m,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let n=e;return n})();var ln=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=he({type:e}),e.\u0275inj=ue({imports:[Ne,Ft,Ne]});let n=e;return n})(),Gt=9007199254740991,Ot=class extends Ct{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new W([]),this._filter=new W(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let i=r[t];if(ht(i)){let o=Number(i);return o{let i=t.active,o=t.direction;return!i||o==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,i),d=this.sortingDataAccessor(s,i),u=typeof l,w=typeof d;u!==w&&(u==="number"&&(l+=""),w==="number"&&(d+=""));let y=0;return l!=null&&d!=null?l>d?y=1:l{let i=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return i.indexOf(o)!=-1},this._data=new W(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Fe(this._sort.sortChange,this._sort.initialized):Q(null),r=this._paginator?Fe(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Q(null),t=this._data,i=ce([t,this._filter]).pipe(ae(([s])=>this._filterData(s))),o=ce([i,e]).pipe(ae(([s])=>this._orderData(s))),a=ce([o,r]).pipe(ae(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,t);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Te=new $("DRAWER_DATA");var V=function(n){return n.OPEN="open",n.DISMISS="dismiss",n.SAVE="save",n.CLOSE="close",n}(V||{});function At(n){let e={};return n&&Jt(e,n,"width"),e}function Jt(n,e,r){let t=ei(e);t==="px"||t==="rem"||t==="em"?n[`${r}.${t}`]=parseFloat(e):n[r]=e}function ei(n){let r=(typeof n=="string"?n:"").match(/(px|rem|em|vw|vh|%)$/);return r?r[0]:"px"}var Nt=(()=>{let e=class e{transform(t){return At(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Xe({name:"drawerSizeStyles",type:e,pure:!0,standalone:!0});let n=e;return n})();var z=class{constructor(e){this.overlayRef=e,this.afterClosedSubject=new U}backdropClick(){return this.overlayRef.backdropClick()}close(e){this.overlayRef.dispose(),this.afterClosedSubject.next(e),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var ii=["*"];function ni(n,e){n&1&&g(0)}function oi(n,e){if(n&1){let r=we();f(0,"div",7)(1,"div",8),X(2),p(),f(3,"div",9)(4,"button",10),ne("click",function(){me(r);let i=k();return pe(i.onDismiss())}),tt(5,"mat-icon",11),p()()()}if(n&2){let r=k();_(2),it(r.data.title)}}function ri(n,e){n&1&&g(0)}function si(n,e){if(n&1){let r=we();f(0,"button",15),ne("click",function(){me(r);let i=k(2);return pe(i.onClose())}),X(1),p()}if(n&2){let r=k(2);Z("disabled",r.isDismissDisabled),_(),oe(" ",r.data.closeButtonLabel," ")}}function ai(n,e){if(n&1){let r=we();f(0,"button",16),ne("click",function(){me(r);let i=k(2);return pe(i.onSave())}),X(1),p()}if(n&2){let r=k(2);Z("disabled",r.isSaveDisabled),_(),oe(" ",r.data.saveButtonLabel," ")}}function ci(n,e){if(n&1&&(f(0,"div",12),P(1,si,2,2,"button",13)(2,ai,2,2,"button",14),p()),n&2){let r=k();_(),M(r.data.showCloseButton?1:-1),_(),M(r.data.showSaveButton?2:-1)}}var A,jt=(A=class{constructor(e,r){this.drawerRef=e,this.data=r,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new ge,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(V.CLOSE),this.drawerRef.close({status:V.CLOSE})}onSave(){this.actionEvent.emit(V.SAVE)}onDismiss(){this.actionEvent.emit(V.DISMISS),this.drawerRef.close({status:V.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(ut(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},A.\u0275fac=function(r){return new(r||A)(c(z),c(Te))},A.\u0275cmp=b({type:A,selectors:[["ms-drawer"]],hostBindings:function(r,t){r&1&&ne("keyup.esc",function(){return t.onEscKeyDown()},!1,Je)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[x],ngContentSelectors:ii,decls:12,vars:5,consts:[["defaultDrawerHeader",""],["defaultDrawerActions",""],[1,"drawer-wrapper",3,"ngStyle"],[1,"drawer-header"],[4,"ngTemplateOutlet"],[1,"drawer-content"],[1,"drawer-actions"],[1,"drawer-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X"],[1,"actions-wrapper"],["mat-stroked-button","",3,"disabled"],["mat-flat-button","","color","primary",3,"disabled"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(r,t){if(r&1&&(Y(),f(0,"div",2),nt(1,"drawerSizeStyles"),f(2,"div",3),P(3,ni,1,0,"ng-container",4)(4,oi,6,1,"ng-template",null,0,Ae),p(),f(6,"div",5),S(7),p(),f(8,"div",6),P(9,ri,1,0,"ng-container",4)(10,ci,3,2,"ng-template",null,1,Ae),p()()),r&2){let i=Oe(5),o=Oe(11);Z("ngStyle",ot(1,3,t.data.width)),_(3),Z("ngTemplateOutlet",t.headerTemplate||i),_(6),Z("ngTemplateOutlet",t.actionsTemplate||o)}},dependencies:[lt,ct,at,yt,pt,gt,_t,wt,Nt],styles:[".drawer-wrapper[_ngcontent-%COMP%]{width:inherit;height:100vh;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header[_ngcontent-%COMP%]{min-height:90px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:20px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),A);jt=Ze([dt()],jt);var Pt="768px";var Wn=(()=>{let e=class e{constructor(t,i){this.overlay=t,this.injector=i}open(t,i){let o=this.overlay.position().global().right(),a=this.overlay.create(Ie({positionStrategy:o,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh"},i)),s=new z(a),l=K.create({parent:this.injector,providers:[{provide:z,useValue:s},{provide:Te,useValue:Ie({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:i?.width||Pt},i)}]}),d=new Dt(t,null,l);return a.attach(d),s}};e.\u0275fac=function(i){return new(i||e)(te(kt),te(K))},e.\u0275prov=de({token:e,factory:e.\u0275fac});let n=e;return n})();export{Gi as a,Ji as b,en as c,tn as d,nn as e,on as f,rn as g,sn as h,an as i,cn as j,ln as k,Ot as l,Te as m,V as n,z as o,jt as p,Wn as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-VLJTKNYA.js b/frontend/server/modelsmith-build/browser/chunk-VLJTKNYA.js new file mode 100644 index 00000000..16dfdf33 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-VLJTKNYA.js @@ -0,0 +1 @@ +import{Hc as e,Ic as r}from"./chunk-64NP6AY6.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W3BMP4QU.js b/frontend/server/modelsmith-build/browser/chunk-W3BMP4QU.js new file mode 100644 index 00000000..deb8ac71 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-W3BMP4QU.js @@ -0,0 +1 @@ +import{a as H,b as J,c as K,d as W}from"./chunk-6NECGAK4.js";import{c as $,h as z,i as G,j as Q,k as q}from"./chunk-OFW2ET2O.js";import{Bb as p,Ea as a,Fa as w,Fb as T,Fe as Y,Gb as D,Qa as F,Sa as d,Ta as x,Xb as P,Ya as b,Yd as A,_b as B,ab as t,ad as k,bb as i,be as N,cb as n,fe as O,gb as _,ha as l,ie as U,jb as E,pa as C,pe as j,qa as I,qe as L,re as V,tb as M,te as R,ub as u,ue as f,vb as h,we as g,xe as v,ye as X}from"./chunk-64NP6AY6.js";function oe(o,e){if(o&1&&(t(0,"div",6)(1,"div",12),u(2),i(),t(3,"div",13),u(4),i()()),o&2){let S=e;a(2),h(S.name),a(2),h(S.role)}}var Z=(()=>{let e=class e{constructor(m){this.authFacadeService=m,this.RoutesList=k,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(X.logout())}};e.\u0275fac=function(r){return new(r||e)(w(Y))},e.\u0275cmp=l({type:e,selectors:[["ms-user-navigation"]],standalone:!0,features:[p],decls:14,vars:6,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["mat-button","",3,"matMenuTriggerFor"],[1,"user-navigation-content-wrapper","flex","items-center","gap-2"],[1,"content-1","flex","items-center"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],[1,"content-2","right","text-left","ml-2"],[1,"content-3"],["fontSet","ms","fontIcon","icon-CaretDown",1,"mat-white","rotate-icon","text-base"],[1,"ms-mat-menu"],["mat-menu-item","",3,"click"],["fontSet","ms","fontIcon","icon-SignOut"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(r,s){if(r&1){let c=_();t(0,"button",2,0)(2,"div",3)(3,"div",4),n(4,"mat-icon",5),i(),F(5,oe,5,2,"div",6),T(6,"async"),t(7,"div",7),n(8,"mat-icon",8),i()()(),t(9,"mat-menu",9,1)(11,"button",10),E("click",function(){return C(c),I(s.logout())}),n(12,"mat-icon",11),u(13," Logout "),i()()}if(r&2){let c,y=M(1),ee=M(10);d("matMenuTriggerFor",ee),a(5),b((c=D(6,4,s.user$))?5:-1,c),a(3),x("transform",y.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[B,P,v,g,W,J,H,K,f,V],styles:[".rotate-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.content-2[_ngcontent-%COMP%]{color:var(--backgrounds-50)}"]});let o=e;return o})();var Fe=(()=>{let e=class e{constructor(){this.search=new O}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=l({type:e,selectors:[["ms-header"]],standalone:!0,features:[p],decls:24,vars:1,consts:[[1,"header-wrapper"],[1,"left","flex","justify-center","items-center"],[1,"icon"],["mat-icon-button",""],["fontSet","ms","fontIcon","icon-Nav",1,"mat-white"],[1,"logo","ml-4"],["src","./assets/logo/logo-header.svg","alt",""],[1,"right","flex","justify-center","items-center","gap-1"],[1,"form-field-container","ms-white-form-field"],["subscriptSizing","dynamic","floatLabel","auto"],["matInput","","placeholder","Search",3,"formControl"],["matPrefix","","fontSet","ms","fontIcon","icon-MagnifyingGlass",1,"mat-white"],["fontSet","ms","fontIcon","icon-Question",1,"mat-white"],["fontSet","ms","fontIcon","icon-Bell",1,"mat-white"],[1,"vertical-divider","h-9"],[1,"icon","cursor-pointer"]],template:function(r,s){r&1&&(t(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),n(4,"mat-icon",4),i()(),t(5,"div",5),n(6,"img",6),i()(),t(7,"div",7)(8,"div",8)(9,"mat-form-field",9),n(10,"input",10)(11,"mat-icon",11),i()(),t(12,"div")(13,"button",3),n(14,"mat-icon",12),i()(),t(15,"div")(16,"button",3),n(17,"mat-icon",13),i()(),n(18,"div",14),t(19,"div"),n(20,"ms-user-navigation"),i(),t(21,"div",15)(22,"button",3),n(23,"mat-icon",4),i()()()()),r&2&&(a(10),d("formControl",s.search))},dependencies:[v,g,Z,L,A,N,U,j,G,z,$,f,R,q,Q],styles:[".header-wrapper[_ngcontent-%COMP%]{height:56px;padding:0 10px;background:linear-gradient(to right,var(--header-left),var(--header-right));display:flex;justify-content:space-between}"]});let o=e;return o})();export{Fe as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W3QFCG25.js b/frontend/server/modelsmith-build/browser/chunk-W3QFCG25.js new file mode 100644 index 00000000..b652d94b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-W3QFCG25.js @@ -0,0 +1 @@ +import{a as Me}from"./chunk-VLJTKNYA.js";import{a as ye,b as Fe}from"./chunk-F7URI57V.js";import{a as ne,b as me,c as pe,d as se,e as le,f as ce,g as de,h as ue,i as fe}from"./chunk-OVEUDHWN.js";import{a as he,b as _e}from"./chunk-JMFIGVCB.js";import{d as ge}from"./chunk-PR3LNGVD.js";import{b as ae}from"./chunk-LRK34XDC.js";import{a as re,b as ie}from"./chunk-QVMVB2QY.js";import{a as Ce,b as ve}from"./chunk-YPMBMI5J.js";import{b as oe,l as xe}from"./chunk-QTJZRTNN.js";import{a as L,b as M}from"./chunk-6VRVKV6C.js";import{a as Y,d as z,h as J,i as Q,j as ee,k as te}from"./chunk-OFW2ET2O.js";import{$a as g,$d as h,Ab as k,Bb as V,Ea as a,Fa as d,Q as A,Qa as y,Rd as R,Sa as c,Ya as u,Yd as G,Za as F,_a as x,_d as p,ab as n,ad as O,bb as o,be as $,cb as _,ce as w,da as T,db as P,de as K,eb as D,ha as b,ke as j,lb as f,le as q,me as B,ne as U,oa as E,ob as C,oe as H,p as S,qe as X,ub as l,vb as v,wb as N,we as W,x as I,xe as Z}from"./chunk-64NP6AY6.js";var Se=i=>{let e=[];if(i.validators)for(let[t,r]of Object.entries(i.validators))switch(t){case"required":r&&e.push(p.required);break;case"min":e.push(p.min(r));break;case"max":e.push(p.max(r));break;case"minLength":e.push(p.minLength(r));break;case"maxLength":e.push(p.maxLength(r));break;case"pattern":e.push(p.pattern(r));break;case"requiredTrue":r&&e.push(p.requiredTrue);break;case"email":r&&e.push(p.email);break;case le:e.push(ce(r));break;case de:e.push(ue());break;case ne:e.push(me());break;case pe:Array.isArray(r)&&r.length===2&&e.push(se(r));break}return e};function Ae(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8),_(4,"input",9)(5,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m)("placeholder",r.placeholder)("type",r.inputType)("step",r.inputArrowsStepRate||1),a(),C("matTooltip",r.help)}}function Te(i,e){if(i&1&&(n(0,"mat-option",12),l(1),o()),i&2){let t=e.$implicit;c("value",t.value),a(),N(" ",t.viewValue," ")}}function be(i,e){if(i&1&&(n(0,"div",6)(1,"mat-label"),l(2),o(),n(3,"mat-form-field",8)(4,"mat-select",11),x(5,Te,2,2,"mat-option",12,F),o(),_(7,"mat-icon",10),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(2),v(r.label),a(2),c("formControlName",m),a(),g(r.options),a(2),C("matTooltip",r.help)}}function Ee(i,e){if(i&1&&(n(0,"div",7)(1,"mat-checkbox",13),l(2),o(),n(3,"div",14),_(4,"mat-icon",15),o()()),i&2){let t=f(),r=t.$implicit,m=t.$index;a(),c("formControlName",m),a(),v(r.label),a(2),C("matTooltip",r.help)}}function Pe(i,e){if(i&1&&y(0,Ae,6,6,"div",6)(1,be,8,3,"div",6)(2,Ee,5,3,"div",7),i&2){let t=e.$implicit;u(t.inputType==="text"||t.inputType==="number"?0:-1),a(),u(t.inputType==="select"?1:-1),a(),u(t.inputType==="checkbox"?2:-1)}}function De(i,e){if(i&1&&(n(0,"div",2),P(1,4),n(2,"div",5),x(3,Pe,3,3,null,null,F),o(),D(),o()),i&2){let t=f();a(),c("formGroupName",t.controlKey),a(2),g(t.parameters)}}function Ne(i,e){i&1&&(n(0,"p",3),l(1,"No parameters configured."),o())}var s,Ie=(s=class{ngOnChanges(e){e.algorithm&&e.algorithm.currentValue&&(this.alg=e.algorithm.currentValue,this.loadParametersForAlgorithm(this.alg))}get parentFormGroup(){return this.controlContainer.control}get paramsFormGroup(){return this.parentFormGroup.get(this.controlKey)}get parametersFormArray(){return this.paramsFormGroup.get("parametersArray")}constructor(e,t,r,m){this.fb=e,this.controlContainer=t,this.parametersFacadeService=r,this.scriptFacadeService=m,this.controlKey="",this.RoutesList=O,this.alg=ge,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new K({parametersArray:new U([])}))}loadParametersForAlgorithm(e){this.parametersFacadeService.dispatch(Me.loadParameters({arg:e})),this.parametersFacadeService.parameters$.pipe(I(t=>t[e]?.data||[]),A(1),M(this)).subscribe(t=>{this.buildFormArray(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(M(this)).subscribe(e=>{this.isScriptActive=ae(e)})}buildFormArray(e){this.parametersFormArray.clear(),e.forEach(t=>{let r=this.fb.control(t.defaultValue,Se(t));this.parametersFormArray.push(r)}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=e}get parametersFormatted(){let e={},t=this.parametersFormArray.getRawValue();return this.parameters.forEach((r,m)=>{e[r.argName]=t[m]}),e}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(d(H),d(h),d(xe),d(oe))},s.\u0275cmp=b({type:s,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[k([],[{provide:h,useFactory:()=>T(h,{skipSelf:!0})}]),E,V],decls:5,vars:1,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[1,"parameters-wrapper"],[1,"no-parameters-message"],[3,"formGroupName"],["formArrayName","parametersArray"],[1,"form-field-container"],[1,"form-field-container","inline-container","mb-[22px]"],["appearance","outline"],["matInput","","msErrorDisplay","",3,"formControlName","placeholder","type","step"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],["msErrorDisplay","",3,"formControlName"],[3,"value"],[3,"formControlName"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"]],template:function(t,r){t&1&&(n(0,"mat-card",0)(1,"p",1),l(2,"Parameters"),o(),y(3,De,5,1,"div",2)(4,Ne,2,0,"p",3),o()),t&2&&(a(3),u(r.parameters.length?3:4))},dependencies:[te,ee,J,Y,z,X,G,$,w,B,j,q,ve,Ce,Q,Fe,ye,R,ie,re,_e,he,Z,W,fe],styles:[".parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding-right:20px}.parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%] .parameter-divider[_ngcontent-%COMP%]{margin-bottom:20px}"]}),s);Ie=S([L()],Ie);export{Ie as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W4S57J6B.js b/frontend/server/modelsmith-build/browser/chunk-W4S57J6B.js new file mode 100644 index 00000000..c118a217 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-W4S57J6B.js @@ -0,0 +1 @@ +import{$ as k,B as Rt,Ba as Dt,D as kt,Dd as ht,E as j,Ed as A,F as Q,Fa as w,Ga as z,Ha as N,Jb as It,Ka as C,La as Pt,Ma as Mt,Na as I,Nb as x,Oa as it,Pa as st,Pb as At,Qb as y,Rb as Ft,Sc as Tt,T as J,Tc as nt,U as Ot,_ as g,a as B,aa as L,b as Ct,bd as ot,ca as c,da as tt,fd as rt,g as S,gd as u,h as Et,hd as Bt,i as St,ia as O,id as D,j as v,ja as M,ld as jt,na as xt,nd as Y,oa as et,od as at,pd as Lt,s as K,va as V,xa as R,ya as E}from"./chunk-64NP6AY6.js";var Vt=nt(ot,o=>o.configs.defaultMode),zt=nt(ot,o=>o.configs.currentMode);var Re=(()=>{let t=class t{constructor(e){this.store=e,this.defaultMode$=this.store.select(Vt),this.currentMode$=this.store.select(zt)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(i){return new(i||t)(c(Tt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let o=t;return o})();var F=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},lt=class extends F{constructor(t,s,e,i,n){super(),this.component=t,this.viewContainerRef=s,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=n}},T=class extends F{constructor(t,s,e,i){super(),this.templateRef=t,this.viewContainerRef=s,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,s=this.context){return this.context=s,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ct=class extends F{constructor(t){super(),this.element=t instanceof R?t.nativeElement:t}},W=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof lt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof T)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ct)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var X=class extends W{constructor(t,s,e,i,n){super(),this.outletElement=t,this._componentFactoryResolver=s,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");a.parentNode.insertBefore(h,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||V.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let s=t.viewContainerRef,e=s.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=s.indexOf(e);i!==-1&&s.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Te=(()=>{let t=class t extends W{constructor(e,i,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(h,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(w(N),w(I),w(y))},t.\u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[it]});let o=t;return o})();var Nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})();var Yt=class{};function ze(o){return o&&typeof o.connect=="function"&&!(o instanceof St)}var Z=function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o}(Z||{}),Ne=new L("_ViewRepeater"),Ht=class{applyChanges(t,s,e,i,n){t.forEachOperation((r,a,h)=>{let d,l;if(r.previousIndex==null){let f=e(r,a,h);d=s.createEmbeddedView(f.templateRef,f.context,f.index),l=Z.INSERTED}else h==null?(s.remove(a),l=Z.REMOVED):(d=s.get(a),s.move(d,h),l=Z.MOVED);n&&n({context:d?.context,operation:l,record:r})})}detach(){}};var Wt=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,s,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,s&&s.length&&(t?s.forEach(n=>this._markSelected(n)):this._markSelected(s[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}setSelection(...t){this._verifyValueAssignment(t);let s=this.selected,e=new Set(t);t.forEach(n=>this._markSelected(n)),s.filter(n=>!e.has(this._getConcreteValue(n,e))).forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let s=this._hasQueuedChanges();return t&&this._emitChangeEvent(),s}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,s){if(this.compareWith){s=s??this._selection;for(let e of s)if(this.compareWith(t,e))return e;return t}else return t}};var Ye=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let n of this._listeners)n(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var re=20,dt=(()=>{let t=class t{constructor(e,i,n){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=re){return this._platform.isBrowser?new Et(i=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(Q(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):K()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let n=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(j(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let n=Bt(i),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Rt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(D),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var ae=20,$=(()=>{let t=class t{constructor(e,i,n){this._platform=e,this._change=new v,this._changeListener=r=>{this._change.next(r)},this._document=n,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||n.scrollTop||0,h=-r.left||e.body.scrollLeft||i.scrollX||n.scrollLeft||0;return{top:a,left:h}}change(e=ae){return e>0?this._change.pipe(Q(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(D),c(C),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Xt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})(),ft=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({imports:[A,Xt,A,Xt]});let o=t;return o})();var Zt=jt(),ut=class{constructor(t,s){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=u(-this._previousScrollPosition.left),t.style.top=u(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,s=this._document.body,e=t.style,i=s.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Zt&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zt&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let s=this._document.body,e=this._viewportRuler.getViewportSize();return s.scrollHeight>e.height||s.scrollWidth>e.width}};var pt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._ngZone=s,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(j(s=>!s||!this._overlayRef.overlayElement.contains(s.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},U=class{enable(){}disable(){}attach(){}};function _t(o,t){return t.some(s=>{let e=o.bottoms.bottom,n=o.rights.right;return e||i||n||r})}function $t(o,t){return t.some(s=>{let e=o.tops.bottom,n=o.lefts.right;return e||i||n||r})}var gt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._viewportRuler=s,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();_t(s,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ce=(()=>{let t=class t{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=()=>new U,this.close=a=>new pt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=a=>new gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(c(dt),c($),c(C),c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),G=class{constructor(t){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let s=Object.keys(t);for(let e of s)t[e]!==void 0&&(this[e]=t[e])}}};var mt=class{constructor(t,s){this.connectionPair=t,this.scrollableViewProperties=s}};var te=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),de=(()=>{let t=class t extends te{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=n=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let h=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>h.next(n)):h.next(n);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),fe=(()=>{let t=class t extends te{constructor(e,i,n){super(e),this._platform=i,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Y(r)},this._clickListener=r=>{let a=Y(r),h=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let l=d.length-1;l>-1;l--){let f=d[l];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(Ut(f.overlayElement,a)||Ut(f.overlayElement,h))break;let p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(r)):p.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(D),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Ut(o,t){let s=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===o)return!0;e=s&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var ee=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||at()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=At(()=>Pt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let s=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Mt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof s?.onDestroy=="function"&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=B(B({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ct(B({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=u(this._config.width),t.height=u(this._config.height),t.minWidth=u(this._config.minWidth),t.minHeight=u(this._config.minHeight),t.maxWidth=u(this._config.maxWidth),t.maxHeight=u(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,s,e){let i=rt(s||[]).filter(n=>!!n);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(J(kt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Gt="cdk-overlay-connected-position-bounding-box",ue=/([A-Za-z%]+)$/,yt=class{get positions(){return this._preferredPositions}constructor(t,s,e,i,n){this._viewportRuler=s,this._document=e,this._platform=i,this._overlayContainer=n,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Gt),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,s=this._overlayRect,e=this._viewportRect,i=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(h,s,a),l=this._getOverlayFit(d,s,e,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,e)){n.push({position:a,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleAreah&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Gt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let s=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,s)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,s,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}s.left<0&&(i-=s.left);let n;return e.originY=="center"?n=t.top+t.height/2:n=e.originY=="top"?t.top:t.bottom,s.top<0&&(n-=s.top),{x:i,y:n}}_getOverlayPoint(t,s,e){let i;e.overlayX=="center"?i=-s.width/2:e.overlayX==="start"?i=this._isRtl()?-s.width:0:i=this._isRtl()?0:-s.width;let n;return e.overlayY=="center"?n=-s.height/2:n=e.overlayY=="top"?0:-s.height,{x:t.x+i,y:t.y+n}}_getOverlayFit(t,s,e,i){let n=Kt(s),{x:r,y:a}=t,h=this._getOffset(i,"x"),d=this._getOffset(i,"y");h&&(r+=h),d&&(a+=d);let l=0-r,f=r+n.width-e.width,p=0-a,m=a+n.height-e.height,_=this._subtractOverflows(n.width,l,f),b=this._subtractOverflows(n.height,p,m),bt=_*b;return{visibleArea:bt,isCompletelyWithinViewport:n.width*n.height===bt,fitsInViewportVertically:b===n.height,fitsInViewportHorizontally:_==n.width}}_canFitWithFlexibleDimensions(t,s,e){if(this._hasFlexibleDimensions){let i=e.bottom-s.y,n=e.right-s.x,r=qt(this._overlayRef.getConfig().minHeight),a=qt(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return!1}_pushOverlayOnScreen(t,s,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Kt(s),n=this._viewportRect,r=Math.max(t.x+i.width-n.width,0),a=Math.max(t.y+i.height-n.height,0),h=Math.max(n.top-e.top-t.y,0),d=Math.max(n.left-e.left-t.x,0),l=0,f=0;return i.width<=n.width?l=d||-r:l=t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-_/2)}let h=s.overlayX==="start"&&!i||s.overlayX==="end"&&i,d=s.overlayX==="end"&&!i||s.overlayX==="start"&&i,l,f,p;if(d)p=e.width-t.x+this._viewportMargin*2,l=t.x-this._viewportMargin;else if(h)f=t.x,l=e.right-t.x;else{let m=Math.min(e.right-t.x+e.left,t.x),_=this._lastBoundingBoxSize.width;l=m*2,f=t.x-m,l>_&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-_/2)}return{top:r,left:f,bottom:a,right:p,width:l,height:n}}_setBoundingBoxStyles(t,s){let e=this._calculateBoundingBoxRect(t,s);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=u(e.height),i.top=u(e.top),i.bottom=u(e.bottom),i.width=u(e.width),i.left=u(e.left),i.right=u(e.right),s.overlayX==="center"?i.alignItems="center":i.alignItems=s.overlayX==="end"?"flex-end":"flex-start",s.overlayY==="center"?i.justifyContent="center":i.justifyContent=s.overlayY==="bottom"?"flex-end":"flex-start",n&&(i.maxHeight=u(n)),r&&(i.maxWidth=u(r))}this._lastBoundingBoxSize=e,P(this._boundingBox.style,i)}_resetBoundingBoxStyles(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,s){let e={},i=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let l=this._viewportRuler.getViewportScrollPosition();P(e,this._getExactOverlayY(s,t,l)),P(e,this._getExactOverlayX(s,t,l))}else e.position="static";let a="",h=this._getOffset(s,"x"),d=this._getOffset(s,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=u(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=u(r.maxWidth):n&&(e.maxWidth="")),P(this._pane.style,e)}_getExactOverlayY(t,s,e){let i={top:"",bottom:""},n=this._getOverlayPoint(s,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(n.y+this._overlayRect.height)}px`}else i.top=u(n.y);return i}_getExactOverlayX(t,s,e){let i={left:"",right:""},n=this._getOverlayPoint(s,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(n.x+this._overlayRect.width)}px`}else i.left=u(n.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),s=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$t(t,e),isOriginOutsideView:_t(t,e),isOverlayClipped:$t(s,e),isOverlayOutsideView:_t(s,e)}}_subtractOverflows(t,...s){return s.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+s-this._viewportMargin,width:t-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,s){return s==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&rt(t).forEach(s=>{s!==""&&this._appliedPanelClasses.indexOf(s)===-1&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof R)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let s=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+s,height:e,width:s}}};function P(o,t){for(let s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);return o}function qt(o){if(typeof o!="number"&&o!=null){let[t,s]=o.split(ue);return!s||s==="px"?parseFloat(t):null}return o||null}function Kt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function pe(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Qt="cdk-global-overlay-wrapper",wt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let s=t.getConfig();this._overlayRef=t,this._width&&!s.width&&t.updateSize({width:this._width}),this._height&&!s.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Qt),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:n,maxWidth:r,maxHeight:a}=e,h=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,f=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",m="",_="",b="";h?b="flex-start":l==="center"?(b="center",p?_=f:m=f):p?l==="left"||l==="end"?(b="flex-end",m=f):(l==="right"||l==="start")&&(b="flex-start",_=f):l==="left"||l==="start"?(b="flex-start",m=f):(l==="right"||l==="end")&&(b="flex-end",_=f),t.position=this._cssPosition,t.marginLeft=h?"0":m,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":_,s.justifyContent=b,s.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,e=s.style;s.classList.remove(Qt),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},_e=(()=>{let t=class t{constructor(e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}global(){return new wt}flexibleConnectedTo(e){return new yt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c($),c(y),c(D),c(ee))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),ge=0,q=(()=>{let t=class t{constructor(e,i,n,r,a,h,d,l,f,p,m,_){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=h,this._ngZone=d,this._document=l,this._directionality=f,this._location=p,this._outsideClickDispatcher=m,this._animationsModuleType=_}create(e){let i=this._createHostElement(),n=this._createPaneElement(i),r=this._createPortalOutlet(n),a=new G(e);return a.direction=a.direction||this._directionality.value,new vt(r,i,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${ge++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(It)),new X(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(ce),c(ee),c(N),c(_e),c(de),c(V),c(C),c(y),c(ht),c(Ft),c(fe),c(Dt,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),me=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ie=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=tt(q);return()=>o.scrollStrategies.reposition()}}),Jt=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(w(R))},t.\u0275dir=M({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let o=t;return o})(),Li=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,n,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this._disposeOnNavigation=!1,this._ngZone=tt(C),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new E,this.positionChange=new E,this.attach=new E,this.detach=new E,this.overlayKeydown=new E,this.overlayOutsideClick=new E,this._templatePortal=new T(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=me);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),r=Y(i);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new G({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Jt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Jt?this.origin.elementRef.nativeElement:this.origin instanceof R?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ot(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(w(q),w(z),w(I),w(ie),w(ht,8))},t.\u0275dir=M({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",x],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",x],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",x],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",x],push:[2,"cdkConnectedOverlayPush","push",x],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",x]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[st,et]});let o=t;return o})();function ve(o){return()=>o.scrollStrategies.reposition()}var ye={provide:ie,deps:[q],useFactory:ve},Vi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({providers:[q,ye],imports:[A,Nt,ft,ft]});let o=t;return o})();export{Re as a,lt as b,T as c,W as d,Te as e,Nt as f,Yt as g,ze as h,Z as i,Ne as j,Ht as k,Wt as l,Ye as m,dt as n,$ as o,Xt as p,ft as q,G as r,q as s,Jt as t,Li as u,Vi as v}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WZ76MJ7F.js b/frontend/server/modelsmith-build/browser/chunk-WZ76MJ7F.js new file mode 100644 index 00000000..794b2fb1 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-WZ76MJ7F.js @@ -0,0 +1 @@ +import{a as u}from"./chunk-FF67PNLR.js";import{a as g}from"./chunk-W3QFCG25.js";import"./chunk-7DL2PMFN.js";import"./chunk-OWLYOD4I.js";import"./chunk-VLJTKNYA.js";import"./chunk-MK5CNTNK.js";import"./chunk-F7URI57V.js";import"./chunk-OVEUDHWN.js";import"./chunk-JMFIGVCB.js";import"./chunk-OA3ZLQZZ.js";import{a as h}from"./chunk-PR3LNGVD.js";import"./chunk-ZTWJRPOH.js";import{b as N,c as z,g as U}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import"./chunk-XX6ZYDLH.js";import"./chunk-DFNZUJOD.js";import"./chunk-YPMBMI5J.js";import{a as x,b as J}from"./chunk-QTJZRTNN.js";import{a as k,b as D}from"./chunk-6VRVKV6C.js";import"./chunk-W4S57J6B.js";import"./chunk-OFW2ET2O.js";import{$ as l,Ea as m,Fa as f,Sa as a,_b as V,a as v,ab as s,ad as O,b as M,bb as p,cb as b,ce as Q,db as P,eb as E,gb as I,ha as F,ia as c,jb as T,je as B,lc as j,oe as L,p as w,pa as y,pc as A,pe as H,qa as S,qb as R,qe as K,rb as _,re as q,sb as G,ub as d,ue as $}from"./chunk-64NP6AY6.js";var Z=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=z,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(this)).subscribe(e=>{this.isScriptActive=N(e),N(e)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(U.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:e,model:i}=this.form.getRawValue(),{model:t}=i,r=M(v({},e),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(x.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f(J),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(Z,5),i&2){let r;_(r=G())&&(t.panelParametersComponent=r.first)}},decls:15,vars:5,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(i,t){if(i&1){let r=I();s(0,"p",1),d(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),P(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),E(),s(8,"div")(9,"button",7),T("click",function(){return y(r),S(t.submit())}),d(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(t.goToChartPage())}),d(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal"),p()()}i&2&&(m(2),a("formGroup",t.form),m(2),a("formGroup",t.form),m(),a("algorithmType",t.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",t.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",t.isScriptActive||t.form.invalid))},dependencies:[h,g,u,q,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([k()],C);var ee=[{path:"",component:C}],X=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(ee),A]});let n=e;return n})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,X,h,g,u,$,H,K]});let n=e;return n})();export{Fe as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-XX6ZYDLH.js b/frontend/server/modelsmith-build/browser/chunk-XX6ZYDLH.js new file mode 100644 index 00000000..d63666ab --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-XX6ZYDLH.js @@ -0,0 +1 @@ +function r(t){return(t===void 0||Object.prototype.toString.call(t)==="[object Object]")&&Object.keys(t||{}).length===0}function n(t){return t==null}function o(t){return t==null||t===""}function l(t){return Array.isArray(t)&&t.length===0}var c=t=>t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),s=()=>document.body.classList.add("cdk-global-scrollblock"),a=()=>document.body.classList.remove("cdk-global-scrollblock");export{r as a,n as b,o as c,l as d,c as e,s as f,a as g}; diff --git a/frontend/server/modelsmith-build/browser/chunk-YPMBMI5J.js b/frontend/server/modelsmith-build/browser/chunk-YPMBMI5J.js new file mode 100644 index 00000000..30c0b3ff --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-YPMBMI5J.js @@ -0,0 +1 @@ +import{$ as c,Bb as p,Fa as s,Hd as i,Ua as l,_b as f,aa as n,ha as o,ia as m,mb as u,nb as g}from"./chunk-64NP6AY6.js";var h=["*"];var v=new n("MAT_CARD_CONFIG"),E=(()=>{let t=class t{constructor(r){this.appearance=r?.appearance||"raised"}};t.\u0275fac=function(a){return new(a||t)(s(v,8))},t.\u0275cmp=o({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(a,d){a&2&&l("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[p],ngContentSelectors:h,decls:1,vars:0,template:function(a,d){a&1&&(u(),g(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color);border-color:var(--mdc-elevated-card-container-color);border-radius:var(--mdc-elevated-card-container-shape);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color);border-radius:var(--mdc-outlined-card-container-shape);border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});let e=t;return e})();var L=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=m({type:t}),t.\u0275inj=c({imports:[i,f,i]});let e=t;return e})();export{E as a,L as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-Z2AC4D6Z.js b/frontend/server/modelsmith-build/browser/chunk-Z2AC4D6Z.js new file mode 100644 index 00000000..5878acaf --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-Z2AC4D6Z.js @@ -0,0 +1,6 @@ +import{a as Si,b as xi,c as Ei,d as Ci,e as Di,f as _i,g as wi,h as Mi,i as yi,j as Oi,k as Ii,l as qi,m as O,n as Pi,o as I,p as M,q as ke}from"./chunk-UKDWQOGW.js";import{a as ci,b as di}from"./chunk-TP3SZI6Y.js";import{a as ii,b as ni,c as ai}from"./chunk-TYRSQJJL.js";import{a as pi,b as fi,c as vi,d as tt,e as it,f as gi,g as hi,h as bi}from"./chunk-3WHPNAWZ.js";import{a as Kt,b as Xt,c as Yt,d as Zt}from"./chunk-6NECGAK4.js";import{a as oi,b as li,c as mi,d as le}from"./chunk-2VRXO4PD.js";import{a as si,b as ui}from"./chunk-F7URI57V.js";import{i as Jt}from"./chunk-OVEUDHWN.js";import{a as ei,b as ti}from"./chunk-JMFIGVCB.js";import{a as h,b as Nt}from"./chunk-OA3ZLQZZ.js";import{a as qe,b as Pe,c as me,d as Te}from"./chunk-DFNZUJOD.js";import{a as oe,b as ri}from"./chunk-YPMBMI5J.js";import{c as Ti}from"./chunk-QTJZRTNN.js";import{a as Ot}from"./chunk-6VRVKV6C.js";import{c as Ut,e as Gt,f as $t,l as Qt}from"./chunk-W4S57J6B.js";import{a as Me,b as Wt,h as ye,i as jt,j as Ie,k as Ht}from"./chunk-OFW2ET2O.js";import{$ as K,$a as ee,Ab as Ue,Ac as Ze,Bb as he,Bc as Je,Bd as qt,Cb as ne,Db as _,Dd as Pt,Ea as u,Eb as pe,Fa as d,Ga as Ve,Hd as et,Ib as ae,J as P,Jd as ve,L as st,Lb as Ge,Ld as Tt,Md as kt,Na as St,Oa as H,Qa as x,R as ut,Ra as se,Rd as At,S as ct,Sa as c,T as ze,Ua as B,Wa as xt,Wb as $e,Xa as Et,Ya as F,Yd as Se,Z as dt,Za as Z,_ as pt,_a as J,_b as be,_d as V,ab as t,ad as y,bb as e,be as re,cb as a,ce as xe,da as ft,db as ue,de as Ft,ea as vt,eb as ce,fa as gt,fb as U,g as ot,gb as T,ge as Rt,ha as f,hb as We,he as Ee,ia as X,id as It,j as Le,ja as Y,jb as v,je as Ce,kc as Mt,lb as g,mb as je,mc as yt,me as De,nb as He,oe as _e,p as lt,pa as C,pb as de,pc as fe,pe as Lt,qa as D,qb as Ct,qe as zt,rb as te,re as w,sb as ie,sc as Qe,se as Bt,ta as ge,tb as E,tc as Ke,te as we,ub as i,uc as Xe,ue as Vt,vb as R,wb as k,wc as G,we as A,x as mt,xa as Be,xb as Dt,xc as $,xe as Oe,ya as ht,yb as _t,za as bt,zb as wt,zc as Ye}from"./chunk-64NP6AY6.js";function yn(o,n){if(o&1&&U(0,2),o&2){let s=g();c("ngTemplateOutlet",s.iconOverrides[s.state])("ngTemplateOutletContext",s._getIconContext())}}function On(o,n){if(o&1&&(t(0,"span",7),i(1),e()),o&2){let s=g(2);u(),R(s._getDefaultTextForState(s.state))}}function In(o,n){if(o&1&&(t(0,"span",8),i(1),e()),o&2){let s=g(3);u(),R(s._intl.completedLabel)}}function qn(o,n){if(o&1&&(t(0,"span",8),i(1),e()),o&2){let s=g(3);u(),R(s._intl.editableLabel)}}function Pn(o,n){if(o&1&&(x(0,In,2,1,"span",8)(1,qn,2,1,"span",8),t(2,"mat-icon",7),i(3),e()),o&2){let s=g(2);F(s.state==="done"?0:s.state==="edit"?1:-1),u(3),R(s._getDefaultTextForState(s.state))}}function Tn(o,n){if(o&1&&x(0,On,2,1,"span",7)(1,Pn,4,2,"mat-icon",7),o&2){let s,l=g();F((s=l.state)==="number"?0:1)}}function kn(o,n){o&1&&(t(0,"div",4),U(1,9),e()),o&2&&(u(),c("ngTemplateOutlet",n.template))}function An(o,n){if(o&1&&(t(0,"div",4),i(1),e()),o&2){let s=g();u(),R(s.label)}}function Nn(o,n){if(o&1&&(t(0,"div",5),i(1),e()),o&2){let s=g();u(),R(s._intl.optionalLabel)}}function Fn(o,n){if(o&1&&(t(0,"div",6),i(1),e()),o&2){let s=g();u(),R(s.errorMessage)}}var Ai=["*"];function Rn(o,n){}function Ln(o,n){if(o&1&&(He(0),x(1,Rn,0,0,"ng-template",0)),o&2){let s=g();u(),c("cdkPortalOutlet",s._portal)}}var Ni=(o,n)=>({step:o,i:n}),Fi=o=>({animationDuration:o}),Ri=(o,n)=>({value:o,params:n});function zn(o,n){o&1&&He(0)}function Bn(o,n){o&1&&a(0,"div",6)}function Vn(o,n){if(o&1&&(U(0,5),x(1,Bn,1,0,"div",6)),o&2){let s=n.$implicit,l=n.$index,r=n.$count;g(2);let m=E(4);c("ngTemplateOutlet",m)("ngTemplateOutletContext",pe(3,Ni,s,l)),u(),F(l!==r-1?1:-1)}}function Wn(o,n){if(o&1){let s=T();t(0,"div",7),v("@horizontalStepTransition.done",function(r){C(s);let m=g(2);return D(m._animationDone.next(r))}),U(1,8),e()}if(o&2){let s=n.$implicit,l=n.$index,r=g(2);B("mat-horizontal-stepper-content-inactive",r.selectedIndex!==l),c("@horizontalStepTransition",pe(8,Ri,r._getAnimationDirection(l),_(6,Fi,r._getAnimationDuration())))("id",r._getStepContentId(l)),se("aria-labelledby",r._getStepLabelId(l)),u(),c("ngTemplateOutlet",s.content)}}function jn(o,n){if(o&1&&(t(0,"div",1)(1,"div",2),J(2,Vn,2,6,null,null,Z),e(),t(4,"div",3),J(5,Wn,2,11,"div",4,Z),e()()),o&2){let s=g();u(2),ee(s.steps),u(3),ee(s.steps)}}function Hn(o,n){if(o&1){let s=T();t(0,"div",9),U(1,5),t(2,"div",10)(3,"div",11),v("@verticalStepTransition.done",function(r){C(s);let m=g(2);return D(m._animationDone.next(r))}),t(4,"div",12),U(5,8),e()()()()}if(o&2){let s=n.$implicit,l=n.$index,r=n.$count,m=g(2),p=E(4);u(),c("ngTemplateOutlet",p)("ngTemplateOutletContext",pe(10,Ni,s,l)),u(),B("mat-stepper-vertical-line",l!==r-1),u(),B("mat-vertical-stepper-content-inactive",m.selectedIndex!==l),c("@verticalStepTransition",pe(15,Ri,m._getAnimationDirection(l),_(13,Fi,m._getAnimationDuration())))("id",m._getStepContentId(l)),se("aria-labelledby",m._getStepLabelId(l)),u(2),c("ngTemplateOutlet",s.content)}}function Un(o,n){if(o&1&&J(0,Hn,6,18,"div",9,Z),o&2){let s=g();ee(s.steps)}}function Gn(o,n){if(o&1){let s=T();t(0,"mat-step-header",13),v("click",function(){let r=C(s).step;return D(r.select())})("keydown",function(r){C(s);let m=g();return D(m._onKeydown(r))}),e()}if(o&2){let s=n.step,l=n.i,r=g();B("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),c("tabIndex",r._getFocusIndex()===l?0:-1)("id",r._getStepLabelId(l))("index",l)("state",r._getIndicatorType(l,s.state))("label",s.stepLabel||s.label)("selected",r.selectedIndex===l)("active",r._stepIsNavigable(l,s))("optional",s.optional)("errorMessage",s.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(l,s))("color",s.color||r.color),se("aria-posinset",l+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(l))("aria-selected",r.selectedIndex==l)("aria-label",s.ariaLabel||null)("aria-labelledby",!s.ariaLabel&&s.ariaLabelledby?s.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(l,s)?null:!0)}}var nt=(()=>{let n=class n extends fi{};n.\u0275fac=(()=>{let l;return function(m){return(l||(l=ge(n)))(m||n)}})(),n.\u0275dir=Y({type:n,selectors:[["","matStepLabel",""]],standalone:!0,features:[H]});let o=n;return o})(),Ae=(()=>{let n=class n{constructor(){this.changes=new Le,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=pt({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();function $n(o){return o||new Ae}var Qn={provide:Ae,deps:[[new vt,new gt,Ae]],useFactory:$n},at=(()=>{let n=class n extends pi{constructor(l,r,m,p){super(m),this._intl=l,this._focusMonitor=r,this._intlSubscription=l.changes.subscribe(()=>p.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(l,r){l?this._focusMonitor.focusVia(this._elementRef,l,r):this._elementRef.nativeElement.focus(r)}_stringLabel(){return this.label instanceof nt?null:this.label}_templateLabel(){return this.label instanceof nt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(l){return l=="number"?`${this.index+1}`:l=="edit"?"create":l=="error"?"warning":l}};n.\u0275fac=function(r){return new(r||n)(d(Ae),d(qt),d(Be),d(Ge))},n.\u0275cmp=f({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(r,m){r&2&&xt("mat-"+(m.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[H,he],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(r,m){if(r&1&&(a(0,"div",0),t(1,"div")(2,"div",1),x(3,yn,1,2,"ng-container",2)(4,Tn,2,1),e()(),t(5,"div",3),x(6,kn,2,1,"div",4)(7,An,2,1,"div",4)(8,Nn,2,1,"div",5)(9,Fn,2,1,"div",6),e()),r&2){let p;c("matRippleTrigger",m._getHostElement())("matRippleDisabled",m.disableRipple),u(),Et("mat-step-icon-state-",m.state," mat-step-icon"),B("mat-step-icon-selected",m.selected),u(2),F(m.iconOverrides&&m.iconOverrides[m.state]?3:4),u(2),B("mat-step-label-active",m.active)("mat-step-label-selected",m.selected)("mat-step-label-error",m.state=="error"),u(),F((p=m._templateLabel())?6:m._stringLabel()?7:-1,p),u(2),F(m.optional&&m.state!="error"?8:-1),u(),F(m.state==="error"?9:-1)}},dependencies:[Tt,$e,A],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let o=n;return o})(),Li="500ms",zi="225ms",ki={horizontalStepTransition:Qe("horizontalStepTransition",[$("previous",G({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),$("current",G({transform:"none",visibility:"inherit"})),$("next",G({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Ye("* => *",Xe([Ke("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),Je("@*",Ze(),{optional:!0})]),{params:{animationDuration:Li}})]),verticalStepTransition:Qe("verticalStepTransition",[$("previous",G({height:"0px",visibility:"hidden"})),$("next",G({height:"0px",visibility:"hidden"})),$("current",G({height:"*",visibility:"inherit"})),Ye("* <=> current",Xe([Ke("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),Je("@*",Ze(),{optional:!0})]),{params:{animationDuration:zi}})])},Kn=(()=>{let n=class n{constructor(l){this.templateRef=l}};n.\u0275fac=function(r){return new(r||n)(d(Ve))},n.\u0275dir=Y({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let o=n;return o})(),Xn=(()=>{let n=class n{constructor(l){this._template=l}};n.\u0275fac=function(r){return new(r||n)(d(Ve))},n.\u0275dir=Y({type:n,selectors:[["ng-template","matStepContent",""]],standalone:!0});let o=n;return o})(),rt=(()=>{let n=class n extends tt{constructor(l,r,m,p){super(l,p),this._errorStateMatcher=r,this._viewContainerRef=m,this._isSelected=ot.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(ct(()=>this._stepper.selectionChange.pipe(mt(l=>l.selectedStep===this),ut(this._stepper.selected===this)))).subscribe(l=>{l&&this._lazyContent&&!this._portal&&(this._portal=new Ut(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(l,r){let m=this._errorStateMatcher.isErrorState(l,r),p=!!(l&&l.invalid&&this.interacted);return m||p}};n.\u0275fac=function(r){return new(r||n)(d(dt(()=>Ne)),d(ve,4),d(St),d(vi,8))},n.\u0275cmp=f({type:n,selectors:[["mat-step"]],contentQueries:function(r,m,p){if(r&1&&(de(p,nt,5),de(p,Xn,5)),r&2){let S;te(S=ie())&&(m.stepLabel=S.first),te(S=ie())&&(m._lazyContent=S.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[Ue([{provide:ve,useExisting:n},{provide:tt,useExisting:n}]),H,he],ngContentSelectors:Ai,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,m){r&1&&(je(),x(0,Ln,2,1,"ng-template"))},dependencies:[Gt],encapsulation:2,changeDetection:0});let o=n;return o})(),Ne=(()=>{let n=class n extends it{get animationDuration(){return this._animationDuration}set animationDuration(l){this._animationDuration=/^\d+$/.test(l)?l+"ms":l}constructor(l,r,m){super(l,r,m),this._stepHeader=void 0,this._steps=void 0,this.steps=new bt,this.animationDone=new ht,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Le,this._animationDuration="",this._isServer=!ft(It).isBrowser;let p=m.nativeElement.nodeName.toLowerCase();this.orientation=p==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:l,templateRef:r})=>this._iconOverrides[l]=r),this.steps.changes.pipe(ze(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(st((l,r)=>l.fromState===r.fromState&&l.toState===r.toState),ze(this._destroyed)).subscribe(l=>{l.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(l,r){return r.completed||this.selectedIndex===l||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Li:zi}};n.\u0275fac=function(r){return new(r||n)(d(Pt,8),d(Ge),d(Be))},n.\u0275cmp=f({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,m,p){if(r&1&&(de(p,rt,5),de(p,Kn,5)),r&2){let S;te(S=ie())&&(m._steps=S),te(S=ie())&&(m._icons=S)}},viewQuery:function(r,m){if(r&1&&Ct(at,5),r&2){let p;te(p=ie())&&(m._stepHeader=p)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,m){r&2&&(se("aria-orientation",m.orientation),B("mat-stepper-horizontal",m.orientation==="horizontal")("mat-stepper-vertical",m.orientation==="vertical")("mat-stepper-label-position-end",m.orientation==="horizontal"&&m.labelPosition=="end")("mat-stepper-label-position-bottom",m.orientation==="horizontal"&&m.labelPosition=="bottom")("mat-stepper-header-position-bottom",m.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[Ue([{provide:it,useExisting:n}]),H,he],ngContentSelectors:Ai,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(r,m){if(r&1&&(je(),x(0,zn,1,0)(1,jn,7,0,"div",1)(2,Un,2,0)(3,Gn,1,23,"ng-template",null,0,ae)),r&2){let p;F(m._isServer?0:-1),u(),F((p=m.orientation)==="horizontal"?1:p==="vertical"?2:-1)}},dependencies:[$e,at],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[ki.horizontalStepTransition,ki.verticalStepTransition]},changeDetection:0});let o=n;return o})(),Bi=(()=>{let n=class n extends gi{};n.\u0275fac=(()=>{let l;return function(m){return(l||(l=ge(n)))(m||n)}})(),n.\u0275dir=Y({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,m){r&2&&We("type",m.type)},standalone:!0,features:[H]});let o=n;return o})(),Vi=(()=>{let n=class n extends hi{};n.\u0275fac=(()=>{let l;return function(m){return(l||(l=ge(n)))(m||n)}})(),n.\u0275dir=Y({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,m){r&2&&We("type",m.type)},standalone:!0,features:[H]});let o=n;return o})(),Wi=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Qn,ve],imports:[et,be,$t,bi,Oe,kt,Ne,at,et]});let o=n;return o})();var ji=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-buttons-demo"]],decls:220,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-6"],["mat-button",""],["mat-button","","color","primary"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","disabled",""],["mat-button","","href","https://www.google.com/","target","_blank"],["mat-raised-button",""],["mat-raised-button","","color","primary"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","warn"],["mat-raised-button","","disabled","","color","accent"],["mat-raised-button","","href","https://www.google.com/","target","_blank"],[1,"parent","items-per-row-7"],["mat-stroked-button",""],["mat-stroked-button","",1,"ms-white-stroked-button"],["mat-stroked-button","","color","primary"],["mat-stroked-button","","color","accent"],["mat-stroked-button","","color","warn"],["mat-stroked-button","","disabled","","color","accent"],["mat-stroked-button","","href","https://www.google.com/","target","_blank"],["mat-flat-button",""],["mat-flat-button","","color","primary"],["mat-flat-button","","color","accent"],["mat-flat-button","","color","warn"],["mat-flat-button","","disabled","","color","primary"],["mat-flat-button","","href","https://www.google.com/","target","_blank"],[2,"grid-column","span 2"],["mat-icon-button",""],["mat-icon-button","","color","primary"],["mat-icon-button","","color","accent"],["mat-icon-button","","color","warn"],["mat-icon-button","","disabled","","color","accent"],[1,"parent","items-per-row-5"],["checked",""],["color","primary","checked",""],["color","accent","checked",""],["color","warn","checked",""],["disabled",""]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Default"),e(),t(7,"div",2)(8,"div"),i(9,"Basic"),e(),t(10,"div"),i(11,"Primary"),e(),t(12,"div"),i(13,"Accent"),e(),t(14,"div"),i(15,"Warn"),e(),t(16,"div"),i(17,"Disabled"),e(),t(18,"div"),i(19,"Link"),e(),t(20,"div")(21,"button",3),i(22,"Lorem Ipsum"),e()(),t(23,"div")(24,"button",4),i(25,"Lorem Ipsum"),e()(),t(26,"div")(27,"button",5),i(28,"Lorem Ipsum"),e()(),t(29,"div")(30,"button",6),i(31,"Lorem Ipsum"),e()(),t(32,"div")(33,"button",7),i(34,"Lorem Ipsum"),e()(),t(35,"div")(36,"a",8),i(37,"Link"),e()()(),t(38,"div",0),a(39,"mat-divider"),e()(),t(40,"div",1)(41,"h2"),i(42,"Raised buttons"),e(),t(43,"div",2)(44,"div"),i(45,"Basic"),e(),t(46,"div"),i(47,"Primary"),e(),t(48,"div"),i(49,"Accent"),e(),t(50,"div"),i(51,"Warn"),e(),t(52,"div"),i(53,"Disabled"),e(),t(54,"div"),i(55,"Link"),e(),t(56,"div")(57,"button",9),i(58,"Lorem Ipsum"),e()(),t(59,"div")(60,"button",10),i(61,"Lorem Ipsum"),e()(),t(62,"div")(63,"button",11),i(64,"Lorem Ipsum"),e()(),t(65,"div")(66,"button",12),i(67,"Lorem Ipsum"),e()(),t(68,"div")(69,"button",13),i(70,"Lorem Ipsum"),e()(),t(71,"div")(72,"a",14),i(73,"Link"),e()()(),t(74,"div",0),a(75,"mat-divider"),e()(),t(76,"div",1)(77,"h2"),i(78,"Stroked buttons"),e(),t(79,"div",15)(80,"div"),i(81,"Basic"),e(),t(82,"div"),i(83,"Basic White"),e(),t(84,"div"),i(85,"Primary"),e(),t(86,"div"),i(87,"Accent"),e(),t(88,"div"),i(89,"Warn"),e(),t(90,"div"),i(91,"Disabled"),e(),t(92,"div"),i(93,"Link"),e(),t(94,"div")(95,"button",16),i(96,"Lorem Ipsum"),e()(),t(97,"div")(98,"button",17),i(99,"Lorem Ipsum"),e()(),t(100,"div")(101,"button",18),i(102,"Lorem Ipsum"),e()(),t(103,"div")(104,"button",19),i(105,"Lorem Ipsum"),e()(),t(106,"div")(107,"button",20),i(108,"Lorem Ipsum"),e()(),t(109,"div")(110,"button",21),i(111,"Lorem Ipsum"),e()(),t(112,"div")(113,"a",22),i(114,"Link"),e()()(),t(115,"div",0),a(116,"mat-divider"),e()(),t(117,"div",1)(118,"h2"),i(119,"Flat buttons"),e(),t(120,"div",2)(121,"div"),i(122,"Basic"),e(),t(123,"div"),i(124,"Primary"),e(),t(125,"div"),i(126,"Accent"),e(),t(127,"div"),i(128,"Warn"),e(),t(129,"div"),i(130,"Disabled"),e(),t(131,"div"),i(132,"Link"),e(),t(133,"div")(134,"button",23),i(135,"Lorem Ipsum"),e()(),t(136,"div")(137,"button",24),i(138,"Lorem Ipsum"),e()(),t(139,"div")(140,"button",25),i(141,"Lorem Ipsum"),e()(),t(142,"div")(143,"button",26),i(144,"Lorem Ipsum"),e()(),t(145,"div")(146,"button",27),i(147,"Lorem Ipsum"),e()(),t(148,"div")(149,"a",28),i(150,"Link"),e()()(),t(151,"div",0),a(152,"mat-divider"),e()(),t(153,"div",1)(154,"h2"),i(155,"Icon buttons"),e(),t(156,"div",2)(157,"div"),i(158,"Basic"),e(),t(159,"div"),i(160,"Primary"),e(),t(161,"div"),i(162,"Accent"),e(),t(163,"div"),i(164,"Warn"),e(),t(165,"div",29),i(166,"Disabled"),e(),t(167,"div")(168,"button",30)(169,"mat-icon"),i(170,"more_vert"),e()()(),t(171,"div")(172,"button",31)(173,"mat-icon"),i(174,"home"),e()()(),t(175,"div")(176,"button",32)(177,"mat-icon"),i(178,"menu"),e()()(),t(179,"div")(180,"button",33)(181,"mat-icon"),i(182,"favorite"),e()()(),t(183,"div",29)(184,"button",34)(185,"mat-icon"),i(186,"open_in_new"),e()()()(),t(187,"div",0),a(188,"mat-divider"),e()(),t(189,"div",1)(190,"h2"),i(191,"Slide toggle buttons"),e(),t(192,"div",35)(193,"div"),i(194,"Basic"),e(),t(195,"div"),i(196,"Primary"),e(),t(197,"div"),i(198,"Accent"),e(),t(199,"div"),i(200,"Warn"),e(),t(201,"div"),i(202,"Disabled"),e(),t(203,"div")(204,"mat-slide-toggle",36),i(205,"Slide me!"),e()(),t(206,"div")(207,"mat-slide-toggle",37),i(208,"Slide me!"),e()(),t(209,"div")(210,"mat-slide-toggle",38),i(211,"Slide me!"),e()(),t(212,"div")(213,"mat-slide-toggle",39),i(214,"Slide me!"),e()(),t(215,"div")(216,"mat-slide-toggle",40),i(217,"Slide me!"),e()()()(),t(218,"div",0),a(219,"mat-divider"),e())},dependencies:[A,h,Bt,w,we,ci],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var Jn=()=>["Option 1","Option 2","Option 3"],Ui=(()=>{let n=class n{constructor(){}ngOnInit(){}handleSelected(l){console.log("Selected option:",l)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ag-cards-demo"]],decls:39,vars:2,consts:[[1,"line"],[1,"section"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key","paragraph-semibold-p4-xSmall-emphasis"],[1,"key-value-value","paragraph-regular-p4-xSmall"],[3,"selectedOption","options"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"h2"),i(5,"Basic cards"),e(),t(6,"div",1)(7,"mat-card",2)(8,"p",3),i(9,"Card with text"),e(),t(10,"p"),i(11," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et cursus eros, a ultricies massa. Morbi commodo sapien magna, vitae facilisis erat blandit ac. Praesent vulputate nulla quis nibh consectetur euismod. Nulla justo dolor, molestie vitae ultricies id, malesuada id tortor. Ut rutrum nisi enim. Pellentesque sed blandit tortor, id fringilla turpis. In vel arcu nec urna dictum mollis ac sed sem. Integer orci eros, hendrerit a dui nec, auctor mattis mi. Curabitur quis tempor ex. "),e()()(),a(12,"br"),t(13,"div",1)(14,"mat-card",2)(15,"p",3),i(16,"Key Value Card"),e(),t(17,"div",4)(18,"div",5)(19,"div",6),i(20,"Key 1"),e(),t(21,"div",7),i(22,"Value 1"),e()(),a(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),a(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),a(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),v("selectedOption",function(S){return m.handleSelected(S)}),e()),r&2&&(u(38),c("options",ne(1,Jn)))},dependencies:[le,h,oe],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let o=n;return o})();function ea(o,n){if(o&1){let s=T();t(0,"li")(1,"mat-checkbox",5),wt("ngModelChange",function(r){let m=C(s).$implicit;return _t(m.completed,r)||(m.completed=r),D(r)}),v("ngModelChange",function(){C(s);let r=g();return D(r.updateAllComplete())}),i(2),e()()}if(o&2){let s=n.$implicit;u(),Dt("ngModel",s.completed),c("color",s.color),u(),k(" ",s.name," ")}}var $i=(()=>{let n=class n{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(l=>l.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(l=>l.completed).length>0&&!this.allComplete}setAll(l){this.allComplete=l,this.task.subtasks!=null&&this.task.subtasks.forEach(r=>r.completed=l)}constructor(){this.task={name:"Indeterminate",completed:!1,color:"primary",subtasks:[{name:"Primary",completed:!1,color:"primary"},{name:"Accent",completed:!1,color:"accent"},{name:"Warn",completed:!1,color:"warn"}]},this.allComplete=!1}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-checkboxes-demo"]],decls:18,vars:5,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[3,"ngModelChange","ngModel","color"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"section")(6,"mat-checkbox"),i(7,"Check me!"),e(),t(8,"mat-checkbox",2),i(9,"Disabled"),e()(),t(10,"section")(11,"span")(12,"mat-checkbox",3),v("change",function(S){return m.setAll(S.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),J(16,ea,3,3,"li",null,Z),e()()()()),r&2&&(u(8),c("disabled",!0),u(4),c("checked",m.allComplete)("color",m.task.color)("indeterminate",m.someComplete()),u(),k(" ",m.task.name," "),u(3),ee(m.task.subtasks))},dependencies:[h,re,Rt,oe,ei],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let o=n;return o})();var Qi=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-chips-demo"]],decls:17,vars:0,consts:[[1,"line"],[1,"section"],[1,"ms-chip"],["color","primary",1,"ms-chip"],["color","accent",1,"ms-chip"],["color","warn",1,"ms-chip"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Basic Chips"),e(),t(7,"div")(8,"mat-chip-set")(9,"mat-chip",2),i(10," Default "),e(),t(11,"mat-chip",3),i(12," Primary "),e(),t(13,"mat-chip",4),i(14," Accent "),e(),t(15,"mat-chip",5),i(16," Warn "),e()()()())},dependencies:[h,oi,li],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}.mat-standard-chip[_ngcontent-%COMP%]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px} .mat-chip-list-wrapper .mat-chip.mat-standard-chip{margin:4px}.example-box.cdk-drag-animating[_ngcontent-%COMP%], .example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-chip-list[_ngcontent-%COMP%]{width:100%}mat-chip[_ngcontent-%COMP%]{max-width:200px}"]});let o=n;return o})();var q=o=>[o],Ki=(()=>{let n=class n{constructor(){this.RoutesList=y}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-demo"]],decls:33,vars:42,consts:[[1,"main-container"],[1,"content","routes"],["vertical","true"],[3,"routerLink"],["mat-raised-button","","color","primary",1,"mt-2",3,"routerLink"],[1,"content"]],template:function(r,m){r&1&&(t(0,"div",0)(1,"div",1)(2,"mat-button-toggle-group",2)(3,"mat-button-toggle",3),i(4," Buttons "),e(),t(5,"mat-button-toggle",3),i(6," Typograpghy "),e(),t(7,"mat-button-toggle",3),i(8," Form Fields "),e(),t(9,"mat-button-toggle",3),i(10," Checkboxes "),e(),t(11,"mat-button-toggle",3),i(12," Menu "),e(),t(13,"mat-button-toggle",3),i(14," Tables "),e(),t(15,"mat-button-toggle",3),i(16," Icons "),e(),t(17,"mat-button-toggle",3),i(18," Cards "),e(),t(19,"mat-button-toggle",3),i(20," Chips "),e(),t(21,"mat-button-toggle",3),i(22," Notifications "),e(),t(23,"mat-button-toggle",3),i(24," Wizard "),e(),t(25,"mat-button-toggle",3),i(26," Drawer "),e(),t(27,"mat-button-toggle",3),i(28," Dialog "),e()(),t(29,"button",4),i(30," Back to login "),e()(),t(31,"div",5),a(32,"router-outlet"),e()()),r&2&&(u(3),c("routerLink",_(14,q,m.RoutesList.DEMO)),u(2),c("routerLink",_(16,q,m.RoutesList.DEMO.TYPOGRAPHY)),u(2),c("routerLink",_(18,q,m.RoutesList.DEMO.FORM_FIELDS)),u(2),c("routerLink",_(20,q,m.RoutesList.DEMO.CHECKBOXES)),u(2),c("routerLink",_(22,q,m.RoutesList.DEMO.MENU)),u(2),c("routerLink",_(24,q,m.RoutesList.DEMO.TABLE)),u(2),c("routerLink",_(26,q,m.RoutesList.DEMO.ICONS)),u(2),c("routerLink",_(28,q,m.RoutesList.DEMO.CARDS)),u(2),c("routerLink",_(30,q,m.RoutesList.DEMO.CHIPS)),u(2),c("routerLink",_(32,q,m.RoutesList.DEMO.NOTIFICATIONS)),u(2),c("routerLink",_(34,q,m.RoutesList.DEMO.WIZARD)),u(2),c("routerLink",_(36,q,m.RoutesList.DEMO.DRAWER)),u(2),c("routerLink",_(38,q,m.RoutesList.DEMO.DIALOG)),u(2),c("routerLink",_(40,q,"/"+m.RoutesList.AUTH.ROOT)))},dependencies:[Mt,yt,w,ii,ni],styles:[".main-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr)}.main-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;align-self:flex-start;grid-column:span 11;padding:14px 20px 0;width:90%}.main-container[_ngcontent-%COMP%] .routes[_ngcontent-%COMP%]{grid-column:span 1}.mat-button-toggle[_ngcontent-%COMP%]{display:flex;height:40px}"],changeDetection:0});let o=n;return o})();var Yi=(()=>{let n=class n{constructor(l,r){this.dialogRef=l,this.dialogConfig=r}};n.\u0275fac=function(r){return new(r||n)(d(Pe),d(qe))},n.\u0275cmp=f({type:n,selectors:[["ms-dialog-basic-demo"]],decls:2,vars:0,template:function(r,m){r&1&&(t(0,"ms-dialog"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. +`),e())},dependencies:[me]});let o=n;return o})();var Zi=(()=>{let n=class n{constructor(l,r){this.dialogRef=l,this.dialogConfig=r}};n.\u0275fac=function(r){return new(r||n)(d(Pe),d(qe))},n.\u0275cmp=f({type:n,selectors:[["ms-dialog-custom-size"]],decls:2,vars:0,template:function(r,m){r&1&&(t(0,"ms-dialog"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. +`),e())},dependencies:[me]});let o=n;return o})();var Ji=(()=>{let n=class n{constructor(l){this.dialogService=l}ngOnInit(){}openBasicDialog(){this.dialogService.open(Yi,{title:"Lorem Ipsum"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Dialog closed!")})}openCustomSizeDialog(){this.dialogService.open(Zi,{title:"Lorem Ipsum",width:"40vw",height:"50vh"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Dialog with custom width closed!")})}};n.\u0275fac=function(r){return new(r||n)(d(Te))},n.\u0275cmp=f({type:n,selectors:[["ms-dialog-demo"]],decls:70,vars:0,consts:[[1,"section"],[1,"parent","items-per-row-5"],["mat-raised-button","",3,"click"],[1,"line"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Dialog"),e(),t(2,"div")(3,"h2"),i(4,"Description:"),e(),t(5,"p"),i(6,"Dialog panel it's opened using the dialog service. (ex. this.dialogService.open(COMPONENT, customData)"),e(),t(7,"p"),i(8," Those are the custom data available for "),t(9,"b"),i(10,"dialog config:"),e(),a(11,"br"),t(12,"b"),i(13,"data?: any;"),e(),i(14," | Custom data that you would need to add from outside inside the dialog. "),a(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),a(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),a(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),a(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),a(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),a(35,"br"),t(36,"b"),i(37,"width?: DialogCSSSize;"),e(),i(38," | Option to configure the width in 'px', 'vw' | 'vh', 'em', 'rem' of the dialog."),a(39,"br"),t(40,"b"),i(41,"height?: DialogCSSSize;"),e(),i(42," | Option to configure the height 'px', 'vw', 'vh', 'em', 'rem' of the dialog."),a(43,"br"),e(),t(44,"p"),i(45," On each dialog action an event it's emitted: If you click on the X icon, the event emitted it's DialogStatus.CLOSE, if you click on save the event emitted is DialogStatus.SAVE, if you click on dismiss the event it's DialogStatus.DISMISS. By using this action on the actionEvent output event emitter, you can bind your function and listen to events for your custom functionality. "),e(),t(46,"p"),i(47,' Additionaly, you can change the templates of the header and footer and provide a totally custom implementation as you would need it. Check the "alternative templates" examples '),e()(),t(48,"div",0)(49,"h2"),i(50,"Basic Dialogs"),e(),t(51,"div",1)(52,"div"),i(53,"Open basic dialog with fixed size"),e(),t(54,"div"),i(55,"Open basic dialog with custom size with resizable units (vw, vh)"),e(),a(56,"div")(57,"div")(58,"div"),t(59,"div")(60,"button",2),v("click",function(){return m.openBasicDialog()}),i(61,"Open Dialog"),e()(),t(62,"div")(63,"button",2),v("click",function(){return m.openCustomSizeDialog()}),i(64,"Open Custom Size Dialog"),e()(),a(65,"div")(66,"div")(67,"div"),e(),t(68,"div",3),a(69,"mat-divider"),e()())},dependencies:[h,w],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var en=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerConfig=r}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(r,m){r&1&&(t(0,"ms-drawer"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. +`),e())},dependencies:[M],changeDetection:0});let o=n;return o})();function ia(o,n){if(o&1){let s=T();t(0,"div",2)(1,"button",3),v("click",function(){C(s);let r=g();return D(r.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),v("click",function(){C(s);let r=g();return D(r.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),v("click",function(){C(s);let r=g();return D(r.onDismiss())}),i(6,"Button 3"),e()()}}var tn=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerConfig=r}ngOnInit(){}onDismiss(){this.drawerRef.close()}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-alternative-actions-template"]],decls:4,vars:1,consts:[["alternativeActions",""],[3,"actionsTemplate"],[1,"buttons-wrapper"],["mat-raised-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(r,m){if(r&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. +`),e(),x(2,ia,7,0,"ng-template",null,0,ae)),r&2){let p=E(3);c("actionsTemplate",p)}},dependencies:[M,w],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let o=n;return o})();function na(o,n){if(o&1){let s=T();t(0,"div",2)(1,"div",3)(2,"button",4),v("click",function(){C(s);let r=g();return D(r.close())}),a(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var nn=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerConfig=r}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-alternative-header-template"]],decls:4,vars:1,consts:[["alternativeHeader",""],[3,"headerTemplate"],[1,"header-wrapper"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontIcon","icon-close-one"],[2,"color","red"]],template:function(r,m){if(r&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. +`),e(),x(2,na,6,0,"ng-template",null,0,ae)),r&2){let p=E(3);c("headerTemplate",p)}},dependencies:[M,A,we],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let o=n;return o})();var an=(()=>{let n=class n{constructor(l,r,m){this.drawerRef=l,this.drawerConfig=r,this.fb=m}ngOnInit(){this.form=this.fb.group({name:["",[V.required]],address:["",[V.required]]})}save(l){l===Pi.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:l})}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O),d(_e))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-buttons-actions"]],decls:12,vars:2,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["agErrorDisplay","","matInput","","placeholder","Name","formControlName","name"],["agErrorDisplay","","matInput","","placeholder","Address","formControlName","address"]],template:function(r,m){r&1&&(t(0,"ms-drawer",0),v("actionEvent",function(S){return m.save(S)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),a(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),a(11,"input",5),e()()()()),r&2&&(c("isSaveDisabled",m.form.invalid),u(),c("formGroup",m.form))},dependencies:[M,Ee,Se,re,xe,Ce,De,ye,Me,Ie]});let o=n;return o})();var rn=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerConfig=r}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(r,m){r&1&&a(0,"ms-drawer")},dependencies:[M]});let o=n;return o})();var on=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerConfig=r,this.isSaveDisabled=!0}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,m){r&1&&(t(0,"ms-drawer",0)(1,"button",1),v("click",function(){return m.isSaveDisabled=!m.isSaveDisabled}),i(2),e()()),r&2&&(c("isSaveDisabled",m.isSaveDisabled),u(2),k(" Click here to ",m.isSaveDisabled?"enable":"disable"," button "))},dependencies:[M,w]});let o=n;return o})();var ln=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerData=r}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(r,m){r&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),r&2&&(u(2),k("Field 1: ",m.drawerData.data.field1,""),u(2),k("Field 2: ",m.drawerData.data.field2,""))},dependencies:[M],changeDetection:0});let o=n;return o})();var mn=(()=>{let n=class n{constructor(l,r){this.drawerRef=l,this.drawerData=r}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)(d(I),d(O))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(r,m){r&1&&a(0,"ms-drawer")},dependencies:[M],changeDetection:0});let o=n;return o})();var sn=(()=>{let n=class n{constructor(l){this.drawerService=l}ngOnInit(){}openDrawer(){this.drawerService.open(en,{title:"Lorem Ipsum"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let l={field1:"value1",field2:"value2"};this.drawerService.open(ln,{title:"Drawer with injected data",data:l}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(nn).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(mn,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(tn,{title:"Alternative Footer"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(on,{title:"Disabled buttons"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(an,{title:"Buttons Actions"}).afterClosed().pipe(P(1)).subscribe(r=>{alert(`Clicked on ${r.status}, name = ${r.result.name}, address = ${r.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(rn,{title:"Drawer With Customizable Width",width:"20vw"}).afterClosed().pipe(P(1)).subscribe(()=>{console.log("Drawer closed!")})}};n.\u0275fac=function(r){return new(r||n)(d(ke))},n.\u0275cmp=f({type:n,selectors:[["ms-drawer-demo"]],decls:116,vars:0,consts:[[1,"section"],[1,"parent","items-per-row-5"],["mat-raised-button","",3,"click"],[1,"line"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Drawer"),e(),t(2,"div",0)(3,"h2"),i(4,"Description:"),e(),t(5,"p"),i(6,"Drawer Dialog it's opened using the drawer service. (ex. this.drawerService.open(COMPONENT, customData)"),e(),t(7,"p"),i(8," Those are the custom data available for "),t(9,"b"),i(10,"drawer config:"),e(),a(11,"br"),t(12,"b"),i(13,"data?: any;"),e(),i(14," | Custom data that you would need to add from outside inside the dialog. "),a(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),a(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),a(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),a(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),a(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),a(35,"br"),t(36,"b"),i(37,"width?: DrawerCSSSize;"),e(),i(38," | Option to configure the width in 'px', 'vw' | 'vh', 'em', 'rem' of the dialog."),a(39,"br"),e(),t(40,"p"),i(41," On each drawer action an event it's emitted: If you click on the X icon, the event emitted it's DrawerStatus.CLOSE, if you click on save the event emitted is DrawerStatus.SAVE, if you click on dismiss the event it's DrawerStatus.DISMISS. By using this action on the actionEvent output event emitter, you can bind your function and listen to events for your custom functionality. "),e(),t(42,"p"),i(43,' Additionaly, you can change the templates of the header and footer and provide a totally custom implementation as you would need it. Check the "alternative templates" examples '),e()(),t(44,"div",0)(45,"h2"),i(46,"Basic Drawers"),e(),t(47,"div",1)(48,"div"),i(49,"Open simple drawer"),e(),t(50,"div"),i(51,"Open Drawer with Injected Data"),e(),t(52,"div"),i(53,"Open Drawer with Only One Button"),e(),t(54,"div"),i(55,"Open Drawer with Disabled Buttons"),e(),t(56,"div"),i(57,"Open Drawer with Customizable Width"),e(),t(58,"div")(59,"button",2),v("click",function(){return m.openDrawer()}),i(60,"Open Drawer"),e()(),t(61,"div")(62,"button",2),v("click",function(){return m.openDrawerWithInjectedData()}),i(63,"Open Drawer"),e()(),t(64,"div")(65,"button",2),v("click",function(){return m.openDrawerWithOnlyOneButton()}),i(66,"Open Drawer"),e()(),t(67,"div")(68,"button",2),v("click",function(){return m.openDrawerWithDisabledButtons()}),i(69,"Open Drawer"),e()(),t(70,"div")(71,"button",2),v("click",function(){return m.openDrawerWithCustomizableWidth()}),i(72,"Open Drawer"),e()()(),t(73,"div",3),a(74,"mat-divider"),e()(),t(75,"div",0)(76,"h2"),i(77,"Alternative templates examples"),e(),t(78,"div",1)(79,"div"),i(80,"Open Drawer with Alternative Header Template"),e(),t(81,"div"),i(82,"Open Drawer with Alternative Actions Template"),e(),a(83,"div")(84,"div")(85,"div"),t(86,"div")(87,"button",2),v("click",function(){return m.openDrawerWithAlternativeHeader()}),i(88,"Open Drawer"),e()(),t(89,"div")(90,"button",2),v("click",function(){return m.openDrawerWithAlternativeActions()}),i(91,"Open Drawer"),e()(),a(92,"div")(93,"div")(94,"div"),e(),t(95,"div",3),a(96,"mat-divider"),e()(),t(97,"div",0)(98,"h2"),i(99,"Drawers With Buttons Actions Check"),e(),t(100,"div",1)(101,"div"),i(102,"Open Drawer with Buttons Actions"),e(),a(103,"div")(104,"div")(105,"div")(106,"div"),t(107,"div")(108,"button",2),v("click",function(){return m.openDrawerWithButtonsActions()}),i(109,"Open Drawer"),e()(),a(110,"div")(111,"div")(112,"div")(113,"div"),e(),t(114,"div",3),a(115,"mat-divider"),e()())},dependencies:[h,w],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var z,Re=(z=class{constructor(n){this.fb=n,this.form=new Ft({})}ngOnInit(){this.form=this.fb.group({default:[null],searchBar:[null],prefilled:["Lorem Ipsum"],disabled:[{value:null,disabled:!0}],prefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],error:[null,[V.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[V.required]],required:[null,[V.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[V.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},z.\u0275fac=function(s){return new(s||z)(d(_e))},z.\u0275cmp=f({type:z,selectors:[["ms-form-fields-demo"]],decls:255,vars:1,consts:[[1,"line"],[3,"formGroup"],[1,"section"],[1,"parent","items-per-row-5"],[1,"form-field-container"],["msErrorDisplay","","matInput","","formControlName","default"],[1,"form-field-container","ms-white-form-field"],["msErrorDisplay","","matInput","","formControlName","prefilled"],["msErrorDisplay","","matInput","","formControlName","disabled"],["msErrorDisplay","","matInput","","formControlName","prefilledDisabled"],["msErrorDisplay","","matInput","","formControlName","error"],["appearance","outline"],["matInput","","msErrorDisplay","","placeholder","Default","formControlName","default"],["matInput","","msErrorDisplay","","placeholder","Prefilled","formControlName","prefilled"],["matInput","","msErrorDisplay","","placeholder","Disabled","formControlName","disabled"],["matInput","","msErrorDisplay","","placeholder","Prefilled and Disabled","formControlName","prefilledDisabled"],["matInput","","placeholder","Error","formControlName","error"],["appearance","fill","floatLabel","always"],["appearance","outline","floatLabel","auto"],["floatLabel","always"],["msErrorDisplay","","matInput","","formControlName","required"],["rows","4","matInput","","formControlName","textarea","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilledAndDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaError","msErrorDisplay",""],["formControlName","dropdown","placeholder","Select a value"],["value","option1"],["value","option2"],["value","option3"],["value","option4"],["value","option5"],["formControlName","dropdownPreselected","placeholder","Select a value"],["formControlName","dropdownDisabled","placeholder","Select a value"],["formControlName","dropdownPreselectedAndDisabled"],[1,"parent","items-per-row-6"],["matInput","","msPasswordToggle","","msErrorDisplay","","placeholder","Default","formControlName","default"]],template:function(s,l){s&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"form",1)(5,"div",2)(6,"div",2)(7,"h2"),i(8,"Default"),e(),t(9,"div",3)(10,"div",4)(11,"mat-label"),i(12," Default "),e(),t(13,"mat-form-field"),a(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),a(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),a(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),a(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),a(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),a(39,"input",10),e()()(),t(40,"div",0),a(41,"mat-divider"),e()(),t(42,"h2"),i(43,"Appearance Outline"),e(),t(44,"div",3)(45,"div",4)(46,"mat-form-field",11)(47,"mat-label"),i(48,"Default"),e(),a(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),a(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),a(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),a(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),a(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),a(73,"mat-divider"),e()(),t(74,"div",2)(75,"h2"),i(76,"Appearance Fill & Float Label"),e(),t(77,"div",3)(78,"div",4)(79,"mat-form-field",17)(80,"mat-label"),i(81," Default "),e(),a(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),a(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),a(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),a(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),a(102,"input",10),e()()(),t(103,"div",0),a(104,"mat-divider"),e()(),t(105,"div",2)(106,"h2"),i(107,"Appearance Outline & Label Auto"),e(),t(108,"div",3)(109,"div",4)(110,"mat-form-field",18)(111,"mat-label"),i(112," Default "),e(),a(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),a(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),a(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),a(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),a(133,"input",10),e()()(),t(134,"div",0),a(135,"mat-divider"),e()(),t(136,"div",2)(137,"h2"),i(138,"Inputs with Validators"),e(),t(139,"div",3)(140,"div",4)(141,"mat-form-field",19)(142,"mat-label"),i(143,"Required "),e(),a(144,"input",20),e()(),a(145,"div")(146,"div"),e(),t(147,"div",0),a(148,"mat-divider"),e()(),t(149,"div",2)(150,"h2"),i(151,"Textarea"),e(),t(152,"div",3)(153,"div",4)(154,"mat-form-field",19)(155,"mat-label"),i(156,"Default prefilled"),e(),a(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),a(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),a(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),a(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),a(177,"textarea",25),e()()(),t(178,"div",0),a(179,"mat-divider"),e()(),t(180,"div",2)(181,"h2"),i(182,"Dropdowns"),e(),t(183,"div",3)(184,"div",4)(185,"mat-label"),i(186," Default"),e(),t(187,"mat-form-field",11)(188,"mat-select",26)(189,"mat-option",27),i(190,"Option 1"),e(),t(191,"mat-option",28),i(192,"Option 2"),e(),t(193,"mat-option",29),i(194,"Option 3"),e(),t(195,"mat-option",30),i(196,"Option 4"),e(),t(197,"mat-option",31),i(198,"Option 5"),e()()()(),t(199,"div",4)(200,"mat-label"),i(201," Preselected "),e(),t(202,"mat-form-field",11)(203,"mat-select",32)(204,"mat-option",27),i(205,"Option 1"),e(),t(206,"mat-option",28),i(207,"Option 2"),e(),t(208,"mat-option",29),i(209,"Option 3"),e(),t(210,"mat-option",30),i(211,"Option 4"),e(),t(212,"mat-option",31),i(213,"Option 5"),e()()()(),t(214,"div",4)(215,"mat-label"),i(216," Disabled "),e(),t(217,"mat-form-field",11)(218,"mat-select",33)(219,"mat-option",27),i(220,"Option 1"),e(),t(221,"mat-option",28),i(222,"Option 2"),e(),t(223,"mat-option",29),i(224,"Option 3"),e(),t(225,"mat-option",30),i(226,"Option 4"),e(),t(227,"mat-option",31),i(228,"Option 5"),e()()()(),t(229,"div",4)(230,"mat-label"),i(231," Preselected and disabled "),e(),t(232,"mat-form-field",11)(233,"mat-select",34)(234,"mat-option",27),i(235,"Option 1"),e(),t(236,"mat-option",28),i(237,"Option 2"),e(),t(238,"mat-option",29),i(239,"Option 3"),e(),t(240,"mat-option",30),i(241,"Option 4"),e(),t(242,"mat-option",31),i(243,"Option 5"),e()()()()(),t(244,"div",0),a(245,"mat-divider"),e()(),t(246,"div",2)(247,"div",35)(248,"div",4)(249,"mat-label"),i(250,"Password toggle"),e(),t(251,"mat-form-field",11),a(252,"input",36),e()()(),t(253,"div",0),a(254,"mat-divider"),e()()()),s&2&&(u(4),c("formGroup",l.form))},dependencies:[h,Ee,Se,re,xe,Ce,De,ye,Me,Wt,Ie,si,At,Jt],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0}),z);Re=lt([Ot()],Re);var un=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-icons-demo"]],decls:381,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-3"],["fontSet","ms","fontIcon","icon-Check"],[1,"parent","items-per-row-8"],["fontSet","ms","fontIcon","icon-User",1,"mat-primary"],["fontSet","ms","fontIcon","icon-User",1,"mat-complementary"],["fontSet","ms","fontIcon","icon-User",1,"mat-gray"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["fontSet","ms","fontIcon","icon-User",1,"mat-accent"],["fontSet","ms","fontIcon","icon-User",1,"mat-success"],["fontSet","ms","fontIcon","icon-User",1,"mat-warn"],["fontSet","ms","fontIcon","icon-User",1,"mat-error"],[1,"parent","ten-items-per-row"],["fontSet","ms","fontIcon","icon-Alerts-Info"],["fontSet","ms","fontIcon","icon-Alerts-Negative"],["fontSet","ms","fontIcon","icon-Alerts-Positive"],["fontSet","ms","fontIcon","icon-Alerts-Warning"],["fontSet","ms","fontIcon","icon-ArrowDown"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["fontSet","ms","fontIcon","icon-ArrowRight"],["fontSet","ms","fontIcon","icon-ArrowSquareOut"],["fontSet","ms","fontIcon","icon-ArrowUp"],["fontSet","ms","fontIcon","icon-Bell"],["fontSet","ms","fontIcon","icon-CalendarBlank"],["fontSet","ms","fontIcon","icon-CaretDoubleLeft"],["fontSet","ms","fontIcon","icon-CaretDoubleRight"],["fontSet","ms","fontIcon","icon-CaretDown"],["fontSet","ms","fontIcon","icon-CaretLeft"],["fontSet","ms","fontIcon","icon-CaretRight"],["fontSet","ms","fontIcon","icon-CaretUp"],["fontSet","ms","fontIcon","icon-CheckCircle"],["fontSet","ms","fontIcon","icon-Clock"],["fontSet","ms","fontIcon","icon-Copy"],["fontSet","ms","fontIcon","icon-Crosshair"],["fontSet","ms","fontIcon","icon-DotsSix"],["fontSet","ms","fontIcon","icon-DotsThree"],["fontSet","ms","fontIcon","icon-DotsThreeVertical"],["fontSet","ms","fontIcon","icon-DownloadSimple"],["fontSet","ms","fontIcon","icon-DropdownCaretDown"],["fontSet","ms","fontIcon","icon-DropdownCaretRight"],["fontSet","ms","fontIcon","icon-DropdownCaretUp"],["fontSet","ms","fontIcon","icon-EnvelopeSimple"],["fontSet","ms","fontIcon","icon-Eye"],["fontSet","ms","fontIcon","icon-EyeSlash"],["fontSet","ms","fontIcon","icon-FunnelSimple"],["fontSet","ms","fontIcon","icon-GearSix"],["fontSet","ms","fontIcon","icon-Info"],["fontSet","ms","fontIcon","icon-Lightning"],["fontSet","ms","fontIcon","icon-ListBullets"],["fontSet","ms","fontIcon","icon-Loader"],["fontSet","ms","fontIcon","icon-Lock"],["fontSet","ms","fontIcon","icon-Magnet"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["fontSet","ms","fontIcon","icon-MapTrifold"],["fontSet","ms","fontIcon","icon-Minus"],["fontSet","ms","fontIcon","icon-Nav"],["fontSet","ms","fontIcon","icon-Paperclip"],["fontSet","ms","fontIcon","icon-Passthrough"],["fontSet","ms","fontIcon","icon-PencilSimple"],["fontSet","ms","fontIcon","icon-Placeholder"],["fontSet","ms","fontIcon","icon-Plus"],["fontSet","ms","fontIcon","icon-Printer"],["fontSet","ms","fontIcon","icon-Prohibit"],["fontSet","ms","fontIcon","icon-Question"],["fontSet","ms","fontIcon","icon-Refresh"],["fontSet","ms","fontIcon","icon-Rocket"],["fontSet","ms","fontIcon","icon-SignOut"],["fontSet","ms","fontIcon","icon-Sort"],["fontSet","ms","fontIcon","icon-SortDown"],["fontSet","ms","fontIcon","icon-SortUp"],["fontSet","ms","fontIcon","icon-Stack"],["fontSet","ms","fontIcon","icon-StackPort"],["fontSet","ms","fontIcon","icon-TrashSimple"],["fontSet","ms","fontIcon","icon-TrendDown"],["fontSet","ms","fontIcon","icon-TrendUp"],["fontSet","ms","fontIcon","icon-UploadSimple"],["fontSet","ms","fontIcon","icon-User"],["fontSet","ms","fontIcon","icon-Users"],["fontSet","ms","fontIcon","icon-WifiHigh"],["fontSet","ms","fontIcon","icon-WifiLightning"],["fontSet","ms","fontIcon","icon-WifiLow"],["fontSet","ms","fontIcon","icon-WifiMedium"],["fontSet","ms","fontIcon","icon-WifiNone"],["fontSet","ms","fontIcon","icon-WifiSlash"],["fontSet","ms","fontIcon","icon-WifiX"],["fontSet","ms","fontIcon","icon-X"],["fontSet","ms","fontIcon","icon-XCircle"],["fontSet","ms","fontIcon","icon-Admin"],["fontSet","ms","fontIcon","icon-Environmental"],["fontSet","ms","fontIcon","icon-Inventory"],["fontSet","ms","fontIcon","icon-Systems-Manager"],[2,"grid-column","span 10"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Types"),e(),t(7,"div",2)(8,"div"),i(9,"Icon from Custom Font Set"),e(),t(10,"div"),i(11,"Material Default Icons"),e(),a(12,"div"),t(13,"div"),a(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),a(18,"div"),e(),t(19,"div",0),a(20,"mat-divider"),e()(),t(21,"div",1)(22,"h2"),i(23,"Custom styles"),e(),t(24,"div",4)(25,"div"),i(26,"Primary"),e(),t(27,"div"),i(28,"Complementary"),e(),t(29,"div"),i(30,"Gray"),e(),t(31,"div"),i(32,"White"),e(),t(33,"div"),i(34,"Accent"),e(),t(35,"div"),i(36,"Succes"),e(),t(37,"div"),i(38,"Warn"),e(),t(39,"div"),i(40,"Error"),e(),t(41,"div"),a(42,"mat-icon",5),e(),t(43,"div"),a(44,"mat-icon",6),e(),t(45,"div"),a(46,"mat-icon",7),e(),t(47,"div"),a(48,"mat-icon",8),e(),t(49,"div"),a(50,"mat-icon",9),e(),t(51,"div"),a(52,"mat-icon",10),e(),t(53,"div"),a(54,"mat-icon",11),e(),t(55,"div"),a(56,"mat-icon",12),e()(),t(57,"div",0),a(58,"mat-divider"),e()(),t(59,"div",1)(60,"h2"),i(61,"Custom Icons"),e(),t(62,"div",13)(63,"div"),i(64,"icon-Alerts-Info"),e(),t(65,"div"),i(66,"icon-Alerts-Negative"),e(),t(67,"div"),i(68,"icon-Alerts-Positive"),e(),t(69,"div"),i(70,"icon-Alerts-Warning"),e(),t(71,"div"),i(72,"icon-ArrowDown"),e(),t(73,"div"),i(74,"icon-ArrowLeft"),e(),t(75,"div"),i(76,"icon-ArrowRight"),e(),t(77,"div"),i(78,"icon-ArrowSquareOut"),e(),t(79,"div"),i(80,"icon-ArrowUp"),e(),t(81,"div"),i(82,"icon-Bell"),e(),t(83,"div"),a(84,"mat-icon",14),e(),t(85,"div"),a(86,"mat-icon",15),e(),t(87,"div"),a(88,"mat-icon",16),e(),t(89,"div"),a(90,"mat-icon",17),e(),t(91,"div"),a(92,"mat-icon",18),e(),t(93,"div"),a(94,"mat-icon",19),e(),t(95,"div"),a(96,"mat-icon",20),e(),t(97,"div"),a(98,"mat-icon",21),e(),t(99,"div"),a(100,"mat-icon",22),e(),t(101,"div"),a(102,"mat-icon",23),e(),t(103,"div"),i(104,"icon-CalendarBlank"),e(),t(105,"div"),i(106,"icon-CaretDoubleLeft"),e(),t(107,"div"),i(108,"icon-CaretDoubleRight"),e(),t(109,"div"),i(110,"icon-CaretDown"),e(),t(111,"div"),i(112,"icon-CaretLeft"),e(),t(113,"div"),i(114,"icon-CaretRight"),e(),t(115,"div"),i(116,"icon-CaretUp"),e(),t(117,"div"),i(118,"icon-CheckCircle"),e(),t(119,"div"),i(120,"icon-Clock"),e(),t(121,"div"),i(122,"icon-Copy"),e(),t(123,"div"),a(124,"mat-icon",24),e(),t(125,"div"),a(126,"mat-icon",25),e(),t(127,"div"),a(128,"mat-icon",26),e(),t(129,"div"),a(130,"mat-icon",27),e(),t(131,"div"),a(132,"mat-icon",28),e(),t(133,"div"),a(134,"mat-icon",29),e(),t(135,"div"),a(136,"mat-icon",30),e(),t(137,"div"),a(138,"mat-icon",31),e(),t(139,"div"),a(140,"mat-icon",32),e(),t(141,"div"),a(142,"mat-icon",33),e(),t(143,"div"),i(144,"icon-Crosshair"),e(),t(145,"div"),i(146,"icon-DotsSix"),e(),t(147,"div"),i(148,"icon-DotsThree"),e(),t(149,"div"),i(150,"icon-DotsThreeVertical"),e(),t(151,"div"),i(152,"icon-DownloadSimple"),e(),t(153,"div"),i(154,"icon-DropdownCaretDown"),e(),t(155,"div"),i(156,"icon-DropdownCaretRight"),e(),t(157,"div"),i(158,"icon-DropdownCaretUp"),e(),t(159,"div"),i(160,"icon-EnvelopeSimple"),e(),t(161,"div"),i(162,"icon-Eye"),e(),t(163,"div"),a(164,"mat-icon",34),e(),t(165,"div"),a(166,"mat-icon",35),e(),t(167,"div"),a(168,"mat-icon",36),e(),t(169,"div"),a(170,"mat-icon",37),e(),t(171,"div"),a(172,"mat-icon",38),e(),t(173,"div"),a(174,"mat-icon",39),e(),t(175,"div"),a(176,"mat-icon",40),e(),t(177,"div"),a(178,"mat-icon",41),e(),t(179,"div"),a(180,"mat-icon",42),e(),t(181,"div"),a(182,"mat-icon",43),e(),t(183,"div"),i(184,"icon-EyeSlash"),e(),t(185,"div"),i(186,"icon-FunnelSimple"),e(),t(187,"div"),i(188,"icon-GearSix"),e(),t(189,"div"),i(190,"icon-Info"),e(),t(191,"div"),i(192,"icon-Lightning"),e(),t(193,"div"),i(194,"icon-ListBullets"),e(),t(195,"div"),i(196,"icon-Loader"),e(),t(197,"div"),i(198,"icon-Lock"),e(),t(199,"div"),i(200,"icon-Magnet"),e(),t(201,"div"),i(202,"icon-MagnifyingGlass"),e(),t(203,"div"),a(204,"mat-icon",44),e(),t(205,"div"),a(206,"mat-icon",45),e(),t(207,"div"),a(208,"mat-icon",46),e(),t(209,"div"),a(210,"mat-icon",47),e(),t(211,"div"),a(212,"mat-icon",48),e(),t(213,"div"),a(214,"mat-icon",49),e(),t(215,"div"),a(216,"mat-icon",50),e(),t(217,"div"),a(218,"mat-icon",51),e(),t(219,"div"),a(220,"mat-icon",52),e(),t(221,"div"),a(222,"mat-icon",53),e(),t(223,"div"),i(224,"icon-MapTrifold"),e(),t(225,"div"),i(226,"icon-Minus"),e(),t(227,"div"),i(228,"icon-Nav"),e(),t(229,"div"),i(230,"icon-Paperclip"),e(),t(231,"div"),i(232,"icon-Passthrough"),e(),t(233,"div"),i(234,"icon-PencilSimple"),e(),t(235,"div"),i(236,"icon-Placeholder"),e(),t(237,"div"),i(238,"icon-Plus"),e(),t(239,"div"),i(240,"icon-Printer"),e(),t(241,"div"),i(242,"icon-Prohibit"),e(),t(243,"div"),a(244,"mat-icon",54),e(),t(245,"div"),a(246,"mat-icon",55),e(),t(247,"div"),a(248,"mat-icon",56),e(),t(249,"div"),a(250,"mat-icon",57),e(),t(251,"div"),a(252,"mat-icon",58),e(),t(253,"div"),a(254,"mat-icon",59),e(),t(255,"div"),a(256,"mat-icon",60),e(),t(257,"div"),a(258,"mat-icon",61),e(),t(259,"div"),a(260,"mat-icon",62),e(),t(261,"div"),a(262,"mat-icon",63),e(),t(263,"div"),i(264,"icon-Question"),e(),t(265,"div"),i(266,"icon-Refresh"),e(),t(267,"div"),i(268,"icon-Rocket"),e(),t(269,"div"),i(270,"icon-SignOut"),e(),t(271,"div"),i(272,"icon-Sort"),e(),t(273,"div"),i(274,"icon-SortDown"),e(),t(275,"div"),i(276,"icon-SortUp"),e(),t(277,"div"),i(278,"icon-Stack"),e(),t(279,"div"),i(280,"icon-StackPort"),e(),t(281,"div"),i(282,"icon-TrashSimple"),e(),t(283,"div"),a(284,"mat-icon",64),e(),t(285,"div"),a(286,"mat-icon",65),e(),t(287,"div"),a(288,"mat-icon",66),e(),t(289,"div"),a(290,"mat-icon",67),e(),t(291,"div"),a(292,"mat-icon",68),e(),t(293,"div"),a(294,"mat-icon",69),e(),t(295,"div"),a(296,"mat-icon",70),e(),t(297,"div"),a(298,"mat-icon",71),e(),t(299,"div"),a(300,"mat-icon",72),e(),t(301,"div"),a(302,"mat-icon",73),e(),t(303,"div"),i(304,"icon-TrendDown"),e(),t(305,"div"),i(306,"icon-TrendUp"),e(),t(307,"div"),i(308,"icon-UploadSimple"),e(),t(309,"div"),i(310,"icon-User"),e(),t(311,"div"),i(312,"icon-Users"),e(),t(313,"div"),i(314,"icon-WifiHigh"),e(),t(315,"div"),i(316,"icon-WifiLightning"),e(),t(317,"div"),i(318,"icon-WifiLow"),e(),t(319,"div"),i(320,"icon-WifiMedium"),e(),t(321,"div"),i(322,"icon-WifiNone"),e(),t(323,"div"),a(324,"mat-icon",74),e(),t(325,"div"),a(326,"mat-icon",75),e(),t(327,"div"),a(328,"mat-icon",76),e(),t(329,"div"),a(330,"mat-icon",77),e(),t(331,"div"),a(332,"mat-icon",78),e(),t(333,"div"),a(334,"mat-icon",79),e(),t(335,"div"),a(336,"mat-icon",80),e(),t(337,"div"),a(338,"mat-icon",81),e(),t(339,"div"),a(340,"mat-icon",82),e(),t(341,"div"),a(342,"mat-icon",83),e(),t(343,"div"),i(344,"icon-WifiSlash"),e(),t(345,"div"),i(346,"icon-WifiX"),e(),t(347,"div"),i(348,"icon-X"),e(),t(349,"div"),i(350,"icon-XCircle"),e(),t(351,"div"),i(352,"icon-Admin"),e(),t(353,"div"),i(354,"icon-Environmental"),e(),t(355,"div"),i(356,"icon-Inventory"),e(),t(357,"div"),i(358,"icon-Systems-Manager"),e(),a(359,"div")(360,"div"),t(361,"div"),a(362,"mat-icon",84),e(),t(363,"div"),a(364,"mat-icon",85),e(),t(365,"div"),a(366,"mat-icon",86),e(),t(367,"div"),a(368,"mat-icon",87),e(),t(369,"div"),a(370,"mat-icon",88),e(),t(371,"div"),a(372,"mat-icon",89),e(),t(373,"div"),a(374,"mat-icon",90),e(),t(375,"div"),a(376,"mat-icon",91),e(),a(377,"div")(378,"div"),t(379,"div",92),a(380,"mat-divider"),e()()())},dependencies:[A,h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var cn=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-menu-demo"]],decls:155,vars:11,consts:[["animals","matMenu"],["vertebrates","matMenu"],["invertebrates","matMenu"],["fish","matMenu"],["amphibians","matMenu"],["reptiles","matMenu"],["menu","matMenu"],["aboveMenu","matMenu"],["belowMenu","matMenu"],["beforeMenu","matMenu"],["afterMenu","matMenu"],[1,"section"],[1,"parent","items-per-row-2"],["mat-button","",3,"matMenuTriggerFor"],[1,"ms-mat-menu"],["mat-menu-item","",3,"matMenuTriggerFor"],["fontSet","ms","fontIcon","icon-User"],["mat-menu-item",""],["mat-menu-item","","disabled",""],[1,"line"],[1,"section","parent","items-per-row-4"],["yPosition","above","xPosition","after",1,"ms-mat-menu"],["yPosition","below",1,"ms-mat-menu"],["xPosition","before",1,"ms-mat-menu"],["xPosition","after",1,"ms-mat-menu"]],template:function(r,m){if(r&1&&(t(0,"div",11)(1,"h2"),i(2,"Menu"),e(),t(3,"div",12)(4,"div")(5,"button",13),i(6,"Animal index"),e(),t(7,"mat-menu",14,0)(9,"button",15),a(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),a(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),a(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),a(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),a(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),a(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),a(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),a(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),a(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),a(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),a(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),a(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),a(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),a(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),a(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),a(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),a(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),a(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),a(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),a(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),a(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),a(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),a(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),a(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),a(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),a(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),a(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),a(101,"mat-icon",16),i(102,"Velociraptor"),e()()(),t(103,"div")(104,"button",13),i(105,"Menu"),e(),t(106,"mat-menu",14,6)(108,"button",17),a(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),a(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),a(115,"mat-divider"),e()(),t(116,"div",20)(117,"div")(118,"button",13),i(119,"Above"),e(),t(120,"mat-menu",21,7)(122,"button",17),i(123,"Item 1"),e(),t(124,"button",17),i(125,"Item 2"),e()()(),t(126,"div")(127,"button",13),i(128,"Below"),e(),t(129,"mat-menu",22,8)(131,"button",17),i(132,"Item 1"),e(),t(133,"button",17),i(134,"Item 2"),e()()(),t(135,"div")(136,"button",13),i(137,"Before"),e(),t(138,"mat-menu",23,9)(140,"button",17),i(141,"Item 1"),e(),t(142,"button",17),i(143,"Item 2"),e()()(),t(144,"div")(145,"button",13),i(146,"After"),e(),t(147,"mat-menu",24,10)(149,"button",17),i(150,"Item 1"),e(),t(151,"button",17),i(152,"Item 2"),e()()()(),t(153,"div",19),a(154,"mat-divider"),e()),r&2){let p=E(8),S=E(16),j=E(33),bn=E(56),Sn=E(73),xn=E(87),En=E(107),Cn=E(121),Dn=E(130),_n=E(139),wn=E(148);u(5),c("matMenuTriggerFor",p),u(4),c("matMenuTriggerFor",S),u(3),c("matMenuTriggerFor",j),u(5),c("matMenuTriggerFor",bn),u(3),c("matMenuTriggerFor",Sn),u(3),c("matMenuTriggerFor",xn),u(81),c("matMenuTriggerFor",En),u(14),c("matMenuTriggerFor",Cn),u(9),c("matMenuTriggerFor",Dn),u(9),c("matMenuTriggerFor",_n),u(9),c("matMenuTriggerFor",wn)}},dependencies:[A,h,w,Xt,Kt,Yt],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var dn=(()=>{let n=class n{constructor(l){this.snackbarService=l}};n.\u0275fac=function(r){return new(r||n)(d(Ti))},n.\u0275cmp=f({type:n,selectors:[["ms-notifications-demo"]],decls:20,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-8"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),v("click",function(){return m.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),v("click",function(){return m.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),v("click",function(){return m.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),v("click",function(){return m.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[h,w],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let o=n;return o})();function oa(o,n){o&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function la(o,n){if(o&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),o&2){let s=n.$implicit;u(2),R(s.position)}}function ma(o,n){o&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function sa(o,n){if(o&1&&(t(0,"mat-cell"),i(1),e()),o&2){let s=n.$implicit;u(),k(" ",s.name," ")}}function ua(o,n){o&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function ca(o,n){if(o&1&&(t(0,"mat-cell"),i(1),e()),o&2){let s=n.$implicit;u(),k(" ",s.weight," ")}}function da(o,n){o&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function pa(o,n){if(o&1&&(t(0,"mat-cell"),i(1),e()),o&2){let s=n.$implicit;u(),k(" ",s.symbol," ")}}function fa(o,n){o&1&&a(0,"mat-header-row")}function va(o,n){o&1&&a(0,"mat-row")}var pn=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}],fn=(()=>{let n=class n{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=pn,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new qi(pn),this.selection=new Qt(!0,[])}ngOnInit(){}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-tables-demo"]],decls:22,vars:3,consts:[[1,"line"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"ms-table",3,"dataSource"],["matColumnDef","position"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),ue(8,4),x(9,oa,2,0,"mat-header-cell",5)(10,la,3,1,"mat-cell",6),ce(),ue(11,7),x(12,ma,2,0,"mat-header-cell",5)(13,sa,2,1,"mat-cell",6),ce(),ue(14,8),x(15,ua,2,0,"mat-header-cell",5)(16,ca,2,1,"mat-cell",6),ce(),ue(17,9),x(18,da,2,0,"mat-header-cell",5)(19,pa,2,1,"mat-cell",6),ce(),x(20,fa,1,0,"mat-header-row",10)(21,va,1,0,"mat-row",11),e()()),r&2&&(u(7),c("dataSource",m.dataSourceSimple),u(13),c("matHeaderRowDef",m.displayedColumnsSimple),u(),c("matRowDefColumns",m.displayedColumnsSimple))},dependencies:[h,Si,Ei,wi,Ci,xi,Mi,Di,_i,yi,Oi,oe],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var vn=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ms-typography-demo"]],decls:76,vars:0,consts:[[1,"line"],[1,"heading-primary-title"],[1,"heading-section-title"],[1,"heading-sub-section-title"],[1,"paragraph-regular-p3-default"],[1,"paragraph-bold-p3-small-bold"],[1,"paragraph-semibold-p3-small-emphasis"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p4-small"],[1,"paragraph-semibold-p4-xSmall"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],[1,"mat-headline-1"],[1,"mat-headline-2"],[1,"mat-headline-3"],[1,"mat-headline-4"],[1,"subtitle-1"],[1,"subtitle-2"],[1,"mat-body-1"],[1,"mat-body-2"],[1,"mat-caption"]],template:function(r,m){r&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),a(3,"mat-divider"),e(),t(4,"h1"),i(5,"Custom Typography (Figma)"),e(),t(6,"p",1),i(7,"heading-primary-title"),e(),t(8,"p",2),i(9,"heading-section-title"),e(),t(10,"p",3),i(11,"heading-sub-section-title"),e(),t(12,"p",4),i(13,"paragraph-regular-p3-default"),e(),t(14,"p",5),i(15,"paragraph-bold-p3-small-bold"),e(),t(16,"p",6),i(17,"paragraph-semibold-p3-small-emphasis"),e(),t(18,"p",7),i(19,"paragraph-semibold-p3-default-emphasis"),e(),t(20,"p",8),i(21,"paragraph-regular-p4-small"),e(),t(22,"p",9),i(23,"paragraph-semibold-p4-xSmall"),e(),a(24,"mat-divider")(25,"br"),t(26,"h1"),i(27,"Key Value Pair"),e(),t(28,"div",10)(29,"div",11)(30,"div",12),i(31,"Key 1:"),e(),t(32,"div",13),i(33,"Value 1"),e()(),t(34,"div",11)(35,"div",12),i(36,"Key 2:"),e(),t(37,"div",13),i(38,"Value 2"),e()()(),a(39,"mat-divider")(40,"br"),t(41,"h1"),i(42,"Angular Material Custom Typograpgy"),e(),t(43,"p",14),i(44,"mat-headline-1"),e(),t(45,"p",15),i(46,"mat-headline-2"),e(),t(47,"p",16),i(48,"mat-headline-3"),e(),t(49,"p",17),i(50,"mat-headline-4"),e(),t(51,"h1"),i(52,"Heading 1"),e(),t(53,"h2"),i(54,"Heading 2"),e(),t(55,"h3"),i(56,"Heading 3"),e(),t(57,"h4"),i(58,"Heading 4"),e(),t(59,"h5"),i(60,"Heading 5"),e(),t(61,"h6"),i(62,"Heading 6"),e(),a(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),a(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),a(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let o=n;return o})();var ga=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],ha=()=>["Yes","No"],ba=()=>["Option 1","Option 2","Option 3","Option 4"],gn=(()=>{let n=class n{constructor(){}handleSelected(l){console.log("Selected option:",l)}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=f({type:n,selectors:[["ag-wizard-demo"]],decls:33,vars:6,consts:[["stepper",""],[1,"line"],[1,"section"],[1,"ms-wizard"],[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary","matStepperNext",""],["mat-button","","matStepperPrevious","",1,"mr-3"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(r,m){if(r&1){let p=T();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),a(3,"mat-divider"),e(),a(4,"br"),t(5,"div",2)(6,"mat-stepper",3,0)(8,"mat-step")(9,"p",4),i(10,"Recommended Algorithm:"),e(),t(11,"ms-card-selector",5),v("selectedOption",function(j){return C(p),D(m.handleSelected(j))}),e(),t(12,"div",6)(13,"button",7),i(14,"Next"),e()()(),t(15,"mat-step")(16,"p",4),i(17,"Do you want to have a similar or higher accuracy?"),e(),t(18,"ms-card-selector",5),v("selectedOption",function(j){return C(p),D(m.handleSelected(j))}),e(),t(19,"div",6)(20,"button",8),a(21,"mat-icon",9),i(22," Previous "),e(),t(23,"button",7),i(24,"Next"),e()()(),t(25,"mat-step")(26,"p",4),i(27,"Example question?"),e(),t(28,"ms-card-selector",5),v("selectedOption",function(j){return C(p),D(m.handleSelected(j))}),e(),t(29,"div",6)(30,"button",8),a(31,"mat-icon",9),i(32," Previous "),e()()()()()}r&2&&(u(11),c("options",ne(3,ga)),u(7),c("options",ne(4,ha)),u(10),c("options",ne(5,ba)))},dependencies:[le,A,rt,Ne,Bi,Vi,h,w]});let o=n;return o})();var Sa=[{path:"",component:Ki,children:[{path:"",redirectTo:y.DEMO.BUTTONS,pathMatch:"full"},{path:y.DEMO.BUTTONS,component:ji},{path:y.DEMO.FORM_FIELDS,component:Re},{path:y.DEMO.CHECKBOXES,component:$i},{path:y.DEMO.TYPOGRAPHY,component:vn},{path:y.DEMO.TABLE,component:fn},{path:y.DEMO.ICONS,component:un},{path:y.DEMO.MENU,component:cn},{path:y.DEMO.CARDS,component:Ui},{path:y.DEMO.CHIPS,component:Qi},{path:y.DEMO.NOTIFICATIONS,component:dn},{path:y.DEMO.WIZARD,component:gn},{path:y.DEMO.DRAWER,component:sn},{path:y.DEMO.DIALOG,component:Ji}]}],hn=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[fe.forChild(Sa),fe]});let o=n;return o})();var Al=(()=>{let n=class n{};n.\u0275fac=function(r){return new(r||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[ke,Te],imports:[fe,be,hn,le,M,me,Oe,Wi,Nt,Lt,zt,Vt,Ii,ri,Zt,jt,Ht,ui,ai,mi,ti,di]});let o=n;return o})();export{Al as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZTWJRPOH.js b/frontend/server/modelsmith-build/browser/chunk-ZTWJRPOH.js new file mode 100644 index 00000000..1ea0fadd --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-ZTWJRPOH.js @@ -0,0 +1 @@ +import{c as u}from"./chunk-LRK34XDC.js";import{Ae as S,Be as N,Ce as P,G as f,Hc as s,Ic as C,Jc as m,S as g,Sc as v,Tc as y,Wc as c,Xc as I,Yc as A,Zc as H,_ as h,_c as x,a,b as l,bd as G,ca as p,s as d,x as M}from"./chunk-64NP6AY6.js";var R=C({source:"[Models]",events:{"Get Models List":s(),"Get Models List Success":s(),"Get Models List Failure":s(),"Get Current Or Previous Selected Model":s(),"Get Current Or Previous Selected Model Success":s(),"Get Current Or Previous Selected Model Failure":s(),"Get Model Metadata":s(),"Get Model Metadata Success":s(),"Get Model Metadata Failure":s()}});var r=C({source:"[Core -> Terminal]",events:{"Get Latest Messages":m(),"Get Latest Messages Success":s(),"Get Latest Messages Failure":s(),"Get All Messages":m(),"Get All Messages Success":s(),"Get All Messages Failure":s(),"Post Clear History":m(),"Post Clear History Success":m(),"Post Clear History Failure":s()}});var L=class extends S{constructor(){super("all-messages",void 0,void 0,!1)}};var T=class extends S{constructor(){super("latest-messages",void 0,void 0,!1)}};var F=class extends N{constructor(){super("clear-history",{},!1)}};var se=(()=>{let e=class e{constructor(o,n){this.apiClient=o,this.actions$=n,this.getLatestMessages$=A(()=>this.actions$.pipe(x(r.getLatestMessages),g(()=>this.apiClient.serviceCall(new T).pipe(M(i=>r.getLatestMessagesSuccess({messages:i})),f(i=>d(r.getLatestMessagesFailure({error:i}))))))),this.getAllMessages$=A(()=>this.actions$.pipe(x(r.getAllMessages),g(()=>this.apiClient.serviceCall(new L).pipe(M(i=>r.getAllMessagesSuccess({allMessages:i})),f(i=>d(r.getAllMessagesFailure({error:i}))))))),this.postClearHistory$=A(()=>this.actions$.pipe(x(r.postClearHistory),g(()=>this.apiClient.serviceCall(new F).pipe(M(()=>r.postClearHistorySuccess()),f(i=>d(r.postClearHistoryFailure({error:i})))))))}};e.\u0275fac=function(n){return new(n||e)(p(P),p(H))},e.\u0275prov=h({token:e,factory:e.\u0275fac});let t=e;return t})();var O={messages:[],allMessages:[],error:null},ae=I(O,c(r.getLatestMessagesSuccess,(t,{messages:e})=>l(a({},t),{messages:e,error:null})),c(r.getLatestMessagesFailure,(t,{error:e})=>l(a({},t),{error:e})),c(r.getAllMessagesSuccess,(t,{allMessages:e})=>l(a({},t),{allMessages:e,error:null})),c(r.getAllMessagesFailure,(t,{error:e})=>l(a({},t),{error:e})),c(r.postClearHistoryFailure,(t,{error:e})=>l(a({},t),{error:e})));var $=t=>y(G,e=>{switch(t){case u.QUANTIZATION:return e.models.quantizationModels;case u.PRUNING:return e.models.pruningModels;case u.MACHINE_UNLEARNING:return e.models.machineUnlearningModels;case u.AWQ:return e.models.awqModels;default:return}}),j=y(G,t=>t.models.currentModel),w=y(G,t=>t.models.modelMetadata);var xe=(()=>{let e=class e{constructor(o){this.store=o,this.currentModel$=this.store.select(j),this.modelMetadata$=this.store.select(w)}getModelsByType(o){return this.store.select($(o))}dispatch(o){this.store.dispatch(o)}};e.\u0275fac=function(n){return new(n||e)(p(v))},e.\u0275prov=h({token:e,factory:e.\u0275fac});let t=e;return t})();export{R as a,r as b,se as c,ae as d,xe as e}; diff --git a/frontend/server/modelsmith-build/browser/favicon.ico b/frontend/server/modelsmith-build/browser/favicon.ico new file mode 100644 index 00000000..997406ad Binary files /dev/null and b/frontend/server/modelsmith-build/browser/favicon.ico differ diff --git a/frontend/server/modelsmith-build/browser/index.html b/frontend/server/modelsmith-build/browser/index.html new file mode 100644 index 00000000..c2fde9eb --- /dev/null +++ b/frontend/server/modelsmith-build/browser/index.html @@ -0,0 +1,35 @@ + + + + + + + ModelSmith + + + + + + + + + + + + + + diff --git a/frontend/server/modelsmith-build/browser/main-SCLHIUVI.js b/frontend/server/modelsmith-build/browser/main-SCLHIUVI.js new file mode 100644 index 00000000..8a94854f --- /dev/null +++ b/frontend/server/modelsmith-build/browser/main-SCLHIUVI.js @@ -0,0 +1 @@ +import{b as Pr,c as Ir,h as Vr}from"./chunk-IICO2ENP.js";import{a as Wr}from"./chunk-OXPAOCDX.js";import{a as Mr}from"./chunk-W3BMP4QU.js";import{a as Be,b as de}from"./chunk-GJTXMCBX.js";import{a as Sr}from"./chunk-Q3ONM42N.js";import{c as Rr}from"./chunk-3WHPNAWZ.js";import"./chunk-6NECGAK4.js";import{a as Or,b as it,c as nt,d as Gr}from"./chunk-7DL2PMFN.js";import"./chunk-OWLYOD4I.js";import{a as Me}from"./chunk-VLJTKNYA.js";import{a as Cr,b as Ar}from"./chunk-MK5CNTNK.js";import"./chunk-F7URI57V.js";import"./chunk-JMFIGVCB.js";import{a as gr,b as yr}from"./chunk-OA3ZLQZZ.js";import{a as K,c as Br,d as qr,e as Qr}from"./chunk-ZTWJRPOH.js";import{c as tt}from"./chunk-LRK34XDC.js";import"./chunk-QVMVB2QY.js";import"./chunk-XX6ZYDLH.js";import{a as Nt,b as bi,c as Dt,e as Nr,f as Dr,g as xr,h as Fr,i as ne,j as kr,k as wi,l as Lr,m as jr,n as zr,p as $r,q as Ur,s as Kr}from"./chunk-QTJZRTNN.js";import{a as Mt,b as sr}from"./chunk-6VRVKV6C.js";import{a as qe}from"./chunk-W4S57J6B.js";import{g as vr}from"./chunk-OFW2ET2O.js";import{$ as pi,$a as _t,$b as Wn,$c as et,Ae as be,Ba as gi,Bb as _e,Be as _r,Ce as we,D as mi,Dc as $e,De as Tr,E as je,Ea as q,Ec as Ei,Ee as br,Fa as Xe,Fb as Bn,Fc as Ot,Fe as wr,G as Z,Gb as qn,Gc as ur,H as Pn,I as In,Ia as Un,J as Rn,K as Nn,Ka as vt,Kb as Tt,Kc as _i,Lc as Ct,Mc as dr,N as Dn,Nc as fr,O as xn,Oc as mr,Pc as Ti,Q as Fn,Qa as Se,Qb as Qn,Qc as pr,Rc as hr,S as G,Sa as ve,T as St,Tc as At,Vc as Je,W as kn,Wc as V,X as O,Xb as Gn,Xc as Ue,Ya as Ee,Yc as ce,Zc as Ke,_ as L,_a as Et,_b as Vn,_c as ue,a as A,aa as Ze,ab as x,ac as Hn,ad as C,b as N,bb as F,bc as Si,bd as Pt,c as Tn,ca as _,cb as z,cc as Zn,d as wo,da as Ie,dc as Xn,e as Mo,ec as Yn,fc as Jn,ga as Ln,gc as er,h as fi,ha as ge,hc as tr,ia as hi,jb as yi,kc as bt,l as bn,la as jn,lb as oe,lc as Te,ma as ye,mc as ir,n as wn,nc as nr,o as Mn,oc as rr,p as yt,pc as wt,q as On,qc as b,rc as ae,s as W,sc as or,t as Cn,ta as zn,tc as ar,ub as Re,vb as Kn,vc as lr,ve as Er,w as An,wa as $n,wb as Ye,wc as ze,we as It,x as Q,xc as vi,xe as Rt,zc as cr}from"./chunk-64NP6AY6.js";var ao=wo((hd,oo)=>{"use strict";var Nl=function(e){return Dl(e)&&!xl(e)};function Dl(n){return!!n&&typeof n=="object"}function xl(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Ll(n)}var Fl=typeof Symbol=="function"&&Symbol.for,kl=Fl?Symbol.for("react.element"):60103;function Ll(n){return n.$$typeof===kl}function jl(n){return Array.isArray(n)?[]:{}}function pt(n,e){return e.clone!==!1&&e.isMergeableObject(n)?He(jl(n),n,e):n}function zl(n,e,t){return n.concat(e).map(function(i){return pt(i,t)})}function $l(n,e){if(!e.customMerge)return He;var t=e.customMerge(n);return typeof t=="function"?t:He}function Ul(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function ro(n){return Object.keys(n).concat(Ul(n))}function so(n,e){try{return e in n}catch{return!1}}function Kl(n,e){return so(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Bl(n,e,t){var i={};return t.isMergeableObject(n)&&ro(n).forEach(function(r){i[r]=pt(n[r],t)}),ro(e).forEach(function(r){Kl(n,r)||(so(n,r)&&t.isMergeableObject(e[r])?i[r]=$l(r,t)(n[r],e[r],t):i[r]=pt(e[r],t))}),i}function He(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||zl,t.isMergeableObject=t.isMergeableObject||Nl,t.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Bl(n,e,t):pt(e,t)}He.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return He(i,r,t)},{})};var ql=He;oo.exports=ql});var fe,xt=(fe=class{constructor(){this.title="modelsmith"}ngOnInit(){}},fe.\u0275fac=function(t){return new(t||fe)},fe.\u0275cmp=ge({type:fe,selectors:[["app-root"]],standalone:!0,features:[_e],decls:1,vars:0,template:function(t,i){t&1&&z(0,"router-outlet")},dependencies:[bt]}),fe);xt=yt([Mt()],xt);function Hr(n){return new O(3e3,!1)}function Oo(){return new O(3100,!1)}function Co(){return new O(3101,!1)}function Ao(n){return new O(3001,!1)}function Po(n){return new O(3003,!1)}function Io(n){return new O(3004,!1)}function Ro(n,e){return new O(3005,!1)}function No(){return new O(3006,!1)}function Do(){return new O(3007,!1)}function xo(n,e){return new O(3008,!1)}function Fo(n){return new O(3002,!1)}function ko(n,e,t,i,r){return new O(3010,!1)}function Lo(){return new O(3011,!1)}function jo(){return new O(3012,!1)}function zo(){return new O(3200,!1)}function $o(){return new O(3202,!1)}function Uo(){return new O(3013,!1)}function Ko(n){return new O(3014,!1)}function Bo(n){return new O(3015,!1)}function qo(n){return new O(3016,!1)}function Qo(n,e){return new O(3404,!1)}function Go(n){return new O(3502,!1)}function Vo(n){return new O(3503,!1)}function Wo(){return new O(3300,!1)}function Ho(n){return new O(3504,!1)}function Zo(n){return new O(3301,!1)}function Xo(n,e){return new O(3302,!1)}function Yo(n){return new O(3303,!1)}function Jo(n,e){return new O(3400,!1)}function ea(n){return new O(3401,!1)}function ta(n){return new O(3402,!1)}function ia(n,e){return new O(3505,!1)}function Oe(n){switch(n.length){case 0:return new $e;case 1:return n[0];default:return new Ei(n)}}function cs(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((p,g)=>{let f=g,m=p;if(g!=="offset")switch(f=n.normalizePropertyName(f,r),m){case Ot:m=t.get(g);break;case ae:m=i.get(g);break;default:m=n.normalizeStyleValue(g,f,m,r);break}u.set(f,m)}),d||s.push(u),a=u,o=c}),r.length)throw Go(r);return s}function Vi(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Mi(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Mi(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Mi(t,"destroy",n)));break}}function Mi(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Wi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function Wi(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function J(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function Zr(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var na=typeof document>"u"?null:document.documentElement;function Hi(n){let e=n.parentNode||n.host||null;return e===na?null:e}function ra(n){return n.substring(1,6)=="ebkit"}var Ne=null,Xr=!1;function sa(n){Ne||(Ne=oa()||{},Xr=Ne.style?"WebkitAppearance"in Ne.style:!1);let e=!0;return Ne.style&&!ra(n)&&(e=n in Ne.style,!e&&Xr&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ne.style)),e}function oa(){return typeof document<"u"?document.body:null}function us(n,e){for(;e;){if(e===n)return!0;e=Hi(e)}return!1}function ds(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Zi=(()=>{let e=class e{validateStyleProperty(i){return sa(i)}containsElement(i,r){return us(i,r)}getParentElement(i){return Hi(i)}query(i,r,s){return ds(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new $e(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),en=class en{};en.NOOP=new Zi;var Fe=en,ke=class{};var aa=1e3,fs="{{",la="}}",ms="ng-enter",Ri="ng-leave",Ft="ng-trigger",$t=".ng-trigger",Yr="ng-animating",Ni=".ng-animating";function me(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Di(parseFloat(e[1]),e[2])}function Di(n,e){switch(e){case"s":return n*aa;default:return n}}function Ut(n,e,t){return n.hasOwnProperty("duration")?n:ca(n,e,t)}function ca(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(Hr(n)),{duration:0,delay:0,easing:""};r=Di(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Di(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Oo()),a=!0),s<0&&(e.push(Co()),a=!0),a&&e.splice(l,0,Hr(n))}return{duration:r,delay:s,easing:o}}function ua(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function le(n,e,t){e.forEach((i,r)=>{let s=Xi(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function xe(n,e){e.forEach((t,i)=>{let r=Xi(i);n.style[r]=""})}function rt(n){return Array.isArray(n)?n.length==1?n[0]:lr(n):n}function da(n,e,t){let i=e.params||{},r=ps(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Ao(s))})}var xi=new RegExp(`${fs}\\s*(.+?)\\s*${la}`,"g");function ps(n){let e=[];if(typeof n=="string"){let t;for(;t=xi.exec(n);)e.push(t[1]);xi.lastIndex=0}return e}function ot(n,e,t){let i=`${n}`,r=i.replace(xi,(s,o)=>{let a=e[o];return a==null&&(t.push(Po(o)),a=""),a.toString()});return r==i?n:r}var fa=/-+([a-z0-9])/g;function Xi(n){return n.replace(fa,(...e)=>e[1].toUpperCase())}function ma(n,e){return n===0||e===0}function pa(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,Yi(n,a)))}}return e}function Y(n,e,t){switch(e.type){case b.Trigger:return n.visitTrigger(e,t);case b.State:return n.visitState(e,t);case b.Transition:return n.visitTransition(e,t);case b.Sequence:return n.visitSequence(e,t);case b.Group:return n.visitGroup(e,t);case b.Animate:return n.visitAnimate(e,t);case b.Keyframes:return n.visitKeyframes(e,t);case b.Style:return n.visitStyle(e,t);case b.Reference:return n.visitReference(e,t);case b.AnimateChild:return n.visitAnimateChild(e,t);case b.AnimateRef:return n.visitAnimateRef(e,t);case b.Query:return n.visitQuery(e,t);case b.Stagger:return n.visitStagger(e,t);default:throw Io(e.type)}}function Yi(n,e){return window.getComputedStyle(n)[e]}var ha=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"]),Kt=class extends ke{normalizePropertyName(e,t){return Xi(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(ha.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Ro(e,i))}return o+s}};var Bt="*";function ga(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>ya(i,t,e)):t.push(n),t}function ya(n,e,t){if(n[0]==":"){let l=Sa(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Bo(n)),e;let r=i[1],s=i[2],o=i[3];e.push(Jr(r,o));let a=r==Bt&&o==Bt;s[0]=="<"&&!a&&e.push(Jr(o,r))}function Sa(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var kt=new Set(["true","1"]),Lt=new Set(["false","0"]);function Jr(n,e){let t=kt.has(n)||Lt.has(n),i=kt.has(e)||Lt.has(e);return(r,s)=>{let o=n==Bt||n==r,a=e==Bt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?kt.has(n):Lt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?kt.has(e):Lt.has(e)),o&&a}}var hs=":self",va=new RegExp(`s*${hs}s*,?`,"g");function gs(n,e,t,i){return new Fi(n).build(e,t,i)}var es="",Fi=class{constructor(e){this._driver=e}build(e,t,i){let r=new ki(t);return this._resetContextStyleTimingState(r),Y(this,rt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=es,e.collectedStyles=new Map,e.collectedStyles.set(es,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(No()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==b.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Do())}),{type:b.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ps(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(xo(e.name,[...s.values()]))}return{type:b.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Y(this,rt(e.animation),t),r=ga(e.expr,t.errors);return{type:b.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:De(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(i=>Y(this,i,t)),options:De(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=Y(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:b.Group,steps:s,options:De(e.options)}}visitAnimate(e,t){let i=ba(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:ze({});if(s.type==b.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=ze(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:b.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===ae?i.push(a):t.errors.push(Fo(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(fs)>=0){s=!0;break}}}),{type:b.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(ko(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&da(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Lo()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(w=>{let P=this._makeStyleAst(w,t),j=P.offset!=null?P.offset:Ta(P.styles),v=0;return j!=null&&(s++,v=P.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?P==g?1:p*P:o[P],v=j*T;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(w,t),w.offset=j,i.styles.push(w)}),i}visitReference(e,t){return{type:b.Reference,animation:Y(this,rt(e.animation),t),options:De(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:De(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:De(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Ea(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,J(t.collectedStyles,t.currentQuerySelector,new Map);let a=Y(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:b.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:De(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Uo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ut(e.timings,t.errors,!0);return{type:b.Stagger,animation:Y(this,rt(e.animation),t),timings:i,options:null}}};function Ea(n){let e=!!n.split(/\s*,\s*/).find(t=>t==hs);return e&&(n=n.replace(va,"")),n=n.replace(/@\*/g,$t).replace(/@\w+/g,t=>$t+"-"+t.slice(1)).replace(/:animating/g,Ni),[n,e]}function _a(n){return n?A({},n):null}var ki=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Ta(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ba(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Ut(n,e).duration;return Oi(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Oi(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Ut(t,e);return Oi(r.duration,r.delay,r.easing)}function De(n){return n?(n=A({},n),n.params&&(n.params=_a(n.params))):n={},n}function Oi(n,e,t){return{duration:n,delay:e,easing:t}}function Ji(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var at=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},wa=1,Ma=":enter",Oa=new RegExp(Ma,"g"),Ca=":leave",Aa=new RegExp(Ca,"g");function ys(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Li().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Li=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new at;let u=new ji(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?me(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),Y(this,i,u);let g=u.timelines.filter(f=>f.containsAnimation());if(g.length&&a.size){let f;for(let m=g.length-1;m>=0;m--){let T=g[m];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[Ji(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:me(ot(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?me(i.duration):null,a=i.delay!=null?me(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Y(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==b.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qt);let o=me(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Y(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?me(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Y(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?ot(i,t.params,t.errors):i;return Ut(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==b.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?me(r.delay):0;s&&(t.previousNode.type===b.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=qt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),Y(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;Y(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},qt={},ji=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=me(i.duration)),i.delay!=null&&(r.delay=me(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ot(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=qt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new zi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Oa,"."+this._enterClassName),e=e.replace(Aa,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,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(Ko(t)),a}},Qt=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=wa,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||ae),this._currentKeyframe.set(t,ae);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Pa(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ot(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ae),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ot?e.add(u):d===ae&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ji(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},zi=class extends Qt{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,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 e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",ts(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let p=new Map(e[u]),g=p.get("offset"),f=t+g*i;p.set("offset",ts(f/o)),s.push(p)}i=o,t=0,r="",e=s}return Ji(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function ts(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Pa(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,ae)}else for(let[s,o]of r)t.set(s,o)}),t}function is(n,e,t,i,r,s,o,a,l,c,d,u,p){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var Ci={},Gt=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Ia(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||Ci,g=a&&a.params||Ci,f=this.buildStyles(i,g,u),m=l&&l.params||Ci,T=this.buildStyles(r,m,u),w=new Set,P=new Map,j=new Map,v=r==="void",I={params:Ss(m,p),delay:this.ast.options?.delay},E=d?[]:ys(e,t,this.ast.animation,s,o,f,T,I,c,u),D=0;return E.forEach(R=>{D=Math.max(R.duration+R.delay,D)}),u.length?is(t,this._triggerName,i,r,v,f,T,[],[],P,j,D,u):(E.forEach(R=>{let ie=R.element,Le=J(P,ie,new Set);R.preStyleProps.forEach(Ae=>Le.add(Ae));let Sn=J(j,ie,new Set);R.postStyleProps.forEach(Ae=>Sn.add(Ae)),ie!==t&&w.add(ie)}),is(t,this._triggerName,i,r,v,f,T,E,[...w.values()],P,j,D))}};function Ia(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function Ss(n,e){let t=A({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var $i=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Ss(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=ot(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Ra(n,e,t){return new Ui(n,e,t)}var Ui=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new $i(r.style,s,i))}),ns(this.states,"true","1"),ns(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Gt(e,r,this.states))}),this.fallbackTransition=Na(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Na(n,e,t){let i=[(o,a)=>!0],r={type:b.Sequence,steps:[],options:null},s={type:b.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Gt(n,s,e)}function ns(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Da=new at,Ki=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=gs(this._driver,t,i,r);if(i.length)throw Vo(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=cs(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=ys(this._driver,t,s,ms,Ri,new Map,new Map,i,Da,r),o.forEach(d=>{let u=J(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(Wo()),o=[]),r.length)throw Ho(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,ae))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Zo(e);return t}listen(e,t,i,r){let s=Wi(t,"","","");return Vi(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);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(r[0]));break;case"destroy":this.destroy(e);break}}},rs="ng-animate-queued",xa=".ng-animate-queued",Ai="ng-animate-disabled",Fa=".ng-animate-disabled",ka="ng-star-inserted",La=".ng-star-inserted",ja=[],vs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},za={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},re="__ng_removed",lt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Ua(r),i){let s=e,{value:o}=s,a=Tn(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},st="void",Pi=new lt(st),Bi=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,te(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Xo(i,t);if(i==null||i.length==0)throw Yo(t);if(!Ka(i))throw Jo(i,t);let s=J(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=J(this._engine.statesByElement,e,new Map);return a.has(t)||(te(e,Ft),te(e,Ft+"-"+t),a.set(t,Pi)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw ea(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new ct(this.id,t,e),a=this._engine.statesByElement.get(e);a||(te(e,Ft),te(e,Ft+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new lt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Pi),!(c.value===st)&&l.value===c.value){if(!Qa(l.params,c.params)){let m=[],T=s.matchStyles(l.value,l.params,m),w=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{xe(e,T),le(e,w)})}return}let p=J(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let g=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!g){if(!r)return;g=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(te(e,rs),o.onStart(()=>{Qe(e,rs)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,$t,!0);i.forEach(r=>{if(r[re])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),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(e,c,st,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Pi,d=new lt(st),u=new ct(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[re];(!s||s===vs)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){te(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Wi(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Vi(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},qi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Bi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if(jt(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!jt(t))return;let s=t[re];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),te(e,Ai)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Ai))}removeNode(e,t,i){if(jt(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[re]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return jt(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,$t,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ni,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[re];if(t&&t.setForRemoval){if(e[re]=vs,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ai)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Fa,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Oe(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw ta(e)}_flushAnimations(e,t){let i=new at,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let y=this.driver.query(h,xa,!0);for(let S=0;S{let S=ms+m++;f.set(y,S),h.forEach(M=>te(M,S))});let T=[],w=new Set,P=new Set;for(let h=0;hw.add(M)):P.add(y))}let j=new Map,v=as(p,Array.from(w));v.forEach((h,y)=>{let S=Ri+m++;j.set(y,S),h.forEach(M=>te(M,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(M=>Qe(M,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(M=>Qe(M,S))}),T.forEach(h=>{this.processLeaveNode(h)})});let I=[],E=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let M=S.player,U=S.element;if(I.push(M),this.collectedEnterElements.length){let B=U[re];if(B&&B.setForMove){if(B.previousTriggersValues&&B.previousTriggersValues.has(S.triggerName)){let Pe=B.previousTriggersValues.get(S.triggerName),ee=this.statesByElement.get(S.element);if(ee&&ee.has(S.triggerName)){let gt=ee.get(S.triggerName);gt.value=Pe,ee.set(S.triggerName,gt)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,U),H=j.get(U),he=f.get(U),k=this._buildInstruction(S,i,he,H,se);if(k.errors&&k.errors.length){E.push(k);return}if(se){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}if(S.isFallbackTransition){M.onStart(()=>xe(U,k.fromStyles)),M.onDestroy(()=>le(U,k.toStyles)),r.push(M);return}let _n=[];k.timelines.forEach(B=>{B.stretchStartingKeyframe=!0,this.disabledNodes.has(B.element)||_n.push(B)}),k.timelines=_n,i.append(U,k.timelines);let bo={instruction:k,player:M,element:U};o.push(bo),k.queriedElements.forEach(B=>J(a,B,[]).push(M)),k.preStyleProps.forEach((B,Pe)=>{if(B.size){let ee=l.get(Pe);ee||l.set(Pe,ee=new Set),B.forEach((gt,di)=>ee.add(di))}}),k.postStyleProps.forEach((B,Pe)=>{let ee=c.get(Pe);ee||c.set(Pe,ee=new Set),B.forEach((gt,di)=>ee.add(di))})});if(E.length){let h=[];E.forEach(y=>{h.push(ia(y.triggerName,y.errors))}),I.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,R=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(R.set(y,y),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,D))}),r.forEach(h=>{let y=h.element;this._getPreviousPlayers(y,!1,h.namespaceId,h.triggerName,null).forEach(M=>{J(D,y,[]).push(M),M.destroy()})});let ie=T.filter(h=>ls(h,l,c)),Le=new Map;os(Le,this.driver,P,c,ae).forEach(h=>{ls(h,l,c)&&ie.push(h)});let Ae=new Map;g.forEach((h,y)=>{os(Ae,this.driver,new Set(h),l,Ot)}),ie.forEach(h=>{let y=Le.get(h),S=Ae.get(h);Le.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let ui=[],vn=[],En={};o.forEach(h=>{let{element:y,player:S,instruction:M}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>le(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),r.push(S);return}let U=En;if(R.size>1){let H=y,he=[];for(;H=H.parentNode;){let k=R.get(H);if(k){U=k;break}he.push(H)}he.forEach(k=>R.set(k,U))}let se=this._buildAnimation(S.namespaceId,M,D,s,Ae,Le);if(S.setRealPlayer(se),U===En)ui.push(S);else{let H=this.playersByElement.get(U);H&&H.length&&(S.parentPlayer=Oe(H)),r.push(S)}}else xe(y,M.fromStyles),S.onDestroy(()=>le(y,M.toStyles)),vn.push(S),d.has(y)&&r.push(S)}),vn.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Oe(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!se.destroyed);U.length?Ba(this,y,U):this.processLeaveNode(y)}return T.length=0,ui.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),ui}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==st;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=J(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(g=>{let f=g.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),g.destroy(),u.push(g)})}xe(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,p=t.timelines.map(f=>{let m=f.element;d.add(m);let T=m[re];if(T&&T.removedBeforeQueried)return new $e(f.duration,f.delay);let w=m!==l,P=qa((i.get(m)||ja).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===m:!1}),j=s.get(m),v=o.get(m),I=cs(this._normalizer,f.keyframes,j,v),E=this._buildPlayer(f,I,P);if(f.subTimeline&&r&&u.add(m),w){let D=new ct(e,a,m);D.setRealPlayer(E),c.push(D)}return E});c.forEach(f=>{J(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>$a(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>te(f,Yr));let g=Oe(p);return g.onDestroy(()=>{d.forEach(f=>Qe(f,Yr)),le(l,t.toStyles)}),u.forEach(f=>{J(r,f,[]).push(g)}),g}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new $e(e.duration,e.delay)}},ct=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new $e,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Vi(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){J(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function $a(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function Ua(n){return n??null}function jt(n){return n&&n.nodeType===1}function Ka(n){return n=="start"||n=="done"}function ss(n,e){let t=n.style.display;return n.style.display=e??"none",t}function os(n,e,t,i,r){let s=[];t.forEach(l=>s.push(ss(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,r);d.set(u,p),(!p||p.length==0)&&(c[re]=za,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>ss(l,s[a++])),o}function as(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function te(n,e){n.classList?.add(e)}function Qe(n,e){n.classList?.remove(e)}function Ba(n,e,t){Oe(t).onDone(()=>n.processLeaveNode(e))}function qa(n){let e=[];return Es(n,e),e}function Es(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var Ve=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new qi(e.body,t,i),this._timelineEngine=new Ki(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=gs(this._driver,s,l,c);if(l.length)throw Qo(r,l);c.length&&void 0,a=Ra(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=Zr(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=Zr(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ga(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Ii(e[0]),e.length>1&&(i=Ii(e[e.length-1]))):e instanceof Map&&(t=Ii(e)),t||i?new Qi(n,t,i):null}var Ge=class Ge{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ge.initialStylesByElement.get(e);r||Ge.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&le(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(le(this._element,this._initialStyles),this._endStyles&&(le(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ge.initialStylesByElement.delete(this._element),this._startStyles&&(xe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),le(this._element,this._initialStyles),this._state=3)}};Ge.initialStylesByElement=new WeakMap;var Qi=Ge;function Ii(n){let e=null;return n.forEach((t,i)=>{Va(i)&&(e=e||new Map,e.set(i,t))}),e}function Va(n){return n==="display"||n==="position"}var Vt=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:Yi(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Wt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return us(e,t)}getParentElement(e){return Hi(e)}query(e,t,i){return ds(e,t,i)}computeStyle(e,t,i){return Yi(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(g=>g instanceof Vt);ma(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=ua(t).map(g=>new Map(g));u=pa(e,u,c);let p=Ga(e,u);return new Vt(e,u,l,p)}};var zt="@",_s="@.disabled",Ht=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==zt&&t==_s?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Gi=class extends Ht{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==zt?t.charAt(1)=="."&&t==_s?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==zt){let r=Wa(e),s=t.slice(1),o="";return s.charAt(0)!=zt&&([s,o]=Ha(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function Wa(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ha(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Zt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Ht(i,r,this.engine,u),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Gi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,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()}};var Xa=(()=>{let e=class e extends Ve{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(_(Qn),_(Fe),_(ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function Ya(){return new Kt}function Ja(n,e,t){return new Zt(n,e,t)}var bs=[{provide:ke,useFactory:Ya},{provide:Ve,useClass:Xa},{provide:Un,useFactory:Ja,deps:[Yn,Ve,vt]}],Ts=[{provide:Fe,useFactory:()=>new Wt},{provide:gi,useValue:"BrowserAnimations"},...bs],el=[{provide:Fe,useClass:Zi},{provide:gi,useValue:"NoopAnimations"},...bs],ws=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?el:Ts}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=hi({type:e}),e.\u0275inj=pi({providers:Ts,imports:[er]});let n=e;return n})();var Ce=class{static setItem(e,t){localStorage.setItem(e,JSON.stringify(t))}static getItem(e){let t=localStorage.getItem(e);return t?JSON.parse(t):null}static getNestedItem(e,t){let i=this.getItem(e);return i?this.getNestedProperty(i,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let i=t.split(".");for(let r=0;r{let e=class e{constructor(i){this.router=i}canActivate(){return Ce.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${C.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(_(Te))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Xt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Ce.getNestedItem($.CORE.ROOT,`${$.CONFIGS.ROOT}.${$.CONFIGS.DEFAULT_MODE}`);return i&&(i===de.GUIDED?(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:de.GUIDED}))):(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:de.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(_(Te),_(qe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var Yt=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Ce.getNestedItem($.CORE.ROOT,`${$.AUTH.ROOT}.${$.AUTH.USER.ROOT}.${$.AUTH.USER.JWT}`)?(this.router.navigate([`/${C.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(_(Te))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function nl(n,e){if(n&1&&(x(0,"div")(1,"div",5),Re(2),F()()),n&2){let t=oe();q(2),Ye(" ",t.item.label," ")}}function rl(n,e){n&1&&(x(0,"div"),z(1,"ms-spining-indicator"),F())}function sl(n,e){if(n&1&&Se(0,rl,2,0,"div"),n&2){let t=oe();Ee(t.isExpanded&&e===t.item.key?0:-1)}}var Ms=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(r){return new(r||e)(Xe(nt))},e.\u0275cmp=ge({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[_e],decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(r,s){if(r&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),z(3,"mat-icon",3),F(),Se(4,nl,3,1,"div"),F(),x(5,"div",4),Se(6,sl,1,1),Bn(7,"async"),F()()),r&2){let o;ve("routerLink",s.item.route),q(3),ve("fontIcon",s.item.icon),q(),Ee(s.isExpanded?4:-1),q(2),Ee((o=qn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$))?6:-1,o)}},dependencies:[Vn,Gn,Rt,It,Or,wt,ir,nr],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.sidenav-item[_ngcontent-%COMP%]{padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.sidenav-item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], .sidenav-item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.sidenav-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-left:10px;white-space:nowrap}.sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}[itemStyle=grey][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--foregrounds-750)}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%]{background-color:var(--foregrounds-150);border-radius:8px}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{color:var(--foregrounds-800)}[itemStyle=accent][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--accent-400)}"]});let n=e;return n})();var ol=[{route:C.ADMIN.ROOT,label:"Admin",icon:"icon-Admin"}],al=[{route:C.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],ll=[{route:C.MODEL_COMPRESSION.ROOT,label:"Clasic Model Compression",icon:"icon-GearSix",key:it.MODEL_COMPRESSION},{route:C.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:it.MACHINE_UNLEARNING},{route:C.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:it.AWQ},{route:C.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:it.MODEL_SPECIALIZATION},{route:C.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],Os={guided:al,expert:ll,common:ol};var tn=(n,e)=>e.route;function cl(n,e){if(n&1&&(x(0,"div",5)(1,"div",13),Re(2),F(),x(3,"div",14),Re(4),z(5,"mat-icon",15),F()()),n&2){let t=oe();q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Guided mode":"Expert mode"," "),q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function ul(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),ve("item",t)("isExpanded",i.isExpanded)}}function dl(n,e){if(n&1&&Et(0,ul,2,2,"div",8,tn),n&2){let t=oe();_t(t.SidenavConstants.guided)}}function fl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",16),F()),n&2){let t=e.$implicit,i=oe(2);q(),ve("item",t)("isExpanded",i.isExpanded)}}function ml(n,e){if(n&1&&Et(0,fl,2,2,"div",8,tn),n&2){let t=oe();_t(t.SidenavConstants.expert)}}function pl(n,e){if(n&1&&(x(0,"div",8),z(1,"ms-sidenav-item",17),F()),n&2){let t=e.$implicit,i=oe();q(),ve("item",t)("isExpanded",i.isExpanded)}}function hl(n,e){n&1&&(x(0,"span",12),Re(1,"Collapse"),F())}var pe,Jt=(pe=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=Os,this.Modes=de,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(sr(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===de.GUIDED?(this.router.navigate([`/${C.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:de.EXPERT}))):(this.router.navigate([`/${C.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Be.setCurrentMode({mode:de.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}},pe.\u0275fac=function(t){return new(t||pe)(Xe(Te),Xe(qe))},pe.\u0275cmp=ge({type:pe,selectors:[["ms-sidenav"]],standalone:!0,features:[_e],decls:21,vars:5,consts:[[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],[1,"right"],[1,"mt-3"],[1,"mt-5"],[1,"sidenav-items-wrapper"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],[1,"paragraph-semibold-p3-small-emphasis"],[1,"paragraph-semibold-p3-default-emphasis","text-container"],[1,"paragraph-regular-p4-small","switch-button","text-container"],["fontSet","ms","fontIcon","icon-ArrowRight",1,"switch-icon"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"]],template:function(t,i){t&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),yi("click",function(){return i.toggleMode()}),x(3,"div",3),z(4,"mat-icon",4),F(),Se(5,cl,6,2,"div",5),F(),x(6,"div",6),z(7,"mat-divider"),F(),Se(8,dl,2,0)(9,ml,2,0),x(10,"div",7),z(11,"mat-divider"),F(),Et(12,pl,2,2,"div",8,tn),F(),x(14,"div",9),z(15,"mat-divider"),F(),x(16,"div",10)(17,"div",11),yi("click",function(){return i.toggleSidebar()}),x(18,"mat-icon"),Re(19),F(),Se(20,hl,2,0,"span",12),F()()()),t&2&&(ve("@expandCollapse",i.isExpanded?"expanded":"collapsed"),q(5),Ee(i.isExpanded?5:-1),q(3),Ee(i.currentMode===i.Modes.GUIDED?8:9),q(4),_t(i.SidenavConstants.common),q(7),Kn(i.isExpanded?"chevron_left":"chevron_right"),q(),Ee(i.isExpanded?20:-1))},dependencies:[Ms,Rt,It,yr,gr],styles:["[_nghost-%COMP%]{height:100%}.sidenav-wrapper[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;justify-content:space-between}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:flex;cursor:pointer;height:38px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-600);margin-left:8px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-left:10px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%] .switch-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:16px;width:16px;height:16px}.sidenav-wrapper[_ngcontent-%COMP%] .sidenav-items-wrapper[_ngcontent-%COMP%]{margin-top:10px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:6px;cursor:pointer;transition:background-color .3s ease;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]:hover{color:var(--foregrounds-800);background-color:var(--foregrounds-150);border-radius:8px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;color:var(--foregrounds-750)}.text-container[_ngcontent-%COMP%]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[or("expandCollapse",[vi("expanded",ze({width:"270px"})),vi("collapsed",ze({width:"40px"})),cr("expanded <=> collapsed",ar("300ms ease-in-out"))])]}}),pe);Jt=yt([Mt()],Jt);var Cs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ge({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[_e],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(x(0,"div",0),z(1,"ms-header"),x(2,"div",1),z(3,"ms-sidenav"),x(4,"div",2)(5,"div",3),z(6,"router-outlet"),F(),x(7,"div",4),z(8,"ms-footer",5),F()()()())},dependencies:[Sr,Mr,Jt,wt,bt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;max-width:100vw}.body[_ngcontent-%COMP%]{flex:1;display:flex;margin-top:20px}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin:0 10px;overflow-x:hidden}.router-outlet[_ngcontent-%COMP%]{flex:1;padding:0 2px}ms-footer[_ngcontent-%COMP%]{height:60px}ms-header[_ngcontent-%COMP%], ms-sidenav[_ngcontent-%COMP%]{overflow-x:hidden}"]});let n=e;return n})();var As={records:Ir};var Ps=[{path:C.AUTH.ROOT,loadChildren:()=>import("./chunk-4KATODEP.js").then(n=>n.AuthModule),canActivate:[Yt]},{path:C.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-5RAWOV5Q.js").then(n=>n.ModeSelectModule),canActivate:[dt,Xt]},{path:C.DEMO.ROOT,loadChildren:()=>import("./chunk-Z2AC4D6Z.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:C.AUTH.ROOT},{path:"",component:Cs,canActivate:[dt],children:[{path:"",redirectTo:C.WIZARD.ROOT,pathMatch:"full"},{path:C.WIZARD.ROOT,loadChildren:()=>import("./chunk-6GLTEX3L.js").then(n=>n.WizardModule)},{path:C.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-CHZOVJ7N.js").then(n=>n.ModelCompressionModule)},{path:C.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-WZ76MJ7F.js").then(n=>n.MachineUnlearningModule)},{path:C.AWQ.ROOT,loadChildren:()=>import("./chunk-HZOHDHN6.js").then(n=>n.LlmQuantizationModule)},{path:C.RUNNING.ROOT,loadChildren:()=>import("./chunk-QVPAEFCW.js").then(n=>n.RunningModule)},{path:C.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-UJFXJ7BZ.js").then(n=>n.ModelTrainingModule)},{path:C.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-SW5QWC5Y.js").then(n=>n.AlgorithmComparisonModule),providers:[ye(Je.forFeature("runRecords",As)),ye(et.forFeature([Pr]))]},{path:C.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-O7CNECT6.js").then(n=>n.MultiModalModule)},{path:C.ADMIN.ROOT,loadChildren:()=>import("./chunk-QNESWJWL.js").then(n=>n.AdminModule)}]}];function Is(){return[Kr,dt,wi,Yt,Xt,bi,qe,wr,kr,Fr,xr,Lr,zr,jr,nt,Qr,{provide:Ln,multi:!0,useValue(){let n=Ie(wi),e=Ie(nt),t=Ie(Er),i=Ie(bi);n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Nt.fetchScriptStatus())}}]}function Rs(){return[{provide:vr,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Rr,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Gr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ei=class{constructor(e){this.httpClient=e}get httpHeaders(){return new Wn}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Tt()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),W(e).pipe(G(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(Nn(t.getMockDelay));switch(t.getMethod){case"GET":return this.httpClient.get(t.getUrl,this.getRequestOptions(t));case"POST":return this.httpClient.post(t.getUrl,t.getBody,this.getRequestOptions(t));case"PUT":return this.httpClient.put(t.getUrl,null,this.getRequestOptions(t));default:throw new Error(`Unsupported method: ${t.getMethod}`)}}))}};function Ns(){return[{provide:we,useFactory:n=>new ei(n),deps:[Hn]}]}var gl=(()=>{let e=class e{constructor(i){this.bannerService=i}handleError(i,r){let s=r.error,{error:o}=s;switch(r.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(s);break;default:this.spawnNotification(o);break}return Cn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(_(Dt))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ds=(()=>{let e=class e{constructor(i){this.errorHandler=i}intercept(i,r){return r.handle(i).pipe(Z(s=>this.errorHandler.handleError(i,s)))}};e.\u0275fac=function(r){return new(r||e)(_(gl))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function xs(){return[{provide:Si,useClass:Ds,multi:!0},{provide:Si,useClass:Vr,multi:!0}]}var mt="PERFORM_ACTION",yl="REFRESH",$s="RESET",Us="ROLLBACK",Ks="COMMIT",Bs="SWEEP",qs="TOGGLE_ACTION",Sl="SET_ACTIONS_ACTIVE",Qs="JUMP_TO_STATE",Gs="JUMP_TO_ACTION",hn="IMPORT_STATE",Vs="LOCK_CHANGES",Ws="PAUSE_RECORDING",We=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=mt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},nn=class{constructor(){this.type=yl}},rn=class{constructor(e){this.timestamp=e,this.type=$s}},sn=class{constructor(e){this.timestamp=e,this.type=Us}},on=class{constructor(e){this.timestamp=e,this.type=Ks}},an=class{constructor(){this.type=Bs}},ln=class{constructor(e){this.id=e,this.type=qs}};var cn=class{constructor(e){this.index=e,this.type=Qs}},un=class{constructor(e){this.actionId=e,this.type=Gs}},dn=class{constructor(e){this.nextLiftedState=e,this.type=hn}},fn=class{constructor(e){this.status=e,this.type=Vs}},mn=class{constructor(e){this.status=e,this.type=Ws}};var ri=new Ze("@ngrx/store-devtools Options"),Fs=new Ze("@ngrx/store-devtools Initial Config");function Hs(){return null}var vl="NgRx Store DevTools";function El(n){let e={maxAge:!1,monitor:Hs,actionSanitizer:void 0,stateSanitizer:void 0,name:vl,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof n=="function"?n():n,i=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||i||e.features;r.import===!0&&(r.import="custom");let s=Object.assign({},e,{features:r},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function ks(n,e){return n.filter(t=>e.indexOf(t)<0)}function Zs(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:i}=e[t];return i}function ft(n){return new We(n,+Date.now())}function _l(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=Xs(n,e[r],r),t},{})}function Xs(n,e,t){return N(A({},e),{action:n(e.action,t)})}function Tl(n,e){return e.map((t,i)=>({state:Ys(n,t.state,i),error:t.error}))}function Ys(n,e,t){return n(e,t)}function Js(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function bl(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&gn(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),N(A({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function gn(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>Ls(l)).join("|")),a=r&&e.action.type.match(r.map(l=>Ls(l)).join("|"));return s||o||a}function Ls(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function eo(n){return{ngZone:n?Ie(vt):null,connectInZone:n}}var si=(()=>{let e=class e extends Ct{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=zn(e)))(s||e)}})(),e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ti={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},pn=new Ze("@ngrx/store-devtools Redux Devtools Extension"),to=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=eo(this.config.connectInZone),this.devtoolsExtension=i,this.createActionStreams()}notify(i,r){if(this.devtoolsExtension)if(i.type===mt){if(r.isLocked||r.isPaused)return;let s=Zs(r);if(Js(this.config)&&gn(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?Ys(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?Xs(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=N(A({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?_l(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?Tl(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fi(i=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(s=>i.next(s)),r.unsubscribe}):Mn}createActionStreams(){let i=this.createChangesObservable().pipe(xn()),r=i.pipe(je(d=>d.type===ti.START)),s=i.pipe(je(d=>d.type===ti.STOP)),o=i.pipe(je(d=>d.type===ti.DISPATCH),Q(d=>this.unwrapAction(d.payload)),Pn(d=>d.type===hn?this.dispatcher.pipe(je(u=>u.type===Ti),An(1e3),In(1e3),Q(()=>d),Z(()=>W(d)),Rn(1)):W(d))),l=i.pipe(je(d=>d.type===ti.ACTION),Q(d=>this.unwrapAction(d.payload))).pipe(St(s)),c=o.pipe(St(s));this.start$=r.pipe(St(s)),this.actions$=this.start$.pipe(G(()=>l)),this.liftedActions$=this.start$.pipe(G(()=>c))}unwrapAction(i){return typeof i=="string"?(0,eval)(`(${i})`):i}getExtensionConfig(i){let r={name:i.name,features:i.features,serialize:i.serialize,autoPause:i.autoPause??!1,trace:i.trace??!1,traceLimit:i.traceLimit??75};return i.maxAge!==!1&&(r.maxAge=i.maxAge),r}sendToReduxDevtools(i){try{i()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}};e.\u0275fac=function(r){return new(r||e)(_(pn),_(ri),_(si))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={type:_i},wl="@ngrx/store-devtools/recompute",Ml={type:wl};function io(n,e,t,i,r){if(i)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function ii(n,e,t,i,r,s,o,a,l){if(e>=n.length&&n.length===s.length)return n;let c=n.slice(0,e),d=s.length-(l?1:0);for(let u=e;u-1?f:io(t,g,m,T,a);c.push(P)}return l&&c.push(n[n.length-1]),c}function Ol(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ft(ni)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Cl(n,e,t,i,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:T,isPaused:w}=o||e;o||(c=Object.create(c));function P(I){let E=I,D=u.slice(1,E+1);for(let R=0;RD.indexOf(R)===-1),u=[0,...u.slice(E+1)],g=m[E].state,m=m.slice(E),f=f>E?f-E:0}function j(){c={0:ft(ni)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Vs:{T=a.status,v=1/0;break}case Ws:{w=a.status,w?(u=[...u,d],c[d]=new We({type:"@ngrx/devtools/pause"},+Date.now()),d++,v=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,v=1/0):j();break}case $s:{c={0:ft(ni)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case Ks:{j();break}case Us:{c={0:ft(ni)},d=1,u=[0],p=[],f=0,m=[];break}case qs:{let{id:I}=a;p.indexOf(I)===-1?p=[I,...p]:p=p.filter(D=>D!==I),v=u.indexOf(I);break}case Sl:{let{start:I,end:E,active:D}=a,R=[];for(let ie=I;ier.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);break}case Ti:{if(m.filter(E=>E.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ii(m,v,s,g,c,u,p,t,w),P(u.length-r.maxAge),v=1/0);else{if(!w&&!T){f===u.length-1&&f++;let E=d++;c[E]=new We(a,+Date.now()),u=[...u,E],v=u.length-1,m=ii(m,v,s,g,c,u,p,t,w)}m=m.map(E=>N(A({},E),{state:s(E.state,Ml)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&P(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ii(m,v,s,g,c,u,p,t,w),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:T,isPaused:w}}}var js=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Ol(c,d.monitor),p=Cl(c,u,l,d.monitor,d),g=mi(mi(r.asObservable().pipe(Fn(1)),o.actions$).pipe(Q(ft)),i,o.liftedActions$).pipe(On(wn)),f=s.pipe(Q(p)),m=eo(d.connectInZone),T=new bn(1);this.liftedStateSubscription=g.pipe(kn(f),zs(m),Dn(({state:j},[v,I])=>{let E=I(j,v);return v.type!==mt&&Js(d)&&(E=bl(E,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,E),{state:E,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(T.next(j),v.type===mt){let I=v.action;a.next(I)}}),this.extensionStartSubscription=o.start$.pipe(zs(m)).subscribe(()=>{this.refresh()});let w=T.asObservable(),P=w.pipe(Q(Zs));Object.defineProperty(P,"state",{value:ur(P,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=w,this.state=P}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(i){this.dispatcher.next(i)}next(i){this.dispatcher.next(i)}error(i){}complete(){}performAction(i){this.dispatch(new We(i,+Date.now()))}refresh(){this.dispatch(new nn)}reset(){this.dispatch(new rn(+Date.now()))}rollback(){this.dispatch(new sn(+Date.now()))}commit(){this.dispatch(new on(+Date.now()))}sweep(){this.dispatch(new an)}toggleAction(i){this.dispatch(new ln(i))}jumpToAction(i){this.dispatch(new un(i))}jumpToState(i){this.dispatch(new cn(i))}importState(i){this.dispatch(new dn(i))}lockChanges(i){this.dispatch(new fn(i))}pauseRecording(i){this.dispatch(new mn(i))}};e.\u0275fac=function(r){return new(r||e)(_(si),_(Ct),_(fr),_(to),_(pr),_($n),_(dr),_(ri))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function zs({ngZone:n,connectInZone:e}){return t=>e?new fi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var Al=new Ze("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Pl(n,e){return!!n||e.monitor!==Hs}function Il(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function no(n={}){return jn([to,si,js,{provide:Fs,useValue:n},{provide:Al,deps:[pn,ri],useFactory:Pl},{provide:pn,useFactory:Il},{provide:ri,deps:[Fs],useFactory:El},{provide:hr,deps:[js],useFactory:Rl},{provide:mr,useExisting:si}])}function Rl(n){return n.state}var lo=Mo(ao(),1);var yn="@ngrx/store/init",Ql="@ngrx/store/update-reducers",Gl=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Vl=(n,e)=>typeof e=="string"&&Gl.test(e)?new Date(e):e,Wl=(n,e)=>e,Hl=()=>typeof window<"u",Zl=n=>n.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),Xl=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?Vl:Wl,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof s[o]=="function"?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?typeof s[o].encrypt=="function"&&typeof s[o].decrypt=="function"?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),e!==void 0){let d=e.getItem(t(o));if(d){c&&(d=c(d));let u=new RegExp("{|\\["),p=d;return(d==="null"||d==="true"||d==="false"||u.test(d.charAt(0)))&&(p=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(p):p})}}return r},{});function co(n,e){return e.reduce((t,i)=>{if(typeof i=="string"||typeof i=="number"){let r=n?.[i];r!==void 0&&(t[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let s=i[r];t[r]=co(n[r],s)}return t},{})}var Yl=(n,e,t,i,r,s)=>{if(s)try{if(s(n)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=n[o],l,c,d;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=n[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let p;o[u].reduce?p=o[u]:o[u].filter&&(p=o[u].filter),p&&(a=co(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(d=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{d&&(a=d(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(i(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&t!==void 0)try{t.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},Jl=(n,e,t)=>((t.type===yn||t.type===Ql)&&e&&(n=(0,lo.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),uo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&Hl())&&(n.storage=localStorage||window.localStorage),n.storageKeySerializer===void 0&&(n.storageKeySerializer=s=>s),n.restoreDates===void 0&&(n.restoreDates=!0);let t=n.mergeReducer;(t===void 0||typeof t!="function")&&(t=Jl);let i=Zl(n.keys),r=n.rehydrate?Xl(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===yn&&!s?a=e(s,o):a=A({},s),a=t(a,r,o),a=e(a,o),o.type!==yn&&Yl(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function ec(n){let t={keys:[{[$.CORE.ROOT]:[$.AUTH.ROOT,$.CONFIGS.ROOT,$.SCRIPT.ROOT]}],rehydrate:!0};return uo(t)(n)}var fo=[ec];var ht=class extends _r{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var po=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=ce(()=>this.actions$.pipe(ue(ne.uploadFile),G(o=>this.apiClient.serviceCall(new ht(o.file)).pipe(Q(a=>ne.uploadFileSuccess({data:a})),Z(a=>W(ne.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=ce(()=>this.actions$.pipe(ue(ne.uploadFileAndCallScript),G(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new ht(o.file)).pipe(G(a=>(this.bannerService.showSuccess("File uploaded successfully."),[ne.uploadFileSuccess({data:a}),Nt.callScript({configs:o.configs})])),Z(a=>W(ne.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(_(we),_(Dt),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var tc={uploading:!1},ho=Ue(tc,V(ne.uploadFile,n=>N(A({},n),{uploading:!0})),V(ne.uploadFileSuccess,(n,{data:e})=>N(A({},n),{uploading:!1,uploadedData:e})),V(ne.uploadFileFailure,(n,{error:e})=>N(A({},n),{uploading:!1,error:e})));var jd=At(Pt,({fileState:n})=>n.uploading),zd=At(Pt,({fileState:n})=>n.uploadedData),$d=At(Pt,({fileState:n})=>n.error);var ic={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},go=Ue(ic,V(K.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case tt.QUANTIZATION:return N(A({},n),{quantizationModels:t,error:void 0});case tt.PRUNING:return N(A({},n),{pruningModels:t,error:void 0});case tt.MACHINE_UNLEARNING:return N(A({},n),{machineUnlearningModels:t,error:void 0});case tt.AWQ:return N(A({},n),{awqModels:t,error:void 0});default:return n}}),V(K.getModelsListFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>N(A({},n),{currentModel:e})),V(K.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>N(A({},n),{error:e})),V(K.getModelMetadataSuccess,(n,{metadata:e})=>N(A({},n),{modelMetadata:e,error:void 0})),V(K.getModelMetadataFailure,(n,{error:e})=>N(A({},n),{modelMetadata:{},error:e})));var oi=class extends be{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var yo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=ce(()=>this.actions$.pipe(ue(Me.loadParameters),G(({arg:s})=>this.apiClient.serviceCall(new oi(s)).pipe(Q(o=>Me.loadParametersSuccess({arg:s,parameters:o.parameters})),Z(o=>W(Me.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(_(we),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();var nc={},So=Ue(nc,V(Me.loadParameters,(n,{arg:e})=>N(A({},n),{[e]:N(A({},n[e]),{loaded:!1,error:null})})),V(Me.loadParametersSuccess,(n,{arg:e,parameters:t})=>N(A({},n),{[e]:{data:t,error:null,loaded:!0}})),V(Me.loadParametersFailure,(n,{arg:e,error:t})=>N(A({},n),{[e]:N(A({},n[e]),{error:t,loaded:!0})})));var vo={auth:br,configs:Wr,script:Ar,uploadFile:ho,charts:Dr,parameters:So,terminal:qr,statistics:Ur,models:go};var ai=class extends be{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var li=class extends be{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var ci=class extends be{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Eo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=ce(()=>this.actions$.pipe(ue(K.getModelsList),G(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new ci(o)).pipe(Q(a=>K.getModelsListSuccess({algorithmType:o,models:a})),Z(a=>W(K.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=ce(()=>this.actions$.pipe(ue(K.getCurrentOrPreviousSelectedModel),G(s=>this.apiClient.serviceCall(new ai(s.algorithmType)).pipe(Q(o=>K.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Z(o=>W(K.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=ce(()=>this.actions$.pipe(ue(K.getModelMetadata),G(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new li(o,a)).pipe(Q(l=>K.getModelMetadataSuccess({metadata:l})),Z(l=>W(K.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(_(we),_(Ke))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let n=e;return n})();function _o(){return[no({maxAge:25,logOnly:Tt(),connectInZone:!0}),ye([Je.forRoot({},{metaReducers:fo}),et.forRoot([]),Je.forFeature("core",vo)]),ye(et.forFeature([Tr,Cr,po,Nr,yo,Br,$r,Eo]))]}var To={providers:[ye(ws),rr(Ps),Rs(),_o(),Ns(),Is(),xs(),tr(),Zn(Xn())]};Jn(xt,To).catch(n=>console.error(n)); diff --git a/frontend/server/modelsmith-build/browser/media/icomoon-ALHP4THO.ttf b/frontend/server/modelsmith-build/browser/media/icomoon-ALHP4THO.ttf new file mode 100644 index 00000000..a0d74981 Binary files /dev/null and b/frontend/server/modelsmith-build/browser/media/icomoon-ALHP4THO.ttf differ diff --git a/frontend/server/modelsmith-build/browser/media/icomoon-FCELVRZF.woff b/frontend/server/modelsmith-build/browser/media/icomoon-FCELVRZF.woff new file mode 100644 index 00000000..aa7741ef Binary files /dev/null and b/frontend/server/modelsmith-build/browser/media/icomoon-FCELVRZF.woff differ diff --git a/frontend/server/modelsmith-build/browser/media/icomoon-JVEKTUSA.svg b/frontend/server/modelsmith-build/browser/media/icomoon-JVEKTUSA.svg new file mode 100644 index 00000000..d8a84739 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/media/icomoon-JVEKTUSA.svg @@ -0,0 +1,99 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/server/modelsmith-build/browser/media/icomoon-N4UB7WA7.eot b/frontend/server/modelsmith-build/browser/media/icomoon-N4UB7WA7.eot new file mode 100644 index 00000000..9e79df31 Binary files /dev/null and b/frontend/server/modelsmith-build/browser/media/icomoon-N4UB7WA7.eot differ diff --git a/frontend/server/modelsmith-build/browser/mock/login/authenticate/post-response-body-200.json b/frontend/server/modelsmith-build/browser/mock/login/authenticate/post-response-body-200.json new file mode 100644 index 00000000..24b6a21c --- /dev/null +++ b/frontend/server/modelsmith-build/browser/mock/login/authenticate/post-response-body-200.json @@ -0,0 +1,7 @@ +{ + "username": "alexander", + "name": "Alexander", + "email": "alewander@cisco.com", + "role": "Data scientist", + "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFsZXhhbmRlciIsIm5hbWUiOiJBbGV4YW5kZXIiLCJlbWFpbCI6ImFsZXdhbmRlckBjaXNjby5jb20iLCJyb2xlIjoiRGF0YSBzY2llbnRpc3QifQ.C38n9d2YIHiHYYJz_TIpxpcKNSrVZjYNGZUjIeP0wD0" +} diff --git a/frontend/server/modelsmith-build/browser/mock/user/logout/put-response-body-200.json b/frontend/server/modelsmith-build/browser/mock/user/logout/put-response-body-200.json new file mode 100644 index 00000000..e69de29b diff --git a/frontend/server/modelsmith-build/browser/polyfills-6EAL64PA.js b/frontend/server/modelsmith-build/browser/polyfills-6EAL64PA.js new file mode 100644 index 00000000..f67a2daa --- /dev/null +++ b/frontend/server/modelsmith-build/browser/polyfills-6EAL64PA.js @@ -0,0 +1,2 @@ +var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/frontend/server/modelsmith-build/browser/styles-H66SMT6H.css b/frontend/server/modelsmith-build/browser/styles-H66SMT6H.css new file mode 100644 index 00000000..b41ebfdc --- /dev/null +++ b/frontend/server/modelsmith-build/browser/styles-H66SMT6H.css @@ -0,0 +1 @@ +html{color:var(--foregrounds-800)}.text-hint{color:var(--foregrounds-700)}.heading-primary-title{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}button.ms-white-stroked-button.mat-mdc-outlined-button{font-size:1rem;line-height:1.375rem;font-weight:400;border-color:var(--backgrounds-50);color:var(--backgrounds-50)}.mat-mdc-button.mat-unthemed{color:var(--foregrounds-700)!important;font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button{border-radius:6px;border-width:1px!important;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.mat-mdc-outlined-button:not(:disabled).mat-primary{border-color:var(--primary-800)}.mat-mdc-outlined-button:not(:disabled).mat-accent{border-color:var(--accent-400);font-weight:700}.mat-mdc-outlined-button:not(:disabled).mat-warn{border-color:var(--error-500);font-weight:700}.mat-button-toggle-group .mat-button-toggle{margin:0 5px;font-size:.875rem}:root{--mat-divider-width: 2px;--mat-divider-color: var(--foregrounds-300)}.vertical-divider{height:100%;width:1px;background-color:var(--backgrounds-50);margin:0 12px}mat-card.ms-card{border-radius:8px;padding:24px;box-shadow:0 3px 8px #00000014;border:2px solid transparent;transition:transform .3s cubic-bezier(.25,.8,.25,1),box-shadow .3s cubic-bezier(.25,.8,.25,1),border-color .3s cubic-bezier(.25,.8,.25,1)}mat-card.ms-card.action-card{cursor:pointer}mat-card.ms-card.action-card:hover{box-shadow:0 5px 15px #0000001f;background-color:var(--backgrounds-80)}mat-card.ms-card.action-card.selected{background-color:var(--backgrounds-80);box-shadow:inset 0 3px 8px #0000001a;border-color:var(--accent-400)}:root{--mat-option-label-text-size: .75rem;--mat-optgroup-label-text-size: .75rem}.form-field-container{display:flex;flex-direction:column}.form-field-container.inline-container{flex-direction:row;align-items:center}.form-field-container .mat-mdc-form-field-hint-wrapper,.form-field-container .mat-mdc-form-field-error-wrapper{padding:0}.form-field-container.ms-white-form-field ::placeholder{color:var(--backgrounds-50)!important;opacity:1}.form-field-container.ms-white-form-field ::-ms-input-placeholder{color:var(--backgrounds-50)!important}.form-field-container.ms-white-form-field mat-label{color:var(--backgrounds-50)}.form-field-container.ms-white-form-field .mat-mdc-text-field-wrapper{background-color:transparent;border:1px solid var(--backgrounds-50)}.form-field-container.ms-white-form-field .mat-mdc-text-field-wrapper:hover{border-color:var(--backgrounds-50)}.form-field-container.ms-white-form-field .mat-mdc-text-field-wrapper .mdc-text-field__input{color:var(--backgrounds-50)}.form-field-container.ms-white-form-field mat-icon{color:var(--backgrounds-50)}.form-field-container mat-label{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;color:var(--foregrounds-750)}.form-field-container mat-form-field .mat-mdc-form-field-icon-prefix>.mat-icon,.form-field-container mat-form-field .mat-mdc-form-field-icon-suffix>.mat-icon{padding:8.5px}.form-field-container mat-form-field .mdc-notched-outline{display:none}.form-field-container mat-form-field .mat-mdc-text-field-wrapper{background-color:var(--backgrounds-50);border:1px solid var(--foregrounds-550);border-radius:6px}.form-field-container mat-form-field .mat-mdc-text-field-wrapper.mdc-text-field--disabled{background-color:var(--backgrounds-200)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper:hover{border-color:var(--foregrounds-800)}.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mat-mdc-select-value,.form-field-container mat-form-field .mat-mdc-text-field-wrapper .mdc-text-field__input{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--foregrounds-550)}mat-table.ms-table .mat-mdc-header-row{background:transparent;font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem;text-align:left;color:var(--foregrounds-800)}mat-table.ms-table .mdc-data-table__cell,mat-table.ms-table .mdc-data-table__header-cell{padding-left:0}mat-table.ms-table .mat-mdc-cell{background:transparent;font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;text-align:left;color:var(--foregrounds-750)}mat-stepper.ms-wizard{background-color:transparent}mat-stepper.ms-wizard .mat-horizontal-stepper-header-container{display:none}.mat-mdc-chip.ms-chip .mdc-evolution-chip__text-label{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.mat-mdc-chip.ms-chip.mat-accent.mat-mdc-standard-chip{background-color:var(--accent-50)}.mat-mdc-chip.ms-chip.mat-primary.mat-mdc-standard-chip{background-color:var(--primary-100)}.mat-mdc-chip.ms-chip.mat-warn.mat-mdc-standard-chip{background-color:var(--error-200)}.ms-mat-menu{--mat-menu-item-label-text-size: .875rem}.mdc-label{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.ms-checkbox-white{--mdc-checkbox-unselected-hover-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-focus-icon-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-pressed-state-layer-color: var(--backgrounds-300) !important;--mdc-checkbox-unselected-icon-color: var(--backgrounds-50) !important}.ms-checkbox-white .mdc-label{color:var(--backgrounds-50)}.mat-mdc-tooltip:before{background-color:var(--tooltip);height:12px;width:12px;rotate:45deg;right:50%!important;left:auto!important;transform:translate(4px,-4px)}.mdc-tooltip__surface{background-color:var(--tooltip)!important}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip:before{top:auto;bottom:-6px!important}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip:before{top:-6px!important;bottom:auto}.mat-mdc-snack-bar-container{--mdc-snackbar-container-color: rgba(255, 255, 255, 1) !important;--mdc-snackbar-supporting-text-color: rgba(35, 40, 46, 1) !important}.notification-panel-success .mdc-snackbar__surface{border-left:6px solid var(--success-500)}.notification-panel-error .mdc-snackbar__surface{border-left:6px solid var(--error-500)}.notification-panel-warning .mdc-snackbar__surface{border-left:6px solid var(--warning-500)}.notification-panel-info .mdc-snackbar__surface{border-left:6px solid var(--primary-800)}.dialog-backdrop,.drawer-backdrop{background-color:var(--foregrounds-500-alpha)}.mdc-list-item__primary-text{width:100%}.mat-mdc-optgroup-label{padding:5px 16px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-h1,.mat-headline-5,body .mat-h1,body .mat-headline-5,body h1{font:700 1.5rem/2.125rem Montserrat;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,body .mat-h2,body .mat-headline-6,body h2{font:500 1.25rem/2rem Montserrat;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,body .mat-h3,body .mat-subtitle-1,body h3{font:400 1rem/1.75rem Montserrat;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,body .mat-h4,body .mat-body-1,body h4{font:400 1rem/1.5rem Montserrat;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,body .mat-h5,body h5{font:400 .72625rem/1.25rem Montserrat;margin:0 0 12px}.mat-h6,body .mat-h6,body h6{font:400 .58625rem/1.25rem Montserrat;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,body .mat-body-strong,body .mat-subtitle-2{font:500 .875rem/1.375rem Montserrat;letter-spacing:.0071428571em}.mat-body,.mat-body-2,body .mat-body,body .mat-body-2,body{font:400 .875rem/1.25rem Montserrat;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,body .mat-body p,body .mat-body-2 p,body p{margin:0 0 12px}.mat-small,.mat-caption,body .mat-small,body .mat-caption{font:400 .75rem/1.25rem Montserrat;letter-spacing:.0333333333em}.mat-headline-1,body .mat-headline-1{font:300 7rem/7rem Montserrat;letter-spacing:-.05em;margin:0 0 56px}.mat-headline-2,body .mat-headline-2{font:400 3.5rem/3.5rem Montserrat;letter-spacing:-.02em;margin:0 0 64px}.mat-headline-3,body .mat-headline-3{font:400 2.8125rem/3rem Montserrat;letter-spacing:-.005em;margin:0 0 64px}.mat-headline-4,body .mat-headline-4{font:400 2.125rem/2.5rem Montserrat;letter-spacing:normal;margin:0 0 64px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--backgrounds-100)}::-webkit-scrollbar-thumb{background:var(--backgrounds-500);border-radius:16px}::-webkit-scrollbar-thumb:hover{background:var(--backgrounds-700)}@font-face{font-family:icomoon;src:url("./media/icomoon-N4UB7WA7.eot?39lrb6");src:url("./media/icomoon-N4UB7WA7.eot?39lrb6#iefix") format("embedded-opentype"),url("./media/icomoon-ALHP4THO.ttf?39lrb6") format("truetype"),url("./media/icomoon-FCELVRZF.woff?39lrb6") format("woff"),url("./media/icomoon-JVEKTUSA.svg?39lrb6#icomoon") format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-],[class*=" icon-"]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-Admin:before{content:"\e955"}.icon-Environmental:before{content:"\e956"}.icon-Inventory:before{content:"\e957"}.icon-Systems-Manager:before{content:"\e958"}.icon-SelectedFalse:before{content:"\e958"}.icon-Alerts-Info .path1:before{content:"\e900";color:#5b92f0}.icon-Alerts-Info .path2:before{content:"\e901";margin-left:-1em;color:#fff}.icon-Alerts-Info .path3:before{content:"\e902";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path1:before{content:"\e903";color:#c24632}.icon-Alerts-Negative .path2:before{content:"\e904";margin-left:-1em;color:#fff}.icon-Alerts-Negative .path3:before{content:"\e905";margin-left:-1em;color:#fff}.icon-Alerts-Positive .path1:before{content:"\e906";color:#45991f}.icon-Alerts-Positive .path2:before{content:"\e907";margin-left:-1em;color:#fff}.icon-Alerts-Warning .path1:before{content:"\e908";color:#d9b216}.icon-Alerts-Warning .path2:before{content:"\e909";margin-left:-1em;color:#464c54}.icon-Alerts-Warning .path3:before{content:"\e90a";margin-left:-1em;color:#464c54}.icon-ArrowDown:before{content:"\e90b"}.icon-ArrowLeft:before{content:"\e90c"}.icon-ArrowRight:before{content:"\e90d"}.icon-ArrowSquareOut:before{content:"\e90e"}.icon-ArrowUp:before{content:"\e90f"}.icon-Bell:before{content:"\e910"}.icon-CalendarBlank:before{content:"\e911"}.icon-CaretDoubleLeft:before{content:"\e912"}.icon-CaretDoubleRight:before{content:"\e913"}.icon-CaretDown:before{content:"\e914"}.icon-CaretLeft:before{content:"\e915"}.icon-CaretRight:before{content:"\e916"}.icon-CaretUp:before{content:"\e917"}.icon-Check:before{content:"\e918"}.icon-CheckCircle:before{content:"\e919"}.icon-Clock:before{content:"\e91a"}.icon-Copy:before{content:"\e91b"}.icon-Crosshair:before{content:"\e91c"}.icon-DotsSix:before{content:"\e91d"}.icon-DotsThree:before{content:"\e91e"}.icon-DotsThreeVertical:before{content:"\e91f"}.icon-DownloadSimple:before{content:"\e920"}.icon-DropdownCaretDown:before{content:"\e921"}.icon-DropdownCaretRight:before{content:"\e922"}.icon-DropdownCaretUp:before{content:"\e923"}.icon-EnvelopeSimple:before{content:"\e924"}.icon-Eye:before{content:"\e925"}.icon-EyeSlash:before{content:"\e926"}.icon-FunnelSimple:before{content:"\e927"}.icon-GearSix:before{content:"\e928"}.icon-Info:before{content:"\e929"}.icon-Lightning:before{content:"\e92a"}.icon-ListBullets:before{content:"\e92b"}.icon-Loader:before{content:"\e92c"}.icon-Lock:before{content:"\e92d"}.icon-MagicWand:before{content:"\e92e"}.icon-Magnet:before{content:"\e92f"}.icon-MagnifyingGlass:before{content:"\e930"}.icon-MapTrifold:before{content:"\e931"}.icon-Minus:before{content:"\e932"}.icon-Nav:before{content:"\e933"}.icon-Paperclip:before{content:"\e934"}.icon-Passthrough:before{content:"\e935"}.icon-PencilSimple:before{content:"\e936"}.icon-Placeholder:before{content:"\e937"}.icon-Plus:before{content:"\e938"}.icon-Printer:before{content:"\e939"}.icon-Prohibit:before{content:"\e93a"}.icon-Question:before{content:"\e93b"}.icon-Refresh:before{content:"\e93c"}.icon-Rocket:before{content:"\e93d"}.icon-SignOut:before{content:"\e93e"}.icon-Sort:before{content:"\e93f"}.icon-SortDown .path1:before{content:"\e940";color:#000}.icon-SortDown .path2:before{content:"\e941";margin-left:-1em;color:#232323}.icon-SortUp .path1:before{content:"\e942";color:#232323}.icon-SortUp .path2:before{content:"\e943";margin-left:-1em;color:#000}.icon-Stack:before{content:"\e944"}.icon-StackPort:before{content:"\e945"}.icon-TrashSimple:before{content:"\e946"}.icon-TrendDown:before{content:"\e947"}.icon-TrendUp:before{content:"\e948"}.icon-UploadSimple:before{content:"\e949"}.icon-User:before{content:"\e94a"}.icon-Users:before{content:"\e94b"}.icon-WifiHigh:before{content:"\e94c"}.icon-WifiLightning:before{content:"\e94d"}.icon-WifiLow:before{content:"\e94e"}.icon-WifiMedium:before{content:"\e94f"}.icon-WifiNone:before{content:"\e950"}.icon-WifiSlash:before{content:"\e951"}.icon-WifiX:before{content:"\e952"}.icon-X:before{content:"\e953"}.icon-XCircle:before{content:"\e954"}mat-icon{font-size:1.5rem}mat-icon.mat-primary{color:var(--primary-800)!important}mat-icon.mat-complementary{color:var(--complementary-800)!important}mat-icon.mat-gray{color:var(--foregrounds-600)!important}mat-icon.mat-white{color:var(--backgrounds-50)!important}mat-icon.mat-accent{color:var(--accent-400)!important}mat-icon.mat-success{color:var(--success-500)!important}mat-icon.mat-warn{color:var(--warning-500)!important}mat-icon.mat-error{color:var(--error-500)!important}button[disabled] mat-icon{color:var(--backgroudns-800)!important}button[disabled] .scale-on-hover:hover{transform:none}.scale-on-hover{cursor:pointer;transition:transform .3s ease;display:inline-flex;align-items:center;justify-content:center}.scale-on-hover:hover{transform:scale(1.1);transform-origin:center}.key-value-container.single{display:grid;grid-template-columns:repeat(1,1fr)}.key-value-container.two-per-row{display:grid;grid-template-columns:repeat(2,1fr)}.key-value-container.three-per-row{display:grid;grid-template-columns:repeat(3,1fr)}.key-value-container.flexible{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.key-value-container.dense{display:flex;flex-wrap:wrap;justify-content:space-between}.key-value-container.dense .key-value-pair{flex-basis:calc(50% - 6px);margin-bottom:12px}@media (max-width: 768px){.key-value-container.dense .key-value-pair{flex-basis:100%}}.key-value-pair{display:flex;align-items:center;padding:6px 0}.key-value-pair.space-between{display:flex;justify-content:space-between;align-items:center}.key-value-key{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.key-value-value{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400;margin-left:5px}a{cursor:pointer;color:var(--primary-800);text-decoration:none;font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}a:hover{color:var(--primary-600)}.page-wrapper{display:flex;justify-content:space-between;gap:20px;height:100%}.page-wrapper .left{display:flex;flex-direction:column;width:45%;gap:20px}.page-wrapper .right{width:55%}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.relative{position:relative}.col-span-1{grid-column:span 1 / span 1}.col-span-10{grid-column:span 10 / span 10}.col-span-12{grid-column:span 12 / span 12}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-\[22px\]{margin-bottom:22px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-\[-8px\]{margin-left:-8px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-\[2px\]{margin-top:2px}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-9{height:2.25rem}.w-56{width:14rem}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.p-2{padding:.5rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-base{font-size:1rem;line-height:1.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}html,body{height:100%;background-color:var(--backgrounds-100)}body{margin:0} diff --git a/frontend/server/modelsmith-build/browser/theme-RQ3A5USC.css b/frontend/server/modelsmith-build/browser/theme-RQ3A5USC.css new file mode 100644 index 00000000..400a8121 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/theme-RQ3A5USC.css @@ -0,0 +1 @@ +@charset "UTF-8";.mat-theme-loaded-marker{display:none}html{--mat-ripple-color: rgba(0, 0, 0, .1)}html{--mat-option-selected-state-label-text-color: #1d69cc;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #6250d4;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #1d69cc;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #1d69cc;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #6250d4;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #6250d4;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-option-label-text-font: Montserrat;--mat-option-label-text-line-height: 1.5rem;--mat-option-label-text-size: 1rem;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Montserrat;--mat-optgroup-label-text-line-height: 1.5rem;--mat-optgroup-label-text-size: 1rem;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-keep-touch-target: false;--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px}html{--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-protected-button-container-shadow-color: #000;--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #1d69cc;--mat-text-button-state-layer-color: #1d69cc;--mat-text-button-ripple-color: rgba(29, 105, 204, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #6250d4;--mat-text-button-state-layer-color: #6250d4;--mat-text-button-ripple-color: rgba(98, 80, 212, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #1d69cc;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #6250d4;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #1d69cc;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #6250d4;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #1d69cc;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #1d69cc;--mat-outlined-button-ripple-color: rgba(29, 105, 204, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #6250d4;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #6250d4;--mat-outlined-button-ripple-color: rgba(98, 80, 212, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block}html{--mdc-text-button-label-text-font: Inter;--mdc-text-button-label-text-size: .875rem;--mdc-text-button-label-text-tracking: normal;--mdc-text-button-label-text-weight: 700;--mdc-text-button-label-text-transform: none;--mdc-filled-button-label-text-font: Inter;--mdc-filled-button-label-text-size: .875rem;--mdc-filled-button-label-text-tracking: normal;--mdc-filled-button-label-text-weight: 700;--mdc-filled-button-label-text-transform: none;--mdc-outlined-button-label-text-font: Inter;--mdc-outlined-button-label-text-size: .875rem;--mdc-outlined-button-label-text-tracking: normal;--mdc-outlined-button-label-text-weight: 700;--mdc-outlined-button-label-text-transform: none;--mdc-protected-button-label-text-font: Inter;--mdc-protected-button-label-text-size: .875rem;--mdc-protected-button-label-text-tracking: normal;--mdc-protected-button-label-text-weight: 700;--mdc-protected-button-label-text-transform: none}html{--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12}html{--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0}html{--mat-standard-button-toggle-height: 48px}html{--mat-legacy-button-toggle-label-text-font: Montserrat;--mat-legacy-button-toggle-label-text-line-height: 1.5rem;--mat-legacy-button-toggle-label-text-size: 1rem;--mat-legacy-button-toggle-label-text-tracking: .03125em;--mat-legacy-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-font: Montserrat;--mat-standard-button-toggle-label-text-line-height: 1.5rem;--mat-standard-button-toggle-label-text-size: 1rem;--mat-standard-button-toggle-label-text-tracking: .03125em;--mat-standard-button-toggle-label-text-weight: 400}html{--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px}html{--mdc-filled-text-field-caret-color: #1d69cc;--mdc-filled-text-field-focus-active-indicator-color: #1d69cc;--mdc-filled-text-field-focus-label-text-color: rgba(29, 105, 204, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #1d69cc;--mdc-outlined-text-field-focus-outline-color: #1d69cc;--mdc-outlined-text-field-focus-label-text-color: rgba(29, 105, 204, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(29, 105, 204, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #6250d4;--mdc-filled-text-field-focus-active-indicator-color: #6250d4;--mdc-filled-text-field-focus-label-text-color: rgba(98, 80, 212, .87);--mdc-outlined-text-field-caret-color: #6250d4;--mdc-outlined-text-field-focus-outline-color: #6250d4;--mdc-outlined-text-field-focus-label-text-color: rgba(98, 80, 212, .87);--mat-form-field-focus-select-arrow-color: rgba(98, 80, 212, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mdc-filled-text-field-label-text-font: Montserrat;--mdc-filled-text-field-label-text-size: 1rem;--mdc-filled-text-field-label-text-tracking: .03125em;--mdc-filled-text-field-label-text-weight: 400;--mdc-outlined-text-field-label-text-font: Montserrat;--mdc-outlined-text-field-label-text-size: 1rem;--mdc-outlined-text-field-label-text-tracking: .03125em;--mdc-outlined-text-field-label-text-weight: 400;--mat-form-field-container-text-font: Montserrat;--mat-form-field-container-text-line-height: 1.5rem;--mat-form-field-container-text-size: 1rem;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 1rem;--mat-form-field-subscript-text-font: Montserrat;--mat-form-field-subscript-text-line-height: 1.25rem;--mat-form-field-subscript-text-size: .75rem;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-base-elevation-level: 8}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font: Montserrat;--mat-menu-item-label-text-size: 1rem;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 1.5rem;--mat-menu-item-label-text-weight: 400}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(29, 105, 204, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(98, 80, 212, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-select-trigger-text-font: Montserrat;--mat-select-trigger-text-line-height: 1.5rem;--mat-select-trigger-text-size: 1rem;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mdc-icon-button-icon-size: 24px}html{--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #1d69cc;--mat-icon-button-state-layer-color: #1d69cc;--mat-icon-button-ripple-color: rgba(29, 105, 204, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #6250d4;--mat-icon-button-state-layer-color: #6250d4;--mat-icon-button-ripple-color: rgba(98, 80, 212, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mat-table-header-headline-font: Montserrat;--mat-table-header-headline-line-height: 1.375rem;--mat-table-header-headline-size: .875rem;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Montserrat;--mat-table-row-item-label-text-line-height: 1.25rem;--mat-table-row-item-label-text-size: .875rem;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Montserrat;--mat-table-footer-supporting-text-line-height: 1.25rem;--mat-table-footer-supporting-text-size: .875rem;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px}html{--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54)}html{--mat-card-title-text-font: Montserrat;--mat-card-title-text-line-height: 2rem;--mat-card-title-text-size: 1.25rem;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Montserrat;--mat-card-subtitle-text-line-height: 1.375rem;--mat-card-subtitle-text-size: .875rem;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #1d69cc;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #1d69cc;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #1d69cc;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #6250d4;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #6250d4;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #6250d4;--mat-stepper-header-edit-state-icon-foreground-color: white}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-stepper-container-text-font: Montserrat;--mat-stepper-header-label-text-font: Montserrat;--mat-stepper-header-label-text-size: .875rem;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 1rem;--mat-stepper-header-selected-state-label-text-size: 1rem;--mat-stepper-header-selected-state-label-text-weight: 400}.mat-mdc-standard-chip{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #1d69cc;--mdc-chip-elevated-selected-container-color: #1d69cc;--mdc-chip-elevated-disabled-container-color: #1d69cc;--mdc-chip-flat-disabled-selected-container-color: #1d69cc;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #6250d4;--mdc-chip-elevated-selected-container-color: #6250d4;--mdc-chip-elevated-disabled-container-color: #6250d4;--mdc-chip-flat-disabled-selected-container-color: #6250d4;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}.mat-mdc-standard-chip{--mdc-chip-label-text-font: Montserrat;--mdc-chip-label-text-line-height: 1.25rem;--mdc-chip-label-text-size: .875rem;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16}html{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #6250d4;--mdc-checkbox-selected-hover-icon-color: #6250d4;--mdc-checkbox-selected-icon-color: #6250d4;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #6250d4;--mdc-checkbox-selected-hover-state-layer-color: #6250d4;--mdc-checkbox-selected-pressed-state-layer-color: #6250d4;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #1d69cc;--mdc-checkbox-selected-hover-icon-color: #1d69cc;--mdc-checkbox-selected-icon-color: #1d69cc;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #1d69cc;--mdc-checkbox-selected-hover-state-layer-color: #1d69cc;--mdc-checkbox-selected-pressed-state-layer-color: #1d69cc;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block}html{--mat-checkbox-label-text-font: Montserrat;--mat-checkbox-label-text-line-height: 1.25rem;--mat-checkbox-label-text-size: .875rem;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mdc-snackbar-container-shape: 4px}html{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #6250d4}html{--mdc-snackbar-supporting-text-font: Montserrat;--mdc-snackbar-supporting-text-line-height: 1.25rem;--mdc-snackbar-supporting-text-size: .875rem;--mdc-snackbar-supporting-text-weight: 400}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px}html{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html{--mdc-plain-tooltip-supporting-text-font: Montserrat;--mdc-plain-tooltip-supporting-text-size: .75rem;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}html{--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #1d69cc;--mdc-linear-progress-track-color: rgba(29, 105, 204, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #6250d4;--mdc-linear-progress-track-color: rgba(98, 80, 212, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px}html{--mdc-circular-progress-active-indicator-color: #1d69cc}html .mat-accent{--mdc-circular-progress-active-indicator-color: #6250d4}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1}html .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}html{--mdc-switch-selected-focus-state-layer-color: #228df2;--mdc-switch-selected-handle-color: #228df2;--mdc-switch-selected-hover-state-layer-color: #228df2;--mdc-switch-selected-pressed-state-layer-color: #228df2;--mdc-switch-selected-focus-handle-color: #184aad;--mdc-switch-selected-hover-handle-color: #184aad;--mdc-switch-selected-pressed-handle-color: #184aad;--mdc-switch-selected-focus-track-color: #65b9ff;--mdc-switch-selected-hover-track-color: #65b9ff;--mdc-switch-selected-pressed-track-color: #65b9ff;--mdc-switch-selected-track-color: #65b9ff;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color: black;--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mat-switch-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #2c2ec6;--mdc-switch-selected-handle-color: #2c2ec6;--mdc-switch-selected-hover-state-layer-color: #2c2ec6;--mdc-switch-selected-pressed-state-layer-color: #2c2ec6;--mdc-switch-selected-focus-handle-color: #0018a8;--mdc-switch-selected-hover-handle-color: #0018a8;--mdc-switch-selected-pressed-handle-color: #0018a8;--mdc-switch-selected-focus-track-color: #816fdb;--mdc-switch-selected-hover-track-color: #816fdb;--mdc-switch-selected-pressed-track-color: #816fdb;--mdc-switch-selected-track-color: #816fdb}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px}html .mat-mdc-slide-toggle{--mat-switch-label-text-font: Montserrat;--mat-switch-label-text-line-height: 1.25rem;--mat-switch-label-text-size: .875rem;--mat-switch-label-text-tracking: .0178571429em;--mat-switch-label-text-weight: 400}html{--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-expansion-header-text-font: Montserrat;--mat-expansion-header-text-size: .875rem;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Montserrat;--mat-expansion-container-text-line-height: 1.25rem;--mat-expansion-container-text-size: .875rem;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-form-field-container-height: 40px;--mat-form-field-filled-label-display: none;--mat-form-field-container-vertical-padding: 8px;--mat-form-field-filled-with-label-container-padding-top: 8px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mat-icon-button-touch-target-display: none}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 32px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:4px}:root{--primary-50: #e3f3ff;--primary-100: #bce0ff;--primary-200: #91cdff;--primary-300: #65b9ff;--primary-400: #42aaff;--primary-500: #239bff;--primary-600: #228df2;--primary-700: #2774d9;--primary-800: #1d69cc;--primary-900: #184aad;--primary-contrast-50: white;--primary-contrast-100: white;--primary-contrast-200: white;--primary-contrast-300: white;--primary-contrast-400: white;--primary-contrast-500: white;--primary-contrast-600: white;--primary-contrast-700: white;--primary-contrast-800: white;--primary-contrast-900: white;--accent-50: #ebedff;--accent-100: #cac1ef;--accent-200: #a798e5;--accent-300: #816fdb;--accent-400: #6250d4;--accent-500: #3b33cc;--accent-600: #2c2ec6;--accent-700: #0527bd;--accent-800: #0022b6;--accent-900: #0018a8;--accent-contrast-50: white;--accent-contrast-100: white;--accent-contrast-200: white;--accent-contrast-300: white;--accent-contrast-400: white;--accent-contrast-500: white;--accent-contrast-600: white;--accent-contrast-700: white;--accent-contrast-800: white;--accent-contrast-900: white;--complementary-50: #fce5ee;--complementary-100: #f8bed5;--complementary-200: #f595b9;--complementary-300: #f26b9e;--complementary-400: #ef4c87;--complementary-500: #ee3272;--complementary-600: #dc2f6e;--complementary-700: #c62c68;--complementary-800: #b02863;--complementary-900: #8a2259;--success-50: #d7f6ee;--success-100: #9ae9d3;--success-200: #40dab6;--success-300: #00c899;--success-400: #00b885;--success-500: #00a873;--success-600: #009a66;--success-700: #008956;--success-800: #007948;--success-900: #005c2c;--warning-100: #fff4dd;--warning-200: #ffe9bb;--warning-300: #ffdf99;--warning-400: #ffd477;--warning-500: #ffc955;--warning-600: #cca144;--warning-700: #997933;--warning-800: #665022;--warning-900: #332811;--error-100: #ffdee2;--error-200: #febdc5;--error-300: #fe9ba9;--error-400: #fd7a8c;--error-500: #f44336;--error-600: #ca4759;--error-700: #983543;--error-800: #65242c;--error-900: #331216;--backgrounds-50: #ffffff;--backgrounds-80: #fafafa;--backgrounds-100: #f6f6f6;--backgrounds-150: #eaeaea;--backgrounds-200: #f1f1f1;--backgrounds-300: #e5e5e5;--backgrounds-400: #c2c2c2;--backgrounds-500: #a4a4a4;--backgrounds-600: #7a7a7a;--backgrounds-700: #666666;--backgrounds-800: #474747;--backgrounds-900: #000000;--foregrounds-50: #f5fcff;--foregrounds-100: #f0f8ff;--foregrounds-150: #f0f1f2;--foregrounds-200: #ebf3fd;--foregrounds-300: #e1e4e8;--foregrounds-400: #c1c8d3;--foregrounds-500: #a3abb4;--foregrounds-500-alpha: rgba(163, 171, 180, .6901960784);--foregrounds-550: #889099;--foregrounds-600: #7e868f;--foregrounds-650: #79818a;--foregrounds-700: #656c75;--foregrounds-750: #596069;--foregrounds-800: #23282e;--foregrounds-900: #242a32;--tooltip: #373c42;--terminal-color: #d0d4d9;--login-title: #27a7de;--header-left: #3fd9b6;--header-right: #28a9dc;--metrics-sparsity: #29aadc;--metrics-accuracy: #40dab7;--metrics-loss: #b02863;--metrics-testing: #f1c40f} diff --git a/frontend/server/modelsmith-build/browser/worker-UXAYXL2U.js b/frontend/server/modelsmith-build/browser/worker-UXAYXL2U.js new file mode 100644 index 00000000..924d7f37 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/worker-UXAYXL2U.js @@ -0,0 +1,2 @@ +var l=new Map([["error","\x1B[38;5;124m"],["success","\x1B[38;5;22m"],["warning","\x1B[38;5;136m"],["info","\x1B[38;5;0m"]]);var c=e=>{let t=l.get(e.type)||"\x1B[38;5;0m",r=e.data.endsWith(` +`)?e.data.slice(0,-1):e.data;return`${t}${r}\x1B[0m`},m=(e,t)=>{if(!t)return e;let r=e.toLowerCase(),i=t.toLowerCase(),a="\x1B[48;5;220m",o="\x1B[0m",g=[],n=0,s;for(;(s=r.indexOf(i,n))!==-1;)g.push(e.slice(n,s),a,e.slice(s,s+t.length),o),n=s+t.length;return g.push(e.slice(n)),g.join("")};addEventListener("message",({data:e})=>{let{messages:t,searchTerm:r}=e,i=t.map(a=>{let o=c(a);return r&&(o=m(o,r)),o});postMessage(i)});