diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f1b95d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,108 @@ +FROM archlinux:base-devel AS build + + +###################################################################################### +## +## buyilding-end install applications: +## +###################################################################################### +# update system +RUN pacman -Syu --noconfirm && pacman-db-upgrade +# install package +RUN pacman -S --noconfirm ant unzip wget openssh git gawk curl tar bash +#install jdk-openjdk java-openjfx +RUN pacman -S --noconfirm jdk-openjdk java-openjfx +# intall maven & gradle +RUN pacman -S --noconfirm maven gradle +# intall npm +RUN pacman -S --noconfirm npm +# clean all the caches +RUN pacman -Scc --noconfirm + +ENV PATH_ROOT $PATH + +###################################################################################### +## +## Build back: +## +###################################################################################### +COPY back/pom.xml /tmp/back/ +COPY back/src /tmp/back/src/ +WORKDIR /tmp/back/ +RUN mvn clean compile assembly:single + +###################################################################################### +## +## Build front: +## +###################################################################################### +ENV PATH /tmp/front/node_modules/.bin:$PATH_ROOT + +ADD front/package-lock.json /tmp/front/ +ADD front/package.json /tmp/front/ +ADD front/karma.conf.js /tmp/front/ +ADD front/protractor.conf.js /tmp/front/ +WORKDIR /tmp/front/ + +# install and cache app dependencies +RUN npm install + +ADD front/e2e /tmp/sso/front +ADD front/tsconfig.json /tmp/front/ +ADD front/tslint.json /tmp/front/ +ADD front/angular.json /tmp/front/ +ADD front/src /tmp/front/src + +# generate build +RUN ng build --output-path=dist --configuration=production --base-href=/karso/ --deploy-url=/karso/ +###################################################################################### +## +## Build sso: +## +###################################################################################### +ENV PATH /tmp/sso/node_modules/.bin:$PATH_ROOT + +ADD sso/package-lock.json /tmp/sso/ +ADD sso/package.json /tmp/sso/ +ADD sso/karma.conf.js /tmp/sso/ +ADD sso/protractor.conf.js /tmp/sso/ +WORKDIR /tmp/sso/ + +# install and cache app dependencies +RUN npm install + +ADD sso/e2e /tmp/sso/e2e +ADD sso/tsconfig.json /tmp/sso/ +ADD sso/tslint.json /tmp/sso/ +ADD sso/angular.json /tmp/sso/ +ADD sso/src /tmp/sso/src + +# generate build +RUN ng build --output-path=dist --configuration=production --base-href=/karso/ --deploy-url=/karso/ + +###################################################################################### +## +## Production area: +## +###################################################################################### + +FROM bellsoft/liberica-openjdk-alpine:latest +ENV LANG=C.UTF-8 + +# add wget to manage the health check... +RUN apk add --no-cache wget + +RUN mkdir /application/ +#copy REST API from back: +COPY --from=build /tmp/back/out/maven/*.jar /application/application.jar +# add front software: +RUN mkdir /application/sso/ +COPY --from=build /tmp/sso/dist /application/sso/ +RUN mkdir /application/karauth/ +COPY --from=build /tmp/front/dist /application/karauth/ + +WORKDIR /application/ + +EXPOSE 17080 + +CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.oauth.WebLauncher"] diff --git a/back/Dockerfile b/back/Dockerfile index e95ad11..97b783c 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -17,5 +17,4 @@ WORKDIR /application/ EXPOSE 17080 -CMD ["java", , "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.oauth.WebLauncher"] - +CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.oauth.WebLauncher"] diff --git a/back/karauth_back.iml b/back/karauth_back.iml new file mode 100644 index 0000000..e989b6e --- /dev/null +++ b/back/karauth_back.iml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/back/src/org/kar/oauth/WebLauncher.java b/back/src/org/kar/oauth/WebLauncher.java index 7076b9a..909c4b9 100755 --- a/back/src/org/kar/oauth/WebLauncher.java +++ b/back/src/org/kar/oauth/WebLauncher.java @@ -2,11 +2,11 @@ package org.kar.oauth; import org.kar.oauth.filter.OptionFilter; +import org.kar.oauth.api.Front; +import org.kar.oauth.api.FrontSSO; import org.kar.oauth.api.HealthCheck; -import org.kar.oauth.api.PublicKeyResource; import org.kar.oauth.api.UserResource; import org.kar.oauth.db.DBConfig; -import org.kar.oauth.db.DBEntry; import org.kar.oauth.filter.AuthenticationFilter; import org.kar.oauth.filter.CORSFilter; import org.kar.oauth.util.ConfigVariable; @@ -18,8 +18,6 @@ import org.glassfish.jersey.server.ResourceConfig; import javax.ws.rs.core.UriBuilder; import java.net.URI; -import java.sql.SQLException; -import java.util.ArrayList; public class WebLauncher { private WebLauncher() {} @@ -60,6 +58,8 @@ public class WebLauncher { // add default resource: rc.registerClasses(UserResource.class); //rc.registerClasses(PublicKeyResource.class); + rc.registerClasses(Front.class); + rc.registerClasses(FrontSSO.class); rc.registerClasses(HealthCheck.class); // add jackson to be discover when we are ins stand-alone server rc.register(JacksonFeature.class); diff --git a/back/src/org/kar/oauth/api/Front.java b/back/src/org/kar/oauth/api/Front.java new file mode 100644 index 0000000..888947e --- /dev/null +++ b/back/src/org/kar/oauth/api/Front.java @@ -0,0 +1,101 @@ +package org.kar.oauth.api; + +import java.awt.Graphics2D; +import java.awt.image.BufferedImage; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; + +import javax.annotation.security.PermitAll; +import javax.annotation.security.RolesAllowed; +import javax.imageio.ImageIO; +import javax.ws.rs.*; +import javax.ws.rs.core.CacheControl; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.ResponseBuilder; +import javax.ws.rs.core.SecurityContext; + +import org.kar.oauth.util.ConfigVariable; + + +@Path("/karauth") +public class Front { + private String getExtension(String filename) { + if (filename.contains(".")) { + return filename.substring(filename.lastIndexOf(".") + 1); + } + return ""; + } + private Response retrive(String fileName) throws Exception { + String filePathName = ConfigVariable.getSsoFolder() + File.separator + fileName; + String extention = getExtension(filePathName); + String mineType = null; + if (extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg")) { + mineType = "image/jpeg"; + } else if (extention.equalsIgnoreCase("gif")) { + mineType = "image/gif"; + } else if (extention.equalsIgnoreCase("png")) { + mineType = "image/png"; + } else if (extention.equalsIgnoreCase("svg")) { + mineType = "image/svg+xml"; + } else if (extention.equalsIgnoreCase("webp")) { + mineType = "image/webp"; + } else if (extention.equalsIgnoreCase("js")) { + mineType = "application/javascript"; + } else if (extention.equalsIgnoreCase("json")) { + mineType = "application/json"; + } else if (extention.equalsIgnoreCase("ico")) { + mineType = "image/x-icon"; + } else if (extention.equalsIgnoreCase("html")) { + mineType = "text/html"; + } else if (extention.equalsIgnoreCase("css")) { + mineType = "text/css"; + } else { + return Response.status(403). + entity("Not supported model: '" + fileName + "'"). + type("text/plain"). + build(); + } + // reads input image + File download = new File(filePathName); + if (!download.exists()) { + return Response.status(404). + entity("Not Found: '" + fileName + "'"). + type("text/plain"). + build(); + } + ResponseBuilder response = Response.ok((Object)download); + response.header("Content-Disposition", "attachment; filename=" + fileName); + CacheControl cc = new CacheControl(); + cc.setMaxAge(3600); + cc.setNoCache(false); + response.cacheControl(cc); + response.type(mineType); + + return response.build(); + } + + @GET + @Path("{baseA}") + @PermitAll() + //@Produces(MediaType.APPLICATION_OCTET_STREAM) + //@CacheMaxAge(time = 10, unit = TimeUnit.DAYS) + public Response retrive1(@PathParam("baseA") String baseA) throws Exception { + return retrive(baseA); + } + @GET + @Path("{baseA}/assets/images/{baseB}") + @PermitAll() + public Response retrive2(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { + return retrive(baseA + File.separator + "assets" + File.separator + "images" + File.separator + baseB); + } + @GET + @Path("{baseA}/assets/js_3rd_party/{baseB}") + @PermitAll() + public Response retrive3(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { + return retrive(baseA + File.separator + "assets" + File.separator + "js_3rd_party" + File.separator + baseB); + } +} diff --git a/back/src/org/kar/oauth/api/FrontSSO.java b/back/src/org/kar/oauth/api/FrontSSO.java new file mode 100644 index 0000000..86ffa9b --- /dev/null +++ b/back/src/org/kar/oauth/api/FrontSSO.java @@ -0,0 +1,101 @@ +package org.kar.oauth.api; + +import java.awt.Graphics2D; +import java.awt.image.BufferedImage; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; + +import javax.annotation.security.PermitAll; +import javax.annotation.security.RolesAllowed; +import javax.imageio.ImageIO; +import javax.ws.rs.*; +import javax.ws.rs.core.CacheControl; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.ResponseBuilder; +import javax.ws.rs.core.SecurityContext; + +import org.kar.oauth.util.ConfigVariable; + + +@Path("/karso") +public class FrontSSO { + private String getExtension(String filename) { + if (filename.contains(".")) { + return filename.substring(filename.lastIndexOf(".") + 1); + } + return ""; + } + private Response retrive(String fileName) throws Exception { + String filePathName = ConfigVariable.getSsoFolder() + File.separator + fileName; + String extention = getExtension(filePathName); + String mineType = null; + if (extention.equalsIgnoreCase("jpg") || extention.equalsIgnoreCase("jpeg")) { + mineType = "image/jpeg"; + } else if (extention.equalsIgnoreCase("gif")) { + mineType = "image/gif"; + } else if (extention.equalsIgnoreCase("png")) { + mineType = "image/png"; + } else if (extention.equalsIgnoreCase("svg")) { + mineType = "image/svg+xml"; + } else if (extention.equalsIgnoreCase("webp")) { + mineType = "image/webp"; + } else if (extention.equalsIgnoreCase("js")) { + mineType = "application/javascript"; + } else if (extention.equalsIgnoreCase("json")) { + mineType = "application/json"; + } else if (extention.equalsIgnoreCase("ico")) { + mineType = "image/x-icon"; + } else if (extention.equalsIgnoreCase("html")) { + mineType = "text/html"; + } else if (extention.equalsIgnoreCase("css")) { + mineType = "text/css"; + } else { + return Response.status(403). + entity("Not supported model: '" + fileName + "'"). + type("text/plain"). + build(); + } + // reads input image + File download = new File(filePathName); + if (!download.exists()) { + return Response.status(404). + entity("Not Found: '" + fileName + "'"). + type("text/plain"). + build(); + } + ResponseBuilder response = Response.ok((Object)download); + response.header("Content-Disposition", "attachment; filename=" + fileName); + CacheControl cc = new CacheControl(); + cc.setMaxAge(3600); + cc.setNoCache(false); + response.cacheControl(cc); + response.type(mineType); + + return response.build(); + } + + @GET + @Path("{baseA}") + @PermitAll() + //@Produces(MediaType.APPLICATION_OCTET_STREAM) + //@CacheMaxAge(time = 10, unit = TimeUnit.DAYS) + public Response retrive1(@PathParam("baseA") String baseA) throws Exception { + return retrive(baseA); + } + @GET + @Path("{baseA}/assets/images/{baseB}") + @PermitAll() + public Response retrive2(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { + return retrive(baseA + File.separator + "assets" + File.separator + "images" + File.separator + baseB); + } + @GET + @Path("{baseA}/assets/js_3rd_party/{baseB}") + @PermitAll() + public Response retrive3(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { + return retrive(baseA + File.separator + "assets" + File.separator + "js_3rd_party" + File.separator + baseB); + } +} diff --git a/back/src/org/kar/oauth/util/ConfigVariable.java b/back/src/org/kar/oauth/util/ConfigVariable.java index ad4f936..a9fd4fc 100644 --- a/back/src/org/kar/oauth/util/ConfigVariable.java +++ b/back/src/org/kar/oauth/util/ConfigVariable.java @@ -19,6 +19,22 @@ public class ConfigVariable { return out; } + public static String getFrontFolder() { + String out = System.getenv("ORG_KARAUTH_FRONT_FOLDER"); + if (out == null) { + return "/application/karauth"; + } + return out; + } + + public static String getSsoFolder() { + String out = System.getenv("ORG_KARAUTH_SSO_FOLDER"); + if (out == null) { + return "/application/karso"; + } + return out; + } + public static String getDBLogin() { String out = System.getenv("ORG_KARAUTH_DB_LOGIN"); if (out == null) { diff --git a/docker-compose.yaml b/docker-compose.yaml index 2a248b7..b1383d6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -31,7 +31,7 @@ services: mem_limit: 100m karauth_back_service: - build: back/ + build: . restart: always image: org.kar.auth.back depends_on: @@ -45,30 +45,6 @@ services: read_only: true mem_limit: 1200m healthcheck: - test: ["CMD", "wget" ,"http://localhost/health_check"] + test: ["CMD", "wget" ,"http://localhost:17080/karauth/api/health_check", "-O", "/dev/null"] timeout: 20s retries: 3 - - karauth_sso_service: - build: sso/ - restart: always - image: org.kar.auth.sso - depends_on: - - karauth_back_service - ports: - - 17082:80 - read_only: true - mem_limit: 100m - - karauth_front_service: - build: front/ - restart: always - image: org.kar.auth.front - depends_on: - - karauth_back_service - - karauth_sso_service - ports: - - 17081:80 - read_only: true - mem_limit: 100m - diff --git a/sso/dist/3rdpartylicenses.txt b/sso/dist/3rdpartylicenses.txt deleted file mode 100644 index cc2918a..0000000 --- a/sso/dist/3rdpartylicenses.txt +++ /dev/null @@ -1,262 +0,0 @@ -@angular/animations -MIT - -@angular/common -MIT - -@angular/core -MIT - -@angular/forms -MIT - -@angular/platform-browser -MIT - -@angular/router -MIT - -rxjs -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - -tslib -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. - -zone.js -MIT -The MIT License - -Copyright (c) 2010-2022 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/sso/dist/assets/aaa_interfaceCloud.js b/sso/dist/assets/aaa_interfaceCloud.js deleted file mode 100644 index f7e0760..0000000 --- a/sso/dist/assets/aaa_interfaceCloud.js +++ /dev/null @@ -1,24 +0,0 @@ - -/** - * @brief create the rest call element of the link - */ -let createRESTCall = function(api, options) { - // http://localhost/exercice - let basePage = "" + window.location; - if (basePage.endsWith("index.xhtml") == true) { - basePage = basePage.substring(0, basePage.length - 11); - } - if (basePage.endsWith("index.php") == true) { - basePage = basePage.substring(0, basePage.length - 10); - } - let addressServerRest =basePage + "/api/v1/index.php"; - if (typeof options === 'undefined') { - options = []; - } - let out = addressServerRest + "?REST=" + api; - for (let iii=0; iii - - - - - - diff --git a/sso/dist/assets/images/comments.svg b/sso/dist/assets/images/comments.svg deleted file mode 100644 index ea9f9b3..0000000 --- a/sso/dist/assets/images/comments.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/sso/dist/assets/images/erase.svg b/sso/dist/assets/images/erase.svg deleted file mode 100644 index 3c0c9fb..0000000 --- a/sso/dist/assets/images/erase.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/sso/dist/assets/images/ic_remove_circle_outline_black_24px.svg b/sso/dist/assets/images/ic_remove_circle_outline_black_24px.svg deleted file mode 100644 index f65b162..0000000 --- a/sso/dist/assets/images/ic_remove_circle_outline_black_24px.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/sso/dist/assets/images/ikon.svg b/sso/dist/assets/images/ikon.svg deleted file mode 100644 index 537c7e1..0000000 --- a/sso/dist/assets/images/ikon.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/sso/dist/assets/images/ikon_gray.svg b/sso/dist/assets/images/ikon_gray.svg deleted file mode 100644 index 89e1f07..0000000 --- a/sso/dist/assets/images/ikon_gray.svg +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/sso/dist/assets/images/load.svg b/sso/dist/assets/images/load.svg deleted file mode 100644 index aa6bb7f..0000000 --- a/sso/dist/assets/images/load.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sso/dist/assets/images/share.svg b/sso/dist/assets/images/share.svg deleted file mode 100644 index 093cf68..0000000 --- a/sso/dist/assets/images/share.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/sso/dist/assets/images/time.svg b/sso/dist/assets/images/time.svg deleted file mode 100644 index 512f7bb..0000000 --- a/sso/dist/assets/images/time.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/sso/dist/assets/images/validate-not.svg b/sso/dist/assets/images/validate-not.svg deleted file mode 100644 index c58892c..0000000 --- a/sso/dist/assets/images/validate-not.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/sso/dist/assets/images/validate.svg b/sso/dist/assets/images/validate.svg deleted file mode 100644 index ca4fd13..0000000 --- a/sso/dist/assets/images/validate.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/sso/dist/assets/js_3rd_party/dateFormat.min.js b/sso/dist/assets/js_3rd_party/dateFormat.min.js deleted file mode 100644 index b8acc87..0000000 --- a/sso/dist/assets/js_3rd_party/dateFormat.min.js +++ /dev/null @@ -1,9 +0,0 @@ -;function dateFormat(g,c,k){function l(a,b){a.setHours(a.getHours()+parseFloat(b));return a}function m(a,b){var c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");return b?c[a.getDay()].substr(0,3):c[a.getDay()]}function n(a,b){var c="January February March April May June July August September October November December".split(" ");return b?c[a.getMonth()].substr(0,3):c[a.getMonth()]}var d={d:function(){var a=this.getDate();return 9=a?a:a-12},G:function(){return this.getHours()},h:function(){var a=this.getHours(),a=12>=a?a:a-12;return 0==a?12:9> 5] |= (str.charCodeAt(i / charsize) & mask) << (32 - charsize - (i % 32)); - } - - return bin; - } - - function binb2hex(binarray) { - var hex_tab = "0123456789abcdef"; - var str = ""; - var length = binarray.length * 4; - var srcByte; - - for (var i = 0; i < length; i += 1) { - srcByte = binarray[i >> 2] >> ((3 - (i % 4)) * 8); - str += hex_tab.charAt((srcByte >> 4) & 0xF) + hex_tab.charAt(srcByte & 0xF); - } - - return str; - } - - function safe_add_2(x, y) { - var lsw, msw, lowOrder, highOrder; - - lsw = (x.lowOrder & 0xFFFF) + (y.lowOrder & 0xFFFF); - msw = (x.lowOrder >>> 16) + (y.lowOrder >>> 16) + (lsw >>> 16); - lowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - lsw = (x.highOrder & 0xFFFF) + (y.highOrder & 0xFFFF) + (msw >>> 16); - msw = (x.highOrder >>> 16) + (y.highOrder >>> 16) + (lsw >>> 16); - highOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - return new int64(highOrder, lowOrder); - } - - function safe_add_4(a, b, c, d) { - var lsw, msw, lowOrder, highOrder; - - lsw = (a.lowOrder & 0xFFFF) + (b.lowOrder & 0xFFFF) + (c.lowOrder & 0xFFFF) + (d.lowOrder & 0xFFFF); - msw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) + (c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (lsw >>> 16); - lowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - lsw = (a.highOrder & 0xFFFF) + (b.highOrder & 0xFFFF) + (c.highOrder & 0xFFFF) + (d.highOrder & 0xFFFF) + (msw >>> 16); - msw = (a.highOrder >>> 16) + (b.highOrder >>> 16) + (c.highOrder >>> 16) + (d.highOrder >>> 16) + (lsw >>> 16); - highOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - return new int64(highOrder, lowOrder); - } - - function safe_add_5(a, b, c, d, e) { - var lsw, msw, lowOrder, highOrder; - - lsw = (a.lowOrder & 0xFFFF) + (b.lowOrder & 0xFFFF) + (c.lowOrder & 0xFFFF) + (d.lowOrder & 0xFFFF) + (e.lowOrder & 0xFFFF); - msw = (a.lowOrder >>> 16) + (b.lowOrder >>> 16) + (c.lowOrder >>> 16) + (d.lowOrder >>> 16) + (e.lowOrder >>> 16) + (lsw >>> 16); - lowOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - lsw = (a.highOrder & 0xFFFF) + (b.highOrder & 0xFFFF) + (c.highOrder & 0xFFFF) + (d.highOrder & 0xFFFF) + (e.highOrder & 0xFFFF) + (msw >>> 16); - msw = (a.highOrder >>> 16) + (b.highOrder >>> 16) + (c.highOrder >>> 16) + (d.highOrder >>> 16) + (e.highOrder >>> 16) + (lsw >>> 16); - highOrder = ((msw & 0xFFFF) << 16) | (lsw & 0xFFFF); - - return new int64(highOrder, lowOrder); - } - - function maj(x, y, z) { - return new int64( - (x.highOrder & y.highOrder) ^ (x.highOrder & z.highOrder) ^ (y.highOrder & z.highOrder), - (x.lowOrder & y.lowOrder) ^ (x.lowOrder & z.lowOrder) ^ (y.lowOrder & z.lowOrder) - ); - } - - function ch(x, y, z) { - return new int64( - (x.highOrder & y.highOrder) ^ (~x.highOrder & z.highOrder), - (x.lowOrder & y.lowOrder) ^ (~x.lowOrder & z.lowOrder) - ); - } - - function rotr(x, n) { - if (n <= 32) { - return new int64( - (x.highOrder >>> n) | (x.lowOrder << (32 - n)), - (x.lowOrder >>> n) | (x.highOrder << (32 - n)) - ); - } else { - return new int64( - (x.lowOrder >>> n) | (x.highOrder << (32 - n)), - (x.highOrder >>> n) | (x.lowOrder << (32 - n)) - ); - } - } - - function sigma0(x) { - var rotr28 = rotr(x, 28); - var rotr34 = rotr(x, 34); - var rotr39 = rotr(x, 39); - - return new int64( - rotr28.highOrder ^ rotr34.highOrder ^ rotr39.highOrder, - rotr28.lowOrder ^ rotr34.lowOrder ^ rotr39.lowOrder - ); - } - - function sigma1(x) { - var rotr14 = rotr(x, 14); - var rotr18 = rotr(x, 18); - var rotr41 = rotr(x, 41); - - return new int64( - rotr14.highOrder ^ rotr18.highOrder ^ rotr41.highOrder, - rotr14.lowOrder ^ rotr18.lowOrder ^ rotr41.lowOrder - ); - } - - function gamma0(x) { - var rotr1 = rotr(x, 1), rotr8 = rotr(x, 8), shr7 = shr(x, 7); - - return new int64( - rotr1.highOrder ^ rotr8.highOrder ^ shr7.highOrder, - rotr1.lowOrder ^ rotr8.lowOrder ^ shr7.lowOrder - ); - } - - function gamma1(x) { - var rotr19 = rotr(x, 19); - var rotr61 = rotr(x, 61); - var shr6 = shr(x, 6); - - return new int64( - rotr19.highOrder ^ rotr61.highOrder ^ shr6.highOrder, - rotr19.lowOrder ^ rotr61.lowOrder ^ shr6.lowOrder - ); - } - - function shr(x, n) { - if (n <= 32) { - return new int64( - x.highOrder >>> n, - x.lowOrder >>> n | (x.highOrder << (32 - n)) - ); - } else { - return new int64( - 0, - x.highOrder << (32 - n) - ); - } - } - - str = utf8_encode(str); - strlen = str.length*charsize; - str = str2binb(str); - - str[strlen >> 5] |= 0x80 << (24 - strlen % 32); - str[(((strlen + 128) >> 10) << 5) + 31] = strlen; - - for (var i = 0; i < str.length; i += 32) { - a = H[0]; - b = H[1]; - c = H[2]; - d = H[3]; - e = H[4]; - f = H[5]; - g = H[6]; - h = H[7]; - - for (var j = 0; j < 80; j++) { - if (j < 16) { - W[j] = new int64(str[j*2 + i], str[j*2 + i + 1]); - } else { - W[j] = safe_add_4(gamma1(W[j - 2]), W[j - 7], gamma0(W[j - 15]), W[j - 16]); - } - - T1 = safe_add_5(h, sigma1(e), ch(e, f, g), K[j], W[j]); - T2 = safe_add_2(sigma0(a), maj(a, b, c)); - h = g; - g = f; - f = e; - e = safe_add_2(d, T1); - d = c; - c = b; - b = a; - a = safe_add_2(T1, T2); - } - - H[0] = safe_add_2(a, H[0]); - H[1] = safe_add_2(b, H[1]); - H[2] = safe_add_2(c, H[2]); - H[3] = safe_add_2(d, H[3]); - H[4] = safe_add_2(e, H[4]); - H[5] = safe_add_2(f, H[5]); - H[6] = safe_add_2(g, H[6]); - H[7] = safe_add_2(h, H[7]); - } - - var binarray = []; - for (var i = 0; i < H.length; i++) { - binarray.push(H[i].highOrder); - binarray.push(H[i].lowOrder); - } - return binb2hex(binarray); -} \ No newline at end of file diff --git a/sso/dist/comments.ba69265fdd4c60ec.svg b/sso/dist/comments.ba69265fdd4c60ec.svg deleted file mode 100644 index ea9f9b3..0000000 --- a/sso/dist/comments.ba69265fdd4c60ec.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/sso/dist/erase.d1527eee3b285f50.svg b/sso/dist/erase.d1527eee3b285f50.svg deleted file mode 100644 index 3c0c9fb..0000000 --- a/sso/dist/erase.d1527eee3b285f50.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/sso/dist/favicon.ico b/sso/dist/favicon.ico deleted file mode 100644 index b54cbd2..0000000 Binary files a/sso/dist/favicon.ico and /dev/null differ diff --git a/sso/dist/ikon_gray.d4678106f70ef192.svg b/sso/dist/ikon_gray.d4678106f70ef192.svg deleted file mode 100644 index 89e1f07..0000000 --- a/sso/dist/ikon_gray.d4678106f70ef192.svg +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/sso/dist/index.html b/sso/dist/index.html deleted file mode 100644 index 185efcb..0000000 --- a/sso/dist/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - Karideo - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - \ No newline at end of file diff --git a/sso/dist/load.437203f1f028f93e.svg b/sso/dist/load.437203f1f028f93e.svg deleted file mode 100644 index aa6bb7f..0000000 --- a/sso/dist/load.437203f1f028f93e.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sso/dist/main.b8869388365ce815.js b/sso/dist/main.b8869388365ce815.js deleted file mode 100644 index eff69f1..0000000 --- a/sso/dist/main.b8869388365ce815.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkkarideo=self.webpackChunkkarideo||[]).push([[179],{813:()=>{function _e(n){return"function"==typeof n}function fo(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Vs=fo(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ho(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class qt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(_e(i))try{i()}catch(o){t=o instanceof Vs?o.errors:[o]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const o of r)try{Yh(o)}catch(s){t=null!=t?t:[],s instanceof Vs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Vs(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Yh(t);else{if(t instanceof qt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&ho(e,t)}remove(t){const{_teardowns:e}=this;e&&ho(e,t),t instanceof qt&&t._removeParent(this)}}qt.EMPTY=(()=>{const n=new qt;return n.closed=!0,n})();const Jh=qt.EMPTY;function Zh(n){return n instanceof qt||n&&"closed"in n&&_e(n.remove)&&_e(n.add)&&_e(n.unsubscribe)}function Yh(n){_e(n)?n():n.unsubscribe()}const Ai={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ls={setTimeout(...n){const{delegate:t}=Ls;return((null==t?void 0:t.setTimeout)||setTimeout)(...n)},clearTimeout(n){const{delegate:t}=Ls;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function Xh(n){Ls.setTimeout(()=>{const{onUnhandledError:t}=Ai;if(!t)throw n;t(n)})}function ep(){}const YS=du("C",void 0,void 0);function du(n,t,e){return{kind:n,value:t,error:e}}let Pi=null;function Us(n){if(Ai.useDeprecatedSynchronousErrorHandling){const t=!Pi;if(t&&(Pi={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=Pi;if(Pi=null,e)throw i}}else n()}class fu extends qt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Zh(t)&&t.add(this)):this.destination=ow}static create(t,e,i){return new Bs(t,e,i)}next(t){this.isStopped?pu(function ew(n){return du("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?pu(function XS(n){return du("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pu(YS,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const nw=Function.prototype.bind;function hu(n,t){return nw.call(n,t)}class iw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Hs(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Hs(i)}else Hs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Hs(e)}}}class Bs extends fu{constructor(t,e,i){let r;if(super(),_e(t)||!t)r={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let o;this&&Ai.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&hu(t.next,o),error:t.error&&hu(t.error,o),complete:t.complete&&hu(t.complete,o)}):r=t}this.destination=new iw(r)}}function Hs(n){Ai.useDeprecatedSynchronousErrorHandling?function tw(n){Ai.useDeprecatedSynchronousErrorHandling&&Pi&&(Pi.errorThrown=!0,Pi.error=n)}(n):Xh(n)}function pu(n,t){const{onStoppedNotification:e}=Ai;e&&Ls.setTimeout(()=>e(n,t))}const ow={closed:!0,next:ep,error:function rw(n){throw n},complete:ep},gu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oi(n){return n}let ke=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function aw(n){return n&&n instanceof fu||function sw(n){return n&&_e(n.next)&&_e(n.error)&&_e(n.complete)}(n)&&Zh(n)}(e)?e:new Bs(e,i,r);return Us(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=np(i))((r,o)=>{const s=new Bs({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[gu](){return this}pipe(...e){return function tp(n){return 0===n.length?Oi:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=np(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function np(n){var t;return null!==(t=null!=n?n:Ai.Promise)&&void 0!==t?t:Promise}const lw=fo(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Bn=(()=>{class n extends ke{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ip(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new lw}next(e){Us(()=>{if(this._throwIfClosed(),!this.isStopped){const i=this.observers.slice();for(const r of i)r.next(e)}})}error(e){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Jh:(o.push(e),new qt(()=>ho(o,e)))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ke;return e.source=this,e}}return n.create=(t,e)=>new ip(t,e),n})();class ip extends Bn{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:Jh}}function rp(n){return _e(null==n?void 0:n.lift)}function et(n){return t=>{if(rp(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ke(n,t,e,i,r){return new uw(n,t,e,i,r)}class uw extends fu{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ce(n,t){return et((e,i)=>{let r=0;e.subscribe(Ke(i,o=>{i.next(n.call(t,o,r++))}))})}function Ni(n){return this instanceof Ni?(this.v=n,this):new Ni(n)}function fw(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(f){i[f]&&(r[f]=function(g){return new Promise(function(v,S){o.push([f,g,v,S])>1||a(f,g)})})}function a(f,g){try{!function l(f){f.value instanceof Ni?Promise.resolve(f.value.v).then(u,c):d(o[0][2],f)}(i[f](g))}catch(v){d(o[0][3],v)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,g){f(g),o.shift(),o.length&&a(o[0][0],o[0][1])}}function hw(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function ap(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}const lp=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function up(n){return _e(null==n?void 0:n.then)}function cp(n){return _e(n[gu])}function dp(n){return Symbol.asyncIterator&&_e(null==n?void 0:n[Symbol.asyncIterator])}function fp(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const hp=function gw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function pp(n){return _e(null==n?void 0:n[hp])}function gp(n){return fw(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Ni(e.read());if(r)return yield Ni(void 0);yield yield Ni(i)}}finally{e.releaseLock()}})}function mp(n){return _e(null==n?void 0:n.getReader)}function Sn(n){if(n instanceof ke)return n;if(null!=n){if(cp(n))return function mw(n){return new ke(t=>{const e=n[gu]();if(_e(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(lp(n))return function _w(n){return new ke(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Xh)})}(n);if(dp(n))return _p(n);if(pp(n))return function yw(n){return new ke(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(mp(n))return function Cw(n){return _p(gp(n))}(n)}throw fp(n)}function _p(n){return new ke(t=>{(function bw(n,t){var e,i,r,o;return function cw(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(c.value).then(a,l)}u((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=hw(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Hn(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Qe(n,t,e=1/0){return _e(t)?Qe((i,r)=>ce((o,s)=>t(i,o,r,s))(Sn(n(i,r))),e):("number"==typeof t&&(e=t),et((i,r)=>function Sw(n,t,e,i,r,o,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},g=S=>u{o&&t.next(S),u++;let E=!1;Sn(e(S,c++)).subscribe(Ke(t,T=>{null==r||r(T),o?g(T):t.next(T)},()=>{E=!0},void 0,()=>{if(E)try{for(u--;l.length&&uv(T)):v(T)}f()}catch(T){t.error(T)}}))};return n.subscribe(Ke(t,g,()=>{d=!0,f()})),()=>{null==a||a()}}(i,r,n,e)))}function po(n=1/0){return Qe(Oi,n)}const jn=new ke(n=>n.complete());function _u(n){return n[n.length-1]}function vp(n){return _e(_u(n))?n.pop():void 0}function go(n){return function Dw(n){return n&&_e(n.schedule)}(_u(n))?n.pop():void 0}function yp(n,t=0){return et((e,i)=>{e.subscribe(Ke(i,r=>Hn(i,n,()=>i.next(r),t),()=>Hn(i,n,()=>i.complete(),t),r=>Hn(i,n,()=>i.error(r),t)))})}function Cp(n,t=0){return et((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function bp(n,t){if(!n)throw new Error("Iterable cannot be null");return new ke(e=>{Hn(e,t,()=>{const i=n[Symbol.asyncIterator]();Hn(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Je(n,t){return t?function Pw(n,t){if(null!=n){if(cp(n))return function Tw(n,t){return Sn(n).pipe(Cp(t),yp(t))}(n,t);if(lp(n))return function xw(n,t){return new ke(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(up(n))return function Mw(n,t){return Sn(n).pipe(Cp(t),yp(t))}(n,t);if(dp(n))return bp(n,t);if(pp(n))return function Iw(n,t){return new ke(e=>{let i;return Hn(e,t,()=>{i=n[hp](),Hn(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>_e(null==i?void 0:i.return)&&i.return()})}(n,t);if(mp(n))return function Aw(n,t){return bp(gp(n),t)}(n,t)}throw fp(n)}(n,t):Sn(n)}function js(n){return n<=0?()=>jn:et((t,e)=>{let i=0;t.subscribe(Ke(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function vu(n,t,...e){return!0===t?(n(),null):!1===t?null:t(...e).pipe(js(1)).subscribe(()=>n())}function ge(n){for(let t in n)if(n[t]===ge)return t;throw Error("Could not find renamed property on target object.")}function yu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function fe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(fe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Cu(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const kw=ge({__forward_ref__:ge});function ve(n){return n.__forward_ref__=ve,n.toString=function(){return fe(this())},n}function Y(n){return Sp(n)?n():n}function Sp(n){return"function"==typeof n&&n.hasOwnProperty(kw)&&n.__forward_ref__===ve}class F extends Error{constructor(t,e){super(function bu(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function W(n){return"string"==typeof n?n:null==n?"":String(n)}function dt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():W(n)}function $s(n,t){const e=t?` in ${t}`:"";throw new F(-201,`No provider for ${dt(n)} found${e}`)}function It(n,t){null==n&&function we(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function R(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ft(n){return{providers:n.providers||[],imports:n.imports||[]}}function Su(n){return wp(n,zs)||wp(n,Ep)}function wp(n,t){return n.hasOwnProperty(t)?n[t]:null}function Dp(n){return n&&(n.hasOwnProperty(wu)||n.hasOwnProperty(Hw))?n[wu]:null}const zs=ge({\u0275prov:ge}),wu=ge({\u0275inj:ge}),Ep=ge({ngInjectableDef:ge}),Hw=ge({ngInjectorDef:ge});var G=(()=>((G=G||{})[G.Default=0]="Default",G[G.Host=1]="Host",G[G.Self=2]="Self",G[G.SkipSelf=4]="SkipSelf",G[G.Optional=8]="Optional",G))();let Du;function ai(n){const t=Du;return Du=n,t}function Tp(n,t,e){const i=Su(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&G.Optional?null:void 0!==t?t:void $s(fe(n),"Injector")}function li(n){return{toString:n}.toString()}var on=(()=>((on=on||{})[on.OnPush=0]="OnPush",on[on.Default=1]="Default",on))(),sn=(()=>{return(n=sn||(sn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",sn;var n})();const $w="undefined"!=typeof globalThis&&globalThis,zw="undefined"!=typeof window&&window,qw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,pe=$w||"undefined"!=typeof global&&global||zw||qw,or={},me=[],qs=ge({\u0275cmp:ge}),Eu=ge({\u0275dir:ge}),Tu=ge({\u0275pipe:ge}),Mp=ge({\u0275mod:ge}),zn=ge({\u0275fac:ge}),mo=ge({__NG_ELEMENT_ID__:ge});let Gw=0;function ye(n){return li(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===on.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||me,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||sn.Emulated,id:"c",styles:n.styles||me,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,o=n.features,s=n.pipes;return i.id+=Gw++,i.inputs=Pp(n.inputs,e),i.outputs=Pp(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(xp):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ip):null,i})}function xp(n){return it(n)||function ui(n){return n[Eu]||null}(n)}function Ip(n){return function ki(n){return n[Tu]||null}(n)}const Ap={};function St(n){return li(()=>{const t={type:n.type,bootstrap:n.bootstrap||me,declarations:n.declarations||me,imports:n.imports||me,exports:n.exports||me,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Ap[n.id]=n.type),t})}function Pp(n,t){if(null==n)return or;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const $=ye;function it(n){return n[qs]||null}function Gt(n,t){const e=n[Mp]||null;if(!e&&!0===t)throw new Error(`Type ${fe(n)} does not have '\u0275mod' property.`);return e}const X=11;function wn(n){return Array.isArray(n)&&"object"==typeof n[1]}function ln(n){return Array.isArray(n)&&!0===n[1]}function Iu(n){return 0!=(8&n.flags)}function Qs(n){return 2==(2&n.flags)}function Js(n){return 1==(1&n.flags)}function un(n){return null!==n.template}function Yw(n){return 0!=(512&n[2])}function Li(n,t){return n.hasOwnProperty(zn)?n[zn]:null}class tD{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Pt(){return Np}function Np(n){return n.type.prototype.ngOnChanges&&(n.setInput=iD),nD}function nD(){const n=Rp(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===or)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function iD(n,t,e,i){const r=Rp(n)||function rD(n,t){return n[kp]=t}(n,{previous:or,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new tD(l&&l.currentValue,t,s===or),n[i]=t}Pt.ngInherit=!0;const kp="__ngSimpleChanges__";function Rp(n){return n[kp]||null}let ku;function Pe(n){return!!n.listen}const Fp={createRenderer:(n,t)=>function Ru(){return void 0!==ku?ku:"undefined"!=typeof document?document:void 0}()};function Ve(n){for(;Array.isArray(n);)n=n[0];return n}function Zs(n,t){return Ve(t[n])}function Qt(n,t){return Ve(t[n.index])}function Fu(n,t){return n.data[t]}function Ot(n,t){const e=t[n];return wn(e)?e:e[0]}function Vp(n){return 4==(4&n[2])}function Vu(n){return 128==(128&n[2])}function ci(n,t){return null==t?null:n[t]}function Lp(n){n[18]=0}function Lu(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const q={lFrame:Gp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Up(){return q.bindingsEnabled}function A(){return q.lFrame.lView}function ae(){return q.lFrame.tView}function x(n){return q.lFrame.contextLView=n,n[8]}function je(){let n=Bp();for(;null!==n&&64===n.type;)n=n.parent;return n}function Bp(){return q.lFrame.currentTNode}function Dn(n,t){const e=q.lFrame;e.currentTNode=n,e.isParent=t}function Uu(){return q.lFrame.isParent}function Bu(){q.lFrame.isParent=!1}function Ys(){return q.isInCheckNoChangesMode}function Xs(n){q.isInCheckNoChangesMode=n}function dr(){return q.lFrame.bindingIndex++}function Gn(n){const t=q.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function bD(n,t){const e=q.lFrame;e.bindingIndex=e.bindingRootIndex=n,Hu(t)}function Hu(n){q.lFrame.currentDirectiveIndex=n}function ju(n){const t=q.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function $p(){return q.lFrame.currentQueryIndex}function $u(n){q.lFrame.currentQueryIndex=n}function wD(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function zp(n,t,e){if(e&G.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&G.Host||(r=wD(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=q.lFrame=qp();return i.currentTNode=t,i.lView=n,!0}function ea(n){const t=qp(),e=n[1];q.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function qp(){const n=q.lFrame,t=null===n?null:n.child;return null===t?Gp(n):t}function Gp(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Wp(){const n=q.lFrame;return q.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kp=Wp;function ta(){const n=Wp();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function pt(){return q.lFrame.selectedIndex}function di(n){q.lFrame.selectedIndex=n}function Oe(){const n=q.lFrame;return Fu(n.tView,n.selectedIndex)}function na(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class bo{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function oa(n,t,e){const i=Pe(n);let r=0;for(;rt){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Wu=!0;function aa(n){const t=Wu;return Wu=n,t}let LD=0;function wo(n,t){const e=Qu(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Ku(i.data,n),Ku(t,null),Ku(i.blueprint,null));const r=la(n,t),o=n.injectorIndex;if(Yp(r)){const s=fr(r),a=hr(r,t),l=a[1].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=r,o}function Ku(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Qu(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function la(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const o=r[1],s=o.type;if(i=2===s?o.declTNode:1===s?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ua(n,t,e){!function UD(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(mo)&&(i=e[mo]),null==i&&(i=e[mo]=LD++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:HD:t}(e);if("function"==typeof o){if(!zp(t,n,i))return i&G.Host?tg(r,e,i):ng(t,e,i,r);try{const s=o(i);if(null!=s||i&G.Optional)return s;$s(e)}finally{Kp()}}else if("number"==typeof o){let s=null,a=Qu(n,t),l=-1,u=i&G.Host?t[16][6]:null;for((-1===a||i&G.SkipSelf)&&(l=-1===a?la(n,t):t[a+8],-1!==l&&sg(i,!1)?(s=t[1],a=fr(l),t=hr(l,t)):a=-1);-1!==a;){const c=t[1];if(og(o,a,c.data)){const d=jD(a,t,e,s,i,u);if(d!==rg)return d}l=t[a+8],-1!==l&&sg(i,t[1].data[a+8]===u)&&og(o,a,t)?(s=c,a=fr(l),t=hr(l,t)):a=-1}}}return ng(t,e,i,r)}const rg={};function HD(){return new pr(je(),A())}function jD(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],c=ca(a,s,e,null==i?Qs(a)&&Wu:i!=s&&0!=(3&a.type),r&G.Host&&o===a);return null!==c?Do(t,s,c,a):rg}function ca(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,c=o>>20,f=r?a+c:n.directiveEnd;for(let g=i?a:a+c;g=l&&v.type===e)return g}if(r){const g=s[l];if(g&&un(g)&&g.type===e)return l}return null}function Do(n,t,e,i){let r=n[e];const o=t.data;if(function ND(n){return n instanceof bo}(r)){const s=r;s.resolving&&function Rw(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new F(-200,`Circular dependency in DI detected for ${n}${e}`)}(dt(o[e]));const a=aa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ai(s.injectImpl):null;zp(n,i,G.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function PD(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Np(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ai(l),aa(a),s.resolving=!1,Kp()}}return r}function og(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[zn]||Ju(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[zn]||Ju(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Ju(n){return Sp(n)?()=>{const t=Ju(Y(n));return t&&t()}:Li(n)}const mr="__parameters__";function vr(n,t,e){return li(()=>{const i=function Zu(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(mr)?l[mr]:Object.defineProperty(l,mr,{value:[]})[mr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ee{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const qD=new ee("AnalyzeForEntryComponents");function Jt(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?En(e,t):t(e))}function lg(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function da(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function xo(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function KD(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Xu(n,t){const e=yr(n,t);if(e>=0)return n[1|e]}function yr(n,t){return function dg(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),hi=Po(vr("Optional"),8),Oo=Po(vr("SkipSelf"),4);class wg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function pi(n){return n instanceof wg?n.changingThisBreaksApplicationSecurity:n}const x1=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,I1=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var Le=(()=>((Le=Le||{})[Le.NONE=0]="NONE",Le[Le.HTML=1]="HTML",Le[Le.STYLE=2]="STYLE",Le[Le.SCRIPT=3]="SCRIPT",Le[Le.URL=4]="URL",Le[Le.RESOURCE_URL=5]="RESOURCE_URL",Le))();function Ye(n){const t=function Fo(){const n=A();return n&&n[12]}();return t?t.sanitize(Le.URL,n)||"":function ko(n,t){const e=function D1(n){return n instanceof wg&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}(n,"URL")?pi(n):function va(n){return(n=String(n)).match(x1)||n.match(I1)?n:"unsafe:"+n}(W(n))}const Ng="__ngContext__";function st(n,t){n[Ng]=t}function dc(n){const t=function Vo(n){return n[Ng]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function hc(n){return n.ngOriginalError}function Y1(n,...t){n.error(...t)}class Lo{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function Z1(n){return n&&n.ngErrorLogger||Y1}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&hc(t);for(;e&&hc(e);)e=hc(e);return e||null}}const lE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pe))();function Mn(n){return n instanceof Function?n():n}var kt=(()=>((kt=kt||{})[kt.Important=1]="Important",kt[kt.DashCase=2]="DashCase",kt))();function gc(n,t){return undefined(n,t)}function Uo(n){const t=n[3];return ln(t)?t[3]:t}function mc(n){return jg(n[13])}function _c(n){return jg(n[4])}function jg(n){for(;null!==n&&!ln(n);)n=n[4];return n}function wr(n,t,e,i,r){if(null!=i){let o,s=!1;ln(i)?o=i:wn(i)&&(s=!0,i=i[0]);const a=Ve(i);0===n&&null!==e?null==r?Kg(t,e,a):Ui(t,e,a,r||null,!0):1===n&&null!==e?Ui(t,e,a,r||null,!0):2===n?function tm(n,t,e){const i=Ca(n,t);i&&function SE(n,t,e,i){Pe(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function EE(n,t,e,i,r){const o=e[7];o!==Ve(e)&&wr(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=da(n,10+t);!function pE(n,t){Bo(n,t,t[X],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function qg(n,t){if(!(256&t[2])){const e=t[X];Pe(e)&&e.destroyNode&&Bo(n,t,e,3,null,null),function _E(n){let t=n[13];if(!t)return bc(n[1],n);for(;t;){let e=null;if(wn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)wn(t)&&bc(t[1],t),t=t[3];null===t&&(t=n),wn(t)&&bc(t[1],t),e=t&&t[4]}t=e}}(t)}}function bc(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function bE(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const g=8&i?f:null;if(g&&-1!==rm(g,u,0)||2&i&&u!==f){if(cn(i))return!1;s=!0}}}}else{if(!s&&!cn(i)&&!cn(l))return!1;if(s&&cn(l))continue;s=!1,i=l|1&i}}return cn(i)||s}function cn(n){return 0==(1&n)}function AE(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!cn(s)&&(t+=lm(o,r),r=""),i=s,o=o||!cn(i);e++}return""!==r&&(t+=lm(o,r)),t}const K={};function m(n){um(ae(),A(),pt()+n,Ys())}function um(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&ia(t,o,e)}else{const o=n.preOrderHooks;null!==o&&ra(t,o,0,e)}di(e)}function wa(n,t){return n<<17|t<<2}function dn(n){return n>>17&32767}function Tc(n){return 2|n}function Wn(n){return(131068&n)>>2}function Mc(n,t){return-131069&n|t<<2}function xc(n){return 1|n}function Cm(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&um(n,t,20,Ys()),e(i,r)}finally{di(o)}}function Lc(n,t,e){!Up()||(function sT(n,t,e,i){const r=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||wo(e,t),st(i,t);const s=e.initialInputs;for(let a=r;a0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function Am(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Pm(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function cT(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&jc(e)}}function jc(n){for(let i=mc(n);null!==i;i=_c(i))for(let r=10;r0&&jc(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&jc(r)}}function _T(n,t){const e=Ot(t,n),i=e[1];(function vT(n,t){for(let e=t.length;ePromise.resolve(null))();function Fm(n){return n[7]||(n[7]=[])}function Vm(n){return n.cleanup||(n.cleanup=[])}function Um(n,t){const e=n[9],i=e?e.get(Lo,null):null;i&&i.handleError(t)}function Bm(n,t,e,i,r){for(let o=0;othis.processProvider(a,t,e)),En([t],a=>this.processInjectorType(a,[],o)),this.records.set(Wc,Mr(void 0,this));const s=this.records.get(Kc);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:fe(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Io,i=G.Default){this.assertNotDestroyed();const r=pg(this),o=ai(void 0);try{if(!(i&G.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function kT(n){return"function"==typeof n||"object"==typeof n&&n instanceof ee}(t)&&Su(t);a=l&&this.injectableDefInScope(l)?Mr(Jc(t),$o):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&G.Self?jm():this.parent).get(t,e=i&G.Optional&&e===Io?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[ha]=s[ha]||[]).unshift(fe(t)),r)throw s;return function a1(n,t,e,i){const r=n[ha];throw t[hg]&&r.unshift(t[hg]),n.message=function l1(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=fe(t);if(Array.isArray(t))r=t.map(fe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):fe(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(t1,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ha]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ai(o),pg(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(fe(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processInjectorType(t,e,i){if(!(t=Y(t)))return!1;let r=Dp(t);const o=null==r&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==i.indexOf(s);if(void 0!==o&&(r=Dp(o)),null==r)return!1;if(null!=r.imports&&!a){let c;i.push(s);try{En(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(v,f,g||me))}}this.injectorDefTypes.add(s);const l=Li(s)||(()=>new s);this.records.set(s,Mr(l,$o));const u=r.providers;if(null!=u&&!a){const c=t;En(u,d=>this.processProvider(d,c,u))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,i){let r=xr(t=Y(t))?t:Y(t&&t.provide);const o=function xT(n,t,e){return Gm(n)?Mr(void 0,n.useValue):Mr(qm(n),$o)}(t);if(xr(t)||!0!==t.multi)this.records.get(r);else{let s=this.records.get(r);s||(s=Mr(void 0,$o,!0),s.factory=()=>nc(s.multi),this.records.set(r,s)),r=t,s.multi.push(t)}this.records.set(r,o)}hydrate(t,e){return e.value===$o&&(e.value=ET,e.value=e.factory()),"object"==typeof e.value&&e.value&&function NT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Y(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Jc(n){const t=Su(n),e=null!==t?t.factory:Li(n);if(null!==e)return e;if(n instanceof ee)throw new F(204,!1);if(n instanceof Function)return function MT(n){const t=n.length;if(t>0)throw xo(t,"?"),new F(204,!1);const e=function Uw(n){const t=n&&(n[zs]||n[Ep]);if(t){const e=function Bw(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new F(204,!1)}function qm(n,t,e){let i;if(xr(n)){const r=Y(n);return Li(r)||Jc(r)}if(Gm(n))i=()=>Y(n.useValue);else if(function AT(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...nc(n.deps||[]));else if(function IT(n){return!(!n||!n.useExisting)}(n))i=()=>P(Y(n.useExisting));else{const r=Y(n&&(n.useClass||n.provide));if(!function OT(n){return!!n.deps}(n))return Li(r)||Jc(r);i=()=>new r(...nc(n.deps))}return i}function Mr(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Gm(n){return null!==n&&"object"==typeof n&&i1 in n}function xr(n){return"function"==typeof n}let at=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return $m({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return $m({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=Io,n.NULL=new Hm,n.\u0275prov=R({token:n,providedIn:"any",factory:()=>P(Wc)}),n.__NG_ELEMENT_ID__=-1,n})();function jT(n,t){na(dc(n)[1],je())}function he(n){let t=function r_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(un(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const s=n;s.inputs=Xc(n.inputs),s.declaredInputs=Xc(n.declaredInputs),s.outputs=Xc(n.outputs);const a=r.hostBindings;a&>(n,a);const l=r.viewQuery,u=r.contentQueries;if(l&&zT(n,l),u&&qT(n,u),yu(n.inputs,r.inputs),yu(n.declaredInputs,r.declaredInputs),yu(n.outputs,r.outputs),un(r)&&r.data.animation){const c=n.data;c.animation=(c.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=sa(r.hostAttrs,e=sa(e,r.hostAttrs))}}(i)}function Xc(n){return n===or?{}:n===me?[]:n}function zT(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function qT(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function GT(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Ia=null;function Ir(){if(!Ia){const n=pe.Symbol;if(n&&n.iterator)Ia=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Ve(V[i.index])):i.index;if(Pe(e)){let V=null;if(!a&&l&&(V=function SM(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==V)(V.__ngLastListenerFn__||V).__ngNextListenerFn__=o,V.__ngLastListenerFn__=o,g=!1;else{o=cd(i,t,d,o,!1);const Z=e.listen(T,r,o);f.push(o,Z),c&&c.push(r,O,w,w+1)}}else o=cd(i,t,d,o,!0),T.addEventListener(r,o,s),f.push(o),c&&c.push(r,O,w,s)}else o=cd(i,t,d,o,!1);const v=i.outputs;let S;if(g&&null!==v&&(S=v[r])){const E=S.length;if(E)for(let T=0;T0;)t=t[15],n--;return t}(n,q.lFrame.contextLView))[8]}(n)}function wM(n,t){let e=null;const i=function PE(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const ze={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function U_(n){return n.substring(ze.key,ze.keyEnd)}function MM(n){return n.substring(ze.value,ze.valueEnd)}function B_(n,t){const e=ze.textEnd;return e===t?-1:(t=ze.keyEnd=function AM(n,t,e){for(;t32;)t++;return t}(n,ze.key=t,e),Br(n,t,e))}function H_(n,t){const e=ze.textEnd;let i=ze.key=Br(n,t,e);return e===i?-1:(i=ze.keyEnd=function PM(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=$_(n,i,e),i=ze.value=Br(n,i,e),i=ze.valueEnd=function OM(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),$_(n,i,e))}function j_(n){ze.key=0,ze.keyEnd=0,ze.value=0,ze.valueEnd=0,ze.textEnd=n.length}function Br(n,t,e){for(;t=0;e=H_(t,e))K_(n,U_(t),MM(t))}function Oa(n){pn(Nt,On,n,!0)}function On(n,t){for(let e=function xM(n){return j_(n),B_(n,Br(n,0,ze.textEnd))}(t);e>=0;e=B_(t,e))Nt(n,U_(t),!0)}function pn(n,t,e,i){const r=ae(),o=Gn(2);r.firstUpdatePass&&W_(r,null,o,i);const s=A();if(e!==K&<(s,o,e)){const a=r.data[pt()];if(Z_(a,i)&&!G_(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Cu(l,e||"")),sd(r,a,s,e,i)}else!function UM(n,t,e,i,r,o,s,a){r===K&&(r=me);let l=0,u=0,c=0=n.expandoStartIndex}function W_(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[pt()],s=G_(n,e);Z_(o,i)&&null===t&&!s&&(t=!1),t=function kM(n,t,e,i){const r=ju(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ko(e=hd(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=hd(r,n,t,e,i),null===o){let l=function RM(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Wn(i))return n[dn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=hd(null,n,t,l[1],i),l=Ko(l,t.attrs,i),function FM(n,t,e,i){n[dn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function VM(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(u=!0)}else c=e;if(r)if(0!==l){const f=dn(n[a+1]);n[i+1]=wa(f,a),0!==f&&(n[f+1]=Mc(n[f+1],i)),n[a+1]=function LE(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=wa(a,0),0!==a&&(n[a+1]=Mc(n[a+1],i)),a=i;else n[i+1]=wa(l,0),0===a?a=i:n[l+1]=Mc(n[l+1],i),l=i;u&&(n[i+1]=Tc(n[i+1])),L_(n,c,i,!0),L_(n,c,i,!1),function EM(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&yr(o,t)>=0&&(e[i+1]=xc(e[i+1]))}(t,c,n,i,o),s=wa(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function hd(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=e[r+1];f===K&&(f=d?me:void 0);let g=d?Xu(f,i):c===i?f:void 0;if(u&&!Na(g)&&(g=Xu(l,i)),Na(g)&&(a=g,s))return a;const v=n[r+1];r=s?dn(v):Wn(v)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Xu(l,i))}return a}function Na(n){return void 0!==n}function Z_(n,t){return 0!=(n.flags&(t?16:32))}function _(n,t=""){const e=A(),i=ae(),r=n+20,o=i.firstCreatePass?Dr(i,r,1,t,null):i.data[r],s=e[r]=function vc(n,t){return Pe(n)?n.createText(t):n.createTextNode(t)}(e[X],t);ba(i,e,s,o),Dn(o,!1)}function De(n){return Q("",n,""),De}function Q(n,t,e){const i=A(),r=Pr(i,n,t,e);return r!==K&&Kn(i,pt(),r),Q}function ka(n,t,e,i,r){const o=A(),s=Or(o,n,t,e,i,r);return s!==K&&Kn(o,pt(),s),ka}function sv(n,t,e){!function Pn(n){pn(K_,NM,n,!1)}(Pr(A(),n,t,e))}function Et(n,t,e){const i=A();if(lt(i,dr(),t)){const o=ae(),s=Oe();Rt(o,s,i,n,t,function Lm(n,t,e){return(null===n||un(n))&&(e=function dD(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[X]}(ju(o.data),s,i),e,!0)}return Et}const Ra="en-US";let yv=Ra;function md(n,t,e,i,r){if(n=Y(n),Array.isArray(n))for(let o=0;o>20;if(xr(n)||!n.multi){const g=new bo(l,r,y),v=vd(a,t,r?c:c+f,d);-1===v?(ua(wo(u,s),o,a),_d(o,n,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),e.push(g),s.push(g)):(e[v]=g,s[v]=g)}else{const g=vd(a,t,c+f,d),v=vd(a,t,c,c+f),S=g>=0&&e[g],E=v>=0&&e[v];if(r&&!E||!r&&!S){ua(wo(u,s),o,a);const T=function iI(n,t,e,i,r){const o=new bo(n,e,y);return o.multi=[],o.index=t,o.componentProviders=0,$v(o,r,i&&!e),o}(r?nI:tI,e.length,r,i,l);!r&&E&&(e[v].providerFactory=T),_d(o,n,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),e.push(T),s.push(T)}else _d(o,n,g>-1?g:v,$v(e[r?v:g],l,!r&&i));!r&&i&&E&&e[v].componentProviders++}}}function _d(n,t,e,i){const r=xr(t),o=function PT(n){return!!n.useClass}(t);if(r||o){const l=(o?Y(t.useClass):t).prototype.ngOnDestroy;if(l){const u=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const c=u.indexOf(e);-1===c?u.push(e,[i,l]):u[c+1].push(i,l)}else u.push(e,l)}}}function $v(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function vd(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function eI(n,t,e){const i=ae();if(i.firstCreatePass){const r=un(n);md(e,i.data,i.blueprint,r,!0),md(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class zv{}class sI{resolveComponentFactory(t){throw function oI(n){const t=Error(`No component factory found for ${fe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Xo=(()=>{class n{}return n.NULL=new sI,n})();function aI(){return zr(je(),A())}function zr(n,t){return new Ft(Qt(n,t))}let Ft=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=aI,n})();function lI(n){return n instanceof Ft?n.nativeElement:n}class es{}let Qn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function cI(){const n=A(),e=Ot(je().index,n);return function uI(n){return n[X]}(wn(e)?e:n)}(),n})(),dI=(()=>{class n{}return n.\u0275prov=R({token:n,providedIn:"root",factory:()=>null}),n})();class ts{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fI=new ts("13.2.5"),Cd={};function Ba(n,t,e,i,r=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(Ve(o)),ln(o))for(let a=10;a-1&&(Cc(t,i),da(e,i))}this._attachedToViewContainer=!1}qg(this._lView[1],this._lView)}onDestroy(t){Tm(this._lView[1],this._lView,null,t)}markForCheck(){$c(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){qc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function CT(n,t,e){Xs(!0);try{qc(n,t,e)}finally{Xs(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new F(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mE(n,t){Bo(n,t,t[X],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,"");this._appRef=t}}class hI extends ns{constructor(t){super(t),this._view=t}detectChanges(){Rm(this._view)}checkNoChanges(){!function bT(n){Xs(!0);try{Rm(n)}finally{Xs(!1)}}(this._view)}get context(){return null}}class Gv extends Xo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=it(t);return new bd(e,this.ngModule)}}function Wv(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class bd extends zv{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function FE(n){return n.map(RE).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Wv(this.componentDef.inputs)}get outputs(){return Wv(this.componentDef.outputs)}create(t,e,i,r){const o=(r=r||this.ngModule)?function gI(n,t){return{get:(e,i,r)=>{const o=n.get(e,Cd,r);return o!==Cd||i===Cd?o:t.get(e,i,r)}}}(t,r.injector):t,s=o.get(es,Fp),a=o.get(dI,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=i?function Em(n,t,e){if(Pe(n))return n.selectRootElement(t,e===sn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):yc(s.createRenderer(null,this.componentDef),u,function pI(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),d=this.componentDef.onPush?576:528,f=function i_(n,t){return{components:[],scheduler:n||lE,clean:ST,playerHandler:t||null,flags:0}}(),g=Ta(0,null,null,1,0,null,null,null,null,null),v=Ho(null,g,f,d,null,null,s,l,a,o);let S,E;ea(v);try{const T=function t_(n,t,e,i,r,o){const s=e[1];e[20]=n;const l=Dr(s,20,2,"#host",null),u=l.mergedAttrs=t.hostAttrs;null!==u&&(xa(l,u,!0),null!==n&&(oa(r,n,u),null!==l.classes&&Ec(r,n,l.classes),null!==l.styles&&im(r,n,l.styles)));const c=i.createRenderer(n,t),d=Ho(e,wm(t),null,t.onPush?64:16,e[20],l,i,c,o||null,null);return s.firstCreatePass&&(ua(wo(l,e),s,t.type),Pm(s,l),Om(l,e.length,1)),Ma(e,d),e[20]=d}(c,this.componentDef,v,s,l);if(c)if(i)oa(l,c,["ng-version",fI.full]);else{const{attrs:w,classes:O}=function VE(n){const t=[],e=[];let i=1,r=2;for(;i0&&Ec(l,c,O.join(" "))}if(E=Fu(g,20),void 0!==e){const w=E.projection=[];for(let O=0;Ol(s,t)),t.contentQueries){const l=je();t.contentQueries(1,s,l.directiveStart)}const a=je();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(di(a.index),Im(e[1],a,0,a.directiveStart,a.directiveEnd,t),Am(t,s)),s}(T,this.componentDef,v,f,[jT]),jo(g,v,null)}finally{ta()}return new _I(this.componentType,S,zr(E,v),v,E)}}class _I extends class rI{}{constructor(t,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new hI(r),this.componentType=t}get injector(){return new pr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Jn{}class Kv{}const qr=new Map;class Zv extends Jn{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Gv(this);const i=Gt(t);this._bootstrapComponents=Mn(i.bootstrap),this._r3Injector=zm(t,e,[{provide:Jn,useValue:this},{provide:Xo,useValue:this.componentFactoryResolver}],fe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=at.THROW_IF_NOT_FOUND,i=G.Default){return t===at||t===Jn||t===Wc?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sd extends Kv{constructor(t){super(),this.moduleType=t,null!==Gt(t)&&function yI(n){const t=new Set;!function e(i){const r=Gt(i,!0),o=r.id;null!==o&&(function Qv(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${fe(t)} vs ${fe(t.name)}`)}(o,qr.get(o),i),qr.set(o,i));const s=Mn(r.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Zv(this.moduleType,t)}}function wd(n){return t=>{setTimeout(n,void 0,t)}}const de=class VI extends Bn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,o,s;let a=t,l=e||(()=>null),u=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=wd(l),a&&(a=wd(a)),u&&(u=wd(u)));const c=super.subscribe({next:a,error:l,complete:u});return t instanceof qt&&t.add(c),c}};function LI(){return this._results[Ir()]()}class Dd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ir(),i=Dd.prototype;i[e]||(i[e]=LI)}get changes(){return this._changes||(this._changes=new de)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Jt(t);(this._changesDetected=!function GD(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=HI,n})();const UI=Zn,BI=class extends UI{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ho(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(e)),jo(e,i,t),new ns(i)}};function HI(){return Ha(je(),A())}function Ha(n,t){return 4&n.type?new BI(t,n,zr(n,t)):null}let gn=(()=>{class n{}return n.__NG_ELEMENT_ID__=jI,n})();function jI(){return oy(je(),A())}const $I=gn,iy=class extends $I{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new pr(this._hostTNode,this._hostLView)}get parentInjector(){const t=la(this._hostTNode,this._hostLView);if(Yp(t)){const e=hr(t,this._hostLView),i=fr(t);return new pr(e[1].data[i+8],e)}return new pr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ry(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,o){const s=t&&!function Mo(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.ngModuleRef}const l=s?t:new bd(it(t)),u=i||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?u:this.parentInjector).get(Jn,null);f&&(o=f)}const c=l.create(u,r,void 0,o);return this.insert(c.hostView,a),c}insert(t,e){const i=t._lView,r=i[1];if(function hD(n){return ln(n[3])}(i)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=i[3],f=new iy(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function vE(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const u=o[a+1],c=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=qa,this.reject=qa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(P(Vd,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ss=new ee("AppId",{providedIn:"root",factory:function My(){return`${Ud()}${Ud()}${Ud()}`}});function Ud(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xy=new ee("Platform Initializer"),Ga=new ee("Platform ID"),Iy=new ee("appBootstrapListener");let Ay=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const _i=new ee("LocaleId",{providedIn:"root",factory:()=>o1(_i,G.Optional|G.SkipSelf)||function gA(){return"undefined"!=typeof $localize&&$localize.locale||Ra}()});class _A{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Py=(()=>{class n{compileModuleSync(e){return new Sd(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Mn(Gt(e).declarations).reduce((s,a)=>{const l=it(a);return l&&s.push(new bd(l)),s},[]);return new _A(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yA=(()=>Promise.resolve(0))();function Bd(n){"undefined"==typeof Zone?yA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class qe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new de(!1),this.onMicrotaskEmpty=new de(!1),this.onStable=new de(!1),this.onError=new de(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function CA(){let n=pe.requestAnimationFrame,t=pe.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function wA(n){const t=()=>{!function SA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(pe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,jd(n),n.isCheckStableRunning=!0,Hd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),jd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Oy(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Ny(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Oy(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Ny(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,jd(n),Hd(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(qe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,bA,qa,qa);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const bA={};function Hd(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function jd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ny(n){n._nesting--,Hd(n)}class DA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new de,this.onMicrotaskEmpty=new de,this.onStable=new de,this.onError=new de}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let $d=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qe.assertNotInAngularZone(),Bd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Bd(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(P(qe))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ky=(()=>{class n{constructor(){this._applications=new Map,zd.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return zd.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class EA{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let mn,zd=new EA;const Ry=new ee("AllowMultipleToken");class Fy{constructor(t,e){this.name=t,this.token=e}}function Vy(n,t,e=[]){const i=`Platform: ${t}`,r=new ee(i);return(o=[])=>{let s=Ly();if(!s||s.injector.get(Ry,!1))if(n)n(e.concat(o).concat({provide:r,useValue:!0}));else{const a=e.concat(o).concat({provide:r,useValue:!0},{provide:Kc,useValue:"platform"});!function IA(n){if(mn&&!mn.destroyed&&!mn.injector.get(Ry,!1))throw new F(400,"");mn=n.get(Uy);const t=n.get(xy,null);t&&t.forEach(e=>e())}(at.create({providers:a,name:i}))}return function AA(n){const t=Ly();if(!t)throw new F(401,"");return t}()}}function Ly(){return mn&&!mn.destroyed?mn:null}let Uy=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function PA(n,t){let e;return e="noop"===n?new DA:("zone.js"===n?void 0:n)||new qe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:qe,useValue:a}];return a.run(()=>{const u=at.create({providers:l,parent:this.injector,name:e.moduleType.name}),c=e.create(u),d=c.injector.get(Lo,null);if(!d)throw new F(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:g=>{d.handleError(g)}});c.onDestroy(()=>{Gd(this._modules,c),f.unsubscribe()})}),function OA(n,t,e){try{const i=e();return Wo(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const f=c.injector.get(Ld);return f.runInitializers(),f.donePromise.then(()=>(function ux(n){It(n,"Expected localeId to be defined"),"string"==typeof n&&(yv=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(_i,Ra)||Ra),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=By({},i);return function MA(n,t,e){const i=new Sd(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(qd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new F(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,"");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(P(at))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function By(n,t){return Array.isArray(t)?t.reduce(By,n):Object.assign(Object.assign({},n),t)}let qd=(()=>{class n{constructor(e,i,r,o,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ke(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new ke(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{qe.assertNotInAngularZone(),Bd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{qe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function Ow(...n){const t=go(n),e=function Ew(n,t){return"number"==typeof _u(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Sn(i[0]):po(e)(Je(i,t)):jn}(a,l.pipe(function Nw(n={}){const{connector:t=(()=>new Bn),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s=null,a=null,l=null,u=0,c=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=null},g=()=>{f(),s=l=null,c=d=!1},v=()=>{const S=s;g(),null==S||S.unsubscribe()};return et((S,E)=>{u++,!d&&!c&&f();const T=l=null!=l?l:t();E.add(()=>{u--,0===u&&!d&&!c&&(a=vu(v,r))}),T.subscribe(E),s||(s=new Bs({next:w=>T.next(w),error:w=>{d=!0,f(),a=vu(g,e,w),T.error(w)},complete:()=>{c=!0,f(),a=vu(g,i),T.complete()}}),Je(S).subscribe(s))})(o)}}()))}bootstrap(e,i){if(!this._initStatus.done)throw new F(405,"");let r;r=e instanceof zv?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const o=function xA(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Jn),a=r.create(at.NULL,[],i||r.selector,o),l=a.location.nativeElement,u=a.injector.get($d,null),c=u&&a.injector.get(ky);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Gd(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new F(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Gd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Iy,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(P(qe),P(at),P(Lo),P(Xo),P(Ld))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gd(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let jy=!0,Wa=(()=>{class n{}return n.__NG_ELEMENT_ID__=RA,n})();function RA(n){return function FA(n,t,e){if(Qs(n)&&!e){const i=Ot(n.index,t);return new ns(i,i)}return 47&n.type?new ns(t[16],t):null}(je(),A(),16==(16&n))}class Wy{constructor(){}supports(t){return zo(t)}create(t){return new jA(t)}}const HA=(n,t)=>t;class jA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||HA}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new $A(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ky),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ky),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class $A{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class zA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Ky{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new zA,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qy(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Zy()),deps:[[n,new Oo,new hi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new F(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:Zy}),n})();const QA=Vy(null,"core",[{provide:Ga,useValue:"unknown"},{provide:Uy,deps:[at]},{provide:ky,deps:[]},{provide:Ay,deps:[]}]);let JA=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(P(qd))},n.\u0275mod=St({type:n}),n.\u0275inj=ft({}),n})(),Za=null;function Nn(){return Za}const vt=new ee("DocumentToken");let $i=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function eP(){return P(Xy)}()},providedIn:"platform"}),n})();const tP=new ee("Location Initialized");let Xy=(()=>{class n extends $i{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nn().getBaseHref(this._doc)}onPopState(e){const i=Nn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Nn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){eC()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){eC()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(P(vt))},n.\u0275prov=R({token:n,factory:function(){return function nP(){return new Xy(P(vt))}()},providedIn:"platform"}),n})();function eC(){return!!window.history.pushState}function Zd(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function tC(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Yn(n){return n&&"?"!==n[0]?"?"+n:n}let Qr=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function iP(n){const t=P(vt).location;return new nC(P($i),t&&t.origin||"")}()},providedIn:"root"}),n})();const Yd=new ee("appBaseHref");let nC=(()=>{class n extends Qr{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Zd(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Yn(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Yn(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Yn(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(P($i),P(Yd,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),rP=(()=>{class n extends Qr{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Zd(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Yn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Yn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(P($i),P(Yd,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Tt=(()=>{class n{constructor(e,i){this._subject=new de,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=tC(iC(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Yn(i))}normalize(e){return n.stripTrailingSlash(function sP(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,iC(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yn(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yn(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Yn,n.joinWithSlash=Zd,n.stripTrailingSlash=tC,n.\u0275fac=function(e){return new(e||n)(P(Qr),P($i))},n.\u0275prov=R({token:n,factory:function(){return function oP(){return new Tt(P(Qr),P($i))}()},providedIn:"root"}),n})();function iC(n){return n.replace(/\/index.html$/,"")}function fC(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}class qP{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let kn=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new qP(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),hC(a,r)}});for(let r=0,o=i.length;r{hC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(y(gn),y(Zn),y(Ja))},n.\u0275dir=$({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function hC(n,t){n.context.$implicit=t.item}let We=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new GP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){pC("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){pC("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(y(gn),y(Zn))},n.\u0275dir=$({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class GP{constructor(){this.$implicit=null,this.ngIf=null}}function pC(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${fe(t)}'.`)}let yO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({}),n})();let wO=(()=>{class n{}return n.\u0275prov=R({token:n,providedIn:"root",factory:()=>new DO(P(vt),window)}),n})();class DO{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function EO(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=vC(this.window.history)||vC(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function vC(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class yC{}class hf extends class TO extends class XA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function YA(n){Za||(Za=n)}(new hf)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function MO(){return cs=cs||document.querySelector("base"),cs?cs.getAttribute("href"):null}();return null==e?null:function xO(n){al=al||document.createElement("a"),al.setAttribute("href",n);const t=al.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){cs=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return fC(document.cookie,t)}}let al,cs=null;const CC=new ee("TRANSITION_ID"),AO=[{provide:Vd,useFactory:function IO(n,t,e){return()=>{e.get(Ld).donePromise.then(()=>{const i=Nn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},pe.getAllAngularTestabilities=()=>t.getAllTestabilities(),pe.getAllAngularRootElements=()=>t.getAllRootElements(),pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(i=>{const r=pe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Nn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let PO=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const ll=new ee("EventManagerPlugins");let ul=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ds=(()=>{class n extends SC{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(wC),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(wC))}}return n.\u0275fac=function(e){return new(e||n)(P(vt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function wC(n){Nn().remove(n)}const gf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mf=/%COMP%/g;function cl(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let dl=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new _f(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case sn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new VO(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case sn.ShadowDom:return new LO(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=cl(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(P(ul),P(ds),P(ss))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class _f{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(gf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=gf[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=gf[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(kt.DashCase|kt.Important)?t.style.setProperty(e,i,r&kt.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&kt.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,TC(i)):this.eventManager.addEventListener(t,e,TC(i))}}class VO extends _f{constructor(t,e,i,r){super(t),this.component=i;const o=cl(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function kO(n){return"_ngcontent-%COMP%".replace(mf,n)}(r+"-"+i.id),this.hostAttr=function RO(n){return"_nghost-%COMP%".replace(mf,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class LO extends _f{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=cl(r.id,r.styles,[]);for(let s=0;s{class n extends bC{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(P(vt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const xC=["alt","control","meta","shift"],HO={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},IC={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},jO={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let $O=(()=>{class n extends bC{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nn().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(xC.forEach(l=>{const u=i.indexOf(l);u>-1&&(i.splice(u,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function zO(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&IC.hasOwnProperty(t)&&(t=IC[t]))}return HO[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),xC.forEach(o=>{o!=r&&jO[o](e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(P(vt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const KO=Vy(QA,"browser",[{provide:Ga,useValue:"browser"},{provide:xy,useValue:function qO(){hf.makeCurrent(),pf.init()},multi:!0},{provide:vt,useFactory:function WO(){return function uD(n){ku=n}(document),document},deps:[]}]),QO=[{provide:Kc,useValue:"root"},{provide:Lo,useFactory:function GO(){return new Lo},deps:[]},{provide:ll,useClass:UO,multi:!0,deps:[vt,qe,Ga]},{provide:ll,useClass:$O,multi:!0,deps:[vt]},{provide:dl,useClass:dl,deps:[ul,ds,ss]},{provide:es,useExisting:dl},{provide:SC,useExisting:ds},{provide:ds,useClass:ds,deps:[vt]},{provide:$d,useClass:$d,deps:[qe]},{provide:ul,useClass:ul,deps:[ll,qe]},{provide:yC,useClass:PO,deps:[]}];let AC=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:ss,useValue:e.appId},{provide:CC,useExisting:ss},AO]}}}return n.\u0275fac=function(e){return new(e||n)(P(n,12))},n.\u0275mod=St({type:n}),n.\u0275inj=ft({providers:QO,imports:[yO,JA]}),n})();function J(...n){return Je(n,go(n))}"undefined"!=typeof window&&window;class yn extends Bn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}const{isArray:sN}=Array,{getPrototypeOf:aN,prototype:lN,keys:uN}=Object;function NC(n){if(1===n.length){const t=n[0];if(sN(t))return{args:t,keys:null};if(function cN(n){return n&&"object"==typeof n&&aN(n)===lN}(t)){const e=uN(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:dN}=Array;function kC(n){return ce(t=>function fN(n,t){return dN(t)?n(...t):n(t)}(n,t))}function RC(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function FC(n,t,e){n?Hn(e,n,t):t()}function fl(n,t){const e=_e(n)?n:()=>n,i=r=>r.error(e());return new ke(t?r=>t.schedule(i,0,r):i)}const hl=fo(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function yf(...n){return function gN(){return po(1)}()(Je(n,go(n)))}function VC(n){return new ke(t=>{Sn(n()).subscribe(t)})}function LC(){return et((n,t)=>{let e=null;n._refCount++;const i=Ke(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class mN extends ke{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,rp(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new qt;const e=this.getSubject();t.add(this.source.subscribe(Ke(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=qt.EMPTY)}return t}refCount(){return LC()(this)}}function zi(n,t){return et((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(Ke(i,l=>{null==r||r.unsubscribe();let u=0;const c=o++;Sn(n(l,c)).subscribe(r=Ke(i,d=>i.next(t?t(l,d,c,u++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function vN(n,t,e,i,r){return(o,s)=>{let a=e,l=t,u=0;o.subscribe(Ke(s,c=>{const d=u++;l=a?n(l,c,d):(a=!0,c),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function UC(n,t){return et(vN(n,t,arguments.length>=2,!0))}function qi(n,t){return et((e,i)=>{let r=0;e.subscribe(Ke(i,o=>n.call(t,o,r++)&&i.next(o)))})}function yi(n){return et((t,e)=>{let o,i=null,r=!1;i=t.subscribe(Ke(e,void 0,void 0,s=>{o=Sn(n(s,yi(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Jr(n,t){return _e(t)?Qe(n,t,1):Qe(n,1)}function Cf(n){return n<=0?()=>jn:et((t,e)=>{let i=[];t.subscribe(Ke(e,r=>{i.push(r),n{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function BC(n=yN){return et((t,e)=>{let i=!1;t.subscribe(Ke(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function yN(){return new hl}function HC(n){return et((t,e)=>{let i=!1;t.subscribe(Ke(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function Zr(n,t){const e=arguments.length>=2;return i=>i.pipe(n?qi((r,o)=>n(r,o,i)):Oi,js(1),e?HC(t):BC(()=>new hl))}function Vt(n,t,e){const i=_e(n)||t||e?{next:n,error:t,complete:e}:n;return i?et((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Ke(o,l=>{var u;null===(u=i.next)||void 0===u||u.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var u;a=!1,null===(u=i.error)||void 0===u||u.call(i,l),o.error(l)},()=>{var l,u;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Oi}class ei{constructor(t,e){this.id=t,this.url=e}}class bf extends ei{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fs extends ei{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jC extends ei{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class SN extends ei{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wN extends ei{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DN extends ei{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EN extends ei{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class TN extends ei{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MN extends ei{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $C{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zC{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xN{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class IN{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AN{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PN{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qC{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ie="primary";class ON{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yr(n){return new ON(n)}const GC="ngNavigationCancelingError";function Sf(n){const t=Error("NavigationCancelingError: "+n);return t[GC]=!0,t}function kN(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function KC(n){return Array.prototype.concat.apply([],n)}function QC(n){return n.length>0?n[n.length-1]:null}function tt(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Fn(n){return ud(n)?n:Wo(n)?Je(Promise.resolve(n)):J(n)}const VN={exact:function YC(n,t,e){if(!Wi(n.segments,t.segments)||!pl(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!YC(n.children[i],t.children[i],e))return!1;return!0},subset:XC},JC={exact:function LN(n,t){return Rn(n,t)},subset:function UN(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>WC(n[e],t[e]))},ignored:()=>!0};function ZC(n,t,e){return VN[e.paths](n.root,t.root,e.matrixParams)&&JC[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function XC(n,t,e){return eb(n,t,t.segments,e)}function eb(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Wi(r,e)||t.hasChildren()||!pl(r,e,i))}if(n.segments.length===e.length){if(!Wi(n.segments,e)||!pl(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!XC(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Wi(n.segments,r)&&pl(n.segments,r,i)&&n.children[ie])&&eb(n.children[ie],t,o,i)}}function pl(n,t,e){return t.every((i,r)=>JC[e](n[r].parameters,i.parameters))}class Gi{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yr(this.queryParams)),this._queryParamMap}toString(){return jN.serialize(this)}}class oe{constructor(t,e){this.segments=t,this.children=e,this.parent=null,tt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gl(this)}}class hs{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yr(this.parameters)),this._parameterMap}toString(){return ob(this)}}function Wi(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class tb{}class nb{parse(t){const e=new ZN(t);return new Gi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${ps(t.root,!0)}`,i=function qN(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${ml(e)}=${ml(r)}`).join("&"):`${ml(e)}=${ml(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function $N(n){return encodeURI(n)}(t.fragment)}`:""}`}}const jN=new nb;function gl(n){return n.segments.map(t=>ob(t)).join("/")}function ps(n,t){if(!n.hasChildren())return gl(n);if(t){const e=n.children[ie]?ps(n.children[ie],!1):"",i=[];return tt(n.children,(r,o)=>{o!==ie&&i.push(`${o}:${ps(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function HN(n,t){let e=[];return tt(n.children,(i,r)=>{r===ie&&(e=e.concat(t(i,r)))}),tt(n.children,(i,r)=>{r!==ie&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===ie?[ps(n.children[ie],!1)]:[`${r}:${ps(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ie]?`${gl(n)}/${e[0]}`:`${gl(n)}/(${e.join("//")})`}}function ib(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ml(n){return ib(n).replace(/%3B/gi,";")}function wf(n){return ib(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _l(n){return decodeURIComponent(n)}function rb(n){return _l(n.replace(/\+/g,"%20"))}function ob(n){return`${wf(n.path)}${function zN(n){return Object.keys(n).map(t=>`;${wf(t)}=${wf(n[t])}`).join("")}(n.parameters)}`}const GN=/^[^\/()?;=#]+/;function vl(n){const t=n.match(GN);return t?t[0]:""}const WN=/^[^=?&#]+/,QN=/^[^&#]+/;class ZN{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[ie]=new oe(t,e)),i}parseSegment(){const t=vl(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new hs(_l(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=vl(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=vl(this.remaining);r&&(i=r,this.capture(i))}t[_l(e)]=_l(i)}parseQueryParam(t){const e=function KN(n){const t=n.match(WN);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function JN(n){const t=n.match(QN);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=rb(e),o=rb(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=vl(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let o;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ie);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ie]:new oe([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class sb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Df(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Df(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ef(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Ef(t,this._root).map(e=>e.value)}}function Df(n,t){if(n===t.value)return t;for(const e of t.children){const i=Df(n,e);if(i)return i}return null}function Ef(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Ef(n,e);if(i.length)return i.unshift(t),i}return[]}class ti{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xr(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class ab extends sb{constructor(t,e){super(t),this.snapshot=e,Tf(this,t)}toString(){return this.snapshot.toString()}}function lb(n,t){const e=function YN(n,t){const s=new yl([],{},{},"",{},ie,t,null,n.root,-1,{});return new cb("",new ti(s,[]))}(n,t),i=new yn([new hs("",{})]),r=new yn({}),o=new yn({}),s=new yn({}),a=new yn(""),l=new He(i,r,s,a,o,ie,t,e.root);return l.snapshot=e.root,new ab(new ti(l,[]),e)}class He{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ce(t=>Yr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ce(t=>Yr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ub(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XN(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class yl{constructor(t,e,i,r,o,s,a,l,u,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cb extends sb{constructor(t,e){super(e),this.url=t,Tf(this,e)}toString(){return db(this._root)}}function Tf(n,t){t.value._routerState=n,t.children.forEach(e=>Tf(n,e))}function db(n){const t=n.children.length>0?` { ${n.children.map(db).join(", ")} } `:"";return`${n.value}${t}`}function Mf(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Rn(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Rn(t.params,e.params)||n.params.next(e.params),function RN(n,t){if(n.length!==t.length)return!1;for(let e=0;eRn(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||xf(n.parent,t.parent))}function gs(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function tk(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return gs(n,i,r);return gs(n,i)})}(n,t,e);return new ti(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>gs(n,a)),s}}const i=function nk(n){return new He(new yn(n.url),new yn(n.params),new yn(n.queryParams),new yn(n.fragment),new yn(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>gs(n,o));return new ti(i,r)}}function Cl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function ms(n){return"object"==typeof n&&null!=n&&n.outlets}function If(n,t,e,i,r){let o={};return i&&tt(i,(s,a)=>{o[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new Gi(e.root===n?t:fb(e.root,n,t),o,r)}function fb(n,t,e){const i={};return tt(n.children,(r,o)=>{i[o]=r===t?e:fb(r,t,e)}),new oe(n.segments,i)}class hb{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Cl(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(ms);if(r&&r!==QC(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Af{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function pb(n,t,e){if(n||(n=new oe([],{})),0===n.segments.length&&n.hasChildren())return bl(n,t,e);const i=function lk(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(ms(a))break;const l=`${a}`,u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!mb(l,u,s))return o;i+=2}else{if(!mb(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=pb(n.children[s],t,o))}),tt(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new oe(n.segments,r)}}function Pf(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Pf(new oe([],{}),0,e))}),t}function gb(n){const t={};return tt(n,(e,i)=>t[i]=`${e}`),t}function mb(n,t,e){return n==e.path&&Rn(t,e.parameters)}class dk{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Mf(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Xr(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),tt(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Xr(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Xr(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Xr(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new PN(o.value.snapshot))}),t.children.length&&this.forwardEvent(new IN(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Mf(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),Mf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function fk(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=r,s.resolver=l,s.outlet&&s.outlet.activateWith(r,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class Of{constructor(t,e){this.routes=t,this.module=e}}function Ci(n){return"function"==typeof n}function Ki(n){return n instanceof Gi}const _s=Symbol("INITIAL_VALUE");function vs(){return zi(n=>function hN(...n){const t=go(n),e=vp(n),{args:i,keys:r}=NC(n);if(0===i.length)return Je([],t);const o=new ke(function pN(n,t,e=Oi){return i=>{FC(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const u=Je(n[l],t);let c=!1;u.subscribe(Ke(i,d=>{o[l]=d,c||(c=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>RC(r,s):Oi));return e?o.pipe(kC(e)):o}(n.map(t=>t.pipe(js(1),function _N(...n){const t=go(n);return et((e,i)=>{(t?yf(n,e,t):yf(n,e)).subscribe(i)})}(_s)))).pipe(UC((t,e)=>{let i=!1;return e.reduce((r,o,s)=>r!==_s?r:(o===_s&&(i=!0),i||!1!==o&&s!==e.length-1&&!Ki(o)?r:o),t)},_s),qi(t=>t!==_s),ce(t=>Ki(t)?t:!0===t),js(1)))}class vk{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ys,this.attachRef=null}}class ys{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new vk,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Nf=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new de,this.deactivateEvents=new de,this.attachEvents=new de,this.detachEvents=new de,this.name=o||ie,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const s=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new yk(e,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(y(ys),y(gn),y(Xo),function Eo(n){return function BD(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ye({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&I(0,"router-outlet")},directives:[Nf],encapsulation:2}),n})();function vb(n,t=""){for(let e=0;een(i)===t);return e.push(...n.filter(i=>en(i)!==t)),e}const Cb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Sl(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},Cb):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(t.matcher||kN)(e,n,t);if(!o)return Object.assign({},Cb);const s={};tt(o.posParams,(l,u)=>{s[u]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function wl(n,t,e,i,r="corrected"){if(e.length>0&&function Dk(n,t,e){return e.some(i=>Dl(n,t,i)&&en(i)!==ie)}(n,e,i)){const s=new oe(t,function wk(n,t,e,i){const r={};r[ie]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&en(o)!==ie){const s=new oe([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[en(o)]=s}return r}(n,t,i,new oe(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Ek(n,t,e){return e.some(i=>Dl(n,t,i))}(n,e,i)){const s=new oe(n.segments,function Sk(n,t,e,i,r,o){const s={};for(const a of i)if(Dl(n,e,a)&&!r[en(a)]){const l=new oe([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[en(a)]=l}return Object.assign(Object.assign({},r),s)}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new oe(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function Dl(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function bb(n,t,e,i){return!!(en(n)===i||i!==ie&&Dl(t,e,n))&&("**"===n.path||Sl(t,n,e).matched)}function Sb(n,t,e){return 0===t.length&&!n.children[e]}class Cs{constructor(t){this.segmentGroup=t||null}}class wb{constructor(t){this.urlTree=t}}function El(n){return fl(new Cs(n))}function Db(n){return fl(new wb(n))}class Ik{constructor(t,e,i,r,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Jn)}apply(){const t=wl(this.urlTree.root,[],[],this.config).segmentGroup,e=new oe(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ie).pipe(ce(o=>this.createUrlTree(Rf(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(yi(o=>{if(o instanceof wb)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Cs?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ie).pipe(ce(r=>this.createUrlTree(Rf(r),t.queryParams,t.fragment))).pipe(yi(r=>{throw r instanceof Cs?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new oe([],{[ie]:t}):t;return new Gi(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ce(o=>new oe([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Je(r).pipe(Jr(o=>{const s=i.children[o],a=yb(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(ce(l=>({segment:l,outlet:o})))}),UC((o,s)=>(o[s.outlet]=s.segment,o),{}),function CN(n,t){const e=arguments.length>=2;return i=>i.pipe(n?qi((r,o)=>n(r,o,i)):Oi,Cf(1),e?HC(t):BC(()=>new hl))}())}expandSegment(t,e,i,r,o,s){return Je(i).pipe(Jr(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(yi(u=>{if(u instanceof Cs)return J(null);throw u}))),Zr(a=>!!a),yi((a,l)=>{if(a instanceof hl||"EmptyError"===a.name){if(Sb(e,r,o))return J(new oe([],{}));throw new Cs(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return bb(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):El(e):El(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Db(o):this.lineralizeSegments(i,o).pipe(Qe(s=>{const a=new oe(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Sl(e,r,o);if(!a)return El(e);const d=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?Db(d):this.lineralizeSegments(r,d).pipe(Qe(f=>this.expandSegment(t,e,i,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){if("**"===i.path)return i.loadChildren?(i._loadedConfig?J(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ce(d=>(i._loadedConfig=d,new oe(r,{})))):J(new oe(r,{}));const{matched:s,consumedSegments:a,remainingSegments:l}=Sl(e,i,r);return s?this.getChildConfig(t,i,r).pipe(Qe(c=>{const d=c.module,f=c.routes,{segmentGroup:g,slicedSegments:v}=wl(e,a,l,f),S=new oe(g.segments,g.children);if(0===v.length&&S.hasChildren())return this.expandChildren(d,f,S).pipe(ce(O=>new oe(a,O)));if(0===f.length&&0===v.length)return J(new oe(a,{}));const E=en(i)===o;return this.expandSegment(d,S,f,v,E?ie:o,!0).pipe(ce(w=>new oe(a.concat(w.segments),w.children)))})):El(e)}getChildConfig(t,e,i){return e.children?J(new Of(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?J(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Qe(r=>r?this.configLoader.load(t.injector,e).pipe(ce(o=>(e._loadedConfig=o,o))):function Mk(n){return fl(Sf(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):J(new Of([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;return r&&0!==r.length?J(r.map(s=>{const a=t.get(s);let l;if(function pk(n){return n&&Ci(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!Ci(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Fn(l)})).pipe(vs(),Vt(s=>{if(!Ki(s))return;const a=Sf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),ce(s=>!0===s)):J(!0)}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return J(i);if(r.numberOfChildren>1||!r.children[ie])return fl(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t.redirectTo}'`));r=r.children[ie]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Gi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return tt(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return tt(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new oe(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function Rf(n){const t={};for(const i of Object.keys(n.children)){const o=Rf(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function Ak(n){if(1===n.numberOfChildren&&n.children[ie]){const t=n.children[ie];return new oe(n.segments.concat(t.segments),t.children)}return n}(new oe(n.segments,t))}class Eb{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Tl{constructor(t,e){this.component=t,this.route=e}}function Ok(n,t,e){const i=n._root;return bs(i,t?t._root:null,e,[i.value])}function Ml(n,t,e){const i=function kk(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function bs(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xr(t);return n.children.forEach(s=>{(function Rk(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Fk(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Wi(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Wi(n.url,t.url)||!Rn(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(n,t)||!Rn(n.queryParams,t.queryParams);default:return!xf(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Eb(i)):(o.data=s.data,o._resolvedData=s._resolvedData),bs(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Tl(a.outlet.component,s))}else s&&Ss(t,a,r),r.canActivateChecks.push(new Eb(i)),bs(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),tt(o,(s,a)=>Ss(s,e.getContext(a),r)),r}function Ss(n,t,e){const i=Xr(n),r=n.value;tt(i,(o,s)=>{Ss(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Tl(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class qk{}function Tb(n){return new ke(t=>t.error(n))}class Wk{constructor(t,e,i,r,o,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=wl(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ie);if(null===e)return null;const i=new yl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ie,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ti(i,e),o=new cb(this.url,r);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const e=t.value,i=ub(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const o of Object.keys(e.children)){const s=e.children[o],a=yb(t,o),l=this.processSegmentGroup(a,s,o);if(null===l)return null;i.push(...l)}const r=Mb(i);return function Kk(n){n.sort((t,e)=>t.value.outlet===ie?-1:e.value.outlet===ie?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const o of t){const s=this.processSegmentAgainstRoute(o,e,i,r);if(null!==s)return s}return Sb(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!bb(t,e,i,r))return null;let o,s=[],a=[];if("**"===t.path){const g=i.length>0?QC(i).parameters:{};o=new yl(i,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ab(t),en(t),t.component,t,xb(e),Ib(e)+i.length,Pb(t))}else{const g=Sl(e,t,i);if(!g.matched)return null;s=g.consumedSegments,a=g.remainingSegments,o=new yl(s,g.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ab(t),en(t),t.component,t,xb(e),Ib(e)+s.length,Pb(t))}const l=function Qk(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:u,slicedSegments:c}=wl(e,s,a,l.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const g=this.processChildren(l,u);return null===g?null:[new ti(o,g)]}if(0===l.length&&0===c.length)return[new ti(o,[])];const d=en(t)===r,f=this.processSegment(l,u,c,d?ie:r);return null===f?null:[new ti(o,f)]}}function Jk(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Mb(n){const t=[],e=new Set;for(const i of n){if(!Jk(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=Mb(i.children);t.push(new ti(i.value,r))}return t.filter(i=>!e.has(i))}function xb(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Ib(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function Ab(n){return n.data||{}}function Pb(n){return n.resolve||{}}function Ob(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Ff(n){return zi(t=>{const e=n(t);return e?Je(e).pipe(ce(()=>t)):J(t)})}class rR extends class iR{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Vf=new ee("ROUTES");class Nb{constructor(t,e,i,r){this.injector=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ce(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=o.create(t);return new Of(KC(s.injector.get(Vf,void 0,G.Self|G.Optional)).map(kf),s)}),yi(o=>{throw e._loader$=void 0,o}));return e._loader$=new mN(r,()=>new Bn).pipe(LC()),e._loader$}loadModuleFactory(t){return Fn(t()).pipe(Qe(e=>e instanceof Kv?J(e):Je(this.compiler.compileModuleAsync(e))))}}class sR{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function aR(n){throw n}function lR(n,t,e){return t.parse("/")}function kb(n,t){return J(null)}const uR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let le=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Bn,this.errorHandler=aR,this.malformedUriErrorHandler=lR,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kb,afterPreactivation:kb},this.urlHandlingStrategy=new sR,this.routeReuseStrategy=new rR,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Jn),this.console=s.get(Ay);const d=s.get(qe);this.isNgZoneEnabled=d instanceof qe&&qe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function FN(){return new Gi(new oe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Nb(s,a,f=>this.triggerEvent(new $C(f)),f=>this.triggerEvent(new zC(f))),this.routerState=lb(this.currentUrlTree,this.rootComponentType),this.transitions=new yn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(qi(r=>0!==r.id),ce(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),zi(r=>{let o=!1,s=!1;return J(r).pipe(Vt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),zi(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return xl(a.source)&&(this.browserUrlTree=a.extractedUrl),J(a).pipe(zi(d=>{const f=this.transitions.getValue();return i.next(new bf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?jn:Promise.resolve(d)}),function Pk(n,t,e,i){return zi(r=>function xk(n,t,e,i,r){return new Ik(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ce(o=>Object.assign(Object.assign({},r),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Vt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function Zk(n,t,e,i,r){return Qe(o=>function Gk(n,t,e,i,r="emptyOnly",o="legacy"){try{const s=new Wk(n,t,e,i,r,o).recognize();return null===s?Tb(new qk):J(s)}catch(s){return Tb(s)}}(n,t,o.urlAfterRedirects,e(o.urlAfterRedirects),i,r).pipe(ce(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Vt(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const g=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(g,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new wN(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:g,source:v,restoredState:S,extras:E}=a,T=new bf(f,this.serializeUrl(g),v,S);i.next(T);const w=lb(g,this.rootComponentType).snapshot;return J(Object.assign(Object.assign({},a),{targetSnapshot:w,urlAfterRedirects:g,extras:Object.assign(Object.assign({},E),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),jn}),Ff(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:g}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!g})}),Vt(a=>{const l=new DN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ce(a=>Object.assign(Object.assign({},a),{guards:Ok(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function Vk(n,t){return Qe(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?J(Object.assign(Object.assign({},e),{guardsResult:!0})):function Lk(n,t,e,i){return Je(n).pipe(Qe(r=>function zk(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?J(o.map(a=>{const l=Ml(a,t,r);let u;if(function _k(n){return n&&Ci(n.canDeactivate)}(l))u=Fn(l.canDeactivate(n,t,e,i));else{if(!Ci(l))throw new Error("Invalid CanDeactivate guard");u=Fn(l(n,t,e,i))}return u.pipe(Zr())})).pipe(vs()):J(!0)}(r.component,r.route,e,t,i)),Zr(r=>!0!==r,!0))}(s,i,r,n).pipe(Qe(a=>a&&function hk(n){return"boolean"==typeof n}(a)?function Uk(n,t,e,i){return Je(t).pipe(Jr(r=>yf(function Hk(n,t){return null!==n&&t&&t(new xN(n)),J(!0)}(r.route.parent,i),function Bk(n,t){return null!==n&&t&&t(new AN(n)),J(!0)}(r.route,i),function $k(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function Nk(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>VC(()=>J(s.guards.map(l=>{const u=Ml(l,s.node,e);let c;if(function mk(n){return n&&Ci(n.canActivateChild)}(u))c=Fn(u.canActivateChild(i,n));else{if(!Ci(u))throw new Error("Invalid CanActivateChild guard");c=Fn(u(i,n))}return c.pipe(Zr())})).pipe(vs())));return J(o).pipe(vs())}(n,r.path,e),function jk(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return J(!0);const r=i.map(o=>VC(()=>{const s=Ml(o,t,e);let a;if(function gk(n){return n&&Ci(n.canActivate)}(s))a=Fn(s.canActivate(t,n));else{if(!Ci(s))throw new Error("Invalid CanActivate guard");a=Fn(s(t,n))}return a.pipe(Zr())}));return J(r).pipe(vs())}(n,r.route,e))),Zr(r=>!0!==r,!0))}(i,o,n,t):J(a)),ce(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Vt(a=>{if(Ki(a.guardsResult)){const u=Sf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new EN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),qi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Ff(a=>{if(a.guards.canActivateChecks.length)return J(a).pipe(Vt(l=>{const u=new TN(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),zi(l=>{let u=!1;return J(l).pipe(function Yk(n,t){return Qe(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return J(e);let o=0;return Je(r).pipe(Jr(s=>function Xk(n,t,e,i){return function eR(n,t,e,i){const r=Ob(n);if(0===r.length)return J({});const o={};return Je(r).pipe(Qe(s=>function tR(n,t,e,i){const r=Ml(n,t,i);return Fn(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(Vt(a=>{o[s]=a}))),Cf(1),Qe(()=>Ob(o).length===r.length?J(o):jn))}(n._resolve,n,t,i).pipe(ce(o=>(n._resolvedData=o,n.data=Object.assign(Object.assign({},n.data),ub(n,e).resolve),null)))}(s.route,i,n,t)),Vt(()=>o++),Cf(1),Qe(s=>o===r.length?J(e):jn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Vt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Vt(l=>{const u=new MN(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Ff(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:g}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!g})}),ce(a=>{const l=function ek(n,t,e){const i=gs(n,t._root,e?e._root:void 0);return new ab(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Vt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ce(i=>(new dk(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Vt({next(){o=!0},complete(){o=!0}}),function bN(n){return et((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>{var a;o||s||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),yi(a=>{if(s=!0,function NN(n){return n&&n[GC]}(a)){const l=Ki(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const u=new jC(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xl(r.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new SN(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(u){r.reject(u)}}return jn}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const o={replaceUrl:!0},s=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){vb(e),this.config=e.map(kf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,u=r||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function ik(n,t,e,i,r){if(0===e.length)return If(t.root,t.root,t,i,r);const o=function rk(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new hb(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return tt(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new hb(e,t,i)}(e);if(o.toRoot())return If(t.root,new oe([],{}),t,i,r);const s=function ok(n,t,e){if(n.isAbsolute)return new Af(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new Af(o,o===t.root,0)}const i=Cl(n.commands[0])?0:1;return function sk(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Af(i,!1,r-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(o,t,n),a=s.processChildren?bl(s.segmentGroup,s.index,o.commands):pb(s.segmentGroup,s.index,o.commands);return If(s.segmentGroup,a,t,i,r)}(u,this.currentUrlTree,e,d,null!=c?c:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Ki(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function dR(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new fs(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){var a,l,u;if(this.disposed)return Promise.resolve(!1);const c=this.transitions.value,d=xl(i)&&c&&!xl(c.source),f=c.rawUrl.toString()===e.toString(),g=c.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&f&&g)return Promise.resolve(!0);let S,E,T;s?(S=s.resolve,E=s.reject,T=s.promise):T=new Promise((V,Z)=>{S=V,E=Z});const w=++this.navigationId;let O;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),O=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):O=0,this.setTransition({id:w,targetPageId:O,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:S,reject:E,promise:T,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),T.catch(V=>Promise.reject(V))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){var r,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new jC(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){od()},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function xl(n){return"imperative"!==n}class Rb{}class Fb{preload(t,e){return J(null)}}let Vb=(()=>{class n{constructor(e,i,r,o){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new Nb(r,i,l=>e.triggerEvent(new $C(l)),l=>e.triggerEvent(new zC(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(qi(e=>e instanceof fs),Jr(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Jn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;r.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children));return Je(r).pipe(po(),ce(o=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?J(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Qe(o=>(i._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(P(le),P(Py),P(at),P(Rb))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Bf=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fs&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qC&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new qC(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){od()},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Qi=new ee("ROUTER_CONFIGURATION"),Lb=new ee("ROUTER_FORROOT_GUARD"),gR=[Tt,{provide:tb,useClass:nb},{provide:le,useFactory:function CR(n,t,e,i,r,o,s={},a,l){const u=new le(null,n,t,e,i,r,KC(o));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),function bR(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,u),s.enableTracing&&u.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),u},deps:[tb,ys,Tt,at,Py,Vf,Qi,[class oR{},new hi],[class nR{},new hi]]},ys,{provide:He,useFactory:function SR(n){return n.routerState.root},deps:[le]},Vb,Fb,class pR{preload(t,e){return e().pipe(yi(()=>J(null)))}},{provide:Qi,useValue:{enableTracing:!1}}];function mR(){return new Fy("Router",le)}let Hf=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[gR,Ub(e),{provide:Lb,useFactory:yR,deps:[[le,new hi,new Oo]]},{provide:Qi,useValue:i||{}},{provide:Qr,useFactory:vR,deps:[$i,[new pa(Yd),new hi],Qi]},{provide:Bf,useFactory:_R,deps:[le,wO,Qi]},{provide:Rb,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Fb},{provide:Fy,multi:!0,useFactory:mR},[jf,{provide:Vd,multi:!0,useFactory:wR,deps:[jf]},{provide:Bb,useFactory:DR,deps:[jf]},{provide:Iy,multi:!0,useExisting:Bb}]]}}static forChild(e){return{ngModule:n,providers:[Ub(e)]}}}return n.\u0275fac=function(e){return new(e||n)(P(Lb,8),P(le,8))},n.\u0275mod=St({type:n}),n.\u0275inj=ft({}),n})();function _R(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new Bf(n,t,e)}function vR(n,t,e={}){return e.useHash?new rP(n,t):new nC(n,t)}function yR(n){return"guarded"}function Ub(n){return[{provide:qD,multi:!0,useValue:n},{provide:Vf,multi:!0,useValue:n}]}let jf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Bn}appInitializer(){return this.injector.get(tP,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),o=this.injector.get(le),s=this.injector.get(Qi);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),i(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?J(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),o.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(Qi),r=this.injector.get(Vb),o=this.injector.get(Bf),s=this.injector.get(le),a=this.injector.get(qd);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),r.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(P(at))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function wR(n){return n.appInitializer.bind(n)}function DR(n){return n.bootstrapListener.bind(n)}const Bb=new ee("Router Initializer");class Hb{}const ni="*";function jb(n,t){return{type:7,name:n,definitions:t,options:{}}}function $f(n,t=null){return{type:4,styles:t,timings:n}}function $b(n,t=null){return{type:2,steps:n,options:t}}function bi(n){return{type:6,styles:n,offset:null}}function zf(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function zb(n){Promise.resolve(null).then(n)}class ws{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){zb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class qb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?zb(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const se=!1;function Gb(n){return new F(3e3,se)}function aF(){return"undefined"!=typeof window&&void 0!==window.document}function Gf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Si(n){switch(n.length){case 0:return new ws;case 1:return n[0];default:return new qb(n)}}function Wb(n,t,e,i,r={},o={}){const s=[],a=[];let l=-1,u=null;if(i.forEach(c=>{const d=c.offset,f=d==l,g=f&&u||{};Object.keys(c).forEach(v=>{let S=v,E=c[v];if("offset"!==v)switch(S=t.normalizePropertyName(S,s),E){case"!":E=r[v];break;case ni:E=o[v];break;default:E=t.normalizeStyleValue(v,S,E,s)}g[S]=E}),f||a.push(g),u=g,l=d}),s.length)throw function JR(n){return new F(3502,se)}();return a}function Wf(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Kf(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Kf(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Kf(e,"destroy",n)))}}function Kf(n,t,e){const i=e.totalTime,o=Qf(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Qf(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Lt(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function Kb(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let Jf=(n,t)=>!1,Qb=(n,t,e)=>[],Jb=null;function Zf(n){const t=n.parentNode||n.host;return t===Jb?null:t}(Gf()||"undefined"!=typeof Element)&&(aF()?(Jb=(()=>document.documentElement)(),Jf=(n,t)=>{for(;t;){if(t===n)return!0;t=Zf(t)}return!1}):Jf=(n,t)=>n.contains(t),Qb=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ji=null,Zb=!1;function Yb(n){Ji||(Ji=function uF(){return"undefined"!=typeof document?document.body:null}()||{},Zb=!!Ji.style&&"WebkitAppearance"in Ji.style);let t=!0;return Ji.style&&!function lF(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ji.style,!t&&Zb&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ji.style)),t}const Xb=Jf,e0=Qb;let t0=(()=>{class n{validateStyleProperty(e){return Yb(e)}matchesElement(e,i){return!1}containsElement(e,i){return Xb(e,i)}getParentElement(e){return Zf(e)}query(e,i,r){return e0(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new ws(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Yf=(()=>{class n{}return n.NOOP=new t0,n})();const Xf="ng-enter",Al="ng-leave",Pl="ng-trigger",Ol=".ng-trigger",r0="ng-animating",eh=".ng-animating";function Zi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:th(parseFloat(t[1]),t[2])}function th(n,t){return"s"===t?1e3*n:n}function Nl(n,t,e){return n.hasOwnProperty("duration")?n:function fF(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Gb()),{duration:0,delay:0,easing:""};r=th(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=th(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function xR(){return new F(3100,se)}()),a=!0),o<0&&(t.push(function IR(){return new F(3101,se)}()),a=!0),a&&t.splice(l,0,Gb())}return{duration:r,delay:o,easing:s}}(n,t,e)}function to(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function wi(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else to(n,e);return e}function s0(n,t,e){return e?t+":"+e+";":""}function a0(n){let t="";for(let e=0;e{const r=ih(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Gf()&&a0(n))}function Yi(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=ih(e);n.style[i]=""}),Gf()&&a0(n))}function Ds(n){return Array.isArray(n)?1==n.length?n[0]:$b(n):n}const nh=new RegExp("{{\\s*(.+?)\\s*}}","g");function l0(n){let t=[];if("string"==typeof n){let e;for(;e=nh.exec(n);)t.push(e[1]);nh.lastIndex=0}return t}function kl(n,t,e){const i=n.toString(),r=i.replace(nh,(o,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(function PR(n){return new F(3003,se)}()),a=""),a.toString()});return r==i?n:r}function Rl(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const pF=/-+([a-z0-9])/g;function ih(n){return n.replace(pF,(...t)=>t[1].toUpperCase())}function gF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ut(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function OR(n){return new F(3004,se)}()}}function u0(n,t){return window.getComputedStyle(n)[t]}function bF(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function SF(n,t,e){if(":"==n[0]){const l=function wF(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function qR(n){return new F(3015,se)}()),t;const r=i[1],o=i[2],s=i[3];t.push(c0(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(c0(s,r))}(i,e,t)):e.push(n),e}const Ul=new Set(["true","1"]),Bl=new Set(["false","0"]);function c0(n,t){const e=Ul.has(n)||Bl.has(n),i=Ul.has(t)||Bl.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Ul.has(n):Bl.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Ul.has(t):Bl.has(t)),s&&a}}const DF=new RegExp("s*:selfs*,?","g");function rh(n,t,e,i){return new EF(n).build(t,e,i)}class EF{constructor(t){this._driver=t}build(t,e,i){const r=new xF(e);this._resetContextStyleTimingState(r);const o=Ut(this,Ds(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function kR(){return new F(3006,se)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,o.push(this.visitState(l,e))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function RR(){return new F(3007,se)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{if(Hl(a)){const l=a;Object.keys(l).forEach(u=>{l0(l[u]).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}}),o.size&&(Rl(o.values()),e.errors.push(function FR(n,t){return new F(3008,se)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ut(this,Ds(t.animation),e);return{type:1,matchers:bF(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xi(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Ut(this,i,e)),options:Xi(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Ut(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Xi(t.options)}}visitAnimate(t,e){const i=function AF(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return oh(Nl(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=oh(0,0,"");return o.dynamic=!0,o.strValue=i,o}return e=e||Nl(i,t),oh(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:bi({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const u={};i.easing&&(u.easing=i.easing),s=bi(u)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==ni?i.push(s):e.errors.push(function VR(n){return new F(3002,se)}()):i.push(s)}):i.push(t.styles);let r=!1,o=null;return i.forEach(s=>{if(Hl(s)){const a=s,l=a.easing;if(l&&(o=l,delete a.easing),!r)for(let u in a)if(a[u].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete s[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],u=l[a];let c=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function LR(n,t,e,i,r){return new F(3010,se)}()),c=!1),o=u.startTime),c&&(l[a]={startTime:o,endTime:r}),e.options&&function hF(n,t,e){const i=t.params||{},r=l0(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function AR(n){return new F(3001,se)}())})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function UR(){return new F(3011,se)}()),i;let o=0;const s=[];let a=!1,l=!1,u=0;const c=t.steps.map(T=>{const w=this._makeStyleAst(T,e);let O=null!=w.offset?w.offset:function IF(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Hl(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Hl(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),V=0;return null!=O&&(o++,V=w.offset=O),l=l||V<0||V>1,a=a||V0&&o{const O=f>0?w==g?1:f*w:s[w],V=O*E;e.currentTime=v+S.delay+V,S.duration=V,this._validateStyleAst(T,e),T.offset=O,i.styles.push(T)}),i}visitReference(t,e){return{type:8,animation:Ut(this,Ds(t.animation),e),options:Xi(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Xi(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Xi(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function TF(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(DF,"")),n=n.replace(/@\*/g,Ol).replace(/@\w+/g,e=>Ol+"-"+e.substr(1)).replace(/:animating/g,eh),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Lt(e.collectedStyles,e.currentQuerySelector,{});const a=Ut(this,Ds(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Xi(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function $R(){return new F(3013,se)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Nl(t.timings,e.errors,!0);return{type:12,animation:Ut(this,Ds(t.animation),e),timings:i,options:null}}}class xF{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hl(n){return!Array.isArray(n)&&"object"==typeof n}function Xi(n){return n?(n=to(n)).params&&(n.params=function MF(n){return n?to(n):null}(n.params)):n={},n}function oh(n,t,e){return{duration:n,delay:t,easing:e}}function sh(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class jl{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const NF=new RegExp(":enter","g"),RF=new RegExp(":leave","g");function ah(n,t,e,i,r,o={},s={},a,l,u=[]){return(new FF).buildKeyframes(n,t,e,i,r,o,s,a,l,u)}class FF{buildKeyframes(t,e,i,r,o,s,a,l,u,c=[]){u=u||new jl;const d=new lh(t,e,u,r,o,c,[]);d.options=l,d.currentTimeline.setStyles([s],null,d.errors,l),Ut(this,i,d);const f=d.timelines.filter(g=>g.containsAnimation());if(Object.keys(a).length){let g;for(let v=f.length-1;v>=0;v--){const S=f[v];if(S.element===e){g=S;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,l)}return f.length?f.map(g=>g.buildKeyframes()):[sh(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Zi(i.duration):null,a=null!=i.delay?Zi(i.delay):null;return 0!==s&&t.forEach(l=>{const u=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Ut(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=$l);const s=Zi(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Ut(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Zi(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Ut(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Nl(e.params?kl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Zi(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$l);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{e.currentQueryIndex=c;const d=e.createSubContext(t.options,u);o&&d.delayNextStep(o),u===e.element&&(l=d.currentTimeline),Ut(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const c=e.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;Ut(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const $l={};class lh{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$l,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new zl(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Zi(i.duration)),null!=i.delay&&(r.delay=Zi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=kl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new lh(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=$l,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new VF(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(NF,"."+this._enterClassName)).replace(RF,"."+this._leaveClassName);let u=this._driver.query(this.element,t,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),a.push(...u)}return!o&&0==a.length&&s.push(function zR(n){return new F(3014,se)}()),a}}class zl{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new zl(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||ni,this._currentKeyframe[e]=ni}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function LF(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(o=>{e[o]=ni})):wi(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=kl(s[a],o,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:ni),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const u=wi(a,!0);Object.keys(u).forEach(c=>{const d=u[c];"!"==d?t.add(c):d==ni&&e.add(c)}),i||(u.offset=l/this.duration),r.push(u)});const o=t.size?Rl(t.values()):[],s=e.size?Rl(e.values()):[];if(i){const a=r[0],l=to(a);a.offset=0,l.offset=1,r=[a,l]}return sh(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class VF extends zl{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=wi(t[0],!1);l.offset=0,o.push(l);const u=wi(t[0],!1);u.offset=h0(a),o.push(u);const c=t.length-1;for(let d=1;d<=c;d++){let f=wi(t[d],!1);f.offset=h0((e+f.offset*i)/s),o.push(f)}i=s,e=0,r="",t=o}return sh(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function h0(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class uh{}class UF extends uh{normalizePropertyName(t,e){return ih(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(BF[e]&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function NR(n,t){return new F(3005,se)}())}return s+o}}const BF=(()=>function HF(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function p0(n,t,e,i,r,o,s,a,l,u,c,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const ch={};class g0{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function jF(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],o=this._stateStyles[t],s=r?r.buildStyles(e,i):{};return o?o.buildStyles(e,i):s}build(t,e,i,r,o,s,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||ch,v=this.buildStyles(i,a&&a.params||ch,d),S=l&&l.params||ch,E=this.buildStyles(r,S,d),T=new Set,w=new Map,O=new Map,V="void"===r,Z={params:Object.assign(Object.assign({},f),S)},Me=c?[]:ah(t,e,this.ast.animation,o,s,v,E,Z,u,d);let Ie=0;if(Me.forEach(jt=>{Ie=Math.max(jt.duration+jt.delay,Ie)}),d.length)return p0(e,this._triggerName,i,r,V,v,E,[],[],w,O,Ie,d);Me.forEach(jt=>{const $t=jt.element,lo=Lt(w,$t,{});jt.preStyleProps.forEach(bn=>lo[bn]=!0);const si=Lt(O,$t,{});jt.postStyleProps.forEach(bn=>si[bn]=!0),$t!==e&&T.add($t)});const Ht=Rl(T.values());return p0(e,this._triggerName,i,r,V,v,E,Me,Ht,w,O,Ie)}}class $F{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=to(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!=s&&(r[o]=s)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const s=o;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=kl(l,r,e));const u=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,u,l,e),i[u]=l})}}),i}}class qF{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new $F(r.style,r.options&&r.options.params||{},i)}),m0(this.states,"true","1"),m0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new g0(t,r,this.states))}),this.fallbackTransition=function GF(n,t,e){return new g0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function m0(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const WF=new jl;class KF{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],o=rh(this._driver,e,i,[]);if(i.length)throw function ZR(n){return new F(3503,se)}();this._animations[t]=o}_buildPlayer(t,e,i){const r=t.element,o=Wb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations[t];let s;const a=new Map;if(o?(s=ah(this._driver,e,o,Xf,Al,{},{},i,WF,r),s.forEach(c=>{const d=Lt(a,c.element,{});c.postStyleProps.forEach(f=>d[f]=null)})):(r.push(function YR(){return new F(3300,se)}()),s=[]),r.length)throw function XR(n){return new F(3504,se)}();a.forEach((c,d)=>{Object.keys(c).forEach(f=>{c[f]=this._driver.computeStyle(d,f,ni)})});const u=Si(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,{},d)}));return this._playersById[t]=u,u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function eF(n){return new F(3301,se)}();return e}listen(t,e,i,r){const o=Qf(e,"","","");return Wf(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const _0="ng-animate-queued",dh="ng-animate-disabled",XF=[],v0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},e2={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tn="__ng_removed";class fh{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function r2(n){return null!=n?n:null}(i?t.value:t),i){const o=to(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Es="void",hh=new fh(Es);class t2{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nn(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function tF(n,t){return new F(3302,se)}();if(null==i||0==i.length)throw function nF(n){return new F(3303,se)}();if(!function o2(n){return"start"==n||"done"==n}(i))throw function iF(n,t){return new F(3400,se)}();const o=Lt(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Lt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(nn(t,Pl),nn(t,Pl+"-"+e),a[e]=hh),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function rF(n){return new F(3401,se)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new ph(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(nn(t,Pl),nn(t,Pl+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const u=new fh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[e]=u,l||(l=hh),u.value!==Es&&l.value===u.value){if(!function l2(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Yi(t,E),Vn(t,T)})}return}const f=Lt(this._engine.playersByElement,t,[]);f.forEach(S=>{S.namespaceId==this.id&&S.triggerName==e&&S.queued&&S.destroy()});let g=o.matchTransition(l.value,u.value,t,u.params),v=!1;if(!g){if(!r)return;g=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:g,fromState:l,toState:u,player:s,isFallbackTransition:v}),v||(nn(t,_0),s.onStart(()=>{no(t,_0)})),s.onDone(()=>{let S=this.players.indexOf(s);S>=0&&this.players.splice(S,1);const E=this._engine.playersByElement.get(t);if(E){let T=E.indexOf(s);T>=0&&E.splice(T,1)}}),this.players.push(s),f.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Ol,!0);i.forEach(r=>{if(r[tn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(Object.keys(o).forEach(l=>{if(s.set(l,o[l].value),this._triggers[l]){const u=this.trigger(t,l,Es,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Si(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers[s].fallbackTransition,u=i[s]||hh,c=new fh(Es),d=new ph(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[tn];(!o||o===v0)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){nn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Qf(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Wf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class n2{constructor(t,e,i){this.bodyNode=t,this.driver=e,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,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new t2(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,o=i.length-1;if(o>=0){let s=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const u=i.indexOf(l);i.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}}else for(let a=o;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),s=!0;break}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),nn(t,dh)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),no(t,dh))}removeNode(t,e,i,r){if(ql(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[tn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return ql(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Ol,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,eh,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Si(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[tn];if(i&&i.setForRemoval){if(t[tn]=v0,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(dh))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];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){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Si(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function oF(n){return new F(3402,se)}()}_flushAnimations(t,e){const i=new jl,r=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(L=>{c.add(L);const B=this.driver.query(L,".ng-animate-queued",!0);for(let z=0;z{const z=Xf+S++;v.set(B,z),L.forEach(ue=>nn(ue,z))});const E=[],T=new Set,w=new Set;for(let L=0;LT.add(ue)):w.add(B))}const O=new Map,V=b0(f,Array.from(T));V.forEach((L,B)=>{const z=Al+S++;O.set(B,z),L.forEach(ue=>nn(ue,z))}),t.push(()=>{g.forEach((L,B)=>{const z=v.get(B);L.forEach(ue=>no(ue,z))}),V.forEach((L,B)=>{const z=O.get(B);L.forEach(ue=>no(ue,z))}),E.forEach(L=>{this.processLeaveNode(L)})});const Z=[],Me=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(e).forEach(z=>{const ue=z.player,Xe=z.element;if(Z.push(ue),this.collectedEnterElements.length){const bt=Xe[tn];if(bt&&bt.setForMove){if(bt.previousTriggersValues&&bt.previousTriggersValues.has(z.triggerName)){const ir=bt.previousTriggersValues.get(z.triggerName),Ii=this.statesByElement.get(z.element);Ii&&Ii[z.triggerName]&&(Ii[z.triggerName].value=ir)}return void ue.destroy()}}const Un=!d||!this.driver.containsElement(d,Xe),zt=O.get(Xe),xi=v.get(Xe),Ae=this._buildInstruction(z,i,xi,zt,Un);if(Ae.errors&&Ae.errors.length)return void Me.push(Ae);if(Un)return ue.onStart(()=>Yi(Xe,Ae.fromStyles)),ue.onDestroy(()=>Vn(Xe,Ae.toStyles)),void r.push(ue);if(z.isFallbackTransition)return ue.onStart(()=>Yi(Xe,Ae.fromStyles)),ue.onDestroy(()=>Vn(Xe,Ae.toStyles)),void r.push(ue);const ZS=[];Ae.timelines.forEach(bt=>{bt.stretchStartingKeyframe=!0,this.disabledNodes.has(bt.element)||ZS.push(bt)}),Ae.timelines=ZS,i.append(Xe,Ae.timelines),s.push({instruction:Ae,player:ue,element:Xe}),Ae.queriedElements.forEach(bt=>Lt(a,bt,[]).push(ue)),Ae.preStyleProps.forEach((bt,ir)=>{const Ii=Object.keys(bt);if(Ii.length){let rr=l.get(ir);rr||l.set(ir,rr=new Set),Ii.forEach(Qh=>rr.add(Qh))}}),Ae.postStyleProps.forEach((bt,ir)=>{const Ii=Object.keys(bt);let rr=u.get(ir);rr||u.set(ir,rr=new Set),Ii.forEach(Qh=>rr.add(Qh))})});if(Me.length){const L=[];Me.forEach(B=>{L.push(function sF(n,t){return new F(3505,se)}())}),Z.forEach(B=>B.destroy()),this.reportError(L)}const Ie=new Map,Ht=new Map;s.forEach(L=>{const B=L.element;i.has(B)&&(Ht.set(B,B),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,Ie))}),r.forEach(L=>{const B=L.element;this._getPreviousPlayers(B,!1,L.namespaceId,L.triggerName,null).forEach(ue=>{Lt(Ie,B,[]).push(ue),ue.destroy()})});const jt=E.filter(L=>w0(L,l,u)),$t=new Map;C0($t,this.driver,w,u,ni).forEach(L=>{w0(L,l,u)&&jt.push(L)});const si=new Map;g.forEach((L,B)=>{C0(si,this.driver,new Set(L),l,"!")}),jt.forEach(L=>{const B=$t.get(L),z=si.get(L);$t.set(L,Object.assign(Object.assign({},B),z))});const bn=[],uo=[],co={};s.forEach(L=>{const{element:B,player:z,instruction:ue}=L;if(i.has(B)){if(c.has(B))return z.onDestroy(()=>Vn(B,ue.toStyles)),z.disabled=!0,z.overrideTotalTime(ue.totalTime),void r.push(z);let Xe=co;if(Ht.size>1){let zt=B;const xi=[];for(;zt=zt.parentNode;){const Ae=Ht.get(zt);if(Ae){Xe=Ae;break}xi.push(zt)}xi.forEach(Ae=>Ht.set(Ae,Xe))}const Un=this._buildAnimation(z.namespaceId,ue,Ie,o,si,$t);if(z.setRealPlayer(Un),Xe===co)bn.push(z);else{const zt=this.playersByElement.get(Xe);zt&&zt.length&&(z.parentPlayer=Si(zt)),r.push(z)}}else Yi(B,ue.fromStyles),z.onDestroy(()=>Vn(B,ue.toStyles)),uo.push(z),c.has(B)&&r.push(z)}),uo.forEach(L=>{const B=o.get(L.element);if(B&&B.length){const z=Si(B);L.setRealPlayer(z)}}),r.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L!Un.destroyed);Xe.length?s2(this,B,Xe):this.processLeaveNode(B)}return E.length=0,bn.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();const B=this.players.indexOf(L);this.players.splice(B,1)}),L.play()}),bn}elementContainsData(t,e){let i=!1;const r=e[tn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Es;a.forEach(u=>{u.queued||!l&&u.triggerName!=r||s.push(u)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const u=l.element,c=u!==o,d=Lt(i,u,[]);this._getPreviousPlayers(u,c,s,a,e.toState).forEach(g=>{const v=g.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),g.destroy(),d.push(g)})}Yi(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,u=[],c=new Set,d=new Set,f=e.timelines.map(v=>{const S=v.element;c.add(S);const E=S[tn];if(E&&E.removedBeforeQueried)return new ws(v.duration,v.delay);const T=S!==l,w=function a2(n){const t=[];return S0(n,t),t}((i.get(S)||XF).map(Ie=>Ie.getRealPlayer())).filter(Ie=>!!Ie.element&&Ie.element===S),O=o.get(S),V=s.get(S),Z=Wb(0,this._normalizer,0,v.keyframes,O,V),Me=this._buildPlayer(v,Z,w);if(v.subTimeline&&r&&d.add(S),T){const Ie=new ph(t,a,S);Ie.setRealPlayer(Me),u.push(Ie)}return Me});u.forEach(v=>{Lt(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>function i2(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,v.element,v))}),c.forEach(v=>nn(v,r0));const g=Si(f);return g.onDestroy(()=>{c.forEach(v=>no(v,r0)),Vn(l,e.toStyles)}),d.forEach(v=>{Lt(r,v,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ws(t.duration,t.delay)}}class ph{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new ws,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Wf(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Lt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ql(n){return n&&1===n.nodeType}function y0(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function C0(n,t,e,i,r){const o=[];e.forEach(l=>o.push(y0(l)));const s=[];i.forEach((l,u)=>{const c={};l.forEach(d=>{const f=c[d]=t.computeStyle(u,d,r);(!f||0==f.length)&&(u[tn]=e2,s.push(u))}),n.set(u,c)});let a=0;return e.forEach(l=>y0(l,o[a++])),s}function b0(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const u=a.parentNode;return l=e.has(u)?u:r.has(u)?1:s(u),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function nn(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function no(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function s2(n,t,e){Si(e).onDone(()=>n.processLeaveNode(t))}function S0(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Gl{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new n2(t,e,i),this._timelineEngine=new KF(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=rh(this._driver,o,l,[]);if(l.length)throw function QR(n,t){return new F(3404,se)}();a=function zF(n,t,e){return new qF(n,t,e)}(r,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=Kb(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Kb(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let c2=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Vn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vn(this._element,this._initialStyles),this._endStyles&&(Vn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Yi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yi(this._element,this._endStyles),this._endStyles=null),Vn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function gh(n){let t=null;const e=Object.keys(n);for(let i=0;it()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:u0(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class f2{validateStyleProperty(t){return Yb(t)}matchesElement(t,e){return!1}containsElement(t,e){return Xb(t,e)}getParentElement(t){return Zf(t)}query(t,e,i){return e0(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const u={},c=s.filter(f=>f instanceof D0);(function mF(n,t){return 0===n||0===t})(i,r)&&c.forEach(f=>{let g=f.currentSnapshot;Object.keys(g).forEach(v=>u[v]=g[v])}),e=function _F(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let o=t[0],s=[];if(i.forEach(a=>{o.hasOwnProperty(a)||s.push(a),o[a]=e[a]}),s.length)for(var r=1;rwi(f,!1)),u);const d=function u2(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=gh(t[0]),t.length>1&&(i=gh(t[t.length-1]))):t&&(e=gh(t)),e||i?new c2(n,e,i):null}(t,e);return new D0(t,e,l,d)}}let h2=(()=>{class n extends Hb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:sn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$b(e):e;return E0(this._renderer,null,i,"register",[r]),new p2(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(P(es),P(vt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class p2 extends class TR{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new g2(this._id,t,e||{},this._renderer)}}class g2{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return E0(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function E0(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const T0="@.disabled";let m2=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let c=this._rendererCache.get(o);return c||(c=new M0("",o,this.engine),this._rendererCache.set(o,c)),c}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,e,c.name,c)};return i.data.animation.forEach(l),new _2(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(P(es),P(Gl),P(qe))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class M0{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==T0?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class _2 extends M0{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==T0?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function v2(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),s="";return"@"!=o.charAt(0)&&([o,s]=function y2(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let C2=(()=>{class n extends Gl{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(P(vt),P(Yf),P(uh))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const x0=new ee("AnimationModuleType"),I0=[{provide:Hb,useClass:h2},{provide:uh,useFactory:function b2(){return new UF}},{provide:Gl,useClass:C2},{provide:es,useFactory:function S2(n,t,e){return new m2(n,t,e)},deps:[dl,Gl,qe]}],A0=[{provide:Yf,useFactory:()=>new f2},{provide:x0,useValue:"BrowserAnimations"},...I0],w2=[{provide:Yf,useClass:t0},{provide:x0,useValue:"NoopAnimations"},...I0];let D2=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?w2:A0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({providers:A0,imports:[AC]}),n})();class P0{}class O0{}class nt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof nt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new nt;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof nt?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class E2{encodeKey(t){return N0(t)}encodeValue(t){return N0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const M2=/%(\d[a-f0-9])/gi,x2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function N0(n){return encodeURIComponent(n).replace(M2,(t,e)=>{var i;return null!==(i=x2[e])&&void 0!==i?i:t})}function k0(n){return`${n}`}class Di{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new E2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T2(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Di({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(k0(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(k0(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class I2{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function R0(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function F0(n){return"undefined"!=typeof Blob&&n instanceof Blob}function V0(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Ts{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function A2(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,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.headers||(this.headers=new nt),this.context||(this.context=new I2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":af.set(g,t.setHeaders[g]),u)),t.setParams&&(c=Object.keys(t.setParams).reduce((f,g)=>f.set(g,t.setParams[g]),c)),new Ts(i,r,s,{params:c,headers:u,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var Se=(()=>((Se=Se||{})[Se.Sent=0]="Sent",Se[Se.UploadProgress=1]="UploadProgress",Se[Se.ResponseHeader=2]="ResponseHeader",Se[Se.DownloadProgress=3]="DownloadProgress",Se[Se.Response=4]="Response",Se[Se.User=5]="User",Se))();class mh{constructor(t,e=200,i="OK"){this.headers=t.headers||new nt,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _h extends mh{constructor(t={}){super(t),this.type=Se.ResponseHeader}clone(t={}){return new _h({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Kl extends mh{constructor(t={}){super(t),this.type=Se.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Kl({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class L0 extends mh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function vh(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let yh=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ts)o=e;else{let l,u;l=r.headers instanceof nt?r.headers:new nt(r.headers),r.params&&(u=r.params instanceof Di?r.params:new Di({fromObject:r.params})),o=new Ts(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=J(o).pipe(Jr(l=>this.handler.handle(l)));if(e instanceof Ts||"events"===r.observe)return s;const a=s.pipe(qi(l=>l instanceof Kl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ce(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ce(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ce(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ce(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Di).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,vh(r,i))}post(e,i,r={}){return this.request("POST",e,vh(r,i))}put(e,i,r={}){return this.request("PUT",e,vh(r,i))}}return n.\u0275fac=function(e){return new(e||n)(P(P0))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class U0{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const B0=new ee("HTTP_INTERCEPTORS");let O2=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const N2=/^\)\]\}',?\n/;let H0=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ke(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((g,v)=>r.setRequestHeader(g,v.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&r.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();r.responseType="json"!==g?g:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const g=r.statusText||"OK",v=new nt(r.getAllResponseHeaders()),S=function k2(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new _h({headers:v,status:r.status,statusText:g,url:S}),s},l=()=>{let{headers:g,status:v,statusText:S,url:E}=a(),T=null;204!==v&&(T=void 0===r.response?r.responseText:r.response),0===v&&(v=T?200:0);let w=v>=200&&v<300;if("json"===e.responseType&&"string"==typeof T){const O=T;T=T.replace(N2,"");try{T=""!==T?JSON.parse(T):null}catch(V){T=O,w&&(w=!1,T={error:V,text:T})}}w?(i.next(new Kl({body:T,headers:g,status:v,statusText:S,url:E||void 0})),i.complete()):i.error(new L0({error:T,headers:g,status:v,statusText:S,url:E||void 0}))},u=g=>{const{url:v}=a(),S=new L0({error:g,status:r.status||0,statusText:r.statusText||"Unknown Error",url:v||void 0});i.error(S)};let c=!1;const d=g=>{c||(i.next(a()),c=!0);let v={type:Se.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===e.responseType&&!!r.responseText&&(v.partialText=r.responseText),i.next(v)},f=g=>{let v={type:Se.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",f)),r.send(o),i.next({type:Se.Sent}),()=>{r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(P(yC))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Ch=new ee("XSRF_COOKIE_NAME"),bh=new ee("XSRF_HEADER_NAME");class j0{}let R2=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=fC(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(P(vt),P(Ga),P(Ch))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Sh=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(P(j0),P(bh))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),F2=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(B0,[]);this.chain=i.reduceRight((r,o)=>new U0(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(P(O0),P(at))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),V2=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Sh,useClass:O2}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Ch,useValue:e.cookieName}:[],e.headerName?{provide:bh,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({providers:[Sh,{provide:B0,useExisting:Sh,multi:!0},{provide:j0,useClass:R2},{provide:Ch,useValue:"XSRF-TOKEN"},{provide:bh,useValue:"X-XSRF-TOKEN"}]}),n})(),L2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({providers:[yh,{provide:P0,useClass:F2},H0,{provide:O0,useExisting:H0}],imports:[[V2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})(),$0=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(y(Qn),y(Ft))},n.\u0275dir=$({type:n}),n})(),er=(()=>{class n extends $0{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ot(n)))(i||n)}}(),n.\u0275dir=$({type:n,features:[he]}),n})();const Ln=new ee("NgValueAccessor"),H2={provide:Ln,useExisting:ve(()=>wh),multi:!0},$2=new ee("CompositionEventMode");let wh=(()=>{class n extends $0{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function j2(){const n=Nn()?Nn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(y(Qn),y(Ft),y($2,8))},n.\u0275dir=$({type:n,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(e,i){1&e&&M("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Te([H2]),he]}),n})();const ct=new ee("NgValidators"),Ti=new ee("NgAsyncValidators");function eS(n){return null!=n}function tS(n){const t=Wo(n)?Je(n):n;return ud(t),t}function nS(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function iS(n,t){return t.map(e=>e(n))}function rS(n){return n.map(t=>function q2(n){return!n.validate}(t)?t:e=>t.validate(e))}function Dh(n){return null!=n?function oS(n){if(!n)return null;const t=n.filter(eS);return 0==t.length?null:function(e){return nS(iS(e,t))}}(rS(n)):null}function Eh(n){return null!=n?function sS(n){if(!n)return null;const t=n.filter(eS);return 0==t.length?null:function(e){return function U2(...n){const t=vp(n),{args:e,keys:i}=NC(n),r=new ke(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||o.next(i?RC(i,a):a),o.complete())}))}});return t?r.pipe(kC(t)):r}(iS(e,t).map(tS)).pipe(ce(nS))}}(rS(n)):null}function aS(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Th(n){return n?Array.isArray(n)?n:[n]:[]}function Jl(n,t){return Array.isArray(n)?n.includes(t):n===t}function cS(n,t){const e=Th(t);return Th(n).forEach(r=>{Jl(e,r)||e.push(r)}),e}function dS(n,t){return Th(t).filter(e=>!Jl(n,e))}class fS{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(t){this._rawValidators=t||[],this._composedValidatorFn=Dh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Eh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Mi extends fS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yt extends fS{get formDirective(){return null}get path(){return null}}let Zl=(()=>{class n extends class hS{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(y(Mi,2))},n.\u0275dir=$({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Hr("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[he]}),n})();function Ms(n,t){(function Ih(n,t){const e=function lS(n){return n._rawValidators}(n);null!==t.validator?n.setValidators(aS(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=function uS(n){return n._rawAsyncValidators}(n);null!==t.asyncValidator?n.setAsyncValidators(aS(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();tu(t._rawValidators,r),tu(t._rawAsyncValidators,r)})(n,t),t.valueAccessor.writeValue(n.value),function eV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&gS(n,t)})}(n,t),function nV(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function tV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&gS(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function X2(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function tu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function gS(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Oh(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const xs="VALID",iu="INVALID",io="PENDING",Is="DISABLED";function kh(n){return(ru(n)?n.validators:n)||null}function vS(n){return Array.isArray(n)?Dh(n):n||null}function Rh(n,t){return(ru(t)?t.asyncValidators:n)||null}function yS(n){return Array.isArray(n)?Eh(n):n||null}function ru(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Fh=n=>n instanceof Lh;function bS(n){return(n=>n instanceof DS)(n)?n.value:n.getRawValue()}function SS(n,t){const e=Fh(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new F(1e3,"");if(!i[t])throw new F(1001,"")}function wS(n,t){Fh(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new F(1002,"")})}class Vh{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=vS(this._rawValidators),this._composedAsyncValidatorFn=yS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===xs}get invalid(){return this.status===iu}get pending(){return this.status==io}get disabled(){return this.status===Is}get enabled(){return this.status!==Is}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=vS(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=yS(t)}addValidators(t){this.setValidators(cS(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(cS(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(dS(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(dS(t,this._rawAsyncValidators))}hasValidator(t){return Jl(this._rawValidators,t)}hasAsyncValidator(t){return Jl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=io,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Is,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=xs,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xs||this.status===io)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Is:xs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=io,this._hasOwnPendingAsyncValidator=!0;const e=tS(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function sV(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=Fh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof lV)(i)&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new de,this.statusChanges=new de}_calculateStatus(){return this._allControlsDisabled()?Is:this.errors?iu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(io)?io:this._anyControlsHaveStatus(iu)?iu:xs}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ru(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class DS extends Vh{constructor(t=null,e,i){super(kh(e),Rh(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ru(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Oh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Oh(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Lh extends Vh{constructor(t,e,i){super(kh(e),Rh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){wS(this,t),Object.keys(t).forEach(i=>{SS(this,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=bS(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class lV extends Vh{constructor(t,e,i){super(kh(e),Rh(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){wS(this,t),t.forEach((i,r)=>{SS(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>bS(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const dV={provide:Mi,useExisting:ve(()=>Ps)},MS=(()=>Promise.resolve(null))();let Ps=(()=>{class n extends Mi{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new DS,this._registered=!1,this.update=new de,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Ph(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===wh?e=o:function oV(n){return Object.getPrototypeOf(n.constructor)===er}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Ah(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ms(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){MS.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;MS.then(()=>{var o;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function Xl(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(y(yt,9),y(ct,10),y(Ti,10),y(Ln,10),y(Wa,8))},n.\u0275dir=$({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Te([dV]),he,Pt]}),n})(),IS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({}),n})();const Bh=new ee("NgModelWithFormControlWarning"),SV={provide:Ln,useExisting:ve(()=>ro),multi:!0};function RS(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let ro=(()=>{class n extends er{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=RS(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function wV(n){return n.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ot(n)))(i||n)}}(),n.\u0275dir=$({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&M("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Te([SV]),he]}),n})(),ou=(()=>{class n{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(RS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(y(Ft),y(Qn),y(ro,9))},n.\u0275dir=$({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const DV={provide:Ln,useExisting:ve(()=>zh),multi:!0};function FS(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let zh=(()=>{class n extends er{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a{class n{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(FS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(FS(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(y(Ft),y(Qn),y(zh,9))},n.\u0275dir=$({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})(),GS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({imports:[[IS]]}),n})(),RV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({imports:[GS]}),n})(),FV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Bh,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({imports:[GS]}),n})();const rn=jb("fadeInAnimation",[zf(":enter",[bi({opacity:0}),$f(".5s",bi({opacity:1}))])]),Cn_production=(jb("slideInOutAnimation",[function MR(n,t,e){return{type:0,name:n,styles:t,options:e}}("*",bi({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.8)"})),zf(":enter",[bi({right:"-400%",backgroundColor:"rgba(0, 0, 0, 0)"}),$f(".5s ease-in-out",bi({right:0,backgroundColor:"rgba(0, 0, 0, 0.8)"}))]),zf(":leave",[$f(".5s ease-in-out",bi({right:"-400%",backgroundColor:"rgba(0, 0, 0, 0)"}))])]),!0);var oo=(()=>{return(n=oo||(oo={}))[n.admin=1e4]="admin",n[n.user=1]="user",n[n.guest=10]="guest",oo;var n})();let Os=(()=>{class n{constructor(){this.sessionData=null,this.userLogin=null,this.userAdmin=null,this.userEMail=null,this.userAvatar=null,this.change=new de}create(e,i,r,o,s){console.log("Session Create"),this.sessionData=e,this.userLogin=i,this.userAdmin=o,this.userEMail=r,this.userAvatar=s,this.change.emit(!0)}destroy(){console.log("Session REMOVE"),this.sessionData=null,this.userLogin=null,this.userAdmin=null,this.userEMail=null,this.userAvatar=null,this.change.emit(!1)}islogged(){return null!=this.sessionData}hasRight(e){return e==oo.admin?this.userAdmin:e==oo.user?null!=this.sessionData:e==oo.guest}hasNotRight(e){return!this.hasRight(e)}getLogin(){return this.userLogin}getAvatar(){return""==this.userAvatar?"assets/images/avatar_generic.svg":this.userAvatar}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Bt=(()=>{class n{constructor(e,i){this.http=e,this.session=i,this.displayReturn=!1}createRESTCall(e,i){let s;void 0===i&&(i=[]),s="http://192.168.1.156/karideo/api/"+e;let a=!0;for(let l=0;l{1==this.displayReturn&&console.log("call GET "+o+" params="+JSON.stringify(r,null,2));let u=this.http.get(o,s),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),a(d?d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d}:{status:200,data:""})},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}post(e,i,r,o=null){this.addTokenIfNeeded(i);let s=this.createRESTCall(e,{});return new Promise((a,l)=>{1==this.displayReturn&&console.log("call POST "+s+" data="+JSON.stringify(r,null,2));let u=this.http.post(s,r,{headers:new nt(i),reportProgress:!0,observe:"events"}),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),d.type===Se.Sent?console.log("post : Sent"):d.type===Se.UploadProgress?o(d.loaded,d.total):d.type===Se.ResponseHeader?console.log("post : get header"):d.type===Se.DownloadProgress?console.log("post : get DownloadProgress "+d.loaded):d.type===Se.Response?(console.log("post : get response"),a(d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d})):d.type===Se.User?console.log("post : get User"):console.log("post : get unknown ... "+d.type)},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}put(e,i,r){this.addTokenIfNeeded(i);let o=this.createRESTCall(e,{});const s={headers:new nt(i)};return new Promise((a,l)=>{1==this.displayReturn&&console.log("call POST "+o+" data="+JSON.stringify(r,null,2));let u=this.http.put(o,r,s),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),a(d?d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d}:{status:200,data:""})},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}delete(e,i){this.addTokenIfNeeded(i);let r=this.createRESTCall(e,{});const o={headers:new nt(i)};return new Promise((s,a)=>{1==this.displayReturn&&console.log("call POST "+r);let l=this.http.delete(r,o),u=this;l.subscribe(c=>{1==u.displayReturn&&console.log("!! data "+JSON.stringify(c,null,2)),s(c?c.httpCode?{status:c.httpCode,data:c}:{status:200,data:c}:{status:200,data:""})},c=>{1==u.displayReturn&&(console.log("an error occured status: "+c.status),console.log("answer: "+JSON.stringify(c,null,2))),a({status:c.status,data:c.error})})})}uploadFileMultipart(e,i,r){console.log("Upload file to "+e);let o=e;null!=i&&(o+="/"+i);let s=new FormData;s.append("upload",r);let a=new Headers;console.log("upload filename : "+r.name);let l=r.name.split(".").pop();if("jpg"==l)a.append("Content-Type","image/jpeg");else if("png"==l)a.append("Content-Type","image/png");else if("mkv"==l)a.append("Content-Type","video/x-matroska");else{if("webm"!=l)return null;a.append("Content-Type","video/webm")}a.append("filename",r.name);const u={headers:a,reportProgress:!0};return new Promise((c,d)=>{this.post(o,u,s).then(function(f){console.log("URL: "+o+"\nRespond("+f.status+"): "+JSON.stringify(f.data,null,2)),200!=f.status?d("An error occured"):c(f.data)},function(f){d(void 0===f.data?"return ERROR undefined":"return ERROR "+JSON.stringify(f.data,null,2))})})}uploadFileBase64(e,i,r){console.log("Upload file to "+e);let o=e;null!=i&&(o+="/"+i);let s=this,a=new FileReader;return a.readAsArrayBuffer(r),new Promise((l,u)=>{a.onload=()=>{let c={};console.log("upload filename : "+r.name);let d=r.name.split(".").pop();if("jpg"==d)c["Content-Type"]="image/jpeg",c["mime-type"]="image/jpeg";else if("jpeg"==d)c["Content-Type"]="image/jpeg",c["mime-type"]="image/jpeg";else if("webp"==d)c["Content-Type"]="image/webp",c["mime-type"]="image/webp";else if("png"==d)c["Content-Type"]="image/png",c["mime-type"]="image/png";else if("mkv"==d)c["Content-Type"]="video/x-matroska",c["mime-type"]="video/x-matroska";else{if("webm"!=d)return null;c["Content-Type"]="video/webm",c["mime-type"]="video/webm"}c.filename=r.name,s.post(o,c,a.result).then(function(f){console.log("URL: "+o+"\nRespond("+f.status+"): "+JSON.stringify(f.data,null,2)),200!=f.status?u("An error occured"):l(f.data)},function(f){u(void 0===f.data?"return ERROR undefined":"return ERROR ...")})}})}uploadFile(e,i){console.log("Upload file to "+e);let r=e,o=this,s=new FileReader;return s.readAsArrayBuffer(i),new Promise((a,l)=>{s.onload=()=>{let u={};console.log("upload filename : "+i.name);let c=i.name.split(".").pop();if("jpg"==c)u["Content-Type"]="image/jpeg",u["mime-type"]="image/jpeg";else if("jpeg"==c)u["Content-Type"]="image/jpeg",u["mime-type"]="image/jpeg";else if("webp"==c)u["Content-Type"]="image/webp",u["mime-type"]="image/webp";else if("png"==c)u["Content-Type"]="image/png",u["mime-type"]="image/png";else if("mkv"==c)u["Content-Type"]="video/x-matroska",u["mime-type"]="video/x-matroska";else{if("webm"!=c)return null;u["Content-Type"]="video/webm",u["mime-type"]="video/webm"}u.filename=i.name,o.post(r,u,s.result).then(function(d){console.log("URL: "+r+"\nRespond("+d.status+"): "+JSON.stringify(d.data,null,2)),200!=d.status?l("An error occured"):a(d.data)},function(d){l(void 0===d.data?"return ERROR undefined":"return ERROR ...")})}})}uploadMultipart(e,i,r){console.log("Upload multipart to "+e);let o=e,s=this;return new Promise((a,l)=>{s.post(o,{},i,r).then(function(c){console.log("URL: "+o+"\nRespond("+c.status+"): "+JSON.stringify(c.data,null,2)),c.status>=200&&c.status<=299?a(c.data.body):l("An error occured")},function(c){l(void 0===c.data?"return ERROR undefined":"return ERROR ...")})})}get_specific(e,i=null,r="",o=[]){console.log("Get All data from "+e);const s={"Content-Type":"application/json"};let a=e;if(null!=i&&(a+="/"+i),""!=r&&(a+="/"+r),0!=o.length){let l="";for(let u=0;u{this.get(a,s,{}).then(function(c){200!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}delete_specific(e,i,r=""){const o={"Content-Type":"application/json"};let s=e;return null!=i&&(s+="/"+i),""!=r&&(s+="/"+r),new Promise((a,l)=>{this.delete(s,o).then(function(u){200!=u.status&&201!=u.status?l("An error occured"):a(u.data)},function(u){l(void 0===u.data?"return ERROR undefined":"return ERROR "+JSON.stringify(u.data,null,2))})})}put_specific(e,i,r,o=""){const s={"Content-Type":"application/json"};let a=e;return null!=i&&(a+="/"+i),""!=o&&(a+="/"+o),new Promise((l,u)=>{this.put(a,s,r).then(function(c){200!=c.status&&201!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}post_specific(e,i,r,o=""){const s={"Content-Type":"application/json"};let a=e;return null!=i&&(a+="/"+i),""!=o&&(a+="/"+o),new Promise((l,u)=>{this.post(a,s,r).then(function(c){200!=c.status&&201!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}}return n.\u0275fac=function(e){return new(e||n)(P(yh),P(Os))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class Gh{constructor(t,e){this.name=t,this.bdd=e}get_table_index(t){for(let e=0;e=u){o=!1;break}}else if("<="==a){if(t[r][l]>u){o=!1;break}}else if(">"==a){if(t[r][l]<=u){o=!1;break}}else{if(">="!=a)return void console.log("[ERROR] Internal Server Error{ unknow comparing type ...");if(t[r][l]u?1:la[i]?1:s[i]1&&(o=this.order_by(o,e.slice(1)));for(let s=0;s{class n{constructor(e){this.http=e,this.bdd={type:null,series:null,season:null,universe:null,video:null},this.bddPomise={type:null,series:null,season:null,universe:null,video:null},this.base_local_storage_name="yota_karideo_bdd_",this.use_local_storage=!1,console.log("Start BddService")}setAfterPut(e,i,r){let o=this;return new Promise((s,a)=>{o.get(e).then(function(l){let u=l;r.then(function(c){u.set(i,c),s(c)}).catch(function(c){a(c)})}).catch(function(l){a(l)})})}asyncSetInDB(e,i,r){this.get(e).then(function(s){s.set(i,r)}).catch(function(s){})}delete(e,i,r){let o=this;return new Promise((s,a)=>{o.get(e).then(function(l){let u=l;r.then(function(c){u.delete(i),s(c)}).catch(function(c){a(c)})}).catch(function(l){a(l)})})}get(e){let i=this;if(console.log("Try to get DB '"+e+"'"),void 0!==this.bdd[e]){if(null!==this.bdd[e])return new Promise((r,o)=>{r(i.bdd[e])});if(console.log("get DB: ?? "+e+" ??"),null==this.bddPomise[e]){this.bddPomise[e]=new Array;let r=null;if(1==this.use_local_storage&&localStorage.getItem(this.base_local_storage_name+e),null===r)return console.log("Download BDD ("+e+")"),new Promise((o,s)=>{i.http.get_specific(e).then(function(a){console.log("end download DB: ==> "+e+" "+a.length),i.bdd[e]=new Gh(e,a),1==i.use_local_storage&&localStorage.setItem(i.base_local_storage_name+e,JSON.stringify(i.bdd[e].bdd));for(let l=0;l "+e+" "+a.length),i.bdd[e]=new Gh(e,a),localStorage.setItem(i.base_local_storage_name+e,JSON.stringify(i.bdd[e].bdd))}).catch(function(a){console.log("[E] "+i.constructor.name+": cant not get data from remote server: "+e)})}}return new Promise((r,o)=>{null==i.bdd[e]?i.bddPomise[e].push({resolve:r,reject:o}):r(i.bdd[e])})}console.log("Try to get a non existant DB ... '"+e+"'")}getType(){return this.get("type")}getSeries(){return this.get("series")}getSeason(){return this.get("season")}getUniverse(){return this.get("universe")}getVideo(){return this.get("video")}}return n.\u0275fac=function(e){return new(e||n)(P(Bt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ii=(()=>{class n{constructor(e,i){this.http=e,this.bdd=i,this.identificationVersion=1,this.serviceName="type",console.log("Start TypeService")}getData(){let e=this;return new Promise((i,r)=>{e.bdd.getType().then(function(o){let s=o.gets();i(s)}).catch(function(o){console.log("[E] "+e.constructor.name+": can not retrive BDD values"),r(o)})})}get(e){let i=this;return new Promise((r,o)=>{i.bdd.getType().then(function(s){let a=s.get(e);null!=a?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}countVideo(e){let i=this;return new Promise((r,o)=>{i.bdd.getVideo().then(function(s){let a=s.gets_where([["==","type_id",e]],void 0,void 0);r(a.length)}).catch(function(s){o(s)})})}getSubVideo(e,i=[]){let r=this;return new Promise((o,s)=>{r.bdd.getVideo().then(function(a){if(0==i.length){let u=a.gets_where([["==","type_id",e],["==","series_id",null],["==","universe_id",null]],void 0,["name"]);return void o(u)}if("*"==i[0]){let u=a.gets_where([["==","type_id",e],["==","series_id",null],["==","universe_id",null]],void 0,["name"]);return void o(u)}let l=a.gets_where([["==","type_id",e],["==","series_id",null],["==","universe_id",null]],i,["name"]);o(l)}).catch(function(a){s(a)})})}getSubSeries(e,i=[]){let r=this;return new Promise((o,s)=>{r.bdd.getSeries().then(function(a){let l=a.gets_where([["==","parent_id",e]],void 0,["name"]);o(l)}).catch(function(a){s(a)})})}getSubUniverse(e,i=[]){let r=this;return new Promise((o,s)=>{r.bdd.getVideo().then(function(a){let l=a.data.gets_where([["==","type_id",e],["==","series_id",null],["==","universe_id",null]],["univers_id"],["name"]);0!=i.length?r.bdd.getUniverse().then(function(u){if("*"==i[0]){let d=u.gets_where([["==","id",l]],void 0,["name"]);return void o(d)}let c=u.gets_where([["==","id",l]],i,["name"]);o(c)}).catch(function(u){s(u)}):o(l)}).catch(function(a){s(a)})})}getCoverUrl(e){return this.http.createRESTCall("data/"+e)}getCoverThumbnailUrl(e){return this.http.createRESTCall("data/thumbnail/"+e)}}return n.\u0275fac=function(e){return new(e||n)(P(Bt),P(so))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Ns=(()=>{class n{constructor(e,i){this.http=e,this.bdd=i,this.identificationVersion=1,this.serviceName="universe",console.log("Start universeService")}getData(){let e=this;return new Promise((i,r)=>{e.bdd.getUniverse().then(function(o){let s=o.gets();i(s)}).catch(function(o){r(o)})})}get(e){let i=this;return new Promise((r,o)=>{i.bdd.getUniverse().then(function(s){let a=s.get(e);null!=a?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}getSubSeries(e,i=[]){}getSubVideo(e,i=[]){}put(e,i){let r=this.http.put_specific(this.serviceName,e,i);return this.bdd.setAfterPut(this.serviceName,e,r)}getCoverUrl(e){return this.http.createRESTCall("data/"+e)}deleteCover(e,i){let r=this;return new Promise((o,s)=>{r.http.get_specific(this.serviceName+"/"+e+"/rm_cover",i).then(function(a){let l=a;null!=l?(r.bdd.asyncSetInDB(r.serviceName,e,l),o(l)):s("error retrive data from server")}).catch(function(a){s(a)})})}uploadCover(e,i,r=null){const o=new FormData;o.append("file_name",e.name),o.append("node_id",i.toString()),o.append("file",e);let s=this;return new Promise((a,l)=>{s.http.uploadMultipart(this.serviceName+"/"+i+"/add_cover/",o,r).then(function(u){let c=u;null!=c?(s.bdd.asyncSetInDB(s.serviceName,i,c),a(c)):l("error retrive data from server")}).catch(function(u){l(u)})})}}return n.\u0275fac=function(e){return new(e||n)(P(Bt),P(so))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ri=(()=>{class n{constructor(e,i){this.http=e,this.bdd=i,this.identificationVersion=1,this.serviceName="series",console.log("Start SeriesService")}get(e){let i=this;return new Promise((r,o)=>{i.bdd.getSeries().then(function(s){let a=s.get(e);null!=a?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}getData(){let e=this;return new Promise((i,r)=>{e.bdd.getSeries().then(function(o){let s=o.gets();i(s)}).catch(function(o){console.log("[E] "+e.constructor.name+": can not retrive BDD values"),r(o)})})}getOrder(){let e=this;return new Promise((i,r)=>{e.bdd.getSeries().then(function(o){let s=o.gets_where([["!=","id",null]],["id","name"],["name","id"]);i(s)}).catch(function(o){console.log("[E] "+e.constructor.name+": can not retrive BDD values"),r(o)})})}getVideoAll(e){}getVideo(e){let i=this;return new Promise((r,o)=>{i.bdd.getVideo().then(function(s){let a=s.gets_where([["==","series_id",e],["==","season_id",null]],void 0,["episode","name"]);r(a)}).catch(function(s){o(s)})})}countVideo(e){let i=this;return new Promise((r,o)=>{i.bdd.getVideo().then(function(s){let a=s.gets_where([["==","series_id",e]],void 0,void 0);r(a.length)}).catch(function(s){o(s)})})}getSeason(e,i=[]){let r=this;return new Promise((o,s)=>{r.bdd.getSeason().then(function(a){let l=a.gets_where([["==","parent_id",e]],["id"],["number"]);if(0==i.length)return void o(l);if("*"==i[0]){let c=a.gets_where([["==","id",l]],void 0,["number"]);return void o(c)}let u=a.gets_where([["==","id",l]],i,["number"]);o(u)}).catch(function(a){s(a)})})}put(e,i){let r=this.http.put_specific(this.serviceName,e,i);return this.bdd.setAfterPut(this.serviceName,e,r)}delete(e){let i=this.http.delete_specific(this.serviceName,e);return this.bdd.delete(this.serviceName,e,i)}getCoverUrl(e){return this.http.createRESTCall("data/"+e)}getCoverThumbnailUrl(e){return this.http.createRESTCall("data/thumbnail/"+e)}getLike(e){let i=this;return new Promise((r,o)=>{i.bdd.getSeries().then(function(s){let a=s.getNameLike(e);null!=a&&0!==a.length?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}deleteCover(e,i){let r=this;return new Promise((o,s)=>{r.http.get_specific(this.serviceName+"/"+e+"/rm_cover",i).then(function(a){let l=a;null!=l?(r.bdd.asyncSetInDB(r.serviceName,e,l),o(l)):s("error retrive data from server")}).catch(function(a){s(a)})})}uploadCover(e,i,r=null){const o=new FormData;o.append("file_name",e.name),o.append("node_id",i.toString()),o.append("file",e);let s=this;return new Promise((a,l)=>{s.http.uploadMultipart(this.serviceName+"/"+i+"/add_cover/",o,r).then(function(u){let c=u;null!=c?(s.bdd.asyncSetInDB(s.serviceName,i,c),a(c)):l("error retrive data from server")}).catch(function(u){l(u)})})}}return n.\u0275fac=function(e){return new(e||n)(P(Bt),P(so))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),nr=(()=>{class n{constructor(e,i){this.http=e,this.bdd=i,this.identificationVersion=1,this.serviceName="season",console.log("Start SeasonService")}get(e){let i=this;return new Promise((r,o)=>{i.bdd.getSeason().then(function(s){let a=s.get(e);null!=a?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}getVideo(e){let i=this;return new Promise((r,o)=>{i.bdd.getVideo().then(function(s){let a=s.gets_where([["==","season_id",e]],void 0,["episode","name"]);r(a)}).catch(function(s){o(s)})})}countVideo(e){let i=this;return new Promise((r,o)=>{i.bdd.getVideo().then(function(s){let a=s.gets_where([["==","season_id",e]],void 0,["episode","name"]);r(a.length)}).catch(function(s){o(s)})})}put(e,i){let r=this.http.put_specific(this.serviceName,e,i);return this.bdd.setAfterPut(this.serviceName,e,r)}delete(e){let i=this.http.delete_specific(this.serviceName,e);return this.bdd.delete(this.serviceName,e,i)}getCoverUrl(e){return this.http.createRESTCall("data/"+e)}getCoverThumbnailUrl(e){return this.http.createRESTCall("data/thumbnail/"+e)}deleteCover(e,i){let r=this;return new Promise((o,s)=>{r.http.get_specific(this.serviceName+"/"+e+"/rm_cover",i).then(function(a){let l=a;null!=l?(r.bdd.asyncSetInDB(r.serviceName,e,l),o(l)):s("error retrive data from server")}).catch(function(a){s(a)})})}uploadCover(e,i,r=null){const o=new FormData;o.append("file_name",e.name),o.append("node_id",i.toString()),o.append("file",e);let s=this;return new Promise((a,l)=>{s.http.uploadMultipart(this.serviceName+"/"+i+"/add_cover/",o,r).then(function(u){let c=u;null!=c?(s.bdd.asyncSetInDB(s.serviceName,i,c),a(c)):l("error retrive data from server")}).catch(function(u){l(u)})})}}return n.\u0275fac=function(e){return new(e||n)(P(Bt),P(so))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ao=(()=>{class n{constructor(e,i){this.http=e,this.bdd=i,this.identificationVersion=1,this.serviceName="video",console.log("Start VideoService")}get(e){let i=this;return new Promise((r,o)=>{i.bdd.get(this.serviceName).then(function(s){let a=s.get(e);null!=a?r(a):o("Data does not exist in the local BDD")}).catch(function(s){o(s)})})}put(e,i){let r=this.http.put_specific(this.serviceName,e,i);return this.bdd.setAfterPut(this.serviceName,e,r)}delete(e){let i=this.http.delete_specific(this.serviceName,e);return this.bdd.delete(this.serviceName,e,i)}getCoverUrl(e){return this.http.createRESTCall("data/"+e)}getCoverThumbnailUrl(e){return this.http.createRESTCall("data/thumbnail/"+e)}uploadFile(e,i,r,o,s,a,l,u,c=null){const d=new FormData;return d.append("file_name",e.name),d.append("file",e),d.append("universe",i),d.append("series_id",null!=o?o.toString():null),d.append("series",r),d.append("season",null!=s?s.toString():null),d.append("episode",null!=a?a.toString():null),d.append("title",l),d.append("type_id",null!=u?u.toString():null),this.http.uploadMultipart(this.serviceName+"/upload/",d,c)}deleteCover(e,i){let r=this;return new Promise((o,s)=>{r.http.get_specific(this.serviceName+"/"+e+"/rm_cover",i).then(function(a){let l=a;null!=l?(r.bdd.asyncSetInDB(r.serviceName,e,l),o(l)):s("error retrive data from server")}).catch(function(a){s(a)})})}uploadCover(e,i,r=null){const o=new FormData;o.append("file_name",e.name),o.append("type_id",i.toString()),o.append("file",e);let s=this;return new Promise((a,l)=>{s.http.uploadMultipart(this.serviceName+"/"+i+"/add_cover/",o,r).then(function(u){let c=u;null!=c?(s.bdd.asyncSetInDB(s.serviceName,i,c),a(c)):l("error retrive data from server")}).catch(function(u){l(u)})})}uploadCoverBlob(e,i,r=null){const o=new FormData;o.append("file_name","take_screenshoot"),o.append("type_id",i.toString()),o.append("file",e);let s=this;return new Promise((a,l)=>{s.http.uploadMultipart(this.serviceName+"/"+i+"/add_cover/",o,r).then(function(u){let c=u;null!=c?(s.bdd.asyncSetInDB(s.serviceName,i,c),a(c)):l("error retrive data from server")}).catch(function(u){l(u)})})}}return n.\u0275fac=function(e){return new(e||n)(P(Bt),P(so))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.typeService=r,this.universeService=o,this.seriesService=s,this.seasonService=a,this.videoService=l,this.type_id=null,this.type_name=null,this.type_change=new de,this.universe_id=null,this.universe_name=null,this.universe_change=new de,this.series_id=null,this.series_name=null,this.series_change=new de,this.season_id=null,this.season_name=null,this.season_change=new de,this.video_id=null,this.video_name=null,this.video_change=new de,console.log("Start ArianeService")}updateParams(e){console.log("sparams "+e),console.log("sparams['type_id'] "+e.type_id),this.setType(e.type_id?e.type_id:null)}updateManual(e){let i=e.get("type_id");i=null==i||"null"==i||"NULL"==i||""==i?null:parseInt(i),console.log("type_id = "+i+" "+e.get("type_id"));let r=e.get("universe_id");r=null==r||"null"==r||"NULL"==r||""==r?null:parseInt(r),console.log("universe_id = "+r+" "+e.get("univers_id"));let o=e.get("series_id");o=null==o||"null"==o||"NULL"==o||""==o?null:parseInt(o),console.log("series_id = "+o+" "+e.get("series_id"));let s=e.get("season_id");s=null==s||"null"==s||"NULL"==s||""==s?null:parseInt(s),console.log("season_id = "+s+" "+e.get("season_id"));let a=e.get("video_id");a=null==a||"null"==a||"NULL"==a||""==a?null:parseInt(a),console.log("video_id = "+a+" "+e.get("video_id")),this.setType(i),this.setUniverse(r),this.setSeries(o),this.setSeason(s),this.setVideo(a)}reset(){this.type_id=null,this.type_name=null,this.type_change.emit(this.type_id),this.universe_id=null,this.universe_name=null,this.universe_change.emit(this.universe_id),this.series_id=null,this.series_name=null,this.series_change.emit(this.series_id),this.season_id=null,this.season_name=null,this.season_change.emit(this.season_id),this.video_id=null,this.video_name=null,this.video_change.emit(this.video_id)}setType(e){if(this.type_id==e||void 0===e)return;if(this.type_id=e,this.type_name="??--??",null===this.type_id)return void this.type_change.emit(this.type_id);let i=this;this.typeService.get(e).then(function(r){i.type_name=r.name,i.type_change.emit(i.type_id)}).catch(function(r){i.type_change.emit(i.type_id)})}getTypeId(){return this.type_id}getTypeName(){return this.type_name}setUniverse(e){if(this.universe_id==e||void 0===e)return;if(this.universe_id=e,this.universe_name="??--??",null===this.universe_id)return void this.universe_change.emit(this.universe_id);let i=this;this.universeService.get(e).then(function(r){i.universe_name=r.number,i.universe_change.emit(i.universe_id)}).catch(function(r){i.universe_change.emit(i.universe_id)})}getUniverseId(){return this.universe_id}getUniverseName(){return this.universe_name}setSeries(e){if(this.series_id==e||void 0===e)return;if(this.series_id=e,this.series_name="??--??",null===this.series_id)return void this.series_change.emit(this.series_id);let i=this;this.seriesService.get(e).then(function(r){i.series_name=r.name,i.series_change.emit(i.series_id)}).catch(function(r){i.series_change.emit(i.series_id)})}getSeriesId(){return this.series_id}getSeriesName(){return this.series_name}setSeason(e){if(this.season_id==e||void 0===e)return;if(this.season_id=e,this.season_name="??--??",null===this.season_id)return void this.season_change.emit(this.season_id);let i=this;this.seasonService.get(e).then(function(r){i.season_name=r.name,i.season_change.emit(i.season_id)}).catch(function(r){i.season_change.emit(i.season_id)})}getSeasonId(){return this.season_id}getSeasonName(){return this.season_name}setVideo(e){if(this.video_id==e||void 0===e)return;if(this.video_id=e,this.video_name="??--??",null===this.video_id)return void this.video_change.emit(this.video_id);let i=this;this.videoService.get(e).then(function(r){i.video_name=r.name,i.video_change.emit(i.video_id)}).catch(function(r){i.video_change.emit(i.video_id)})}getVideoId(){return this.video_id}getVideoName(){return this.video_name}genericNavigate(e,i,r,o,s,a,l=!1,u=!1){let c=e+"/"+i+"/"+r+"/"+o+"/"+s+"/"+a;1==l?window.open("/karideo/"+c):this.router.navigate([c],{replaceUrl:u})}navigateUniverse(e,i){this.genericNavigate("universe",e,this.type_id,null,null,null,i)}navigateUniverseEdit(e,i){this.genericNavigate("universe-edit",e,this.type_id,null,null,null,i)}navigateType(e,i,r=!1){1!=r?this.genericNavigate("type",this.universe_id,e,null,null,null,i):this.navigateTypeEdit(e,i)}navigateTypeEdit(e,i){this.genericNavigate("type-edit",this.universe_id,e,null,null,null,i)}navigateSeries(e,i,r=!1){1!=r?this.genericNavigate("series",this.universe_id,this.type_id,e,null,null,i):this.navigateSeriesEdit(e,i)}navigateSeriesEdit(e,i){this.genericNavigate("series-edit",this.universe_id,this.type_id,e,null,null,i)}navigateSeason(e,i,r=!1,o=!1){1!=r?this.genericNavigate("season",this.universe_id,this.type_id,this.series_id,e,null,i,o):this.navigateSeasonEdit(e,i)}navigateSeasonEdit(e,i){this.genericNavigate("season-edit",this.universe_id,this.type_id,this.series_id,e,null,i)}navigateVideo(e,i,r=!1){1!=r?this.genericNavigate("video",this.universe_id,this.type_id,this.series_id,this.season_id,e,i):this.navigateVideoEdit(e,i)}navigateVideoEdit(e,i){this.genericNavigate("video-edit",this.universe_id,this.type_id,this.series_id,this.season_id,e,i)}}return n.\u0275fac=function(e){return new(e||n)(P(He),P(le),P(ii),P(Ns),P(ri),P(nr),P(ao))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function VV(n,t){if(1&n&&(h(0,"span",6),_(1),p()),2&n){const e=b();m(1),Q(" ",e.countvideo," ")}}function LV(n,t){if(1&n&&(h(0,"div"),I(1,"img",7),p()),2&n){const e=b();m(1),ut("src",e.cover,Ye)}}function UV(n,t){if(1&n&&(h(0,"div",8),_(1),p()),2&n){const e=b();m(1),Q(" ",e.description," ")}}let BV=(()=>{class n{constructor(e,i){this.router=e,this.typeService=i,this.id_type=-1,this.imageSource="",this.name="",this.error="",this.description="",this.countvideo=null,this.countserie=null,this.cover="",this.covers=[]}ngOnInit(){this.name="ll "+this.id_type;let e=this;console.log("get parameter id: "+this.id_type),this.typeService.get(this.id_type).then(function(i){if(e.error="",e.name=i.name,e.description=i.description,null==i.covers||null==i.covers||0==i.covers.length)e.cover=null;else{e.cover=e.typeService.getCoverThumbnailUrl(i.covers[0]);for(let r=0;r{class n{constructor(e,i,r,o,s){this.route=e,this.router=i,this.locate=r,this.typeService=o,this.arianeService=s,this.data_list=[],this.error=""}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap);let e=this;this.typeService.getData().then(function(i){e.error="",e.data_list=i,console.log("Get response: "+JSON.stringify(i,null,2))}).catch(function(i){e.error="Wrong e-mail/login or password",console.log("[E] "+e.constructor.name+": Does not get a correct response from the server ..."),e.data_list=[]}),this.arianeService.reset()}onSelectType(e,i){this.arianeService.navigateType(i,2==e.which)}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(ii),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-home"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:6,vars:1,consts:[[1,"generic-page"],[1,"title"],[1,"fill-all","colomn_mutiple"],["class","item-home",3,"click","auxclick",4,"ngFor","ngForOf"],[1,"clear"],[1,"item-home",3,"click","auxclick"],[3,"id_type"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1),_(2," Karideo "),p(),h(3,"div",2),D(4,HV,2,1,"div",3),I(5,"div",4),p()()),2&e&&(m(4),C("ngForOf",i.data_list))},directives:[kn,BV],styles:['.title[_ngcontent-%COMP%]{font-size:45px;font-weight:700;line-height:60px;width:100%;align:left;text-align:center;vertical-align:middle;margin:10px 0;text-shadow:1px 1px 2px white,0 0 1em white,0 0 .2em white;text-transform:uppercase;font-family:Roboto,Helvetica,Arial,sans-serif}.item-home[_ngcontent-%COMP%]{background-color:#c8c8c880;font-size:20px;height:190px;width:200px;margin:5px;padding:0;overflow:hidden;box-shadow:0 2px 4px #0009;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,"sans-serif";font-weight:500;text-transform:uppercase;letter-spacing:0;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;transition-duration:.4s;float:left;display:block}.item-home[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}.item-home[_ngcontent-%COMP%]:hover{background-color:#c8c8c8}.item-home[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle}.item-home[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}@media all and (min-width: 1310px){.colomn_mutiple[_ngcontent-%COMP%]{width:1050px;margin:auto}}'],data:{animation:[rn]}}),n})();function $V(n,t){if(1&n&&(h(0,"div",6),_(1),p()),2&n){const e=b();m(1),Q(" ",e.countvideo," ")}}function zV(n,t){if(1&n&&(h(0,"div"),I(1,"img",7),p()),2&n){const e=b();m(1),ut("src",e.cover,Ye)}}function qV(n,t){1&n&&I(0,"div",8)}let GV=(()=>{class n{constructor(e,i){this.router=e,this.seriesService=i,this.id_series=-1,this.id_type=-1,this.error="",this.name="plouf",this.description="",this.countvideo=null,this.imageSource=null,this.cover="",this.covers=[]}ngOnInit(){this.name="ll "+this.id_type+"+"+this.id_series;let e=this;console.log("get parameter id: "+this.id_type),this.seriesService.get(this.id_series).then(function(i){if(e.error="",e.name=i.name,null==i.covers||null==i.covers||0==i.covers.length)e.cover=null;else{e.cover=e.seriesService.getCoverThumbnailUrl(i.covers[0]);for(let r=0;r{class n{constructor(e,i,r){this.router=e,this.videoService=i,this.httpService=r,this.id_video=-1,this.display_video=!1,this.error="",this.name="",this.description="",this.episode=void 0,this.series_id=void 0,this.season_id=void 0,this.data_id=-1,this.time=void 0,this.type_id=void 0,this.generated_name="",this.video_source="",this.video_enable=!1,this.imageSource=null,this.episode_display="",this.cover="",this.covers=[]}OnDestroy(){this.video_source="",this.video_enable=!1}ngOnInit(){this.name="ll "+this.id_video;let e=this;this.videoService.get(this.id_video).then(function(i){if(e.error="",e.name=i.name,e.description=i.description,e.episode=i.episode,e.episode_display=null==i.episode||""==i.episode?"":i.episode+" - ",e.series_id=i.series_id,e.season_id=i.season_id,e.data_id=i.data_id,e.time=i.time,e.generated_name=i.generated_name,-1!=e.data_id?(e.video_source=e.httpService.createRESTCall("data/"+e.data_id),e.video_enable=!0):(e.video_source="",e.video_enable=!1),null==i.covers||null==i.covers||0==i.covers.length)e.cover=null;else{e.cover=e.videoService.getCoverThumbnailUrl(i.covers[0]);for(let r=0;r{class n{constructor(e,i,r,o,s){this.route=e,this.router=i,this.locate=r,this.typeService=o,this.arianeService=s,this.type_id=-1,this.name="",this.description="",this.cover=null,this.seriess_error="",this.seriess=[],this.videos_error="",this.videos=[]}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.type_id=this.arianeService.getTypeId();let e=this;console.log("get parameter id: "+this.type_id),this.typeService.get(this.type_id).then(function(i){e.name=i.name,e.description=i.description}).catch(function(i){e.name="???",e.description=""}),this.typeService.getSubSeries(this.type_id,["id","name"]).then(function(i){e.seriess_error="",e.seriess=i}).catch(function(i){e.seriess_error="Wrong e-mail/login or password",e.seriess=[]}),this.typeService.getSubVideo(this.type_id,["id","name"]).then(function(i){e.videos_error="",e.videos=i}).catch(function(i){e.videos_error="Wrong e-mail/login or password",e.videos=[]})}onSelectSeries(e,i){this.arianeService.navigateSeries(i,2==e.which,e.ctrlKey)}onSelectVideo(e,i){this.arianeService.navigateVideo(i,2==e.which,e.ctrlKey)}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(ii),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-type"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:15,vars:6,consts:[[1,"generic-page"],[1,"fill-title","colomn_mutiple"],[1,"cover-area"],["class","cover",4,"ngIf"],[3,"className"],[1,"title"],["class","description",4,"ngIf"],[1,"fill-content","colomn_mutiple"],[1,"clear"],["class","item",3,"click","auxclick",4,"ngFor","ngForOf"],["class","item item-video",3,"click","auxclick",4,"ngFor","ngForOf"],[1,"cover"],[3,"src"],[1,"description"],[1,"item",3,"click","auxclick"],[3,"id_type","id_series"],[1,"item","item-video",3,"click","auxclick"],[3,"id_video"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"div",2),D(3,QV,2,1,"div",3),p(),h(4,"div",4)(5,"div",5),_(6),p(),D(7,JV,2,1,"div",6),p()(),h(8,"div",7),I(9,"div",8),D(10,ZV,2,2,"div",9),p(),h(11,"div",7),I(12,"div",8),D(13,YV,2,1,"div",10),p(),I(14,"div",8),p()),2&e&&(m(3),C("ngIf",null!=i.cover),m(1),C("className",null!=i.cover?"description-area description-area-cover":"description-area description-area-no-cover"),m(2),Q(" ",i.name," "),m(1),C("ngIf",i.description),m(3),C("ngForOf",i.seriess),m(3),C("ngForOf",i.videos))},directives:[We,kn,GV,au],styles:[""],data:{animation:[rn]}}),n})();function eL(n,t){if(1&n){const e=U();h(0,"div",4),M("click",function(r){const s=x(e).$implicit;return b().onSelectVideo(r,s)})("auxclick",function(r){const s=x(e).$implicit;return b().onSelectVideo(r,s)}),I(1,"app-element-video",5),p()}if(2&n){const e=t.$implicit;m(1),C("id_video",e)}}let tL=(()=>{class n{constructor(e,i,r,o,s){this.route=e,this.router=i,this.locate=r,this.universeService=o,this.arianeService=s,this.universe_id=-1,this.videos_error="",this.videos=[]}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.universe_id=this.arianeService.getUniverseId(),console.log("get parameter id: "+this.universe_id)}onSelectVideo(e,i){2==e.which?window.open("/karideo/video/"+i):(this.router.navigate(["video/"+i]),this.arianeService.setVideo(i))}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(Ns),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-universe"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:4,vars:1,consts:[[1,"generic-page"],[1,"fill-all","colomn_mutiple"],["class","item item-video",3,"click","auxclick",4,"ngFor","ngForOf"],[1,"clear"],[1,"item","item-video",3,"click","auxclick"],[3,"id_video"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1),D(2,eL,2,1,"div",2),I(3,"div",3),p()()),2&e&&(m(2),C("ngForOf",i.videos))},directives:[kn,au],styles:[".fill-all[_ngcontent-%COMP%]{width:100%;height:100%;margin:0;padding:0;border:0;background-color:#0f0}.item[_ngcontent-%COMP%]{font-size:20px;height:21%;width:23%;margin:1%;padding:0;overflow:hidden;box-shadow:0 2px 4px #0009;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:0;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;transition-duration:.4s;float:left;display:block}.item[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}.item[_ngcontent-%COMP%]:hover{background-color:red}.item[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle}.item[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.item-video[_ngcontent-%COMP%]:hover{background-color:#0f0}"],data:{animation:[rn]}}),n})();function nL(n,t){if(1&n&&(h(0,"div"),I(1,"img",5),p()),2&n){const e=b();m(1),ut("src",e.cover,Ye)}}function iL(n,t){1&n&&I(0,"div",6)}function rL(n,t){if(1&n&&(h(0,"div",7),_(1),p()),2&n){const e=b();m(1),Q(" ",e.count," Episodes\n")}}function oL(n,t){if(1&n&&(h(0,"div",7),_(1),p()),2&n){const e=b();m(1),Q(" ",e.count," Episode\n")}}let sL=(()=>{class n{constructor(e,i){this.router=e,this.seasonService=i,this.id_season=-1,this.error="",this.numberSeason=-1,this.count=0,this.cover="",this.covers=[],this.description=""}ngOnInit(){let e=this;console.log("get season properties id: "+this.id_season),this.seasonService.get(this.id_season).then(function(i){if(e.error="",e.numberSeason=i.name,e.description=i.description,null==i.covers||null==i.covers||0==i.covers.length)e.cover=null;else{e.cover=e.seasonService.getCoverThumbnailUrl(i.covers[0]);for(let r=0;r1),m(1),C("ngIf",1==i.count))},directives:[We],styles:[".imgContainer-small[_ngcontent-%COMP%]{text-align:center;width:100px;margin:4px 15px 4px 10px;height:100px;float:left}.imgContainer-small[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100px;max-width:100px}.imgContainer-small[_ngcontent-%COMP%] .noImage[_ngcontent-%COMP%]{height:95px;width:95px;border:solid 2px;border-color:#000000b3;margin:auto}.title-small[_ngcontent-%COMP%]{height:50px;font-size:35px;display:inline-block;font-weight:700}.description-small[_ngcontent-%COMP%]{height:30px;font-size:16px;overflow:hidden;vertical-align:middle}"]}),n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function aL(n,t){if(1&n&&(h(0,"div",9),I(1,"img",10),p()),2&n){const e=b();m(1),ut("src",e.cover,Ye)}}function lL(n,t){if(1&n&&(h(0,"div",11),_(1),p()),2&n){const e=b();m(1),Q(" ",e.description," ")}}function uL(n,t){1&n&&(h(0,"div",5),_(1,"Seasons:"),p())}function cL(n,t){1&n&&(h(0,"div",5),_(1,"Season:"),p())}function dL(n,t){if(1&n){const e=U();h(0,"div",15),M("click",function(r){const s=x(e).$implicit;return b(2).onSelectSeason(r,s.id)})("auxclick",function(r){const s=x(e).$implicit;return b(2).onSelectSeason(r,s.id)}),I(1,"app-element-season",16),p()}if(2&n){const e=t.$implicit;m(1),C("id_season",e.id)}}function fL(n,t){if(1&n&&(h(0,"div",12),I(1,"div",8),D(2,uL,2,0,"div",13),D(3,cL,2,0,"div",13),D(4,dL,2,1,"div",14),p()),2&n){const e=b();m(2),C("ngIf",e.seasons.length>1),m(1),C("ngIf",1==e.seasons.length),m(1),C("ngForOf",e.seasons)}}function hL(n,t){1&n&&(h(0,"div",5),_(1,"Videos:"),p())}function pL(n,t){1&n&&(h(0,"div",5),_(1,"Video:"),p())}function gL(n,t){if(1&n){const e=U();h(0,"div",18),M("click",function(r){const s=x(e).$implicit;return b(2).onSelectVideo(r,s.id)})("auxclick",function(r){const s=x(e).$implicit;return b(2).onSelectVideo(r,s.id)}),I(1,"app-element-video",19),p()}if(2&n){const e=t.$implicit;m(1),C("id_video",e.id)}}function mL(n,t){if(1&n&&(h(0,"div",12),I(1,"div",8),D(2,hL,2,0,"div",13),D(3,pL,2,0,"div",13),D(4,gL,2,1,"div",17),p()),2&n){const e=b();m(2),C("ngIf",e.videos.length>1),m(1),C("ngIf",1==e.videos.length),m(1),C("ngForOf",e.videos)}}let _L=(()=>{class n{constructor(e,i,r,o,s){this.route=e,this.router=i,this.locate=r,this.seriesService=o,this.arianeService=s,this.id_series=-1,this.name="",this.description="",this.cover="",this.covers=[],this.seasons_error="",this.seasons=[],this.videos_error="",this.videos=[]}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_series=this.arianeService.getSeriesId();let e=this,i={series_metadata:!1,sub_saison:!1,sub_video:!1};this.seriesService.get(this.id_series).then(function(r){if(e.name=r.name,e.description=r.description,null==r.covers||null==r.covers||0==r.covers.length)e.cover=null,e.covers=[];else{e.cover=e.seriesService.getCoverUrl(r.covers[0]);for(let o=0;o0||1===this.seasons.length&&this.arianeService.navigateSeason(this.seasons[0].id,!1,!1,!0)}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(ri),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-series"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:11,vars:6,consts:[[1,"generic-page"],[1,"fill-title","colomn_mutiple"],[1,"cover-area"],["class","cover",4,"ngIf"],[3,"className"],[1,"title"],["class","description",4,"ngIf"],["class","fill-content colomn_mutiple",4,"ngIf"],[1,"clear"],[1,"cover"],[3,"src"],[1,"description"],[1,"fill-content","colomn_mutiple"],["class","title",4,"ngIf"],["class","item-list",3,"click","auxclick",4,"ngFor","ngForOf"],[1,"item-list",3,"click","auxclick"],[3,"id_season"],["class","item item-video",3,"click","auxclick",4,"ngFor","ngForOf"],[1,"item","item-video",3,"click","auxclick"],[3,"id_video"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"div",2),D(3,aL,2,1,"div",3),p(),h(4,"div",4)(5,"div",5),_(6),p(),D(7,lL,2,1,"div",6),p()(),D(8,fL,5,3,"div",7),D(9,mL,5,3,"div",7),I(10,"div",8),p()),2&e&&(m(3),C("ngIf",null!=i.cover),m(1),C("className",null!=i.cover?"description-area description-area-cover":"description-area description-area-no-cover"),m(2),Q(" ",i.name," "),m(1),C("ngIf",i.description),m(1),C("ngIf",0!=i.seasons.length),m(1),C("ngIf",0!=i.videos.length))},directives:[We,kn,sL,au],styles:[""],data:{animation:[rn]}}),n})();function vL(n,t){if(1&n&&(h(0,"div",11),I(1,"img",12),p()),2&n){const e=b();m(1),ut("src",e.cover,Ye)}}function yL(n,t){if(1&n&&(h(0,"div",13),_(1),p()),2&n){const e=b();m(1),Q(" ",e.series_name," ")}}function CL(n,t){if(1&n&&(h(0,"div",14),_(1),p()),2&n){const e=b();m(1),Q(" ",e.description," ")}}function bL(n,t){1&n&&(h(0,"div",13),_(1,"Videos:"),p())}function SL(n,t){1&n&&(h(0,"div",13),_(1,"Video:"),p())}function wL(n,t){if(1&n){const e=U();h(0,"div",15),M("click",function(r){const s=x(e).$implicit;return b().onSelectVideo(r,s.id)})("auxclick",function(r){const s=x(e).$implicit;return b().onSelectVideo(r,s.id)}),I(1,"app-element-video",16),p()}if(2&n){const e=t.$implicit;m(1),C("id_video",e.id)}}let DL=(()=>{class n{constructor(e,i,r,o,s,a){this.route=e,this.router=i,this.locate=r,this.seasonService=o,this.seriesService=s,this.arianeService=a,this.name="",this.series_name="",this.description="",this.series_id=null,this.cover="",this.covers=[],this.id_season=-1,this.videos_error="",this.videos=[]}ngOnInit(){console.log("ngOnInit(SeasonComponent)"),this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_season=this.arianeService.getSeasonId();let e=this;this.seasonService.get(this.id_season).then(function(i){if(e.name=i.name,e.series_id=i.parent_id,e.description=i.description,null==i.covers||null==i.covers||0==i.covers.length)e.cover=null,e.covers=[];else{e.cover=e.seriesService.getCoverUrl(i.covers[0]);for(let r=0;r1),m(1),C("ngIf",1==i.videos.length),m(1),C("ngForOf",i.videos))},directives:[We,kn,au],styles:[""],data:{animation:[rn]}}),n})();const EL=["globalVideoElement"],TL=["videoPlayer"],ML=["canvascreenshoot"];function xL(n,t){1&n&&(h(0,"div",5)(1,"div",6),_(2," Play media"),I(3,"br")(4,"br")(5,"br")(6,"br")(7,"br"),_(8," The media does not exist "),p()())}function IL(n,t){1&n&&(h(0,"div",5)(1,"div",6),_(2," Play media"),I(3,"br")(4,"br")(5,"br")(6,"br")(7,"br"),_(8," Loading ..."),I(9,"br"),_(10," Please wait. "),p()())}function AL(n,t){if(1&n&&(h(0,"div",20),I(1,"img",21),p()),2&n){const e=b(2);m(1),ut("src",e.cover,Ye)}}function PL(n,t){if(1&n&&(h(0,"div",22),I(1,"img",21),p()),2&n){const e=b(2);m(1),ut("src",e.cover,Ye)}}function OL(n,t){if(1&n){const e=U();h(0,"div",23)(1,"button",24),M("click",function(r){return x(e),b(2).onRequireNext(r)})("auxclick",function(r){return x(e),b(2).onRequireNext(r)}),h(2,"i",13),_(3,"arrow_forward_ios"),p()()()}}function NL(n,t){if(1&n){const e=U();h(0,"div",25)(1,"button",24),M("click",function(r){return x(e),b(2).onRequirePrevious(r)})("auxclick",function(r){return x(e),b(2).onRequirePrevious(r)}),h(2,"i",13),_(3,"arrow_back_ios"),p()()()}}function kL(n,t){if(1&n&&(h(0,"div",18)(1,"b"),_(2,"Series:"),p(),_(3),p()),2&n){const e=b(2);m(3),Q(" ",e.series_name," ")}}function RL(n,t){if(1&n&&(h(0,"div",18)(1,"b"),_(2,"Season:"),p(),_(3),p()),2&n){const e=b(2);m(3),Q(" ",e.season_name," ")}}function FL(n,t){if(1&n&&(h(0,"div",18)(1,"b"),_(2,"Episode:"),p(),_(3),p()),2&n){const e=b(2);m(3),Q(" ",e.episode," ")}}function VL(n,t){if(1&n){const e=U();h(0,"div",5)(1,"div",6),_(2),p(),h(3,"div",7)(4,"div",8),D(5,AL,2,1,"div",9),D(6,PL,2,1,"div",10),h(7,"div",11)(8,"button",12),M("click",function(){return x(e),b().onRequirePlay()}),h(9,"i",13),_(10,"play_circle_outline"),p()()()(),D(11,OL,4,0,"div",14),D(12,NL,4,0,"div",15),p(),I(13,"div",16),D(14,kL,4,1,"div",17),D(15,RL,4,1,"div",17),D(16,FL,4,1,"div",17),h(17,"div",18)(18,"b"),_(19,"generated_name:"),p(),_(20),p(),h(21,"div",19),_(22),p()()}if(2&n){const e=b();m(2),Q(" ",e.name," "),m(3),C("ngIf",null!=e.cover),m(1),C("ngIf",null==e.cover),m(5),C("ngIf",null!=e.haveNext),m(1),C("ngIf",null!=e.havePrevious),m(2),C("ngIf",null!=e.series_name),m(1),C("ngIf",null!=e.season_name),m(1),C("ngIf",null!=e.episode),m(4),Q(" ",e.generated_name," "),m(2),Q(" ",e.description," ")}}function LL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onPlay()}),h(1,"i",37),_(2,"play_arrow"),p()()}}function UL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onPause()}),h(1,"i",37),_(2,"pause"),p()()}}function BL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onFullscreen()}),h(1,"i",37),_(2,"fullscreen"),p()()}}function HL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onFullscreenExit()}),h(1,"i",37),_(2,"fullscreen_exit"),p()()}}function jL(n,t){1&n&&(h(0,"i",37),_(1,"play_circle_outline"),p())}function $L(n,t){1&n&&(h(0,"i",37),_(1,"fast_rewind"),p())}function zL(n,t){1&n&&(h(0,"i",37),_(1,"fast_forward"),p())}function qL(n,t){if(1&n){const e=U();h(0,"div",35),D(1,LL,3,0,"button",36),D(2,UL,3,0,"button",36),h(3,"button",12),M("click",function(){return x(e),b(2).onStop()}),h(4,"i",37),_(5,"stop"),p()(),h(6,"div",38)(7,"div")(8,"input",39),M("input",function(r){return x(e),b(2).seek(r.target)}),p()(),h(9,"div",40)(10,"label",41),_(11),p()()(),h(12,"button",12),M("click",function(){return x(e),b(2).onRewind()}),h(13,"i",37),_(14,"fast_rewind"),p()(),h(15,"button",12),M("click",function(){return x(e),b(2).onForward()}),h(16,"i",37),_(17,"fast_forward"),p()(),D(18,BL,3,0,"button",36),D(19,HL,3,0,"button",36),h(20,"button",12),M("click",function(){return x(e),b(2).onVolumeMenu()}),h(21,"i",37),_(22,"volume_up"),p()(),h(23,"button",42),M("click",function(){return x(e),b(2).onPauseToggle()}),D(24,jL,2,0,"i",43),p(),h(25,"button",44),M("click",function(){return x(e),b(2).onRewind()}),D(26,$L,2,0,"i",43),p(),h(27,"button",45),M("click",function(){return x(e),b(2).onForward()}),D(28,zL,2,0,"i",43),p()()}if(2&n){const e=b(2);m(1),C("ngIf",!e.isPlaying),m(1),C("ngIf",e.isPlaying),m(6),C("value",e.currentTime)("max",e.duration),m(3),ka("",e.currentTimeDisplay," / ",e.durationDisplay,""),m(7),C("ngIf",!e.isFullScreen),m(1),C("ngIf",e.isFullScreen),m(5),C("ngIf",!e.isPlaying),m(2),C("ngIf",!e.isPlaying),m(2),C("ngIf",!e.isPlaying)}}function GL(n,t){if(1&n){const e=U();h(0,"div",46)(1,"button",12),M("click",function(){return x(e),b(2).onRequireStop()}),h(2,"i",13),_(3,"highlight_off"),p()()()}}function WL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onVolumeMute()}),h(1,"i",37),_(2,"volume_mute"),p()()}}function KL(n,t){if(1&n){const e=U();h(0,"button",12),M("click",function(){return x(e),b(3).onVolumeUnMute()}),h(1,"i",37),_(2,"volume_off"),p()()}}function QL(n,t){if(1&n){const e=U();h(0,"div",47)(1,"div",48)(2,"div",49)(3,"input",50),M("input",function(r){return x(e),b(2).onVolume(r.target)}),p()(),D(4,WL,3,0,"button",36),D(5,KL,3,0,"button",36),p()()}if(2&n){b();const e=Go(5),i=b();m(3),C("value",i.volumeValue),m(1),C("ngIf",!e.muted),m(1),C("ngIf",e.muted)}}function JL(n,t){if(1&n){const e=U();h(0,"div",26)(1,"div",27,28),M("mousemove",function(){return x(e),b().startHideTimer()})("fullscreenchange",function(r){return x(e),b().onFullscreenChange(r)}),h(3,"div",29)(4,"video",30,31),M("play",function(){return x(e),b().changeStateToPlay()})("pause",function(){return x(e),b().changeStateToPause()})("timeupdate",function(r){return x(e),b().changeTimeupdate(r.currentTime)})("durationchange",function(r){return x(e),b().changeDurationchange(r.duration)})("loadedmetadata",function(){return x(e),b().changeMetadata()})("audioTracks",function(r){return x(e),b().audioTracks(r)})("ended",function(){return x(e),b().onVideoEnded()}),p()(),D(6,qL,29,11,"div",32),D(7,GL,4,0,"div",33),D(8,QL,6,3,"div",34),p()()}if(2&n){const e=b();m(4),fd("src","",e.video_source,"/",e.generated_name,"",Ye),m(2),C("ngIf",!e.displayNeedHide||!e.isPlaying),m(1),C("ngIf",!e.isFullScreen||!e.isPlaying),m(1),C("ngIf",e.displayVolumeMenu&&(!e.displayNeedHide||!e.isPlaying))}}let ZL=(()=>{class n{constructor(e,i,r,o,s,a,l,u){this.route=e,this.router=i,this.locate=r,this.videoService=o,this.seriesService=s,this.seasonService=a,this.httpService=l,this.arianeService=u,this.haveNext=null,this.havePrevious=null,this.id_video=-1,this.mediaIsNotFound=!1,this.mediaIsLoading=!0,this.error="",this.name="",this.description="",this.episode=void 0,this.series_id=void 0,this.series_name=void 0,this.season_id=void 0,this.season_name=void 0,this.data_id=-1,this.time=void 0,this.type_id=void 0,this.generated_name="",this.video_source="",this.cover=null,this.covers=[],this.playVideo=!1,this.displayVolumeMenu=!1,this.isPlaying=!1,this.isFullScreen=!1,this.currentTime=0,this.currentTimeDisplay="00",this.duration=0,this.durationDisplay="00",this.volumeValue=100,this.displayNeedHide=!1,this.timeLeft=10,this.interval=null}set mainDivEl(e){null!=e&&(this.videoGlobal=e.nativeElement)}set mainVideoEl(e){null!=e&&(this.videoPlayer=e.nativeElement)}set mainCanvaEl(e){null!=e&&(this.videoCanva=e.nativeElement)}startHideTimer(){if(this.displayNeedHide=!1,this.timeLeft=5,null!=this.interval)return;let e=this;this.interval=setInterval(()=>{console.log("periodic event: "+e.timeLeft),e.timeLeft>0?e.timeLeft--:(clearInterval(e.interval),e.timeOutDetected())},1e3)}timeOutDetected(){console.log(" ==> stop timer"),this.displayNeedHide=!0,clearInterval(this.interval),this.interval=null}onRequireNext(e){console.log("generate next : "+this.haveNext.id),this.arianeService.navigateVideo(this.haveNext.id,2==e.which,e.ctrlKey),this.arianeService.setVideo(this.haveNext.id)}onRequirePrevious(e){console.log("generate previous : "+this.havePrevious.id),this.arianeService.navigateVideo(this.havePrevious.id,2==e.which,e.ctrlKey),this.arianeService.setVideo(this.havePrevious.id)}generateName(){this.generated_name="",null!=this.series_name&&(this.generated_name+=this.series_name+"-"),null!=this.season_name&&(this.generated_name+=this.season_name.length<2?"s0"+this.season_name+"-":"s"+this.season_name+"-"),null!=this.episode&&(this.generated_name+=this.episode<10?"e0"+this.episode+"-":"e"+this.episode+"-"),this.generated_name+=this.name,this.generated_name=this.generated_name.replace(new RegExp("&","g"),"_"),this.generated_name=this.generated_name.replace(new RegExp("/","g"),"_")}myPeriodicCheckFunction(){console.log("check ... ")}changeMetadata(){console.log("list of the stream:")}audioTracks(e){console.log("list of the stream:"+e)}ngOnInit(){let e=this;this.startHideTimer(),this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_video=this.arianeService.getVideoId(),this.arianeService.video_change.subscribe(i=>{console.log("Detect videoId change..."+i),e.id_video=i,e.updateDisplay()}),e.updateDisplay()}updateDisplay(){let e=this;e.haveNext=null,e.havePrevious=null,this.videoService.get(this.id_video).then(function(i){if(console.log("get response of video : "+JSON.stringify(i,null,2)),e.error="",e.name=i.name,e.description=i.description,e.episode=i.episode,e.series_id=i.series_id,e.season_id=i.season_id,e.data_id=i.data_id,e.time=i.time,e.generated_name=i.generated_name,e.video_source=-1!=e.data_id?e.httpService.createRESTCall("data/"+e.data_id):"",null==i.covers||null==i.covers||0==i.covers.length)e.cover=null;else{e.cover=e.videoService.getCoverUrl(i.covers[0]);for(let r=0;re.episode&&(null===e.haveNext||e.haveNext.episode>r[o].episode)&&(e.haveNext=r[o]),e.covers.push(e.seriesService.getCoverUrl(r[o])))}).catch(function(r){})),e.mediaIsLoading=!1}).catch(function(i){e.error="Can not get the data",e.name="",e.description="",e.episode=void 0,e.series_id=void 0,e.season_id=void 0,e.data_id=-1,e.time=void 0,e.generated_name="",e.video_source="",e.cover=null,e.series_name=void 0,e.season_name=void 0,e.mediaIsNotFound=!0,e.mediaIsLoading=!1})}onRequirePlay(){this.startHideTimer(),this.playVideo=!0,this.displayVolumeMenu=!1}onRequireStop(){this.startHideTimer(),this.playVideo=!1,this.displayVolumeMenu=!1}onVideoEnded(){this.startHideTimer(),this.playVideo=!1,this.displayVolumeMenu=!1}changeStateToPlay(){this.isPlaying=!0,!0===this.isFullScreen&&this.onFullscreen()}changeStateToPause(){this.isPlaying=!1}convertIndisplayTime(e){let i=parseInt(""+e),r=parseInt(""+i/3600);i-=3600*r;let o=parseInt(""+i/60),s=i-60*o,a="";return 0!=r&&(a+=r+":"),a+=o>=10?o+":":"0"+o+":",a+=s>=10?s:"0"+s,a}changeTimeupdate(e){this.currentTime=this.videoPlayer.currentTime,this.currentTimeDisplay=this.convertIndisplayTime(this.currentTime)}changeDurationchange(e){console.log("duration change "),console.log(" ==> "+this.videoPlayer.duration),this.duration=this.videoPlayer.duration,this.durationDisplay=this.convertIndisplayTime(this.duration)}onPlay(){console.log("play"),this.startHideTimer(),null!=this.videoPlayer?(this.videoPlayer.volume=this.volumeValue/100,this.videoPlayer.play()):console.log("error element: "+this.videoPlayer)}onPause(){console.log("pause"),this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.pause():console.log("error element: "+this.videoPlayer)}onPauseToggle(){console.log("pause toggle ..."),1==this.isPlaying?this.onPause():this.onPlay()}onStop(){console.log("stop"),this.startHideTimer(),null!=this.videoPlayer?(this.videoPlayer.pause(),this.videoPlayer.currentTime=0):console.log("error element: "+this.videoPlayer)}onBefore(){console.log("before"),this.startHideTimer()}onNext(){console.log("next"),this.startHideTimer()}seek(e){console.log("seek "+e.value),this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.currentTime=e.value:console.log("error element: "+this.videoPlayer)}onRewind(){console.log("rewind"),this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.currentTime=this.currentTime-10:console.log("error element: "+this.videoPlayer)}onForward(){console.log("forward"),this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.currentTime=this.currentTime+10:console.log("error element: "+this.videoPlayer)}onMore(){console.log("more"),this.startHideTimer(),null!=this.videoPlayer||console.log("error element: "+this.videoPlayer)}onFullscreen(){console.log("fullscreen"),this.startHideTimer(),null!=this.videoGlobal?this.videoGlobal.requestFullscreen?this.videoGlobal.requestFullscreen():this.videoGlobal.mozRequestFullScreen?this.videoGlobal.mozRequestFullScreen():this.videoGlobal.webkitRequestFullscreen?this.videoGlobal.webkitRequestFullscreen():this.videoGlobal.msRequestFullscreen&&this.videoGlobal.msRequestFullscreen():console.log("error element: "+this.videoGlobal)}onFullscreenExit(){this.onFullscreenExit22(document)}onFullscreenExit22(e){console.log("fullscreen EXIT"),this.startHideTimer(),null!=this.videoGlobal?e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.msExitFullscreen&&e.msExitFullscreen():console.log("error element: "+this.videoGlobal)}onFullscreenChange(){this.onFullscreenChange22(document)}onFullscreenChange22(e){var i=e.fullscreenElement&&null!==e.fullscreenElement||e.webkitFullscreenElement&&null!==e.webkitFullscreenElement||e.mozFullScreenElement&&null!==e.mozFullScreenElement||e.msFullscreenElement&&null!==e.msFullscreenElement;console.log("onFullscreenChange("+i+")"),this.isFullScreen=i}onVolumeMenu(){this.displayVolumeMenu=!this.displayVolumeMenu,this.startHideTimer()}onVolume(e){console.log("onVolume "+e.value),this.startHideTimer(),null!=this.videoPlayer?(this.volumeValue=e.value,this.videoPlayer.volume=this.volumeValue/100,this.videoPlayer.muted=!1):console.log("error element: "+this.videoPlayer)}onVolumeMute(){this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.muted=!0:console.log("error element: "+this.videoPlayer)}onVolumeUnMute(){this.startHideTimer(),null!=this.videoPlayer?this.videoPlayer.muted=!1:console.log("error element: "+this.videoPlayer)}onTakeScreenShoot(){this.startHideTimer(),this.videoCanva.width=this.videoPlayer.videoWidth,this.videoCanva.height=this.videoPlayer.videoHeight,this.videoCanva.getContext("2d").drawImage(this.videoPlayer,0,0,this.videoCanva.width,this.videoCanva.height);let e=this;this.videoCanva.toBlob(function(i){e.videoService.uploadCoverBlob(i,this.id_video)},"image/jpeg",.95)}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(ao),y(ri),y(nr),y(Bt),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-video"]],viewQuery:function(e,i){if(1&e&&(ja(EL,5),ja(TL,5),ja(ML,5)),2&e){let r;Gr(r=Wr())&&(i.mainDivEl=r.first),Gr(r=Wr())&&(i.mainVideoEl=r.first),Gr(r=Wr())&&(i.mainCanvaEl=r.first)}},hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:7,vars:4,consts:[[1,"main-reduce"],["class","fill-all",4,"ngIf"],["class","fill-all bg-black",4,"ngIf"],[2,"overflow","auto"],["canvascreenshoot",""],[1,"fill-all"],[1,"title"],[1,"cover-full"],[1,"cover"],["class","cover-image",4,"ngIf"],["class","cover-no-image",4,"ngIf"],[1,"cover-button"],[3,"click"],[1,"material-icons","big-button"],["class","cover-button-next",4,"ngIf"],["class","cover-button-previous",4,"ngIf"],[1,"clear"],["class","episode",4,"ngIf"],[1,"episode"],[1,"description"],[1,"cover-image"],[3,"src"],[1,"cover-no-image"],[1,"cover-button-next"],[3,"click","auxclick"],[1,"cover-button-previous"],[1,"fill-all","bg-black"],[1,"video",3,"mousemove","fullscreenchange"],["globalVideoElement",""],[1,"video-elem"],["preload","","autoplay","",3,"src","play","pause","timeupdate","durationchange","loadedmetadata","audioTracks","ended"],["videoPlayer",""],["class","controls",4,"ngIf"],["class","video-button",4,"ngIf"],["class","volume",4,"ngIf"],[1,"controls"],[3,"click",4,"ngIf"],[1,"material-icons"],[1,"timer"],["type","range","min","0",1,"slider",3,"value","max","input"],[1,"timer-text"],[1,"unselectable"],[1,"bigPause",3,"click"],["class","material-icons",4,"ngIf"],[1,"bigRewind",3,"click"],[1,"bigForward",3,"click"],[1,"video-button"],[1,"volume"],[1,"volume-menu"],[1,"slidecontainer"],["type","range","min","0","max","100",1,"slider",3,"value","input"]],template:function(e,i){1&e&&(h(0,"div",0),D(1,xL,9,0,"div",1),D(2,IL,11,0,"div",1),D(3,VL,23,10,"div",1),D(4,JL,9,5,"div",2),I(5,"canvas",3,4),p()),2&e&&(m(1),C("ngIf",i.mediaIsNotFound),m(1),C("ngIf",i.mediaIsLoading),m(1),C("ngIf",!i.mediaIsNotFound&&!i.mediaIsLoading&&!i.playVideo),m(1),C("ngIf",i.playVideo))},directives:[We],styles:['.fill-all[_ngcontent-%COMP%]{max-width:80%;height:100%;margin:20px auto;padding:20px;border:0;background-color:#c8c8c880;box-shadow:0 2px 4px #0009}.title[_ngcontent-%COMP%]{width:90%;margin:0 auto;font-size:50px;text-align:center}.description[_ngcontent-%COMP%], .episode[_ngcontent-%COMP%], .generated_name[_ngcontent-%COMP%]{width:80%;margin:0 auto}.cover-full[_ngcontent-%COMP%]{position:relative;width:100%;height:500px;margin:0 auto;overflow:hidden}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{position:relative;width:400px;height:500px;margin:0 auto;overflow:hidden}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] .cover-image[_ngcontent-%COMP%]{position:absolute}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] .cover-no-image[_ngcontent-%COMP%]{position:absolute;width:390px;height:490px;margin:0 auto;border:solid 5px;border-color:#000000b3}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] .cover-button[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background:none;color:#00f000}.cover-full[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] button[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{color:#f00000}.cover-full[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background:none;color:#000}.cover-full[_ngcontent-%COMP%] button[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{color:#f00000}.cover-full[_ngcontent-%COMP%] .cover-button-previous[_ngcontent-%COMP%]{position:absolute;top:50%;left:15%;transform:translate(-50%,-50%)}.cover-full[_ngcontent-%COMP%] .cover-button-next[_ngcontent-%COMP%]{position:absolute;top:50%;left:85%;transform:translate(-50%,-50%)}.video[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:1000;background:#3C3C3C}.video[_ngcontent-%COMP%] .video-elem[_ngcontent-%COMP%]{background-color:#000;position:absolute;width:100%;height:100%;top:0}.video[_ngcontent-%COMP%] .video-button[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px}.video[_ngcontent-%COMP%] .video-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background:none;color:#f00000}.video[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1600}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%]{opacity:.5;width:96%;height:60px;border-radius:10px;position:absolute;bottom:20px;left:2%;background-color:#000;box-shadow:3px 3px 5px #000;transition:1s all;display:flex;font-size:40px}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:40px}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background:none}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigPause[_ngcontent-%COMP%]{position:fixed;top:120px;left:40%;width:20%;height:calc(90% - 240px);border:none;box-shadow:none;cursor:pointer;opacity:95%}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigPause[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:120px;color:green}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigPause[_ngcontent-%COMP%]:focus{outline:none}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigRewind[_ngcontent-%COMP%]{position:fixed;top:120px;left:20%;width:20%;height:calc(90% - 240px);border:none;opacity:95%}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigRewind[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:120px;color:red}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigRewind[_ngcontent-%COMP%]:focus{outline:none}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigForward[_ngcontent-%COMP%]{position:fixed;top:120px;left:60%;width:20%;height:calc(90% - 240px);border:none;opacity:95%}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigForward[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:120px;color:#00f}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .bigForward[_ngcontent-%COMP%]:focus{outline:none}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .slidecontainer[_ngcontent-%COMP%]{line-height:38px;font-size:10px;font-family:monospace;text-shadow:1px 1px 0px black;color:#fff;flex:5;position:relative}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{position:relative;-webkit-appearance:none;width:98%;height:10px;top:5px;border-radius:5px;background:#d3d3d3;outline:none;opacity:.7;transition:opacity .2s;flex:5}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;background:#4CAF50;cursor:pointer}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#4CAF50;cursor:pointer}.video[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] .timer-text[_ngcontent-%COMP%]{position:absolute;top:25px;left:0px;width:100%;line-height:38px;font-size:30px;font-weight:700}.video[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:before{font-family:HeydingsControlsRegular;font-size:30px;position:relative;color:#fff}.video[_ngcontent-%COMP%] .timer[_ngcontent-%COMP%]{line-height:38px;font-size:30px;font-family:monospace;text-shadow:1px 1px 0px black;color:#fff;flex:5;position:relative}.video[_ngcontent-%COMP%] .timer[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%;line-height:38px;font-size:10px;font-family:monospace;text-shadow:1px 1px 0px black;color:#fff;flex:5;position:relative}.video[_ngcontent-%COMP%] .timer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;z-index:3;left:19px}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%]{font-size:40px;opacity:.5;width:300px;height:60px;border-radius:10px;position:absolute;bottom:90px;right:2%;background-color:#000;box-shadow:3px 3px 5px #000;transition:1s all;display:flex}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle;color:#fff;font-size:40px}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%]:after, .video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%]:before{bottom:100%;right:13px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%]:after{border-color:#88b7d500;border-bottom-color:#263238;border-width:15px;margin-left:-15px}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;background:none;border-radius:50%}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] .slidecontainer[_ngcontent-%COMP%]{line-height:38px;font-size:10px;font-family:monospace;text-shadow:1px 1px 0px black;color:#fff;flex:5;position:relative}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{position:relative;-webkit-appearance:none;width:98%;height:10px;top:15px;border-radius:5px;background:#d3d3d3;outline:none;opacity:.7;transition:opacity .2s;flex:5}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;background:#4CAF50;cursor:pointer}.video[_ngcontent-%COMP%] .volume-menu[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#4CAF50;cursor:pointer}.big-button[_ngcontent-%COMP%]{font-size:100px}.item[_ngcontent-%COMP%]{font-size:20px;height:21%;width:23%;margin:1%;padding:0;overflow:hidden;box-shadow:0 2px 4px #0009;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:0;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;transition-duration:.4s;float:left;display:block}.item[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}.item[_ngcontent-%COMP%]:hover{background-color:red}.item[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle}.item[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.item-video[_ngcontent-%COMP%]:hover{background-color:#0f0}'],data:{animation:[rn]}}),n})(),WS=(()=>{class n{constructor(e){this.http=e,this.displayReturn=!1}createRESTCall(e,i){let s;void 0===i&&(i=[]),s="http://192.168.1.156/karauth/api/"+e;let a=!0;for(let l=0;l{1==this.displayReturn&&console.log("call GET "+o+" params="+JSON.stringify(r,null,2));let u=this.http.get(o,s),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),a(d?d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d}:{status:200,data:""})},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}post(e,i,r){let o=this.createRESTCall(e,{});const s={headers:new nt(i)};return new Promise((a,l)=>{1==this.displayReturn&&console.log("call POST "+o+" data="+JSON.stringify(r,null,2));let u=this.http.post(o,r,s),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),a(d?d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d}:{status:200,data:""})},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}put(e,i,r){let o=this.createRESTCall(e,{});const s={headers:new nt(i)};return new Promise((a,l)=>{1==this.displayReturn&&console.log("call POST "+o+" data="+JSON.stringify(r,null,2));let u=this.http.put(o,r,s),c=this;u.subscribe(d=>{1==c.displayReturn&&console.log("!! data "+JSON.stringify(d,null,2)),a(d?d.httpCode?{status:d.httpCode,data:d}:{status:200,data:d}:{status:200,data:""})},d=>{1==c.displayReturn&&(console.log("an error occured status: "+d.status),console.log("answer: "+JSON.stringify(d,null,2))),l({status:d.status,data:d.error})})})}delete(e,i){let r=this.createRESTCall(e,{});const o={headers:new nt(i)};return new Promise((s,a)=>{1==this.displayReturn&&console.log("call POST "+r);let l=this.http.delete(r,o),u=this;l.subscribe(c=>{1==u.displayReturn&&console.log("!! data "+JSON.stringify(c,null,2)),s(c?c.httpCode?{status:c.httpCode,data:c}:{status:200,data:c}:{status:200,data:""})},c=>{1==u.displayReturn&&(console.log("an error occured status: "+c.status),console.log("answer: "+JSON.stringify(c,null,2))),a({status:c.status,data:c.error})})})}uploadFileMultipart(e,i,r){console.log("Upload file to "+e);let o=e;null!=i&&(o+="/"+i);let s=new FormData;s.append("upload",r);let a=new Headers;console.log("upload filename : "+r.name);let l=r.name.split(".").pop();if("jpg"==l)a.append("Content-Type","image/jpeg");else{if("png"!=l)return null;a.append("Content-Type","image/png")}a.append("filename",r.name);const u={headers:a,reportProgress:!0};return new Promise((c,d)=>{this.post(o,u,s).then(function(f){console.log("URL: "+o+"\nRespond("+f.status+"): "+JSON.stringify(f.data,null,2)),200!=f.status?d("An error occured"):c(f.data)},function(f){d(void 0===f.data?"return ERROR undefined":"return ERROR "+JSON.stringify(f.data,null,2))})})}uploadFileBase64(e,i,r){console.log("Upload file to "+e);let o=e;null!=i&&(o+="/"+i);let s=this,a=new FileReader;return a.readAsArrayBuffer(r),new Promise((l,u)=>{a.onload=()=>{let c={};console.log("upload filename : "+r.name);let d=r.name.split(".").pop();if("jpg"==d)c["Content-Type"]="image/jpeg",c["mime-type"]="image/jpeg";else if("jpeg"==d)c["Content-Type"]="image/jpeg",c["mime-type"]="image/jpeg";else if("webp"==d)c["Content-Type"]="image/webp",c["mime-type"]="image/webp";else{if("png"!=d)return null;c["Content-Type"]="image/png",c["mime-type"]="image/png"}c.filename=r.name,s.post(o,c,a.result).then(function(f){console.log("URL: "+o+"\nRespond("+f.status+"): "+JSON.stringify(f.data,null,2)),200!=f.status?u("An error occured"):l(f.data)},function(f){u(void 0===f.data?"return ERROR undefined":"return ERROR ...")})}})}get_specific(e,i=null,r="",o=[]){console.log("Get All data from "+e);const s={"Content-Type":"application/json"};let a=e;if(null!=i&&(a+="/"+i),""!=r&&(a+="/"+r),0!=o.length){let l="";for(let u=0;u{this.get(a,s,{}).then(function(c){200!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}delete_specific(e,i,r=""){const o={"Content-Type":"application/json"};let s=e;return null!=i&&(s+="/"+i),""!=r&&(s+="/"+r),new Promise((a,l)=>{this.delete(s,o).then(function(u){200!=u.status&&201!=u.status?l("An error occured"):a(u.data)},function(u){l(void 0===u.data?"return ERROR undefined":"return ERROR "+JSON.stringify(u.data,null,2))})})}put_specific(e,i,r,o=""){const s={"Content-Type":"application/json"};let a=e;return null!=i&&(a+="/"+i),""!=o&&(a+="/"+o),new Promise((l,u)=>{this.put(a,s,r).then(function(c){200!=c.status&&201!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}post_specific(e,i,r,o=""){const s={"Content-Type":"application/json"};let a=e;return null!=i&&(a+="/"+i),""!=o&&(a+="/"+o),new Promise((l,u)=>{this.post(a,s,r).then(function(c){200!=c.status&&201!=c.status?u("An error occured"):l(c.data)},function(c){u(void 0===c.data?"return ERROR undefined":"return ERROR "+JSON.stringify(c.data,null,2))})})}}return n.\u0275fac=function(e){return new(e||n)(P(yh))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),lu=(()=>{class n{constructor(e,i){this.httpOAuth=e,this.http=i,this.identificationVersion=1,console.log("Start UserService")}login(e,i){return this.loginSha(e,SHA512(i))}loginSha(e,i){let r=this;return new Promise((o,s)=>{r.getTocken(e,i).then(function(a){console.log("Get token ..."),r.loginWithToken(a.userId,a.token).then(function(l){l.session={userId:a.userId,token:a.token,endValidityTime:a.endValidityTime},o(l)},function(l){s("sdfsdfsdf")})},function(a){console.log("User NOT created"),s("rrfrrrrr")})})}getTocken(e,i){console.log("AuthService.getToken ... '"+e+"':'"+i+"'");let o,r=dateFormat(new Date,"m-d-Y h:i:s ms");1==this.identificationVersion?o={login:e,method:"v1",time:r,password:SHA512("login='"+e+"';pass='"+i+"';date='"+r+"'")}:console.log("AuthService.login ... Wrong method ...");const s={"Content-Type":"application/json"};return console.log("call users/connect data="+JSON.stringify(o,null,2)),new Promise((a,l)=>{this.httpOAuth.post("users/get_token",s,o).then(function(u){if(console.log("response status="+u.status),u.status>=200&&u.status<=299)return console.log("Data token: id="+u.data.id),console.log("Data token: userId="+u.data.userId),console.log("Data token: token="+u.data.token),console.log("Data token: createTime="+u.data.createTime),console.log("Data token: endValidityTime="+u.data.endValidityTime),void a(u.data);l("An error occured")},function(u){l(void 0===u.data?"return ERROR undefined":"return ERROR "+JSON.stringify(u.data,null,2))})})}loginWithToken(e,i){console.log("AuthService.loginWithToken ... '"+e+"':'"+i+"'");let r={authorization:"Yota "+e+":"+i};return new Promise((o,s)=>{this.http.get("users/me",r,{}).then(function(a){200!=a.status?s("An error occured"):o(a.data)},function(a){s(void 0===a.data?"return ERROR undefined":"return ERROR "+JSON.stringify(a.data,null,2))})})}create(e,i,r){return this.createSha(e,i,SHA512(r))}createSha(e,i,r){let o={method:"v?",login:e,email:i,password:r};const s={"Content-Type":"application/json"};return console.log("call users data="+JSON.stringify(o,null,2)),1==this.identificationVersion&&(o.methode="v1"),new Promise((a,l)=>{this.httpOAuth.post("users",s,o).then(function(u){200==u.status&&a(u.data),l("An error occured")},function(u){l(void 0===u.data?"return ERROR undefined":"return ERROR "+JSON.stringify(u.data,null,2))})})}isAuthenticated(){return!1}isAuthorized(e){return!1}checkLogin(e){let i={login:e};return new Promise((r,o)=>{this.httpOAuth.get("users/check_login",{},i).then(s=>{r("valid")},s=>{o(s.status)})})}checkEMail(e){let i={email:e};return new Promise((r,o)=>{this.httpOAuth.get("users/check_email",{},i).then(s=>{r("valid")},s=>{o(s.status)})})}}return n.\u0275fac=function(e){return new(e||n)(P(WS),P(Bt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{constructor(){}set(e,i,r){""!=this.get(e)&&(document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/");let o=new Date;o.setTime(o.getTime()+24*r*60*60*1e3);let s="expires="+o.toUTCString();document.cookie=e+"="+i+";"+s+";path=/"}remove(e){this.set(e,"",0)}get(e){let i=e+"=",r=document.cookie.split(";");for(let o=0;o-\xa3\u20ac]+$").test(n)},e3=(()=>{class n{constructor(e,i,r,o,s,a,l){this.router=e,this.route=i,this.locate=r,this.cookiesService=o,this.userService=s,this.sessionService=a,this.arianeService=l,this.loginOK=!1,this.loginHelp="",this.login="",this.passOK=!1,this.passHelp="",this.password="",this.loginButtonDisabled=!0,this.error="",this.loginType="Username/E-mail",this.rememberMe=!0}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap)}updateButtonVisibility(){this.loginButtonDisabled=1!=this.loginOK||1!=this.passOK,this.error=""}checkLogin(e){return this.login=e,null==this.login?(this.loginOK=!1,this.loginHelp="",void this.updateButtonVisibility()):this.login.length<6?(this.loginOK=!1,this.loginHelp="Need 6 characters",this.loginType="Username/E-mail",void this.updateButtonVisibility()):(1==KS(this.login)?(this.loginOK=!0,this.loginHelp="",this.loginType="Username"):1==QS(this.login)?(this.loginOK=!0,this.loginHelp="",this.loginType="E-mail"):(this.loginOK=!1,this.loginHelp='Not valid: characters, numbers, "_-." and email format: you@example.com'),void this.updateButtonVisibility())}checkPassword(e){if(this.password=e,null==this.password)return this.passOK=!1,this.passHelp="",void this.updateButtonVisibility();this.password.length<6?(this.passOK=!1,this.passHelp="Need 6 characters"):1==JS(this.password)?(this.passOK=!0,this.passHelp=""):(this.passOK=!1,this.passHelp='Not valid: characters, numbers and "_-:;.,?!*+=}{([|)]% @&~#/<>"'),this.updateButtonVisibility()}onLogin(){this.sessionService.destroy();let e=this;this.userService.login(this.login,this.password).then(function(i){e.error="Login ...",e.sessionService.create(i.sessionId,i.login,i.email,i.role,i.avatar),1==e.rememberMe&&(e.cookiesService.set("yota-login",i.login,120),e.cookiesService.set("yota-password",SHA512(e.password),60)),e.router.navigate(["home"])}).catch(function(i){e.error="Wrong e-mail/login or password"})}onCancel(){console.log("onCancel ... '"+this.login+"':'"+this.password+"'"),this.locate.back()}}return n.\u0275fac=function(e){return new(e||n)(y(le),y(He),y(Tt),y(Wh),y(lu),y(Os),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-login"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:28,vars:7,consts:[[1,"full"],[1,"color-background-vignette","container-global"],[1,"imgContainer"],["src","assets/images/avatar_generic.svg","alt","Avatar",1,"avatar"],[1,"container"],["for","login_field"],["id","username","name","username","type","text","required","","placeholder","Enter Username/e-mail",3,"value","input"],["class","error color-shadow-black",4,"ngIf"],["for","password"],["href","#",1,"forgot"],["type","password","id","password","name","password","placeholder","Enter Password","required","",3,"value","input"],[1,"container-checkbox"],["type","checkbox","ng-model","rememberMe"],[1,"checkmark"],[1,"button","cancel","color-button-cancel","color-shadow-black",3,"click"],["id","login-button","type","submit",1,"button","login","color-button-validate","color-shadow-black",3,"disabled","click"],[1,"error","color-shadow-black"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),p(),h(4,"div",4)(5,"label",5)(6,"b"),_(7),p()(),h(8,"input",6),M("input",function(o){return i.checkLogin(o.target.value)}),p(),D(9,YL,2,1,"div",7),h(10,"label",8)(11,"b"),_(12,"Password"),p()(),h(13,"a",9),_(14,"Forgot password?"),p(),h(15,"input",10),M("input",function(o){return i.checkPassword(o.target.value)}),p(),D(16,XL,2,1,"div",7),h(17,"label",11),_(18," Remember me "),I(19,"input",12)(20,"span",13),p()(),h(21,"div",4)(22,"button",14),M("click",function(){return i.onCancel()}),_(23,"Cancel"),p(),h(24,"button",15),M("click",function(){return i.onLogin()}),_(25,"Login"),p()(),h(26,"div",4),_(27),p()()()),2&e&&(m(7),De(i.loginType),m(1),C("value",i.login),m(1),C("ngIf",i.loginHelp),m(6),C("value",i.password),m(1),C("ngIf",i.passHelp),m(8),C("disabled",i.loginButtonDisabled),m(3),Q(" ",i.error," "))},directives:[We],styles:['.full[_ngcontent-%COMP%]{width:100%;height:100%;right:0;margin:0;padding:0;border:0;float:right;display:block}input[type=text][_ngcontent-%COMP%], input[type=password][_ngcontent-%COMP%]{width:100%;padding:12px 20px;margin:8px 0;display:inline-block;border:1px solid #ccc;box-sizing:border-box}.login[_ngcontent-%COMP%], .cancel[_ngcontent-%COMP%]{margin:2%;width:45%}.imgContainer[_ngcontent-%COMP%]{text-align:center;margin:15px 0 0}img.avatar[_ngcontent-%COMP%]{width:150px;border-radius:50%}.container-global[_ngcontent-%COMP%]{padding:16px 32px}.container[_ngcontent-%COMP%]{padding:16px 0 0}span.psw[_ngcontent-%COMP%]{float:right;padding-top:16px}.forgot[_ngcontent-%COMP%]{color:#00b;font-size:14px;float:right;buttum:0;line-height:24px}.error[_ngcontent-%COMP%]{background-color:#f44336;position:absolute;z-index:10;display:block;max-width:450px;padding:5px 8px;margin:2px 0 0;font-size:16px;font-weight:400;border-style:solid;border-width:0px;box-sizing:border-box}.error[_ngcontent-%COMP%]:after, .error[_ngcontent-%COMP%]:before{bottom:100%;left:25px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.error[_ngcontent-%COMP%]:after{border-bottom-color:#f44336;border-width:10px;margin-left:-10px}.container-global[_ngcontent-%COMP%]{position:relative;max-width:400px;padding:16px 32px;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 20px #000000e6}'],data:{animation:[rn]}}),n})();function t3(n,t){if(1&n&&(h(0,"div",22),_(1),p()),2&n){const e=b();m(1),De(e.loginHelp)}}function n3(n,t){if(1&n&&(h(0,"div",22),_(1),p()),2&n){const e=b();m(1),De(e.emailHelp)}}function i3(n,t){if(1&n&&(h(0,"div",22),_(1),p()),2&n){const e=b();m(1),De(e.passHelp)}}let r3=(()=>{class n{constructor(e,i,r,o){this.userService=e,this.router=i,this.route=r,this.arianeService=o,this.signUp_iconWrong="icon-right-not-validate",this.signUp_iconWait="icon-right-load",this.signUp_iconRight="icon-right-validate",this.login="",this.loginOK=!1,this.loginHelp="",this.loginIcon="",this.email="",this.emailOK=!1,this.emailHelp="",this.emailIcon="",this.password="",this.passOK=!1,this.passHelp="",this.passIcon="",this.signUpButtonDisabled=!0,this.error="",this.rememberMe=!0}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap)}updateButtonVisibility(){this.signUpButtonDisabled=1!=this.loginOK||1!=this.passOK||1!=this.emailOK,this.error=""}checkLogin(e){if(this.login=e,null==this.login||0==this.login.length)return this.loginOK=!1,this.loginIcon="",this.loginHelp="",void this.updateButtonVisibility();if(this.login.length<6)return this.loginOK=!1,this.loginHelp="Need 6 characters",this.loginIcon="",void this.updateButtonVisibility();if(1==KS(this.login)){this.loginOK=!1,this.loginIcon=this.signUp_iconWait;let i=this;this.userService.checkLogin(this.login).then(function(){e==i.login&&(i.loginOK=!1,i.loginHelp="Login already used ...",i.loginIcon=i.signUp_iconWrong,i.updateButtonVisibility())},function(r){if(console.log("1 "+i),e==i.login){if(404==r)return i.loginOK=!0,i.loginHelp="",i.loginIcon=i.signUp_iconRight,void i.updateButtonVisibility();console.log("Status "+r),i.loginOK=!1,i.loginHelp="Login already used ...",i.loginIcon=i.signUp_iconWrong,i.updateButtonVisibility()}})}else this.loginOK=!1,this.loginHelp='Not valid: characters, numbers and "_-."';this.updateButtonVisibility()}checkEmail(e){if(this.email=e,null==this.email||0==this.email.length)return this.emailOK=!1,this.updateButtonVisibility(),this.emailIcon="",void(this.emailHelp="");if(this.email.length<6)return this.emailOK=!1,this.emailHelp="Need 6 characters",this.updateButtonVisibility(),void(this.passIcon="");if(1==QS(this.email)){this.emailOK=!1,this.emailHelp="",this.emailIcon=this.signUp_iconWait;let i=this;this.userService.checkEMail(this.email).then(function(){e==i.email&&(i.emailOK=!1,i.emailHelp="email already used ...",i.emailIcon=i.signUp_iconWrong,i.updateButtonVisibility())},function(r){if(e==i.email){if(404==r)return i.emailOK=!0,i.emailHelp="",i.emailIcon=i.signUp_iconRight,void i.updateButtonVisibility();console.log("Status "+r),i.emailOK=!1,i.emailHelp="email already used ...",i.emailIcon=i.signUp_iconWrong,i.updateButtonVisibility()}})}else this.emailOK=!1,this.emailHelp='Not valid: characters, numbers, "_-." and email format: you@example.com';this.updateButtonVisibility()}checkPassword(e){if(this.password=e,console.log("ooooooooooooooo "+this.password),null==this.password)return this.passOK=!1,this.passHelp="",void this.updateButtonVisibility();this.password.length<6?(this.passOK=!1,this.passHelp="Need 6 characters"):1==JS(this.password)?(this.passOK=!0,this.passHelp=""):(this.passOK=!1,this.passHelp='Not valid: characters, numbers and "_-:;.,?!*+=}{([|)]% @&~#/<>"'),this.updateButtonVisibility()}onSignUp(){if(console.log("Validate ... "),1==this.signUpButtonDisabled)return void console.log("Not permited action ... ==> control does not validate this action ...");let e=this;this.signUpButtonDisabled=!0,this.userService.create(this.login,this.email,this.password).then(function(i){console.log("User created"),e.router.navigate(["login"])},function(i){console.log("User NOT created")})}onCancel(){console.log("onCancel ... '"+this.login+"':'"+this.password+"'")}}return n.\u0275fac=function(e){return new(e||n)(y(lu),y(le),y(He),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-sign-up"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:50,vars:17,consts:[[1,"left"],[1,"global-help"],[1,"comment"],[1,"unselectable"],[1,"share"],[1,"time"],[1,"right"],[1,"modal-content","color-background-vignette","container-global"],[1,"logo"],[1,"container"],["for","login_field"],["id","username","name","username","type","text","required","","placeholder","Pick a Username",3,"value","input"],["class","error color-shadow-black",4,"ngIf"],["id","email","name","e-mail","type","text","required","","placeholder","you@example.com",3,"value","input"],["for","password"],["type","password","id","password","name","password","placeholder","Enter Password","required","",3,"value","input"],["id","onSignUp-button","type","submit",1,"button","fill-x","color-button-validate","color-shadow-black",3,"disabled","click"],[1,"material-icons"],[1,"container","commmon-policy"],["href","https://help.karideo.com/terms","target","_blank",1,""],["href","https://help.karideo.com/privacy","target","_blank",1,""],["href","#",1,"forgot"],[1,"error","color-shadow-black"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),_(4,"Rate and comment your medias"),p()(),h(5,"div",4)(6,"label",3),_(7,"Shared personal media at home"),p()(),h(8,"div",5)(9,"label"),_(10,"Keep last view position"),p()()()(),h(11,"div",6)(12,"div",7),I(13,"div",8),h(14,"div",9)(15,"label",10)(16,"b"),_(17,"Login"),p()(),h(18,"input",11),M("input",function(o){return i.checkLogin(o.target.value)}),p(),D(19,t3,2,1,"div",12),h(20,"label",10)(21,"b"),_(22,"E-mail"),p()(),h(23,"input",13),M("input",function(o){return i.checkEmail(o.target.value)}),p(),D(24,n3,2,1,"div",12),h(25,"label",14)(26,"b"),_(27,"Password"),p()(),h(28,"input",15),M("input",function(o){return i.checkPassword(o.target.value)}),p(),D(29,i3,2,1,"div",12),p(),h(30,"div",9)(31,"button",16),M("click",function(){return i.onSignUp()}),h(32,"i",17),_(33,"mode_edit"),p(),_(34," Sign up for Karideo"),p()(),h(35,"div",18),_(36,' By clicking "Sign up for Karideo", you agree to our '),h(37,"a",19),_(38,"terms of service"),p(),_(39," and "),h(40,"a",20),_(41,"privacy policy"),p(),_(42,"."),I(43,"br"),_(44," Well occasionally send you account related emails. "),p(),h(45,"div",9)(46,"a",21),_(47,"Forgot password?"),p()(),h(48,"div",9),_(49),p()()()),2&e&&(m(18),Oa(i.loginIcon),C("value",i.login),m(1),C("ngIf",i.loginHelp),m(4),Oa(i.emailIcon),C("value",i.email),m(1),C("ngIf",i.emailHelp),m(4),Oa(i.passIcon),C("value",i.password),m(1),C("ngIf",i.passHelp),m(2),C("disabled",i.signUpButtonDisabled),m(18),Q(" ",i.error," "))},directives:[We],styles:['.right[_ngcontent-%COMP%]{width:50%;height:100%;right:0;margin:0;padding:0;border:0;float:right;display:block}.left[_ngcontent-%COMP%]{width:50%;height:100%;left:0;margin:0;padding:0;border:0;float:left;display:block;color:#fff}.left[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]{background-image:url(/karideo/comments.ba69265fdd4c60ec.svg);background-repeat:no-repeat;background-size:45px;background-position:0% 50%;padding:0 0 0 58px;margin:17px 0;text-shadow:0px 0px 4px #2b3137}.left[_ngcontent-%COMP%] .share[_ngcontent-%COMP%]{background-image:url(/karideo/share.14a8a7ffe5d41e0a.svg);background-repeat:no-repeat;background-size:45px;background-position:0% 50%;padding:0 0 0 58px;margin:17px 0;text-shadow:0px 0px 4px #2b3137}.left[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{background-image:url(/karideo/time.aab7f1976479dd88.svg);background-repeat:no-repeat;background-size:45px;background-position:0% 50%;padding:0 0 0 58px;margin:17px 0;text-shadow:0px 0px 4px #2b3137}input[type=text][_ngcontent-%COMP%], input[type=password][_ngcontent-%COMP%]{width:100%;padding:12px 35px 12px 15px;margin:8px 0;display:inline-block;border:1px solid #ccc;box-sizing:border-box}.global-help[_ngcontent-%COMP%]{position:relative;max-width:500px;padding:16px 32px;top:50%;left:50%;transform:translate(-50%,-50%);font-size:30px;font-weight:600;text-align:left;line-height:200%}.container-global[_ngcontent-%COMP%]{position:relative;max-width:400px;padding:16px 32px;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 20px #000000e6}.container[_ngcontent-%COMP%]{padding:16px 0 0}span.psw[_ngcontent-%COMP%]{float:right;padding-top:16px}.help[_ngcontent-%COMP%]{color:#e44;font-size:14px}.forgot[_ngcontent-%COMP%]{color:#00b;font-size:14px;float:right;buttum:0;line-height:24px}.commmon-policy[_ngcontent-%COMP%]{font-size:13px;font-weight:300;text-align:center}.icon-right-load[_ngcontent-%COMP%]{background:white url(/karideo/load.437203f1f028f93e.svg) right no-repeat;background-size:35px;padding-right:17px}.icon-right-validate[_ngcontent-%COMP%]{background:white url(/karideo/validate.ed930e03cefe36d9.svg) right no-repeat;background-size:35px;padding-right:17px}.icon-right-not-validate[_ngcontent-%COMP%]{background:white url(/karideo/validate-not.3776f046a97cbd9e.svg) right no-repeat;background-size:35px;padding-right:17px}.error[_ngcontent-%COMP%]{background-color:#f44336;position:absolute;z-index:10;display:block;max-width:450px;padding:5px 8px;margin:2px 0 0;font-size:16px;font-weight:400;border-style:solid;border-width:0px;box-sizing:border-box}.error[_ngcontent-%COMP%]:after, .error[_ngcontent-%COMP%]:before{bottom:100%;left:25px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.error[_ngcontent-%COMP%]:after{border-bottom-color:#f44336;border-width:10px;margin-left:-10px}'],data:{animation:[rn]}}),n})(),o3=(()=>{class n{constructor(e,i){this.route=e,this.arianeService=i}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap)}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-settings"]],decls:2,vars:0,template:function(e,i){1&e&&(h(0,"p"),_(1," settings works!\n"),p())},styles:[""]}),n})(),ks=(()=>{class n{constructor(e){this.http=e,this.identificationVersion=1,this.bdd=null,this.serviceName="data",console.log("Start TypeService")}getData(){return this.http.get_specific(this.serviceName)}get(e){return this.http.get_specific(this.serviceName,e)}sendFile(e){return this.http.uploadFileBase64(this.serviceName,null,e)}uploadFile(e,i=null){return this.http.uploadMultipart(this.serviceName+"/upload/",e,i)}}return n.\u0275fac=function(e){return new(e||n)(P(Bt))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),oi=(()=>{class n{constructor(){this.popins=[],console.log("Start PopIn Service")}add(e){this.popins.push(e)}remove(e){for(let i=0;i{class n{constructor(e){this.popInService=e,this.popTitle="No title",this.closeTopRight="false",this.popSize="medium",this.callback=new de,this.closeTitle=null,this.validateTitle=null,this.saveTitle=null,this.otherTitle=null,this.displayPopIn=!1}ngOnInit(){this.id?this.popInService.add(this):console.error("popin must have an id")}ngOnDestroy(){this.popInService.remove(this.id)}open(){this.displayPopIn=!0}close(){this.displayPopIn=!1}onCloseTop(){this.callback.emit(["close-top"])}onValidate(){this.callback.emit(["validate"])}onClose(){this.callback.emit(["close"])}onOther(){this.callback.emit(["other"])}onSave(){this.callback.emit(["save"])}}return n.\u0275fac=function(e){return new(e||n)(y(oi))},n.\u0275cmp=ye({type:n,selectors:[["app-popin"]],inputs:{id:"id",popTitle:"popTitle",closeTopRight:"closeTopRight",popSize:"popSize",closeTitle:"closeTitle",validateTitle:"validateTitle",saveTitle:"saveTitle",otherTitle:"otherTitle"},outputs:{callback:"callback"},ngContentSelectors:f3,decls:1,vars:1,consts:[["class","popin",4,"ngIf"],[1,"popin"],[1,"header"],[1,"unselectable"],["class","close",4,"ngIf"],[1,"body"],[1,"footer"],["class","action",4,"ngIf"],[1,"background"],[1,"close"],["type","submit",1,"button-close","color-shadow-black",3,"click"],[1,"material-icons"],[1,"action"],["type","submit",1,"button","color-shadow-black",3,"click"]],template:function(e,i){1&e&&(function I_(n){const t=A()[16][6];if(!t.projection){const i=t.projection=xo(n?n.length:1,null),r=i.slice();let o=t.child;for(;null!==o;){const s=n?wM(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}(),D(0,d3,14,9,"div",0)),2&e&&C("ngIf",i.displayPopIn)},directives:[We],styles:[".popin[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:800}.popin[_ngcontent-%COMP%] .small[_ngcontent-%COMP%]{top:15%;right:35%;bottom:15%;left:35%}.popin[_ngcontent-%COMP%] .medium[_ngcontent-%COMP%]{top:15%;right:25%;bottom:15%;left:25%}.popin[_ngcontent-%COMP%] .big[_ngcontent-%COMP%]{top:15%;right:15%;bottom:15%;left:15%}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{position:fixed;display:block;z-index:1000;overflow:auto}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:10px;background:#88f;height:40px;line-height:36px}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{display:block;float:right}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding:20px;background:#fff}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{padding:10px;background:#888;height:40px;line-height:36px}.popin[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{padding:0 10px;display:block;float:right}.popin[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.85;z-index:900}"]}),n})();function h3(n,t){if(1&n&&(h(0,"div",5)(1,"div",6),_(2),p()()),2&n){const e=b();m(1),sv("width:",e.progress,"%"),m(1),Q("\xa0\xa0\xa0",e.progress,"%")}}function p3(n,t){if(1&n&&(h(0,"div")(1,"label",2),_(2,"Upload:"),p(),h(3,"label",7),_(4),p(),I(5,"br"),h(6,"label",2),_(7,"Size:"),p(),h(8,"label",7),_(9),p()()),2&n){const e=b();m(4),De(e.uploadDisplay),m(5),De(e.sizeDisplay)}}function g3(n,t){1&n&&(h(0,"div")(1,"label",2),_(2,"Upload done ... waiting server answer"),p()())}function m3(n,t){if(1&n&&(h(0,"div")(1,"label",2)(2,"b"),_(3,"Get an error From the server:"),p()(),I(4,"br"),h(5,"label",2),_(6),p()()),2&n){const e=b();m(6),De(e.error)}}function _3(n,t){if(1&n&&(h(0,"div")(1,"label",2)(2,"b"),_(3,"Upload finished:"),p()(),I(4,"br"),h(5,"label",2),_(6),p()()),2&n){const e=b();m(6),De(e.result)}}let cu=(()=>{class n{constructor(e,i){this.router=e,this.popInService=i,this.mediaTitle="",this.mediaUploaded=0,this.mediaSize=999999999999,this.result=null,this.error=null,this.closeButtonTitle="Abort",this.otherButtonTitle=null,this.validateButtonTitle=null,this.uploadDisplay="",this.sizeDisplay="",this.progress=0}OnDestroy(){}ngOnInit(){}eventPopUp(e){console.log("GET event: "+e),this.popInService.close("popin-upload-progress")}updateNeedSend(){}limit3(e){return e>=1e3?""+e:e>=100?" "+e:e>=10?" "+e:" "+e}convertInHuman(e){let i=e,r=Math.trunc(i/1099511627776);i-=1024*r*1024*1024*1024;let o=Math.trunc(i/1073741824);i-=1024*o*1024*1024;let s=Math.trunc(i/1048576);i-=1024*s*1024;let a=Math.trunc(i/1024);i-=1024*a;let l="";return(0!=l.length||0!=r)&&(l+=" "+this.limit3(r)+"T"),(0!=l.length||0!=o)&&(l+=" "+this.limit3(o)+"G"),(0!=l.length||0!=s)&&(l+=" "+this.limit3(s)+"M"),(0!=l.length||0!=a)&&(l+=" "+this.limit3(a)+"k"),(0!=l.length||0!=i)&&(l+=" "+this.limit3(i)+"B"),l}ngOnChanges(e){this.progress=Math.trunc(100*this.mediaUploaded/this.mediaSize),this.uploadDisplay=this.convertInHuman(this.mediaUploaded),this.sizeDisplay=this.convertInHuman(this.mediaSize),null==this.error&&null==this.result?(this.closeButtonTitle="Abort",this.otherButtonTitle=null,this.validateButtonTitle=null):null==this.result?(this.closeButtonTitle=null,this.otherButtonTitle="Close",this.validateButtonTitle=null):(this.closeButtonTitle=null,this.otherButtonTitle=null,this.validateButtonTitle="Ok")}}return n.\u0275fac=function(e){return new(e||n)(y(le),y(oi))},n.\u0275cmp=ye({type:n,selectors:[["upload-progress"]],inputs:{mediaTitle:"mediaTitle",mediaUploaded:"mediaUploaded",mediaSize:"mediaSize",result:"result",error:"error"},features:[Pt],decls:11,vars:9,consts:[["id","popin-upload-progress","popSize","medium","popTitle","Upload Media File",3,"closeTitle","otherTitle","validateTitle","callback"],[1,"expand"],[1,"unselectable"],["class","progress-back",4,"ngIf"],[4,"ngIf"],[1,"progress-back"],[1,"progress-bar"],[2,"text-align","right"]],template:function(e,i){1&e&&(h(0,"div")(1,"app-popin",0),M("callback",function(o){return i.eventPopUp(o[0])}),h(2,"p",1)(3,"label",2)(4,"b"),_(5),p()()(),D(6,h3,3,4,"div",3),D(7,p3,10,2,"div",4),D(8,g3,3,0,"div",4),D(9,m3,7,1,"div",4),D(10,_3,7,1,"div",4),p()()),2&e&&(m(1),C("closeTitle",i.closeButtonTitle)("otherTitle",i.otherButtonTitle)("validateTitle",i.validateButtonTitle),m(4),De(i.mediaTitle),m(1),C("ngIf",100!=i.progress),m(1),C("ngIf",100!=i.progress),m(1),C("ngIf",100==i.progress&&null==i.error&&null==i.result),m(1),C("ngIf",null!=i.error),m(1),C("ngIf",null!=i.result))},directives:[uu,We],styles:[".expand[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.progress-back[_ngcontent-%COMP%]{color:#000!important;background-color:#f1f1f1!important;border-radius:3px}.progress-bar[_ngcontent-%COMP%]{color:#000!important;background-color:#4caf50!important;border-radius:3px}"]}),n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class Rs{constructor(){this.labelMediaTitle="",this.mediaSendSize=0,this.mediaSize=99999999999999,this.result=null,this.error=null}clear(){this.labelMediaTitle="",this.mediaSendSize=0,this.mediaSize=99999999999999,this.result=null,this.error=null}}function v3(n,t){if(1&n&&(h(0,"div",7),_(1),p()),2&n){const e=b();m(1),Q(" ",e.mediaFile.name," ")}}function y3(n,t){1&n&&(h(0,"div",1),_(1," Meta-data: "),p())}function C3(n,t){if(1&n&&(h(0,"option",26),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function b3(n,t){if(1&n&&(h(0,"option",26),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function S3(n,t){if(1&n){const e=U();h(0,"div",3)(1,"div",4)(2,"div",5),_(3," Type: "),p(),h(4,"div",13)(5,"select",14),M("ngModelChange",function(r){return x(e),b().onChangeType(r)}),D(6,C3,2,2,"option",15),p()()(),h(7,"div",4)(8,"div",5),_(9," Universe: "),p(),h(10,"div",6)(11,"input",16),M("input",function(r){return x(e),b().onUniverse(r.target.value)}),p()()(),h(12,"div",4)(13,"div",5),_(14," Series: "),p(),h(15,"div",6)(16,"input",17),M("input",function(r){return x(e),b().onSeries(r.target.value)}),p()()(),h(17,"div",4)(18,"div",18),_(19," ==> "),p(),h(20,"div",19)(21,"select",14),M("ngModelChange",function(r){return x(e),b().onChangeSeries(r)}),D(22,b3,2,2,"option",15),p()()(),h(23,"div",4)(24,"div",5),_(25," Season: "),p(),h(26,"div",6)(27,"input",20),M("input",function(r){return x(e),b().onSeason(r.target.value)}),p()()(),h(28,"div",4)(29,"div",5),_(30," Episode: "),p(),h(31,"div",6)(32,"input",21),M("input",function(r){return x(e),b().onEpisode(r.target.value)}),p()()(),h(33,"div",4)(34,"div",5),_(35," Title: "),p(),h(36,"div",6)(37,"input",22),M("input",function(r){return x(e),b().onTitle(r.target.value)}),p()()(),I(38,"div",2),h(39,"div",23)(40,"button",24),M("click",function(){return x(e),b().sendFile()}),h(41,"i",25),_(42,"cloud_upload"),p(),_(43," Upload "),p()(),I(44,"div",2),p()}if(2&n){const e=b();m(5),Hr("error",null==e.type_id),C("ngModel",e.type_id),m(1),C("ngForOf",e.listType),m(5),C("value",e.parse_universe),m(5),C("value",e.parse_series),m(5),C("ngModel",e.series_id),m(1),C("ngForOf",e.listSeries),m(5),C("value",e.parse_season),m(5),C("value",e.parse_episode),m(5),Hr("error",""==e.parse_title),C("value",e.parse_title),m(3),C("disabled",!e.need_send)}}let w3=(()=>{class n{constructor(e,i,r,o,s,a,l,u,c,d,f){this.route=e,this.router=i,this.locate=r,this.dataService=o,this.typeService=s,this.universeService=a,this.seriesService=l,this.videoService=u,this.httpService=c,this.arianeService=d,this.popInService=f,this.id_video=-1,this.error="",this.mediaFile=null,this.upload_file_value="",this.type_id=null,this.series_id=null,this.need_send=!1,this.covers_display=[],this.upload=new Rs,this.listType=[{value:null,label:"---"}],this.listUniverse=[{value:null,label:"---"}],this.listSeries=[{value:null,label:"---"}],this.listSeries2=[{id:null,description:"---"}],this.config={displayKey:"description",search:!0,height:"auto",placeholder:"Select",customComparator:()=>{},limitTo:10,moreText:"more",noResultsFound:"No results found!",searchPlaceholder:"Search",searchOnKey:"description"},this.listSeason=[{value:null,label:"---"}],this.parse_universe="",this.parse_series="",this.parse_season=null,this.parse_episode=null,this.parse_title=""}updateNeedSend(){if(null!=this.mediaFile)return this.need_send=!0,(null==this.parse_title||""===this.parse_title)&&(this.need_send=!1),null==this.type_id&&(this.need_send=!1),this.need_send;this.need_send=!1}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_video=this.arianeService.getVideoId();let e=this;this.listType=[{value:null,label:"---"}],this.listUniverse=[{value:null,label:"---"}],this.listSeries=[{value:null,label:"---"}],this.listSeason=[{value:null,label:"---"}],this.universeService.getData().then(function(i){for(let r=0;r=2&&(this.parse_series=i[0]),i.splice(0,1),1==i.length)this.parse_title=i[0];else for(;i.length>0;){let o=i[0],s=!1;null==this.parse_season&&o.length>=1&&("s"==o[0]||"S"==o[0])&&(o=o.substring(1),this.parse_season=parseInt(o,10),s=!0),null==this.parse_episode&&0==s&&o.length>=1&&("e"==o[0]||"E"==o[0])&&(o=o.substring(1),this.parse_episode=parseInt(o,10),s=!0),0==s&&(null==this.parse_season&&null==this.parse_episode?this.parse_universe=""==this.parse_universe?o:this.parse_universe+"-"+o:this.parse_title=""==this.parse_title?o:this.parse_title+"-"+o),i.splice(0,1)}this.parse_title=this.parse_title.replace(new RegExp(".(mkv|MKV|Mkv|webm|WEBM|Webm|mp4)"),""),this.updateNeedSend(),this.series_id=null;let r=this;""!=this.parse_series&&this.seriesService.getLike(this.parse_series).then(function(o){console.log("find element: "+o.length);for(let s=0;s{class n{constructor(e,i,r){this.router=e,this.typeService=i,this.popInService=r,this.name="",this.description=""}OnDestroy(){}ngOnInit(){}eventPopUp(e){console.log("GET event: "+e),this.popInService.close("popin-create-type")}updateNeedSend(){}onName(e){this.name=0==e.length?"":e,this.updateNeedSend()}onDescription(e){this.description=0==e.length?"":e,this.updateNeedSend()}}return n.\u0275fac=function(e){return new(e||n)(y(le),y(ii),y(oi))},n.\u0275cmp=ye({type:n,selectors:[["create-type"]],decls:13,vars:2,consts:[["id","popin-create-type","popSize","medium","popTitle","Create a new 'TYPE'","closeTopRight","true","closeTitle","Cancel","validateTitle","Create",3,"callback"],[1,"expand"],[1,"unselectable"],["type","text","placeholder","Name of the Type",3,"value","input"],["placeholder","Description of the Type","rows","6",3,"input"]],template:function(e,i){1&e&&(h(0,"div")(1,"app-popin",0),M("callback",function(o){return i.eventPopUp(o[0])}),h(2,"p",1)(3,"label",2),_(4,"Name: "),p(),I(5,"br"),h(6,"input",3),M("input",function(o){return i.onName(o.target.value)}),p()(),h(7,"p",1)(8,"label",2),_(9,"Description: "),p(),I(10,"br"),h(11,"textarea",4),M("input",function(o){return i.onDescription(o.target.value)}),_(12),p()()()()),2&e&&(m(6),C("value",i.name),m(6),De(i.description))},directives:[uu],styles:[".expand[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}"]}),n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function E3(n,t){if(1&n&&(h(0,"div",2),I(1,"img",4),p()),2&n){const e=b();m(1),ut("src",e.imageUrl,Ye)}}let Kh=(()=>{class n{constructor(e,i){this.router=e,this.popInService=i,this.comment=null,this.imageUrl=null,this.callback=new de,this.closeButtonTitle="Cancel",this.validateButtonTitle="Validate"}OnDestroy(){}ngOnInit(){}eventPopUp(e){console.log("GET event: "+e),this.popInService.close("popin-delete-confirm"),"validate"==e&&this.callback.emit(null)}}return n.\u0275fac=function(e){return new(e||n)(y(le),y(oi))},n.\u0275cmp=ye({type:n,selectors:[["delete-confirm"]],inputs:{comment:"comment",imageUrl:"imageUrl"},outputs:{callback:"callback"},decls:7,vars:4,consts:[["id","popin-delete-confirm","popSize","small","popTitle","Confirm Remove","closeTopRight","true",3,"closeTitle","validateTitle","callback"],["class","expand",4,"ngIf"],[1,"expand"],[1,"unselectable"],[1,"cover",3,"src"]],template:function(e,i){1&e&&(h(0,"div")(1,"app-popin",0),M("callback",function(o){return i.eventPopUp(o[0])}),D(2,E3,2,1,"div",1),h(3,"p",2)(4,"label",3)(5,"b"),_(6),p()()()()()),2&e&&(m(1),C("closeTitle",i.closeButtonTitle)("validateTitle",i.validateButtonTitle),m(1),C("ngIf",null!=i.imageUrl),m(4),De(i.comment))},directives:[uu,We],styles:[".expand[_ngcontent-%COMP%]{width:100%;text-align:center}.expand[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .expand[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}"]}),n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function T3(n,t){1&n&&(h(0,"div",9)(1,"div",10),I(2,"br")(3,"br")(4,"br"),_(5," The media has been removed "),I(6,"br")(7,"br")(8,"br"),p()())}function M3(n,t){1&n&&(h(0,"div",9)(1,"div",10),I(2,"br")(3,"br")(4,"br"),_(5," The media does not exist "),I(6,"br")(7,"br")(8,"br"),p()())}function x3(n,t){1&n&&(h(0,"div",9)(1,"div",10),I(2,"br")(3,"br")(4,"br"),_(5," Loading ..."),I(6,"br"),_(7," Please wait. "),I(8,"br")(9,"br")(10,"br"),p()())}function I3(n,t){if(1&n&&(h(0,"option",27),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function A3(n,t){if(1&n&&(h(0,"option",27),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function P3(n,t){if(1&n&&(h(0,"option",27),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function O3(n,t){if(1&n&&(h(0,"option",27),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function N3(n,t){if(1&n){const e=U();h(0,"div",9)(1,"div",11)(2,"div",12),_(3," Title: "),p(),h(4,"div",13)(5,"input",14),M("input",function(r){return x(e),b().onName(r.target.value)}),p()()(),h(6,"div",15)(7,"div",12)(8,"i",16),_(9,"description"),p(),_(10," Description: "),p(),h(11,"div",13)(12,"textarea",17),M("input",function(r){return x(e),b().onDescription(r.target.value)}),_(13),p()()(),h(14,"div",11)(15,"div",12)(16,"i",16),_(17,"date_range"),p(),_(18," Date: "),p(),h(19,"div",13)(20,"input",18),M("input",function(r){return x(e),b().onDate(r.target)}),p()()(),h(21,"div",11)(22,"div",12),_(23," Type: "),p(),h(24,"div",13)(25,"select",19),M("ngModelChange",function(r){return x(e),b().onChangeType(r)}),D(26,I3,2,2,"option",20),p()(),h(27,"div",21)(28,"button",22),M("click",function(){return x(e),b().newType()}),h(29,"i",16),_(30,"add_circle_outline"),p()()()(),h(31,"div",11)(32,"div",12),_(33," Universe: "),p(),h(34,"div",13)(35,"select",19),M("ngModelChange",function(r){return x(e),b().onChangeUniverse(r)}),D(36,A3,2,2,"option",20),p()(),h(37,"div",21)(38,"button",22),M("click",function(){return x(e),b().newUniverse()}),h(39,"i",16),_(40,"add_circle_outline"),p()()()(),h(41,"div",11)(42,"div",12),_(43," Series: "),p(),h(44,"div",13)(45,"select",19),M("ngModelChange",function(r){return x(e),b().onChangeSeries(r)}),D(46,P3,2,2,"option",20),p()(),h(47,"div",21)(48,"button",22),M("click",function(){return x(e),b().newSeries()}),h(49,"i",16),_(50,"add_circle_outline"),p()()()(),h(51,"div",11)(52,"div",12),_(53," Season: "),p(),h(54,"div",13)(55,"select",19),M("ngModelChange",function(r){return x(e),b().onChangeSeason(r)}),D(56,O3,2,2,"option",20),p()(),h(57,"div",21)(58,"button",22),M("click",function(){return x(e),b().newSeason()}),h(59,"i",16),_(60,"add_circle_outline"),p()()()(),h(61,"div",11)(62,"div",12),_(63," Episode: "),p(),h(64,"div",13)(65,"input",23),M("input",function(r){return x(e),b().onEpisode(r.target)}),p()()(),h(66,"div",24)(67,"button",25),M("click",function(){return x(e),b().sendValues()}),h(68,"i",16),_(69,"save_alt"),p(),_(70," Save"),p()(),I(71,"div",26),p()}if(2&n){const e=b();m(5),C("value",e.data.name),m(8),De(e.data.description),m(7),C("value",e.data.time),m(5),C("ngModel",e.data.type_id),m(1),C("ngForOf",e.listType),m(9),C("ngModel",e.data.universe_id),m(1),C("ngForOf",e.listUniverse),m(9),C("ngModel",e.data.series_id),m(1),C("ngForOf",e.listSeries),m(9),C("ngModel",e.data.season_id),m(1),C("ngForOf",e.listSeason),m(9),C("value",e.data.episode),m(2),C("disabled",!e.need_send)}}function k3(n,t){1&n&&(h(0,"div",1),_(1," Covers "),p())}function R3(n,t){if(1&n){const e=U();h(0,"div",32)(1,"div",37),I(2,"img",38),p(),h(3,"div",34)(4,"button",35),M("click",function(){const o=x(e).$implicit;return b(2).removeCover(o.id)}),h(5,"i",39),_(6,"highlight_off"),p()()()()}if(2&n){const e=t.$implicit;m(2),ut("src",e.url,Ye)}}function F3(n,t){if(1&n){const e=U();h(0,"div",9)(1,"div",28)(2,"input",29,30),M("change",function(r){return x(e),b().onChangeCover(r.target)}),p()(),h(4,"div",11)(5,"div",13),D(6,R3,7,1,"div",31),h(7,"div",32),I(8,"div",33),h(9,"div",34)(10,"button",35),M("click",function(){return x(e),Go(3).click()}),h(11,"i",36),_(12,"add_circle_outline"),p()()()()()(),I(13,"div",26),p()}if(2&n){const e=b();m(6),C("ngForOf",e.covers_display)}}function V3(n,t){1&n&&(h(0,"div",1),_(1," Administration "),p())}function L3(n,t){if(1&n){const e=U();h(0,"div",9)(1,"div",11)(2,"div",12)(3,"i",16),_(4,"data_usage"),p(),_(5," ID: "),p(),h(6,"div",13),_(7),p()(),I(8,"div",26),h(9,"div",11)(10,"div",12)(11,"i",16),_(12,"delete_forever"),p(),_(13," Trash: "),p(),h(14,"div",13)(15,"button",40),M("click",function(){return x(e),b().removeItem()}),h(16,"i",16),_(17,"delete"),p(),_(18," Remove Media "),p()()(),I(19,"div",26),p()}if(2&n){const e=b();m(7),Q(" ",e.data.data_id," ")}}class Fs{constructor(){this.name="",this.description="",this.episode=void 0,this.universe_id=null,this.series_id=null,this.season_id=null,this.data_id=-1,this.time=void 0,this.type_id=null,this.covers=[],this.generated_name=""}clone(){let t=new Fs;return t.name=this.name,t.description=this.description,t.episode=this.episode,t.universe_id=this.universe_id,t.series_id=this.series_id,t.season_id=this.season_id,t.data_id=this.data_id,t.time=this.time,t.type_id=this.type_id,t.covers=this.covers,t.generated_name=this.generated_name,t}}let U3=(()=>{class n{constructor(e,i,r,o,s,a,l,u,c,d,f,g){this.route=e,this.router=i,this.locate=r,this.dataService=o,this.typeService=s,this.universeService=a,this.seriesService=l,this.seasonService=u,this.videoService=c,this.httpService=d,this.arianeService=f,this.popInService=g,this.id_video=-1,this.itemIsRemoved=!1,this.itemIsNotFound=!1,this.itemIsLoading=!0,this.error="",this.data=new Fs,this.data_ori=new Fs,this.upload_file_value="",this.need_send=!1,this.upload=new Rs,this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteMediaId=null,this.covers_display=[],this.listType=[{value:void 0,label:"---"}],this.listUniverse=[{value:void 0,label:"---"},{value:null,label:"---"}],this.listSeries=[{value:void 0,label:"---"}],this.listSeason=[{value:void 0,label:"---"}]}deleteConfirmed(){null!==this.deleteCoverId&&(this.removeCoverAfterConfirm(this.deleteCoverId),this.cleanConfirm()),null!==this.deleteMediaId&&(this.removeItemAfterConfirm(this.deleteMediaId),this.cleanConfirm())}cleanConfirm(){this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteMediaId=null}updateNeedSend(){return this.need_send=!1,this.data.name!=this.data_ori.name&&(this.need_send=!0),this.data.description!=this.data_ori.description&&(this.need_send=!0),this.data.episode!=this.data_ori.episode&&(this.need_send=!0),this.data.time!=this.data_ori.time&&(this.need_send=!0),this.data.type_id!=this.data_ori.type_id&&(this.need_send=!0),this.data.universe_id!=this.data_ori.universe_id&&(this.need_send=!0),this.data.series_id!=this.data_ori.series_id&&(this.need_send=!0),this.data.season_id!=this.data_ori.season_id&&(this.need_send=!0),this.need_send}updateCoverList(e){if(this.covers_display=[],this.data.covers=[],null!=e)for(let i=0;i4?e.value=this.data.time:this.data.time=e.value,this.data.time<10&&(this.data.time=null),this.updateNeedSend()}onEpisode(e){e.value.length>4?e.value=this.data.episode:this.data.episode=parseInt(e.value,10),this.updateNeedSend()}sendValues(){console.log("send new values....");let e={};this.data.name!=this.data_ori.name&&(e.name=this.data.name),this.data.description!=this.data_ori.description&&(e.description=null==this.data.description?null:this.data.description),this.data.episode!=this.data_ori.episode&&(e.episode=this.data.episode),this.data.time!=this.data_ori.time&&(e.time=this.data.time),this.data.type_id!=this.data_ori.type_id&&(e.type_id=null==this.data.type_id?null:this.data.type_id),this.data.universe_id!=this.data_ori.universe_id&&(e.universe_id=null==this.data.universe_id?null:this.data.universe_id),this.data.series_id!=this.data_ori.series_id&&(e.series_id=null==this.data.series_id?null:this.data.series_id),this.data.season_id!=this.data_ori.season_id&&(e.season_id=null==this.data.season_id?null:this.data.season_id);let i=this.data.clone(),r=this;this.videoService.put(this.id_video,e).then(function(o){r.data_ori=i,r.updateNeedSend()}).catch(function(o){console.log("get response22 : "+JSON.stringify(o,null,2)),r.updateNeedSend()})}onDropFile(e){e.preventDefault(),console.log("error in drag & drop ...")}onDragOverFile(e){e.stopPropagation(),e.preventDefault()}onChangeCover(e){this.selectedFiles=e.files,this.coverFile=this.selectedFiles[0],console.log("select file "+this.coverFile.name),this.uploadCover(this.coverFile),this.updateNeedSend()}uploadCover(e){if(null==e)return void console.log("No file selected!");let i=this;this.upload.clear(),this.popInService.open("popin-upload-progress"),this.videoService.uploadCover(e,this.id_video,function(r,o){i.upload.mediaSendSize=r,i.upload.mediaSize=o}).then(function(r){console.log("get response of cover : "+JSON.stringify(r,null,2)),i.upload.result="Cover added done",i.updateCoverList(r.covers)}).catch(function(r){console.log("Can not add the cover in the video..."),i.upload.error="Error in the upload of the cover..."+JSON.stringify(r,null,2)})}removeCover(e){this.cleanConfirm(),this.confirmDeleteComment="Delete the cover ID: "+e,this.confirmDeleteImageUrl=this.seriesService.getCoverThumbnailUrl(e),this.deleteCoverId=e,this.popInService.open("popin-delete-confirm")}removeCoverAfterConfirm(e){console.log("Request remove cover: "+e);let i=this;this.videoService.deleteCover(this.id_video,e).then(function(r){console.log("get response of remove cover : "+JSON.stringify(r,null,2)),i.upload.result="Cover remove done",i.updateCoverList(r.covers)}).catch(function(r){console.log("Can not remove the cover of the video..."),i.upload.error="Error in the upload of the cover..."+JSON.stringify(r,null,2)})}removeItem(){console.log("Request remove Media..."),this.cleanConfirm(),this.confirmDeleteComment="Delete the Media: "+this.id_video,this.deleteMediaId=this.id_video,this.popInService.open("popin-delete-confirm")}removeItemAfterConfirm(e){let i=this;this.videoService.delete(e).then(function(r){i.itemIsRemoved=!0}).catch(function(r){})}eventPopUpSeason(e){console.log("GET event: "+e),this.popInService.close("popin-new-season")}eventPopUpSeries(e){console.log("GET event: "+e),this.popInService.close("popin-new-series")}eventPopUpType(e){console.log("GET event: "+e),this.popInService.close("popin-new-type")}eventPopUpUniverse(e){console.log("GET event: "+e),this.popInService.close("popin-new-universe")}newSeason(){console.log("Request new Season..."),this.popInService.open("popin-new-season")}newSeries(){console.log("Request new Series..."),this.popInService.open("popin-new-series")}newType(){console.log("Request new Type..."),this.popInService.open("popin-create-type")}newUniverse(){console.log("Request new Universe..."),this.popInService.open("popin-new-universe")}}return n.\u0275fac=function(e){return new(e||n)(y(He),y(le),y(Tt),y(ks),y(ii),y(Ns),y(ri),y(nr),y(ao),y(Bt),y(Ct),y(oi))},n.\u0275cmp=ye({type:n,selectors:[["app-video-edit"]],hostVars:1,hostBindings:function(e,i){2&e&&Et("@fadeInAnimation",void 0)},decls:23,vars:15,consts:[[1,"main-reduce","edit-page"],[1,"title"],["class","fill-all",4,"ngIf"],["class","title",4,"ngIf"],[3,"mediaTitle","mediaUploaded","mediaSize","result","error"],[3,"comment","imageUrl","callback"],["id","popin-new-season","popTitle","Create a new season","closeTopRight","true","closeTitle","Cancel","validateTitle","Create",3,"callback"],["id","popin-new-series","popSize","small","popTitle","Create a new series","closeTopRight","true","closeTitle","Cancel","validateTitle","Create",3,"callback"],["id","popin-new-universe","popSize","big","popTitle","Create a new universe","closeTopRight","true","closeTitle","Cancel","validateTitle","Create",3,"callback"],[1,"fill-all"],[1,"message-big"],[1,"request_raw"],[1,"label"],[1,"input"],["type","text","placeholder","Name of the Media",3,"value","input"],[1,"request_raw2"],[1,"material-icons"],["placeholder","Description of the Media","rows","6",3,"input"],["type","number","pattern","[0-9]{0-4}","placeholder","2112",3,"value","input"],[3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"input_add"],["type","submit",1,"button","color-button-normal","color-shadow-black",3,"click"],["type","number","pattern","[0-9]{0-4}","placeholder","5",3,"value","input"],[1,"send_value"],["type","submit",1,"button","fill-x","color-button-validate","color-shadow-black",3,"disabled","click"],[1,"clear"],[3,"ngValue"],[1,"hide-element"],["type","file","placeholder","Select a cover file","accept",".png,.jpg,.jpeg,.webp",3,"change"],["fileInput",""],["class","cover",4,"ngFor","ngForOf"],[1,"cover"],[1,"cover-no-image"],[1,"cover-button"],[3,"click"],[1,"material-icons","button-add"],[1,"cover-image"],[3,"src"],[1,"material-icons","button-remove"],["type","submit",1,"button","color-button-cancel","color-shadow-black",3,"click"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1),_(2," Edit Media "),p(),D(3,T3,9,0,"div",2),D(4,M3,9,0,"div",2),D(5,x3,11,0,"div",2),D(6,N3,72,13,"div",2),D(7,k3,2,0,"div",3),D(8,F3,14,1,"div",2),D(9,V3,2,0,"div",3),D(10,L3,20,1,"div",2),p(),I(11,"create-type")(12,"upload-progress",4),h(13,"delete-confirm",5),M("callback",function(){return i.deleteConfirmed()}),p(),h(14,"app-popin",6),M("callback",function(o){return i.eventPopUpSeason(o[0])}),h(15,"p"),_(16," Name: "),p()(),h(17,"app-popin",7),M("callback",function(o){return i.eventPopUpSeries(o[0])}),h(18,"p"),_(19," Name: "),p()(),h(20,"app-popin",8),M("callback",function(o){return i.eventPopUpUniverse(o[0])}),h(21,"p"),_(22," Name: "),p()()),2&e&&(m(3),C("ngIf",i.itemIsRemoved),m(1),C("ngIf",i.itemIsNotFound),m(1),C("ngIf",i.itemIsLoading),m(1),C("ngIf",!i.itemIsRemoved&&!i.itemIsNotFound&&!i.itemIsLoading),m(1),C("ngIf",!i.itemIsRemoved&&!i.itemIsNotFound&&!i.itemIsLoading),m(1),C("ngIf",!i.itemIsRemoved&&!i.itemIsNotFound&&!i.itemIsLoading),m(1),C("ngIf",!i.itemIsRemoved&&!i.itemIsNotFound&&!i.itemIsLoading),m(1),C("ngIf",!i.itemIsRemoved&&!i.itemIsNotFound&&!i.itemIsLoading),m(2),C("mediaTitle",i.upload.labelMediaTitle)("mediaUploaded",i.upload.mediaSendSize)("mediaSize",i.upload.mediaSize)("result",i.upload.result)("error",i.upload.error),m(1),C("comment",i.confirmDeleteComment)("imageUrl",i.confirmDeleteImageUrl))},directives:[We,ro,Zl,Ps,kn,ou,su,D3,cu,Kh,uu],styles:[""],data:{animation:[rn]}}),n})();function B3(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," The series has been removed "),I(6,"br")(7,"br")(8,"br"),p()())}function H3(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," The series does not exist "),I(6,"br")(7,"br")(8,"br"),p()())}function j3(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," Loading ..."),I(6,"br"),_(7," Please wait. "),I(8,"br")(9,"br")(10,"br"),p()())}function $3(n,t){if(1&n&&(h(0,"option",19),_(1),p()),2&n){const e=t.$implicit;C("ngValue",e.value),m(1),De(e.label)}}function z3(n,t){if(1&n){const e=U();h(0,"div",6)(1,"div",8)(2,"div",9),_(3," Type: "),p(),h(4,"div",10)(5,"select",11),M("ngModelChange",function(r){return x(e),b().onChangeType(r)}),D(6,$3,2,2,"option",12),p()()(),h(7,"div",8)(8,"div",9),_(9," Name: "),p(),h(10,"div",10)(11,"input",13),M("input",function(r){return x(e),b().onName(r.target.value)}),p()()(),h(12,"div",8)(13,"div",9),_(14," Description: "),p(),h(15,"div",10)(16,"input",14),M("input",function(r){return x(e),b().onDescription(r.target.value)}),p()()(),I(17,"div",15),h(18,"div",16)(19,"button",17),M("click",function(){return x(e),b().sendValues()}),h(20,"i",18),_(21,"save_alt"),p(),_(22," Save"),p()(),I(23,"div",15),p()}if(2&n){const e=b();m(5),C("ngModel",e.type_id),m(1),C("ngForOf",e.listType),m(5),C("value",e.name),m(5),C("value",e.description)}}function q3(n,t){1&n&&(h(0,"div",1),_(1," Covers "),p())}function G3(n,t){if(1&n){const e=U();h(0,"div",24)(1,"div",29),I(2,"img",30),p(),h(3,"div",26)(4,"button",27),M("click",function(){const o=x(e).$implicit;return b(2).removeCover(o.id)}),h(5,"i",31),_(6,"highlight_off"),p()()()()}if(2&n){const e=t.$implicit;m(2),ut("src",e.url,Ye)}}function W3(n,t){if(1&n){const e=U();h(0,"div",6)(1,"div",20)(2,"input",21,22),M("change",function(r){return x(e),b().onChangeCover(r.target)}),p()(),h(4,"div",8)(5,"div",10),D(6,G3,7,1,"div",23),h(7,"div",24),I(8,"div",25),h(9,"div",26)(10,"button",27),M("click",function(){return x(e),Go(3).click()}),h(11,"i",28),_(12,"add_circle_outline"),p()()()()()(),I(13,"div",15),p()}if(2&n){const e=b();m(6),C("ngForOf",e.covers_display)}}function K3(n,t){1&n&&(h(0,"div",1),_(1," Administration "),p())}function Q3(n,t){if(1&n){const e=U();h(0,"div",10)(1,"button",33),M("click",function(){return x(e),b(2).removeItem()}),h(2,"i",18),_(3,"delete"),p(),_(4," Remove Series "),p()()}}function J3(n,t){1&n&&(h(0,"div",10)(1,"i",18),_(2,"new_releases"),p(),_(3," Can not remove season or video depending on it "),p())}function Z3(n,t){if(1&n&&(h(0,"div",6)(1,"div",8)(2,"div",9)(3,"i",18),_(4,"data_usage"),p(),_(5," ID: "),p(),h(6,"div",10),_(7),p()(),I(8,"div",15),h(9,"div",8)(10,"div",9),_(11," Seasons: "),p(),h(12,"div",10),_(13),p()(),I(14,"div",15),h(15,"div",8)(16,"div",9),_(17," Videos: "),p(),h(18,"div",10),_(19),p()(),I(20,"div",15),h(21,"div",8)(22,"div",9)(23,"i",18),_(24,"delete_forever"),p(),_(25," Trash: "),p(),D(26,Q3,5,0,"div",32),D(27,J3,4,0,"div",32),p(),I(28,"div",15),p()),2&n){const e=b();m(7),Q(" ",e.id_series," "),m(6),Q(" ",e.seasonsCount," "),m(6),Q(" ",e.videoCount," "),m(7),C("ngIf","0"==e.videoCount&&"0"==e.seasonsCount),m(1),C("ngIf","0"!=e.videoCount||"0"!=e.seasonsCount)}}function X3(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," The season has been removed "),I(6,"br")(7,"br")(8,"br"),p()())}function eU(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," The season does not exist "),I(6,"br")(7,"br")(8,"br"),p()())}function tU(n,t){1&n&&(h(0,"div",6)(1,"div",7),I(2,"br")(3,"br")(4,"br"),_(5," Loading ..."),I(6,"br"),_(7," Please wait. "),I(8,"br")(9,"br")(10,"br"),p()())}function nU(n,t){if(1&n){const e=U();h(0,"div",6)(1,"div",8)(2,"div",9),_(3," Number: "),p(),h(4,"div",10)(5,"input",11),M("input",function(r){return x(e),b().onNumber(r.target.value)}),p()()(),h(6,"div",8)(7,"div",9),_(8," Description: "),p(),h(9,"div",10)(10,"input",12),M("input",function(r){return x(e),b().onDescription(r.target.value)}),p()()(),h(11,"div",13)(12,"button",14),M("click",function(){return x(e),b().sendValues()}),h(13,"i",15),_(14,"save_alt"),p(),_(15," Save"),p()(),I(16,"div",16),p()}if(2&n){const e=b();m(5),C("value",e.numberVal),m(5),C("value",e.description)}}function iU(n,t){1&n&&(h(0,"div",1),_(1," Covers "),p())}function rU(n,t){if(1&n){const e=U();h(0,"div",21)(1,"div",26),I(2,"img",27),p(),h(3,"div",23)(4,"button",24),M("click",function(){const o=x(e).$implicit;return b(2).removeCover(o.id)}),h(5,"i",28),_(6,"highlight_off"),p()()()()}if(2&n){const e=t.$implicit;m(2),ut("src",e.url,Ye)}}function oU(n,t){if(1&n){const e=U();h(0,"div",6)(1,"div",17)(2,"input",18,19),M("change",function(r){return x(e),b().onChangeCover(r.target)}),p()(),h(4,"div",8)(5,"div",10),D(6,rU,7,1,"div",20),h(7,"div",21),I(8,"div",22),h(9,"div",23)(10,"button",24),M("click",function(){return x(e),Go(3).click()}),h(11,"i",25),_(12,"add_circle_outline"),p()()()()()(),I(13,"div",16),p()}if(2&n){const e=b();m(6),C("ngForOf",e.covers_display)}}function sU(n,t){1&n&&(h(0,"div",1),_(1," Administration "),p())}function aU(n,t){if(1&n){const e=U();h(0,"div",10)(1,"button",30),M("click",function(){return x(e),b(2).removeItem()}),h(2,"i",15),_(3,"delete"),p(),_(4," Remove season "),p()()}}function lU(n,t){1&n&&(h(0,"div",10)(1,"i",15),_(2,"new_releases"),p(),_(3," Can not remove season, video depending on it "),p())}function uU(n,t){if(1&n&&(h(0,"div",6)(1,"div",8)(2,"div",9)(3,"i",15),_(4,"data_usage"),p(),_(5," ID: "),p(),h(6,"div",10),_(7),p()(),I(8,"div",16),h(9,"div",8)(10,"div",9),_(11," Videos: "),p(),h(12,"div",10),_(13),p()(),I(14,"div",16),h(15,"div",8)(16,"div",9)(17,"i",15),_(18,"delete_forever"),p(),_(19," Trash: "),p(),D(20,aU,5,0,"div",29),D(21,lU,4,0,"div",29),p(),I(22,"div",16),p()),2&n){const e=b();m(7),Q(" ",e.id_season," "),m(6),Q(" ",e.videoCount," "),m(7),C("ngIf","0"==e.videoCount),m(1),C("ngIf","0"!=e.videoCount)}}const cU=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:jV},{path:"upload",component:w3},{path:"type/:universe_id/:type_id/:series_id/:season_id/:video_id",component:XV},{path:"universe/:universe_id/:type_id/:series_id/:season_id/:video_id",component:tL},{path:"series/:universe_id/:type_id/:series_id/:season_id/:video_id",component:_L},{path:"series-edit/:universe_id/:type_id/:series_id/:season_id/:video_id",component:(()=>{class n{constructor(e,i,r,o,s,a,l,u){this.route=e,this.router=i,this.locate=r,this.dataService=o,this.typeService=s,this.seriesService=a,this.arianeService=l,this.popInService=u,this.id_series=-1,this.itemIsRemoved=!1,this.itemIsNotFound=!1,this.itemIsLoading=!0,this.error="",this.type_id=null,this.name="",this.description="",this.upload_file_value="",this.seasonsCount=null,this.videoCount=null,this.covers_display=[],this.upload=new Rs,this.listType=[{value:void 0,label:"---"}],this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteItemId=null}deleteConfirmed(){null!==this.deleteCoverId&&(this.removeCoverAfterConfirm(this.deleteCoverId),this.cleanConfirm()),null!==this.deleteItemId&&(this.removeItemAfterConfirm(this.deleteItemId),this.cleanConfirm())}cleanConfirm(){this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteItemId=null}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_series=this.arianeService.getSeriesId();let e=this;this.listType=[{value:null,label:"---"}],this.typeService.getData().then(function(i){for(let r=0;r{class n{constructor(e,i,r,o,s,a,l){this.route=e,this.router=i,this.locate=r,this.dataService=o,this.seasonService=s,this.arianeService=a,this.popInService=l,this.id_season=-1,this.itemIsRemoved=!1,this.itemIsNotFound=!1,this.itemIsLoading=!0,this.error="",this.numberVal=null,this.description="",this.upload_file_value="",this.videoCount=null,this.covers_display=[],this.upload=new Rs,this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteItemId=null}deleteConfirmed(){null!==this.deleteCoverId&&(this.removeCoverAfterConfirm(this.deleteCoverId),this.cleanConfirm()),null!==this.deleteItemId&&(this.removeItemAfterConfirm(this.deleteItemId),this.cleanConfirm())}cleanConfirm(){this.confirmDeleteComment=null,this.confirmDeleteImageUrl=null,this.deleteCoverId=null,this.deleteItemId=null}ngOnInit(){this.arianeService.updateManual(this.route.snapshot.paramMap),this.id_season=this.arianeService.getSeasonId();let e=this;this.seasonService.get(this.id_season).then(function(i){console.log("get response of season : "+JSON.stringify(i,null,2)),e.numberVal=i.name,e.description=i.description,e.updateCoverList(i.covers),e.itemIsLoading=!1}).catch(function(i){e.error="Can not get the data",e.numberVal=null,e.description="",e.covers_display=[],e.itemIsNotFound=!0,e.itemIsLoading=!1}),this.seasonService.getVideo(this.id_season).then(function(i){e.videoCount=i.length}).catch(function(i){e.videoCount="---"})}updateCoverList(e){if(this.covers_display=[],null!=e)for(let i=0;i{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n}),n.\u0275inj=ft({imports:[[Hf.forRoot(cU,{relativeLinkResolution:"legacy"})],Hf]}),n})(),fU=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function hU(n,t){if(1&n){const e=U();h(0,"button",15),M("click",function(r){return x(e),b().onArianeType(r)})("auxclick",function(r){return x(e),b().onArianeType(r)}),h(1,"div",3),_(2),p(),h(3,"div",5),_(4," T "),p()()}if(2&n){const e=b();m(2),Q(" ",e.ariane_type_name," ")}}function pU(n,t){1&n&&(h(0,"div",16),_(1,"/"),p())}function gU(n,t){if(1&n){const e=U();h(0,"button",17),M("click",function(r){return x(e),b().onArianeUniverse(r)})("auxclick",function(r){return x(e),b().onArianeUniverse(r)}),h(1,"div",3),_(2),p(),h(3,"div",5),_(4," U "),p()()}if(2&n){const e=b();m(2),Q(" ",e.ariane_universe_name," ")}}function mU(n,t){1&n&&(h(0,"div",16),_(1,"/"),p())}function _U(n,t){if(1&n){const e=U();h(0,"button",18),M("click",function(r){return x(e),b().onArianeSeries(r)})("auxclick",function(r){return x(e),b().onArianeSeries(r)}),h(1,"div",3),_(2),p(),h(3,"div",5),_(4," G "),p()()}if(2&n){const e=b();m(2),Q(" ",e.ariane_series_name," ")}}function vU(n,t){1&n&&(h(0,"div",16),_(1,"/"),p())}function yU(n,t){if(1&n){const e=U();h(0,"button",19),M("click",function(r){return x(e),b().onArianeSeason(r)})("auxclick",function(r){return x(e),b().onArianeSeason(r)}),h(1,"div",3),_(2),p(),h(3,"div",5),_(4," S "),p()()}if(2&n){const e=b();m(2),Q(" ",e.ariane_season_name," ")}}function CU(n,t){if(1&n){const e=U();h(0,"button",20),M("click",function(r){return x(e),b().onSignIn(r)})("auxclick",function(r){return x(e),b().onSignIn(r)}),h(1,"div",3)(2,"i",4),_(3,"add_circle_outline"),p(),_(4," Sign-up "),p(),h(5,"div",5)(6,"i",4),_(7,"add_circle_outline"),p()()()}}function bU(n,t){if(1&n){const e=U();h(0,"button",20),M("click",function(r){return x(e),b().onLogin(r)})("auxclick",function(r){return x(e),b().onLogin(r)}),h(1,"div",3)(2,"i",4),_(3,"account_circle"),p(),_(4," Sign-in "),p(),h(5,"div",5)(6,"i",4),_(7,"account_circle"),p()()()}}function SU(n,t){if(1&n){const e=U();h(0,"button",21),M("click",function(){return x(e),b().onAvatar()}),I(1,"img",22),p()}if(2&n){const e=b();m(1),ut("src",e.avatar,Ye)}}function wU(n,t){if(1&n){const e=U();h(0,"button",21),M("click",function(){return x(e),b().onEdit()}),h(1,"div",3)(2,"i",4),_(3,"edit"),p(),_(4," Edit "),p(),h(5,"div",5)(6,"i",4),_(7,"edit"),p()()()}}function DU(n,t){if(1&n){const e=U();h(0,"div",23),M("click",function(){return x(e),b().onOutUserProperty()}),h(1,"div",24)(2,"button",25),_(3," Sign in as "),h(4,"b"),_(5),p()(),h(6,"button",2),M("click",function(r){return x(e),b().onHelp(r)})("auxclick",function(r){return x(e),b().onHelp(r)}),h(7,"i",4),_(8,"help_outline"),p(),_(9," Help "),p(),h(10,"button",2),M("click",function(r){return x(e),b().onSetting(r)})("auxclick",function(r){return x(e),b().onSetting(r)}),h(11,"i",4),_(12,"settings"),p(),_(13," Settings "),p(),h(14,"button",2),M("click",function(r){return x(e),b().onLogout(r)})("auxclick",function(r){return x(e),b().onLogout(r)}),h(15,"i",4),_(16,"exit_to_app"),p(),_(17," Sign out "),p(),h(18,"button",2),M("click",function(r){return x(e),b().onAddMedia(r)})("auxclick",function(r){return x(e),b().onAddMedia(r)}),h(19,"i",4),_(20,"add_circle"),p(),_(21," Add media "),p()()()}if(2&n){const e=b();m(5),De(e.login)}}function EU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditSeries(r)})("auxclick",function(r){return x(e),b(2).onSubEditSeries(r)}),h(1,"b"),_(2,"Edit Series"),p()()}}function TU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditSeason(r)})("auxclick",function(r){return x(e),b(2).onSubEditSeason(r)}),h(1,"b"),_(2,"Edit Season"),p()()}}function MU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditVideo(r)})("auxclick",function(r){return x(e),b(2).onSubEditVideo(r)}),h(1,"b"),_(2,"Edit Video"),p()()}}function xU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditSeries(r)})("auxclick",function(r){return x(e),b(2).onSubEditSeries(r)}),h(1,"b"),_(2,"Edit Series"),p()()}}function IU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditSeason(r)})("auxclick",function(r){return x(e),b(2).onSubEditSeason(r)}),h(1,"b"),_(2,"Edit Season"),p()()}}function AU(n,t){if(1&n){const e=U();h(0,"button",2),M("click",function(r){return x(e),b(2).onSubEditVideo(r)})("auxclick",function(r){return x(e),b(2).onSubEditVideo(r)}),h(1,"b"),_(2,"Edit Video"),p()()}}function PU(n,t){if(1&n){const e=U();h(0,"div",23),M("click",function(){return x(e),b().onOutUserProperty()}),h(1,"div",3)(2,"div",26),D(3,EU,3,0,"button",27),D(4,TU,3,0,"button",27),D(5,MU,3,0,"button",27),p()(),h(6,"div",5)(7,"div",28),D(8,xU,3,0,"button",27),D(9,IU,3,0,"button",27),D(10,AU,3,0,"button",27),p()()()}if(2&n){const e=b();m(3),C("ngIf",null!=e.ariane_series_id),m(1),C("ngIf",null!=e.ariane_season_id),m(1),C("ngIf",null!=e.ariane_video_id),m(3),C("ngIf",null!=e.ariane_series_id),m(1),C("ngIf",null!=e.ariane_season_id),m(1),C("ngIf",null!=e.ariane_video_id)}}let OU=(()=>{class n{constructor(e,i,r){this.router=e,this.sessionService=i,this.arianeService=r,this.login=null,this.avatar=null,this.displayUserMenu=!1,this.displayEditMenu=!1,this.ariane_type_id=null,this.ariane_type_name=null,this.ariane_universe_id=null,this.ariane_universe_name=null,this.ariane_series_id=null,this.ariane_series_name=null,this.ariane_season_id=null,this.ariane_season_name=null,this.ariane_video_id=null,this.ariane_video_name=null,this.edit_show=!1}ngOnInit(){this.sessionService.change.subscribe(e=>{console.log("receive event from session ..."+e),0==e?(this.login=null,this.avatar=null,this.displayUserMenu=!1):(this.login=this.sessionService.getLogin(),this.avatar=this.sessionService.getAvatar(),this.displayUserMenu=!1,console.log(" login:"+this.sessionService.getLogin()),console.log(" avatar:"+this.avatar))}),this.arianeService.type_change.subscribe(e=>{this.ariane_type_id=e,this.ariane_type_name=this.arianeService.getTypeName(),this.updateEditShow()}),this.arianeService.universe_change.subscribe(e=>{this.ariane_universe_id=e,this.ariane_universe_name=this.arianeService.getUniverseName(),this.updateEditShow()}),this.arianeService.series_change.subscribe(e=>{this.ariane_series_id=e,this.ariane_series_name=this.arianeService.getSeriesName(),this.updateEditShow()}),this.arianeService.season_change.subscribe(e=>{this.ariane_season_id=e,this.ariane_season_name=this.arianeService.getSeasonName(),this.updateEditShow()}),this.arianeService.video_change.subscribe(e=>{this.ariane_video_id=e,this.ariane_video_name=this.arianeService.getVideoName(),this.updateEditShow()})}updateEditShow(){this.edit_show=null!=this.ariane_series_id||null!=this.ariane_season_id||null!=this.ariane_video_id}onAvatar(){console.log("onAvatar() "+this.displayUserMenu),this.displayUserMenu=!this.displayUserMenu,this.displayEditMenu=!1}onEdit(){console.log("onEdit()"),this.displayEditMenu=!this.displayEditMenu,this.displayUserMenu=!1}onSubEditVideo(e){console.log("onSubEdit()"),this.displayEditMenu=!1,this.displayUserMenu=!1,this.arianeService.navigateVideoEdit(this.ariane_video_id,2==e.which)}onSubEditSeason(e){console.log("onSubEdit()"),this.displayEditMenu=!1,this.displayUserMenu=!1,this.arianeService.navigateSeasonEdit(this.ariane_season_id,2==e.which)}onSubEditSeries(e){console.log("onSubEdit()"),this.displayEditMenu=!1,this.displayUserMenu=!1,this.arianeService.navigateSeriesEdit(this.ariane_series_id,2==e.which)}onSubEditUniverse(e){console.log("onSubEdit()"),this.displayEditMenu=!1,this.displayUserMenu=!1,this.arianeService.navigateUniverseEdit(this.ariane_universe_id,2==e.which)}onSubEditType(e){console.log("onSubEditType()"),this.displayEditMenu=!1,this.displayUserMenu=!1,this.arianeService.navigateTypeEdit(this.ariane_type_id,2==e.which)}onHome(e){console.log("onHome()"),this.router.navigate(["home"])}onSignIn(e){console.log("onSignIn()"),this.router.navigate(["signup"])}onLogin(e){console.log("onLogin()"),this.router.navigate(["login"]),this.displayUserMenu=!1}onLogout(e){console.log("onLogout()"),this.sessionService.destroy(),this.router.navigate(["home"]),this.displayUserMenu=!1}onAddMedia(e){console.log("onAddMedia()"),this.router.navigate(["upload"]),this.displayUserMenu=!1}onSetting(e){console.log("onSetting()"),this.router.navigate(["settings"]),this.displayUserMenu=!1}onHelp(e){console.log("onHelp()"),this.router.navigate(["help"]),this.displayUserMenu=!1}onOutUserProperty(){console.log("onOutUserProperty ==> event..."),this.displayUserMenu=!1,this.displayEditMenu=!1}onArianeType(e){console.log("onArianeType("+this.ariane_type_id+")"),this.arianeService.navigateType(this.ariane_type_id,2==e.which)}onArianeUniverse(e){console.log("onArianeUniverse("+this.ariane_universe_id+")"),this.arianeService.navigateUniverse(this.ariane_universe_id,2==e.which)}onArianeSeries(e){console.log("onArianeSeries("+this.ariane_series_id+")"),this.arianeService.navigateSeries(this.ariane_series_id,2==e.which)}onArianeSeason(e){console.log("onArianeSeason("+this.ariane_season_id+")"),this.arianeService.navigateSeason(this.ariane_season_id,2==e.which)}}return n.\u0275fac=function(e){return new(e||n)(y(le),y(Os),y(Ct))},n.\u0275cmp=ye({type:n,selectors:[["app-top-menu"]],decls:24,vars:13,consts:[[1,"top"],["id","main-menu",1,"main-menu","color-menu-background"],[1,"item",3,"click","auxclick"],[1,"xdesktop"],[1,"material-icons"],[1,"xmobile"],[1,"ariane"],["class","item","title","Uype",3,"click","auxclick",4,"ngIf"],["class","item_ariane_separator",4,"ngIf"],["class","item","title","Universe",3,"click","auxclick",4,"ngIf"],["class","item","title","Series",3,"click","auxclick",4,"ngIf"],["class","item","title","Season",3,"click","auxclick",4,"ngIf"],["class","item","style","float:right;",3,"click","auxclick",4,"ngIf"],["class","item","style","float:right; height:56px;",3,"click",4,"ngIf"],["class","fill-all",3,"click",4,"ngIf"],["title","Uype",1,"item",3,"click","auxclick"],[1,"item_ariane_separator"],["title","Universe",1,"item",3,"click","auxclick"],["title","Series",1,"item",3,"click","auxclick"],["title","Season",1,"item",3,"click","auxclick"],[1,"item",2,"float","right",3,"click","auxclick"],[1,"item",2,"float","right","height","56px",3,"click"],[1,"avatar",3,"src"],[1,"fill-all",3,"click"],[1,"sub-menu","user-menu","color-menu-background"],["disabled","disabled",1,"item"],[1,"sub-menu","edit-menu","color-menu-background"],["class","item",3,"click","auxclick",4,"ngIf"],[1,"sub-menu","edit-menu-mob","color-menu-background"]],template:function(e,i){1&e&&(h(0,"div",0)(1,"div",1)(2,"button",2),M("click",function(o){return i.onHome(o)})("auxclick",function(o){return o}),h(3,"div",3)(4,"i",4),_(5,"home"),p(),_(6," Home "),p(),h(7,"div",5)(8,"i",4),_(9,"home"),p()()(),h(10,"div",6),D(11,hU,5,1,"button",7),D(12,pU,2,0,"div",8),D(13,gU,5,1,"button",9),D(14,mU,2,0,"div",8),D(15,_U,5,1,"button",10),D(16,vU,2,0,"div",8),D(17,yU,5,1,"button",11),p(),D(18,CU,8,0,"button",12),D(19,bU,8,0,"button",12),D(20,SU,2,1,"button",13),D(21,wU,8,0,"button",13),p(),D(22,DU,22,1,"div",14),D(23,PU,11,6,"div",14),p()),2&e&&(m(11),C("ngIf",null!=i.ariane_type_id),m(1),C("ngIf",null!=i.ariane_universe_id&&null!=i.ariane_type_id),m(1),C("ngIf",null!=i.ariane_universe_id),m(1),C("ngIf",null!=i.ariane_series_id&&(null!=i.ariane_universe_id||null!=i.ariane_type_id)),m(1),C("ngIf",null!=i.ariane_series_id),m(1),C("ngIf",null!=i.ariane_season_id&&(null!=i.ariane_series_id||null!=i.ariane_universe_id||null!=i.ariane_type_id)),m(1),C("ngIf",null!=i.ariane_season_id),m(1),C("ngIf",null==i.login),m(1),C("ngIf",null==i.login),m(1),C("ngIf",null!=i.login),m(1),C("ngIf",1==i.edit_show),m(1),C("ngIf",null!=i.login&&1==i.displayUserMenu),m(1),C("ngIf",1==i.displayEditMenu))},directives:[We],styles:['.top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]{position:fixed;min-width:150px;min-height:70px;display:block;overflow:visible;box-shadow:none;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;box-sizing:border-box;flex-shrink:0;margin:0;padding:0 3px;border:none;z-index:300;box-shadow:0 2px 4px #0009}.top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:block;float:top;line-height:56px;z-index:4;margin:3px 0;border:0px;font-weight:700;font-size:17px;width:100%}.top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle}.top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]:after, .top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]:before{bottom:100%;right:13px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.top[_ngcontent-%COMP%] .sub-menu[_ngcontent-%COMP%]:after{border-color:#88b7d500;border-bottom-color:#263238;border-width:15px;margin-left:-15px}.top[_ngcontent-%COMP%] .user-menu[_ngcontent-%COMP%]{top:75px;right:15px}.top[_ngcontent-%COMP%] .edit-menu[_ngcontent-%COMP%]{top:75px;right:200px}.top[_ngcontent-%COMP%] .edit-menu-mob[_ngcontent-%COMP%]{top:75px;right:25px}.top[_ngcontent-%COMP%] .fill-all[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:400}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%]{position:fixed;top:0px;left:0px;display:block;overflow:visible;box-shadow:none;min-height:56px;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;box-sizing:border-box;flex-shrink:0;width:100%;margin:0;padding:0 12px;border:none;max-height:1000px;z-index:3;box-shadow:0 2px 4px #0009}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:block;float:left;line-height:56px;z-index:4;margin:0 3px;border:0;text-transform:uppercase;font-weight:700;font-size:17px}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]{visibility:"hidden"}@media all and (min-width: 700px){.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]{visibility:"visible"}}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .ariane[_ngcontent-%COMP%]{display:block;float:left;line-height:56px;z-index:4;padding:0 0 0 15px;margin:0 3px;border:0;text-transform:uppercase;font-weight:700;font-size:15px}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .ariane[_ngcontent-%COMP%] .item_ariane_separator[_ngcontent-%COMP%]{display:block;float:left;line-height:56px;z-index:4;margin:0 3px;border:0;text-transform:uppercase;font-weight:700;font-size:30px}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{vertical-align:middle}.top[_ngcontent-%COMP%] .main-menu[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{height:42px;width:42px;border-radius:50%;vertical-align:middle}']}),n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),NU=(()=>{class n{constructor(e,i,r){this.cookiesService=e,this.userService=i,this.sessionService=r,this.title="Karideo"}ngOnInit(){let e=this.cookiesService.get("yota-login"),i=this.cookiesService.get("yota-password");if(""!=e&&""!=i&&i.length>40){console.log("Get previous connection ... "+e+":xxxxxx");let r=this;this.userService.loginSha(e,i).then(function(o){console.log("auto log ==> OK"),r.sessionService.create(o.session,o.login,o.email,o.admin,o.avatar)}).catch(function(o){console.log("auto log ==> Error"),r.cookiesService.remove("yota-login"),r.cookiesService.remove("yota-password")})}}}return n.\u0275fac=function(e){return new(e||n)(y(Wh),y(lu),y(Os))},n.\u0275cmp=ye({type:n,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"main-content"]],template:function(e,i){1&e&&(I(0,"app-top-menu"),_(1,"\n--\x3e\n"),h(2,"div",0),I(3,"router-outlet"),p())},directives:[OU,Nf],styles:["#create-exercice-button[_ngcontent-%COMP%]{position:fixed;display:block;right:0;bottom:0;margin-right:40px;margin-bottom:40px;z-index:900}#save-exercice-button[_ngcontent-%COMP%]{position:fixed;display:block;right:0;bottom:0;margin-right:110px;margin-bottom:40px;z-index:900}.main-content[_ngcontent-%COMP%]{position:absolute;width:100%;height:calc(100% - 56px);top:56px;left:0;margin:0;padding:0;display:block;position:fixed;overflow-y:auto}"]}),n})(),kU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=St({type:n,bootstrap:[NU]}),n.\u0275inj=ft({providers:[oi,Bt,WS,so,fU,Os,Wh,lu,ii,ks,Ns,ri,nr,ao,Ct],imports:[[AC,Hf,dU,D2,L2,RV,FV]]}),n})();Cn_production&&function kA(){jy=!1}(),KO().bootstrapModule(kU).catch(n=>console.log(n))}},_e=>{_e(_e.s=813)}]); \ No newline at end of file diff --git a/sso/dist/polyfills.72511f90b6744c3f.js b/sso/dist/polyfills.72511f90b6744c3f.js deleted file mode 100644 index ab51c16..0000000 --- a/sso/dist/polyfills.72511f90b6744c3f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkkarideo=self.webpackChunkkarideo||[]).push([[429],{435:(be,Re,Ce)=>{Ce(609)},609:function(be,Re,Ce){var Ee,Le,ye=this&&this.__spreadArray||function(se,le,De){if(De||2===arguments.length)for(var fe,Te=0,Ve=le.length;Te",this._properties=a&&a.properties||{},this._zoneDelegate=new y(this,this._parent&&this._parent._zoneDelegate,a)}return v.assertZonePatched=function(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(v,"root",{get:function(){for(var o=v.current;o.parent;)o=o.parent;return o},enumerable:!1,configurable:!0}),Object.defineProperty(v,"current",{get:function(){return W.zone},enumerable:!1,configurable:!0}),Object.defineProperty(v,"currentTask",{get:function(){return ae},enumerable:!1,configurable:!0}),v.__load_patch=function(o,a,i){if(void 0===i&&(i=!1),O.hasOwnProperty(o)){if(!i&&f)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var w="Zone:"+o;t(w),O[o]=a(e,v,X),n(w,w)}},Object.defineProperty(v.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),v.prototype.get=function(o){var a=this.getZoneWith(o);if(a)return a._properties[o]},v.prototype.getZoneWith=function(o){for(var a=this;a;){if(a._properties.hasOwnProperty(o))return a;a=a._parent}return null},v.prototype.fork=function(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)},v.prototype.wrap=function(o,a){if("function"!=typeof o)throw new Error("Expecting function got: "+o);var i=this._zoneDelegate.intercept(this,o,a),w=this;return function(){return w.runGuarded(i,this,arguments,a)}},v.prototype.run=function(o,a,i,w){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,o,a,i,w)}finally{W=W.parent}},v.prototype.runGuarded=function(o,a,i,w){void 0===a&&(a=null),W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,o,a,i,w)}catch(Y){if(this._zoneDelegate.handleError(this,Y))throw Y}}finally{W=W.parent}},v.prototype.runTask=function(o,a,i){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||g).name+"; Execution: "+this.name+")");if(o.state!==U||o.type!==N&&o.type!==P){var w=o.state!=B;w&&o._transitionTo(B,F),o.runCount++;var Y=ae;ae=o,W={parent:W,zone:this};try{o.type==P&&o.data&&!o.data.isPeriodic&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,o,a,i)}catch(ce){if(this._zoneDelegate.handleError(this,ce))throw ce}}finally{o.state!==U&&o.state!==z&&(o.type==N||o.data&&o.data.isPeriodic?w&&o._transitionTo(F,B):(o.runCount=0,this._updateTaskCount(o,-1),w&&o._transitionTo(U,B,U))),W=W.parent,ae=Y}}},v.prototype.scheduleTask=function(o){if(o.zone&&o.zone!==this)for(var a=this;a;){if(a===o.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(o.zone.name));a=a.parent}o._transitionTo(x,U);var i=[];o._zoneDelegates=i,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(w){throw o._transitionTo(z,x,U),this._zoneDelegate.handleError(this,w),w}return o._zoneDelegates===i&&this._updateTaskCount(o,1),o.state==x&&o._transitionTo(F,x),o},v.prototype.scheduleMicroTask=function(o,a,i,w){return this.scheduleTask(new p(Z,o,a,i,w,void 0))},v.prototype.scheduleMacroTask=function(o,a,i,w,Y){return this.scheduleTask(new p(P,o,a,i,w,Y))},v.prototype.scheduleEventTask=function(o,a,i,w,Y){return this.scheduleTask(new p(N,o,a,i,w,Y))},v.prototype.cancelTask=function(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||g).name+"; Execution: "+this.name+")");o._transitionTo(k,F,B);try{this._zoneDelegate.cancelTask(this,o)}catch(a){throw o._transitionTo(z,k),this._zoneDelegate.handleError(this,a),a}return this._updateTaskCount(o,-1),o._transitionTo(U,k),o.runCount=0,o},v.prototype._updateTaskCount=function(o,a){var i=o._zoneDelegates;-1==a&&(o._zoneDelegates=null);for(var w=0;w0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:o})},v}(),p=function(){function v(o,a,i,w,Y,ce){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=o,this.source=a,this.data=w,this.scheduleFn=Y,this.cancelFn=ce,!i)throw new Error("callback is not defined");this.callback=i;var l=this;this.invoke=o===N&&w&&w.useG?v.invokeTask:function(){return v.invokeTask.call(e,l,this,arguments)}}return v.invokeTask=function(o,a,i){o||(o=this),Q++;try{return o.runCount++,o.zone.runTask(o,a,i)}finally{1==Q&&A(),Q--}},Object.defineProperty(v.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),v.prototype.cancelScheduleRequest=function(){this._transitionTo(U,x)},v.prototype._transitionTo=function(o,a,i){if(this._state!==a&&this._state!==i)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(o,"', expecting state '").concat(a,"'").concat(i?" or '"+i+"'":"",", was '").concat(this._state,"'."));this._state=o,o==U&&(this._zoneDelegates=null)},v.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},v.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},v}(),m=c("setTimeout"),T=c("Promise"),R=c("then"),C=[],H=!1;function V(v){if($||e[T]&&($=e[T].resolve(0)),$){var o=$[R];o||(o=$.then),o.call($,v)}else e[m](v,0)}function J(v){0===Q&&0===C.length&&V(A),v&&C.push(v)}function A(){if(!H){for(H=!0;C.length;){var v=C;C=[];for(var o=0;o=0;t--)"function"==typeof e[t]&&(e[t]=Xe(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ae=!("nw"in te)&&void 0!==te.process&&"[object process]"==={}.toString.call(te.process),Ke=!Ae&&!tr&&!(!Ne||!ke.HTMLElement),nr=void 0!==te.process&&"[object process]"==={}.toString.call(te.process)&&!tr&&!(!Ne||!ke.HTMLElement),je={},or=function(e){if(e=e||te.event){var r=je[e.type];r||(r=je[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||te,n=t[r];return Ke&&t===ke&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=se(e,r);if(!n&&t&&se(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var f=n.get,d=n.set,E=r.substr(2),y=je[E];y||(y=je[E]=G("ON_PROPERTY"+E)),n.set=function(p){var m=this;!m&&e===te&&(m=te),m&&("function"==typeof m[y]&&m.removeEventListener(E,or),d&&d.call(m,null),m[y]=p,"function"==typeof p&&m.addEventListener(E,or,!1))},n.get=function(){var p=this;if(!p&&e===te&&(p=te),!p)return null;var m=p[y];if(m)return m;if(f){var T=f.call(this);if(T)return n.set.call(this,T),"function"==typeof p.removeAttribute&&p.removeAttribute(r),T}return null},le(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n=0&&"function"==typeof d[E.cbIdx]?qe(E.name,d[E.cbIdx],E,u):c.apply(f,d)}})}function _e(e,r){e[G("OriginalDelegate")]=r}var ur=!1,Je=!1;function Rr(){if(ur)return Je;ur=!0;try{var e=ke.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Je=!0)}catch(r){}return Je}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var f=t.symbol,d=[],E=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],y=f("Promise"),p=f("then");t.onUnhandledError=function(l){if(t.showUncaughtError()){var _=l&&l.rejection;_?console.error("Unhandled Promise rejection:",_ instanceof Error?_.message:_,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",_,_ instanceof Error?_.stack:void 0):console.error(l)}},t.microtaskDrainDone=function(){for(var l=function(){var _=d.shift();try{_.zone.runGuarded(function(){throw _.throwOriginal?_.rejection:_})}catch(h){!function R(l){t.onUnhandledError(l);try{var _=r[T];"function"==typeof _&&_.call(this,l)}catch(h){}}(h)}};d.length;)l()};var T=f("unhandledPromiseRejectionHandler");function C(l){return l&&l.then}function H(l){return l}function $(l){return a.reject(l)}var V=f("state"),J=f("value"),A=f("finally"),g=f("parentPromiseValue"),U=f("parentPromiseState"),F=null,B=!0,k=!1;function Z(l,_){return function(h){try{X(l,_,h)}catch(s){X(l,!1,s)}}}var O=f("currentTaskTrace");function X(l,_,h){var s=function(){var l=!1;return function(h){return function(){l||(l=!0,h.apply(null,arguments))}}}();if(l===h)throw new TypeError("Promise resolved with itself");if(l[V]===F){var b=null;try{("object"==typeof h||"function"==typeof h)&&(b=h&&h.then)}catch(L){return s(function(){X(l,!1,L)})(),l}if(_!==k&&h instanceof a&&h.hasOwnProperty(V)&&h.hasOwnProperty(J)&&h[V]!==F)ae(h),X(l,h[V],h[J]);else if(_!==k&&"function"==typeof b)try{b.call(h,s(Z(l,_)),s(Z(l,!1)))}catch(L){s(function(){X(l,!1,L)})()}else{l[V]=_;var D=l[J];if(l[J]=h,l[A]===A&&_===B&&(l[V]=l[U],l[J]=l[g]),_===k&&h instanceof Error){var S=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;S&&u(h,O,{configurable:!0,enumerable:!1,writable:!0,value:S})}for(var M=0;M2}).map(function(r){return r.substring(2)})}function Ir(e,r){if((!Ae||nr)&&!Zone[e.symbol("patchEvents")]){var t=r.__Zone_ignore_on_properties,n=[];if(Ke){var u=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);var c=function Sr(){try{var e=ke.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(r){}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];dr(u,Qe(u),t&&t.concat(c),De(u))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(var f=0;f1?new c(E,y):new c(E),R=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return R&&!1===R.configurable?(m=e.ObjectCreate(p),T=p,[n,u,"send","close"].forEach(function(C){m[C]=function(){var H=e.ArraySlice.call(arguments);if(C===n||C===u){var $=H.length>0?H[0]:void 0;if($){var V=Zone.__symbol__("ON_PROPERTY"+$);p[V]=m[V]}}return p[C].apply(p,H)}})):m=p,e.patchOnProperties(m,["close","error","message","open"],T),m};var f=r.WebSocket;for(var d in c)f[d]=c[d]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){var n=Qe(e);t.patchOnProperties=ir,t.patchMethod=de,t.bindArguments=Ye,t.patchMacroTask=Or;var u=r.__symbol__("BLACK_LISTED_EVENTS"),c=r.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[u]=e[c]),e[u]&&(r[u]=r[c]=e[u]),t.patchEventPrototype=Zr,t.patchEventTarget=Dr,t.isIEOrEdge=Rr,t.ObjectDefineProperty=le,t.ObjectGetOwnPropertyDescriptor=se,t.ObjectCreate=Te,t.ArraySlice=Ve,t.patchClass=Me,t.wrapWithCurrentZone=Xe,t.filterProperties=hr,t.attachOriginToPatched=_e,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mr,t.getGlobalObjects=function(){return{globalSources:cr,zoneSymbolEventNames:ie,eventNames:n,isBrowser:Ke,isMix:nr,isNode:Ae,TRUE_STR:ve,FALSE_STR:he,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:fe,REMOVE_EVENT_LISTENER_STR:Ue}}});var e,r,Tr=ye(ye(ye(ye(ye(ye(ye(ye([],["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"],!0),["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],!0),["autocomplete","autocompleteerror"],!0),["toggle"],!0),["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],!0),["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],!0),["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],!0),["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"],!0);e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,f){f._redefineProperty=Nr,function Lr(){xe=Zone.__symbol__,Fe=Object[xe("defineProperty")]=Object.defineProperty,_r=Object[xe("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,pr=Object.create,ge=xe("unconfigurables"),Object.defineProperty=function(e,r,t){if(Er(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=$e(e,r,t)),yr(e,r,t,n)},Object.defineProperties=function(e,r){Object.keys(r).forEach(function(f){Object.defineProperty(e,f,r[f])});for(var t=0,n=Object.getOwnPropertySymbols(r);t0){var q=P.invoke;P.invoke=function(){for(var v=O[r.__symbol__("loadfalse")],o=0;o{be(be.s=435)}]); \ No newline at end of file diff --git a/sso/dist/runtime.cc13481b68283574.js b/sso/dist/runtime.cc13481b68283574.js deleted file mode 100644 index f044731..0000000 --- a/sso/dist/runtime.cc13481b68283574.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,_={},d={};function n(e){var a=d[e];if(void 0!==a)return a.exports;var r=d[e]={exports:{}};return _[e].call(r.exports,r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,o,l)=>{if(!r){var c=1/0;for(f=0;f=l)&&Object.keys(n.O).every(b=>n.O[b](r[t]))?r.splice(t--,1):(s=!1,l0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,o,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=o=>0===e[o];var a=(o,l)=>{var t,u,[f,c,s]=l,v=0;if(f.some(p=>0!==e[p])){for(t in c)n.o(c,t)&&(n.m[t]=c[t]);if(s)var i=s(n)}for(o&&o(l);v - - - - - - - image/svg+xml - - - - - - - - - diff --git a/sso/dist/styles.468a1aef1dcd6689.css b/sso/dist/styles.468a1aef1dcd6689.css deleted file mode 100644 index e98f657..0000000 --- a/sso/dist/styles.468a1aef1dcd6689.css +++ /dev/null @@ -1 +0,0 @@ -@media all and (min-width: 800px){.xdesktop{display:block}.xtablette,.xphone,.xmobile{display:none}}@media all and (min-width: 600px) and (max-width: 800px){.xdesktop{display:none}.xtablette{display:block}.xphone{display:none}.xmobile{display:block}}@media all and (max-width: 600px){.xdesktop,.xtablette{display:none}.xphone,.xmobile{display:block}}.clear{clear:both;text-align:center}html{font-size:24px;font-family:Roboto,Helvetica,Arial,sans-serif}.main-modal{width:100%;height:100%;top:0;left:0;margin:0;padding:0;display:block;position:fixed;z-index:1000}.number-input{border:5px solid #666;border-radius:8px;padding:4px 6px;text-align:center;text-decoration:none;display:inline-block;width:50%;right:0;position:absolute;margin:1px;transition-duration:.4s;cursor:pointer}.number-input :focus{border:5px solid #BBB}.hide{display:none}.circular-button{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;box-shadow:0 2px 4px #0009;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:0;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle;transition-duration:.4s}.circular-button:hover{box-shadow:0 8px 20px #000000e6}.circular-button:active{box-shadow:0 4px 10px #000000e6}.circular-button .material-icons{vertical-align:middle}.circular-button .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.button2-hidden{font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;text-transform:uppercase;letter-spacing:0;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;vertical-align:middle}.button2-hidden .material-icons{vertical-align:middle}.button2-hidden .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.button{text-shadow:none;border:none;border-radius:2px;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.button:disabled{cursor:not-allowed}.button .material-icons{vertical-align:middle}.button-close{text-shadow:none;border:none;border-radius:2px;position:relative;height:36px;margin:0;min-width:36px;padding:0;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle;background:rgba(0,0,0,0)}.button-close:disabled{cursor:not-allowed}.button-close .material-icons{vertical-align:middle}label{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.fill-x{width:100%}.fill-y{height:100%}.full-back{position:absolute;width:100%;height:100%;left:0;top:0;background-color:#2b3137;background-image:url(ikon_gray.d4678106f70ef192.svg);background-repeat:no-repeat;background-size:80%;background-attachment:fixed;background-position:50% 50%;z-index:-1}@media screen and (orientation: landscape){.clear{display:block;float:left;width:100%}.generic-page .fill-title{display:block;position:fixed;left:0px;top:50px;width:400px;float:left;padding:1%}.generic-page .fill-title .cover-area{float:right;width:100%}.generic-page .fill-title .cover-area .cover{align:center;width:60%;margin:0 auto}.generic-page .fill-title .cover-area .cover img,.generic-page .fill-title .description-area-cover,.generic-page .fill-title .description-area-no-cover{width:100%}.generic-page .fill-title .description-area{float:left}.generic-page .fill-title .description-area .title{background-color:green;font-size:45px;font-weight:700;line-height:60px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;text-shadow:1px 1px 2px white,0 0 1em white,0 0 .2em white;text-transform:uppercase;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .sub-title-main{font-size:33px;font-weight:700;line-height:40px;width:100%;align:center;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .sub-title{font-size:33px;font-weight:700;line-height:40px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .description{font-size:24px;width:calc(100% - 28px);text-align:left;vertical-align:middle;background:rgba(150,150,150,.9);padding:14px;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-content{display:block;margin:0 0 0 430px;padding:0;float:left}.generic-page .fill-content .title{font-size:33px;font-weight:700;line-height:40px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-content .item{font-size:20px;height:290px;width:200px;margin:5px;padding:0;overflow:hidden;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;will-change:box-shadow;outline:none;cursor:pointer;transition-duration:.4s;float:left}.generic-page .fill-content .item:hover{box-shadow:2px 2px 4px 3px #000000b3}.generic-page .fill-content .item .material-icons{vertical-align:middle}.generic-page .fill-content .item .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.generic-page .fill-content .item-list{font-size:20px;height:110px;width:80%;margin:5px auto;padding:5px;overflow:hidden;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;will-change:box-shadow;outline:none;cursor:pointer;background:rgba(255,255,255,.3);border-radius:7px}.generic-page .fill-content .item-list .material-icons{vertical-align:middle}.generic-page .fill-content .item-list .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.generic-page .cover{width:30%}.generic-page .cover img{width:100%}}@media all and (min-width: 3910px) and (orientation: landscape){.colomn_mutiple{width:3150px;margin:auto}}@media all and (min-width: 3700px) and (max-width: 3910px) and (orientation: landscape){.colomn_mutiple{width:3150px;margin:auto}}@media all and (min-width: 3390px) and (max-width: 3700px) and (orientation: landscape){.colomn_mutiple{width:2940px;margin:auto}}@media all and (min-width: 3180px) and (max-width: 3390px) and (orientation: landscape){.colomn_mutiple{width:2730px;margin:auto}}@media all and (min-width: 2970px) and (max-width: 3180px) and (orientation: landscape){.colomn_mutiple{width:2520px;margin:auto}}@media all and (min-width: 2760px) and (max-width: 2970px) and (orientation: landscape){.colomn_mutiple{width:2310px;margin:auto}}@media all and (min-width: 2550px) and (max-width: 2760px) and (orientation: landscape){.colomn_mutiple{width:2100px;margin:auto}}@media all and (min-width: 2340px) and (max-width: 2550px) and (orientation: landscape){.colomn_mutiple{width:1890px;margin:auto}}@media all and (min-width: 2130px) and (max-width: 2340px) and (orientation: landscape){.colomn_mutiple{width:1680px;margin:auto}}@media all and (min-width: 1920px) and (max-width: 2130px) and (orientation: landscape){.colomn_mutiple{width:1470px;margin:auto}}@media all and (min-width: 1710px) and (max-width: 1920px) and (orientation: landscape){.colomn_mutiple{width:1260px;margin:auto}}@media all and (min-width: 1500px) and (max-width: 1710px) and (orientation: landscape){.colomn_mutiple{width:1050px}}@media all and (min-width: 1290px) and (max-width: 1500px) and (orientation: landscape){.colomn_mutiple{width:840px;margin:auto}}@media all and (min-width: 1080px) and (max-width: 1290px) and (orientation: landscape){.colomn_mutiple{width:630px;margin:auto}}@media all and (max-width: 1080px) and (orientation: landscape){.colomn_mutiple{width:420px;margin:auto}}@media screen and (orientation: portrait){.clear{clear:both;text-align:center}.generic-page .fill-title{display:block;position:relative;padding:1%}.generic-page .fill-title .cover-area{float:right;width:300px}.generic-page .fill-title .cover-area .cover{width:100%;margin:auto}.generic-page .fill-title .cover-area .cover img{width:100%}.generic-page .fill-title .description-area-cover{width:calc(100% - 302px)}.generic-page .fill-title .description-area-no-cover{width:100%}.generic-page .fill-title .description-area{float:left}.generic-page .fill-title .description-area .title{font-size:45px;font-weight:700;line-height:60px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;text-shadow:1px 1px 2px white,0 0 1em white,0 0 .2em white;text-transform:uppercase;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .sub-title-main{font-size:33px;font-weight:700;line-height:40px;width:100%;align:center;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .sub-title{font-size:33px;font-weight:700;line-height:40px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-title .description-area .description{font-size:24px;text-align:left;width:calc(100% - 28px);vertical-align:middle;background:rgba(150,150,150,.9);padding:14px;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-content .title{font-size:33px;font-weight:700;line-height:40px;width:100%;align:left;text-align:left;vertical-align:middle;margin:10px 0;font-family:Roboto,Helvetica,Arial,sans-serif}.generic-page .fill-content .item{font-size:20px;height:290px;width:200px;margin:5px;padding:0;overflow:hidden;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;will-change:box-shadow;outline:none;cursor:pointer;transition-duration:.4s;float:left}.generic-page .fill-content .item:hover{box-shadow:2px 2px 4px 3px #000000b3}.generic-page .fill-content .item .material-icons{vertical-align:middle}.generic-page .fill-content .item .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.generic-page .fill-content .item-list{font-size:20px;height:110px;width:95%;margin:5px auto;padding:5px;overflow:hidden;line-height:normal;border:none;font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:500;will-change:box-shadow;outline:none;cursor:pointer;background:rgba(255,255,255,.3);border-radius:7px}.generic-page .fill-content .item-list .material-icons{vertical-align:middle}.generic-page .fill-content .item-list .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.generic-page .cover{width:30%}.generic-page .cover img{width:100%}}@media all and (min-width: 3510px) and (orientation: portrait){.colomn_mutiple{width:3150px;margin:auto}}@media all and (min-width: 3300px) and (max-width: 3510px) and (orientation: portrait){.colomn_mutiple{width:3150px;margin:auto}}@media all and (min-width: 2990px) and (max-width: 3300px) and (orientation: portrait){.colomn_mutiple{width:2940px;margin:auto}}@media all and (min-width: 2780px) and (max-width: 2990px) and (orientation: portrait){.colomn_mutiple{width:2730px;margin:auto}}@media all and (min-width: 2570px) and (max-width: 2780px) and (orientation: portrait){.colomn_mutiple{width:2520px;margin:auto}}@media all and (min-width: 2360px) and (max-width: 2570px) and (orientation: portrait){.colomn_mutiple{width:2310px;margin:auto}}@media all and (min-width: 2150px) and (max-width: 2360px) and (orientation: portrait){.colomn_mutiple{width:2100px;margin:auto}}@media all and (min-width: 1940px) and (max-width: 2150px) and (orientation: portrait){.colomn_mutiple{width:1890px;margin:auto}}@media all and (min-width: 1730px) and (max-width: 1940px) and (orientation: portrait){.colomn_mutiple{width:1680px;margin:auto}}@media all and (min-width: 1520px) and (max-width: 1730px) and (orientation: portrait){.colomn_mutiple{width:1470px;margin:auto}}@media all and (min-width: 1310px) and (max-width: 1520px) and (orientation: portrait){.colomn_mutiple{width:1260px;margin:auto}}@media all and (min-width: 1100px) and (max-width: 1310px) and (orientation: portrait){.colomn_mutiple{width:1050px;margin:auto}}@media all and (min-width: 890px) and (max-width: 1100px) and (orientation: portrait){.colomn_mutiple{width:840px;margin:auto}}@media all and (min-width: 680px) and (max-width: 890px) and (orientation: portrait){.colomn_mutiple{width:630px;margin:auto}}@media all and (max-width: 680px) and (orientation: portrait){.colomn_mutiple{width:420px;margin:auto}}.edit-page .title{font-size:45px;font-weight:700;line-height:60px;width:100%;align:center;height:50px;text-align:center;vertical-align:middle;margin:10px 0;text-shadow:1px 1px 2px white,0 0 1em white,0 0 .2em white;text-transform:uppercase;font-family:Roboto,Helvetica,Arial,sans-serif}.edit-page .fill-all{max-width:80%;height:100%;margin:20px auto;padding:20px;border:0;background-color:#c8c8c880;box-shadow:0 2px 4px #0009}.edit-page .message-big{width:90%;margin:0 auto;font-size:50px;text-align:center}.edit-page .request_raw2{width:90%;margin:0 auto;height:160px}.edit-page .request_raw2 .label{width:15%;margin-right:10px;text-align:right;float:left;display:block}.edit-page .request_raw2 .input{width:75%;float:left;display:block}.edit-page .request_raw2 .input textarea{width:100%;font-size:20px;resize:none}.edit-page .request_raw{width:90%;margin:0 auto;height:45px}.edit-page .request_raw .label{width:15%;margin-right:10px;text-align:right;float:left;display:block}.edit-page .request_raw .input{width:75%;float:left;display:block}.edit-page .request_raw .input input,.edit-page .request_raw .input select,.edit-page .request_raw .input textarea{width:100%;font-size:20px}.edit-page .request_raw .input_add{width:5%;float:right;display:block}.edit-page .send_value{width:300px;margin:0 auto;padding:10px;display:block}.edit-page .hide-element{display:none}.edit-page .cover{position:relative;width:200px;height:250px;overflow:hidden;float:left;display:block}.edit-page .cover .cover-image{position:absolute;width:200px;height:250px}.edit-page .cover .cover-image img{max-width:100%;max-height:100%;height:auto}.edit-page .cover .cover-no-image{position:absolute;width:190px;height:240px;margin:0 auto;border:solid 5px;border-color:#000000b3}.edit-page .cover .cover-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.edit-page .cover button{border:none;background:none}.edit-page .cover .button-remove{font-size:75px;color:#f00000}.edit-page .cover .button-add{font-size:75px;color:#00f000}.color-1-action-button{background:#03a9f4;color:#ebebeb}.color-1-background{background:#0288d1;color:#ebebeb}.color-2-action-button{background:#3f51b5;color:#ebebeb}.color-2-background{background:#303f9f;color:#ebebeb}.color-internal-button{transition-duration:.4s}.color-internal-button :hover{background:rgba(0,0,0,.3)}.color-menu-background{color:#fff;background-color:#263238}.color-menu-background .item{background:transparent;color:#ccc}.color-menu-background .item:hover{background:rgba(1,1,1,.5);color:#fff}.color-menu-background .enable{background:rgba(1,1,1,.3);color:#03a9f4}.color-background{background:#fafafa}.color-background-vignette{background:#e8e8e8}.color-background-modal{transition-duration:.4s;background:rgba(0,0,0,.3)}.color-button-cancel{background-color:#c0c8d6;color:#636363}.color-button-cancel:enabled{background-color:#f23a15;color:#000}.color-button-validate{background-color:#ddd;color:#636363}.color-button-validate:enabled{background-color:#4caf50;color:#000}.color-button-normal{background-color:#ddd;color:#636363}.color-button-normal:enabled{background-color:#14c8ff;color:#000}.color-shadow-black{box-shadow:0 2px 4px #0009;transition-duration:.4s}.color-shadow-black:hover:enabled{box-shadow:0 8px 20px #000000e6}.color-shadow-black:active:enabled{box-shadow:0 4px 10px #000000e6}.color-shadow-light{box-shadow:0 2px 4px #fff9;transition-duration:.4s}.color-shadow-light:hover:enabled{box-shadow:0 8px 20px #ffffffe6}.color-shadow-light:active:enabled{box-shadow:0 4px 10px #ffffffe6}.container-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.container-checkbox input{position:absolute;opacity:0;cursor:pointer}.container-checkbox .checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border:1px solid #333;background-color:#eee}.container-checkbox:hover input~.checkmark{background-color:#ccc}.container-checkbox input:checked~.checkmark{background-color:#2196f3;border:0px}.container-checkbox .checkmark:after{content:"";position:absolute;display:none}.container-checkbox input:checked~.checkmark:after{display:block}.container-checkbox .checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}modal .modal{display:none;position:fixed;z-index:10000;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto}modal .modal-header{padding:2px 16px}modal .modal-body{padding:2px 16px}modal .modal-footer{padding:2px 16px}modal .modal-content{border:0px solid #000;border-radius:3px;position:relative;margin:auto;padding:0;width:50%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;-webkit-animation-name:animatetop;animation-name:animatetop;-webkit-animation-duration:.4s;animation-duration:.4s}@-webkit-keyframes animatetop{0%{top:-300px;opacity:0}to{top:0;opacity:1}}@keyframes animatetop{0%{top:-300px;opacity:0}to{top:0;opacity:1}}@-webkit-keyframes animatetopout{0%{top:0;opacity:1}to{top:-300px;opacity:0}}@keyframes animatetopout{0%{top:0;opacity:1}to{top:-300px;opacity:0}}modal .modal-button{transition-duration:.4s}modal .modal-button:hover,modal .modal-button:focus{cursor:pointer}modal .modal-button-pos-1{float:right;position:absolute;top:16px;right:16px;font-size:48px}modal .modal-button-pos-2{float:right;position:absolute;top:16px;right:66px;font-size:48px}modal .modal-button-pos-3{float:right;position:absolute;top:16px;right:116px;font-size:48px}modal .centered{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)} diff --git a/sso/dist/time.aab7f1976479dd88.svg b/sso/dist/time.aab7f1976479dd88.svg deleted file mode 100644 index 512f7bb..0000000 --- a/sso/dist/time.aab7f1976479dd88.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/sso/dist/validate-not.3776f046a97cbd9e.svg b/sso/dist/validate-not.3776f046a97cbd9e.svg deleted file mode 100644 index c58892c..0000000 --- a/sso/dist/validate-not.3776f046a97cbd9e.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/sso/dist/validate.ed930e03cefe36d9.svg b/sso/dist/validate.ed930e03cefe36d9.svg deleted file mode 100644 index ca4fd13..0000000 --- a/sso/dist/validate.ed930e03cefe36d9.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file