diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt deleted file mode 100644 index 13ca539f..00000000 --- a/LICENSES/CC-BY-4.0.txt +++ /dev/null @@ -1,156 +0,0 @@ -Creative Commons Attribution 4.0 International - - Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - -Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. - -Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - -Section 1 – Definitions. - - a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. - - d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. - - g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. - - i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. - - j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. - - k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. - -Section 2 – Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: - - A. reproduce and Share the Licensed Material, in whole or in part; and - - B. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. - - 3. Term. The term of this Public License is specified in Section 6(a). - - 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. - - 5. Downstream recipients. - - A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. - - B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. - - 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). - -b. Other rights. - - 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this Public License. - - 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified form), You must: - - A. retain the following if it is supplied by the Licensor with the Licensed Material: - - i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of warranties; - - v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; - - B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and - - C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. - - 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; - - b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - - a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. - - b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. - - c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - - a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or - - 2. upon express reinstatement by the Licensor. - - c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. - - d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. - - e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. - -Section 8 – Interpretation. - - a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. - - c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. - - d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. diff --git a/REUSE.toml b/REUSE.toml index b6bd296f..d3e0222f 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -35,6 +35,18 @@ path = [ "**/chat/main.dart.mjs", "**/chat/index.html", "**/chat/*.json", + "**/static/**/*.json", + "**/static/**/*.html", + "**/static/**/*.txt", + "**/static/**/*.css", + "**/static/**/*.js", + "**/static/**/*.ico", + "**/static/*.json", + "**/static/*.html", + "**/static/*.txt", + "**/static/*.css", + "**/static/*.js", + "**/static/*.ico", ] precedence = "override" SPDX-FileCopyrightText = "2025 Deutsche Telekom AG and others" diff --git a/adl-server/AGENTS.md b/adl-server/AGENTS.md index 5f706d1a..c38d25c0 100644 --- a/adl-server/AGENTS.md +++ b/adl-server/AGENTS.md @@ -6,9 +6,19 @@ SPDX-License-Identifier: CC-BY-4.0 # ADL Server The **ADL Server** is a Ktor-based microservice that provides a GraphQL API for compiling and formatting ADL (Assistant Description Language) code. It is designed to be used as part of the ARC AI framework, enabling dynamic parsing and transformation of use case definitions written in ADL. +The architecture of this module follows the SOLID principles to ensure maintainability, scalability, and testability. + ## Coding Guidelines - Every file MUST contain the SPDX license identifier at the top. - Clean Code principles should be followed. - Each class MUST contain a KDoc comment explaining its purpose. -- Each class MUST have unit tests covering at least 80% of its functionality. \ No newline at end of file +- Each class MUST have unit tests covering at least 80% of its functionality. + +### SOLID Principles + +* **Single Responsibility Principle (SRP)**: Each class should have a single responsibility. For example, `TestExecutor` is responsible solely for executing tests, while `ConversationEvaluator` focuses on evaluating conversation outcomes. +* **Open/Closed Principle (OCP)**: Classes should be open for extension but closed for modification. strategies and listeners can be used to extend behavior without altering core logic. +* **Liskov Substitution Principle (LSP)**: Subtypes must be substitutable for their base types. +* **Interface Segregation Principle (ISP)**: Clients should not be forced to depend on interfaces they do not use. Keep interfaces small and focused. +* **Dependency Inversion Principle (DIP)**: Depend on abstractions, not concretions. Use dependency injection to provide dependencies. diff --git a/adl-server/Dockerfile b/adl-server/Dockerfile new file mode 100644 index 00000000..71765e81 --- /dev/null +++ b/adl-server/Dockerfile @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +# +# SPDX-License-Identifier: Apache-2.0 + +FROM gradle:8-jdk24-corretto AS build +WORKDIR /home/gradle/project +COPY --chown=gradle:gradle . . +# Ensure gradlew is executable +RUN chmod +x gradlew +# Skip tests to speed up the build +RUN ./gradlew :adl-server:installDist --no-daemon -x test + +FROM eclipse-temurin:21-jre-jammy +WORKDIR /app +COPY --from=build /home/gradle/project/adl-server/build/install/adl-server/ /app/ +EXPOSE 8080 +ENTRYPOINT ["/app/bin/adl-server"] diff --git a/adl-server/GraalVMDockerfile b/adl-server/GraalVMDockerfile new file mode 100644 index 00000000..d3dddb07 --- /dev/null +++ b/adl-server/GraalVMDockerfile @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +# +# SPDX-License-Identifier: Apache-2.0 + +# Stage 1: Build the native image +FROM ghcr.io/graalvm/native-image-community:21 AS build + +WORKDIR /app + +# Copy the entire repository to ensure all dependent modules are available +COPY . . + +# Ensure gradlew is executable +RUN chmod +x gradlew + +RUN ./gradlew :adl-server:clean + +# Build the native image using Gradle +# -x test skips tests +# --info provides more detailed logs to diagnose the error +# -Dorg.gradle.jvmargs sets memory limits for the Gradle daemon to prevent it from consuming all RAM before Native Image runs +RUN ./gradlew :adl-server:nativeCompile -x test --info -Dorg.gradle.jvmargs="-Xmx2g" + +# Stage 2: Create the runtime image +FROM gcr.io/distroless/base-debian12 + +WORKDIR /app + +# Copy the native binary from the build stage +COPY --from=build /app/adl-server/build/native/nativeCompile/adl-server /app/server + +EXPOSE 8080 + +# Set the entrypoint to the native binary +ENTRYPOINT ["/app/server"] diff --git a/adl-server/README.md b/adl-server/README.md index 2093cde9..0515d732 100644 --- a/adl-server/README.md +++ b/adl-server/README.md @@ -37,6 +37,35 @@ The server can be configured using the following environment variables: By default, the server listens on port `8080`. You can override the port by setting the environment variable `ADL_SERVER_PORT`. +### Docker + +You can also run the server using Docker. + +#### Build the Docker Image + +Run the following command from the root of the repository: + +```sh +docker build -f adl-server/Dockerfile -t adl-server . +``` + +#### Run via GitHub Container Registry + +To pull and run the latest image from the GitHub Container Registry: + +1. **Login to GitHub Container Registry** (if required): + Follow the instructions here: [Working with the Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) + +2. **Run the container**: + + ```bash + docker run -p 8080:8080 \ + -e ARC_AI_KEY=[OPENAI_API_KEY] \ + -e ARC_MODEL=gpt-4o \ + -e ARC_CLIENT=openai \ + ghcr.io/eclipse-lmos/adl-server:latest + ``` + ### GraphQL Endpoint The main endpoint is available at: diff --git a/adl-server/build.gradle.kts b/adl-server/build.gradle.kts index 996e5eb6..d5245845 100644 --- a/adl-server/build.gradle.kts +++ b/adl-server/build.gradle.kts @@ -5,21 +5,105 @@ plugins { alias(libs.plugins.ktor) id("sh.ondr.koja") version "0.4.6" + id("org.graalvm.buildtools.native") version "0.11.3" } application { mainClass = "org.eclipse.lmos.adl.server.AdlServerKt" } +tasks.shadowJar { + isZip64 = true +} + +graalvmNative { + binaries { + named("main") { + fallback.set(false) + verbose.set(true) + + buildArgs.add("--initialize-at-build-time=ch.qos.logback") + buildArgs.add("--initialize-at-build-time=io.ktor,kotlin") + buildArgs.add("--initialize-at-build-time=org.slf4j.LoggerFactory") + + buildArgs.add("--initialize-at-build-time=org.slf4j.helpers.Reporter") + buildArgs.add("--initialize-at-build-time=kotlinx.io.bytestring.ByteString") + buildArgs.add("--initialize-at-build-time=kotlinx.io.SegmentPool") + + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.Json") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.JsonImpl") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.ClassDiscriminatorMode") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.modules.SerializersModuleKt") + + buildArgs.add("--initialize-at-build-time=io.grpc.netty.shaded.io.netty") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.BouncyCastleAlpnSslUtils") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.AbstractReferenceCountedByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.PooledByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.UnpooledHeapByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.ByteBuf") + buildArgs.add("--initialize-at-build-time=org.bouncycastle") + buildArgs.add("--initialize-at-build-time=kotlinx.io.files.PathsJvmKt") + buildArgs.add("--initialize-at-build-time=kotlinx.io.files.FileSystemJvmKt") + + buildArgs.add("-H:+InstallExitHandlers") + buildArgs.add("-H:+ReportUnsupportedElementsAtRuntime") + buildArgs.add("-H:+ReportExceptionStackTraces") + + imageName.set("graalvm-server") + } + + named("test"){ + fallback.set(false) + verbose.set(true) + + buildArgs.add("--initialize-at-build-time=ch.qos.logback") + buildArgs.add("--initialize-at-build-time=io.ktor,kotlin") + buildArgs.add("--initialize-at-build-time=org.slf4j.LoggerFactory") + + buildArgs.add("--initialize-at-build-time=org.slf4j.helpers.Reporter") + buildArgs.add("--initialize-at-build-time=kotlinx.io.bytestring.ByteString") + buildArgs.add("--initialize-at-build-time=kotlinx.io.SegmentPool") + + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.Json") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.JsonImpl") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.json.ClassDiscriminatorMode") + buildArgs.add("--initialize-at-build-time=kotlinx.serialization.modules.SerializersModuleKt") + + buildArgs.add("--initialize-at-build-time=io.grpc.netty.shaded.io.netty") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.BouncyCastleAlpnSslUtils") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.AbstractReferenceCountedByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.PooledByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.UnpooledHeapByteBuf") + buildArgs.add("--initialize-at-run-time=io.grpc.netty.shaded.io.netty.buffer.ByteBuf") + buildArgs.add("--initialize-at-build-time=org.bouncycastle") + buildArgs.add("--initialize-at-build-time=kotlinx.io.files.PathsJvmKt") + buildArgs.add("--initialize-at-build-time=kotlinx.io.files.FileSystemJvmKt") + + buildArgs.add("-H:+InstallExitHandlers") + buildArgs.add("-H:+ReportUnsupportedElementsAtRuntime") + buildArgs.add("-H:+ReportExceptionStackTraces") + + val path = "${projectDir}/src/test/resources/META-INF/native-image/" + buildArgs.add("-H:ReflectionConfigurationFiles=${path}reflect-config.json") + buildArgs.add("-H:ResourceConfigurationFiles=${path}resource-config.json") + + imageName.set("adl-server-test") + } + } +} + dependencies { implementation(project(":arc-assistants")) implementation(project(":arc-api")) implementation(project(":adl-kotlin-runner")) + implementation(project(":arc-mcp")) implementation(libs.ktor.server.core) implementation(libs.ktor.server.cio) implementation(libs.ktor.server.websockets) implementation(libs.ktor.server.static) + implementation(libs.ktor.server.cors) + implementation(libs.ktor.server.sse) implementation(libs.graphql.kotlin.ktor) implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.10.2") @@ -30,6 +114,9 @@ dependencies { implementation(project(":arc-azure-client")) // implementation("dev.langchain4j:langchain4j-ollama:1.8.0") + // Mutsache + implementation("com.github.spullara.mustache.java:compiler:0.9.14") + // Qdrant implementation("io.qdrant:client:1.15.0") implementation("com.google.guava:guava:33.5.0-jre") @@ -38,7 +125,8 @@ dependencies { // Embeddings implementation("dev.langchain4j:langchain4j:1.9.1") implementation("dev.langchain4j:langchain4j-embeddings:1.9.1-beta17") - implementation("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.9.1-beta17") + // implementation("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.11.0-beta19") + implementation("dev.langchain4j:langchain4j-embeddings-bge-small-en-v15-q:1.11.0-beta19") // OpenTelemetry dependencies implementation(platform("io.opentelemetry:opentelemetry-bom:1.55.0")) @@ -50,6 +138,12 @@ dependencies { implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure") implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi") + // Bouncy Castle + implementation("org.bouncycastle:bctls-jdk18on:1.78.1") + implementation("org.bouncycastle:bcpkix-jdk18on:1.78.1") + implementation("org.bouncycastle:bcprov-jdk18on:1.78.1") + implementation("io.ktor:ktor-server-sse:3.3.3") + // Test dependencies testImplementation(libs.ktor.client.core) testImplementation(libs.ktor.client.cio.jvm) diff --git a/adl-server/src/main/kotlin/AdlServer.kt b/adl-server/src/main/kotlin/AdlServer.kt index 6aceaf95..d5ccf7b9 100644 --- a/adl-server/src/main/kotlin/AdlServer.kt +++ b/adl-server/src/main/kotlin/AdlServer.kt @@ -4,37 +4,75 @@ package org.eclipse.lmos.adl.server +// import dev.langchain4j.model.embedding.onnx.allminilml6v2.AllMiniLmL6V2EmbeddingModel import com.expediagroup.graphql.server.ktor.GraphQL import com.expediagroup.graphql.server.ktor.defaultGraphQLStatusPages import com.expediagroup.graphql.server.ktor.graphQLPostRoute import com.expediagroup.graphql.server.ktor.graphiQLRoute -import dev.langchain4j.model.embedding.onnx.allminilml6v2.AllMiniLmL6V2EmbeddingModel +import dev.langchain4j.model.embedding.onnx.bgesmallenv15q.BgeSmallEnV15QuantizedEmbeddingModel +import io.ktor.http.* import io.ktor.server.application.* import io.ktor.server.cio.* import io.ktor.server.engine.* +import io.ktor.server.http.content.* +import io.ktor.server.plugins.cors.routing.* import io.ktor.server.plugins.statuspages.* -import io.ktor.server.routing.routing +import io.ktor.server.response.* +import io.ktor.server.routing.* +import io.ktor.server.sse.* import kotlinx.coroutines.runBlocking import org.eclipse.lmos.adl.server.agents.createAssistantAgent import org.eclipse.lmos.adl.server.agents.createEvalAgent import org.eclipse.lmos.adl.server.agents.createExampleAgent +import org.eclipse.lmos.adl.server.agents.createImprovementAgent +import org.eclipse.lmos.adl.server.agents.createSpellingAgent import org.eclipse.lmos.adl.server.agents.createTestCreatorAgent -import org.eclipse.lmos.adl.server.embeddings.QdrantUseCaseEmbeddingsStore -import org.eclipse.lmos.adl.server.inbound.AdlAssistantMutation -import org.eclipse.lmos.adl.server.inbound.AdlCompilerMutation -import org.eclipse.lmos.adl.server.inbound.AdlEvalMutation -import org.eclipse.lmos.adl.server.inbound.AdlExampleQuery -import org.eclipse.lmos.adl.server.inbound.AdlMutation -import org.eclipse.lmos.adl.server.inbound.AdlQuery -import org.eclipse.lmos.adl.server.inbound.AdlTestCreatorMutation -import org.eclipse.lmos.adl.server.inbound.AdlTestQuery -import org.eclipse.lmos.adl.server.inbound.AdlValidationMutation +import org.eclipse.lmos.adl.server.agents.createTestVariantCreatorAgent +import org.eclipse.lmos.adl.server.agents.createWidgetCreatorAgent import org.eclipse.lmos.adl.server.inbound.GlobalExceptionHandler -import org.eclipse.lmos.adl.server.inbound.SystemPromptMutation -import org.eclipse.lmos.adl.server.repositories.InMemoryTestCaseRepository +import org.eclipse.lmos.adl.server.inbound.mutation.AdlAssistantMutation +import org.eclipse.lmos.adl.server.inbound.mutation.AdlCompilerMutation +import org.eclipse.lmos.adl.server.inbound.mutation.AdlEvalMutation +import org.eclipse.lmos.adl.server.inbound.mutation.AdlExampleMutation +import org.eclipse.lmos.adl.server.inbound.mutation.AdlStorageMutation +import org.eclipse.lmos.adl.server.inbound.mutation.AdlValidationMutation +import org.eclipse.lmos.adl.server.inbound.mutation.McpMutation +import org.eclipse.lmos.adl.server.inbound.mutation.RolePromptMutation +import org.eclipse.lmos.adl.server.inbound.mutation.SpellingMutation +import org.eclipse.lmos.adl.server.inbound.mutation.SystemPromptMutation +import org.eclipse.lmos.adl.server.inbound.mutation.TestCreatorMutation +import org.eclipse.lmos.adl.server.inbound.mutation.UseCaseImprovementMutation +import org.eclipse.lmos.adl.server.inbound.mutation.UserSettingsMutation +import org.eclipse.lmos.adl.server.inbound.mutation.WidgetsMutation +import org.eclipse.lmos.adl.server.inbound.query.AdlQuery +import org.eclipse.lmos.adl.server.inbound.query.DashboardQuery +import org.eclipse.lmos.adl.server.inbound.query.McpToolsQuery +import org.eclipse.lmos.adl.server.inbound.query.RolePromptQuery +import org.eclipse.lmos.adl.server.inbound.query.TestCaseQuery +import org.eclipse.lmos.adl.server.inbound.query.UserSettingsQuery +import org.eclipse.lmos.adl.server.inbound.query.WidgetQuery +import org.eclipse.lmos.adl.server.inbound.rest.clientEvents +import org.eclipse.lmos.adl.server.inbound.rest.openAICompletions +import org.eclipse.lmos.adl.server.model.Adl +import org.eclipse.lmos.adl.server.repositories.AdlRepository +import org.eclipse.lmos.adl.server.repositories.RolePromptRepository +import org.eclipse.lmos.adl.server.repositories.UseCaseEmbeddingsRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryAdlRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryRolePromptRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryStatisticsRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryTestCaseRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryUseCaseEmbeddingsStore +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryUserSettingsRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryWidgetRepository +import org.eclipse.lmos.adl.server.services.ClientEventPublisher import org.eclipse.lmos.adl.server.services.ConversationEvaluator +import org.eclipse.lmos.adl.server.services.McpService +import org.eclipse.lmos.adl.server.services.TestExecutor +import org.eclipse.lmos.adl.server.services.UserDefinedCompleterProvider import org.eclipse.lmos.adl.server.sessions.InMemorySessions import org.eclipse.lmos.adl.server.templates.TemplateLoader +import org.eclipse.lmos.arc.assistants.support.usecases.toUseCases +import java.time.Instant.now fun startServer( wait: Boolean = true, @@ -45,26 +83,83 @@ fun startServer( // Dependencies val templateLoader = TemplateLoader() val sessions = InMemorySessions() - val embeddingModel = AllMiniLmL6V2EmbeddingModel() - val useCaseStore = QdrantUseCaseEmbeddingsStore(embeddingModel, qdrantConfig) + // val embeddingModel = AllMiniLmL6V2EmbeddingModel() + val embeddingModel = BgeSmallEnV15QuantizedEmbeddingModel() + // val useCaseStore: UseCaseEmbeddingsRepository = QdrantUseCaseEmbeddingsStore(embeddingModel, qdrantConfig) + val embeddingStore: UseCaseEmbeddingsRepository = InMemoryUseCaseEmbeddingsStore(embeddingModel) + val adlStorage: AdlRepository = InMemoryAdlRepository() + val rolePromptRepository: RolePromptRepository = InMemoryRolePromptRepository() + val mcpService = McpService() val testCaseRepository = InMemoryTestCaseRepository() + val userSettingsRepository = InMemoryUserSettingsRepository() + val widgetRepository = InMemoryWidgetRepository() + val clientEventPublisher = ClientEventPublisher() + val completerProvider = UserDefinedCompleterProvider() + val statisticsRepository = InMemoryStatisticsRepository() // Agents - val exampleAgent = createExampleAgent() - val evalAgent = createEvalAgent() - val assistantAgent = createAssistantAgent() - val testCreatorAgent = createTestCreatorAgent() + val exampleAgent = createExampleAgent(completerProvider) + val evalAgent = createEvalAgent(completerProvider) + val facesAgent = createWidgetCreatorAgent(completerProvider) + val assistantAgent = + createAssistantAgent( + mcpService, + testCaseRepository, + embeddingStore, + adlStorage, + embeddingModel, + widgetRepository, + rolePromptRepository, + clientEventPublisher, + completerProvider + ) val conversationEvaluator = ConversationEvaluator(embeddingModel) + val testCreatorAgent = createTestCreatorAgent(completerProvider) + val improvementAgent = createImprovementAgent(completerProvider) + val spellingAgent = createSpellingAgent(completerProvider) + val testVariantAgent = createTestVariantCreatorAgent(completerProvider) + + val testExecutor = + TestExecutor(assistantAgent, adlStorage, testCaseRepository, conversationEvaluator) // Initialize Qdrant collection runBlocking { - useCaseStore.initialize() + embeddingStore.initialize() + } + + // Add example data + runBlocking { + // log.info("Loading examples", id, examples.size) + listOf("buy_a_car.md", "greeting.md", "unsure_customer.md").forEach { name -> + val content = this::class.java.classLoader.getResource("examples/$name")!!.readText() + val id = name.substringBeforeLast(".") + val examples = content.toUseCases() + .flatMap { it.examples.split("\n") } + .filterNot { it.isBlank() } + .map { it.removePrefix("- ") } + var contentWithoutExamples = content.replace("#### Examples", "") + examples.forEach { + contentWithoutExamples = contentWithoutExamples.replace("- $it", "") + } + adlStorage.store(Adl(id, contentWithoutExamples.trim(), listOf(), now().toString(), examples)) + if (examples.isNotEmpty()) embeddingStore.storeUtterances(id, examples) + } } return embeddedServer(CIO, port = port ?: EnvConfig.serverPort) { // Register shutdown hook to close resources monitor.subscribe(ApplicationStopping) { - useCaseStore.close() + embeddingStore.close() + } + + install(CORS) { + allowMethod(HttpMethod.Options) + allowMethod(HttpMethod.Put) + allowMethod(HttpMethod.Delete) + allowMethod(HttpMethod.Patch) + allowHeader(HttpHeaders.Authorization) + allowHeader(HttpHeaders.ContentType) + anyHost() } install(GraphQL) { @@ -73,21 +168,43 @@ fun startServer( "org.eclipse.lmos.adl.server.inbound", "org.eclipse.lmos.adl.server.agents", "org.eclipse.lmos.arc.api", + "org.eclipse.lmos.adl.server.model", + "org.eclipse.lmos.adl.server.models", ) queries = listOf( - AdlQuery(useCaseStore), - AdlExampleQuery(exampleAgent), - AdlTestQuery(testCaseRepository), + AdlQuery(embeddingStore, adlStorage), + McpToolsQuery(mcpService), + TestCaseQuery(testCaseRepository), + UserSettingsQuery(userSettingsRepository), + WidgetQuery(widgetRepository), + RolePromptQuery(rolePromptRepository), + DashboardQuery(adlStorage, statisticsRepository) ) mutations = listOf( AdlCompilerMutation(), - AdlMutation(useCaseStore), - SystemPromptMutation(sessions, templateLoader), + SystemPromptMutation(sessions, templateLoader, rolePromptRepository), + AdlStorageMutation(embeddingStore, adlStorage), + McpMutation(mcpService), + UserSettingsMutation(userSettingsRepository, completerProvider), + UseCaseImprovementMutation(improvementAgent), + SpellingMutation(spellingAgent), AdlEvalMutation(evalAgent, conversationEvaluator), - AdlAssistantMutation(assistantAgent), + AdlExampleMutation(exampleAgent), + TestCreatorMutation( + testCreatorAgent, + testCaseRepository, + testExecutor, + adlStorage, + testVariantAgent + ), AdlValidationMutation(), - AdlTestCreatorMutation(testCreatorAgent, testCaseRepository), + AdlAssistantMutation(assistantAgent, adlStorage, statisticsRepository), + WidgetsMutation(facesAgent, widgetRepository), + RolePromptMutation(rolePromptRepository), ) + } + server { + } engine { exceptionHandler = GlobalExceptionHandler() @@ -98,9 +215,43 @@ fun startServer( defaultGraphQLStatusPages() } + install(SSE) + routing { + openAICompletions(assistantAgent) + clientEvents(clientEventPublisher) graphiQLRoute() graphQLPostRoute() + + staticResources("/", "static") { + fallback { requestedPath, call -> + // read from classpath + if (requestedPath.startsWith("prompts")) call.respondText( + text = this::class.java.classLoader.getResource("static/prompts.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + if (requestedPath.startsWith("roles")) call.respondText( + text = this::class.java.classLoader.getResource("static/roles.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + if (requestedPath.startsWith("widgets")) call.respondText( + text = this::class.java.classLoader.getResource("static/widgets.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + if (requestedPath.startsWith("faces")) call.respondText( + text = this::class.java.classLoader.getResource("static/faces.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + if (requestedPath.startsWith("assistant")) call.respondText( + text = this::class.java.classLoader.getResource("static/assistant.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + if (requestedPath.startsWith("analytics")) call.respondText( + text = this::class.java.classLoader.getResource("static/analytics.html")!!.readText(), + contentType = ContentType.Text.Html, + ) + } + } } module() diff --git a/adl-server/src/main/kotlin/agents/AssistantAgent.kt b/adl-server/src/main/kotlin/agents/AssistantAgent.kt index 20032ce8..c8023ad5 100644 --- a/adl-server/src/main/kotlin/agents/AssistantAgent.kt +++ b/adl-server/src/main/kotlin/agents/AssistantAgent.kt @@ -3,31 +3,219 @@ // SPDX-License-Identifier: Apache-2.0 package org.eclipse.lmos.adl.server.agents +import com.fasterxml.jackson.core.type.TypeReference +import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper +import dev.langchain4j.model.embedding.EmbeddingModel +import dev.langchain4j.store.embedding.CosineSimilarity +import org.eclipse.lmos.adl.server.agents.extensions.ConversationGuider +import org.eclipse.lmos.adl.server.agents.extensions.InputHintProvider +import org.eclipse.lmos.adl.server.agents.extensions.currentDate +import org.eclipse.lmos.adl.server.agents.extensions.isWeekend +import org.eclipse.lmos.adl.server.repositories.AdlRepository +import org.eclipse.lmos.adl.server.repositories.TestCaseRepository +import org.eclipse.lmos.adl.server.repositories.UseCaseEmbeddingsRepository +import org.eclipse.lmos.adl.server.repositories.WidgetRepository +import org.eclipse.lmos.adl.server.services.McpService +import org.eclipse.lmos.adl.server.services.ClientEventPublisher +import org.eclipse.lmos.adl.server.repositories.StatisticsRepository import org.eclipse.lmos.arc.agents.ConversationAgent import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.conversation.Conversation +import org.eclipse.lmos.arc.agents.conversation.UserMessage +import org.eclipse.lmos.arc.agents.conversation.latest +import org.eclipse.lmos.arc.agents.dsl.extensions.addTool +import org.eclipse.lmos.arc.agents.dsl.extensions.getCurrentUseCases +import org.eclipse.lmos.arc.agents.dsl.extensions.info import org.eclipse.lmos.arc.agents.dsl.extensions.local import org.eclipse.lmos.arc.agents.dsl.extensions.processUseCases import org.eclipse.lmos.arc.agents.dsl.extensions.time import org.eclipse.lmos.arc.agents.dsl.get +import org.eclipse.lmos.arc.agents.events.LoggingEventHandler +import org.eclipse.lmos.arc.agents.llm.ChatCompletionSettings +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider import org.eclipse.lmos.arc.assistants.support.filters.UnresolvedDetector import org.eclipse.lmos.arc.assistants.support.filters.UseCaseResponseHandler import org.eclipse.lmos.arc.assistants.support.usecases.UseCase +import org.eclipse.lmos.arc.assistants.support.usecases.features.processFlow +import org.eclipse.lmos.arc.assistants.support.usecases.toUseCases +import org.eclipse.lmos.adl.server.agents.extensions.UseCaseIdValidator +import org.eclipse.lmos.adl.server.agents.filters.ConvertToWidget +import org.eclipse.lmos.adl.server.agents.filters.MustFeature +import org.eclipse.lmos.adl.server.agents.filters.Rephraser +import org.eclipse.lmos.adl.server.agents.filters.SolutionCompliance +import org.eclipse.lmos.adl.server.repositories.RolePromptRepository +import org.eclipse.lmos.arc.agents.dsl.extensions.system -fun createAssistantAgent(): ConversationAgent = agents { + +/** + * Creates and configures the main Assistant Agent for the ADL server. + * + * This agent is responsible for handling user interactions, processing use cases, + * and integrating with MCP tools. It sets up: + * - Input/Output filters for handling hints and response formatting. + * - Prompt generation logic that incorporates roles, use cases, and time context. + * - specialized handling for step-based use cases by converting them to conditional logic. + * + * @param mcpService The service responsible for loading and managing MCP tools. + * @return A configured [ConversationAgent] ready to handle requests. + */ +fun createAssistantAgent( + mcpService: McpService, + testRepository: TestCaseRepository, + embeddingsRepository: UseCaseEmbeddingsRepository, + adlRepository: AdlRepository, + embeddingModel: EmbeddingModel, + widgetRepository: WidgetRepository, + rolePromptRepository: RolePromptRepository, + clientEventPublisher: ClientEventPublisher, + chatCompleterProvider: ChatCompleterProvider? = null +): ConversationAgent = agents( + handlers = listOf(LoggingEventHandler(), clientEventPublisher), + functionLoaders = listOf(mcpService), + chatCompleterProvider = chatCompleterProvider +) { agent { name = "assistant_agent" + settings = { ChatCompletionSettings(temperature = 0.0, seed = 42) } + filterInput { + +Rephraser() + +InputHintProvider() + } filterOutput { -"```json" -"```" + +UseCaseIdValidator() +UseCaseResponseHandler() + +ConversationGuider() + getCurrentUseCases()?.processedUseCaseMap?.get(getCurrentUseCases()?.currentUseCaseId)?.let { uc -> + val solution = uc.toUseCases().first().solution.joinToString("\n").trim() + if ((solution.startsWith("\"") || solution.startsWith("- \"")) && solution.endsWith("\"")) { + outputMessage = outputMessage.update(solution.substringAfter("\"").substringBeforeLast("\"")) + } + } + +SolutionCompliance(embeddingModel) + +ConvertToWidget(widgetRepository) + +MustFeature() +UnresolvedDetector { "UNRESOLVED" } } prompt { - val role = local("role.md")!! - val useCases = processUseCases(useCases = get>()) + val roleId = system("role", "default") + val role = rolePromptRepository.findById(roleId)?.let { + """ + ## Role and Responsibilities + ${it.role} + + ## Language & Tone Requirements + ${it.tone} + """.trimIndent() + } ?: local("role.md")!! + + // Load Use Cases + val currentUseCases = get>() + val message = get().latest()?.content + val otherUseCases = embeddingsRepository.search(message!!, limit = 40, scoreThreshold = 0.7f) + .distinctBy { it.adlId } + .flatMap { adlRepository.getAsUseCases(it.adlId) } + info("Loaded ${otherUseCases.size} additional use cases from embeddings store.") + val baseUseCases = local("base_use_cases.md")?.toUseCases() ?: emptyList() + + // Convert steps to conditionals in use cases + val useCases = ( + baseUseCases.filter { + currentUseCases.none { bc -> bc.id == it.id } + otherUseCases.none { bc -> bc.id == it.id } + } + otherUseCases.filter { + currentUseCases.none { bc -> bc.id == it.id } + } + currentUseCases + ).map { uc -> + if (uc.steps.isNotEmpty()) { + val convertedSteps = uc.steps.filter { it.text.isNotEmpty() }.mapIndexed { i, step -> + step.copy(conditions = step.conditions + "step_${i + 1}") + } + uc.copy(solution = convertedSteps + uc.solution.map { s -> + s.copy(conditions = s.conditions + "else") + }, steps = emptyList()) + } else uc + } + + // Add tools + useCases.forEach { useCase -> + useCase.extractTools().forEach { + addTool(it) + } + } + + // Add conditions + val conditions = buildSet { + isWeekend()?.let { add("is_weekend") } + add(currentDate()) + } + val userMessageEmbedding = embeddingModel.embed(message) + val useCasesPrompt = + processUseCases( + useCases = useCases, fallbackLimit = 3, conditions = conditions, exampleLimit = 5, + formatter = { content, useCase, useCases, usedUseCases -> + + var addExamples = false + val examples = buildString { + append("## Example Conversations:\n") + testRepository.findByUseCaseId(useCase.id).filter { it.contract }.forEach { tc -> + addExamples = true + append( + """ + Example Conversation: ${tc.name} + ${ + tc.expectedConversation.joinToString("\n") { + val prefix = if (it.role == "assistant") "" else "" + "${it.role}: $prefix ${it.content}" + } + } + + """.trimIndent() + ) + } + append("----\n") + } + + processFlow( + content = content, + useCase = useCase, + allUseCases = useCases, + usedUseCases = usedUseCases, + conditions = conditions, + context = this, + optionsAnalyser = { userMessage, options -> + + // Try exact match first + options.options.firstOrNull { + it.option.equals(userMessage.trim(), ignoreCase = true) + }?.let { return@processFlow it } + + // Try cosine similarity match + // Try cosine similarity match to find the highest match + options.options.map { + it to CosineSimilarity.between( + userMessageEmbedding.content(), + embeddingModel.embed(it.option).content() + ) + }.filter { it.second > 0.8 } + .maxByOrNull { it.second } + ?.first + ?.let { return@processFlow it } + null + } + ).let { + if (addExamples) { + it.replace("----", "") + "\n\n$examples" + } else it + } + }, + ) + + // Output the final prompt val prompt = local("assistant.md")!! .replace("\$\$ROLE\$\$", role) - .replace("\$\$USE_CASES\$\$", useCases) + .replace("\$\$USE_CASES\$\$", useCasesPrompt) .replace("\$\$TIME\$\$", time()) prompt } diff --git a/adl-server/src/main/kotlin/agents/EvalAgent.kt b/adl-server/src/main/kotlin/agents/EvalAgent.kt index ab215444..ebb5bdaf 100644 --- a/adl-server/src/main/kotlin/agents/EvalAgent.kt +++ b/adl-server/src/main/kotlin/agents/EvalAgent.kt @@ -8,8 +8,14 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import org.eclipse.lmos.arc.agents.ConversationAgent import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider +import org.eclipse.lmos.arc.agents.llm.ChatCompletionSettings +import org.eclipse.lmos.arc.agents.llm.ReasoningEffort -fun createEvalAgent(): ConversationAgent = agents { +/** + * Creates the agent that evaluates conversations. + */ +fun createEvalAgent(chatCompleterProvider: ChatCompleterProvider? = null): ConversationAgent = agents(chatCompleterProvider = chatCompleterProvider) { agent { name = "eval_agent" diff --git a/adl-server/src/main/kotlin/agents/ExampleAgent.kt b/adl-server/src/main/kotlin/agents/ExampleAgent.kt index fb9bf14e..4efbbee4 100644 --- a/adl-server/src/main/kotlin/agents/ExampleAgent.kt +++ b/adl-server/src/main/kotlin/agents/ExampleAgent.kt @@ -6,11 +6,12 @@ package org.eclipse.lmos.adl.server.agents import org.eclipse.lmos.arc.agents.ConversationAgent import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider /** * Creates the example agent that generates examples for ADL use cases. */ -fun createExampleAgent(): ConversationAgent = agents { +fun createExampleAgent(chatCompleterProvider: ChatCompleterProvider? = null): ConversationAgent = agents(chatCompleterProvider = chatCompleterProvider) { agent { name = "example_agent" prompt { diff --git a/adl-server/src/main/kotlin/agents/SpellingAgent.kt b/adl-server/src/main/kotlin/agents/SpellingAgent.kt new file mode 100644 index 00000000..44535063 --- /dev/null +++ b/adl-server/src/main/kotlin/agents/SpellingAgent.kt @@ -0,0 +1,56 @@ +// SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +// +// SPDX-License-Identifier: Apache-2.0 +package org.eclipse.lmos.adl.server.agents + +import org.eclipse.lmos.adl.server.agents.extensions.ConversationGuider +import org.eclipse.lmos.adl.server.agents.extensions.InputHintProvider +import org.eclipse.lmos.adl.server.agents.extensions.currentDate +import org.eclipse.lmos.adl.server.agents.extensions.isWeekend +import org.eclipse.lmos.adl.server.repositories.AdlRepository +import org.eclipse.lmos.adl.server.repositories.TestCaseRepository +import org.eclipse.lmos.adl.server.repositories.UseCaseEmbeddingsRepository +import org.eclipse.lmos.adl.server.services.McpService +import org.eclipse.lmos.arc.agents.ConversationAgent +import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.conversation.Conversation +import org.eclipse.lmos.arc.agents.conversation.UserMessage +import org.eclipse.lmos.arc.agents.conversation.latest +import org.eclipse.lmos.arc.agents.dsl.extensions.addTool +import org.eclipse.lmos.arc.agents.dsl.extensions.getCurrentUseCases +import org.eclipse.lmos.arc.agents.dsl.extensions.info +import org.eclipse.lmos.arc.agents.dsl.extensions.local +import org.eclipse.lmos.arc.agents.dsl.extensions.processUseCases +import org.eclipse.lmos.arc.agents.dsl.extensions.time +import org.eclipse.lmos.arc.agents.dsl.get +import org.eclipse.lmos.arc.agents.events.LoggingEventHandler +import org.eclipse.lmos.arc.agents.llm.ChatCompletionSettings +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider +import org.eclipse.lmos.arc.assistants.support.filters.UnresolvedDetector +import org.eclipse.lmos.arc.assistants.support.filters.UseCaseResponseHandler +import org.eclipse.lmos.arc.assistants.support.usecases.UseCase +import org.eclipse.lmos.arc.assistants.support.usecases.toUseCases + +/** + * Creates the agent that checks for spelling and grammar errors. + */ +fun createSpellingAgent(chatCompleterProvider: ChatCompleterProvider? = null): ConversationAgent = agents(chatCompleterProvider = chatCompleterProvider) { + agent { + name = "spelling_agent" + settings = { ChatCompletionSettings(temperature = 0.0, seed = 42) } + filterOutput { + -"```json" + -"```" + "UseCase" replaces "Use Case" + } + prompt { + """ + You are a grammar and spelling correction tool. + Fix spelling and grammar errors in the input text. + Preserve the original wording, structure, and formatting as much as possible. + Return only the corrected input text. + Do not add explanations, comments, or extra text. + """.trimIndent() + } + } +}.getAgents().first() as ConversationAgent diff --git a/adl-server/src/main/kotlin/agents/TestCreatorAgent.kt b/adl-server/src/main/kotlin/agents/TestCreatorAgent.kt index 976c660a..c4da5759 100644 --- a/adl-server/src/main/kotlin/agents/TestCreatorAgent.kt +++ b/adl-server/src/main/kotlin/agents/TestCreatorAgent.kt @@ -8,8 +8,12 @@ import org.eclipse.lmos.arc.agents.ConversationAgent import org.eclipse.lmos.arc.agents.agents import org.eclipse.lmos.arc.assistants.support.filters.UnresolvedDetector import org.eclipse.lmos.arc.assistants.support.filters.UseCaseResponseHandler +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider -fun createTestCreatorAgent(): ConversationAgent = agents { +/** + * Creates the agent that generates tests from use cases. + */ +fun createTestCreatorAgent(chatCompleterProvider: ChatCompleterProvider? = null): ConversationAgent = agents(chatCompleterProvider = chatCompleterProvider) { agent { name = "test_creator_agent" filterOutput { @@ -28,7 +32,8 @@ fun createTestCreatorAgent(): ConversationAgent = agents { Use Cases define the expected behaviour of an assistant that is meant to help users with their issues. ### Task - Analyze the "UseCase" provided below and generate a JSON array of test cases. Each test case must validate a specific path (happy path, edge case, or error handling) of the solution. + Analyze the "UseCase" provided below and generate a JSON array of test cases. + Each test case must validate a specific path (happy path, edge case, or error handling) of the solution. ### Requirements for Each Test Case: 1. **Title:** Concise and descriptive (e.g., "Successful login with valid credentials"). @@ -38,13 +43,14 @@ fun createTestCreatorAgent(): ConversationAgent = agents { * The "Happy Path" (standard successful flow). * Edge cases (boundary conditions). * Negative scenarios (invalid inputs or system errors). + 5. **Complete:** Each conversation must be a complete interaction from start to finish. ### Output Format Return ONLY a valid JSON array. Do not include introductory text or Markdown code blocks unless requested. Follow this structure: [ { - "title": "String", + "name": "String", "description": "String", "expected_conversation": [ {"role": "user", "content": [Action] }, diff --git a/adl-server/src/main/kotlin/agents/TestVariantCreatorAgent.kt b/adl-server/src/main/kotlin/agents/TestVariantCreatorAgent.kt new file mode 100644 index 00000000..91c99cc1 --- /dev/null +++ b/adl-server/src/main/kotlin/agents/TestVariantCreatorAgent.kt @@ -0,0 +1,84 @@ +// SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +// +// SPDX-License-Identifier: Apache-2.0 + +package org.eclipse.lmos.adl.server.agents + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable +import org.eclipse.lmos.arc.agents.ConversationAgent +import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider +import sh.ondr.koja.JsonSchema + +/** + * Creates the agent that generates test variants from an existing test case. + */ +fun createTestVariantCreatorAgent(chatCompleterProvider: ChatCompleterProvider? = null) = agents(chatCompleterProvider = chatCompleterProvider) { + agent { + name = "test_variant_agent" + + output( + name = "Output", + description = "List of varied sentence variants", + ) + + prompt { + """ + ## Role + You are a language model that generates paraphrased variants of sentences. + + ## Task + Given a list of input sentences, generate at least 8 distinct variants for each sentence. + + ## Rules + - Preserve the original meaning of each sentence. + - Vary wording, tone, and structure (formal, casual, concise, expressive, etc.). + - Do not add new facts or change intent. + - Output must be valid JSON only (no explanations, no markdown). + - Each original sentence must be used exactly as a key in the JSON. + - The value for each key must be an array with at least 8 strings. + - Do not repeat variants. + + ## Input format + A list of sentences, for example: + - I want to buy a car. + - I want a new house. + + ## Output format (example structure only): + { + variants: { + "I want to buy a car.": [ + "Variant 1", + "Variant 2", + "Variant 3", + "Variant 4", + "Variant 5", + "Variant 6", + "Variant 7", + "Variant 8" + ], + "I want a new house.": [ + "Variant 1", + "Variant 2", + "Variant 3", + "Variant 4", + "Variant 5", + "Variant 6", + "Variant 7", + "Variant 8" + ] + } + } + + **Important**: Return only the JSON object. No commentary before or after. + """ + } + } +}.getAgents().first() as ConversationAgent + + +@Serializable +@JsonSchema +data class TestVariant(val variants: Map>) + diff --git a/adl-server/src/main/kotlin/agents/UseCaseImprovementAgent.kt b/adl-server/src/main/kotlin/agents/UseCaseImprovementAgent.kt new file mode 100644 index 00000000..bf4df488 --- /dev/null +++ b/adl-server/src/main/kotlin/agents/UseCaseImprovementAgent.kt @@ -0,0 +1,56 @@ +// SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +// +// SPDX-License-Identifier: Apache-2.0 +package org.eclipse.lmos.adl.server.agents + +import org.eclipse.lmos.arc.agents.ConversationAgent +import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.dsl.extensions.local +import org.eclipse.lmos.arc.agents.dsl.extensions.processUseCases +import org.eclipse.lmos.arc.agents.dsl.extensions.time +import org.eclipse.lmos.arc.agents.dsl.get +import org.eclipse.lmos.arc.assistants.support.filters.UnresolvedDetector +import org.eclipse.lmos.arc.assistants.support.filters.UseCaseResponseHandler +import org.eclipse.lmos.arc.assistants.support.usecases.UseCase +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider +import org.eclipse.lmos.arc.agents.llm.ChatCompletionSettings + +/** + * Creates the agent that improves use cases based on an evaluation. + */ +fun createImprovementAgent(chatCompleterProvider: ChatCompleterProvider? = null): ConversationAgent = agents(chatCompleterProvider = chatCompleterProvider) { + agent { + name = "improvement_agent" + filterOutput { + -"```json" + -"```" + } + prompt { + """ + ### Role + You are an expert AI assistant specialized in analyzing and improving Use Cases for conversational agents. + + ### Definition of a Use Case + Use Cases define the expected behaviour of an assistant that is meant to help users with their issues. + + ### Task + Analyze the provided Use Case and suggest specific improvements to enhance its clarity, completeness, and effectiveness. Focus on identifying any gaps, ambiguities, or areas where additional detail could improve the Use Case. + + ### Output Format + Return ONLY a valid JSON object with the following structure: + + { + "improvements": [ + { + "issue": "String describing the identified issue", + "suggestion": "String detailing the suggested improvement", + "improved_use_case": "String with the revised section of the Use Case reflecting the improvement" + } + ] + } + + Ensure that your suggestions are actionable and directly address the identified issues. + """ + } + } +}.getAgents().first() as ConversationAgent diff --git a/adl-server/src/main/kotlin/agents/WidgetCreatorAgent.kt b/adl-server/src/main/kotlin/agents/WidgetCreatorAgent.kt new file mode 100644 index 00000000..7e0547eb --- /dev/null +++ b/adl-server/src/main/kotlin/agents/WidgetCreatorAgent.kt @@ -0,0 +1,98 @@ +// SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others +// +// SPDX-License-Identifier: Apache-2.0 +package org.eclipse.lmos.adl.server.agents + +import org.eclipse.lmos.arc.agents.Agent +import org.eclipse.lmos.arc.agents.AgentFailedException +import org.eclipse.lmos.arc.agents.ConversationAgent +import org.eclipse.lmos.arc.agents.agent.ask +import org.eclipse.lmos.arc.agents.agents +import org.eclipse.lmos.arc.agents.events.LoggingEventHandler +import org.eclipse.lmos.arc.agents.llm.ChatCompleterProvider +import org.eclipse.lmos.arc.agents.llm.ChatCompletionSettings +import org.eclipse.lmos.arc.core.Result + +/** + * Creates and configures the Faces Agent for generating UI widgets based on user prompts. + * + * This agent is designed to take a structured prompt describing a desired UI widget, including its purpose and interactions, + * and produce two outputs: + * 1) WIDGET_HTML: A complete HTML snippet using Tailwind CSS classes, with placeholders for dynamic values. + * 2) VALUES_JSON_SCHEMA: A JSON Schema that defines the data structure required to populate the placeholders in the HTML. + * + * The agent is configured with strict formatting rules and constraints to ensure the output is consistent, accessible, and responsive. + * + * @return A configured [FacesAgent] ready to generate UI widgets based on user prompts. + */ +fun createWidgetCreatorAgent(chatCompleterProvider: ChatCompleterProvider? = null): FacesAgent = agents(handlers = listOf(LoggingEventHandler()), chatCompleterProvider = chatCompleterProvider) { + agent { + name = "faces_agent" + settings = { ChatCompletionSettings(temperature = 0.0, seed = 42) } + prompt { + """ + You are a UI widget generator. + + ## Goal + Generate a single, reusable UI widget using plain HTML + Tailwind CSS classes, + using the mustache syntax to provide placeholders for dynamic values, + AND generate a JSON Schema that defines the data required to populate those placeholders. + + Inputs I will provide (as the user): + - Widget name (short) + - Purpose (1–2 sentences) + - Interactions (optional: buttons, toggles, validation messages) + + Hard constraints: + 1) Output must be only TWO top-level sections in this exact order: + A) WIDGET_HTML + B) VALUES_JSON_SCHEMA + 2) WIDGET_HTML must be valid HTML and use Tailwind CSS utility classes only (no external CSS, no

404

This page could not be found.

    \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_buildManifest.js b/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_buildManifest.js new file mode 100644 index 00000000..ec4548b9 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(e,r,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:12,errorRate:1e-4,numBits:231,numHashes:14,bitArray:[0,1,0,1,e,r,r,e,r,r,r,e,r,r,r,e,e,r,e,r,e,e,r,r,e,e,r,e,e,e,r,r,e,e,r,e,r,e,e,e,e,e,e,e,e,r,r,r,e,r,r,e,e,e,e,r,r,r,r,r,r,r,r,r,r,e,e,e,e,e,e,e,r,e,r,e,e,e,r,r,e,e,e,r,r,e,e,r,e,r,r,r,r,e,r,e,e,e,e,e,r,r,e,r,r,e,e,r,r,e,e,e,e,r,e,r,e,e,r,e,e,e,e,e,e,e,r,r,e,e,r,r,e,e,e,e,e,r,e,r,r,r,r,e,e,e,e,e,r,r,e,e,e,e,r,e,r,e,e,e,e,r,r,e,e,r,e,e,e,e,e,e,r,r,e,e,e,r,e,e,e,e,r,r,e,r,r,r,e,e,r,e,e,r,r,r,e,e,e,r,r,e,e,r,e,r,e,r,e,r,e,e,r,r,r,e,e,r,e,r,r,e,e,e,r,r,r,e,r,r,r]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:r,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-022e4ac7bbb9914f.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_ssgManifest.js b/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_ssgManifest.js new file mode 100644 index 00000000..5b3ff592 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/Yb3VkXFnFa_F0qM7WDKHd/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/255-8918b25dd8a3dbfd.js b/adl-server/src/main/resources/static/_next/static/chunks/255-8918b25dd8a3dbfd.js new file mode 100644 index 00000000..ff7a78e4 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/255-8918b25dd8a3dbfd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(77370).createRenderParamsFromClient;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[a,i]=o,c=(0,u.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}if(!p||!d){p||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(c,p)),e(p,d,(0,n.getNextFlightSegmentPath)(o))}}});let n=r(16378),u=r(69190);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1666:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(28110);let n=r(53663),u=r(71923);(0,n.appBootstrap)(()=>{let{hydrate:e}=r(49781);r(17297),r(9766),e(u)}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return u}});let n=r(5240);function u(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3201:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return u},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function u(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRecoverableError:function(){return i},onRecoverableError:function(){return c}});let n=r(28140),u=r(24553),o=n._(r(42444)),l=r(3463),a=new WeakSet;function i(e){return a.has(e)}let c=e=>{let t=(0,o.default)(e)&&"cause"in e?e.cause:e;(0,u.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(67858).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return o},SearchParamsContext:function(){return u}});let n=r(12115),u=(0,n.createContext)(null),o=(0,n.createContext)(null),l=(0,n.createContext)(null)},5240:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},5829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return o}});let n=r(37099),u=r(86437);function o(e){return(0,u.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6640:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(37099).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"matchSegment",{enumerable:!0,get:function(){return r}});let r=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return M}});let n=r(28140),u=r(49417),o=r(95155),l=r(86871),a=u._(r(12115)),i=n._(r(47650)),c=r(46752),s=r(32753),f=r(48359),d=r(88785),p=r(7460),h=r(84170),_=r(10531),y=r(63886),b=r(69190),v=r(48915),g=r(76248),m=r(39684);r(74061);let R=i.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class P extends a.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,p.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),r||(r=(0,R.findDOMNode)(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return E.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,h.disableSmoothScrollDuringRouteTransition)(()=>{if(n)return void r.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(r,t)&&(e.scrollTop=0,O(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function j(e){let{segmentPath:t,children:r}=e,n=(0,a.useContext)(c.GlobalLayoutRouterContext);if(!n)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,o.jsx)(P,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function T(e){let{tree:t,segmentPath:r,cacheNode:n,url:u}=e,i=(0,a.useContext)(c.GlobalLayoutRouterContext);if(!i)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let{tree:d}=i,h=null!==n.prefetchRsc?n.prefetchRsc:n.rsc,_=(0,a.useDeferredValue)(n.rsc,h),y="object"==typeof _&&null!==_&&"function"==typeof _.then?(0,a.use)(_):_;if(!y){let e=n.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,u]=t,o=2===t.length;if((0,p.matchSegment)(r[0],n)&&r[1].hasOwnProperty(u)){if(o){let t=e(void 0,r[1][u]);return[r[0],{...r[1],[u]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[u]:e(t.slice(2),r[1][u])}]}}return r}(["",...r],d),o=(0,v.hasInterceptionRouteInCurrentTree)(d),c=Date.now();n.lazyData=e=(0,s.fetchServerResponse)(new URL(u,location.origin),{flightRouterState:t,nextUrl:o?i.nextUrl:null}).then(e=>((0,a.startTransition)(()=>{(0,g.dispatchAppRouterAction)({type:l.ACTION_SERVER_PATCH,previousTree:d,serverResponse:e,navigatedAt:c})}),e)),(0,a.use)(e)}(0,a.use)(f.unresolvedThenable)}return(0,o.jsx)(c.LayoutRouterContext.Provider,{value:{parentTree:t,parentCacheNode:n,parentSegmentPath:r,url:u},children:y})}function S(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,a.use)(r):r){let e=t[0],r=t[1],u=t[2];return(0,o.jsx)(a.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[r,u,e]}),children:n})}return(0,o.jsx)(o.Fragment,{children:n})}function M(e){let{parallelRouterKey:t,error:r,errorStyles:n,errorScripts:u,templateStyles:l,templateScripts:i,template:s,notFound:f,forbidden:p,unauthorized:h,segmentViewBoundaries:v}=e,g=(0,a.useContext)(c.LayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:R,parentCacheNode:E,parentSegmentPath:O,url:P}=g,M=E.parallelRoutes,w=M.get(t);w||(w=new Map,M.set(t,w));let A=R[0],C=null===O?[t]:O.concat([A,t]),x=R[1][t],N=x[0],U=(0,b.createRouterCacheKey)(N,!0),D=(0,m.useRouterBFCache)(x,U),L=[];do{let e=D.tree,t=D.stateKey,a=e[0],v=(0,b.createRouterCacheKey)(a),g=w.get(v);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};g=e,w.set(v,e)}let m=E.loading,R=(0,o.jsxs)(c.TemplateContext.Provider,{value:(0,o.jsxs)(j,{segmentPath:C,children:[(0,o.jsx)(d.ErrorBoundary,{errorComponent:r,errorStyles:n,errorScripts:u,children:(0,o.jsx)(S,{loading:m,children:(0,o.jsx)(y.HTTPAccessFallbackBoundary,{notFound:f,forbidden:p,unauthorized:h,children:(0,o.jsxs)(_.RedirectBoundary,{children:[(0,o.jsx)(T,{url:P,tree:e,cacheNode:g,segmentPath:C}),null]})})})}),null]}),children:[l,i,s]},t);L.push(R),D=D.next}while(null!==D);return L}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return s}});let n=r(49417),u=r(95155),o=n._(r(12115)),l=r(47260),a=r(86542),i=r(86437);function c(e){let{redirect:t,reset:r,redirectType:n}=e,u=(0,l.useRouter)();return(0,o.useEffect)(()=>{o.default.startTransition(()=>{n===i.RedirectType.push?u.push(t,{}):u.replace(t,{}),r()})},[t,n,r,u]),null}class s extends o.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,u.jsx)(c,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,l.useRouter)();return(0,u.jsx)(s,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(65360),u=r(69190);function o(e,t){return function e(t,r,o,l){if(0===Object.keys(r).length)return[t,o,l];let a=Object.keys(r).filter(e=>"children"!==e);for(let l of("children"in r&&a.unshift("children"),a)){let[a,i]=r[l];if(a===n.DEFAULT_SEGMENT_KEY)continue;let c=t.parallelRoutes.get(l);if(!c)continue;let s=(0,u.createRouterCacheKey)(a),f=(0,u.createRouterCacheKey)(a,!0),d=c.get(s);if(!d)continue;let p=e(d,i,o+"/"+s,o+"/"+f);if(p)return p}return null}(e,t,"","")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return o}});let n=r(86343);function u(e){return void 0!==e}function o(e,t){var r,o;let l=null==(r=t.shouldScroll)||r,a=e.nextUrl;if(u(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?a=r:a||(a=e.canonicalUrl)}return{canonicalUrl:u(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:u(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:u(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:u(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!l&&(!!u(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:l?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:l?null!=(o=null==t?void 0:t.scrollableSegments)?o:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:u(t.patchedTree)?t.patchedTree:e.tree,nextUrl:a}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createMutableActionQueue:function(){return _},dispatchNavigateAction:function(){return v},dispatchTraverseAction:function(){return g},getCurrentAppRouterState:function(){return y},publicAppRouterInstance:function(){return m}});let n=r(86871),u=r(68451),o=r(12115),l=r(54089);r(66048);let a=r(76248),i=r(96058),c=r(17297),s=r(43933),f=r(63499);function d(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?p({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function p(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;t.pending=r;let o=r.payload,a=t.action(u,o);function i(e){r.discarded||(t.state=e,d(t,n),r.resolve(e))}(0,l.isThenable)(a)?a.then(i,e=>{d(t,n),r.reject(e)}):i(a)}let h=null;function _(e,t){let r={state:e,dispatch:(e,t)=>(function(e,t,r){let u={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{u={resolve:e,reject:t}});(0,o.startTransition)(()=>{r(e)})}let l={payload:t,next:null,resolve:u.resolve,reject:u.reject};null===e.pending?(e.last=l,p({actionQueue:e,action:l,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,l.next=e.pending.next,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),p({actionQueue:e,action:l,setState:r})):(null!==e.last&&(e.last.next=l),e.last=l)})(r,e,t),action:async(e,t)=>(0,u.reducer)(e,t),pending:null,last:null,onRouterTransitionStart:null!==t&&"function"==typeof t.onRouterTransitionStart?t.onRouterTransitionStart:null};if(null!==h)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});return h=r,r}function y(){return null!==h?h.state:null}function b(){return null!==h?h.onRouterTransitionStart:null}function v(e,t,r,u){let o=new URL((0,i.addBasePath)(e),location.href);(0,f.setLinkForCurrentNavigation)(u);let l=b();null!==l&&l(e,t),(0,a.dispatchAppRouterAction)({type:n.ACTION_NAVIGATE,url:o,isExternalUrl:(0,c.isExternalURL)(o),locationSearch:location.search,shouldScroll:r,navigateType:t,allowAliasing:!0})}function g(e,t){let r=b();null!==r&&r(e,"traverse"),(0,a.dispatchAppRouterAction)({type:n.ACTION_RESTORE,url:new URL(e),tree:t})}let m={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r=function(){if(null===h)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return h}(),u=(0,c.createPrefetchURL)(e);if(null!==u){var o;(0,s.prefetchReducer)(r.state,{type:n.ACTION_PREFETCH,url:u,kind:null!=(o=null==t?void 0:t.kind)?o:n.PrefetchKind.FULL})}},replace:(e,t)=>{(0,o.startTransition)(()=>{var r;v(e,"replace",null==(r=null==t?void 0:t.scroll)||r,null)})},push:(e,t)=>{(0,o.startTransition)(()=>{var r;v(e,"push",null==(r=null==t?void 0:t.scroll)||r,null)})},refresh:()=>{(0,o.startTransition)(()=>{(0,a.dispatchAppRouterAction)({type:n.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};window.next&&(window.next.router=m),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12115:(e,t,r)=>{"use strict";e.exports=r(61426)},12669:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(59248)},12845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"computeCacheBustingSearchParam",{enumerable:!0,get:function(){return u}});let n=r(60075);function u(e,t,r,u){return(void 0===e||"0"===e)&&void 0===t&&void 0===r&&void 0===u?"":(0,n.hexHash)([e||"0",t||"0",r||"0",u||"0"].join(","))}},14029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},15278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AsyncMetadataOutlet",{enumerable:!0,get:function(){return l}});let n=r(95155),u=r(12115);function o(e){let{promise:t}=e,{error:r,digest:n}=(0,u.use)(t);if(r)throw n&&(r.digest=n),r;return null}function l(e){let{promise:t}=e;return(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(o,{promise:t})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HandleISRError",{enumerable:!0,get:function(){return n}});let r=void 0;function n(e){let{error:t}=e;if(r){let e=r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15903:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},16378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return u},getNextFlightSegmentPath:function(){return o},normalizeFlightData:function(){return l},prepareFlightRouterStateForRequest:function(){return a}});let n=r(65360);function u(e){var t;let[r,n,u,o]=e.slice(-4),l=e.slice(0,-4);return{pathToSegment:l.slice(0,-1),segmentPath:l,segment:null!=(t=l[l.length-1])?t:"",tree:r,seedData:n,head:u,isHeadPartial:o,isRootRender:4===e.length}}function o(e){return e.slice(2)}function l(e){return"string"==typeof e?e:e.map(e=>u(e))}function a(e,t){return t?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(JSON.stringify(function e(t){var r,u;let[o,l,a,i,c,s]=t,f="string"==typeof(r=o)&&r.startsWith(n.PAGE_SEGMENT_KEY+"?")?n.PAGE_SEGMENT_KEY:r,d={};for(let[t,r]of Object.entries(l))d[t]=e(r);let p=[f,d,null,(u=i)&&"refresh"!==u?i:null];return void 0!==c&&(p[4]=c),void 0!==s&&(p[5]=s),p}(e)))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16486:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},17297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return x},createPrefetchURL:function(){return A},default:function(){return L},isExternalURL:function(){return w}});let n=r(28140),u=r(49417),o=r(95155),l=u._(r(12115)),a=r(46752),i=r(86871),c=r(29658),s=r(3865),f=r(76248),d=r(93913),p=r(96058),h=r(43443),_=r(10531),y=r(10836),b=r(48359),v=r(51755),g=r(92929),m=r(86343),R=r(61489),E=r(11807),O=r(86542),P=r(86437);r(63499);let j=n._(r(28890)),T=n._(r(57150)),S=r(24431),M={};function w(e){return e.origin!==window.location.origin}function A(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return w(t)?null:t}function C(e){let{appRouterState:t}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,c.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(u,"",n)):window.history.replaceState(u,"",n)},[t]),(0,l.useEffect)(()=>{},[t.nextUrl,t.tree]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1}}function N(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function U(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,u=null!==n?n:r;return(0,l.useDeferredValue)(r,u)}function D(e){let t,{actionQueue:r,assetPrefix:n,globalError:u}=e,c=(0,f.useActionQueue)(r),{canonicalUrl:d}=c,{searchParams:p,pathname:R}=(0,l.useMemo)(()=>{let e=new URL(d,window.location.href);return{searchParams:e.searchParams,pathname:(0,g.hasBasePath)(e.pathname)?(0,v.removeBasePath)(e.pathname):e.pathname}},[d]);(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(M.pendingMpaPath=void 0,(0,f.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,l.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,P.isRedirectError)(t)){e.preventDefault();let r=(0,O.getURLFromRedirectError)(t);(0,O.getRedirectTypeFromError)(t)===P.RedirectType.push?E.publicAppRouterInstance.push(r,{}):E.publicAppRouterInstance.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:T}=c;if(T.mpaNavigation){if(M.pendingMpaPath!==d){let e=window.location;T.pendingPush?e.assign(d):e.replace(d),M.pendingMpaPath=d}throw b.unresolvedThenable}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,l.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,u){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=N(t),u&&r(u)),e(t,n,u)},window.history.replaceState=function(e,n,u){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=N(e),u&&r(u)),t(e,n,u)};let n=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,l.startTransition)(()=>{(0,E.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[]);let{cache:w,tree:A,nextUrl:x,focusAndScrollRef:D}=c,L=(0,l.useMemo)(()=>(0,y.findHeadInCache)(w,A[1]),[w,A]),I=(0,l.useMemo)(()=>(0,m.getSelectedParams)(A),[A]),k=(0,l.useMemo)(()=>({parentTree:A,parentCacheNode:w,parentSegmentPath:null,url:d}),[A,w,d]),H=(0,l.useMemo)(()=>({tree:A,focusAndScrollRef:D,nextUrl:x}),[A,D,x]);if(null!==L){let[e,r,n]=L;t=(0,o.jsx)(U,{headCacheNode:e},r)}else t=null;let B=(0,o.jsxs)(_.RedirectBoundary,{children:[t,(0,o.jsx)(S.RootLayoutBoundary,{children:w.rsc}),(0,o.jsx)(h.AppRouterAnnouncer,{tree:A})]});return B=(0,o.jsx)(j.default,{errorComponent:u[0],errorStyles:u[1],children:B}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:c}),(0,o.jsx)(F,{}),(0,o.jsx)(s.PathParamsContext.Provider,{value:I,children:(0,o.jsx)(s.PathnameContext.Provider,{value:R,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:p,children:(0,o.jsx)(a.GlobalLayoutRouterContext.Provider,{value:H,children:(0,o.jsx)(a.AppRouterContext.Provider,{value:E.publicAppRouterInstance,children:(0,o.jsx)(a.LayoutRouterContext.Provider,{value:k,children:B})})})})})})]})}function L(e){let{actionQueue:t,globalErrorState:r,assetPrefix:n}=e;(0,R.useNavFailureHandler)();let u=(0,o.jsx)(D,{actionQueue:t,assetPrefix:n,globalError:r});return(0,o.jsx)(j.default,{errorComponent:T.default,children:u})}let I=new Set,k=new Set;function F(){let[,e]=l.default.useState(0),t=I.size;return(0,l.useEffect)(()=>{let r=()=>e(e=>e+1);return k.add(r),t!==I.size&&r(),()=>{k.delete(r)}},[t,e]),[...I].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=I.size;return I.add(e),I.size!==t&&k.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>u});var n=0;function u(e){return"__private_"+n+++"_"+e}},17989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return u}});let n=r(95155);function u(e){let{Component:t,slots:u,params:o,promise:l}=e;{let{createRenderParamsFromClient:e}=r(307),l=e(o);return(0,n.jsx)(t,{...u,params:l})}}r(48302),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{setCacheBustingSearchParam:function(){return o},setCacheBustingSearchParamWithHash:function(){return l}});let n=r(13485),u=r(52486),o=(e,t)=>{l(e,(0,n.computeCacheBustingSearchParam)(t[u.NEXT_ROUTER_PREFETCH_HEADER],t[u.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],t[u.NEXT_ROUTER_STATE_TREE_HEADER],t[u.NEXT_URL]))},l=(e,t)=>{let r=e.search,n=(r.startsWith("?")?r.slice(1):r).split("&").filter(e=>e&&!e.startsWith(""+u.NEXT_RSC_UNION_QUERY+"="));t.length>0?n.push(u.NEXT_RSC_UNION_QUERY+"="+t):n.push(""+u.NEXT_RSC_UNION_QUERY),e.search=n.length?"?"+n.join("&"):""};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return d},handleAliasedPrefetchEntry:function(){return f}});let n=r(65360),u=r(17297),o=r(60895),l=r(29658),a=r(69190),i=r(60543),c=r(11126),s=r(35737);function f(e,t,r,f,p){let h,_=t.tree,y=t.cache,b=(0,l.createHrefFromUrl)(f),v=[];if("string"==typeof r)return!1;for(let t of r){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(t.seedData))continue;let r=t.tree;r=d(r,Object.fromEntries(f.searchParams));let{seedData:l,isRootRender:c,pathToSegment:p}=t,g=["",...p];r=d(r,Object.fromEntries(f.searchParams));let m=(0,o.applyRouterStatePatchToTree)(g,_,r,b),R=(0,u.createEmptyCacheNode)();if(c&&l){let t=l[1];R.loading=l[3],R.rsc=t,function e(t,r,u,o,l){if(0!==Object.keys(o[1]).length)for(let i in o[1]){let c,s=o[1][i],f=s[0],d=(0,a.createRouterCacheKey)(f),p=null!==l&&void 0!==l[2][i]?l[2][i]:null;if(null!==p){let e=p[1],r=p[3];c={lazyData:null,rsc:f.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:r,navigatedAt:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};let h=r.parallelRoutes.get(i);h?h.set(d,c):r.parallelRoutes.set(i,new Map([[d,c]])),e(t,c,u,s,p)}}(e,R,y,r,l)}else R.rsc=y.rsc,R.prefetchRsc=y.prefetchRsc,R.loading=y.loading,R.parallelRoutes=new Map(y.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(e,R,y,t);for(let e of(m&&(_=m,y=R,h=!0),(0,s.generateSegmentsFromPatch)(r))){let r=[...t.pathToSegment,...e];r[r.length-1]!==n.DEFAULT_SEGMENT_KEY&&v.push(r)}}return!!h&&(p.patchedTree=_,p.cache=y,p.canonicalUrl=b,p.hashFragment=f.hash,p.scrollableSegments=v,(0,c.handleMutable)(t,p))}function d(e,t){let[r,u,...o]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),u,...o];let l={};for(let[e,r]of Object.entries(u))l[e]=d(r,t);return[r,l,...o]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,u,,l]=t;for(let a in n.includes(o.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=r,t[3]="refresh"),u)e(u[a],r)}},refreshInactiveParallelSegments:function(){return l}});let n=r(77609),u=r(32753),o=r(65360);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{navigatedAt:t,state:r,updatedTree:o,updatedCache:l,includeNextUrl:i,fetchedSegments:c,rootTree:s=o,canonicalUrl:f}=e,[,d,p,h]=o,_=[];if(p&&p!==f&&"refresh"===h&&!c.has(p)){c.add(p);let e=(0,u.fetchServerResponse)(new URL(p,location.origin),{flightRouterState:[s[0],s[1],s[2],"refetch"],nextUrl:i?r.nextUrl:null}).then(e=>{let{flightData:r}=e;if("string"!=typeof r)for(let e of r)(0,n.applyFlightData)(t,l,l,e)});_.push(e)}for(let e in d){let n=a({navigatedAt:t,state:r,updatedTree:d[e],updatedCache:l,includeNextUrl:i,fetchedSegments:c,rootTree:s,canonicalUrl:f});_.push(n)}await Promise.all(_)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23982:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return u},describeStringPropertyAccess:function(){return n},wellKnownProperties:function(){return o}});let r=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function n(e,t){return r.test(t)?"`"+e+"."+t+"`":"`"+e+"["+JSON.stringify(t)+"]`"}function u(e,t){let r=JSON.stringify(t);return"`Reflect.has("+e+", "+r+")`, `"+r+" in "+e+"`, or similar"}let o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule"])},24431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return o},OutletBoundary:function(){return a},RootLayoutBoundary:function(){return i},ViewportBoundary:function(){return l}});let n=r(68440),u={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.ROOT_LAYOUT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},o=u[n.METADATA_BOUNDARY_NAME.slice(0)],l=u[n.VIEWPORT_BOUNDARY_NAME.slice(0)],a=u[n.OUTLET_BOUNDARY_NAME.slice(0)],i=u[n.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]},24553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return u}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function u(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},26381:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(98301);let n=r(77278);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),u=0;u{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},28890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(28140),u=r(95155);r(12115);let o=n._(r(77759)),l=r(88785),a=(0,r(93913).isBot)(window.navigator.userAgent);function i(e){let{children:t,errorComponent:r,errorStyles:n,errorScripts:i}=e;return a?(0,u.jsx)(o.default,{children:t}):(0,u.jsx)(l.ErrorBoundary,{errorComponent:r,errorStyles:n,errorScripts:i,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29658:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,l,a,i,c){if(0===Object.keys(l[1]).length){r.head=i;return}for(let s in l[1]){let f,d=l[1][s],p=d[0],h=(0,n.createRouterCacheKey)(p),_=null!==a&&void 0!==a[2][s]?a[2][s]:null;if(o){let n=o.parallelRoutes.get(s);if(n){let o,l=(null==c?void 0:c.kind)==="auto"&&c.status===u.PrefetchCacheEntryStatus.reusable,a=new Map(n),f=a.get(h);o=null!==_?{lazyData:null,rsc:_[1],prefetchRsc:null,head:null,prefetchHead:null,loading:_[3],parallelRoutes:new Map(null==f?void 0:f.parallelRoutes),navigatedAt:t}:l&&f?{lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,head:f.head,prefetchHead:f.prefetchHead,parallelRoutes:new Map(f.parallelRoutes),loading:f.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==f?void 0:f.parallelRoutes),loading:null,navigatedAt:t},a.set(h,o),e(t,o,f,d,_||null,i,c),r.parallelRoutes.set(s,a);continue}}if(null!==_){let e=_[1],r=_[3];f={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:r,navigatedAt:t}}else f={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:t};let y=r.parallelRoutes.get(s);y?y.set(h,f):r.parallelRoutes.set(s,new Map([[h,f]])),e(t,f,void 0,d,_,i,c)}}}});let n=r(69190),u=r(86871);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32753:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return y},createFromNextReadableStream:function(){return b},fetchServerResponse:function(){return _}});let n=r(77197),u=r(52486),o=r(41209),l=r(85153),a=r(86871),i=r(16378),c=r(3201),s=r(20396),f=r(93223),d=n.createFromReadableStream;function p(e){return{flightData:(0,f.urlToUrlWithoutFlightMarker)(new URL(e,location.origin)).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}let h=new AbortController;async function _(e,t){let{flightRouterState:r,nextUrl:n,prefetchKind:o}=t,l={[u.RSC_HEADER]:"1",[u.NEXT_ROUTER_STATE_TREE_HEADER]:(0,i.prepareFlightRouterStateForRequest)(r,t.isHmrRefresh)};o===a.PrefetchKind.AUTO&&(l[u.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(l[u.NEXT_URL]=n);try{var s;let t=o?o===a.PrefetchKind.TEMPORARY?"high":"low":"auto";(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let r=await y(e,l,t,h.signal),n=(0,f.urlToUrlWithoutFlightMarker)(new URL(r.url)),d=r.redirected?n:void 0,_=r.headers.get("content-type")||"",v=!!(null==(s=r.headers.get("vary"))?void 0:s.includes(u.NEXT_URL)),g=!!r.headers.get(u.NEXT_DID_POSTPONE_HEADER),m=r.headers.get(u.NEXT_ROUTER_STALE_TIME_HEADER),R=null!==m?1e3*parseInt(m,10):-1,E=_.startsWith(u.RSC_CONTENT_TYPE_HEADER);if(E||(E=_.startsWith("text/plain")),!E||!r.ok||!r.body)return e.hash&&(n.hash=e.hash),p(n.toString());let O=g?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,P=await b(O);if((0,c.getAppBuildId)()!==P.b)return p(r.url);return{flightData:(0,i.normalizeFlightData)(P.f),canonicalUrl:d,couldBeIntercepted:v,prerendered:P.S,postponed:g,staleTime:R}}catch(t){return h.signal.aborted||console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}async function y(e,t,r,n){let o=new URL(e);(0,s.setCacheBustingSearchParam)(o,t);let l=await fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0,signal:n}),a=l.redirected,i=new URL(l.url,o);return i.searchParams.delete(u.NEXT_RSC_UNION_QUERY),{url:i.href,redirected:a,ok:l.ok,headers:l.headers,body:l.body,status:l.status}}function b(e){return d(e,{callServer:o.callServer,findSourceMapURL:l.findSourceMapURL})}window.addEventListener("pagehide",()=>{h.abort()}),window.addEventListener("pageshow",()=>{h=new AbortController}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return u.RedirectType},forbidden:function(){return l.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return a.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(86542),u=r(86437),o=r(42542),l=r(71099),a=r(6640),i=r(3860);class c extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new c}delete(){throw new c}set(){throw new c}sort(){throw new c}}function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{generateSegmentsFromPatch:function(){return m},handleExternalUrl:function(){return g},navigateReducer:function(){return function e(t,r){let{url:R,isExternalUrl:E,navigateType:O,shouldScroll:P,allowAliasing:j}=r,T={},{hash:S}=R,M=(0,u.createHrefFromUrl)(R),w="push"===O;if((0,y.prunePrefetchCache)(t.prefetchCache),T.preserveCustomHistoryState=!1,T.pendingPush=w,E)return g(t,T,R.toString(),w);if(document.getElementById("__next-page-redirect"))return g(t,T,M,w);let A=(0,y.getOrCreatePrefetchCacheEntry)({url:R,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:j}),{treeAtTimeOfPrefetch:C,data:x}=A;return d.prefetchQueue.bump(x),x.then(d=>{let{flightData:y,canonicalUrl:E,postponed:O}=d,j=Date.now(),x=!1;if(A.lastUsedTime||(A.lastUsedTime=j,x=!0),A.aliased){let n=new URL(R.href);E&&(n.pathname=E.pathname);let u=(0,v.handleAliasedPrefetchEntry)(j,t,y,n,T);return!1===u?e(t,{...r,allowAliasing:!1}):u}if("string"==typeof y)return g(t,T,y,w);let N=E?(0,u.createHrefFromUrl)(E):M;if(S&&t.canonicalUrl.split("#",1)[0]===N.split("#",1)[0])return T.onlyHashChange=!0,T.canonicalUrl=N,T.shouldScroll=P,T.hashFragment=S,T.scrollableSegments=[],(0,s.handleMutable)(t,T);let U=t.tree,D=t.cache,L=[];for(let e of y){let{pathToSegment:r,seedData:u,head:s,isHeadPartial:d,isRootRender:y}=e,v=e.tree,E=["",...r],P=(0,l.applyRouterStatePatchToTree)(E,U,v,M);if(null===P&&(P=(0,l.applyRouterStatePatchToTree)(E,C,v,M)),null!==P){if(u&&y&&O){let e=(0,_.startPPRNavigation)(j,D,U,v,u,s,d,!1,L);if(null!==e){if(null===e.route)return g(t,T,M,w);P=e.route;let r=e.node;null!==r&&(T.cache=r);let u=e.dynamicRequestTree;if(null!==u){let r=(0,n.fetchServerResponse)(new URL(N,R.origin),{flightRouterState:u,nextUrl:t.nextUrl});(0,_.listenForDynamicRequest)(e,r)}}else P=v}else{if((0,i.isNavigatingToNewRootLayout)(U,P))return g(t,T,M,w);let n=(0,p.createEmptyCacheNode)(),u=!1;for(let t of(A.status!==c.PrefetchCacheEntryStatus.stale||x?u=(0,f.applyFlightData)(j,D,n,e,A):(u=function(e,t,r,n){let u=!1;for(let o of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,o),u=!0;return u}(n,D,r,v),A.lastUsedTime=j),(0,a.shouldHardNavigate)(E,U)?(n.rsc=D.rsc,n.prefetchRsc=D.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(n,D,r),T.cache=n):u&&(T.cache=n,D=n),m(v))){let e=[...r,...t];e[e.length-1]!==h.DEFAULT_SEGMENT_KEY&&L.push(e)}}U=P}}return T.patchedTree=U,T.canonicalUrl=N,T.scrollableSegments=L,T.hashFragment=S,T.shouldScroll=P,(0,s.handleMutable)(t,T)},()=>t)}}});let n=r(32753),u=r(29658),o=r(75597),l=r(60895),a=r(58130),i=r(44707),c=r(86871),s=r(11126),f=r(77609),d=r(43933),p=r(17297),h=r(65360),_=r(87317),y=r(83571),b=r(1281),v=r(21854);function g(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,s.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,u]of Object.entries(n))for(let n of m(u))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(66048),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(64869).createRenderSearchParamsFromClient;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return s}});let n=r(29658),u=r(60895),o=r(44707),l=r(35737),a=r(77609),i=r(11126),c=r(17297);function s(e,t){let{serverResponse:{flightData:r,canonicalUrl:s},navigatedAt:f}=t,d={};if(d.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,_=(0,u.applyRouterStatePatchToTree)(["",...r],p,i,e.canonicalUrl);if(null===_)return e;if((0,o.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let y=s?(0,n.createHrefFromUrl)(s):void 0;y&&(d.canonicalUrl=y);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(f,h,b,t),d.patchedTree=_,d.cache=b,h=b,p=_}return(0,i.handleMutable)(e,d)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return u},getAccessFallbackErrorTypeByStatus:function(){return a},getAccessFallbackHTTPStatus:function(){return l},isHTTPAccessFallbackError:function(){return o}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),u="NEXT_HTTP_ERROR_FALLBACK";function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===u&&n.has(Number(r))}function l(e){return Number(e.digest.split(";")[1])}function a(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return o}});let n=r(29658),u=r(86343);function o(e,t){var r;let{url:o,tree:l}=t,a=(0,n.createHrefFromUrl)(o),i=l||e.tree,c=e.cache;return{canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,u.extractPathFromFlightRouterState)(i))?r:o.pathname}}r(87317),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(32753),u=r(29658),o=r(60895),l=r(44707),a=r(35737),i=r(11126),c=r(30637),s=r(17297),f=r(97332),d=r(48915),p=r(23597);function h(e,t){let{origin:r}=t,h={},_=e.canonicalUrl,y=e.tree;h.preserveCustomHistoryState=!1;let b=(0,s.createEmptyCacheNode)(),v=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);b.lazyData=(0,n.fetchServerResponse)(new URL(_,r),{flightRouterState:[y[0],y[1],y[2],"refetch"],nextUrl:v?e.nextUrl:null});let g=Date.now();return b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:s}=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:m}=r;if(!m)return console.log("REFRESH FAILED"),e;let R=(0,o.applyRouterStatePatchToTree)([""],y,n,e.canonicalUrl);if(null===R)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(y,R))return(0,a.handleExternalUrl)(e,h,_,e.pushRef.pendingPush);let E=s?(0,u.createHrefFromUrl)(s):void 0;if(s&&(h.canonicalUrl=E),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,c.fillLazyItemsTillLeafWithHead)(g,b,void 0,n,i,d,void 0),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({navigatedAt:g,state:e,updatedTree:R,updatedCache:b,includeNextUrl:v,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=R,y=R}return(0,i.handleMutable)(e,h)},()=>e)}r(66048),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouterBFCache",{enumerable:!0,get:function(){return u}});let n=r(12115);function u(e,t){let[r,u]=(0,n.useState)(()=>({tree:e,stateKey:t,next:null}));if(r.tree===e)return r;let o={tree:e,stateKey:t,next:null},l=1,a=r,i=o;for(;null!==a&&l<1;){if(a.stateKey===t){i.next=a.next;break}{l++;let e={tree:a.tree,stateKey:a.stateKey,next:null};i.next=e,i=e}a=a.next}return u(o),o}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return l}});let n=r(12115),u=r(86871),o=r(76248);async function l(e,t){return new Promise((r,l)=>{(0,n.startTransition)(()=>{(0,o.dispatchAppRouterAction)({type:u.ACTION_SERVER_ACTION,actionId:e,actionArgs:t,resolve:r,reject:l})})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getProperError:function(){return o}});let n=r(16486);function u(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return u(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},42542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return u}});let n=""+r(37099).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function u(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return l}});let n=r(12115),u=r(47650),o="next-route-announcer";function l(e){let{tree:t}=e,[r,l]=(0,n.useState)(null);(0,n.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(o)[0];if(null==t||null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(o)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,u.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43933:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return o},prefetchReducer:function(){return l}});let n=r(79889),u=r(83571),o=new n.PromiseQueue(5),l=function(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,u.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],u=r[0];if(Array.isArray(n)&&Array.isArray(u)){if(n[0]!==u[0]||n[2]!==u[2])return!0}else if(n!==u)return!0;if(t[4])return!r[4];if(r[4])return!0;let o=Object.values(t[1])[0],l=Object.values(r[1])[0];return!o||!l||e(o,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45009:(e,t,r)=>{"use strict";e.exports=r(47362)},46752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let n=r(28140)._(r(12115)),u=n.default.createContext(null),o=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},47260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_isUnrecognizedActionError:function(){return s.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return _},usePathname:function(){return p},useRouter:function(){return h},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(12115),u=r(46752),o=r(3865),l=r(26381),a=r(65360),i=r(35439),c=r(72103),s=r(12845),f=void 0;function d(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e])}function p(){return null==f||f("usePathname()"),(0,n.useContext)(o.PathnameContext)}function h(){let e=(0,n.useContext)(u.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function _(){return null==f||f("useParams()"),(0,n.useContext)(o.PathParamsContext)}function y(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegments()");let t=(0,n.useContext)(u.LayoutRouterContext);return t?function e(t,r,n,u){let o;if(void 0===n&&(n=!0),void 0===u&&(u=[]),n)o=t[1][r];else{var i;let e=t[1];o=null!=(i=e.children)?i:Object.values(e)[0]}if(!o)return u;let c=o[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?u:(u.push(s),e(o,r,!1,u))}(t.parentTree,e):null}function b(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===a.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47362:(e,t)=>{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,u=e[n];if(0>>1;no(i,r))co(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(co(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,_=!1,y=!1,b=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,R="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=n(f);null!==t;){if(null===t.callback)u(f);else if(t.startTime<=e)u(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function O(e){if(b=!1,E(e),!y)if(null!==n(s))y=!0,P||(P=!0,l());else{var t=n(f);null!==t&&x(O,t.startTime-e)}}var P=!1,j=-1,T=5,S=-1;function M(){return!!v||!(t.unstable_now()-Se&&M());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,E(e),r=!0;break t}p===n(s)&&u(s),E(e)}else u(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&x(O,c.startTime-e),r=!1}}break e}finally{p=null,h=o,_=!1}}}finally{r?l():P=!1}}}if("function"==typeof R)l=function(){R(w)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,C=A.port2;A.port1.onmessage=w,l=function(){C.postMessage(null)}}else l=function(){g(w,0)};function x(e,r){j=g(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=o,r(f,e),null===n(s)&&e===n(f)&&(b?(m(j),j=-1):b=!0,x(O,o-a))):(e.sortIndex=i,r(s,e),y||_||(y=!0,P||(P=!0,l()))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},47650:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(58730)},48302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},48359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,u]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(u){for(let t in u)if(e(u[t]))return!0}return!1}}});let n=r(57630);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49417:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(u,l,a):u[l]=e[l]}return u.default=e,r&&r.set(e,u),u}r.r(t),r.d(t,{_:()=>u})},49781:(e,t,r)=>{"use strict";let n,u;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return U}});let o=r(28140),l=r(49417),a=r(95155);r(66001);let i=o._(r(12669)),c=l._(r(12115)),s=r(77197),f=r(82073),d=r(3789),p=r(65444),h=r(41209),_=r(85153),y=r(11807),b=o._(r(17297)),v=r(62592);r(46752);let g=r(3201),m=s.createFromReadableStream,R=document,E=new TextEncoder,O=!1,P=!1,j=null;function T(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});u?u.enqueue(E.encode(e[1])):n.push(e[1])}else if(2===e[0])j=e[1];else if(3===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let r=atob(e[1]),o=new Uint8Array(r.length);for(var t=0;t{e.enqueue("string"==typeof t?E.encode(t):t)}),O&&!P)&&(null===e.desiredSize||e.desiredSize<0?e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),P=!0,n=void 0),u=e}}),{callServer:h.callServer,findSourceMapURL:_.findSourceMapURL});function A(e){let{pendingActionQueue:t}=e,r=(0,c.use)(w),n=(0,c.use)(t);return(0,a.jsx)(b.default,{actionQueue:n,globalErrorState:r.G,assetPrefix:r.p})}let C=c.default.StrictMode;function x(e){let{children:t}=e;return t}let N={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function U(e){let t=new Promise((t,r)=>{w.then(r=>{(0,g.setAppBuildId)(r.b);let n=Date.now();t((0,y.createMutableActionQueue)((0,v.createInitialRouterState)({navigatedAt:n,initialFlightData:r.f,initialCanonicalUrlParts:r.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:r.i,postponed:r.s,prerendered:r.S}),e))},e=>r(e))}),r=(0,a.jsx)(C,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(x,{children:(0,a.jsx)(A,{pendingActionQueue:t})})})});"__next_error__"===document.documentElement.id?i.default.createRoot(R,N).render(r):c.default.startTransition(()=>{i.default.hydrateRoot(R,r,{...N,formState:j})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return o}});let n=r(12115),u=r(3865);function o(){return(0,n.useContext)(u.PathnameContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51755:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(92929),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return f},NEXT_ACTION_NOT_FOUND_HEADER:function(){return v},NEXT_DID_POSTPONE_HEADER:function(){return h},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return i},NEXT_HMR_REFRESH_HEADER:function(){return a},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REWRITTEN_PATH_HEADER:function(){return _},NEXT_REWRITTEN_QUERY_HEADER:function(){return y},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_STALE_TIME_HEADER:function(){return p},NEXT_ROUTER_STATE_TREE_HEADER:function(){return u},NEXT_RSC_UNION_QUERY:function(){return d},NEXT_URL:function(){return c},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_HEADER:function(){return r}});let r="rsc",n="next-action",u="next-router-state-tree",o="next-router-prefetch",l="next-router-segment-prefetch",a="next-hmr-refresh",i="__next_hmr_refresh_hash__",c="next-url",s="text/x-component",f=[r,u,o,a,l],d="_rsc",p="x-nextjs-stale-time",h="x-nextjs-postponed",_="x-nextjs-rewritten-path",y="x-nextjs-rewritten-query",b="x-nextjs-prerender",v="x-nextjs-action-not-found";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return u}});let n=r(94681);function u(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,u]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");u&&(0,n.setAttributesFromProps)(o,u),r?(o.src=r,o.onload=()=>e(),o.onerror=t):u&&(o.innerHTML=u.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}window.next={version:"15.5.9",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54089:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},57150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(95155),u=r(15860),o={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}},l=function(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{}),(0,n.jsxs)("body",{children:[(0,n.jsx)(u.HandleISRError,{error:t}),(0,n.jsx)("div",{style:o.error,children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("h2",{style:o.text,children:["Application error: a ",r?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",r?"server logs":"browser console"," for more information)."]}),r?(0,n.jsx)("p",{style:o.text,children:"Digest: "+r}):null]})})]})]})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return u},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return o}});let n=r(74061),u=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>u.find(t=>e.startsWith(t)))}function l(e){let t,r,o;for(let n of e.split("/"))if(r=u.find(e=>n.startsWith(e))){[t,o]=e.split(r,2);break}if(!t||!r||!o)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":o="/"===t?"/"+o:t+"/"+o;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});o=l.slice(0,-2).concat(o).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:o}}},58130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,l]=r,[a,i]=t;return(0,u.matchSegment)(a,o)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),l[i]):!!Array.isArray(a)}}});let n=r(16378),u=r(7460);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58730:(e,t,r)=>{"use strict";var n=r(12115);function u(e){var t="https://react.dev/errors/"+e;if(1{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},60543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return c}});let n=r(94201),u=r(30637),o=r(69190),l=r(65360);function a(e,t,r,a,i,c){let{segmentPath:s,seedData:f,tree:d,head:p}=a,h=t,_=r;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let c,[s,f,d,p,h]=r;if(1===t.length){let e=a(r,n);return(0,l.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[_,y]=t;if(!(0,o.matchSegment)(_,s))return null;if(2===t.length)c=a(f[y],n);else if(null===(c=e((0,u.getNextFlightSegmentPath)(t),f[y],n,i)))return null;let b=[t[0],{...f,[y]:c},d,p];return h&&(b[4]=!0),(0,l.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(65360),u=r(16378),o=r(7460),l=r(23597);function a(e,t){let[r,u]=e,[l,i]=t;if(l===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(r,l)){let t={};for(let e in u)void 0!==i[e]?t[e]=a(u[e],i[e]):t[e]=u[e];for(let e in i)t[e]||(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61426:(e,t,r)=>{"use strict";var n=r(87358),u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),_=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}function m(){}function R(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var E=R.prototype=new m;E.constructor=R,b(E,g.prototype),E.isPureReactComponent=!0;var O=Array.isArray;function P(){}var j={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function S(e,t,r){var n=r.ref;return{$$typeof:u,type:e,key:t,ref:void 0!==n?n:null,props:r}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var w=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function C(e,t,r){if(null==e)return e;var n=[],l=0;return!function e(t,r,n,l,a){var i,c,s,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case u:case o:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,l,a)}}if(d)return a=a(t),d=""===l?"."+A(t,0):l,O(a)?(n="",null!=d&&(n=d.replace(w,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(M(a)&&(i=a,c=n+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+d,a=S(i.type,c,i.props)),r.push(a)),1;d=0;var p=""===l?".":l+":";if(O(t))for(var y=0;y{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return u},useNavFailureHandler:function(){return o}}),r(12115);let n=r(29658);function u(e){return!!e&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function o(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return A}});let n=r(41209),u=r(85153),o=r(52486),l=r(12845),a=r(77197),i=r(86871),c=r(66640),s=r(29658),f=r(35737),d=r(60895),p=r(44707),h=r(11126),_=r(30637),y=r(17297),b=r(48915),v=r(97332),g=r(23597),m=r(16378),R=r(86542),E=r(86437),O=r(83571),P=r(51755),j=r(92929),T=r(77519);r(66048);let S=a.createFromFetch;async function M(e,t,r){let i,s,f,d,{actionId:p,actionArgs:h}=r,_=(0,a.createTemporaryReferenceSet)(),y=(0,T.extractInfoFromServerReferenceId)(p),b="use-cache"===y.type?(0,T.omitUnusedArgs)(h,y):h,v=await (0,a.encodeReply)(b,{temporaryReferences:_}),g=await fetch(e.canonicalUrl,{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION_HEADER]:p,[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,m.prepareFlightRouterStateForRequest)(e.tree),...{},...t?{[o.NEXT_URL]:t}:{}},body:v});if("1"===g.headers.get(o.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new l.UnrecognizedActionError('Server Action "'+p+'" was not found on the server. \nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let R=g.headers.get("x-action-redirect"),[O,P]=(null==R?void 0:R.split(";"))||[];switch(P){case"push":i=E.RedirectType.push;break;case"replace":i=E.RedirectType.replace;break;default:i=void 0}let j=!!g.headers.get(o.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(g.headers.get("x-action-revalidated")||"[[],0,0]");s={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){s=w}let M=O?(0,c.assignLocation)(O,new URL(e.canonicalUrl,window.location.href)):void 0,A=g.headers.get("content-type"),C=!!(A&&A.startsWith(o.RSC_CONTENT_TYPE_HEADER));if(!C&&!M)throw Object.defineProperty(Error(g.status>=400&&"text/plain"===A?await g.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});if(C){let e=await S(Promise.resolve(g),{callServer:n.callServer,findSourceMapURL:u.findSourceMapURL,temporaryReferences:_});f=M?void 0:e.a,d=(0,m.normalizeFlightData)(e.f)}else f=void 0,d=void 0;return{actionResult:f,actionFlightData:d,redirectLocation:M,redirectType:i,revalidatedParts:s,isPrerender:j}}let w={paths:[],tag:!1,cookie:!1};function A(e,t){let{resolve:r,reject:n}=t,u={},o=e.tree;u.preserveCustomHistoryState=!1;let l=e.nextUrl&&(0,b.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null,a=Date.now();return M(e,l,t).then(async c=>{let b,{actionResult:m,actionFlightData:T,redirectLocation:S,redirectType:M,isPrerender:w,revalidatedParts:A}=c;if(S&&(M===E.RedirectType.replace?(e.pushRef.pendingPush=!1,u.pendingPush=!1):(e.pushRef.pendingPush=!0,u.pendingPush=!0),u.canonicalUrl=b=(0,s.createHrefFromUrl)(S,!1)),!T)return(r(m),S)?(0,f.handleExternalUrl)(e,u,S.href,e.pushRef.pendingPush):e;if("string"==typeof T)return r(m),(0,f.handleExternalUrl)(e,u,T,e.pushRef.pendingPush);let C=A.paths.length>0||A.tag||A.cookie;for(let n of T){let{tree:i,seedData:c,head:s,isRootRender:h}=n;if(!h)return console.log("SERVER ACTION APPLY FAILED"),r(m),e;let R=(0,d.applyRouterStatePatchToTree)([""],o,i,b||e.canonicalUrl);if(null===R)return r(m),(0,v.handleSegmentMismatch)(e,t,i);if((0,p.isNavigatingToNewRootLayout)(o,R))return r(m),(0,f.handleExternalUrl)(e,u,b||e.canonicalUrl,e.pushRef.pendingPush);if(null!==c){let t=c[1],r=(0,y.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=c[3],(0,_.fillLazyItemsTillLeafWithHead)(a,r,void 0,i,c,s,void 0),u.cache=r,u.prefetchCache=new Map,C&&await (0,g.refreshInactiveParallelSegments)({navigatedAt:a,state:e,updatedTree:R,updatedCache:r,includeNextUrl:!!l,canonicalUrl:u.canonicalUrl||e.canonicalUrl})}u.patchedTree=R,o=R}return S&&b?(C||((0,O.createSeededPrefetchCacheEntry)({url:S,data:{flightData:T,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:w?i.PrefetchKind.FULL:i.PrefetchKind.AUTO}),u.prefetchCache=e.prefetchCache),n((0,R.getRedirectError)((0,j.hasBasePath)(b)?(0,P.removeBasePath)(b):b,M||E.RedirectType.push))):r(m),(0,h.handleMutable)(e,u)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return s}});let n=r(29658),u=r(30637),o=r(86343),l=r(83571),a=r(86871),i=r(23597),c=r(16378);function s(e){var t,r;let{navigatedAt:s,initialFlightData:f,initialCanonicalUrlParts:d,initialParallelRoutes:p,location:h,couldBeIntercepted:_,postponed:y,prerendered:b}=e,v=d.join("/"),g=(0,c.getFlightDataPartsFromPath)(f[0]),{tree:m,seedData:R,head:E}=g,O={lazyData:null,rsc:null==R?void 0:R[1],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:p,loading:null!=(t=null==R?void 0:R[3])?t:null,navigatedAt:s},P=h?(0,n.createHrefFromUrl)(h):v;(0,i.addRefreshMarkerToActiveParallelSegments)(m,P);let j=new Map;(null===p||0===p.size)&&(0,u.fillLazyItemsTillLeafWithHead)(s,O,void 0,m,R,E,void 0);let T={tree:m,cache:O,prefetchCache:j,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:P,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(m)||(null==h?void 0:h.pathname))?r:null};if(h){let e=new URL(""+h.pathname+h.search,h.origin);(0,l.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[g],canonicalUrl:void 0,couldBeIntercepted:!!_,prerendered:b,postponed:y,staleTime:b&&1?l.STATIC_STALETIME_MS:-1},tree:T.tree,prefetchCache:T.prefetchCache,nextUrl:T.nextUrl,kind:b?a.PrefetchKind.FULL:a.PrefetchKind.AUTO})}return T}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63499:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{IDLE_LINK_STATUS:function(){return s},PENDING_LINK_STATUS:function(){return c},mountFormInstance:function(){return g},mountLinkInstance:function(){return v},onLinkVisibilityChanged:function(){return R},onNavigationIntent:function(){return E},pingVisibleLinks:function(){return P},setLinkForCurrentNavigation:function(){return f},unmountLinkForCurrentNavigation:function(){return d},unmountPrefetchableInstance:function(){return m}}),r(11807);let n=r(17297),u=r(66048),o=r(12115),l=r(86871),a=r(48302),i=null,c={pending:!0},s={pending:!1};function f(e){(0,o.startTransition)(()=>{null==i||i.setOptimisticLinkStatus(s),null==e||e.setOptimisticLinkStatus(c),i=e})}function d(e){i===e&&(i=null)}let p="function"==typeof WeakMap?new WeakMap:new Map,h=new Set,_="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;R(t.target,e)}},{rootMargin:"200px"}):null;function y(e,t){void 0!==p.get(e)&&m(e),p.set(e,t),null!==_&&_.observe(e)}function b(e){try{return(0,n.createPrefetchURL)(e)}catch(t){return("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),null}}function v(e,t,r,n,u,o){if(u){let u=b(t);if(null!==u){let t={router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:u.href,setOptimisticLinkStatus:o};return y(e,t),t}}return{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:o}}function g(e,t,r,n){let u=b(t);null!==u&&y(e,{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:u.href,setOptimisticLinkStatus:null})}function m(e){let t=p.get(e);if(void 0!==t){p.delete(e),h.delete(t);let r=t.prefetchTask;null!==r&&(0,u.cancelPrefetchTask)(r)}null!==_&&_.unobserve(e)}function R(e,t){let r=p.get(e);void 0!==r&&(r.isVisible=t,t?h.add(r):h.delete(r),O(r,u.PrefetchPriority.Default))}function E(e,t){let r=p.get(e);void 0!==r&&void 0!==r&&O(r,u.PrefetchPriority.Intent)}function O(e,t){var r;let n=e.prefetchTask;if(!e.isVisible){null!==n&&(0,u.cancelPrefetchTask)(n);return}r=e,(async()=>{let e;switch(r.fetchStrategy){case u.FetchStrategy.PPR:e=l.PrefetchKind.AUTO;break;case u.FetchStrategy.Full:e=l.PrefetchKind.FULL;break;case u.FetchStrategy.PPRRuntime:throw Object.defineProperty(new a.InvariantError("FetchStrategy.PPRRuntime should never be used when `experimental.clientSegmentCache` is disabled"),"__NEXT_ERROR_CODE",{value:"E772",enumerable:!1,configurable:!0});default:r.fetchStrategy,e=void 0}return r.router.prefetch(r.prefetchHref,{kind:e})})().catch(e=>{})}function P(e,t){for(let r of h){let n=r.prefetchTask;if(null!==n&&!(0,u.isPrefetchTaskDirty)(n,e,t))continue;null!==n&&(0,u.cancelPrefetchTask)(n);let o=(0,u.createCacheKey)(r.prefetchHref,e);r.prefetchTask=(0,u.schedulePrefetchTask)(o,t,r.fetchStrategy,u.PrefetchPriority.Default,null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return s}});let n=r(49417),u=r(95155),o=n._(r(12115)),l=r(51486),a=r(37099);r(94781);let i=r(46752);class c extends o.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,a.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,l={[a.HTTPAccessErrorStatus.NOT_FOUND]:e,[a.HTTPAccessErrorStatus.FORBIDDEN]:t,[a.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let i=o===a.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===a.HTTPAccessErrorStatus.FORBIDDEN&&t,s=o===a.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||c||s?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("meta",{name:"robots",content:"noindex"}),!1,l[o]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function s(e){let{notFound:t,forbidden:r,unauthorized:n,children:a}=e,s=(0,l.useUntrackedPathname)(),f=(0,o.useContext)(i.MissingSlotContext);return t||r||n?(0,u.jsx)(c,{pathname:s,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:a}):(0,u.jsx)(u.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ROOT_SEGMENT_CACHE_KEY:function(){return o},ROOT_SEGMENT_REQUEST_KEY:function(){return u},appendSegmentCacheKeyPart:function(){return c},appendSegmentRequestKeyPart:function(){return a},convertSegmentPathToStaticExportFilename:function(){return d},createSegmentCacheKeyPart:function(){return i},createSegmentRequestKeyPart:function(){return l}});let n=r(65360),u="",o="";function l(e){if("string"==typeof e)return e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:"/_not-found"===e?"_not-found":f(e);let t=e[0],r=e[2];return"$"+r+"$"+f(t)}function a(e,t,r){return e+"/"+("children"===t?r:"@"+f(t)+"/"+r)}function i(e,t){return"string"==typeof t?e:e+"$"+f(t[1])}function c(e,t,r){return e+"/"+("children"===t?r:"@"+f(t)+"/"+r)}let s=/^[a-zA-Z0-9\-_@]+$/;function f(e){return s.test(e)?e:"!"+btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e){return"__next"+e.replace(/\//g,".")+".txt"}},64869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return o}});let n=r(23982),u=new WeakMap;function o(e){let t=u.get(e);if(t)return t;let r=Promise.resolve(e);return u.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(32753),r(29658),r(60895),r(44707),r(35737),r(11126),r(77609),r(17297),r(97332),r(48915);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65360:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function u(e,t){if(e.includes(o)){let e=JSON.stringify(t);return"{}"!==e?o+"?"+e:o}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return l},PAGE_SEGMENT_KEY:function(){return o},addSearchParamsIfPageSegment:function(){return u},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let o="__PAGE__",l="__DEFAULT__"},65444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return s},onUncaughtError:function(){return f}});let n=r(28140),u=r(5829),o=r(24553),l=r(3463),a=r(88785),i=n._(r(57150)),c={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function s(e,t){var r;let n,l=null==(r=t.errorBoundary)?void 0:r.constructor;if(n=n||l===a.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===i.default)return f(e);(0,o.isBailoutToCSRError)(e)||(0,u.isNextRouterError)(e)||c.originConsoleError(e)}function f(e){(0,o.isBailoutToCSRError)(e)||(0,u.isNextRouterError)(e)||(0,l.reportGlobalError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(90535),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{FetchStrategy:function(){return h},NavigationResultTag:function(){return d},PrefetchPriority:function(){return p},cancelPrefetchTask:function(){return i},createCacheKey:function(){return f},getCurrentCacheVersion:function(){return l},isPrefetchTaskDirty:function(){return s},navigate:function(){return u},prefetch:function(){return n},reschedulePrefetchTask:function(){return c},revalidateEntireCache:function(){return o},schedulePrefetchTask:function(){return a}});let r=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},n=r,u=r,o=r,l=r,a=r,i=r,c=r,s=r,f=r;var d=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({}),p=function(e){return e[e.Intent=2]="Intent",e[e.Default=1]="Default",e[e.Background=0]="Background",e}({}),h=function(e){return e[e.LoadingBoundary=0]="LoadingBoundary",e[e.PPR=1]="PPR",e[e.PPRRuntime=2]="PPRRuntime",e[e.Full=3]="Full",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return u}});let n=r(96058);function u(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,u.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(24553),u=r(5829);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68440:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return u},ROOT_LAYOUT_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",u="__next_outlet_boundary__",o="__next_root_layout_boundary__"},68451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(86871),u=r(35737),o=r(36798),l=r(37854),a=r(38719),i=r(43933),c=r(65345),s=r(62244),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,u.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,o.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,c.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Object.defineProperty(Error("Unknown action"),"__NEXT_ERROR_CODE",{value:"E295",enumerable:!1,configurable:!0})}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return u}});let n=r(65360);function u(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71099:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(37099).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});let n=r(77700),u=r(5240),o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:o}=(0,u.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+o};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71923:(e,t,r)=>{"use strict";e.exports=r(19393)},72103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return o}});let n=r(49417)._(r(12115)),u=n.default.createContext(null);function o(e){let t=(0,n.useContext)(u);t&&t(e)}},73879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return u}});let n=r(5240);function u(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:u,hash:o}=(0,n.parsePath)(e);return""+t+r+u+o}},74061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return l}});let n=r(76196),u=r(65360);function o(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,u.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},75597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[a,i]=o,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a);if(!s)return;let f=t.parallelRoutes.get(a);if(f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f)),l)return void f.delete(c);let d=s.get(c),p=f.get(c);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,(0,u.getNextFlightSegmentPath)(o)))}}});let n=r(69190),u=r(16378);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76196:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},76248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dispatchAppRouterAction:function(){return l},useActionQueue:function(){return a}});let n=r(49417)._(r(12115)),u=r(54089),o=null;function l(e){if(null===o)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});o(e)}function a(e){let[t,r]=n.default.useState(e.state);return o=t=>e.dispatch(t,r),(0,u.isThenable)(t)?(0,n.use)(t):t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77197:(e,t,r)=>{"use strict";e.exports=r(99062)},77278:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},77370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return o}});let n=r(23982),u=new WeakMap;function o(e){let t=u.get(e);if(t)return t;let r=Promise.resolve(e);return u.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77519:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function n(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return n}})},77609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return o}});let n=r(30637),u=r(60543);function o(e,t,r,o,l){let{tree:a,seedData:i,head:c,isRootRender:s}=o;if(null===i)return!1;if(s){let u=i[1];r.loading=i[3],r.rsc=u,r.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(e,r,t,a,i,c,l)}else r.rsc=t.rsc,r.prefetchRsc=t.prefetchRsc,r.parallelRoutes=new Map(t.parallelRoutes),r.loading=t.loading,(0,u.fillCacheWithNewSubTreeData)(e,r,t,o,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77700:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},77759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{GracefulDegradeBoundary:function(){return o},default:function(){return l}});let n=r(95155),u=r(12115);class o extends u.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(t=>{let[r,n]=t;e.setAttribute(r,n)})}render(){let{hasError:e}=this.state;return(this.rootHtml||(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(15903),u=r(17797);var o=u._("_maxConcurrency"),l=u._("_runningCount"),a=u._("_queue"),i=u._("_processNext");class c{enqueue(e){let t,r,u=new Promise((e,n)=>{t=e,r=n}),o=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:u,task:o}),n._(this,i)[i](),u}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,o)[o]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"IconMark",{enumerable:!0,get:function(){return n}}),r(95155);let n=()=>null},81099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let n=r(95155);function u(e){let{Component:t,searchParams:u,params:o,promises:l}=e;{let{createRenderSearchParamsFromClient:e}=r(35878),l=e(u),{createRenderParamsFromClient:a}=r(307),i=a(o);return(0,n.jsx)(t,{params:i,searchParams:l})}}r(48302),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(28140)._(r(12115)).default.createContext({})},83571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DYNAMIC_STALETIME_MS:function(){return d},STATIC_STALETIME_MS:function(){return p},createSeededPrefetchCacheEntry:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(32753),u=r(86871),o=r(43933);function l(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function a(e,t,r){return l(e,t===u.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:o,kind:a,allowAliasing:i=!0}=e,c=function(e,t,r,n,o){for(let a of(void 0===t&&(t=u.PrefetchKind.TEMPORARY),[r,null])){let r=l(e,!0,a),i=l(e,!1,a),c=e.search?r:i,s=n.get(c);if(s&&o){if(s.url.pathname===e.pathname&&s.url.search!==e.search)return{...s,aliased:!0};return s}let f=n.get(i);if(o&&e.search&&t!==u.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==u.PrefetchKind.FULL&&o){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,a,r,o,i);return c?(c.status=h(c),c.kind!==u.PrefetchKind.FULL&&a===u.PrefetchKind.FULL&&c.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return s({tree:n,url:t,nextUrl:r,prefetchCache:o,kind:null!=a?a:u.PrefetchKind.TEMPORARY})}),a&&c.kind===u.PrefetchKind.TEMPORARY&&(c.kind=a),c):s({tree:n,url:t,nextUrl:r,prefetchCache:o,kind:a||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:r,prefetchCache:n,url:o,data:l,kind:i}=e,c=l.couldBeIntercepted?a(o,i,t):a(o,i),s={treeAtTimeOfPrefetch:r,data:Promise.resolve(l),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:l.staleTime,key:c,status:u.PrefetchCacheEntryStatus.fresh,url:o};return n.set(c,s),s}function s(e){let{url:t,kind:r,tree:l,nextUrl:i,prefetchCache:c}=e,s=a(t,r),f=o.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:l,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:u}=e,o=n.get(u);if(!o)return;let l=a(t,o.kind,r);return n.set(l,{...o,key:l}),n.delete(u),l}({url:t,existingCacheKey:s,nextUrl:i,prefetchCache:c})),e.prerendered){let t=c.get(null!=r?r:s);t&&(t.kind=u.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:l,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:s,status:u.PrefetchCacheEntryStatus.fresh,url:t};return c.set(s,d),d}function f(e){for(let[t,r]of e)h(r)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+d?n?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:t===u.PrefetchKind.AUTO&&Date.now(){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement;r.dataset.scrollBehavior;let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(94781)},85153:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return i},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(u.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(57630),u=r(65360),o=r(7460),l=e=>"string"==typeof e?"children"===e?"":e:e[1];function a(e){return e.reduce((e,t)=>{let r;return""===(t="/"===(r=t)[0]?r.slice(1):r)||(0,u.isGroupSegment)(t)?e:e+"/"+t},"")||"/"}function i(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===u.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(u.PAGE_SEGMENT_KEY))return"";let o=[l(r)],c=null!=(t=e[1])?t:{},s=c.children?i(c.children):void 0;if(void 0!==s)o.push(s);else for(let[e,t]of Object.entries(c)){if("children"===e)continue;let r=i(t);void 0!==r&&o.push(r)}return a(o)}function c(e,t){let r=function e(t,r){let[u,a]=t,[c,s]=r,f=l(u),d=l(c);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,o.matchSegment)(u,c)){var p;return null!=(p=i(r))?p:""}for(let t in a)if(s[t]){let r=e(a[t],s[t]);if(null!==r)return l(c)+"/"+r}return null}(e,t);return null==r||"/"===r?r:a(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return u},RedirectType:function(){return o},isRedirectError:function(){return l}});let n=r(81099),u="NEXT_REDIRECT";var o=function(e){return e.push="push",e.replace="replace",e}({});function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,o]=t,l=t.slice(2,-2).join(";"),a=Number(t.at(-2));return r===u&&("replace"===o||"push"===o)&&"string"==typeof l&&!isNaN(a)&&a in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return s},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return i},redirect:function(){return a}});let n=r(81099),u=r(86437),o=void 0;function l(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let o=Object.defineProperty(Error(u.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=u.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",o}function a(e,t){var r;throw null!=t||(t=(null==o||null==(r=o.getStore())?void 0:r.isAction)?u.RedirectType.push:u.RedirectType.replace),l(e,t,n.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=u.RedirectType.replace),l(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,u.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function s(e){if(!(0,u.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,u.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return s},PrefetchKind:function(){return c}});let r="refresh",n="navigate",u="restore",o="server-patch",l="prefetch",a="hmr-refresh",i="server-action";var c=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),s=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86897:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element");function n(e,t,n){var u=null;if(void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return{$$typeof:r,type:e,key:u,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n},87317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return h},listenForDynamicRequest:function(){return p},startPPRNavigation:function(){return c},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],u=t.parallelRoutes,l=new Map(u);for(let t in n){let r=n[t],a=r[0],i=(0,o.createRouterCacheKey)(a),c=u.get(t);if(void 0!==c){let n=c.get(i);if(void 0!==n){let u=e(n,r),o=new Map(c);o.set(i,u),l.set(t,o)}}}let a=t.rsc,i=b(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:[null,null],prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:l,navigatedAt:t.navigatedAt}}}});let n=r(65360),u=r(7460),o=r(69190),l=r(44707),a=r(83571),i={route:null,node:null,dynamicRequestTree:null,children:null};function c(e,t,r,l,a,c,d,p,h){return function e(t,r,l,a,c,d,p,h,_,y,b){let v=l[1],g=a[1],m=null!==d?d[2]:null;c||!0===a[4]&&(c=!0);let R=r.parallelRoutes,E=new Map(R),O={},P=null,j=!1,T={};for(let r in g){let l,a=g[r],f=v[r],d=R.get(r),S=null!==m?m[r]:null,M=a[0],w=y.concat([r,M]),A=(0,o.createRouterCacheKey)(M),C=void 0!==f?f[0]:void 0,x=void 0!==d?d.get(A):void 0;if(null!==(l=M===n.DEFAULT_SEGMENT_KEY?void 0!==f?{route:f,node:null,dynamicRequestTree:null,children:null}:s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b):_&&0===Object.keys(a[1]).length?s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b):void 0!==f&&void 0!==C&&(0,u.matchSegment)(M,C)&&void 0!==x&&void 0!==f?e(t,x,f,a,c,S,p,h,_,w,b):s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b))){if(null===l.route)return i;null===P&&(P=new Map),P.set(r,l);let e=l.node;if(null!==e){let t=new Map(d);t.set(A,e),E.set(r,t)}let t=l.route;O[r]=t;let n=l.dynamicRequestTree;null!==n?(j=!0,T[r]=n):T[r]=t}else O[r]=a,T[r]=a}if(null===P)return null;let S={lazyData:null,rsc:r.rsc,prefetchRsc:r.prefetchRsc,head:r.head,prefetchHead:r.prefetchHead,loading:r.loading,parallelRoutes:E,navigatedAt:t};return{route:f(a,O),node:S,dynamicRequestTree:j?f(a,T):null,children:P}}(e,t,r,l,!1,a,c,d,p,[],h)}function s(e,t,r,n,u,c,s,p,h,_){return!u&&(void 0===t||(0,l.isNavigatingToNewRootLayout)(t,r))?i:function e(t,r,n,u,l,i,c,s){let p,h,_,y,b=r[1],v=0===Object.keys(b).length;if(void 0!==n&&n.navigatedAt+a.DYNAMIC_STALETIME_MS>t)p=n.rsc,h=n.loading,_=n.head,y=n.navigatedAt;else if(null===u)return d(t,r,null,l,i,c,s);else if(p=u[1],h=u[3],_=v?l:null,y=t,u[4]||i&&v)return d(t,r,u,l,i,c,s);let g=null!==u?u[2]:null,m=new Map,R=void 0!==n?n.parallelRoutes:null,E=new Map(R),O={},P=!1;if(v)s.push(c);else for(let r in b){let n=b[r],u=null!==g?g[r]:null,a=null!==R?R.get(r):void 0,f=n[0],d=c.concat([r,f]),p=(0,o.createRouterCacheKey)(f),h=e(t,n,void 0!==a?a.get(p):void 0,u,l,i,d,s);m.set(r,h);let _=h.dynamicRequestTree;null!==_?(P=!0,O[r]=_):O[r]=n;let y=h.node;if(null!==y){let e=new Map;e.set(p,y),E.set(r,e)}}return{route:r,node:{lazyData:null,rsc:p,prefetchRsc:null,head:_,prefetchHead:null,loading:h,parallelRoutes:E,navigatedAt:y},dynamicRequestTree:P?f(r,O):null,children:m}}(e,r,n,c,s,p,h,_)}function f(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function d(e,t,r,n,u,l,a){let i=f(t,t[1]);return i[3]="refetch",{route:t,node:function e(t,r,n,u,l,a,i){let c=r[1],s=null!==n?n[2]:null,f=new Map;for(let r in c){let n=c[r],d=null!==s?s[r]:null,p=n[0],h=a.concat([r,p]),_=(0,o.createRouterCacheKey)(p),y=e(t,n,void 0===d?null:d,u,l,h,i),b=new Map;b.set(_,y),f.set(r,b)}let d=0===f.size;d&&i.push(a);let p=null!==n?n[1]:null,h=null!==n?n[3]:null;return{lazyData:null,parallelRoutes:f,prefetchRsc:void 0!==p?p:null,prefetchHead:d?u:[null,null],loading:void 0!==h?h:null,rsc:v(),head:d?v():null,navigatedAt:t}}(e,t,r,n,u,l,a),dynamicRequestTree:i,children:null}}function p(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:l,head:a}=t;l&&function(e,t,r,n,l){let a=e;for(let e=0;e{h(e,t)})}function h(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)_(e.route,r,t);else for(let e of n.values())h(e,t);e.dynamicRequestTree=null}function _(e,t,r){let n=e[1],u=t.parallelRoutes;for(let e in n){let t=n[e],l=u.get(e);if(void 0===l)continue;let a=t[0],i=(0,o.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&_(t,c,r)}let l=t.rsc;b(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;b(a)&&a.resolve(null)}let y=Symbol();function b(e){return e&&e.tag===y}function v(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=y,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87358:e=>{var t=e.exports={},r=[],n=!1;function u(){if(!n){n=!0;for(var e,t=r.length;t;){e=r,r=[];for(var u=-1;++u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return f},ErrorBoundaryHandler:function(){return s}});let n=r(28140),u=r(95155),o=n._(r(12115)),l=r(51486),a=r(5829);r(61489);let i=r(15860),c=(0,r(93913).isBot)(window.navigator.userAgent);class s extends o.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!c?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.HandleISRError,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,u.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:o}=e,a=(0,l.useUntrackedPathname)();return t?(0,u.jsx)(s,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:o}):(0,u.jsx)(u.Fragment,{children:o})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90535:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},92929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return u}});let n=r(2018);function u(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{doesStaticSegmentAppearInURL:function(){return c},getCacheKeyForDynamicParam:function(){return s},getParamValueFromCacheKey:function(){return d},getRenderedPathname:function(){return a},getRenderedSearch:function(){return l},parseDynamicParamFromURLPart:function(){return i},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(65360),u=r(64425),o=r(52486);function l(e){let t=e.headers.get(o.NEXT_REWRITTEN_QUERY_HEADER);return null!==t?""===t?"":"?"+t:f(new URL(e.url)).search}function a(e){let t=e.headers.get(o.NEXT_REWRITTEN_PATH_HEADER);return null!=t?t:f(new URL(e.url)).pathname}function i(e,t,r){switch(e){case"c":case"ci":return rencodeURIComponent(e)):[];case"oc":return rencodeURIComponent(e)):null;case"d":case"di":if(r>=t.length)return"";return encodeURIComponent(t[r]);default:return""}}function c(e){return!(e===u.ROOT_SEGMENT_REQUEST_KEY||e.startsWith(n.PAGE_SEGMENT_KEY)||"("===e[0]&&e.endsWith(")"))&&e!==n.DEFAULT_SEGMENT_KEY&&"/_not-found"!==e}function s(e,t){return"string"==typeof e?(0,n.addSearchParamsIfPageSegment)(e,Object.fromEntries(new URLSearchParams(t))):null===e?"":e.join("/")}function f(e){let t=new URL(e);if(t.searchParams.delete(o.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e,t){return"c"===t||"oc"===t?e.split("/"):e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return o},getBotType:function(){return i},isBot:function(){return a}});let n=r(14029),u=/Googlebot(?!-)|Googlebot$/i,o=n.HTML_LIMITED_BOT_UA_RE.source;function l(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function a(e){return u.test(e)||l(e)}function i(e){return u.test(e)?"dom":l(e)?"html":void 0}},94201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return u}});let n=r(69190);function u(e,t,r){for(let u in r[1]){let o=r[1][u][0],l=(0,n.createRouterCacheKey)(o),a=t.parallelRoutes.get(u);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(u,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94681:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return o}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function u(e){return["async","defer","noModule"].includes(e)}function o(e,t){for(let[o,l]of Object.entries(t)){if(!t.hasOwnProperty(o)||n.includes(o)||void 0===l)continue;let a=r[o]||o.toLowerCase();"SCRIPT"===e.tagName&&u(a)?e[a]=!!l:e.setAttribute(a,String(l)),(!1===l||"SCRIPT"===e.tagName&&u(a)&&(!l||"false"===l))&&(e.setAttribute(a,""),e.removeAttribute(a))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},95155:(e,t,r)=>{"use strict";e.exports=r(86897)},96058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let n=r(73879),u=r(71239);function o(e,t){return(0,u.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return u}});let n=r(35737);function u(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98301:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},98924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(49417),u=r(95155),o=n._(r(12115)),l=r(46752);function a(){let e=(0,o.useContext)(l.TemplateContext);return(0,u.jsx)(u.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99062:(e,t,r)=>{"use strict";var n=r(47650),u={stream:!0},o=Object.prototype.hasOwnProperty,l=new Map;function a(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}function c(e){for(var t=e[1],n=[],u=0;uf||35===f||114===f||120===f?(d=f,f=3,s++):(d=0,f=3);continue;case 2:44===(b=i[s++])?f=4:h=h<<4|(96i.length&&(b=-1)}var v=i.byteOffset+s;if(-1{r.d(t,{b:()=>i,s:()=>a});var n=r(12115),o=r(88142),s=r(95155),a=n.forwardRef((e,t)=>(0,s.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a},5379:(e,t,r)=>{r.d(t,{D:()=>u,N:()=>c});var n=r(12115),o=(e,t,r,n,o,s,a,i)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&s?o.map(e=>s[e]||e):o;r?(l.classList.remove(...n),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),r=t,i&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},s=["light","dark"],a="(prefers-color-scheme: dark)",i=n.createContext(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(i))?e:l},c=e=>n.useContext(i)?n.createElement(n.Fragment,null,e.children):n.createElement(p,{...e}),d=["light","dark"],p=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=d,defaultTheme:p=o?"system":"light",attribute:h="data-theme",value:w,children:b,nonce:E,scriptProps:k}=e,[x,g]=n.useState(()=>f(u,p)),[T,P]=n.useState(()=>"system"===x?y():x),C=w?Object.values(w):c,S=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=y());let n=w?w[t]:t,a=r?m(E):null,i=document.documentElement,u=e=>{"class"===e?(i.classList.remove(...C),n&&i.classList.add(n)):e.startsWith("data-")&&(n?i.setAttribute(e,n):i.removeAttribute(e))};if(Array.isArray(h)?h.forEach(u):u(h),l){let e=s.includes(p)?p:null,r=s.includes(t)?t:e;i.style.colorScheme=r}null==a||a()},[E]),L=n.useCallback(e=>{let t="function"==typeof e?e(x):e;g(t);try{localStorage.setItem(u,t)}catch(e){}},[x]),R=n.useCallback(e=>{P(y(e)),"system"===x&&o&&!t&&S("system")},[x,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(R),R(e),()=>e.removeListener(R)},[R]),n.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?g(e.newValue):L(p))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),n.useEffect(()=>{S(null!=t?t:x)},[t,x]);let D=n.useMemo(()=>({theme:x,setTheme:L,forcedTheme:t,resolvedTheme:"system"===x?T:x,themes:o?[...c,"system"]:c,systemTheme:o?T:void 0}),[x,L,t,T,o,c]);return n.createElement(i.Provider,{value:D},n.createElement(v,{forcedTheme:t,storageKey:u,attribute:h,enableSystem:o,enableColorScheme:l,defaultTheme:p,value:w,themes:c,nonce:E,scriptProps:k}),b)},v=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:a,enableColorScheme:i,defaultTheme:l,value:u,themes:c,nonce:d,scriptProps:p}=e,v=JSON.stringify([s,r,l,t,c,u,a,i]).slice(1,-1);return n.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(v,")")}})}),f=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},26615:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(14294).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},28387:(e,t,r)=>{r.d(t,{UU:()=>w,WG:()=>m,cI:()=>h});var n=r(36232),o=r(59607),s=r(43313),a=(e,t)=>{if(Array.isArray(e))for(var r=0,n=e.length;r{if("definitions"in e){for(var t=[],r=0,o=e.definitions.length;re(t);return t.toPromise=()=>(0,s.hq)((0,s.s)(1)((0,s.pb)(e=>!e.stale&&!e.hasNext)(t))),t.then=(e,r)=>t.toPromise().then(e,r),t.subscribe=e=>(0,s.B1)(e)(t),t}function c(e,t,r){return{...t,kind:e,context:t.context?{...t.context,...r}:r||t.context}}var d=(e,t)=>c(e.kind,e,{meta:{...e.context.meta,...t}}),p=()=>{},v=({kind:e})=>"mutation"!==e&&"query"!==e,f=e=>{var t=(e=>{var t=(0,o.k)(e),r=l.get(t.__key);return r||(l.set(t.__key,r=i(t)),Object.defineProperty(r,"__key",{value:t.__key,enumerable:!1})),r})(e.query);if(t===e.query)return e;var r=c(e.kind,e);return r.query=t,r},m=({forward:e,client:t,dispatchDebug:r})=>{var n=new Map,i=new Map,l=e=>"query"===e.kind&&"network-only"!==e.context.requestPolicy&&("cache-only"===e.context.requestPolicy||n.has(e.key));return r=>{var u=(0,s.Tj)(e=>{var r=n.get(e.key),s=r||(0,o.m)(e,{data:null});return s={...s,operation:d(e,{cacheOutcome:r?"hit":"miss"})},"cache-and-network"===e.context.requestPolicy&&(s.stale=!0,y(t,e)),s})((0,s.pb)(e=>!v(e)&&l(e))(r)),c=(0,s.Mi)(e=>{var{operation:r}=e;if(r){var o=r.context.additionalTypenames||[];if("subscription"!==e.operation.kind&&(o=[...a(e.data,new Set)].concat(o)),"mutation"===e.operation.kind||"subscription"===e.operation.kind){for(var s=new Set,l=0;l"query"!==e.kind||"cache-only"!==e.context.requestPolicy)((0,s.Tj)(e=>d(e,{cacheOutcome:"miss"}))((0,s.h1)([(0,s.Tj)(f)((0,s.pb)(e=>!v(e)&&!l(e))(r)),(0,s.pb)(e=>v(e))(r)])))));return(0,s.h1)([u,c])}},y=(e,t)=>e.reexecuteOperation(c(t.kind,t,{requestPolicy:"network-only"})),h=({forward:e,dispatchDebug:t})=>t=>{var r=(0,s.ZZ)(e=>{var r=(0,o.a)(e),n=(0,o.d)(e,r),a=(0,o.e)(e,r);return(0,s.QK)((0,s.pb)(t=>"teardown"===t.kind&&t.key===e.key)(t))((0,o.f)(e,n,a))})((0,s.pb)(e=>"teardown"!==e.kind&&("subscription"!==e.kind||!!e.context.fetchSubscriptions))(t)),n=e((0,s.pb)(e=>"teardown"===e.kind||"subscription"===e.kind&&!e.context.fetchSubscriptions)(t));return(0,s.h1)([r,n])},w=function e(t){let r;var n=0,a=new Map,i=new Map,l=new Set,d=[],v={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},f=(0,s.PT)();function m(e){"mutation"!==e.kind&&"teardown"!==e.kind&&l.has(e.key)||("teardown"===e.kind?l.delete(e.key):"mutation"!==e.kind&&l.add(e.key),f.next(e))}var y=!1;function h(e){if(e&&m(e),!y){for(y=!0;y&&(e=d.shift());)m(e);y=!1}}var w=e=>{var t=(0,s.QK)((0,s.pb)(t=>"teardown"===t.kind&&t.key===e.key)(f.source))((0,s.pb)(t=>t.operation.kind===e.kind&&t.operation.key===e.key&&(!t.operation.context._instance||t.operation.context._instance===e.context._instance))(k));return t="query"!==e.kind?(0,s.v6)(e=>!!e.hasNext,!0)(t):(0,s.nx)(t=>{var r=(0,s.Ys)(t);return t.stale||t.hasNext?r:(0,s.h1)([r,(0,s.Tj)(()=>(t.stale=!0,t))((0,s.s)(1)((0,s.pb)(t=>t.key===e.key)(f.source)))])})(t),t="mutation"!==e.kind?(0,s.HT)(()=>{l.delete(e.key),a.delete(e.key),i.delete(e.key),y=!1;for(var t=d.length-1;t>=0;t--)d[t].key===e.key&&d.splice(t,1);m(c("teardown",e,e.context))})((0,s.oT)(t=>{if(t.stale)if(t.hasNext)for(var r=0;r{m(e)})(t),(0,s.uM)(t)},b=Object.assign(this instanceof e?this:Object.create(e.prototype),{suspense:!!t.suspense,operations$:f.source,reexecuteOperation(e){if("teardown"===e.kind)h(e);else if("mutation"===e.kind)d.push(e),Promise.resolve().then(h);else if(i.has(e.key)){for(var t=!1,r=0;r(r||(r={}),c(e,t,{_instance:"mutation"===e?n=n+1|0:void 0,...v,...r,requestPolicy:r.requestPolicy||v.requestPolicy,suspense:r.suspense||!1!==r.suspense&&b.suspense})),executeRequestOperation:e=>"mutation"===e.kind?u(w(e)):u((0,s.RZ)(()=>{var t=i.get(e.key);t||i.set(e.key,t=w(e)),t=(0,s.ao)(()=>{h(e)})(t);var r=a.get(e.key);return"query"===e.kind&&r&&(r.stale||r.hasNext)?(0,s.nx)(s.Ys)((0,s.h1)([t,(0,s.pb)(t=>t===a.get(e.key))((0,s.Ys)(r))])):t})),executeQuery(e,t){var r=b.createRequestOperation("query",e,t);return b.executeRequestOperation(r)},executeSubscription(e,t){var r=b.createRequestOperation("subscription",e,t);return b.executeRequestOperation(r)},executeMutation(e,t){var r=b.createRequestOperation("mutation",e,t);return b.executeRequestOperation(r)},readQuery(e,t,r){var n=null;return(0,s.B1)(e=>{n=e})(b.query(e,t,r)).unsubscribe(),n},query:(e,t,r)=>b.executeQuery((0,o.h)(e,t),r),subscription:(e,t,r)=>b.executeSubscription((0,o.h)(e,t),r),mutation:(e,t,r)=>b.executeMutation((0,o.h)(e,t),r)}),E=(r=t.exchanges,({client:e,forward:t,dispatchDebug:n})=>r.reduceRight((t,r)=>r({client:e,forward:e=>(0,s.uM)(t((0,s.uM)(e))),dispatchDebug(e){}}),t)),k=(0,s.uM)(E({client:b,dispatchDebug:p,forward:(({dispatchDebug:e})=>e=>(0,s.pb)(e=>!1)(e))({dispatchDebug:p})})(f.source));return(0,s.mk)(k),b}},34679:(e,t,r)=>{r.d(t,{rc:()=>ei,bm:()=>el,VY:()=>ea,Kq:()=>er,bL:()=>eo,hE:()=>es,LM:()=>en});var n,o=r(12115),s=r(47650),a=r(92556),i=r(94446),l=r(78625),u=r(3468),c=r(88142),d=r(70222),p=r(95155),v="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var r,s;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:E,...k}=e,x=o.useContext(f),[g,T]=o.useState(null),P=null!=(s=null==g?void 0:g.ownerDocument)?s:null==(r=globalThis)?void 0:r.document,[,C]=o.useState({}),S=(0,i.s)(t,e=>T(e)),L=Array.from(x.layers),[R]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),D=L.indexOf(R),N=g?L.indexOf(g):-1,O=x.layersWithOutsidePointerEventsDisabled.size>0,j=N>=D,M=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,d.c)(e),s=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!s.current){let t=function(){w("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);s.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>s.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));j&&!r&&(null==m||m(e),null==b||b(e),e.defaultPrevented||null==E||E())},P),q=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,d.c)(e),s=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!s.current&&w("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==E||E())},P);return!function(e,t=globalThis?.document){let r=(0,d.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{N===x.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},P),o.useEffect(()=>{if(g)return l&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(g)),x.layers.add(g),h(),()=>{l&&1===x.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=n)}},[g,P,l,x]),o.useEffect(()=>()=>{g&&(x.layers.delete(g),x.layersWithOutsidePointerEventsDisabled.delete(g),h())},[g,x]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,p.jsx)(c.sG.div,{...k,ref:S,style:{pointerEvents:O?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,q.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,M.onPointerDownCapture)})});m.displayName="DismissableLayer";var y=o.forwardRef((e,t)=>{let r=o.useContext(f),n=o.useRef(null),s=(0,i.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,p.jsx)(c.sG.div,{...e,ref:s})});function h(){let e=new CustomEvent(v);document.dispatchEvent(e)}function w(e,t,r,n){let{discrete:o}=n,s=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?(0,c.hO)(s,a):s.dispatchEvent(a)}y.displayName="DismissableLayerBranch";var b=r(4129),E=o.forwardRef((e,t)=>{var r,n;let{container:a,...i}=e,[l,u]=o.useState(!1);(0,b.N)(()=>u(!0),[]);let d=a||l&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return d?s.createPortal((0,p.jsx)(c.sG.div,{...i,ref:t}),d):null});E.displayName="Portal";var k=r(76842),x=r(23558),g=r(861),T="ToastProvider",[P,C,S]=(0,l.N)("Toast"),[L,R]=(0,u.A)("Toast",[S]),[D,N]=L(T),O=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=e,[l,u]=o.useState(null),[c,d]=o.useState(0),v=o.useRef(!1),f=o.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(T,"`. Expected non-empty `string`.")),(0,p.jsx)(P.Provider,{scope:t,children:(0,p.jsx)(D,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:a,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:o.useCallback(()=>d(e=>e+1),[]),onToastRemove:o.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:v,isClosePausedRef:f,children:i})})};O.displayName=T;var j="ToastViewport",M=["F8"],q="toast.viewportPause",_="toast.viewportResume",A=o.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:n=M,label:s="Notifications ({hotkey})",...a}=e,l=N(j,r),u=C(r),d=o.useRef(null),v=o.useRef(null),f=o.useRef(null),m=o.useRef(null),h=(0,i.s)(t,m,l.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.toastCount>0;o.useEffect(()=>{let e=e=>{var t;0!==n.length&&n.every(t=>e[t]||e.code===t)&&(null==(t=m.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),o.useEffect(()=>{let e=d.current,t=m.current;if(b&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(q);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(_);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[b,l.isClosePausedRef]);let E=o.useCallback(e=>{let{tabbingDirection:t}=e,r=u().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[u]);return o.useEffect(()=>{let e=m.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,s;let r=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null==(n=v.current)||n.focus();return}let i=E({tabbingDirection:a?"backwards":"forwards"}),l=i.findIndex(e=>e===r);et(i.slice(l+1))?t.preventDefault():a?null==(o=v.current)||o.focus():null==(s=f.current)||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,E]),(0,p.jsxs)(y,{ref:d,role:"region","aria-label":s.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&(0,p.jsx)(I,{ref:v,onFocusFromOutsideViewport:()=>{et(E({tabbingDirection:"forwards"}))}}),(0,p.jsx)(P.Slot,{scope:r,children:(0,p.jsx)(c.sG.ol,{tabIndex:-1,...a,ref:h})}),b&&(0,p.jsx)(I,{ref:f,onFocusFromOutsideViewport:()=>{et(E({tabbingDirection:"backwards"}))}})]})});A.displayName=j;var F="ToastFocusProxy",I=o.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,s=N(F,r);return(0,p.jsx)(g.s,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=s.viewport)?void 0:t.contains(r))||n()}})});I.displayName=F;var K="Toast",G=o.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:o,onOpenChange:s,...i}=e,[l=!0,u]=(0,x.i)({prop:n,defaultProp:o,onChange:s});return(0,p.jsx)(k.C,{present:r||l,children:(0,p.jsx)(B,{open:l,...i,ref:t,onClose:()=>u(!1),onPause:(0,d.c)(e.onPause),onResume:(0,d.c)(e.onResume),onSwipeStart:(0,a.m)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.m)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,a.m)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,a.m)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});G.displayName=K;var[W,V]=L(K,{onClose(){}}),B=o.forwardRef((e,t)=>{let{__scopeToast:r,type:n="foreground",duration:l,open:u,onClose:v,onEscapeKeyDown:f,onPause:y,onResume:h,onSwipeStart:w,onSwipeMove:b,onSwipeCancel:E,onSwipeEnd:k,...x}=e,g=N(K,r),[T,C]=o.useState(null),S=(0,i.s)(t,e=>C(e)),L=o.useRef(null),R=o.useRef(null),D=l||g.duration,O=o.useRef(0),j=o.useRef(D),M=o.useRef(0),{onToastAdd:A,onToastRemove:F}=g,I=(0,d.c)(()=>{var e;(null==T?void 0:T.contains(document.activeElement))&&(null==(e=g.viewport)||e.focus()),v()}),G=o.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(M.current),O.current=new Date().getTime(),M.current=window.setTimeout(I,e))},[I]);o.useEffect(()=>{let e=g.viewport;if(e){let t=()=>{G(j.current),null==h||h()},r=()=>{let e=new Date().getTime()-O.current;j.current=j.current-e,window.clearTimeout(M.current),null==y||y()};return e.addEventListener(q,r),e.addEventListener(_,t),()=>{e.removeEventListener(q,r),e.removeEventListener(_,t)}}},[g.viewport,D,y,h,G]),o.useEffect(()=>{u&&!g.isClosePausedRef.current&&G(D)},[u,D,g.isClosePausedRef,G]),o.useEffect(()=>(A(),()=>F()),[A,F]);let V=o.useMemo(()=>T?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n)if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(T):null,[T]);return g.viewport?(0,p.jsxs)(p.Fragment,{children:[V&&(0,p.jsx)(H,{__scopeToast:r,role:"status","aria-live":"foreground"===n?"assertive":"polite","aria-atomic":!0,children:V}),(0,p.jsx)(W,{scope:r,onClose:I,children:s.createPortal((0,p.jsx)(P.ItemSlot,{scope:r,children:(0,p.jsx)(m,{asChild:!0,onEscapeKeyDown:(0,a.m)(f,()=>{g.isFocusedToastEscapeKeyDownRef.current||I(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,p.jsx)(c.sG.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.m)(e.onKeyDown,e=>{"Escape"===e.key&&(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:(0,a.m)(e.onPointerDown,e=>{0===e.button&&(L.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.m)(e.onPointerMove,e=>{if(!L.current)return;let t=e.clientX-L.current.x,r=e.clientY-L.current.y,n=!!R.current,o=["left","right"].includes(g.swipeDirection),s=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,a=o?s(0,t):0,i=o?0:s(0,r),l="touch"===e.pointerType?10:2,u={x:a,y:i},c={originalEvent:e,delta:u};n?(R.current=u,$("toast.swipeMove",b,c,{discrete:!1})):ee(u,g.swipeDirection,l)?(R.current=u,$("toast.swipeStart",w,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(L.current=null)}),onPointerUp:(0,a.m)(e.onPointerUp,e=>{let t=R.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),R.current=null,L.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};ee(t,g.swipeDirection,g.swipeThreshold)?$("toast.swipeEnd",k,n,{discrete:!0}):$("toast.swipeCancel",E,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),H=e=>{let{__scopeToast:t,children:r,...n}=e,s=N(K,t),[a,i]=o.useState(!1),[l,u]=o.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,d.c)(e);(0,b.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>i(!0)),o.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,p.jsx)(E,{asChild:!0,children:(0,p.jsx)(g.s,{...n,children:a&&(0,p.jsxs)(p.Fragment,{children:[s.label," ",r]})})})},Y=o.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,p.jsx)(c.sG.div,{...n,ref:t})});Y.displayName="ToastTitle";var z=o.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,p.jsx)(c.sG.div,{...n,ref:t})});z.displayName="ToastDescription";var Q="ToastAction",U=o.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,p.jsx)(J,{altText:r,asChild:!0,children:(0,p.jsx)(Z,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(Q,"`. Expected non-empty `string`.")),null)});U.displayName=Q;var X="ToastClose",Z=o.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,o=V(X,r);return(0,p.jsx)(J,{asChild:!0,children:(0,p.jsx)(c.sG.button,{type:"button",...n,ref:t,onClick:(0,a.m)(e.onClick,o.onClose)})})});Z.displayName=X;var J=o.forwardRef((e,t)=>{let{__scopeToast:r,altText:n,...o}=e;return(0,p.jsx)(c.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function $(e,t,r,n){let{discrete:o}=n,s=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?(0,c.hO)(s,a):s.dispatchEvent(a)}var ee=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return"left"===t||"right"===t?s&&n>r:!s&&o>r};function et(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var er=O,en=A,eo=G,es=Y,ea=z,ei=U,el=Z}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/34-cf5c123a8d48bc75.js b/adl-server/src/main/resources/static/_next/static/chunks/34-cf5c123a8d48bc75.js new file mode 100644 index 00000000..c45ddfa7 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/34-cf5c123a8d48bc75.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{34212:(e,r,t)=>{t.d(r,{q:()=>o});function o(e,[r,t]){return Math.min(t,Math.max(r,e))}},59034:(e,r,t)=>{t.d(r,{LM:()=>q,OK:()=>K,VM:()=>C,bL:()=>G,lr:()=>H});var o=t(12115),n=t(88142),l=t(76842),i=t(3468),a=t(94446),s=t(70222),c=t(66218),d=t(4129),u=t(34212),p=t(92556),f=t(95155),h="ScrollArea",[v,w]=(0,i.A)(h),[b,g]=v(h),m=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,p]=o.useState(null),[h,v]=o.useState(null),[w,g]=o.useState(null),[m,S]=o.useState(null),[E,x]=o.useState(null),[C,y]=o.useState(0),[T,R]=o.useState(0),[L,P]=o.useState(!1),[_,j]=o.useState(!1),D=(0,a.s)(r,e=>p(e)),A=(0,c.jH)(i);return(0,f.jsx)(b,{scope:t,type:l,dir:A,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:g,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:E,onScrollbarYChange:x,scrollbarYEnabled:_,onScrollbarYEnabledChange:j,onCornerWidthChange:y,onCornerHeightChange:R,children:(0,f.jsx)(n.sG.div,{dir:A,...d,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});m.displayName=h;var S="ScrollAreaViewport",E=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,nonce:i,...s}=e,c=g(S,t),d=o.useRef(null),u=(0,a.s)(r,d,c.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,f.jsx)(n.sG.div,{"data-radix-scroll-area-viewport":"",...s,ref:u,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});E.displayName=S;var x="ScrollAreaScrollbar",C=o.forwardRef((e,r)=>{let{forceMount:t,...n}=e,l=g(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return o.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,f.jsx)(y,{...n,ref:r,forceMount:t}):"scroll"===l.type?(0,f.jsx)(T,{...n,ref:r,forceMount:t}):"auto"===l.type?(0,f.jsx)(R,{...n,ref:r,forceMount:t}):"always"===l.type?(0,f.jsx)(L,{...n,ref:r}):null});C.displayName=x;var y=o.forwardRef((e,r)=>{let{forceMount:t,...n}=e,i=g(x,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},o=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",o),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",o)}}},[i.scrollArea,i.scrollHideDelay]),(0,f.jsx)(l.C,{present:t||a,children:(0,f.jsx)(R,{"data-state":a?"visible":"hidden",...n,ref:r})})}),T=o.forwardRef((e,r)=>{var t;let{forceMount:n,...i}=e,a=g(x,e.__scopeScrollArea),s="horizontal"===e.orientation,c=V(()=>u("SCROLL_END"),100),[d,u]=(t={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},o.useReducer((e,r)=>{let o=t[e][r];return null!=o?o:e},"hidden"));return o.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,a.scrollHideDelay,u]),o.useEffect(()=>{let e=a.viewport,r=s?"scrollLeft":"scrollTop";if(e){let t=e[r],o=()=>{let o=e[r];t!==o&&(u("SCROLL"),c()),t=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}},[a.viewport,s,u,c]),(0,f.jsx)(l.C,{present:n||"hidden"!==d,children:(0,f.jsx)(L,{"data-state":"hidden"===d?"hidden":"visible",...i,ref:r,onPointerEnter:(0,p.m)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,p.m)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),R=o.forwardRef((e,r)=>{let t=g(x,e.__scopeScrollArea),{forceMount:n,...i}=e,[a,s]=o.useState(!1),c="horizontal"===e.orientation,d=V(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...n}=e,l=g(x,e.__scopeScrollArea),i=o.useRef(null),a=o.useRef(0),[s,c]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Y(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function p(e,r){return function(e,r,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",n=k(t),l=r||n/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(n-l),s=t.content-t.viewport;return M([i,a],"ltr"===o?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,f.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=p(e,l.dir))}}):"vertical"===t?(0,f.jsx)(_,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=U(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=p(e))}}):null}),P=o.forwardRef((e,r)=>{let{sizes:t,onSizesChange:n,...l}=e,i=g(x,e.__scopeScrollArea),[s,c]=o.useState(),d=o.useRef(null),u=(0,a.s)(r,d,i.onScrollbarXChange);return o.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,f.jsx)(A,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let o=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(o),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:X(s.paddingLeft),paddingEnd:X(s.paddingRight)}})}})}),_=o.forwardRef((e,r)=>{let{sizes:t,onSizesChange:n,...l}=e,i=g(x,e.__scopeScrollArea),[s,c]=o.useState(),d=o.useRef(null),u=(0,a.s)(r,d,i.onScrollbarYChange);return o.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,f.jsx)(A,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":k(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let o=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(o),function(e,r){return e>0&&e{d.current&&i.viewport&&s&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:X(s.paddingTop),paddingEnd:X(s.paddingBottom)}})}})}),[j,D]=v(x),A=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:b,...m}=e,S=g(x,t),[E,C]=o.useState(null),y=(0,a.s)(r,e=>C(e)),T=o.useRef(null),R=o.useRef(""),L=S.viewport,P=l.content-l.viewport,_=(0,s.c)(w),D=(0,s.c)(h),A=V(b,10);function N(e){T.current&&v({x:e.clientX-T.current.left,y:e.clientY-T.current.top})}return o.useEffect(()=>{let e=e=>{let r=e.target;(null==E?void 0:E.contains(r))&&_(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,E,P,_]),o.useEffect(D,[l,D]),B(E,A),B(S.content,A),(0,f.jsx)(j,{scope:t,scrollbar:E,hasThumb:i,onThumbChange:(0,s.c)(c),onThumbPointerUp:(0,s.c)(d),onThumbPositionChange:D,onThumbPointerDown:(0,s.c)(u),children:(0,f.jsx)(n.sG.div,{...m,ref:y,style:{position:"absolute",...m.style},onPointerDown:(0,p.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),T.current=E.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),N(e))}),onPointerMove:(0,p.m)(e.onPointerMove,N),onPointerUp:(0,p.m)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),T.current=null})})})}),N="ScrollAreaThumb",H=o.forwardRef((e,r)=>{let{forceMount:t,...o}=e,n=D(N,e.__scopeScrollArea);return(0,f.jsx)(l.C,{present:t||n.hasThumb,children:(0,f.jsx)(z,{ref:r,...o})})}),z=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=g(N,t),c=D(N,t),{onThumbPositionChange:d}=c,u=(0,a.s)(r,e=>c.onThumbChange(e)),h=o.useRef(void 0),v=V(()=>{h.current&&(h.current(),h.current=void 0)},100);return o.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{v(),h.current||(h.current=F(e,d),d())};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,f.jsx)(n.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,p.m)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,o=e.clientY-r.top;c.onThumbPointerDown({x:t,y:o})}),onPointerUp:(0,p.m)(e.onPointerUp,c.onThumbPointerUp)})});H.displayName=N;var W="ScrollAreaCorner",O=o.forwardRef((e,r)=>{let t=g(W,e.__scopeScrollArea),o=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&o?(0,f.jsx)(I,{...e,ref:r}):null});O.displayName=W;var I=o.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=g(W,t),[a,s]=o.useState(0),[c,d]=o.useState(0),u=!!(a&&c);return B(i.scrollbarX,()=>{var e;let r=(null==(e=i.scrollbarX)?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),B(i.scrollbarY,()=>{var e;let r=(null==(e=i.scrollbarY)?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,f.jsx)(n.sG.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function X(e){return e?parseInt(e,10):0}function Y(e,r){let t=e/r;return isNaN(t)?0:t}function k(e){let r=Y(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function U(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",o=k(r),n=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-n,i=r.content-r.viewport,a=(0,u.q)(e,"ltr"===t?[0,i]:[-1*i,0]);return M([0,i],[0,l-o])(a)}function M(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(t-e[0])}}var F=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},o=0;return!function n(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function V(e,r){let t=(0,s.c)(e),n=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),o.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(t,r)},[t,r])}function B(e,r){let t=(0,s.c)(r);(0,d.N)(()=>{let r=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,t])}var G=m,q=E,K=O}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/381-385fd38be2156534.js b/adl-server/src/main/resources/static/_next/static/chunks/381-385fd38be2156534.js new file mode 100644 index 00000000..91cadcf5 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/381-385fd38be2156534.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[381],{1272:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},7870:(e,t,n)=>{n.d(t,{H4:()=>x,_V:()=>b,bL:()=>w});var r=n(12115),o=n(3468),i=n(70222),a=n(4129),l=n(88142),u=n(95155),c="Avatar",[s,f]=(0,o.A)(c),[d,p]=s(c),h=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[i,a]=r.useState("idle");return(0,u.jsx)(d,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,u.jsx)(l.sG.span,{...o,ref:t})})});h.displayName=c;var m="AvatarImage",v=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:c=()=>{},...s}=e,f=p(m,n),d=function(e,t){let[n,o]=r.useState("idle");return(0,a.N)(()=>{if(!e)return void o("error");let n=!0,r=new window.Image,i=e=>()=>{n&&o(e)};return o("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,t&&(r.referrerPolicy=t),()=>{n=!1}},[e,t]),n}(o,s.referrerPolicy),h=(0,i.c)(e=>{c(e),f.onImageLoadingStatusChange(e)});return(0,a.N)(()=>{"idle"!==d&&h(d)},[d,h]),"loaded"===d?(0,u.jsx)(l.sG.img,{...s,ref:t,src:o}):null});v.displayName=m;var g="AvatarFallback",y=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...i}=e,a=p(g,n),[c,s]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>s(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==a.imageLoadingStatus?(0,u.jsx)(l.sG.span,{...i,ref:t}):null});y.displayName=g;var w=h,b=v,x=y},14432:(e,t,n)=>{n.d(t,{A:()=>z});var r,o,i=n(71450),a=n(12115),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function d(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=d),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,i.Cl)({async:!0,ssr:!1},e),o}(),h=function(){},m=a.forwardRef(function(e,t){var n,r,o,l,u=a.useRef(null),d=a.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),m=d[0],v=d[1],g=e.forwardProps,y=e.children,w=e.className,b=e.removeScrollBar,x=e.enabled,E=e.shards,C=e.sideCar,R=e.noIsolation,S=e.inert,A=e.allowPinchZoom,P=e.as,M=e.gapMode,k=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,l=o.facade,s(function(){var e=f.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(l,n)},[n]),l),j=(0,i.Cl)((0,i.Cl)({},k),m);return a.createElement(a.Fragment,null,x&&a.createElement(C,{sideCar:p,removeScrollBar:b,shards:E,noIsolation:R,inert:S,setCallbacks:v,allowPinchZoom:!!A,lockRef:u,gapMode:M}),g?a.cloneElement(a.Children.only(y),(0,i.Cl)((0,i.Cl)({},j),{ref:L})):a.createElement(void 0===P?"div":P,(0,i.Cl)({},j,{className:w,ref:L}),y))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:u,zeroRight:l};var v=function(e){var t=e.sideCar,n=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,(0,i.Cl)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},C=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},R=w(),S="data-scroll-locked",A=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},P=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},M=function(){a.useEffect(function(){return document.body.setAttribute(S,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(S):document.body.setAttribute(S,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;M();var i=a.useMemo(function(){return C(o)},[o]);return a.createElement(R,{styles:A(i,!t,o,n?"":"!important")})},L=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){L=!1}var T=!!L&&{passive:!1},D=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},O=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),N(e,r)){var o=_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},N=function(e,t){return"v"===e?D(t,"overflowY"):D(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},I=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,c=t.contains(u),s=!1,f=l>0,d=0,p=0;do{var h=_(e,u),m=h[0],v=h[1]-h[2]-a*m;(m||v)&&N(e,u)&&(d+=v,p+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&l>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},K=0,G=[];let H=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(K++)[0],l=a.useState(w)[0],u=a.useRef(e);a.useEffect(function(){u.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,i=F(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,f=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=O(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=O(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return I(p,t,e,"h"===p?l:c,!0)},[]),s=a.useCallback(function(e){if(G.length&&G[G.length-1]===l){var n="deltaY"in e?W(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),f=a.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a.useCallback(function(e){n.current=F(e),r.current=void 0},[]),p=a.useCallback(function(t){f(t.type,W(t),t.target,c(t,e.lockRef.current))},[]),h=a.useCallback(function(t){f(t.type,F(t),t.target,c(t,e.lockRef.current))},[]);a.useEffect(function(){return G.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",s,T),document.addEventListener("touchmove",s,T),document.addEventListener("touchstart",d,T),function(){G=G.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,T),document.removeEventListener("touchmove",s,T),document.removeEventListener("touchstart",d,T)}},[]);var m=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?a.createElement(k,{gapMode:e.gapMode}):null)},p.useMedium(r),v);var U=a.forwardRef(function(e,t){return a.createElement(m,(0,i.Cl)({},e,{ref:t,sideCar:H}))});U.classNames=m.classNames;let z=U},17045:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},17129:(e,t,n)=>{n.d(t,{DX:()=>l,TL:()=>a});var r=n(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=n(95155);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var a;let e,l,u=(a=n,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(c.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...a}=e,l=r.Children.toArray(o),u=l.find(c);if(u){let e=u.props.children,o=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var l=a("Slot"),u=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},19526:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(12115),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},27314:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},29853:(e,t,n)=>{n.d(t,{H_:()=>th,UC:()=>ts,YJ:()=>tf,q7:()=>tp,VF:()=>tg,JU:()=>td,ZL:()=>tc,z6:()=>tm,hN:()=>tv,bL:()=>tl,wv:()=>ty,Pb:()=>tw,G5:()=>tx,ZP:()=>tb,l9:()=>tu});var r,o=n(12115),i=n(92556),a=n(94446),l=n(3468),u=n(23558),c=n(88142),s=n(78625),f=n(66218),d=n(70222),p=n(95155),h="dismissableLayer.update",m=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=o.forwardRef((e,t)=>{var n,l;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(m),[C,R]=o.useState(null),S=null!=(l=null==C?void 0:C.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,A]=o.useState({}),P=(0,a.s)(t,e=>R(e)),M=Array.from(E.layers),[k]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),L=M.indexOf(k),j=C?M.indexOf(C):-1,T=E.layersWithOutsidePointerEventsDisabled.size>0,D=j>=L,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));D&&!n&&(null==f||f(e),null==w||w(e),e.defaultPrevented||null==b||b())},S),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,d.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==v||v(e),null==w||w(e),e.defaultPrevented||null==b||b())},S);return!function(e,t=globalThis?.document){let n=(0,d.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j===E.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(C)return u&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),g(),()=>{u&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[C,S,u,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),g())},[C,E]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,p.jsx)(c.sG.div,{...x,ref:P,style:{pointerEvents:T?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function g(){let e=new CustomEvent(h);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,c.hO)(i,a):i.dispatchEvent(a)}v.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(m),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(c.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var w=n(19526),b="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},C=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[s,f]=o.useState(null),h=(0,d.c)(i),m=(0,d.c)(l),v=o.useRef(null),g=(0,a.s)(t,e=>f(e)),y=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(y.paused||!s)return;let t=e.target;s.contains(t)?v.current=t:A(v.current,{select:!0})},t=function(e){if(y.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||A(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&A(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,y.paused]),o.useEffect(()=>{if(s){P.add(y);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(b,E);s.addEventListener(b,h),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(A(r,{select:t}),document.activeElement!==n)return}(R(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&A(s))}return()=>{s.removeEventListener(b,h),setTimeout(()=>{let t=new CustomEvent(x,E);s.addEventListener(x,m),s.dispatchEvent(t),t.defaultPrevented||A(null!=e?e:document.body,{select:!0}),s.removeEventListener(x,m),P.remove(y)},0)}}},[s,h,m,y]);let w=o.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=R(e);return[S(t,e),S(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&A(i,{select:!0})):(e.preventDefault(),n&&A(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,p.jsx)(c.sG.div,{tabIndex:-1,...u,ref:g,onKeyDown:w})});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function S(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function A(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}C.displayName="FocusScope";var P=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=M(e,t)).unshift(t)},remove(t){var n;null==(n=(e=M(e,t))[0])||n.resume()}}}();function M(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var k=n(68946),L=n(66093),j=n(47650),T=n(4129),D=o.forwardRef((e,t)=>{var n,r;let{container:i,...a}=e,[l,u]=o.useState(!1);(0,T.N)(()=>u(!0),[]);let s=i||l&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return s?j.createPortal((0,p.jsx)(c.sG.div,{...a,ref:t}),s):null});D.displayName="Portal";var O=n(76842),N=n(72431),_=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(W);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,p.jsx)(I,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,p.jsx)(I,{...r,ref:t,children:n})});_.displayName="Slot";var I=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),i=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(i.ref=t?(0,a.t)(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null});I.displayName="SlotClone";var F=({children:e})=>(0,p.jsx)(p.Fragment,{children:e});function W(e){return o.isValidElement(e)&&e.type===F}var B=n(97745),K=n(14432),G=["Enter"," "],H=["ArrowUp","PageDown","End"],U=["ArrowDown","PageUp","Home",...H],z={ltr:[...G,"ArrowRight"],rtl:[...G,"ArrowLeft"]},V={ltr:["ArrowLeft"],rtl:["ArrowRight"]},X="Menu",[Y,q,Z]=(0,s.N)(X),[$,J]=(0,l.A)(X,[Z,L.Bk,N.RG]),Q=(0,L.Bk)(),ee=(0,N.RG)(),[et,en]=$(X),[er,eo]=$(X),ei=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:l=!0}=e,u=Q(t),[c,s]=o.useState(null),h=o.useRef(!1),m=(0,d.c)(a),v=(0,f.jH)(i);return o.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,p.jsx)(L.bL,{...u,children:(0,p.jsx)(et,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:s,children:(0,p.jsx)(er,{scope:t,onClose:o.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:v,modal:l,children:r})})})};ei.displayName=X;var ea=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Q(n);return(0,p.jsx)(L.Mz,{...o,...r,ref:t})});ea.displayName="MenuAnchor";var el="MenuPortal",[eu,ec]=$(el,{forceMount:void 0}),es=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=en(el,t);return(0,p.jsx)(eu,{scope:t,forceMount:n,children:(0,p.jsx)(O.C,{present:n||i.open,children:(0,p.jsx)(D,{asChild:!0,container:o,children:r})})})};es.displayName=el;var ef="MenuContent",[ed,ep]=$(ef),eh=o.forwardRef((e,t)=>{let n=ec(ef,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=en(ef,e.__scopeMenu),a=eo(ef,e.__scopeMenu);return(0,p.jsx)(Y.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(O.C,{present:r||i.open,children:(0,p.jsx)(Y.Slot,{scope:e.__scopeMenu,children:a.modal?(0,p.jsx)(em,{...o,ref:t}):(0,p.jsx)(ev,{...o,ref:t})})})})}),em=o.forwardRef((e,t)=>{let n=en(ef,e.__scopeMenu),r=o.useRef(null),l=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,B.Eq)(e)},[]),(0,p.jsx)(eg,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ev=o.forwardRef((e,t)=>{let n=en(ef,e.__scopeMenu);return(0,p.jsx)(eg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eg=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:g,onDismiss:y,disableOutsideScroll:b,...x}=e,E=en(ef,n),R=eo(ef,n),S=Q(n),A=ee(n),P=q(n),[M,k]=o.useState(null),j=o.useRef(null),T=(0,a.s)(t,j,E.onContentChange),D=o.useRef(0),O=o.useRef(""),I=o.useRef(0),F=o.useRef(null),W=o.useRef("right"),B=o.useRef(0),G=b?K.A:o.Fragment,z=b?{as:_,allowPinchZoom:!0}:void 0;o.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,w.Oh)();let V=o.useCallback(e=>{var t,n;return W.current===(null==(t=F.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=F.current)?void 0:n.area)},[]);return(0,p.jsx)(ed,{scope:n,searchRef:O,onItemEnter:o.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:o.useCallback(e=>{var t;V(e)||(null==(t=j.current)||t.focus(),k(null))},[V]),onTriggerLeave:o.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:I,onPointerGraceIntentChange:o.useCallback(e=>{F.current=e},[]),children:(0,p.jsx)(G,{...z,children:(0,p.jsx)(C,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.m)(u,e=>{var t;e.preventDefault(),null==(t=j.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,p.jsx)(v,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:g,onDismiss:y,children:(0,p.jsx)(N.bL,{asChild:!0,...A,dir:R.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:k,onEntryFocus:(0,i.m)(f,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,p.jsx)(L.UC,{role:"menu","aria-orientation":"vertical","data-state":ez(E.open),"data-radix-menu-content":"",dir:R.dir,...S,...x,ref:T,style:{outline:"none",...x.style},onKeyDown:(0,i.m)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=O.current+e,o=P().filter(e=>!e.disabled),i=document.activeElement,a=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,a),u=null==(n=o.find(e=>e.textValue===l))?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=j.current;if(e.target!==o||!U.includes(e.key))return;e.preventDefault();let i=P().filter(e=>!e.disabled).map(e=>e.ref.current);H.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,eY(e=>{let t=e.target,n=B.current!==e.clientX;e.currentTarget.contains(t)&&n&&(W.current=e.clientX>B.current?"right":"left",B.current=e.clientX)}))})})})})})})});eh.displayName=ef;var ey=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(c.sG.div,{role:"group",...r,ref:t})});ey.displayName="MenuGroup";var ew=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(c.sG.div,{...r,ref:t})});ew.displayName="MenuLabel";var eb="MenuItem",ex="menu.itemSelect",eE=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...l}=e,u=o.useRef(null),s=eo(eb,e.__scopeMenu),f=ep(eb,e.__scopeMenu),d=(0,a.s)(t,u),h=o.useRef(!1);return(0,p.jsx)(eC,{...l,ref:d,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(ex,{bubbles:!0,cancelable:!0});e.addEventListener(ex,e=>null==r?void 0:r(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?h.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),h.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;h.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;n||t&&" "===e.key||G.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eE.displayName=eb;var eC=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:l,...u}=e,s=ep(eb,n),f=ee(n),d=o.useRef(null),h=(0,a.s)(t,d),[m,v]=o.useState(!1),[g,y]=o.useState("");return o.useEffect(()=>{let e=d.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,p.jsx)(Y.ItemSlot,{scope:n,disabled:r,textValue:null!=l?l:g,children:(0,p.jsx)(N.q7,{asChild:!0,...f,focusable:!r,children:(0,p.jsx)(c.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:h,onPointerMove:(0,i.m)(e.onPointerMove,eY(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eY(e=>s.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>v(!0)),onBlur:(0,i.m)(e.onBlur,()=>v(!1))})})})}),eR=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,p.jsx)(eT,{scope:e.__scopeMenu,checked:n,children:(0,p.jsx)(eE,{role:"menuitemcheckbox","aria-checked":eV(n)?"mixed":n,...o,ref:t,"data-state":eX(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!eV(n)||!n),{checkForDefaultPrevented:!1})})})});eR.displayName="MenuCheckboxItem";var eS="MenuRadioGroup",[eA,eP]=$(eS,{value:void 0,onValueChange:()=>{}}),eM=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,d.c)(r);return(0,p.jsx)(eA,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,p.jsx)(ey,{...o,ref:t})})});eM.displayName=eS;var ek="MenuRadioItem",eL=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=eP(ek,e.__scopeMenu),a=n===o.value;return(0,p.jsx)(eT,{scope:e.__scopeMenu,checked:a,children:(0,p.jsx)(eE,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eX(a),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});eL.displayName=ek;var ej="MenuItemIndicator",[eT,eD]=$(ej,{checked:!1}),eO=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=eD(ej,n);return(0,p.jsx)(O.C,{present:r||eV(i.checked)||!0===i.checked,children:(0,p.jsx)(c.sG.span,{...o,ref:t,"data-state":eX(i.checked)})})});eO.displayName=ej;var eN=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,p.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eN.displayName="MenuSeparator";var e_=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Q(n);return(0,p.jsx)(L.i3,{...o,...r,ref:t})});e_.displayName="MenuArrow";var eI="MenuSub",[eF,eW]=$(eI),eB=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=en(eI,t),l=Q(t),[u,c]=o.useState(null),[s,f]=o.useState(null),h=(0,d.c)(i);return o.useEffect(()=>(!1===a.open&&h(!1),()=>h(!1)),[a.open,h]),(0,p.jsx)(L.bL,{...l,children:(0,p.jsx)(et,{scope:t,open:r,onOpenChange:h,content:s,onContentChange:f,children:(0,p.jsx)(eF,{scope:t,contentId:(0,k.B)(),triggerId:(0,k.B)(),trigger:u,onTriggerChange:c,children:n})})})};eB.displayName=eI;var eK="MenuSubTrigger",eG=o.forwardRef((e,t)=>{let n=en(eK,e.__scopeMenu),r=eo(eK,e.__scopeMenu),l=eW(eK,e.__scopeMenu),u=ep(eK,e.__scopeMenu),c=o.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},h=o.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return o.useEffect(()=>h,[h]),o.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),f(null)}},[s,f]),(0,p.jsx)(ea,{asChild:!0,...d,children:(0,p.jsx)(eC,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":ez(n.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,eY(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eY(e=>{var t,r;h();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&z[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});eG.displayName=eK;var eH="MenuSubContent",eU=o.forwardRef((e,t)=>{let n=ec(ef,e.__scopeMenu),{forceMount:r=n.forceMount,...l}=e,u=en(ef,e.__scopeMenu),c=eo(ef,e.__scopeMenu),s=eW(eH,e.__scopeMenu),f=o.useRef(null),d=(0,a.s)(t,f);return(0,p.jsx)(Y.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(O.C,{present:r||u.open,children:(0,p.jsx)(Y.Slot,{scope:e.__scopeMenu,children:(0,p.jsx)(eg,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:d,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=V[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null==(r=s.trigger)||r.focus(),e.preventDefault()}})})})})})});function ez(e){return e?"open":"closed"}function eV(e){return"indeterminate"===e}function eX(e){return eV(e)?"indeterminate":e?"checked":"unchecked"}function eY(e){return t=>"mouse"===t.pointerType?e(t):void 0}eU.displayName=eH;var eq="DropdownMenu",[eZ,e$]=(0,l.A)(eq,[J]),eJ=J(),[eQ,e0]=eZ(eq),e1=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,s=eJ(t),f=o.useRef(null),[d=!1,h]=(0,u.i)({prop:i,defaultProp:a,onChange:l});return(0,p.jsx)(eQ,{scope:t,triggerId:(0,k.B)(),triggerRef:f,contentId:(0,k.B)(),open:d,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),modal:c,children:(0,p.jsx)(ei,{...s,open:d,onOpenChange:h,dir:r,modal:c,children:n})})};e1.displayName=eq;var e2="DropdownMenuTrigger",e5=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=e0(e2,n),u=eJ(n);return(0,p.jsx)(ea,{asChild:!0,...u,children:(0,p.jsx)(c.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e5.displayName=e2;var e4=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eJ(t);return(0,p.jsx)(es,{...r,...n})};e4.displayName="DropdownMenuPortal";var e7="DropdownMenuContent",e3=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,a=e0(e7,n),l=eJ(n),u=o.useRef(!1);return(0,p.jsx)(eh,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...r,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=a.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e3.displayName=e7;var e9=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(ey,{...o,...r,ref:t})});e9.displayName="DropdownMenuGroup";var e8=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(ew,{...o,...r,ref:t})});e8.displayName="DropdownMenuLabel";var e6=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eE,{...o,...r,ref:t})});e6.displayName="DropdownMenuItem";var te=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eR,{...o,...r,ref:t})});te.displayName="DropdownMenuCheckboxItem";var tt=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eM,{...o,...r,ref:t})});tt.displayName="DropdownMenuRadioGroup";var tn=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eL,{...o,...r,ref:t})});tn.displayName="DropdownMenuRadioItem";var tr=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eO,{...o,...r,ref:t})});tr.displayName="DropdownMenuItemIndicator";var to=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eN,{...o,...r,ref:t})});to.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(e_,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var ti=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eG,{...o,...r,ref:t})});ti.displayName="DropdownMenuSubTrigger";var ta=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,p.jsx)(eU,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ta.displayName="DropdownMenuSubContent";var tl=e1,tu=e5,tc=e4,ts=e3,tf=e9,td=e8,tp=e6,th=te,tm=tt,tv=tn,tg=tr,ty=to,tw=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=eJ(t),[l=!1,c]=(0,u.i)({prop:r,defaultProp:i,onChange:o});return(0,p.jsx)(eB,{...a,open:l,onOpenChange:c,children:n})},tb=ti,tx=ta},33078:(e,t)=>{function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(n,r(e));else t.set(n,r(o));return t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},47670:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let r=n(49417)._(n(33078)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let s=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),s&&"?"!==s[0]&&(s="?"+s),""+i+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(s=s.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},52619:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return v},useLinkStatus:function(){return y}});let r=n(49417),o=n(95155),i=r._(n(12115)),a=n(47670),l=n(46752),u=n(83011),c=n(62296),s=n(96058);n(94781);let f=n(63499),d=n(58607),p=n(11807);n(17045);let h=n(66048);function m(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function v(e){var t;let n,r,a,[v,y]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:b,as:x,children:E,prefetch:C=null,passHref:R,replace:S,shallow:A,scroll:P,onClick:M,onMouseEnter:k,onTouchStart:L,legacyBehavior:j=!1,onNavigate:T,ref:D,unstable_dynamicOnHover:O,...N}=e;n=E,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let _=i.default.useContext(l.AppRouterContext),I=!1!==C,F=!1!==C?null===(t=C)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:W,as:B}=i.default.useMemo(()=>{let e=m(b);return{href:e,as:x?m(x):e}},[b,x]);j&&(r=i.default.Children.only(n));let K=j?r&&"object"==typeof r&&r.ref:D,G=i.default.useCallback(e=>(null!==_&&(w.current=(0,f.mountLinkInstance)(e,W,_,F,I,y)),()=>{w.current&&((0,f.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,f.unmountPrefetchableInstance)(e)}),[I,W,_,F,y]),H={ref:(0,u.useMergedRef)(G,K),onClick(e){j||"function"!=typeof M||M(e),j&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),_&&(e.defaultPrevented||function(e,t,n,r,o,a,l){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,p.dispatchNavigateAction)(n||t,o?"replace":"push",null==a||a,r.current)})}}(e,W,B,w,S,P,T))},onMouseEnter(e){j||"function"!=typeof k||k(e),j&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),_&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){j||"function"!=typeof L||L(e),j&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),_&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,c.isAbsoluteUrl)(B)?H.href=B:j&&!R&&("a"!==r.type||"href"in r.props)||(H.href=(0,s.addBasePath)(B)),a=j?i.default.cloneElement(r,H):(0,o.jsx)("a",{...N,...H,children:n}),(0,o.jsx)(g.Provider,{value:v,children:a})}let g=(0,i.createContext)(f.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(g);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57268:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(12115),o=n(88142),i=n(95155),a="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:u=a,...c}=e,s=(n=u,l.includes(n))?u:a;return(0,i.jsx)(o.sG.div,{"data-orientation":s,...r?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...c,ref:t})});u.displayName="Separator";var c=u},58607:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(62296),o=n(92929);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},62296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return c},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return s},stringifyError:function(){return w}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function s(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&c(n))return r;if(!r)throw Object.defineProperty(Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},63263:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},66093:(e,t,n)=>{n.d(t,{Mz:()=>e1,i3:()=>e5,UC:()=>e2,bL:()=>e0,Bk:()=>eF});var r=n(12115);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,l=Math.round,u=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function y(e){return g.has(p(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>f[e])}let b=["left","right"],x=["right","left"],E=["top","bottom"],C=["bottom","top"];function R(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function P(e,t,n){let r,{reference:o,floating:i}=e,a=y(t),l=m(y(t)),u=v(l),c=p(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,g=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[l]-=g*(n&&s?-1:1);break;case"end":r[l]+=g*(n&&s?-1:1)}return r}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=P(c,r,u),d=r,p={},h=0;for(let n=0;ne[t]>=0)}let T=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),l=h(n),u="y"===y(n),c=T.has(a)?-1:1,s=i&&u?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(v="end"===l?-1*g:g),u?{x:v*s,y:m*c}:{x:m*c,y:v*s}}function O(){return"undefined"!=typeof window}function N(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!O()&&(e instanceof Node||e instanceof _(e).Node)}function W(e){return!!O()&&(e instanceof Element||e instanceof _(e).Element)}function B(e){return!!O()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function K(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}let G=new Set(["inline","contents"]);function H(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!G.has(o)}let U=new Set(["table","td","th"]),z=[":popover-open",":modal"];function V(e){return z.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let X=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],q=["paint","layout","strict","content"];function Z(e){let t=$(),n=W(e)?ee(e):e;return X.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||q.some(e=>(n.contain||"").includes(e))}function $(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let J=new Set(["html","body","#document"]);function Q(e){return J.has(N(e))}function ee(e){return _(e).getComputedStyle(e)}function et(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===N(e))return e;let t=e.assignedSlot||e.parentNode||K(e)&&e.host||I(e);return K(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=en(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&H(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=_(o);if(i){let e=eo(a);return t.concat(a,a.visualViewport||[],H(o)?o:[],e&&n?er(e):[])}return t.concat(o,er(o,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=B(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function ea(e){return W(e)?e:e.contextElement}function el(e){let t=ea(e);if(!B(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ei(t),a=(i?l(n.width):n.width)/r,u=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let eu=c(0);function ec(e){let t=_(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function es(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ea(e),l=c(1);t&&(r?W(r)&&(l=el(r)):l=el(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===_(a))&&o)?ec(a):c(0),s=(i.left+u.x)/l.x,f=(i.top+u.y)/l.y,d=i.width/l.x,p=i.height/l.y;if(a){let e=_(a),t=r&&W(r)?_(r):r,n=e,o=eo(n);for(;o&&r&&t!==n;){let e=el(o),t=o.getBoundingClientRect(),r=ee(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=a,o=eo(n=_(o))}}return A({width:d,height:p,x:s,y:f})}function ef(e,t){let n=et(e).scrollLeft;return t?t.left+n:es(I(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ef(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function eh(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=_(e),r=I(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=$();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}let c=ef(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=I(e),n=et(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ef(e),u=-n.scrollTop;return"rtl"===ee(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(I(e));else if(W(t))r=function(e,t){let n=es(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?el(e):c(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:a,height:l,x:o*i.x,y:r*i.y}}(t,n);else{let n=ec(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(r)}function em(e){return"static"===ee(e).position}function ev(e,t){if(!B(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function eg(e,t){var n;let r=_(e);if(V(e))return r;if(!B(e)){let t=en(e);for(;t&&!Q(t);){if(W(t)&&!em(t))return t;t=en(t)}return r}let o=ev(e,t);for(;o&&(n=o,U.has(N(n)))&&em(o);)o=ev(o,t);return o&&Q(o)&&em(o)&&!Z(o)?r:o||function(e){let t=en(e);for(;B(t)&&!Q(t);){if(Z(t))return t;if(V(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||eg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),o=I(t),i="fixed"===n,a=es(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=c(0);if(r||!r&&!i)if(("body"!==N(t)||H(o))&&(l=et(t)),r){let e=es(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ef(o));i&&!r&&o&&(u.x=ef(o));let s=!o||r||i?c(0):ed(o,l);return{x:a.left+l.scrollLeft-u.x-s.x,y:a.top+l.scrollTop-u.y-s.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=I(r),l=!!t&&V(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},s=c(1),f=c(0),d=B(r);if((d||!d&&!i)&&(("body"!==N(r)||H(a))&&(u=et(r)),B(r))){let e=es(r);s=el(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!a||d||i?c(0):ed(a,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-u.scrollTop*s.y+f.y+p.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,l=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>W(e)&&"body"!==N(e)),o=null,i="fixed"===ee(e).position,a=i?en(e):e;for(;W(a)&&!Q(a);){let t=ee(a),n=Z(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ep.has(o.position)||H(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!W(r)||Q(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=l[0],c=l.reduce((e,n)=>{let r=eh(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},eh(t,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:eg,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:el,isElement:W,isRTL:function(e){return"rtl"===ee(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:u,elements:c,middlewareData:s}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let g=S(p),w={x:n,y:r},b=m(y(o)),x=v(b),E=await u.getDimensions(f),C="y"===b,R=C?"clientHeight":"clientWidth",A=l.reference[x]+l.reference[b]-w[b]-l.floating[x],P=w[b]-l.reference[b],M=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),k=M?M[R]:0;k&&await (null==u.isElement?void 0:u.isElement(M))||(k=c.floating[R]||l.floating[x]);let L=k/2-E[x]/2-1,j=i(g[C?"top":"left"],L),T=i(g[C?"bottom":"right"],L),D=k-E[x]-T,O=k/2-E[x]/2+(A/2-P/2),N=a(j,i(O,D)),_=!s.arrow&&null!=h(o)&&O!==N&&l.reference[x]/2-(O{t.current=e}),t}var eM=n(88142),ek=n(95155),eL=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,ek.jsx)(eM.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ek.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eL.displayName="Arrow";var ej=n(94446),eT=n(3468),eD=n(70222),eO=n(4129),eN=n(84288),e_="Popper",[eI,eF]=(0,eT.A)(e_),[eW,eB]=eI(e_),eK=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,ek.jsx)(eW,{scope:t,anchor:o,onAnchorChange:i,children:n})};eK.displayName=e_;var eG="PopperAnchor",eH=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eB(eG,n),l=r.useRef(null),u=(0,ej.s)(t,l);return r.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)}),o?null:(0,ek.jsx)(eM.sG.div,{...i,ref:u})});eH.displayName=eG;var eU="PopperContent",[ez,eV]=eI(eU),eX=r.forwardRef((e,t)=>{var n,o,l,c,s,f,g,S;let{__scopePopper:A,side:P="bottom",sideOffset:O=0,align:N="center",alignOffset:_=0,arrowPadding:F=0,avoidCollisions:W=!0,collisionBoundary:B=[],collisionPadding:K=0,sticky:G="partial",hideWhenDetached:H=!1,updatePositionStrategy:U="optimized",onPlaced:z,...V}=e,X=eB(eU,A),[Y,q]=r.useState(null),Z=(0,ej.s)(t,e=>q(e)),[$,J]=r.useState(null),Q=(0,eN.X)($),ee=null!=(g=null==Q?void 0:Q.width)?g:0,et=null!=(S=null==Q?void 0:Q.height)?S:0,en="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},eo=Array.isArray(B)?B:[B],ei=eo.length>0,el={padding:en,boundary:eo.filter(e$),altBoundary:ei},{refs:eu,floatingStyles:ec,placement:ef,isPositioned:ed,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eR(p,o)||h(o);let[m,v]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=a||m,E=l||g,C=r.useRef(null),R=r.useRef(null),S=r.useRef(f),A=null!=c,P=eP(c),k=eP(i),L=eP(s),j=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),((e,t,n)=>{let r=new Map,o={platform:ew,...n},i={...o.platform,_c:r};return M(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};T.current&&!eR(S.current,t)&&(S.current=t,eE.flushSync(()=>{d(t)}))})},[p,t,n,k,L]);eC(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let T=r.useRef(!1);eC(()=>(T.current=!0,()=>{T.current=!1}),[]),eC(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(P.current)return P.current(x,E,j);j()}},[x,E,j,P,A]);let D=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),O=r.useMemo(()=>({reference:x,floating:E}),[x,E]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eA(O.floating,f.x),r=eA(O.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eS(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:D,elements:O,floatingStyles:N}),[f,j,D,O,N])}({strategy:"fixed",placement:P+("center"!==N?"-"+N:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,r=null,o=I(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),l();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=d;if(s||t(),!m||!v)return;let g=u(h),y=u(o.clientWidth-(p+m)),w={rootMargin:-g+"px "+-y+"px "+-u(o.clientHeight-(h+v))+"px "+-u(p)+"px",threshold:a(0,i(1,f))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==f){if(!b)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||eb(d,e.getBoundingClientRect())||c(),b=!1}try{r=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),l}(p,n):null,v=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let y=d?es(e):null;return d&&function t(){let r=es(e);y&&!eb(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===U})},elements:{reference:X.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,u=await D(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}}(e),options:[e,t]}))({mainAxis:O+et,alignmentAxis:_}),W&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(e,t),f={x:n,y:r},h=await k(t,s),v=y(p(o)),g=m(v),w=f[g],b=f[v];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=w+h[e],r=w-h[t];w=a(n,i(w,r))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+h[e],r=b-h[t];b=a(n,i(b,r))}let x=c.fn({...t,[g]:w,[v]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:l,[v]:u}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===G?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=d(e,t),s={x:n,y:r},f=y(o),h=m(f),v=s[h],g=s[f],w=d(l,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;vn&&(v=n)}if(c){var x,E;let e="y"===h?"width":"height",t=T.has(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[f])||0)+(t?0:b.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[f])||0)-(t?b.crossAxis:0);gr&&(g=r)}return{[h]:v,[f]:g}}}}(e),options:[e,t]}))():void 0,...el}),W&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:g}=t,{mainAxis:S=!0,crossAxis:A=!0,fallbackPlacements:P,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:j=!0,...T}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let D=p(l),O=y(s),N=p(s)===s,_=await (null==f.isRTL?void 0:f.isRTL(g.floating)),I=P||(N||!j?[R(s)]:function(e){let t=R(e);return[w(e),t,w(t)]}(s)),F="none"!==L;!P&&F&&I.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:b;return t?b:x;case"left":case"right":return t?E:C;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(s,j,L,_));let W=[s,...I],B=await k(t,T),K=[],G=(null==(r=u.flip)?void 0:r.overflows)||[];if(S&&K.push(B[D]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=m(y(e)),i=v(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=R(a)),[a,R(a)]}(l,c,_);K.push(B[e[0]],B[e[1]])}if(G=[...G,{placement:l,overflows:K}],!K.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=W[e];if(t&&("alignment"!==A||O===y(t)||G.every(e=>y(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:G},reset:{placement:t}};let n=null==(i=G.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(M){case"bestFit":{let e=null==(a=G.filter(e=>{if(F){let t=y(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...el}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,l,{placement:u,rects:c,platform:s,elements:f}=t,{apply:m=()=>{},...v}=d(e,t),g=await k(t,v),w=p(u),b=h(u),x="y"===y(u),{width:E,height:C}=c.floating;"top"===w||"bottom"===w?(o=w,l=b===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(l=w,o="end"===b?"top":"bottom");let R=C-g.top-g.bottom,S=E-g.left-g.right,A=i(C-g[o],R),P=i(E-g[l],S),M=!t.middlewareData.shift,L=A,j=P;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(L=R),M&&!b){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);x?j=E-2*(0!==e||0!==t?e+t:a(g.left,g.right)):L=C-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await m({...t,availableWidth:j,availableHeight:L});let T=await s.getDimensions(f.floating);return E!==T.width||C!==T.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...el,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),$&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ex({element:n.current,padding:r}).fn(t):{}:n?ex({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:$,padding:F}),eJ({arrowWidth:ee,arrowHeight:et}),H&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=L(await k(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:j(e)}}}case"escaped":{let e=L(await k(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:j(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...el})]}),[eh,em]=eQ(ef),ev=(0,eD.c)(z);(0,eO.N)(()=>{ed&&(null==ev||ev())},[ed,ev]);let eg=null==(n=ep.arrow)?void 0:n.x,ey=null==(o=ep.arrow)?void 0:o.y,eL=(null==(l=ep.arrow)?void 0:l.centerOffset)!==0,[eT,e_]=r.useState();return(0,eO.N)(()=>{Y&&e_(window.getComputedStyle(Y).zIndex)},[Y]),(0,ek.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ed?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eT,"--radix-popper-transform-origin":[null==(c=ep.transformOrigin)?void 0:c.x,null==(s=ep.transformOrigin)?void 0:s.y].join(" "),...(null==(f=ep.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ek.jsx)(ez,{scope:A,placedSide:eh,onArrowChange:J,arrowX:eg,arrowY:ey,shouldHideArrow:eL,children:(0,ek.jsx)(eM.sG.div,{"data-side":eh,"data-align":em,...V,ref:Z,style:{...V.style,animation:ed?void 0:"none"}})})})});eX.displayName=eU;var eY="PopperArrow",eq={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eV(eY,n),i=eq[o.placedSide];return(0,ek.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ek.jsx)(eL,{...r,ref:t,style:{...r.style,display:"block"}})})});function e$(e){return null!==e}eZ.displayName=eY;var eJ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:c}=t,s=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=eQ(l),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+f/2,g=(null!=(a=null==(o=c.arrow)?void 0:o.y)?a:0)+d/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=s?m:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var e0=eK,e1=eH,e2=eX,e5=eZ},66218:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(12115);n(95155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},68946:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(12115),i=n(4129),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function u(e){let[t,n]=o.useState(a());return(0,i.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},72251:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},72431:(e,t,n)=>{n.d(t,{RG:()=>x,bL:()=>L,q7:()=>j});var r=n(12115),o=n(92556),i=n(78625),a=n(94446),l=n(3468),u=n(68946),c=n(88142),s=n(70222),f=n(23558),d=n(66218),p=n(95155),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,y,w]=(0,i.N)(v),[b,x]=(0,l.A)(v,[w]),[E,C]=b(v),R=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(S,{...e,ref:t})})}));R.displayName=v;var S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:l=!1,dir:u,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:w,onEntryFocus:b,preventScrollOnEntryFocus:x=!1,...C}=e,R=r.useRef(null),S=(0,a.s)(t,R),A=(0,d.jH)(u),[P=null,M]=(0,f.i)({prop:v,defaultProp:g,onChange:w}),[L,j]=r.useState(!1),T=(0,s.c)(b),D=y(n),O=r.useRef(!1),[N,_]=r.useState(0);return r.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(h,T),()=>e.removeEventListener(h,T)},[T]),(0,p.jsx)(E,{scope:n,orientation:i,dir:A,loop:l,currentTabStopId:P,onItemFocus:r.useCallback(e=>M(e),[M]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:L||0===N?-1:0,"data-orientation":i,...C,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),x)}}O.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>j(!1))})})}),A="RovingFocusGroupItem",P=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:l,...s}=e,f=(0,u.B)(),d=l||f,h=C(A,n),m=h.currentTabStopId===d,v=y(n),{onFocusableItemAdd:w,onFocusableItemRemove:b}=h;return r.useEffect(()=>{if(i)return w(),()=>b()},[i,w,b]),(0,p.jsx)(g.ItemSlot,{scope:n,id:d,focusable:i,active:a,children:(0,p.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...s,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{i?h.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return M[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>k(n))}})})})});P.displayName=A;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var L=R,j=P},75797:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},83011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let r=n(12115);function o(e,t){let n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(n.current=i(e,r)),t&&(o.current=i(t,r))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84288:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(12115),o=n(4129);function i(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},97745:(e,t,n)=>{n.d(t,{Eq:()=>c});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,p=new Set(c),h=function(e){!e||d.has(e)||(d.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,a),s.set(e,l),f.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),d.clear(),a++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},98428:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/401-ee8dbd8e70fac275.js b/adl-server/src/main/resources/static/_next/static/chunks/401-ee8dbd8e70fac275.js new file mode 100644 index 00000000..69cbe342 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/401-ee8dbd8e70fac275.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[401],{10489:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(12115),o=n(88142),u=n(95155),l=r.forwardRef((e,t)=>(0,u.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var i=l},26615:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},77283:(e,t,n)=>{n.d(t,{bm:()=>eF,UC:()=>eI,VY:()=>eM,hJ:()=>eS,ZL:()=>eL,bL:()=>eO,hE:()=>ej,l9:()=>eT});var r,o=n(12115),u=n.t(o,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{},d=u[" useId ".trim().toString()]||(()=>void 0),f=0;function p(e){let[t,n]=o.useState(d());return c(()=>{e||n(e=>e??String(f++))},[e]),e||(t?`radix-${t}`:"")}var m=u[" useInsertionEffect ".trim().toString()]||c;function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}Symbol("RADIX:SYNC_STATE"),"undefined"!=typeof window&&window.document&&window.document.createElement;var y=n(47650),g=n(17129),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,g.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...u}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=b(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var N="dismissableLayer.update",x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=o.forwardRef((e,t)=>{var n,u;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...p}=e,m=o.useContext(x),[y,g]=o.useState(null),b=null!=(u=null==y?void 0:y.ownerDocument)?u:null==(n=globalThis)?void 0:n.document,[,C]=o.useState({}),P=h(t,e=>g(e)),O=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),L=O.indexOf(T),S=y?O.indexOf(y):-1,I=m.layersWithOutsidePointerEventsDisabled.size>0,j=S>=L,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=w(e),u=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!u.current){let t=function(){R("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);u.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>u.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));j&&!n&&(null==a||a(e),null==d||d(e),e.defaultPrevented||null==f||f())},b),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=w(e),u=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!u.current&&R("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}(e=>{let t=e.target;![...m.branches].some(e=>e.contains(t))&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())},b);return!function(e,t=globalThis?.document){let n=function(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S===m.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},b),o.useEffect(()=>{if(y)return l&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),D(),()=>{l&&1===m.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=r)}},[y,b,l,m]),o.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),D())},[y,m]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),(0,s.jsx)(E.div,{...p,ref:P,style:{pointerEvents:I?j?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,F.onFocusCapture),onBlurCapture:v(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,M.onPointerDownCapture)})});function D(){let e=new CustomEvent(N);document.dispatchEvent(e)}function R(e,t,n,r){let{discrete:o}=r,u=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&u.addEventListener(e,t,{once:!0}),o)u&&y.flushSync(()=>u.dispatchEvent(l));else u.dispatchEvent(l)}function P(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}C.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(x),r=o.useRef(null),u=h(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(E.div,{...e,ref:u})}).displayName="DismissableLayerBranch";var O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,g.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...u}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var L="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",I={bubbles:!1,cancelable:!0},j=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:l,...i}=e,[a,c]=o.useState(null),d=T(u),f=T(l),p=o.useRef(null),m=function(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=P(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;tc(e)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(v.paused||!a)return;let t=e.target;a.contains(t)?p.current=t:A(p.current,{select:!0})},t=function(e){if(v.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||A(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&A(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,v.paused]),o.useEffect(()=>{if(a){_.add(v);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(L,I);a.addEventListener(L,d),a.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(A(r,{select:t}),document.activeElement!==n)return}(M(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&A(a))}return()=>{a.removeEventListener(L,d),setTimeout(()=>{let t=new CustomEvent(S,I);a.addEventListener(S,f),a.dispatchEvent(t),t.defaultPrevented||A(null!=e?e:document.body,{select:!0}),a.removeEventListener(S,f),_.remove(v)},0)}}},[a,d,f,v]);let y=o.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,u]=function(e){let t=M(e);return[F(t,e),F(t.reverse(),e)]}(t);r&&u?e.shiftKey||o!==u?e.shiftKey&&o===r&&(e.preventDefault(),n&&A(u,{select:!0})):(e.preventDefault(),n&&A(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,s.jsx)(O.div,{tabIndex:-1,...i,ref:m,onKeyDown:y})});function M(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function A(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var _=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=k(e,t)).unshift(t)},remove(t){var n;null==(n=(e=k(e,t))[0])||n.resume()}}}();function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,g.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...u}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),U=globalThis?.document?o.useLayoutEffect:()=>{},W=o.forwardRef((e,t)=>{var n,r;let{container:u,...l}=e,[i,a]=o.useState(!1);U(()=>a(!0),[]);let c=u||i&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?y.createPortal((0,s.jsx)($.div,{...l,ref:t}),c):null});W.displayName="Portal";var K=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,u]=o.useState(),l=o.useRef(null),i=o.useRef(e),a=o.useRef("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=B(l.current);a.current="mounted"===s?e:"none"},[s]),c(()=>{let t=l.current,n=i.current;if(n!==e){let r=a.current,o=B(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),i.current=e}},[e,d]),c(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=B(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(d("ANIMATION_END"),!i.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},u=e=>{e.target===r&&(a.current=B(l.current))};return r.addEventListener("animationstart",u),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",u),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{l.current=e?getComputedStyle(e):null,u(e)},[])}}(t),u="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),l=a(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||r.isPresent?o.cloneElement(u,{ref:l}):null};function B(e){return(null==e?void 0:e.animationName)||"none"}K.displayName="Presence";var q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,g.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...u}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),z=0;function H(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var V=n(14432),X=n(97745),Y="Dialog",[Z,G]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let u=o.createContext(r),l=n.length;n=[...n,r];let i=t=>{let{scope:n,children:r,...i}=t,a=n?.[e]?.[l]||u,c=o.useMemo(()=>i,Object.values(i));return(0,s.jsx)(a.Provider,{value:c,children:r})};return i.displayName=t+"Provider",[i,function(n,i){let a=i?.[e]?.[l]||u,s=o.useContext(a);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(Y),[J,Q]=Z(Y),ee=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:u,onOpenChange:l,modal:i=!0}=e,a=o.useRef(null),c=o.useRef(null),[d,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[u,l,i]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),u=o.useRef(n),l=o.useRef(t);return m(()=>{l.current=t},[t]),o.useEffect(()=>{u.current!==n&&(l.current?.(n),u.current=n)},[n,u]),[n,r,l]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:u;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[s,o.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&i.current?.(n)}else l(t)},[a,e,l,i])]}({prop:r,defaultProp:null!=u&&u,onChange:l,caller:Y});return(0,s.jsx)(J,{scope:t,triggerRef:a,contentRef:c,contentId:p(),titleId:p(),descriptionId:p(),open:d,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),modal:i,children:n})};ee.displayName=Y;var et="DialogTrigger",en=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=Q(et,n),u=a(t,o.triggerRef);return(0,s.jsx)(q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eN(o.open),...r,ref:u,onClick:l(e.onClick,o.onOpenToggle)})});en.displayName=et;var er="DialogPortal",[eo,eu]=Z(er,{forceMount:void 0}),el=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:u}=e,l=Q(er,t);return(0,s.jsx)(eo,{scope:t,forceMount:n,children:o.Children.map(r,e=>(0,s.jsx)(K,{present:n||l.open,children:(0,s.jsx)(W,{asChild:!0,container:u,children:e})}))})};el.displayName=er;var ei="DialogOverlay",ea=o.forwardRef((e,t)=>{let n=eu(ei,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=Q(ei,e.__scopeDialog);return u.modal?(0,s.jsx)(K,{present:r||u.open,children:(0,s.jsx)(ec,{...o,ref:t})}):null});ea.displayName=ei;var es=(0,g.TL)("DialogOverlay.RemoveScroll"),ec=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=Q(ei,n);return(0,s.jsx)(V.A,{as:es,allowPinchZoom:!0,shards:[o.contentRef],children:(0,s.jsx)(q.div,{"data-state":eN(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ed="DialogContent",ef=o.forwardRef((e,t)=>{let n=eu(ed,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=Q(ed,e.__scopeDialog);return(0,s.jsx)(K,{present:r||u.open,children:u.modal?(0,s.jsx)(ep,{...o,ref:t}):(0,s.jsx)(em,{...o,ref:t})})});ef.displayName=ed;var ep=o.forwardRef((e,t)=>{let n=Q(ed,e.__scopeDialog),r=o.useRef(null),u=a(t,n.contentRef,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,X.Eq)(e)},[]),(0,s.jsx)(ev,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),em=o.forwardRef((e,t)=>{let n=Q(ed,e.__scopeDialog),r=o.useRef(!1),u=o.useRef(!1);return(0,s.jsx)(ev,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,l;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),r.current=!1,u.current=!1},onInteractOutside:t=>{var o,l;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(u.current=!0));let i=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&u.current&&t.preventDefault()}})}),ev=o.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:l,...i}=e,c=Q(ed,n),d=o.useRef(null),f=a(t,d);return o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:H()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:H()),z++,()=>{1===z&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),z--}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:u,onUnmountAutoFocus:l,children:(0,s.jsx)(C,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eN(c.open),...i,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eR,{titleId:c.titleId}),(0,s.jsx)(eP,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ey="DialogTitle",eg=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=Q(ey,n);return(0,s.jsx)(q.h2,{id:o.titleId,...r,ref:t})});eg.displayName=ey;var eE="DialogDescription",eb=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=Q(eE,n);return(0,s.jsx)(q.p,{id:o.descriptionId,...r,ref:t})});eb.displayName=eE;var eh="DialogClose",ew=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=Q(eh,n);return(0,s.jsx)(q.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})});function eN(e){return e?"open":"closed"}ew.displayName=eh;var ex="DialogTitleWarning",[eC,eD]=function(e,t){let n=o.createContext(t),r=e=>{let{children:t,...r}=e,u=o.useMemo(()=>r,Object.values(r));return(0,s.jsx)(n.Provider,{value:u,children:t})};return r.displayName=e+"Provider",[r,function(r){let u=o.useContext(n);if(u)return u;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(ex,{contentName:ed,titleName:ey,docsSlug:"dialog"}),eR=e=>{let{titleId:t}=e,n=eD(ex),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},eP=e=>{let{contentRef:t,descriptionId:n}=e,r=eD("DialogDescriptionWarning"),u="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return o.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(u))},[u,t,n]),null},eO=ee,eT=en,eL=el,eS=ea,eI=ef,ej=eg,eM=eb,eF=ew}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/405-f7962d7b0bac4b9d.js b/adl-server/src/main/resources/static/_next/static/chunks/405-f7962d7b0bac4b9d.js new file mode 100644 index 00000000..65730804 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/405-f7962d7b0bac4b9d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{3998:(e,t,s)=>{s.d(t,{$:()=>d,r:()=>o});var a=s(95155),r=s(12115),n=s(17129),i=s(83101),l=s(64269);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=r.forwardRef((e,t)=>{let{className:s,variant:r,size:i,asChild:d=!1,...c}=e,f=d?n.DX:"button";return(0,a.jsx)(f,{className:(0,l.cn)(o({variant:r,size:i,className:s})),ref:t,...c})});d.displayName="Button"},6259:(e,t,s)=>{s.d(t,{SQ:()=>u,_2:()=>m,lp:()=>h,mB:()=>p,rI:()=>c,ty:()=>f});var a=s(95155),r=s(12115),n=s(29853),i=s(63263),l=s(72251),o=s(75797),d=s(64269);let c=n.bL,f=n.l9;n.YJ,n.ZL,n.Pb,n.z6,r.forwardRef((e,t)=>{let{className:s,inset:r,children:l,...o}=e;return(0,a.jsxs)(n.ZP,{ref:t,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",s),...o,children:[l,(0,a.jsx)(i.A,{className:"ml-auto"})]})}).displayName=n.ZP.displayName,r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...r})}).displayName=n.G5.displayName;let u=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...i})})});u.displayName=n.UC.displayName;let m=r.forwardRef((e,t)=>{let{className:s,inset:r,...i}=e;return(0,a.jsx)(n.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",s),...i})});m.displayName=n.q7.displayName,r.forwardRef((e,t)=>{let{className:s,children:r,checked:i,...o}=e;return(0,a.jsxs)(n.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:i,...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})}),r]})}).displayName=n.H_.displayName,r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,a.jsxs)(n.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(o.A,{className:"h-2 w-2 fill-current"})})}),r]})}).displayName=n.hN.displayName;let h=r.forwardRef((e,t)=>{let{className:s,inset:r,...i}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",s),...i})});h.displayName=n.JU.displayName;let p=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",s),...r})});p.displayName=n.wv.displayName},42193:(e,t,s)=>{s.d(t,{Ak:()=>u,AU:()=>h,As:()=>f,Jd:()=>m});var a=s(52078),r=s(19708),n=s(59253);let i={apiKey:"PLACEHOLDER_API_KEY",authDomain:"PLACEHOLDER_PROJECT_ID.firebaseapp.com",projectId:"PLACEHOLDER_PROJECT_ID",storageBucket:"PLACEHOLDER_PROJECT_ID.firebasestorage.app",messagingSenderId:"PLACEHOLDER_SENDER_ID",appId:"PLACEHOLDER_APP_ID"};var l=s(95155),o=s(12115);let d=(0,o.createContext)(void 0);function c(e){let{children:t,firebaseApp:s,firestore:a,auth:r}=e;return(0,l.jsx)(d.Provider,{value:{firebaseApp:s,firestore:a,auth:r},children:t})}function f(){return function(){let e=(0,o.useContext)(d);if(!e)throw Error("useFirebase must be used within a FirebaseProvider");return e}().auth}function u(e){let{children:t,firebaseApp:s,firestore:a,auth:r}=e;return(0,l.jsx)(c,{firebaseApp:s,firestore:a,auth:r,children:t})}function m(){let e=f(),[t,s]=(0,o.useState)(null),[a,r]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{let t=(0,n.hg)(e,e=>{s(e),r(!1)});return()=>t()},[e]),{user:t,loading:a}}function h(){let e=0===(0,a.Dk)().length?(0,a.Wp)(i):(0,a.Sx)(),t=(0,r.aU)(e),s=(0,n.xI)(e);return{firebaseApp:e,firestore:t,auth:s}}},64269:(e,t,s)=>{s.d(t,{cn:()=>n});var a=s(2821),r=s(75889);function n(){for(var e=arguments.length,t=Array(e),s=0;s{s.d(t,{default:()=>w});var a=s(95155),r=s(52619),n=s.n(r),i=s(1272),l=s(45444),o=s(27314),d=s(98428);let c={logo:e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,a.jsx)("path",{d:"M12 8V4H8"}),(0,a.jsx)("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),(0,a.jsx)("path",{d:"M2 14h2"}),(0,a.jsx)("path",{d:"M20 14h2"}),(0,a.jsx)("path",{d:"M15 13v2"}),(0,a.jsx)("path",{d:"M9 13v2"})]})};var f=s(3998),u=s(42193),m=s(59253),h=s(12115),p=s(7870),x=s(64269);let g=h.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(p.bL,{ref:t,className:(0,x.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...r})});g.displayName=p.bL.displayName;let v=h.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(p._V,{ref:t,className:(0,x.cn)("aspect-square h-full w-full",s),...r})});v.displayName=p._V.displayName;let j=h.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(p.H4,{ref:t,className:(0,x.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...r})});j.displayName=p.H4.displayName;var b=s(57268);let N=h.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:n=!0,...i}=e;return(0,a.jsx)(b.b,{ref:t,decorative:n,orientation:r,className:(0,x.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...i})});N.displayName=b.b.displayName;var y=s(6259);function w(){var e;let{user:t,loading:s}=(0,u.Jd)(),r=(0,u.As)(),h=async()=>{if(r)try{await (0,m.CI)(r)}catch(e){console.error("Logout failed:",e)}};return(0,a.jsx)("header",{className:"sticky top-0 z-10 w-full border-b bg-background/95 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"flex h-16 items-center justify-between px-4 md:px-6",children:[(0,a.jsxs)(n(),{href:"/",className:"flex items-center gap-3",children:[(0,a.jsx)(c.logo,{className:"h-7 w-7 text-primary"}),(0,a.jsx)("h1",{className:"text-lg font-bold tracking-tight text-foreground",children:"ADL Studio"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(n(),{href:"/analytics",children:(0,a.jsxs)(f.$,{variant:"ghost",size:"sm",children:[(0,a.jsx)(i.A,{className:"mr-2 h-4 w-4"}),"Analytics"]})}),(0,a.jsx)(n(),{href:"/dashboard",children:(0,a.jsx)(f.$,{variant:"ghost",size:"sm",children:"ADL"})}),(0,a.jsx)(n(),{href:"/widgets",children:(0,a.jsx)(f.$,{variant:"ghost",size:"sm",children:"Widgets"})}),(0,a.jsx)(n(),{href:"/roles",children:(0,a.jsx)(f.$,{variant:"ghost",size:"sm",children:"Roles"})}),(0,a.jsx)(n(),{href:"/assistant",children:(0,a.jsx)(f.$,{variant:"ghost",size:"sm",children:"Assistant"})}),(0,a.jsx)(N,{orientation:"vertical",className:"h-6 mx-1"}),(0,a.jsx)(n(),{href:"/settings",children:(0,a.jsxs)(f.$,{variant:"ghost",size:"icon",children:[(0,a.jsx)(l.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Settings"})]})}),!s&&(t?(0,a.jsxs)(y.rI,{children:[(0,a.jsx)(y.ty,{asChild:!0,children:(0,a.jsx)(f.$,{variant:"ghost",className:"relative h-8 w-8 rounded-full ml-2",children:(0,a.jsxs)(g,{className:"h-8 w-8",children:[(0,a.jsx)(v,{src:t.photoURL||"",alt:t.displayName||""}),(0,a.jsx)(j,{children:(null==(e=t.displayName)?void 0:e[0])||(0,a.jsx)(o.A,{})})]})})}),(0,a.jsxs)(y.SQ,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsx)(y.lp,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none",children:t.displayName}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:t.email})]})}),(0,a.jsx)(y.mB,{}),(0,a.jsxs)(y._2,{onClick:h,className:"text-destructive focus:bg-destructive focus:text-destructive-foreground",children:[(0,a.jsx)(d.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Log out"})]})]})]}):"")]})]})})}}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/44-e02908d1bfeea04d.js b/adl-server/src/main/resources/static/_next/static/chunks/44-e02908d1bfeea04d.js new file mode 100644 index 00000000..cabb611e --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/44-e02908d1bfeea04d.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44],{36232:(e,r,t)=>{t.d(r,{b8:()=>i,eO:()=>o,qg:()=>A,yy:()=>w});var n,a,i={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"};class o extends Error{constructor(e,r,t,n,a,i,o){super(e),this.name="GraphQLError",this.message=e,a&&(this.path=a),r&&(this.nodes=Array.isArray(r)?r:[r]),t&&(this.source=t),n&&(this.positions=n),i&&(this.originalError=i);var s=o;if(!s&&i){var l=i.extensions;l&&"object"==typeof l&&(s=l)}this.extensions=s||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}function s(e){return new o(`Syntax Error: Unexpected token at ${a} in ${e}`)}function l(e){if(e.lastIndex=a,e.test(n))return n.slice(a,a=e.lastIndex)}var u=/ +(?=[^\s])/y;function c(){for(var e=0|n.charCodeAt(a++);9===e||10===e||13===e||32===e||35===e||44===e||65279===e;e=0|n.charCodeAt(a++))if(35===e)for(;(e=0|n.charCodeAt(a++))&&10!==e&&13!==e;);a--}function d(){for(var e=a,r=0|n.charCodeAt(a++);r>=48&&r<=57||r>=65&&r<=90||95===r||r>=97&&r<=122;r=0|n.charCodeAt(a++));if(e===a-1)throw s("Name");var t=n.slice(e,--a);return c(),t}function f(){return{kind:"Name",value:d()}}var v=/(?:"""|(?:[\s\S]*?[^\\])""")/y,h=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function p(e){var r;switch(n.charCodeAt(a)){case 91:a++,c();for(var t=[];93!==n.charCodeAt(a);)t.push(p(e));return a++,c(),{kind:"ListValue",values:t};case 123:a++,c();for(var i=[];125!==n.charCodeAt(a);){var o=f();if(58!==n.charCodeAt(a++))throw s("ObjectField");c(),i.push({kind:"ObjectField",name:o,value:p(e)})}return a++,c(),{kind:"ObjectValue",fields:i};case 36:if(e)throw s("Variable");return a++,{kind:"Variable",name:f()};case 34:if(34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){if(a+=3,null==(r=l(v)))throw s("StringValue");return c(),{kind:"StringValue",value:function(e){for(var r=e.split("\n"),t="",n=0,a=0,i=r.length-1,o=0;o=48&&b<=57;);var A=n.slice(x,--a);if(46!==(b=n.charCodeAt(a))&&69!==b&&101!==b)return c(),{kind:"IntValue",value:A};if(null==(r=l(h)))throw s("FloatValue");return c(),{kind:"FloatValue",value:A+r};case 110:if(117===n.charCodeAt(a+1)&&108===n.charCodeAt(a+2)&&108===n.charCodeAt(a+3))return a+=4,c(),{kind:"NullValue"};break;case 116:if(114===n.charCodeAt(a+1)&&117===n.charCodeAt(a+2)&&101===n.charCodeAt(a+3))return a+=4,c(),{kind:"BooleanValue",value:!0};break;case 102:if(97===n.charCodeAt(a+1)&&108===n.charCodeAt(a+2)&&115===n.charCodeAt(a+3)&&101===n.charCodeAt(a+4))return a+=5,c(),{kind:"BooleanValue",value:!1}}return{kind:"EnumValue",value:d()}}function y(e){if(40===n.charCodeAt(a)){var r=[];a++,c();do{var t=f();if(58!==n.charCodeAt(a++))throw s("Argument");c(),r.push({kind:"Argument",name:t,value:p(e)})}while(41!==n.charCodeAt(a));return a++,c(),r}}function g(e){if(64===n.charCodeAt(a)){var r=[];do a++,r.push({kind:"Directive",name:f(),arguments:y(e)});while(64===n.charCodeAt(a));return r}}function m(){if(123!==n.charCodeAt(a++))throw s("SelectionSet");return c(),b()}function b(){var e=[];do if(46===n.charCodeAt(a)){if(46!==n.charCodeAt(++a)||46!==n.charCodeAt(++a))throw s("SelectionSet");switch(a++,c(),n.charCodeAt(a)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:g(!1),selectionSet:m()});break;case 111:110===n.charCodeAt(a+1)?(a+=2,c(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:f()},directives:g(!1),selectionSet:m()})):e.push({kind:"FragmentSpread",name:f(),directives:g(!1)});break;case 123:a++,c(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:b()});break;default:e.push({kind:"FragmentSpread",name:f(),directives:g(!1)})}}else{var r=f(),t=void 0;58===n.charCodeAt(a)&&(a++,c(),t=r,r=f());var i=y(!1),o=g(!1),l=void 0;123===n.charCodeAt(a)&&(a++,c(),l=b()),e.push({kind:"Field",alias:t,name:r,arguments:i,directives:o,selectionSet:l})}while(125!==n.charCodeAt(a));return a++,c(),{kind:"SelectionSet",selections:e}}function x(){var e=[];do{var r=void 0;if(34===n.charCodeAt(a)&&(r=p(!0)),123===n.charCodeAt(a)){if(r)throw s("Document");a++,c(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:b()})}else{var t=d();switch(t){case"fragment":e.push(function(e){var r=f();if(111!==n.charCodeAt(a++)||110!==n.charCodeAt(a++))throw s("FragmentDefinition");c();var t={kind:"FragmentDefinition",name:r,typeCondition:{kind:"NamedType",name:f()},directives:g(!1),selectionSet:m()};return e&&(t.description=e),t}(r));break;case"query":case"mutation":case"subscription":var i,o=void 0;40!==(i=n.charCodeAt(a))&&64!==i&&123!==i&&(o=f());var l={kind:"OperationDefinition",operation:t,name:o,variableDefinitions:function(){if(c(),40===n.charCodeAt(a)){var e=[];a++,c();do{var r=void 0;if(34===n.charCodeAt(a)&&(r=p(!0)),36!==n.charCodeAt(a++))throw s("Variable");var t=f();if(58!==n.charCodeAt(a++))throw s("VariableDefinition");c();var i=function(){for(var e=0;91===n.charCodeAt(a);)e++,a++,c();var r={kind:"NamedType",name:f()};do if(33===n.charCodeAt(a)&&(a++,c(),r={kind:"NonNullType",type:r}),e){if(93!==n.charCodeAt(a++))throw s("NamedType");c(),r={kind:"ListType",type:r}}while(e--);return r}(),o=void 0;61===n.charCodeAt(a)&&(a++,c(),o=p(!0)),c();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:t},type:i,defaultValue:o,directives:g(!0)};r&&(l.description=r),e.push(l)}while(41!==n.charCodeAt(a));return a++,c(),e}}(),directives:g(!1),selectionSet:m()};r&&(l.description=r),e.push(l);break;default:throw s("Document")}}}while(a80?r+="("+(N+=" ")+k(e.arguments,N,S.Argument)+(N=N.slice(0,-2))+")":r+="("+t+")"}return e.directives&&e.directives.length&&(r+=" "+k(e.directives," ",S.Directive)),e.selectionSet&&e.selectionSet.selections.length&&(r+=" "+S.SelectionSet(e.selectionSet)),r},StringValue:e=>e.block?('"""\n'+e.value.replace(/"""/g,'\\"""')+'\n"""').replace(/\n/g,N):JSON.stringify(e.value),BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+k(e.values,", ",C)+"]",ObjectValue:e=>"{"+k(e.fields,", ",S.ObjectField)+"}",ObjectField:e=>e.name.value+": "+C(e.value),Document:e=>e.definitions&&e.definitions.length?k(e.definitions,"\n\n",C):"",SelectionSet:e=>"{"+(N+=" ")+k(e.selections,N,C)+(N=N.slice(0,-2))+"}",Argument:e=>e.name.value+": "+C(e.value),FragmentSpread(e){var r="..."+e.name.value;return e.directives&&e.directives.length&&(r+=" "+k(e.directives," ",S.Directive)),r},InlineFragment(e){var r="...";return e.typeCondition&&(r+=" on "+e.typeCondition.name.value),e.directives&&e.directives.length&&(r+=" "+k(e.directives," ",S.Directive)),r+" "+S.SelectionSet(e.selectionSet)},FragmentDefinition(e){var r="";return e.description&&(r+=S.StringValue(e.description)+"\n"),r+="fragment "+e.name.value+" on "+e.typeCondition.name.value,e.directives&&e.directives.length&&(r+=" "+k(e.directives," ",S.Directive)),r+" "+S.SelectionSet(e.selectionSet)},Directive(e){var r="@"+e.name.value;return e.arguments&&e.arguments.length&&(r+="("+k(e.arguments,", ",S.Argument)+")"),r},NamedType:e=>e.name.value,ListType:e=>"["+C(e.type)+"]",NonNullType:e=>C(e.type)+"!"},C=e=>S[e.kind](e);function w(e){return N="\n",S[e.kind]?S[e.kind](e):""}},43313:(e,r,t)=>{t.d(r,{B1:()=>C,HT:()=>f,Mi:()=>v,PT:()=>S,QK:()=>m,RZ:()=>x,Tj:()=>u,Ys:()=>N,ZZ:()=>c,ao:()=>h,h1:()=>d,hq:()=>E,mk:()=>w,nx:()=>y,oT:()=>v,pb:()=>l,s:()=>g,uM:()=>p,v6:()=>b,zr:()=>A});var n=()=>{};function a(e){return{tag:0,0:e}}function i(e){return{tag:1,0:e}}var o=()=>"function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator",s=e=>e;function l(e){return r=>t=>{var a=n;r(r=>{0===r?t(0):0===r.tag?(a=r[0],t(r)):e(r[0])?t(r):a(0)})}}function u(e){return r=>t=>r(r=>{0===r||0===r.tag?t(r):t(i(e(r[0])))})}function c(e){return r=>t=>{var i=[],o=n,s=!1,l=!1;r(r=>{if(l);else if(0===r)l=!0,i.length||t(0);else if(0===r.tag)o=r[0];else{var a,u;s=!1,a=e(r[0]),u=n,a(e=>{if(0===e){if(i.length){var r=i.indexOf(u);r>-1&&(i=i.slice()).splice(r,1),!i.length&&(l?t(0):s||(s=!0,o(0)))}}else 0===e.tag?(i.push(u=e[0]),u(0)):i.length&&(t(e),u(0))}),s||(s=!0,o(0))}}),t(a(e=>{if(1===e){l||(l=!0,o(1));for(var r=0,t=i,n=i.length;rt=>{var n=!1;r(r=>{if(n);else if(0===r)n=!0,t(0),e();else if(0===r.tag){var i=r[0];t(a(r=>{1===r?(n=!0,i(1),e()):i(r)}))}else t(r)})}}function v(e){return r=>t=>{var n=!1;r(r=>{if(n);else if(0===r)n=!0,t(0);else if(0===r.tag){var i=r[0];t(a(e=>{1===e&&(n=!0),i(e)}))}else e(r[0]),t(r)})}}function h(e){return r=>t=>r(r=>{0===r?t(0):0===r.tag?(t(r),e()):t(r)})}function p(e){var r=[],t=n,i=!1;return n=>{r.push(n),1===r.length&&e(e=>{if(0===e){for(var n=0,a=r,o=r.length;n{if(1===e){var a=r.indexOf(n);a>-1&&(r=r.slice()).splice(a,1),r.length||t(1)}else i||(i=!0,t(0))}))}}function y(e){return r=>t=>{var i=n,o=n,s=!1,l=!1,u=!1,c=!1;r(r=>{if(c);else if(0===r)c=!0,u||t(0);else if(0===r.tag)i=r[0];else{var a;u&&(o(1),o=n),s?s=!1:(s=!0,i(0)),a=e(r[0]),u=!0,a(e=>{u&&(0===e?(u=!1,c?t(0):s||(s=!0,i(0))):0===e.tag?(l=!1,(o=e[0])(0)):(t(e),l?l=!1:o(0)))})}}),t(a(e=>{1===e?(c||(c=!0,i(1)),u&&(u=!1,o(1))):(c||s||(s=!0,i(0)),u&&!l&&(l=!0,o(0)))}))}}function g(e){return r=>t=>{var i=n,o=!1,s=0;r(r=>{o||(0===r?(o=!0,t(0)):0===r.tag?e<=0?(o=!0,t(0),r[0](1)):i=r[0]:s++=e&&(o=!0,t(0),i(1))):t(r))}),t(a(r=>{1!==r||o?0===r&&!o&&st=>{var i=n,o=n,s=!1;r(r=>{s||(0===r?(s=!0,o(1),t(0)):0===r.tag?(i=r[0],e(e=>{0===e||(0===e.tag?(o=e[0])(0):(s=!0,o(1),i(1),t(0)))})):t(r))}),t(a(e=>{1!==e||s?s||i(0):(s=!0,i(1),o(1))}))}}function b(e,r){return t=>a=>{var i=n,o=!1;t(t=>{o||(0===t?(o=!0,a(0)):0===t.tag?(i=t[0],a(t)):e(t[0])?a(t):(o=!0,r&&a(t),a(0),i(1)))})}}function x(e){return r=>e()(r)}function A(e){return r=>{var t,n=e[o()]&&e[o()]()||e,s=!1,l=!1,u=!1;r(a(async e=>{if(1===e)s=!0,n.return&&n.return();else if(l)u=!0;else{for(u=l=!0;u&&!s;)if((t=await n.next()).done)s=!0,n.return&&await n.return(),r(0);else try{u=!1,r(i(t.value))}catch(e){if(n.throw)(s=!!(await n.throw(e)).done)&&r(0);else throw e}l=!1}}))}}var k=function(e){return e[Symbol.asyncIterator]?A(e):r=>{var t,n=e[Symbol.iterator](),o=!1,s=!1,l=!1;r(a(e=>{if(1===e)o=!0,n.return&&n.return();else if(s)l=!0;else{for(l=s=!0;l&&!o;)if((t=n.next()).done)o=!0,n.return&&n.return(),r(0);else try{l=!1,r(i(t.value))}catch(e){if(n.throw)(o=!!n.throw(e).done)&&r(0);else throw e}s=!1}}))}};function N(e){return r=>{var t=!1;r(a(n=>{1===n?t=!0:t||(t=!0,r(i(e)),r(0))}))}}function S(){var e,r,t;return{source:p((t=t=>(e=t.next,r=t.complete,n),e=>{var r=!1,n=t({next(t){r||e(i(t))},complete(){r||(r=!0,e(0))}});e(a(e=>{1!==e||r||(r=!0,n())}))})),next(r){e&&e(r)},complete(){r&&r()}}}function C(e){return r=>{var t=n,a=!1;return r(r=>{0===r?a=!0:0===r.tag?(t=r[0])(0):a||(e(r[0]),t(0))}),{unsubscribe(){a||(a=!0,t(1))}}}}function w(e){C(e=>{})(e)}function E(e){return new Promise(r=>{var t,a=n;e(e=>{0===e?Promise.resolve(t).then(r):0===e.tag?(a=e[0])(0):(t=e[0],a(0))})})}},59607:(e,r,t)=>{t.d(r,{a:()=>I,d:()=>V,e:()=>_,f:()=>M,h:()=>C,k:()=>S,m:()=>E});var n=t(36232),a=t(43313),i=e=>e&&"string"==typeof e.message&&(e.extensions||"GraphQLError"===e.name)?e:"object"==typeof e&&"string"==typeof e.message?new n.eO(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new n.eO(e);class o extends Error{constructor(e){var r=(e.graphQLErrors||[]).map(i),t=((e,r)=>{var t="";if(e)return`[Network] ${e.message}`;if(r)for(var n=0,a=r.length;n{for(var t=0|(r||5381),n=0,a=0|e.length;n{if(null===e||l.has(e))return"null";if("object"!=typeof e)return JSON.stringify(e)||"";if(e.toJSON)return c(e.toJSON(),r);if(Array.isArray(e)){for(var t="[",n=0,a=e.length;n1&&(t+=","),t+=c(e[n],r)||"null";return t+"]"}if(!r&&(h!==v&&e instanceof h||p!==v&&e instanceof p))return"null";var i=Object.keys(e).sort();if(!i.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var o=u.get(e)||Math.random().toString(36).slice(2);return u.set(e,o),c({__key:o},r)}l.add(e);for(var s="{",d=0,f=i.length;d1&&(s+=","),s+=c(i[d],r)+":"+y)}return l.delete(e),s+"}"},d=(e,r,t)=>{if(null==t||"object"!=typeof t||t.toJSON||l.has(t));else if(Array.isArray(t))for(var n=0,a=t.length;n(l.clear(),c(e,r||!1));class v{}var h="undefined"!=typeof File?File:v,p="undefined"!=typeof Blob?Blob:v,y=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,g=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,m=(e,r)=>r%2==0?e.replace(g,"\n"):e,b=e=>e.split(y).map(m).join("").trim(),x=new Map,A=new Map,k=e=>{var r;return"string"==typeof e?r=b(e):e.loc&&A.get(e.__key)===e?r=e.loc.source.body:(r=x.get(e)||b((0,n.yy)(e)),x.set(e,r)),"string"==typeof e||e.loc||(e.loc={start:0,end:r.length,source:{body:r,name:"gql",locationOffset:{line:1,column:1}}}),r},N=e=>{var r;if(e.documentId)r=s(e.documentId);else if(r=s(k(e)),e.definitions){var t=w(e);t&&(r=s(` +# ${t}`,r))}return r},S=e=>{var r,t;return"string"==typeof e?(r=N(e),t=A.get(r)||(0,n.qg)(e,{noLocation:!0})):(r=e.__key||N(e),t=A.get(r)||e),t.loc||k(t),t.__key=r,A.set(r,t),t},C=(e,r,t)=>{var n=r||{},a=S(e),i=f(n,!0),o=a.__key;return"{}"!==i&&(o=s(i,o)),{key:o,query:a,variables:n,extensions:t}},w=e=>{for(var r=0,t=e.definitions.length;r{if(!("data"in r||"errors"in r&&Array.isArray(r.errors)))throw Error("No Content");var n="subscription"===e.kind;return{operation:e,data:r.data,error:Array.isArray(r.errors)?new o({graphQLErrors:r.errors,response:t}):void 0,extensions:r.extensions?{...r.extensions}:void 0,hasNext:null==r.hasNext?n:r.hasNext,stale:!1}},O=(e,r)=>{if("object"==typeof e&&null!=e){if(Array.isArray(e)){e=[...e];for(var t=0,n=r.length;t{var a=e.error?e.error.graphQLErrors:[],i=!!e.extensions||!!(r.payload||r).extensions,s={...e.extensions,...(r.payload||r).extensions},l=r.incremental;"path"in r&&(l=[r]);var u={data:e.data};if(l)for(var c=0,d=l.length;cr.id===e.id);o=e.subPath?[...d.path,...e.subPath]:d.path}for(var f=0,v=o.length;f=0?r:0,p=0,y=e.items.length;p{var t="query"===e.kind&&e.context.preferGetMethod;if(!t||!r)return e.context.url;var n=D(e.context.url);for(var a in r){var i=r[a];i&&n[1].set(a,"object"==typeof i?f(i):i)}var o=n.join("?");return o.length>2047&&"force"!==t?(e.context.preferGetMethod=!1,e.context.url):o},D=e=>{var r=e.indexOf("?");return r>-1?[e.slice(0,r),new URLSearchParams(e.slice(r+1))]:[e,new URLSearchParams]},_=(e,r)=>{var t={accept:"subscription"===e.kind?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},n=("function"==typeof e.context.fetchOptions?e.context.fetchOptions():e.context.fetchOptions)||{};if(n.headers)if((e=>"has"in e&&!Object.keys(e).length)(n.headers))n.headers.forEach((e,r)=>{t[r]=e});else if(Array.isArray(n.headers))n.headers.forEach((e,r)=>{Array.isArray(e)?t[e[0]]?t[e[0]]=`${t[e[0]]},${e[1]}`:t[e[0]]=e[1]:t[r]=e});else for(var a in n.headers)t[a.toLowerCase()]=n.headers[a];var i=((e,r)=>{if(r&&!("query"===e.kind&&e.context.preferGetMethod)){var t=f(r),n=(e=>{var r=new Map;return(h!==v||p!==v)&&(l.clear(),d(r,"variables",e)),r})(r.variables);if(n.size){var a=new FormData;a.append("operations",t),a.append("map",f({...[...n.keys()].map(e=>[e])}));var i=0;for(var o of n.values())a.append(""+i++,o);return a}return t}})(e,r);return"string"!=typeof i||t["content-type"]||(t["content-type"]="application/json"),{...n,method:i?"POST":"GET",body:i,headers:t}},F=/boundary="?([^=";]+)"?/i,L=/data: ?([^\n]+)/;async function*q(e){if(e.body[Symbol.asyncIterator])for await(var r of e.body)yield r;else{var t,n=e.body.getReader();try{for(;!(t=await n.read()).done;)yield t.value}finally{n.cancel()}}}async function*j(e,r){var t,n="undefined"!=typeof TextDecoder?new TextDecoder:null,a="";for await(var i of e)for(a+="Buffer"===i.constructor.name?i.toString():n.decode(i,{stream:!0});(t=a.indexOf(r))>-1;)yield a.slice(0,t),a=a.slice(t+r.length)}async function*P(e,r,t){var n=!0,a=null;try{yield await Promise.resolve();var i,s,l=(i=await (e.context.fetch||fetch)(r,t)).headers.get("Content-Type")||"";for await(var u of/multipart\/mixed/i.test(l)?async function*(e,r){var t,n=e.match(F),a="--"+(n?n[1]:"-"),i=!0;for await(var o of j(q(r),"\r\n"+a)){if(i){i=!1;var s=o.indexOf(a);if(!(s>-1))continue;o=o.slice(s+a.length)}try{yield t=JSON.parse(o.slice(o.indexOf("\r\n\r\n")+4))}catch(e){if(!t)throw e}if(t&&!1===t.hasNext)break}t&&!1!==t.hasNext&&(yield{hasNext:!1})}(l,i):/text\/event-stream/i.test(l)?async function*(e){var r;for await(var t of j(q(e),"\n\n")){var n=t.match(L);if(n){var a=n[1];try{yield r=JSON.parse(a)}catch(e){if(!r)throw e}if(r&&!1===r.hasNext)break}}r&&!1!==r.hasNext&&(yield{hasNext:!1})}(i):/text\//i.test(l)?async function*(e){var r=await e.text();try{var t=JSON.parse(r);yield t}catch(e){throw Error(r)}}(i):async function*(e){yield JSON.parse(await e.text())}(i))u.pending&&!a?s=u.pending:u.pending&&(s=[...s,...u.pending]),a=a?T(a,u,i,s):E(e,u,i),n=!1,yield a,n=!0;a||(yield a=E(e,{},i))}catch(r){if(!n)throw r;yield{operation:e,data:void 0,error:new o({networkError:i&&(i.status<200||i.status>=300)&&i.statusText?Error(i.statusText):r,response:i}),extensions:void 0,hasNext:!1,stale:!1}}}function M(e,r,t){var n;return"undefined"!=typeof AbortController&&(t.signal=(n=new AbortController).signal),(0,a.HT)(()=>{n&&n.abort()})((0,a.pb)(e=>!!e)((0,a.zr)(P(e,r,t))))}},62044:(e,r,t)=>{t.d(r,{IT:()=>v,Kq:()=>s,n_:()=>f});var n=t(59607),a=t(12115),i=t(43313),o=a.createContext({}),s=o.Provider;o.Consumer,o.displayName="UrqlContext";var l=()=>a.useContext(o),u={fetching:!1,stale:!1,hasNext:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},c=(e,r)=>e===r||!(!e||!r||e.key!==r.key),d=(e,r)=>{var t={...e,...r,data:void 0!==r.data||r.error?r.data:e.data,fetching:!!r.fetching,stale:!!r.stale};return((e,r)=>{for(var t in e)if(!(t in r))return!0;for(var n in r)if("operation"===n?!c(e[n],r[n]):e[n]!==r[n])return!0;return!1})(e,t)?t:e};function f(e){var r=a.useRef(!0),t=l(),[o,s]=a.useState(u),c=a.useCallback((a,o)=>(s({...u,fetching:!0}),(0,i.hq)((0,i.s)(1)((0,i.pb)(e=>!e.hasNext)((0,i.oT)(e=>{r.current&&s({fetching:!1,stale:e.stale,data:e.data,error:e.error,extensions:e.extensions,operation:e.operation,hasNext:e.hasNext})})(t.executeMutation((0,n.h)(e,a),o||{})))))),[t,e,s]);return a.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),[o,c]}function v(e){let r;var t,o,s,c=l(),f=(e=>{if(!e._react){var r=new Set,t=new Map;e.operations$&&(0,i.B1)(e=>{"teardown"===e.kind&&r.has(e.key)&&(r.delete(e.key),t.delete(e.key))})(e.operations$),e._react={get:e=>t.get(e),set(e,n){r.delete(e),t.set(e,n)},dispose(e){r.add(e)}}}return e._react})(c),v=(r=e.context)&&void 0!==r.suspense?!!r.suspense:c.suspense,h=(t=e.query,o=e.variables,s=a.useRef(void 0),a.useMemo(()=>{var e=(0,n.h)(t,o);return void 0!==s.current&&s.current.key===e.key?s.current:(s.current=e,e)},[t,o])),p=a.useMemo(()=>{if(e.pause)return null;var r=c.executeQuery(h,{requestPolicy:e.requestPolicy,...e.context});return v?(0,i.oT)(e=>{f.set(h.key,e)})(r):r},[f,c,h,v,e.pause,e.requestPolicy,e.context]),y=a.useCallback((e,r)=>{if(!e)return{fetching:!1};var t=f.get(h.key);if(t){if(r&&null!=t&&"then"in t)throw t}else{var n,a=(0,i.B1)(e=>{t=e,n&&n(t)})((0,i.v6)(()=>r&&!n||!t||"hasNext"in t&&t.hasNext)(e));if(null==t&&r){var o=new Promise(e=>{n=e});throw f.set(h.key,o),o}a.unsubscribe()}return t||{fetching:!0}},[f,h]),g=[c,h,e.requestPolicy,e.context,e.pause],[m,b]=a.useState(()=>[p,d(u,y(p,v)),g]),x=m[1];return p!==m[0]&&((e,r)=>{for(var t=0,n=r.length;t{var e=m[0],r=m[2][1],t=!1,n=e=>{t=!0,b(r=>{var t=d(r[1],e);return r[1]!==t?[r[0],t,r[2]]:r})};if(e){var a=(0,i.B1)(n)((0,i.HT)(()=>{n({fetching:!1})})(e));return t||n({fetching:!0}),()=>{f.dispose(r.key),a.unsubscribe()}}n({fetching:!1})},[f,m[0],m[2][1]]),[x,a.useCallback(r=>{var t={requestPolicy:e.requestPolicy,...e.context,...r};b(e=>[v?(0,i.oT)(e=>{f.set(h.key,e)})(c.executeQuery(h,t)):c.executeQuery(h,t),e[1],g])},[c,f,h,v,e.requestPolicy,e.context,e.pause])]}a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/448-c6b5e6b81c98d340.js b/adl-server/src/main/resources/static/_next/static/chunks/448-c6b5e6b81c98d340.js new file mode 100644 index 00000000..9dd729b7 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/448-c6b5e6b81c98d340.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[448],{6463:(e,t,n)=>{n.d(t,{rc:()=>eG,ZD:()=>eK,UC:()=>eB,VY:()=>eU,hJ:()=>eM,ZL:()=>eW,bL:()=>eS,hE:()=>eV,l9:()=>e_});var r,o=n(12115),l=n(3468),i=n(94446),a=n(92556),s=n(68946),u=n(23558),d=n(88142),c=n(70222),f=n(95155),p="dismissableLayer.update",v=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var n,l;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:E,onDismiss:b,...D}=e,w=o.useContext(v),[x,C]=o.useState(null),R=null!=(l=null==x?void 0:x.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,j]=o.useState({}),N=(0,i.s)(t,e=>C(e)),O=Array.from(w.layers),[P]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(P),F=x?O.indexOf(x):-1,L=w.layersWithOutsidePointerEventsDisabled.size>0,I=F>=A,T=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,c.c)(e),l=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){g("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);l.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));I&&!n&&(null==m||m(e),null==E||E(e),e.defaultPrevented||null==b||b())},R),k=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,c.c)(e),l=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!l.current&&g("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(null==h||h(e),null==E||E(e),e.defaultPrevented||null==b||b())},R);return!function(e,t=globalThis?.document){let n=(0,c.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{F===w.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},R),o.useEffect(()=>{if(x)return s&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(x)),w.layers.add(x),y(),()=>{s&&1===w.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[x,R,s,w]),o.useEffect(()=>()=>{x&&(w.layers.delete(x),w.layersWithOutsidePointerEventsDisabled.delete(x),y())},[x,w]),o.useEffect(()=>{let e=()=>j({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,f.jsx)(d.sG.div,{...D,ref:N,style:{pointerEvents:L?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,T.onPointerDownCapture)})});function y(){let e=new CustomEvent(p);document.dispatchEvent(e)}function g(e,t,n,r){let{discrete:o}=r,l=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),o?(0,d.hO)(l,i):l.dispatchEvent(i)}m.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(v),r=o.useRef(null),l=(0,i.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(d.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch";var h="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",b={bubbles:!1,cancelable:!0},D=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...s}=e,[u,p]=o.useState(null),v=(0,c.c)(l),m=(0,c.c)(a),y=o.useRef(null),g=(0,i.s)(t,e=>p(e)),D=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(D.paused||!u)return;let t=e.target;u.contains(t)?y.current=t:C(y.current,{select:!0})},t=function(e){if(D.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||C(y.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,D.paused]),o.useEffect(()=>{if(u){R.add(D);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(h,b);u.addEventListener(h,v),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(w(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(h,v),setTimeout(()=>{let t=new CustomEvent(E,b);u.addEventListener(E,m),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(E,m),R.remove(D)},0)}}},[u,v,m,D]);let j=o.useCallback(e=>{if(!n&&!r||D.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=w(e);return[x(t,e),x(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&C(l,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,D.paused]);return(0,f.jsx)(d.sG.div,{tabIndex:-1,...s,ref:g,onKeyDown:j})});function w(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function x(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}D.displayName="FocusScope";var R=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=j(e,t)).unshift(t)},remove(t){var n;null==(n=(e=j(e,t))[0])||n.resume()}}}();function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var N=n(47650),O=n(4129),P=o.forwardRef((e,t)=>{var n,r;let{container:l,...i}=e,[a,s]=o.useState(!1);(0,O.N)(()=>s(!0),[]);let u=l||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return u?N.createPortal((0,f.jsx)(d.sG.div,{...i,ref:t}),u):null});P.displayName="Portal";var A=n(76842),F=n(19526),L=n(14432),I=n(97745),T=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),i=l.find(_);if(i){let e=i.props.children,n=l.map(t=>t!==i?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,f.jsx)(k,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,f.jsx)(k,{...r,ref:t,children:n})});T.displayName="Slot";var k=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),l=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(l.ref=t?(0,i.t)(t,e):e),o.cloneElement(n,l)}return o.Children.count(n)>1?o.Children.only(null):null});k.displayName="SlotClone";var S=({children:e})=>(0,f.jsx)(f.Fragment,{children:e});function _(e){return o.isValidElement(e)&&e.type===S}var W="Dialog",[M,B]=(0,l.A)(W),[G,K]=M(W),V=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:l,onOpenChange:i,modal:a=!0}=e,d=o.useRef(null),c=o.useRef(null),[p=!1,v]=(0,u.i)({prop:r,defaultProp:l,onChange:i});return(0,f.jsx)(G,{scope:t,triggerRef:d,contentRef:c,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:p,onOpenChange:v,onOpenToggle:o.useCallback(()=>v(e=>!e),[v]),modal:a,children:n})};V.displayName=W;var U="DialogTrigger",q=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=K(U,n),l=(0,i.s)(t,o.triggerRef);return(0,f.jsx)(d.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ed(o.open),...r,ref:l,onClick:(0,a.m)(e.onClick,o.onOpenToggle)})});q.displayName=U;var z="DialogPortal",[H,Z]=M(z,{forceMount:void 0}),Y=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:l}=e,i=K(z,t);return(0,f.jsx)(H,{scope:t,forceMount:n,children:o.Children.map(r,e=>(0,f.jsx)(A.C,{present:n||i.open,children:(0,f.jsx)(P,{asChild:!0,container:l,children:e})}))})};Y.displayName=z;var J="DialogOverlay",Q=o.forwardRef((e,t)=>{let n=Z(J,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=K(J,e.__scopeDialog);return l.modal?(0,f.jsx)(A.C,{present:r||l.open,children:(0,f.jsx)(X,{...o,ref:t})}):null});Q.displayName=J;var X=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=K(J,n);return(0,f.jsx)(L.A,{as:T,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(d.sG.div,{"data-state":ed(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$="DialogContent",ee=o.forwardRef((e,t)=>{let n=Z($,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=K($,e.__scopeDialog);return(0,f.jsx)(A.C,{present:r||l.open,children:l.modal?(0,f.jsx)(et,{...o,ref:t}):(0,f.jsx)(en,{...o,ref:t})})});ee.displayName=$;var et=o.forwardRef((e,t)=>{let n=K($,e.__scopeDialog),r=o.useRef(null),l=(0,i.s)(t,n.contentRef,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,I.Eq)(e)},[]),(0,f.jsx)(er,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault())})}),en=o.forwardRef((e,t)=>{let n=K($,e.__scopeDialog),r=o.useRef(!1),l=o.useRef(!1);return(0,f.jsx)(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let a=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),er=o.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,u=K($,n),d=o.useRef(null),c=(0,i.s)(t,d);return(0,F.Oh)(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,f.jsx)(m,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":ed(u.open),...s,ref:c,onDismiss:()=>u.onOpenChange(!1)})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(ev,{titleId:u.titleId}),(0,f.jsx)(em,{contentRef:d,descriptionId:u.descriptionId})]})]})}),eo="DialogTitle",el=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=K(eo,n);return(0,f.jsx)(d.sG.h2,{id:o.titleId,...r,ref:t})});el.displayName=eo;var ei="DialogDescription",ea=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=K(ei,n);return(0,f.jsx)(d.sG.p,{id:o.descriptionId,...r,ref:t})});ea.displayName=ei;var es="DialogClose",eu=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=K(es,n);return(0,f.jsx)(d.sG.button,{type:"button",...r,ref:t,onClick:(0,a.m)(e.onClick,()=>o.onOpenChange(!1))})});function ed(e){return e?"open":"closed"}eu.displayName=es;var ec="DialogTitleWarning",[ef,ep]=(0,l.q)(ec,{contentName:$,titleName:eo,docsSlug:"dialog"}),ev=e=>{let{titleId:t}=e,n=ep(ec),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},em=e=>{let{contentRef:t,descriptionId:n}=e,r=ep("DialogDescriptionWarning"),l="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return o.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(l))},[l,t,n]),null},ey="AlertDialog",[eg,eh]=(0,l.A)(ey,[B]),eE=B(),eb=e=>{let{__scopeAlertDialog:t,...n}=e,r=eE(t);return(0,f.jsx)(V,{...r,...n,modal:!0})};eb.displayName=ey;var eD=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=eE(n);return(0,f.jsx)(q,{...o,...r,ref:t})});eD.displayName="AlertDialogTrigger";var ew=e=>{let{__scopeAlertDialog:t,...n}=e,r=eE(t);return(0,f.jsx)(Y,{...r,...n})};ew.displayName="AlertDialogPortal";var ex=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=eE(n);return(0,f.jsx)(Q,{...o,...r,ref:t})});ex.displayName="AlertDialogOverlay";var eC="AlertDialogContent",[eR,ej]=eg(eC),eN=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...l}=e,s=eE(n),u=o.useRef(null),d=(0,i.s)(t,u),c=o.useRef(null);return(0,f.jsx)(ef,{contentName:eC,titleName:eO,docsSlug:"alert-dialog",children:(0,f.jsx)(eR,{scope:n,cancelRef:c,children:(0,f.jsxs)(ee,{role:"alertdialog",...s,...l,ref:d,onOpenAutoFocus:(0,a.m)(l.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=c.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,f.jsx)(S,{children:r}),(0,f.jsx)(ek,{contentRef:u})]})})})});eN.displayName=eC;var eO="AlertDialogTitle",eP=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=eE(n);return(0,f.jsx)(el,{...o,...r,ref:t})});eP.displayName=eO;var eA="AlertDialogDescription",eF=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=eE(n);return(0,f.jsx)(ea,{...o,...r,ref:t})});eF.displayName=eA;var eL=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=eE(n);return(0,f.jsx)(eu,{...o,...r,ref:t})});eL.displayName="AlertDialogAction";var eI="AlertDialogCancel",eT=o.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ej(eI,n),l=eE(n),a=(0,i.s)(t,o);return(0,f.jsx)(eu,{...l,...r,ref:a})});eT.displayName=eI;var ek=e=>{let{contentRef:t}=e,n="`".concat(eC,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(eC,"` by passing a `").concat(eA,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(eC,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return o.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},eS=eb,e_=eD,eW=ew,eM=ex,eB=eN,eG=eL,eK=eT,eV=eP,eU=eF},13630:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},32265:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/45-bb8ab96d1497bb1f.js b/adl-server/src/main/resources/static/_next/static/chunks/45-bb8ab96d1497bb1f.js new file mode 100644 index 00000000..118133e3 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/45-bb8ab96d1497bb1f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45],{5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>u,N:()=>c});var n=r(12115),a=(e,t,r,n,a,o,s,l)=>{let i=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?a.map(e=>o[e]||e):a;r?(i.classList.remove(...n),i.classList.add(o&&o[t]?o[t]:t)):i.setAttribute(e,t)}),r=t,l&&u.includes(r)&&(i.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},o=["light","dark"],s="(prefers-color-scheme: dark)",l=n.createContext(void 0),i={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(l))?e:i},c=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(p,{...e}),d=["light","dark"],p=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:a=!0,enableColorScheme:i=!0,storageKey:u="theme",themes:c=d,defaultTheme:p=a?"system":"light",attribute:v="data-theme",value:k,children:g,nonce:b,scriptProps:x}=e,[w,C]=n.useState(()=>m(u,p)),[E,A]=n.useState(()=>"system"===w?f():w),M=k?Object.values(k):c,T=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=f());let n=k?k[t]:t,s=r?y(b):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...M),n&&l.classList.add(n)):e.startsWith("data-")&&(n?l.setAttribute(e,n):l.removeAttribute(e))};if(Array.isArray(v)?v.forEach(u):u(v),i){let e=o.includes(p)?p:null,r=o.includes(t)?t:e;l.style.colorScheme=r}null==s||s()},[b]),P=n.useCallback(e=>{let t="function"==typeof e?e(w):e;C(t);try{localStorage.setItem(u,t)}catch(e){}},[w]),L=n.useCallback(e=>{A(f(e)),"system"===w&&a&&!t&&T("system")},[w,t]);n.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(L),L(e),()=>e.removeListener(L)},[L]),n.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?C(e.newValue):P(p))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),n.useEffect(()=>{T(null!=t?t:w)},[t,w]);let R=n.useMemo(()=>({theme:w,setTheme:P,forcedTheme:t,resolvedTheme:"system"===w?E:w,themes:a?[...c,"system"]:c,systemTheme:a?E:void 0}),[w,P,t,E,a,c]);return n.createElement(l.Provider,{value:R},n.createElement(h,{forcedTheme:t,storageKey:u,attribute:v,enableSystem:a,enableColorScheme:i,defaultTheme:p,value:k,themes:c,nonce:b,scriptProps:x}),g)},h=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:s,enableColorScheme:l,defaultTheme:i,value:u,themes:c,nonce:d,scriptProps:p}=e,h=JSON.stringify([o,r,i,t,c,u,s,l]).slice(1,-1);return n.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(h,")")}})}),m=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},5866:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},20063:(e,t,r)=>{"use strict";var n=r(47260);r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},21255:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},21992:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]])},27500:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},27599:(e,t,r)=>{"use strict";r.d(t,{bL:()=>w,zi:()=>C});var n=r(12115),a=r(92556),o=r(94446),s=r(3468),l=r(23558),i=r(78108),u=r(84288),c=r(88142),d=r(95155),p="Switch",[h,m]=(0,s.A)(p),[y,f]=h(p),v=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:s,checked:i,defaultChecked:u,required:p,disabled:h,value:m="on",onCheckedChange:f,form:v,...k}=e,[g,w]=n.useState(null),C=(0,o.s)(t,e=>w(e)),E=n.useRef(!1),A=!g||v||!!g.closest("form"),[M=!1,T]=(0,l.i)({prop:i,defaultProp:u,onChange:f});return(0,d.jsxs)(y,{scope:r,checked:M,disabled:h,children:[(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":M,"aria-required":p,"data-state":x(M),"data-disabled":h?"":void 0,disabled:h,value:m,...k,ref:C,onClick:(0,a.m)(e.onClick,e=>{T(e=>!e),A&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})}),A&&(0,d.jsx)(b,{control:g,bubbles:!E.current,name:s,value:m,checked:M,required:p,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});v.displayName=p;var k="SwitchThumb",g=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=f(k,r);return(0,d.jsx)(c.sG.span,{"data-state":x(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});g.displayName=k;var b=e=>{let{control:t,checked:r,bubbles:a=!0,...o}=e,s=n.useRef(null),l=(0,i.Z)(r),c=(0,u.X)(t);return n.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:a});t.call(e,r),e.dispatchEvent(n)}},[l,r,a]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function x(e){return e?"checked":"unchecked"}var w=v,C=g},28068:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},31189:()=>{},36204:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},50984:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},53773:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>l,QF:()=>s});var n=r(12115),a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e){var t,r,a,o,s,l,i,u,c=e.className,d=e.counterClockwise,p=e.dashRatio,h=e.pathRadius,m=e.strokeWidth,y=e.style;return(0,n.createElement)("path",{className:c,style:Object.assign({},y,(r=(t={pathRadius:h,dashRatio:p,counterClockwise:d}).counterClockwise,a=t.dashRatio,s=(1-a)*(o=2*Math.PI*t.pathRadius),{strokeDasharray:o+"px "+o+"px",strokeDashoffset:(r?-s:s)+"px"})),d:(i=(l={pathRadius:h,counterClockwise:d}).pathRadius,"\n M 50,50\n m 0,-"+i+"\n a "+i+","+i+" "+(u=+!!l.counterClockwise)+" 1 1 0,"+2*i+"\n a "+i+","+i+" "+u+" 1 1 0,-"+2*i+"\n "),strokeWidth:m,fillOpacity:0})}var s=function(e){function t(){this.constructor=r}function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},r.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},r.prototype.getPathRatio=function(){var e=this.props,t=e.value,r=e.minValue,n=e.maxValue;return(Math.min(Math.max(t,r),n)-r)/(n-r)},r.prototype.render=function(){var e=this.props,t=e.circleRatio,r=e.className,a=e.classes,s=e.counterClockwise,l=e.styles,i=e.strokeWidth,u=e.text,c=this.getPathRadius(),d=this.getPathRatio();return(0,n.createElement)("svg",{className:a.root+" "+r,style:l.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,n.createElement)("circle",{className:a.background,style:l.background,cx:50,cy:50,r:50}):null,(0,n.createElement)(o,{className:a.trail,counterClockwise:s,dashRatio:t,pathRadius:c,strokeWidth:i,style:l.trail}),(0,n.createElement)(o,{className:a.path,counterClockwise:s,dashRatio:d*t,pathRadius:c,strokeWidth:i,style:l.path}),u?(0,n.createElement)("text",{className:a.text,style:l.text,x:50,y:50},u):null)},r.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},r}(n.Component);function l(e){var t=e.rotation,r=e.strokeLinecap,n=e.textColor,a=e.textSize,o=e.pathColor,s=e.pathTransition,l=e.pathTransitionDuration,u=e.trailColor,c=e.backgroundColor,d=null==t?void 0:"rotate("+t+"turn)",p=null==t?void 0:"center center";return{root:{},path:i({stroke:o,strokeLinecap:r,transform:d,transformOrigin:p,transition:s,transitionDuration:null==l?void 0:l+"s"}),trail:i({stroke:u,strokeLinecap:r,transform:d,transformOrigin:p}),text:i({fill:n,fontSize:a}),background:i({fill:c})}}function i(e){return Object.keys(e).forEach(function(t){null==e[t]&&delete e[t]}),e}},55253:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},55976:(e,t,r)=>{"use strict";r.d(t,{UC:()=>Q,Kq:()=>U,bL:()=>Y,l9:()=>J});var n,a=r(12115),o=r(92556),s=r(94446),l=r(3468),i=r(88142),u=r(70222),c=r(95155),d="dismissableLayer.update",p=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=a.forwardRef((e,t)=>{var r,l;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:k,onInteractOutside:g,onDismiss:b,...x}=e,w=a.useContext(p),[C,E]=a.useState(null),A=null!=(l=null==C?void 0:C.ownerDocument)?l:null==(r=globalThis)?void 0:r.document,[,M]=a.useState({}),T=(0,s.s)(t,e=>E(e)),P=Array.from(w.layers),[L]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),R=P.indexOf(L),S=C?P.indexOf(C):-1,j=w.layersWithOutsidePointerEventsDisabled.size>0,O=S>=R,z=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,u.c)(e),o=a.useRef(!1),s=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){y("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",s.current),s.current=t,r.addEventListener("click",s.current,{once:!0})):t()}else r.removeEventListener("click",s.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",s.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...w.branches].some(e=>e.contains(t));O&&!r&&(null==v||v(e),null==g||g(e),e.defaultPrevented||null==b||b())},A),D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,u.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(null==k||k(e),null==g||g(e),e.defaultPrevented||null==b||b())},A);return!function(e,t=globalThis?.document){let r=(0,u.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{S===w.layers.size-1&&(null==f||f(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},A),a.useEffect(()=>{if(C)return h&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(n=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(C)),w.layers.add(C),m(),()=>{h&&1===w.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=n)}},[C,A,h,w]),a.useEffect(()=>()=>{C&&(w.layers.delete(C),w.layersWithOutsidePointerEventsDisabled.delete(C),m())},[C,w]),a.useEffect(()=>{let e=()=>M({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,c.jsx)(i.sG.div,{...x,ref:T,style:{pointerEvents:j?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,z.onPointerDownCapture)})});function m(){let e=new CustomEvent(d);document.dispatchEvent(e)}function y(e,t,r,n){let{discrete:a}=n,o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?(0,i.hO)(o,s):o.dispatchEvent(s)}h.displayName="DismissableLayer",a.forwardRef((e,t)=>{let r=a.useContext(p),n=a.useRef(null),o=(0,s.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(i.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var f=r(68946),v=r(66093),k=r(47650),g=r(4129);a.forwardRef((e,t)=>{var r,n;let{container:o,...s}=e,[l,u]=a.useState(!1);(0,g.N)(()=>u(!0),[]);let d=o||l&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return d?k.createPortal((0,c.jsx)(i.sG.div,{...s,ref:t}),d):null}).displayName="Portal";var b=r(76842);a.forwardRef((e,t)=>{let{children:r,...n}=e,o=a.Children.toArray(r),s=o.find(C);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,c.jsx)(x,{...n,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,c.jsx)(x,{...n,ref:t,children:r})}).displayName="Slot";var x=a.forwardRef((e,t)=>{let{children:r,...n}=e;if(a.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r),o=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{o(...e),a(...e)}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(o.ref=t?(0,s.t)(t,e):e),a.cloneElement(r,o)}return a.Children.count(r)>1?a.Children.only(null):null});x.displayName="SlotClone";var w=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});function C(e){return a.isValidElement(e)&&e.type===w}var E=r(23558),A=r(861),[M,T]=(0,l.A)("Tooltip",[v.Bk]),P=(0,v.Bk)(),L="TooltipProvider",R="tooltip.open",[S,j]=M(L),O=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,[l,i]=a.useState(!0),u=a.useRef(!1),d=a.useRef(0);return a.useEffect(()=>{let e=d.current;return()=>window.clearTimeout(e)},[]),(0,c.jsx)(S,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:a.useCallback(()=>{window.clearTimeout(d.current),i(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:a.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:s})};O.displayName=L;var z="Tooltip",[D,N]=M(z),_=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:i}=e,u=j(z,e.__scopeTooltip),d=P(t),[p,h]=a.useState(null),m=(0,f.B)(),y=a.useRef(0),k=null!=l?l:u.disableHoverableContent,g=null!=i?i:u.delayDuration,b=a.useRef(!1),[x=!1,w]=(0,E.i)({prop:n,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(R))):u.onClose(),null==s||s(e)}}),C=a.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),A=a.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,w(!0)},[w]),M=a.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w(!1)},[w]),T=a.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,w(!0),y.current=0},g)},[g,w]);return a.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,c.jsx)(v.bL,{...d,children:(0,c.jsx)(D,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:p,onTriggerChange:h,onTriggerEnter:a.useCallback(()=>{u.isOpenDelayed?T():A()},[u.isOpenDelayed,T,A]),onTriggerLeave:a.useCallback(()=>{k?M():(window.clearTimeout(y.current),y.current=0)},[M,k]),onOpen:A,onClose:M,disableHoverableContent:k,children:r})})};_.displayName=z;var W="TooltipTrigger",H=a.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,l=N(W,r),u=j(W,r),d=P(r),p=a.useRef(null),h=(0,s.s)(t,p,l.onTriggerChange),m=a.useRef(!1),y=a.useRef(!1),f=a.useCallback(()=>m.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),(0,c.jsx)(v.Mz,{asChild:!0,...d,children:(0,c.jsx)(i.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...n,ref:h,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(y.current||u.isPointerInTransitRef.current||(l.onTriggerEnter(),y.current=!0))}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{l.onTriggerLeave(),y.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,o.m)(e.onBlur,l.onClose),onClick:(0,o.m)(e.onClick,l.onClose)})})});H.displayName=W;var[V,B]=M("TooltipPortal",{forceMount:void 0}),I="TooltipContent",q=a.forwardRef((e,t)=>{let r=B(I,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,s=N(I,e.__scopeTooltip);return(0,c.jsx)(b.C,{present:n||s.open,children:s.disableHoverableContent?(0,c.jsx)(K,{side:a,...o,ref:t}):(0,c.jsx)(F,{side:a,...o,ref:t})})}),F=a.forwardRef((e,t)=>{let r=N(I,e.__scopeTooltip),n=j(I,e.__scopeTooltip),o=a.useRef(null),l=(0,s.s)(t,o),[i,u]=a.useState(null),{trigger:d,onClose:p}=r,h=o.current,{onPointerInTransitChange:m}=n,y=a.useCallback(()=>{u(null),m(!1)},[m]),f=a.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,a),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())])),m(!0)},[m]);return a.useEffect(()=>()=>y(),[y]),a.useEffect(()=>{if(d&&h){let e=e=>f(e,h),t=e=>f(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[d,h,f,y]),a.useEffect(()=>{if(i){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==h?void 0:h.contains(t)),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(i-s)*(n-l)/(u-l)+s&&(a=!a)}return a}(r,i);n?y():a&&(y(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,h,i,p,y]),(0,c.jsx)(K,{...e,ref:l})}),[G,X]=M(z,{isInside:!1}),K=a.forwardRef((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...i}=e,u=N(I,r),d=P(r),{onClose:p}=u;return a.useEffect(()=>(document.addEventListener(R,p),()=>document.removeEventListener(R,p)),[p]),a.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(u.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,p]),(0,c.jsx)(h,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,c.jsxs)(v.UC,{"data-state":u.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,c.jsx)(w,{children:n}),(0,c.jsx)(G,{scope:r,isInside:!0,children:(0,c.jsx)(A.b,{id:u.contentId,role:"tooltip",children:o||n})})]})})});q.displayName=I;var Z="TooltipArrow";a.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,a=P(r);return X(Z,r).isInside?null:(0,c.jsx)(v.i3,{...a,...n,ref:t})}).displayName=Z;var U=O,Y=_,J=H,Q=q},59338:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},60406:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},62447:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]])},66065:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},67917:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16.2V21h-4.8",key:"1hrera"}],["path",{d:"M21 7.8V3h-4.8",key:"ul1q53"}],["path",{d:"M3 16.2V21h4.8",key:"1x04uo"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 7.8V3h4.8",key:"1ijppm"}],["path",{d:"M9 9 3 3",key:"v551iv"}]])},73180:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},74640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},78503:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},82111:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},82274:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]])},91480:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/497-9be55ae59b4eef77.js b/adl-server/src/main/resources/static/_next/static/chunks/497-9be55ae59b4eef77.js new file mode 100644 index 00000000..71b3f780 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/497-9be55ae59b4eef77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[497],{861:(e,t,n)=>{n.d(t,{b:()=>i,s:()=>a});var r=n(12115),o=n(88142),l=n(95155),a=r.forwardRef((e,t)=>(0,l.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a},5225:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},5418:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},5484:(e,t,n)=>{n.d(t,{Ke:()=>R,R6:()=>C,bL:()=>k});var r=n(12115),o=n.t(r,2),l=n(95155),a=globalThis?.document?r.useLayoutEffect:()=>{},i=o[" useInsertionEffect ".trim().toString()]||a;function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let n=(0,d.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...a,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),f=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,l]=r.useState(),i=r.useRef(null),s=r.useRef(e),u=r.useRef("none"),[d,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=p(i.current);u.current="mounted"===d?e:"none"},[d]),a(()=>{let t=i.current,n=s.current;if(n!==e){let r=u.current,o=p(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),a(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=p(i.current).includes(e.animationName);if(e.target===o&&r&&(c("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},l=e=>{e.target===o&&(u.current=p(i.current))};return o.addEventListener("animationstart",l),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{i.current=e?getComputedStyle(e):null,l(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),i=u(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:i}):null};function p(e){return(null==e?void 0:e.animationName)||"none"}f.displayName="Presence";var v=o[" useId ".trim().toString()]||(()=>void 0),m=0,h="Collapsible",[y,g]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),i=n.length;n=[...n,o];let s=t=>{let{scope:n,children:o,...s}=t,u=n?.[e]?.[i]||a,d=r.useMemo(()=>s,Object.values(s));return(0,l.jsx)(u.Provider,{value:d,children:o})};return s.displayName=t+"Provider",[s,function(n,l){let s=l?.[e]?.[i]||a,u=r.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(h),[b,w]=y(h),x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:s,disabled:u,onOpenChange:d,...f}=e,[p,y]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[l,a,s]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),l=r.useRef(n),a=r.useRef(t);return i(()=>{a.current=t},[t]),r.useEffect(()=>{l.current!==n&&(a.current?.(n),l.current=n)},[n,l]),[n,o,a]}({defaultProp:t,onChange:n}),u=void 0!==e,d=u?e:l;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,o])}return[d,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}({prop:o,defaultProp:null!=s&&s,onChange:d,caller:h});return(0,l.jsx)(b,{scope:n,disabled:u,contentId:function(e){let[t,n]=r.useState(v());return a(()=>{n(e=>e??String(m++))},[void 0]),e||(t?`radix-${t}`:"")}(),open:p,onOpenToggle:r.useCallback(()=>y(e=>!e),[y]),children:(0,l.jsx)(c.div,{"data-state":j(p),"data-disabled":u?"":void 0,...f,ref:t})})});x.displayName=h;var E="CollapsibleTrigger",C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=w(E,n);return(0,l.jsx)(c.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,o.onOpenToggle)})});C.displayName=E;var N="CollapsibleContent",R=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=w(N,e.__scopeCollapsible);return(0,l.jsx)(f,{present:n||o.open,children:e=>{let{present:n}=e;return(0,l.jsx)(S,{...r,ref:t,present:n})}})});R.displayName=N;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...s}=e,d=w(N,n),[f,p]=r.useState(o),v=r.useRef(null),m=u(t,v),h=r.useRef(0),y=h.current,g=r.useRef(0),b=g.current,x=d.open||f,E=r.useRef(x),C=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),a(()=>{let e=v.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,g.current=t.width,E.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(o)}},[d.open,o]),(0,l.jsx)(c.div,{"data-state":j(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!x,...s,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:x&&i})});function j(e){return e?"open":"closed"}var k=x},19201:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},20561:(e,t,n)=>{n.d(t,{UC:()=>eu,ZL:()=>es,bL:()=>ea,l9:()=>ei});var r,o=n(12115),l=n(92556),a=n(94446),i=n(3468),s=n(88142),u=n(70222),d=n(95155),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,i;let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...x}=e,E=o.useContext(f),[C,N]=o.useState(null),R=null!=(i=null==C?void 0:C.ownerDocument)?i:null==(n=globalThis)?void 0:n.document,[,S]=o.useState({}),j=(0,a.s)(t,e=>N(e)),k=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=k.indexOf(P),L=C?k.indexOf(C):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,A=L>=T,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),l=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);l.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));A&&!n&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},R),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),l=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!l.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},R);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{L===E.layers.size-1&&(null==h||h(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},R),o.useEffect(()=>{if(C)return p&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),v(),()=>{p&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[C,R,p,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),v())},[C,E]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(s.sG.div,{...x,ref:j,style:{pointerEvents:D?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function v(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),o?(0,s.hO)(l,a):l.dispatchEvent(a)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),l=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(s.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch";var h=n(19526),y="focusScope.autoFocusOnMount",g="focusScope.autoFocusOnUnmount",b={bubbles:!1,cancelable:!0},w=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:i,...c}=e,[f,p]=o.useState(null),v=(0,u.c)(l),m=(0,u.c)(i),h=o.useRef(null),w=(0,a.s)(t,e=>p(e)),R=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(R.paused||!f)return;let t=e.target;f.contains(t)?h.current=t:C(h.current,{select:!0})},t=function(e){if(R.paused||!f)return;let t=e.relatedTarget;null!==t&&(f.contains(t)||C(h.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(f)});return f&&n.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,f,R.paused]),o.useEffect(()=>{if(f){N.add(R);let e=document.activeElement;if(!f.contains(e)){let t=new CustomEvent(y,b);f.addEventListener(y,v),f.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(x(f).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(f))}return()=>{f.removeEventListener(y,v),setTimeout(()=>{let t=new CustomEvent(g,b);f.addEventListener(g,m),f.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),f.removeEventListener(g,m),N.remove(R)},0)}}},[f,v,m,R]);let S=o.useCallback(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=x(e);return[E(t,e),E(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&C(l,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,d.jsx)(s.sG.div,{tabIndex:-1,...c,ref:w,onKeyDown:S})});function x(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function E(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}w.displayName="FocusScope";var N=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=R(e,t)).unshift(t)},remove(t){var n;null==(n=(e=R(e,t))[0])||n.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var S=n(68946),j=n(66093),k=n(47650),P=n(4129),T=o.forwardRef((e,t)=>{var n,r;let{container:l,...a}=e,[i,u]=o.useState(!1);(0,P.N)(()=>u(!0),[]);let c=l||i&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?k.createPortal((0,d.jsx)(s.sG.div,{...a,ref:t}),c):null});T.displayName="Portal";var L=n(76842),D=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(I);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(A,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,d.jsx)(A,{...r,ref:t,children:n})});D.displayName="Slot";var A=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),l=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(l.ref=t?(0,a.t)(t,e):e),o.cloneElement(n,l)}return o.Children.count(n)>1?o.Children.only(null):null});A.displayName="SlotClone";var O=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function I(e){return o.isValidElement(e)&&e.type===O}var M=n(23558),F=n(97745),_=n(14432),W="Popover",[B,H]=(0,i.A)(W,[j.Bk]),U=(0,j.Bk)(),[K,G]=B(W),V=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:l,onOpenChange:a,modal:i=!1}=e,s=U(t),u=o.useRef(null),[c,f]=o.useState(!1),[p=!1,v]=(0,M.i)({prop:r,defaultProp:l,onChange:a});return(0,d.jsx)(j.bL,{...s,children:(0,d.jsx)(K,{scope:t,contentId:(0,S.B)(),triggerRef:u,open:p,onOpenChange:v,onOpenToggle:o.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:c,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:i,children:n})})};V.displayName=W;var z="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=G(z,n),a=U(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=l;return o.useEffect(()=>(i(),()=>s()),[i,s]),(0,d.jsx)(j.Mz,{...a,...r,ref:t})}).displayName=z;var q="PopoverTrigger",$=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=G(q,n),i=U(n),u=(0,a.s)(t,o.triggerRef),c=(0,d.jsx)(s.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":el(o.open),...r,ref:u,onClick:(0,l.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,d.jsx)(j.Mz,{asChild:!0,...i,children:c})});$.displayName=q;var Z="PopoverPortal",[Y,X]=B(Z,{forceMount:void 0}),J=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,l=G(Z,t);return(0,d.jsx)(Y,{scope:t,forceMount:n,children:(0,d.jsx)(L.C,{present:n||l.open,children:(0,d.jsx)(T,{asChild:!0,container:o,children:r})})})};J.displayName=Z;var Q="PopoverContent",ee=o.forwardRef((e,t)=>{let n=X(Q,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,l=G(Q,e.__scopePopover);return(0,d.jsx)(L.C,{present:r||l.open,children:l.modal?(0,d.jsx)(et,{...o,ref:t}):(0,d.jsx)(en,{...o,ref:t})})});ee.displayName=Q;var et=o.forwardRef((e,t)=>{let n=G(Q,e.__scopePopover),r=o.useRef(null),i=(0,a.s)(t,r),s=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return(0,F.Eq)(e)},[]),(0,d.jsx)(_.A,{as:D,allowPinchZoom:!0,children:(0,d.jsx)(er,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,l.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),en=o.forwardRef((e,t)=>{let n=G(Q,e.__scopePopover),r=o.useRef(!1),l=o.useRef(!1);return(0,d.jsx)(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{var o,a;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let i=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),er=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...f}=e,v=G(Q,n),m=U(n);return(0,h.Oh)(),(0,d.jsx)(w,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,d.jsx)(p,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:(0,d.jsx)(j.UC,{"data-state":el(v.open),role:"dialog",id:v.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eo="PopoverClose";function el(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=G(eo,n);return(0,d.jsx)(s.sG.button,{type:"button",...r,ref:t,onClick:(0,l.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eo,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=U(n);return(0,d.jsx)(j.i3,{...o,...r,ref:t})}).displayName="PopoverArrow";var ea=V,ei=$,es=J,eu=ee},42614:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},59007:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},60805:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},66710:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("ChartNoAxesColumnIncreasing",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]])},78108:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(12115);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},86374:(e,t,n)=>{n.d(t,{UC:()=>ea,Y9:()=>eo,q7:()=>er,bL:()=>en,l9:()=>el});var r=n(12115),o=n(3468),l=n(78625),a=n(94446),i=n(92556),s=n(23558),u=n(88142),d=n(4129),c=n(76842),f=n(68946),p=n(95155),v="Collapsible",[m,h]=(0,o.A)(v),[y,g]=m(v),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:l,disabled:a,onOpenChange:i,...d}=e,[c=!1,v]=(0,s.i)({prop:o,defaultProp:l,onChange:i});return(0,p.jsx)(y,{scope:n,disabled:a,contentId:(0,f.B)(),open:c,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(u.sG.div,{"data-state":R(c),"data-disabled":a?"":void 0,...d,ref:t})})});b.displayName=v;var w="CollapsibleTrigger",x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=g(w,n);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":R(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});x.displayName=w;var E="CollapsibleContent",C=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=g(E,e.__scopeCollapsible);return(0,p.jsx)(c.C,{present:n||o.open,children:e=>{let{present:n}=e;return(0,p.jsx)(N,{...r,ref:t,present:n})}})});C.displayName=E;var N=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:l,...i}=e,s=g(E,n),[c,f]=r.useState(o),v=r.useRef(null),m=(0,a.s)(t,v),h=r.useRef(0),y=h.current,b=r.useRef(0),w=b.current,x=s.open||c,C=r.useRef(x),N=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=v.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,b.current=t.width,C.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),f(o)}},[s.open,o]),(0,p.jsx)(u.sG.div,{"data-state":R(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...i,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&l})});function R(e){return e?"open":"closed"}var S=n(66218),j="Accordion",k=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,T,L]=(0,l.N)(j),[D,A]=(0,o.A)(j,[L,h]),O=h(),I=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(H,{...r,ref:t}):(0,p.jsx)(B,{...r,ref:t})})});I.displayName=j;var[M,F]=D(j),[_,W]=D(j,{collapsible:!1}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:l=()=>{},collapsible:a=!1,...i}=e,[u,d]=(0,s.i)({prop:n,defaultProp:o,onChange:l});return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:u?[u]:[],onItemOpen:d,onItemClose:r.useCallback(()=>a&&d(""),[a,d]),children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(G,{...i,ref:t})})})}),H=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:l=()=>{},...a}=e,[i=[],u]=(0,s.i)({prop:n,defaultProp:o,onChange:l}),d=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),c=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:c,children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(G,{...a,ref:t})})})}),[U,K]=D(j),G=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:l,orientation:s="vertical",...d}=e,c=r.useRef(null),f=(0,a.s)(c,t),v=T(n),m="ltr"===(0,S.jH)(l),h=(0,i.m)(e.onKeyDown,e=>{var t;if(!k.includes(e.key))return;let n=e.target,r=v().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),l=r.length;if(-1===o)return;e.preventDefault();let a=o,i=l-1,u=()=>{(a=o+1)>i&&(a=0)},d=()=>{(a=o-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===s&&(m?u():d());break;case"ArrowDown":"vertical"===s&&u();break;case"ArrowLeft":"horizontal"===s&&(m?d():u());break;case"ArrowUp":"vertical"===s&&d()}null==(t=r[a%l].ref.current)||t.focus()});return(0,p.jsx)(U,{scope:n,disabled:o,direction:l,orientation:s,children:(0,p.jsx)(P.Slot,{scope:n,children:(0,p.jsx)(u.sG.div,{...d,"data-orientation":s,ref:f,onKeyDown:o?void 0:h})})})}),V="AccordionItem",[z,q]=D(V),$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,l=K(V,n),a=F(V,n),i=O(n),s=(0,f.B)(),u=r&&a.value.includes(r)||!1,d=l.disabled||e.disabled;return(0,p.jsx)(z,{scope:n,open:u,disabled:d,triggerId:s,children:(0,p.jsx)(b,{"data-orientation":l.orientation,"data-state":et(u),...i,...o,ref:t,disabled:d,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});$.displayName=V;var Z="AccordionHeader",Y=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=K(j,n),l=q(Z,n);return(0,p.jsx)(u.sG.h3,{"data-orientation":o.orientation,"data-state":et(l.open),"data-disabled":l.disabled?"":void 0,...r,ref:t})});Y.displayName=Z;var X="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=K(j,n),l=q(X,n),a=W(X,n),i=O(n);return(0,p.jsx)(P.ItemSlot,{scope:n,children:(0,p.jsx)(x,{"aria-disabled":l.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId,...i,...r,ref:t})})});J.displayName=X;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=K(j,n),l=q(Q,n),a=O(n);return(0,p.jsx)(C,{role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=I,er=$,eo=Y,el=J,ea=ee},94979:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},95102:(e,t,n)=>{n.d(t,{UC:()=>eY,YJ:()=>eJ,In:()=>e$,q7:()=>e0,VF:()=>e2,p4:()=>e1,JU:()=>eQ,ZL:()=>eZ,bL:()=>eV,wn:()=>e6,PP:()=>e4,wv:()=>e5,l9:()=>ez,WT:()=>eq,LM:()=>eX});var r,o=n(12115),l=n(47650),a=n(34212),i=n(92556),s=n(78625),u=n(94446),d=n(3468),c=n(66218),f=n(88142),p=n(70222),v=n(95155),m="dismissableLayer.update",h=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=o.forwardRef((e,t)=>{var n,l;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:y,onDismiss:w,...x}=e,E=o.useContext(h),[C,N]=o.useState(null),R=null!=(l=null==C?void 0:C.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,S]=o.useState({}),j=(0,u.s)(t,e=>N(e)),k=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=k.indexOf(P),L=C?k.indexOf(C):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,A=L>=T,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),l=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){b("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);l.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));A&&!n&&(null==d||d(e),null==y||y(e),e.defaultPrevented||null==w||w())},R),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),l=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!l.current&&b("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==c||c(e),null==y||y(e),e.defaultPrevented||null==w||w())},R);return!function(e,t=globalThis?.document){let n=(0,p.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{L===E.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},R),o.useEffect(()=>{if(C)return a&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),g(),()=>{a&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[C,R,a,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),g())},[C,E]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,v.jsx)(f.sG.div,{...x,ref:j,style:{pointerEvents:D?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function g(){let e=new CustomEvent(m);document.dispatchEvent(e)}function b(e,t,n,r){let{discrete:o}=r,l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),o?(0,f.hO)(l,a):l.dispatchEvent(a)}y.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(h),r=o.useRef(null),l=(0,u.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,v.jsx)(f.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch";var w=n(19526),x="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},N=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...i}=e,[s,d]=o.useState(null),c=(0,p.c)(l),m=(0,p.c)(a),h=o.useRef(null),y=(0,u.s)(t,e=>d(e)),g=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(g.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:j(h.current,{select:!0})},t=function(e){if(g.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||j(h.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,g.paused]),o.useEffect(()=>{if(s){k.add(g);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(x,C);s.addEventListener(x,c),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(R(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(x,c),setTimeout(()=>{let t=new CustomEvent(E,C);s.addEventListener(E,m),s.dispatchEvent(t),t.defaultPrevented||j(null!=e?e:document.body,{select:!0}),s.removeEventListener(E,m),k.remove(g)},0)}}},[s,c,m,g]);let b=o.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=R(e);return[S(t,e),S(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&j(l,{select:!0})):(e.preventDefault(),n&&j(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,v.jsx)(f.sG.div,{tabIndex:-1,...i,ref:y,onKeyDown:b})});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function S(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}N.displayName="FocusScope";var k=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=P(e,t)).unshift(t)},remove(t){var n;null==(n=(e=P(e,t))[0])||n.resume()}}}();function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(68946),L=n(66093),D=n(4129),A=o.forwardRef((e,t)=>{var n,r;let{container:a,...i}=e,[s,u]=o.useState(!1);(0,D.N)(()=>u(!0),[]);let d=a||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return d?l.createPortal((0,v.jsx)(f.sG.div,{...i,ref:t}),d):null});A.displayName="Portal";var O=o.forwardRef((e,t)=>{let{children:n,...r}=e,l=o.Children.toArray(n),a=l.find(F);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,v.jsx)(I,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,v.jsx)(I,{...r,ref:t,children:n})});O.displayName="Slot";var I=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),l=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{l(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(l.ref=t?(0,u.t)(t,e):e),o.cloneElement(n,l)}return o.Children.count(n)>1?o.Children.only(null):null});I.displayName="SlotClone";var M=({children:e})=>(0,v.jsx)(v.Fragment,{children:e});function F(e){return o.isValidElement(e)&&e.type===M}var _=n(23558),W=n(78108),B=n(861),H=n(97745),U=n(14432),K=[" ","Enter","ArrowUp","ArrowDown"],G=[" ","Enter"],V="Select",[z,q,$]=(0,s.N)(V),[Z,Y]=(0,d.A)(V,[$,L.Bk]),X=(0,L.Bk)(),[J,Q]=Z(V),[ee,et]=Z(V),en=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:l,onOpenChange:a,value:i,defaultValue:s,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:y}=e,g=X(t),[b,w]=o.useState(null),[x,E]=o.useState(null),[C,N]=o.useState(!1),R=(0,c.jH)(d),[S=!1,j]=(0,_.i)({prop:r,defaultProp:l,onChange:a}),[k,P]=(0,_.i)({prop:i,defaultProp:s,onChange:u}),D=o.useRef(null),A=!b||y||!!b.closest("form"),[O,I]=o.useState(new Set),M=Array.from(O).map(e=>e.props.value).join(";");return(0,v.jsx)(L.bL,{...g,children:(0,v.jsxs)(J,{required:h,scope:t,trigger:b,onTriggerChange:w,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:C,onValueNodeHasChildrenChange:N,contentId:(0,T.B)(),value:k,onValueChange:P,open:S,onOpenChange:j,dir:R,triggerPointerDownPosRef:D,disabled:m,children:[(0,v.jsx)(z.Provider,{scope:t,children:(0,v.jsx)(ee,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,v.jsxs)(eU,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>P(e.target.value),disabled:m,form:y,children:[void 0===k?(0,v.jsx)("option",{value:""}):null,Array.from(O)]},M):null]})})};en.displayName=V;var er="SelectTrigger",eo=o.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...l}=e,a=X(n),s=Q(er,n),d=s.disabled||r,c=(0,u.s)(t,s.onTriggerChange),p=q(n),m=o.useRef("touch"),[h,y,g]=eK(e=>{let t=p().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=eG(t,e,n);void 0!==r&&s.onValueChange(r.value)}),b=e=>{d||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,v.jsx)(L.Mz,{asChild:!0,...a,children:(0,v.jsx)(f.sG.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eH(s.value)?"":void 0,...l,ref:c,onClick:(0,i.m)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&b(e)}),onPointerDown:(0,i.m)(l.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,i.m)(l.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&K.includes(e.key)&&(b(),e.preventDefault())})})})});eo.displayName=er;var el="SelectValue",ea=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:l,placeholder:a="",...i}=e,s=Q(el,n),{onValueNodeHasChildrenChange:d}=s,c=void 0!==l,p=(0,u.s)(t,s.onValueNodeChange);return(0,D.N)(()=>{d(c)},[d,c]),(0,v.jsx)(f.sG.span,{...i,ref:p,style:{pointerEvents:"none"},children:eH(s.value)?(0,v.jsx)(v.Fragment,{children:a}):l})});ea.displayName=el;var ei=o.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,v.jsx)(f.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ei.displayName="SelectIcon";var es=e=>(0,v.jsx)(A,{asChild:!0,...e});es.displayName="SelectPortal";var eu="SelectContent",ed=o.forwardRef((e,t)=>{let n=Q(eu,e.__scopeSelect),[r,a]=o.useState();return((0,D.N)(()=>{a(new DocumentFragment)},[]),n.open)?(0,v.jsx)(ep,{...e,ref:t}):r?l.createPortal((0,v.jsx)(ec,{scope:e.__scopeSelect,children:(0,v.jsx)(z.Slot,{scope:e.__scopeSelect,children:(0,v.jsx)("div",{children:e.children})})}),r):null});ed.displayName=eu;var[ec,ef]=Z(eu),ep=o.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:s,side:d,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:x,avoidCollisions:E,...C}=e,R=Q(eu,n),[S,j]=o.useState(null),[k,P]=o.useState(null),T=(0,u.s)(t,e=>j(e)),[L,D]=o.useState(null),[A,I]=o.useState(null),M=q(n),[F,_]=o.useState(!1),W=o.useRef(!1);o.useEffect(()=>{if(S)return(0,H.Eq)(S)},[S]),(0,w.Oh)();let B=o.useCallback(e=>{let[t,...n]=M().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[M,k]),K=o.useCallback(()=>B([L,S]),[B,L,S]);o.useEffect(()=>{F&&K()},[F,K]);let{onOpenChange:G,triggerPointerDownPosRef:V}=R;o.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{var n,r,o,l;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=V.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(l=null==(r=V.current)?void 0:r.y)?l:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||G(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,G,V]),o.useEffect(()=>{let e=()=>G(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[G]);let[z,$]=eK(e=>{let t=M().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eG(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Z=o.useCallback((e,t,n)=>{let r=!W.current&&!n;(void 0!==R.value&&R.value===t||r)&&(D(e),r&&(W.current=!0))},[R.value]),Y=o.useCallback(()=>null==S?void 0:S.focus(),[S]),X=o.useCallback((e,t,n)=>{let r=!W.current&&!n;(void 0!==R.value&&R.value===t||r)&&I(e)},[R.value]),J="popper"===r?em:ev,ee=J===em?{side:d,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:x,avoidCollisions:E}:{};return(0,v.jsx)(ec,{scope:n,content:S,viewport:k,onViewportChange:P,itemRefCallback:Z,selectedItem:L,onItemLeave:Y,itemTextRefCallback:X,focusSelectedItem:K,selectedItemText:A,position:r,isPositioned:F,searchRef:z,children:(0,v.jsx)(U.A,{as:O,allowPinchZoom:!0,children:(0,v.jsx)(N,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.m)(l,e=>{var t;null==(t=R.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,v.jsx)(y,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,v.jsx)(J,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...C,...ee,onPlaced:()=>_(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,i.m)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});ep.displayName="SelectContentImpl";var ev=o.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...l}=e,i=Q(eu,n),s=ef(eu,n),[d,c]=o.useState(null),[p,m]=o.useState(null),h=(0,u.s)(t,e=>m(e)),y=q(n),g=o.useRef(!1),b=o.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:E,focusSelectedItem:C}=s,N=o.useCallback(()=>{if(i.trigger&&i.valueNode&&d&&p&&w&&x&&E){let e=i.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,l=n.left-r,i=e.left-l,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,f=(0,a.q)(l,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.left=f+"px"}else{let r=t.right-o.right,l=window.innerWidth-n.right-r,i=window.innerWidth-e.right-l,s=e.width+i,u=Math.max(s,t.width),c=window.innerWidth-10,f=(0,a.q)(l,[10,Math.max(10,c-u)]);d.style.minWidth=s+"px",d.style.right=f+"px"}let l=y(),s=window.innerHeight-20,u=w.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),m=parseInt(c.borderBottomWidth,10),h=f+v+u+parseInt(c.paddingBottom,10)+m,b=Math.min(5*x.offsetHeight,h),C=window.getComputedStyle(w),N=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),S=e.top+e.height/2-10,j=x.offsetHeight/2,k=f+v+(x.offsetTop+j);if(k<=S){let e=l.length>0&&x===l[l.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-S,j+(e?R:0)+(p.clientHeight-w.offsetTop-w.offsetHeight)+m);d.style.height=k+t+"px"}else{let e=l.length>0&&x===l[0].ref.current;d.style.top="0px";let t=Math.max(S,f+w.offsetTop+(e?N:0)+j);d.style.height=t+(h-k)+"px",w.scrollTop=k-S+w.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=b+"px",d.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[y,i.trigger,i.valueNode,d,p,w,x,E,i.dir,r]);(0,D.N)(()=>N(),[N]);let[R,S]=o.useState();(0,D.N)(()=>{p&&S(window.getComputedStyle(p).zIndex)},[p]);let j=o.useCallback(e=>{e&&!0===b.current&&(N(),null==C||C(),b.current=!1)},[N,C]);return(0,v.jsx)(eh,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:g,onScrollButtonChange:j,children:(0,v.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,v.jsx)(f.sG.div,{...l,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});ev.displayName="SelectItemAlignedPosition";var em=o.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...l}=e,a=X(n);return(0,v.jsx)(L.UC,{...a,...l,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});em.displayName="SelectPopperPosition";var[eh,ey]=Z(eu,{}),eg="SelectViewport",eb=o.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...l}=e,a=ef(eg,n),s=ey(eg,n),d=(0,u.s)(t,a.onViewportChange),c=o.useRef(0);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,v.jsx)(z.Slot,{scope:n,children:(0,v.jsx)(f.sG.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,i.m)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o0?i:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});eb.displayName=eg;var ew="SelectGroup",[ex,eE]=Z(ew),eC=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,T.B)();return(0,v.jsx)(ex,{scope:n,id:o,children:(0,v.jsx)(f.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});eC.displayName=ew;var eN="SelectLabel",eR=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eE(eN,n);return(0,v.jsx)(f.sG.div,{id:o.id,...r,ref:t})});eR.displayName=eN;var eS="SelectItem",[ej,ek]=Z(eS),eP=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:l=!1,textValue:a,...s}=e,d=Q(eS,n),c=ef(eS,n),p=d.value===r,[m,h]=o.useState(null!=a?a:""),[y,g]=o.useState(!1),b=(0,u.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,l)}),w=(0,T.B)(),x=o.useRef("touch"),E=()=>{l||(d.onValueChange(r),d.onOpenChange(!1))};if(""===r)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,v.jsx)(ej,{scope:n,value:r,disabled:l,textId:w,isSelected:p,onItemTextChange:o.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,v.jsx)(z.ItemSlot,{scope:n,value:r,disabled:l,textValue:m,children:(0,v.jsx)(f.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":p&&y,"data-state":p?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:b,onFocus:(0,i.m)(s.onFocus,()=>g(!0)),onBlur:(0,i.m)(s.onBlur,()=>g(!1)),onClick:(0,i.m)(s.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:(0,i.m)(s.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:(0,i.m)(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,i.m)(s.onPointerMove,e=>{if(x.current=e.pointerType,l){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,i.m)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,i.m)(s.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(G.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});eP.displayName=eS;var eT="SelectItemText",eL=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...i}=e,s=Q(eT,n),d=ef(eT,n),c=ek(eT,n),p=et(eT,n),[m,h]=o.useState(null),y=(0,u.s)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null==(t=d.itemTextRefCallback)?void 0:t.call(d,e,c.value,c.disabled)}),g=null==m?void 0:m.textContent,b=o.useMemo(()=>(0,v.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=p;return(0,D.N)(()=>(w(b),()=>x(b)),[w,x,b]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.sG.span,{id:c.textId,...i,ref:y}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(i.children,s.valueNode):null]})});eL.displayName=eT;var eD="SelectItemIndicator",eA=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ek(eD,n).isSelected?(0,v.jsx)(f.sG.span,{"aria-hidden":!0,...r,ref:t}):null});eA.displayName=eD;var eO="SelectScrollUpButton",eI=o.forwardRef((e,t)=>{let n=ef(eO,e.__scopeSelect),r=ey(eO,e.__scopeSelect),[l,a]=o.useState(!1),i=(0,u.s)(t,r.onScrollButtonChange);return(0,D.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,v.jsx)(e_,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eI.displayName=eO;var eM="SelectScrollDownButton",eF=o.forwardRef((e,t)=>{let n=ef(eM,e.__scopeSelect),r=ey(eM,e.__scopeSelect),[l,a]=o.useState(!1),i=(0,u.s)(t,r.onScrollButtonChange);return(0,D.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,v.jsx)(e_,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eF.displayName=eM;var e_=o.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...l}=e,a=ef("SelectScrollButton",n),s=o.useRef(null),u=q(n),d=o.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>d(),[d]),(0,D.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,v.jsx)(f.sG.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,i.m)(l.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:(0,i.m)(l.onPointerMove,()=>{var e;null==(e=a.onItemLeave)||e.call(a),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:(0,i.m)(l.onPointerLeave,()=>{d()})})}),eW=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,v.jsx)(f.sG.div,{"aria-hidden":!0,...r,ref:t})});eW.displayName="SelectSeparator";var eB="SelectArrow";function eH(e){return""===e||void 0===e}o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=X(n),l=Q(eB,n),a=ef(eB,n);return l.open&&"popper"===a.position?(0,v.jsx)(L.i3,{...o,...r,ref:t}):null}).displayName=eB;var eU=o.forwardRef((e,t)=>{let{value:n,...r}=e,l=o.useRef(null),a=(0,u.s)(t,l),i=(0,W.Z)(n);return o.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[i,n]),(0,v.jsx)(B.s,{asChild:!0,children:(0,v.jsx)("select",{...r,ref:a,defaultValue:n})})});function eK(e){let t=(0,p.c)(e),n=o.useRef(""),r=o.useRef(0),l=o.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,l,a]}function eG(e,t,n){var r,o;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,i=(r=e,o=Math.max(a,0),r.map((e,t)=>r[(o+t)%r.length]));1===l.length&&(i=i.filter(e=>e!==n));let s=i.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return s!==n?s:void 0}eU.displayName="BubbleSelect";var eV=en,ez=eo,eq=ea,e$=ei,eZ=es,eY=ed,eX=eb,eJ=eC,eQ=eR,e0=eP,e1=eL,e2=eA,e4=eI,e6=eF,e5=eW}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/4bd1b696-1c88c00269cf164c.js b/adl-server/src/main/resources/static/_next/static/chunks/4bd1b696-1c88c00269cf164c.js new file mode 100644 index 00000000..71cc34f0 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/4bd1b696-1c88c00269cf164c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{59248:(e,n,t)=>{var r,l=t(87358),a=t(45009),o=t(12115),u=t(47650);function i(e){var n="https://react.dev/errors/"+e;if(1I||(e.current=R[I],R[I]=null,I--)}function j(e,n){R[++I]=e.current,e.current=n}var V=U(null),H=U(null),Q=U(null),B=U(null);function W(e,n){switch(j(Q,n),j(H,e),j(V,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=sy(n=sg(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(V),j(V,e)}function q(){$(V),$(H),$(Q)}function K(e){null!==e.memoizedState&&j(B,e);var n=V.current,t=sy(n,e.type);n!==t&&(j(H,e),j(V,t))}function Y(e){H.current===e&&($(V),$(H)),B.current===e&&($(B),s7._currentValue=A)}function X(e){if(void 0===nI)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);nI=n&&n[1]||"",nU=-1)":-1l||i[r]!==s[l]){var c="\n"+i[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{G=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?X(t):""}function J(e){try{var n="",t=null;do n+=function(e,n){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==n&&null!==n?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return X("Activity");default:return""}}(e,t),t=e,e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ee=Object.prototype.hasOwnProperty,en=a.unstable_scheduleCallback,et=a.unstable_cancelCallback,er=a.unstable_shouldYield,el=a.unstable_requestPaint,ea=a.unstable_now,eo=a.unstable_getCurrentPriorityLevel,eu=a.unstable_ImmediatePriority,ei=a.unstable_UserBlockingPriority,es=a.unstable_NormalPriority,ec=a.unstable_LowPriority,ef=a.unstable_IdlePriority,ed=a.log,ep=a.unstable_setDisableYieldValue,em=null,eh=null;function eg(e){if("function"==typeof ed&&ep(e),eh&&"function"==typeof eh.setStrictMode)try{eh.setStrictMode(em,e)}catch(e){}}var ey=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ev(e)/eb|0)|0},ev=Math.log,eb=Math.LN2,ek=256,ew=4194304;function eS(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ex(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var u=0x7ffffff&r;return 0!==u?0!=(r=u&~a)?l=eS(r):0!=(o&=u)?l=eS(o):t||0!=(t=u&~e)&&(l=eS(t)):0!=(u=r&~a)?l=eS(u):0!==o?l=eS(o):t||0!=(t=r&~e)&&(l=eS(t)),0===l?0:0!==n&&n!==l&&0==(n&a)&&((a=l&-l)>=(t=n&-n)||32===a&&0!=(4194048&t))?n:l}function eE(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function ez(){var e=ek;return 0==(4194048&(ek<<=1))&&(ek=256),e}function eC(){var e=ew;return 0==(0x3c00000&(ew<<=1))&&(ew=4194304),e}function eP(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function eN(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eL(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ey(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194090&t}function eT(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ey(t),l=1<=tr),to=!1;function tu(e,n){switch(e){case"keyup":return -1!==tn.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ti(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ts=!1,tc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!tc[e.type]:"textarea"===n}function td(e,n,t,r){nw?nS?nS.push(r):nS=[r]:nw=r,0<(n=sr(n,"onChange")).length&&(t=new nQ("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tp=null,tm=null;function th(e){i8(e,0)}function tg(e){if(ne(eK(e)))return e}function ty(e,n){if("change"===e)return n}var tv=!1;if(nP){if(nP){var tb="oninput"in document;if(!tb){var tk=document.createElement("div");tk.setAttribute("oninput","return;"),tb="function"==typeof tk.oninput}r=tb}else r=!1;tv=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tL(r)}}function t_(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=nn(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=nn(e.document)}return n}function tF(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tD=nP&&"documentMode"in document&&11>=document.documentMode,tO=null,tM=null,tA=null,tR=!1;function tI(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tR||null==tO||tO!==nn(r)||(r="selectionStart"in(r=tO)&&tF(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tA&&tN(tA,r)||(tA=r,0<(r=sr(tM,"onSelect")).length&&(n=new nQ("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=tO)))}function tU(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var t$={animationend:tU("Animation","AnimationEnd"),animationiteration:tU("Animation","AnimationIteration"),animationstart:tU("Animation","AnimationStart"),transitionrun:tU("Transition","TransitionRun"),transitionstart:tU("Transition","TransitionStart"),transitioncancel:tU("Transition","TransitionCancel"),transitionend:tU("Transition","TransitionEnd")},tj={},tV={};function tH(e){if(tj[e])return tj[e];if(!t$[e])return e;var n,t=t$[e];for(n in t)if(t.hasOwnProperty(n)&&n in tV)return tj[e]=t[n];return e}nP&&(tV=document.createElement("div").style,"AnimationEvent"in window||(delete t$.animationend.animation,delete t$.animationiteration.animation,delete t$.animationstart.animation),"TransitionEvent"in window||delete t$.transitionend.transition);var tQ=tH("animationend"),tB=tH("animationiteration"),tW=tH("animationstart"),tq=tH("transitionrun"),tK=tH("transitionstart"),tY=tH("transitioncancel"),tX=tH("transitionend"),tG=new Map,tZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tJ(e,n){tG.set(e,n),eJ(n,[e])}tZ.push("scrollEnd");var t0="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof l&&"function"==typeof l.emit)return void l.emit("uncaughtException",e);console.error(e)},t1=[],t2=0,t3=0;function t4(){for(var e=t2,n=t3=t2=0;n>=o,l-=o,rk=1<<32-ey(n)+l|t<h?(g=f,f=null):g=f.sibling;var y=p(l,f,u[h],i);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&n(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===u.length)return t(l,f),rL&&rS(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&n(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return t(l,h),rL&&rS(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return rL&&rS(l,g),c}for(h=r(h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return n(l,e)}),rL&&rS(l,g),c}(s,c,f=b.call(f),h)}if("function"==typeof f.then)return u(s,c,ly(f),h);if(f.$$typeof===S)return u(s,c,rG(s,f),h);lb(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(s,c.sibling),(h=l(c,f)).return=s):(t(s,c),(h=ri(f,s.mode,h)).return=s),o(s=h)):t(s,c)}(u,s,c,f);return lh=null,h}catch(e){if(e===la||e===lu)throw e;var b=rt(29,e,null,u.mode);return b.lanes=f,b.return=u,b}finally{}}}var lw=lk(!0),lS=lk(!1),lx=!1;function lE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lz(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lC(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lP(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&uM)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,n=t7(e),t9(e,null,t),n}return t8(e,r,n,t),t7(e)}function lN(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194048&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,eT(e,t)}}function lL(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var lT=!1;function l_(){if(lT){var e=r9;if(null!==e)throw e}}function lF(e,n,t,r){lT=!1;var l=e.updateQueue;lx=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var i=u,s=i.next;i.next=null,null===o?a=s:o.next=s,o=i;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(o=0,c=s=i=null,u=a;;){var d=-0x20000001&u.lane,p=d!==u.lane;if(p?(uI&d)===d:(r&d)===d){0!==d&&d===r5&&(lT=!0),null!==c&&(c=c.next={lane:0,tag:u.tag,payload:u.payload,callback:null,next:null});e:{var h=e,g=u;switch(d=n,g.tag){case 1:if("function"==typeof(h=g.payload)){f=h.call(t,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=g.payload)?h.call(t,f,d):h))break e;f=m({},f,d);break e;case 2:lx=!0}}null!==(d=u.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=l.callbacks)?l.callbacks=[d]:p.push(d))}else p={lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,o|=d;if(null===(u=u.next))if(null===(u=l.shared.pending))break;else u=(p=u).next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null===a&&(l.shared.lanes=0),uW|=o,e.lanes=o,e.memoizedState=f}}function lD(e,n){if("function"!=typeof e)throw Error(i(191,e));e.call(n)}function lO(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;ea?a:8;var o=O.T,u={};O.T=u,a9(e,!1,n,t);try{var i=l(),s=O.S;if(null!==s&&s(u,i),null!==i&&"object"==typeof i&&"function"==typeof i.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},i.then(function(){f.status="fulfilled",f.value=r;for(var e=0;e title"))),sd(a,r,t),a[eR]=e,eX(a),r=a;break e;case"link":var o=s1("link","href",l).get(r+(t.href||""));if(o){for(var u=0;u<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[eR]=n,a[eI]=r;e:for(o=n.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(n.stateNode=a,sd(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&oK(n)}}return oJ(n),oY(n,n.type,null===e?null:e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&oK(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(i(166));if(e=Q.current,rA(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=rP))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||ss(e.nodeValue,t)))||rD(n,!0)}else(e=sh(e).createTextNode(r))[eR]=n,n.stateNode=e}return oJ(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(r=rA(n),null!==t){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(i(557));e[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;oJ(n),e=!1}else t=rI(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e){if(256&n.flags)return lW(n),n;return lW(n),null}if(0!=(128&n.flags))throw Error(i(558))}return oJ(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rA(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;oJ(n),l=!1}else l=rI(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&n.flags)return lW(n),n;return lW(n),null}}if(lW(n),0!=(128&n.flags))return n.lanes=t,n;return t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),oG(n,n.updateQueue),oJ(n),null;case 4:return q(),null===e&&i7(n.stateNode.containerInfo),oJ(n),null;case 10:return rQ(n.type),oJ(n),null;case 19:if($(lq),null===(r=n.memoizedState))return oJ(n),null;if(l=0!=(128&n.flags),null===(a=r.rendering))if(l)oZ(r,!1);else{if(0!==uB||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=lK(e))){for(n.flags|=128,oZ(r,!1),n.updateQueue=e=a.updateQueue,oG(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ra(t,e),t=t.sibling;return j(lq,1&lq.current|2),rL&&rS(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&ea()>u1&&(n.flags|=128,l=!0,oZ(r,!1),n.lanes=4194304)}else{if(!l)if(null!==(e=lK(a))){if(n.flags|=128,l=!0,n.updateQueue=e=e.updateQueue,oG(n,e),oZ(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!rL)return oJ(n),null}else 2*ea()-r.renderingStartTime>u1&&0x20000000!==t&&(n.flags|=128,l=!0,oZ(r,!1),n.lanes=4194304);r.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=r.last)?e.sibling=a:n.child=a,r.last=a)}if(null!==r.tail)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ea(),e.sibling=null,t=lq.current,j(lq,l?1&t|2:1&t),rL&&rS(n,r.treeForkCount),e;return oJ(n),null;case 22:case 23:return lW(n),lU(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(oJ(n),6&n.subtreeFlags&&(n.flags|=8192)):oJ(n),null!==(t=n.updateQueue)&&oG(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&$(ln),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),rQ(r2),oJ(n),null;case 25:case 30:return null}throw Error(i(156,n.tag))}(n.alternate,n,uQ);if(null!==t){uR=t;return}if(null!==(n=n.sibling)){uR=n;return}uR=n=e}while(null!==n);0===uB&&(uB=5)}function iE(e,n){do{var t=function(e,n){switch(rz(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return rQ(r2),q(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return Y(n),null;case 31:if(null!==n.memoizedState){if(lW(n),null===n.alternate)throw Error(i(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(lW(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(i(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return $(lq),null;case 4:return q(),null;case 10:return rQ(n.type),null;case 22:case 23:return lW(n),lU(),null!==e&&$(ln),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return rQ(r2),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,uR=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){uR=e;return}uR=e=t}while(null!==e);uB=6,uR=null}function iz(e,n,t,r,l,a,o,u,s){e.cancelPendingCommit=null;do iT();while(0!==u4);if(0!=(6&uM))throw Error(i(327));if(null!==n){if(n===e.current)throw Error(i(177));if(!function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0g&&(o=g,g=h,h=o);var y=tT(u,h),v=tT(u,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=f.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(f=[],p=u;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof u.focus&&u.focus(),u=0;ut?32:t,O.T=null,t=u7,u7=null;var a=u8,o=u5;if(u4=0,u6=u8=null,u5=0,0!=(6&uM))throw Error(i(331));var u=uM;if(uM|=4,u_(a.current),uE(a,a.current,o,t),uM=u,iW(0,!1),eh&&"function"==typeof eh.onPostCommitFiberRoot)try{eh.onPostCommitFiberRoot(em,a)}catch(e){}return!0}finally{M.p=l,O.T=r,iL(e,n)}}function iF(e,n,t){n=rd(t,n),n=og(e.stateNode,n,2),null!==(e=lP(e,n,2))&&(eN(e,2),iB(e))}function iD(e,n,t){if(3===e.tag)iF(e,e,t);else for(;null!==n;){if(3===n.tag){iF(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===u3||!u3.has(r))){e=rd(t,e),null!==(r=lP(n,t=oy(2),2))&&(ov(t,r,n,e),eN(r,2),iB(r));break}}n=n.return}}function iO(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new uO;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(uH=!0,l.add(t),e=iM.bind(null,e,n,t),n.then(e,e))}function iM(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,uA===e&&(uI&t)===t&&(4===uB||3===uB&&(0x3c00000&uI)===uI&&300>ea()-u0?0==(2&uM)&&ip(e,0):uK|=t,uX===uI&&(uX=0)),iB(e)}function iA(e,n){0===n&&(n=eC()),null!==(e=t5(e,n))&&(eN(e,n),iB(e))}function iR(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),iA(e,t)}function iI(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(n),iA(e,t)}var iU=null,i$=null,ij=!1,iV=!1,iH=!1,iQ=0;function iB(e){e!==i$&&null===e.next&&(null===i$?iU=i$=e:i$=i$.next=e),iV=!0,ij||(ij=!0,sx(function(){0!=(6&uM)?en(eu,iq):iK()}))}function iW(e,n){if(!iH&&iV){iH=!0;do for(var t=!1,r=iU;null!==r;){if(!n)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,u=r.pingedLanes;a=0xc000095&(a=(1<<31-ey(42|e)+1)-1&(l&~(o&~u)))?0xc000095&a|1:a?2|a:0}0!==a&&(t=!0,iG(r,a))}else a=uI,0==(3&(a=ex(r,r===uA?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eE(r,a)||(t=!0,iG(r,a));r=r.next}while(t);iH=!1}}function iq(){iK()}function iK(){iV=ij=!1;var e,n=0;0===iQ||((e=window.event)&&"popstate"===e.type?e===sb||(sb=e,0):(sb=null,1))||(n=iQ);for(var t=ea(),r=null,l=iU;null!==l;){var a=l.next,o=iY(l,t);0===o?(l.next=null,null===r?iU=a:r.next=a,null===a&&(i$=r)):(r=l,(0!==n||0!=(3&o))&&(iV=!0)),l=a}0!==u4&&5!==u4||iW(n,!1),0!==iQ&&(iQ=0)}function iY(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function s3(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var s4=null;function s8(){if(this.count--,0===this.count){if(this.stylesheets)s5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var s6=null;function s5(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,s6=new Map,n.forEach(s9,e),s6=null,s8.call(e))}function s9(e,n){if(!(4&n.state.loading)){var t=s6.get(e);if(t)var r=t.get(null);else{t=new Map,s6.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{n.d(t,{dj:()=>u});var a=n(12115);let s=0,r=new Map,d=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=[],o={toasts:[]};function l(e){o=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?d(n):e.toasts.forEach(e=>{d(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(o,e),i.forEach(e=>{e(o)})}function m(e){let{...t}=e,n=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>l({type:"DISMISS_TOAST",toastId:n});return l({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||a()}}}),{id:n,dismiss:a,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,t]=a.useState(o);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:m,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},18332:(e,t,n)=>{n.d(t,{Fc:()=>o,TN:()=>m,XL:()=>l});var a=n(95155),s=n(12115),r=n(83101),d=n(64269);let i=(0,r.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=s.forwardRef((e,t)=>{let{className:n,variant:s,...r}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,d.cn)(i({variant:s}),n),...r})});o.displayName="Alert";let l=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,d.cn)("mb-1 font-medium leading-none tracking-tight",n),...s})});l.displayName="AlertTitle";let m=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,d.cn)("text-sm [&_p]:leading-relaxed",n),...s})});m.displayName="AlertDescription"},23262:(e,t,n)=>{n.d(t,{BZ:()=>o,Cn:()=>a,PW:()=>r,XF:()=>c,_i:()=>i,g3:()=>s,qS:()=>d,s_:()=>l,sz:()=>u,zH:()=>m});let a="\n query TestsQuery($useCaseId: String!) {\n testCases(useCaseId: $useCaseId) {\n description\n expectedConversation {\n content\n role\n }\n id\n name\n useCaseId\n contract\n }\n }\n",s="\n query ListPrompts($term: String!) {\n list(searchTerm: { term: $term, limit: 50, threshold: 0.5 }) {\n id\n createdAt\n tags\n relevance\n }\n }\n",r="\n query SearchByIdQuery($id: String!) {\n searchById(id: $id) {\n id\n createdAt\n tags\n content\n examples\n output\n }\n }\n",d="\n query getMcpTools {\n getMcpTools {\n description\n name\n parameters\n }\n }\n",i="\n query getMcpServerUrls {\n mcpServerUrls {\n url\n reachable\n toolCount \n }\n }\n",o="\n query GetUserSettings {\n userSettings {\n apiKey\n modelName\n modelUrl\n }\n }\n",l="\n query ListWidgets {\n widgets {\n id\n name\n description\n html\n }\n }\n",m="\n query GetWidget($id: String!) {\n widget(id: $id) {\n id\n name\n html\n jsonSchema\n }\n }\n",u="\n query RolePrompts {\n rolePrompts {\n id\n name\n tags\n role\n tone\n }\n }\n",c="\n query Dashboard {\n dashboard {\n numberOfAdls\n averageResponseTime\n mostUsedUseCase {\n useCaseId\n count\n minComplianceScore\n maxComplianceScore\n }\n }\n }\n"},51834:(e,t,n)=>{n.d(t,{Cf:()=>u,Es:()=>p,L3:()=>f,c7:()=>c,lG:()=>o,rr:()=>g});var a=n(95155),s=n(12115),r=n(77283),d=n(26615),i=n(64269);let o=r.bL;r.l9;let l=r.ZL;r.bm;let m=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s})});m.displayName=r.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:n,children:s,...o}=e;return(0,a.jsxs)(l,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(r.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...o,children:[s,(0,a.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=r.UC.displayName;let c=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...n})};c.displayName="DialogHeader";let p=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};p.displayName="DialogFooter";let f=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",n),...s})});f.displayName=r.hE.displayName;let g=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",n),...s})});g.displayName=r.VY.displayName},65142:(e,t,n)=>{n.d(t,{p:()=>d});var a=n(95155),s=n(12115),r=n(64269);let d=s.forwardRef((e,t)=>{let{className:n,type:s,...d}=e;return(0,a.jsx)("input",{type:s,className:(0,r.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...d})});d.displayName="Input"},68086:(e,t,n)=>{n.d(t,{EF:()=>g,G1:()=>$,I6:()=>m,K1:()=>b,Lp:()=>l,Q6:()=>d,Tc:()=>c,dk:()=>y,fe:()=>o,j_:()=>v,jq:()=>f,n$:()=>r,of:()=>a,rr:()=>x,t5:()=>p,v3:()=>u,vH:()=>N,w8:()=>i,x3:()=>S,xu:()=>s});let a="\n mutation Assistant($input: AssistantInput!) {\n assistant(input: $input) {\n messages {\n role\n content\n format\n }\n responseTime\n context {\n key\n value\n }\n toolCalls {\n name\n arguments\n }\n }\n }\n",s="\n mutation examples($useCase: String!) {\n examples(useCase: $useCase) {\n useCase\n examples\n }\n }\n",r="\n mutation newTests($id: String!) {\n newTests(id: $id) {\n count\n }\n }\n",d="\n mutation storeADL($id: String!, $createdAt: String!, $tags: [String!]!, $content: String!, $examples: [String!]!) {\n store(id: $id, createdAt: $createdAt, tags: $tags, content: $content, examples: $examples) {\n message\n storedExamplesCount\n }\n }\n",i="\n mutation updateTags($id: String!, $tags: [String!]!) {\n updateTags(id: $id, tags: $tags) {\n message\n }\n }\n",o="\n mutation delete($id: String!) {\n delete(id: $id) {\n message\n }\n }\n",l="\n mutation ImproveUseCase($useCase: String!) {\n improveUseCase(useCase: $useCase) {\n improvements {\n improved_use_case\n issue\n suggestion\n }\n }\n }\n",m="\n mutation executeTests($id: String!, $testCaseId: String) {\n executeTests(adlId: $id, testCaseId: $testCaseId) {\n overallScore\n results {\n score\n status\n actualConversation {\n content\n role\n }\n details {\n evidence {\n mapsTo\n quote\n }\n missingRequirements\n reasons\n score\n verdict\n violations\n }\n testCaseId\n testCaseName\n useCases\n }\n }\n }\n",u="\n mutation deleteTest($id: String!) {\n deleteTest(id: $id) \n }\n",c="\n mutation updateTest($input: UpdateTestCaseInput!) {\n updateTest(input: $input) {\n id\n }\n }\n",p="\n mutation addTest($input: AddTestCaseInput!) {\n addTest(input: $input) {\n id\n }\n }\n",f="\n mutation setMcpServerUrls($urls: [String!]!) {\n setMcpServerUrls(urls: $urls) {\n url\n reachable\n toolCount \n }\n }\n",g="\n mutation correctSpelling($text: String!) {\n correctSpelling(text: $text)\n }\n",x="\n mutation GenerateWidget($name: String!, $purpose: String!, $interactions: String!) {\n generateWidget(input: {\n name: $name,\n purpose: $purpose,\n interactions: $interactions\n }) {\n html\n jsonSchema\n }\n }\n",$="\n mutation SetUserSettings($apiKey: String!, $modelName: String!, $modelUrl: String) {\n setUserSettings(apiKey: $apiKey, modelName: $modelName, modelUrl: $modelUrl) {\n apiKey\n modelName\n modelUrl\n }\n }\n",S="\n mutation SaveWidget($id: String, $name: String!, $html: String!, $jsonSchema: String!, $preview: String!) {\n saveWidget(input: {\n id: $id,\n name: $name,\n html: $html,\n jsonSchema: $jsonSchema,\n preview: $preview\n }) {\n id\n name\n }\n }\n",y="\n mutation DeleteWidget($id: String!) {\n deleteWidget(id: $id)\n }\n",N="\n mutation UpdateRolePrompt($id: String!, $name: String!, $role: String!, $tone: String!) {\n updateRolePrompt(id: $id, name: $name, role: $role, tone: $tone) {\n id\n name\n role\n tone\n }\n }\n",v="\n mutation DeleteRolePrompt($id: String!) {\n deleteRolePrompt(id: $id)\n }\n",b="\n mutation UpdateOutput($id: String!, $output: String!) {\n updateOutput(id: $id, output: $output) {\n message\n }\n }\n"},76444:(e,t,n)=>{n.d(t,{J:()=>l});var a=n(95155),s=n(12115),r=n(10489),d=n(83101),i=n(64269);let o=(0,d.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.b,{ref:t,className:(0,i.cn)(o(),n),...s})});l.displayName=r.b.displayName},86948:(e,t,n)=>{n.d(t,{BT:()=>l,Wu:()=>m,ZB:()=>o,Zp:()=>d,aR:()=>i});var a=n(95155),s=n(12115),r=n(64269);let d=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm",n),...s})});d.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",n),...s})});i.displayName="CardHeader";let o=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("text-2xl font-semibold leading-none tracking-tight",n),...s})});o.displayName="CardTitle";let l=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",n),...s})});l.displayName="CardDescription";let m=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("p-6 pt-0",n),...s})});m.displayName="CardContent",s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,r.cn)("flex items-center p-6 pt-0",n),...s})}).displayName="CardFooter"},98053:(e,t,n)=>{n.d(t,{$v:()=>g,EO:()=>u,Lt:()=>o,Rx:()=>x,Zr:()=>$,ck:()=>p,r7:()=>f,wd:()=>c});var a=n(95155),s=n(12115),r=n(6463),d=n(64269),i=n(3998);let o=r.bL;r.l9;let l=r.ZL,m=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.hJ,{className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s,ref:t})});m.displayName=r.hJ.displayName;let u=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsxs)(l,{children:[(0,a.jsx)(m,{}),(0,a.jsx)(r.UC,{ref:t,className:(0,d.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...s})]})});u.displayName=r.UC.displayName;let c=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...n})};c.displayName="AlertDialogHeader";let p=e=>{let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};p.displayName="AlertDialogFooter";let f=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.hE,{ref:t,className:(0,d.cn)("text-lg font-semibold",n),...s})});f.displayName=r.hE.displayName;let g=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.VY,{ref:t,className:(0,d.cn)("text-sm text-muted-foreground",n),...s})});g.displayName=r.VY.displayName;let x=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.rc,{ref:t,className:(0,d.cn)((0,i.r)(),n),...s})});x.displayName=r.rc.displayName;let $=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,a.jsx)(r.ZD,{ref:t,className:(0,d.cn)((0,i.r)({variant:"outline"}),"mt-2 sm:mt-0",n),...s})});$.displayName=r.ZD.displayName}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/73-b7cb3cbeb2f9c27c.js b/adl-server/src/main/resources/static/_next/static/chunks/73-b7cb3cbeb2f9c27c.js new file mode 100644 index 00000000..7ff0dcae --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/73-b7cb3cbeb2f9c27c.js @@ -0,0 +1,15 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73],{2821:(t,e,r)=>{"use strict";function n(){for(var t,e,r=0,n="",i=arguments.length;rn,A:()=>i});let i=n},3468:(t,e,r)=>{"use strict";r.d(e,{A:()=>s,q:()=>o});var n=r(12115),i=r(95155);function o(t,e){let r=n.createContext(e),o=t=>{let{children:e,...o}=t,s=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:s,children:e})};return o.displayName=t+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==e)return e;throw Error(`\`${i}\` must be used within \`${t}\``)}]}function s(t,e=[]){let r=[],o=()=>{let e=r.map(t=>n.createContext(t));return function(r){let i=r?.[t]||e;return n.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return o.scopeName=t,[function(e,o){let s=n.createContext(o),a=r.length;r=[...r,o];let l=e=>{let{scope:r,children:o,...l}=e,h=r?.[t]?.[a]||s,u=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(h.Provider,{value:u,children:o})};return l.displayName=e+"Provider",[l,function(r,i){let l=i?.[t]?.[a]||s,h=n.useContext(l);if(h)return h;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let r=()=>{let r=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=r.reduce((e,{useScope:r,scopeName:n})=>{let i=r(t)[`__scope${n}`];return{...e,...i}},{});return n.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}(o,...e)]}},4129:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},5969:(t,e,r)=>{"use strict";var n;r.d(e,{$b:()=>n,Vy:()=>h});let i=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(n||(n={}));let o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},s=n.INFO,a={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},l=(t,e,...r)=>{if(e{"use strict";r.d(e,{A:()=>a});var n=r(12115);let i=function(){for(var t=arguments.length,e=Array(t),r=0;r!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.forwardRef)((t,e)=>{let{color:r="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:h="",children:u,iconNode:c,...f}=t;return(0,n.createElement)("svg",{ref:e,...o,width:s,height:s,stroke:r,strokeWidth:l?24*Number(a)/Number(s):a,className:i("lucide",h),...f},[...c.map(t=>{let[e,r]=t;return(0,n.createElement)(e,r)}),...Array.isArray(u)?u:[u]])}),a=(t,e)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:a,...l}=r;return(0,n.createElement)(s,{ref:o,iconNode:e,className:i("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return r.displayName="".concat(t),r}},19708:(t,e,r)=>{"use strict";r.d(e,{aU:()=>n.aU});var n=r(6596)},22396:(t,e,r)=>{"use strict";r.d(e,{h1:()=>a,uA:()=>i});var n=r(57176);class i{constructor(t,e,r){this.name=t,this.instanceFactory=e,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}let o="[DEFAULT]";class s{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){let t=new n.cY;if(this.instancesDeferred.set(e,t),this.isInitialized(e)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:e});r&&t.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise}getImmediate(t){var e;let r=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),n=null!=(e=null==t?void 0:t.optional)&&e;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(t){if(n)return null;throw t}if(n)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,this.shouldAutoInitialize()){if("EAGER"===t.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(t){}for(let[t,e]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(t);try{let t=this.getOrInitializeService({instanceIdentifier:r});e.resolve(t)}catch(t){}}}}clearInstance(t=o){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){let t=Array.from(this.instances.values());await Promise.all([...t.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...t.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return null!=this.component}isInitialized(t=o){return this.instances.has(t)}getOptions(t=o){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:e={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:e});for(let[t,e]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(t)&&e.resolve(n);return n}onInit(t,e){var r;let n=this.normalizeInstanceIdentifier(e),i=null!=(r=this.onInitCallbacks.get(n))?r:new Set;i.add(t),this.onInitCallbacks.set(n,i);let o=this.instances.get(n);return o&&t(o,n),()=>{i.delete(t)}}invokeOnInitCallbacks(t,e){let r=this.onInitCallbacks.get(e);if(r)for(let n of r)try{n(t,e)}catch(t){}}getOrInitializeService({instanceIdentifier:t,options:e={}}){var r;let n=this.instances.get(t);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=t)===o?void 0:r,options:e}),this.instances.set(t,n),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(n,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,n)}catch(t){}return n||null}normalizeInstanceIdentifier(t=o){return this.component?this.component.multipleInstances?t:o:t}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let e=this.getProvider(t.name);if(e.isComponentSet())throw Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let e=new s(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}},23558:(t,e,r)=>{"use strict";r.d(e,{i:()=>o});var n=r(12115),i=r(70222);function o({prop:t,defaultProp:e,onChange:r=()=>{}}){let[o,s]=function({defaultProp:t,onChange:e}){let r=n.useState(t),[o]=r,s=n.useRef(o),a=(0,i.c)(e);return n.useEffect(()=>{s.current!==o&&(a(o),s.current=o)},[o,s,a]),r}({defaultProp:e,onChange:r}),a=void 0!==t,l=a?t:o,h=(0,i.c)(r);return[l,n.useCallback(e=>{if(a){let r="function"==typeof e?e(t):e;r!==t&&h(r)}else s(e)},[a,t,s,h])]}},24052:(t,e,r)=>{"use strict";r.d(e,{Ao:()=>h,Bx:()=>o,Jh:()=>l,O4:()=>s,ZS:()=>n,fF:()=>u,iO:()=>i,ro:()=>a});var n,i,o,s,a,l,h,u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};(function(){var t,e,r,d="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},p=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof c&&c];for(var e=0;enew L,t=>t.reset());class L{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let P,U=!1,z=new D,H=()=>{let t=y.Promise.resolve(void 0);P=()=>{t.then(F)}};var F=()=>{let t;for(var e;t=null,z.g&&(t=z.g,z.g=z.g.next,z.g||(z.h=null),t.next=null),e=t;){try{e.h.call(e.g)}catch(t){!function(t){y.setTimeout(()=>{throw t},0)}(t)}N.j(e),100>N.h&&(N.h++,e.next=N.g,N.g=e)}U=!1};function $(){this.s=this.s,this.C=this.C}function W(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}$.prototype.s=!1,$.prototype.ma=function(){this.s||(this.s=!0,this.N())},$.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},W.prototype.h=function(){this.defaultPrevented=!0};var V=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{let t=()=>{};y.addEventListener("test",t,e),y.removeEventListener("test",t,e)}catch(t){}return t}();function X(t,e){if(W.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var r=this.type=t.type,n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(j){t:{try{_(e.nodeName);var i=!0;break t}catch(t){}i=!1}i||(e=null)}}else"mouseover"==r?e=t.fromElement:"mouseout"==r&&(e=t.toElement);this.relatedTarget=e,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:G[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&X.aa.h.call(this)}}C(X,W);var G={2:"touch",3:"pen",4:"mouse"};X.prototype.h=function(){X.aa.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var J="closure_listenable_"+(1e6*Math.random()|0),K=0;function Y(t,e,r,n,i){this.listener=t,this.proxy=null,this.src=e,this.type=r,this.capture=!!n,this.ha=i,this.key=++K,this.da=this.fa=!1}function q(t){t.da=!0,t.listener=null,t.proxy=null,t.src=null,t.ha=null}function Z(t){this.src=t,this.g={},this.h=0}function Q(t,e){var r=e.type;if(r in t.g){var n,i=t.g[r],o=Array.prototype.indexOf.call(i,e,void 0);(n=0<=o)&&Array.prototype.splice.call(i,o,1),n&&(q(e),0==t.g[r].length&&(delete t.g[r],t.h--))}}function tt(t,e,r,n){for(var i=0;i>>0);function th(t){return"function"==typeof t?t:(t[tl]||(t[tl]=function(e){return t.handleEvent(e)}),t[tl])}function tu(){$.call(this),this.i=new Z(this),this.M=this,this.F=null}function tc(t,e){var r,n=t.F;if(n)for(r=[];n;n=n.F)r.push(n);if(t=t.M,n=e.type||e,"string"==typeof e)e=new W(e,t);else if(e instanceof W)e.target=e.target||t;else{var i=e;R(e=new W(n,t),i)}if(i=!0,r)for(var o=r.length-1;0<=o;o--){var s=e.g=r[o];i=tf(s,n,!0,e)&&i}if(i=tf(s=e.g=t,n,!0,e)&&i,i=tf(s,n,!1,e)&&i,r)for(o=0;o{e.g=null,e.i&&(e.i=!1,t(e))},e.l);let r=e.h;e.h=null,e.m.apply(null,r)}(this)}N(){super.N(),this.g&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function tg(t){$.call(this),this.h=t,this.g={}}C(tg,$);var ty=[];function tb(t){k(t.g,function(t,e){this.g.hasOwnProperty(e)&&ti(t)},t),t.g={}}tg.prototype.N=function(){tg.aa.N.call(this),tb(this)},tg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var tm=y.JSON.stringify,tv=y.JSON.parse,tw=class{stringify(t){return y.JSON.stringify(t,void 0)}parse(t){return y.JSON.parse(t,void 0)}};function tx(){}function tE(t){return t.h||(t.h=t.i())}function tC(){}tx.prototype.h=null;var tA={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function tS(){W.call(this,"d")}function tI(){W.call(this,"c")}C(tS,W),C(tI,W);var tT={},tO=null;function t_(){return tO=tO||new tu}function tj(t){W.call(this,tT.La,t)}function tk(t){let e=t_();tc(e,new tj(e))}function tM(t,e){W.call(this,tT.STAT_EVENT,t),this.stat=e}function tB(t){let e=t_();tc(e,new tM(e,t))}function tR(t,e){W.call(this,tT.Ma,t),this.size=e}function tD(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){t()},e)}function tN(){this.g=!0}function tL(t,e,r,n){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var r=JSON.parse(e);if(r){for(t=0;tn.length)){var i=n[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;si[2]&&r.F&&0==r.v&&!r.C&&(r.C=tD(x(r.Za,r),6e3));if(1>=t6(r.h)&&r.ca){try{r.ca()}catch(t){}r.ca=void 0}}else e2(r,11)}else if((t.K||r.g==t)&&eQ(r),!T(e))for(i=r.Da.g.parse(e),e=0;em)&&(3!=m||this.g&&(this.h.h||this.g.oa()||eU(this.g)))){this.J||4!=m||7==e||(8==e||0>=v?tk(3):tk(2)),tY(this);var r=this.g.Z();this.X=r;e:if(tG(this)){var n=eU(this.g);t="";var i=n.length,o=4==eP(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){tZ(this),tq(this);var s="";break e}this.h.i=new y.TextDecoder}for(e=0;ee.length?tW:(e=e.slice(n,n+r),t.C=n+r,e)}(this,s))==tW){4==m&&(this.s=4,tB(14),r=!1),tL(this.i,this.l,null,"[Incomplete Response]");break}else if(t==t$){this.s=4,tB(15),tL(this.i,this.l,s,"[Invalid Chunk]"),r=!1;break}else tL(this.i,this.l,t,null),tQ(this,t);if(tG(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=m||0!=s.length||this.h.h||(this.s=1,tB(16),r=!1),this.o=this.o&&r,r){if(0=t.j}function t6(t){return t.h?1:t.g?t.g.size:0}function t5(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function t3(t,e){t.g?t.g.add(e):t.h=e}function t4(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function t8(t){if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){let e=t.i;for(let r of t.g.values())e=e.concat(r.D);return e}return A(t.i)}function t7(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(b(t)||"string"==typeof t)Array.prototype.forEach.call(t,e,void 0);else for(var r=function(t){if(t.na&&"function"==typeof t.na)return t.na();if(!t.V||"function"!=typeof t.V){if("undefined"!=typeof Map&&t instanceof Map)return Array.from(t.keys());if(!("undefined"!=typeof Set&&t instanceof Set)){if(b(t)||"string"==typeof t){var e=[];t=t.length;for(var r=0;re)throw Error("Bad port number "+e);t.s=e}else t.s=null}function ei(t,e,r){var n,i;e instanceof eg?(t.i=e,n=t.i,(i=t.h)&&!n.j&&(ey(n),n.i=null,n.g.forEach(function(t,e){var r=e.toLowerCase();e!=r&&(eb(this,e),ev(this,r,t))},n)),n.j=i):(r||(e=el(e,ed)),t.i=new eg(e,t.h))}function eo(t,e,r){t.i.set(e,r)}function es(t){return eo(t,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),t}function ea(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function el(t,e,r){return"string"==typeof t?(t=encodeURI(t).replace(e,eh),r&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function eh(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}et.prototype.toString=function(){var t=[],e=this.j;e&&t.push(el(e,eu,!0),":");var r=this.g;return(r||"file"==e)&&(t.push("//"),(e=this.o)&&t.push(el(e,eu,!0),"@"),t.push(encodeURIComponent(String(r)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.s)&&t.push(":",String(r))),(r=this.l)&&(this.g&&"/"!=r.charAt(0)&&t.push("/"),t.push(el(r,"/"==r.charAt(0)?ef:ec,!0))),(r=this.i.toString())&&t.push("?",r),(r=this.m)&&t.push("#",el(r,ep)),t.join("")};var eu=/[#\/\?@]/g,ec=/[#\?:]/g,ef=/[#\?]/g,ed=/[#\?@]/g,ep=/#/g;function eg(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function ey(t){t.g||(t.g=new Map,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var r=0;r{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,eI(this)),this.readyState=0},r.Sa=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,eT(this)),this.g&&(this.readyState=3,eT(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==y.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;eS(this)}else t.text().then(this.Ra.bind(this),this.ga.bind(this))},r.Pa=function(t){if(this.g){if(this.o&&t.value)this.response.push(t.value);else if(!this.o){var e=t.value?t.value:new Uint8Array(0);(e=this.v.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?eI(this):eT(this),3==this.readyState&&eS(this)}},r.Ra=function(t){this.g&&(this.response=this.responseText=t,eI(this))},r.Qa=function(t){this.g&&(this.response=t,eI(this))},r.ga=function(){this.g&&eI(this)},r.setRequestHeader=function(t,e){this.u.append(t,e)},r.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";let t=[],e=this.h.entries();for(var r=e.next();!r.done;)t.push((r=r.value)[0]+": "+r[1]),r=e.next();return t.join("\r\n")},Object.defineProperty(eA.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}}),C(ej,tu);var ek=/^https?$/i,eM=["POST","PUT"];function eB(t,e){t.h=!1,t.g&&(t.j=!0,t.g.abort(),t.j=!1),t.l=e,t.m=5,eR(t),eN(t)}function eR(t){t.A||(t.A=!0,tc(t,"complete"),tc(t,"error"))}function eD(t){if(t.h&&void 0!==g&&(!t.v[1]||4!=eP(t)||2!=t.Z())){if(t.u&&4==eP(t))td(t.Ea,0,t);else if(tc(t,"readystatechange"),4==eP(t)){t.h=!1;try{let s=t.Z();switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e,r,n=!0;break;default:n=!1}if(!(e=n)){if(r=0===s){var i=String(t.D).match(t9)[1]||null;!i&&y.self&&y.self.location&&(i=y.self.location.protocol.slice(0,-1)),r=!ek.test(i?i.toLowerCase():"")}e=r}if(e)tc(t,"complete"),tc(t,"success");else{t.m=6;try{var o=2{}:null;t.g=null,t.v=null,e||tc(t,"ready");try{r.onreadystatechange=n}catch(t){}}}function eL(t){t.I&&(y.clearTimeout(t.I),t.I=null)}function eP(t){return t.g?t.g.readyState:0}function eU(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.H){case"":case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function ez(t,e,r){return r&&r.internalChannelParams&&r.internalChannelParams[t]||e}function eH(t){this.Aa=0,this.i=[],this.j=new tN,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=ez("failFast",!1,t),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=ez("baseRetryDelayMs",5e3,t),this.cb=ez("retryDelaySeedMs",1e4,t),this.Wa=ez("forwardChannelMaxRetries",2,t),this.wa=ez("forwardChannelRequestTimeoutMs",2e4,t),this.pa=t&&t.xmlHttpFactory||void 0,this.Xa=t&&t.Tb||void 0,this.Ca=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.h=new t1(t&&t.concurrentRequestLimit),this.Da=new eE,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=t&&t.Rb||!1,t&&t.xa&&this.j.xa(),t&&t.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&t&&t.detectBufferingProxy||!1,this.ja=void 0,t&&t.longPollingTimeout&&0(r-=e))e=Math.max(0,i[s].g-100),o=!1;else try{!function(t,e,r){let n=r||"";try{t7(t,function(t,r){let i=t;m(t)&&(i=tm(t)),e.push(n+r+"="+encodeURIComponent(i))})}catch(t){throw e.push(n+"type="+encodeURIComponent("_badmap")),t}}(a,t,"req"+r+"_")}catch(t){n&&n(a)}}if(o){n=t.join("&");break t}}}return e.D=t=t.i.splice(0,r),n}function eK(t){if(!t.g&&!t.u){t.Y=1;var e=t.Fa;P||H(),U||(P(),U=!0),z.add(e,t),t.v=0}}function eY(t){return!t.g&&!t.u&&!(3<=t.v)&&(t.Y++,t.u=tD(x(t.Fa,t),e1(t,t.v)),t.v++,!0)}function eq(t){null!=t.A&&(y.clearTimeout(t.A),t.A=null)}function eZ(t){t.g=new tH(t,t.j,"rpc",t.Y),null===t.m&&(t.g.H=t.o),t.g.O=0;var e=ee(t.qa);eo(e,"RID","rpc"),eo(e,"SID",t.K),eo(e,"AID",t.T),eo(e,"CI",t.F?"0":"1"),!t.F&&t.ja&&eo(e,"TO",t.ja),eo(e,"TYPE","xmlhttp"),eG(t,e),t.m&&t.o&&e_(e,t.m,t.o),t.L&&(t.g.I=t.L);var r=t.g;t=t.ia,r.L=1,r.v=es(ee(e)),r.m=null,r.P=!0,tX(r,t)}function eQ(t){null!=t.C&&(y.clearTimeout(t.C),t.C=null)}function e0(t,e){var r,n=null;if(t.g==e){eQ(t),eq(t),t.g=null;var i=2}else{if(!t5(t.h,e))return;n=e.D,t4(t.h,e),i=1}if(0!=t.G){if(e.o)if(1==i){n=e.m?e.m.length:0,e=Date.now()-e.F;var o=t.B;tc(i=t_(),new tR(i,n)),eV(t)}else eK(t);else if(3==(o=e.s)||0==o&&0=t.h.j-!!t.s)&&(t.s?(t.i=r.D.concat(t.i),!0):1!=t.G&&2!=t.G&&!(t.B>=(t.Va?0:t.Wa))&&(t.s=tD(x(t.Ga,t,r),e1(t,t.B)),t.B++,!0)))||2==i&&eY(t)))switch(n&&0{n.abort(),ex(r,"TestPingServer: timeout",!1,e)},1e4);fetch(t,{signal:n.signal}).then(t=>{clearTimeout(i),t.ok?ex(r,"TestPingServer: ok",!0,e):ex(r,"TestPingServer: server error",!1,e)}).catch(()=>{clearTimeout(i),ex(r,"TestPingServer: error",!1,e)})}(n.toString(),r)}else tB(2);t.G=0,t.l&&t.l.sa(e),e6(t),eW(t)}function e6(t){if(t.G=0,t.ka=[],t.l){let e=t8(t.h);(0!=e.length||0!=t.i.length)&&(S(t.ka,e),S(t.ka,t.i),t.h.i.length=0,A(t.i),t.i.length=0),t.l.ra()}}function e5(t,e,r){var n=r instanceof et?ee(r):new et(r);if(""!=n.g)e&&(n.g=e+"."+n.g),en(n,n.s);else{var i=y.location;n=i.protocol,e=e?e+"."+i.hostname:i.hostname,i=+i.port;var o=new et(null);n&&er(o,n),e&&(o.g=e),i&&en(o,i),r&&(o.l=r),n=o}return r=t.D,e=t.ya,r&&e&&eo(n,r,e),eo(n,"VER",t.la),eG(t,n),n}function e3(t,e,r){if(e&&!t.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new ej(t.Ca&&!t.pa?new eC({eb:r}):t.pa)).Ha(t.J),e}function e4(){}function e8(){}function e7(t,e){tu.call(this),this.g=new eH(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.o=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.va&&(t?t["X-WebChannel-Client-Profile"]=e.va:t={"X-WebChannel-Client-Profile":e.va}),this.g.S=t,(t=e&&e.Sb)&&!T(t)&&(this.g.m=t),this.v=e&&e.supportsCrossDomainXhr||!1,this.u=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!T(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new re(this)}function e9(t){tS.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){t:{for(let r in e){t=r;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function rt(){tI.call(this),this.status=1}function re(t){this.g=t}(r=ej.prototype).Ha=function(t){this.J=t},r.ea=function(t,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);r=r?r.toUpperCase():"GET",this.D=t,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():e.g(),this.v=this.o?tE(this.o):tE(e),this.g.onreadystatechange=x(this.Ea,this);try{this.B=!0,this.g.open(r,String(t),!0),this.B=!1}catch(t){eB(this,t);return}if(t=n||"",n=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var o in i)n.set(o,i[o]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let t of i.keys())n.set(t,i.get(t));else throw Error("Unknown input type for opt_headers: "+String(i));for(let[e,s]of(i=Array.from(n.keys()).find(t=>"content-type"==t.toLowerCase()),o=y.FormData&&t instanceof y.FormData,!(0<=Array.prototype.indexOf.call(eM,r,void 0))||i||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(e,s);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{eL(this),this.u=!0,this.g.send(t),this.u=!1}catch(t){eB(this,t)}},r.abort=function(t){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=t||7,tc(this,"complete"),tc(this,"abort"),eN(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),eN(this,!0)),ej.aa.N.call(this)},r.Ea=function(){this.s||(this.B||this.u||this.j?eD(this):this.bb())},r.bb=function(){eD(this)},r.isActive=function(){return!!this.g},r.Z=function(){try{return 2=this.R)){var t=2*this.R;this.j.info("BP detection timer enabled: "+t),this.A=tD(x(this.ab,this),t)}},r.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,tB(10),e$(this),eZ(this))},r.Za=function(){null!=this.C&&(this.C=null,e$(this),eY(this),tB(19))},r.fb=function(t){t?(this.j.info("Successfully pinged google.com"),tB(2)):(this.j.info("Failed to ping google.com"),tB(1))},r.isActive=function(){return!!this.l&&this.l.isActive(this)},(r=e4.prototype).ua=function(){},r.ta=function(){},r.sa=function(){},r.ra=function(){},r.isActive=function(){return!0},r.Na=function(){},e8.prototype.g=function(t,e){return new e7(t,e)},C(e7,tu),e7.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},e7.prototype.close=function(){eF(this.g)},e7.prototype.o=function(t){var e=this.g;if("string"==typeof t){var r={};r.__data__=t,t=r}else this.u&&((r={}).__data__=tm(t),t=r);e.i.push(new t0(e.Ya++,t)),3==e.G&&eV(e)},e7.prototype.N=function(){this.g.l=null,delete this.j,eF(this.g),delete this.g,e7.aa.N.call(this)},C(e9,tS),C(rt,tI),C(re,e4),re.prototype.ua=function(){tc(this.g,"a")},re.prototype.ta=function(t){tc(this.g,new e9(t))},re.prototype.sa=function(t){tc(this.g,new rt)},re.prototype.ra=function(){tc(this.g,"b")},e8.prototype.createWebChannel=e8.prototype.g,e7.prototype.send=e7.prototype.o,e7.prototype.open=e7.prototype.m,e7.prototype.close=e7.prototype.close,u=f.createWebChannelTransport=function(){return new e8},h=f.getStatEventTarget=function(){return t_()},l=f.Event=tT,a=f.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},tP.NO_ERROR=0,tP.TIMEOUT=8,tP.HTTP_ERROR=6,s=f.ErrorCode=tP,tU.COMPLETE="complete",o=f.EventType=tU,tC.EventType=tA,tA.OPEN="a",tA.CLOSE="b",tA.ERROR="c",tA.MESSAGE="d",tu.prototype.listen=tu.prototype.K,i=f.WebChannel=tC,f.FetchXmlHttpFactory=eC,ej.prototype.listenOnce=ej.prototype.L,ej.prototype.getLastError=ej.prototype.Ka,ej.prototype.getLastErrorCode=ej.prototype.Ba,ej.prototype.getStatus=ej.prototype.Z,ej.prototype.getResponseJson=ej.prototype.Oa,ej.prototype.getResponseText=ej.prototype.oa,ej.prototype.send=ej.prototype.ea,ej.prototype.setWithCredentials=ej.prototype.Ha,n=f.XhrIo=ej}).apply(void 0!==c?c:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},51746:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=l(t),s=o[0],a=o[1],h=new i((s+a)*3/4-a),u=0,c=a>0?s-4:s;for(r=0;r>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[u++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},52078:(t,e,r)=>{"use strict";r.d(e,{Dk:()=>n.Dk,Sx:()=>n.Sx,Wp:()=>n.Wp});var n=r(91398);(0,n.KO)("firebase","11.9.1","app")},55459:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,l=(1<>1,u=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+t[e+c],c+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[e+c],c+=f,u-=8);if(0===o)o=1-h;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,l,h=8*o-i-1,u=(1<>1,f=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+c>=1?e+=f/l:e+=f*Math.pow(2,1-c),e*l>=2&&(s++,l/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(e*l-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[r+d]=255&s,d+=p,s/=256,h-=8);t[r+d-p]|=128*g}},57176:(t,e,r)=>{"use strict";r.d(e,{cY:()=>b,FA:()=>N,g:()=>D,u:()=>u,Uj:()=>h,Fy:()=>w,tD:()=>$,bD:()=>function t(e,r){if(e===r)return!0;let n=Object.keys(e),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=e[o],s=r[o];if(U(n)&&U(s)){if(!t(n,s))return!1}else if(n!==s)return!1}for(let t of i)if(!n.includes(t))return!1;return!0},hp:()=>F,T9:()=>g,Tj:()=>d,yU:()=>p,XA:()=>y,mS:()=>c,Ku:()=>X,ZQ:()=>A,sr:()=>O,zJ:()=>m,c1:()=>T,Im:()=>P,lT:()=>j,zW:()=>B,jZ:()=>S,lV:()=>_,nr:()=>k,Ov:()=>M,gE:()=>v,Am:()=>z,I9:()=>H,P1:()=>C,eX:()=>R});var n=r(87358);let i=function(t){let e=[],r=0;for(let n=0;n>6|192:((64512&i)==55296&&n+1>18|240,e[r++]=i>>12&63|128):e[r++]=i>>12|224,e[r++]=i>>6&63|128),e[r++]=63&i|128)}return e},o=function(t){let e=[],r=0,n=0;for(;r191&&i<224){let o=t[r++];e[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=t[r++],s=((7&i)<<18|(63&o)<<12|(63&t[r++])<<6|63&t[r++])-65536;e[n++]=String.fromCharCode(55296+(s>>10)),e[n++]=String.fromCharCode(56320+(1023&s))}else{let o=t[r++],s=t[r++];e[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")},s={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let e=0;e>2,u=(3&i)<<4|s>>4,c=(15&s)<<2|l>>6,f=63&l;!a&&(f=64,o||(c=64)),n.push(r[h],r[u],r[c],r[f])}return n.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(i(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):o(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let r=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let e=0;e>4;if(n.push(h),64!==s){let t=o<<4&240|s>>2;if(n.push(t),64!==l){let t=s<<6&192|l;n.push(t)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(t){let e=i(t);return s.encodeByteArray(e,!0)},h=function(t){return l(t).replace(/\./g,"")},u=function(t){try{return s.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function c(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let f=()=>{try{return c().__FIREBASE_DEFAULTS__||(()=>{if(void 0===n||void 0===n.env)return;let t=n.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)})()||(()=>{let t;if("undefined"==typeof document)return;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=t&&u(t[1]);return e&&JSON.parse(e)})()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},d=t=>{var e,r;return null==(r=null==(e=f())?void 0:e.emulatorHosts)?void 0:r[t]},p=t=>{let e=d(t);if(!e)return;let r=e.lastIndexOf(":");if(r<=0||r+1===e.length)throw Error(`Invalid host ${e} with no separate hostname and port!`);let n=parseInt(e.substring(r+1),10);return"["===e[0]?[e.substring(1,r-1),n]:[e.substring(0,r),n]},g=()=>{var t;return null==(t=f())?void 0:t.config},y=t=>{var e;return null==(e=f())?void 0:e[`_${t}`]};class b{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}wrapCallback(t){return(e,r)=>{e?this.reject(e):this.resolve(r),"function"==typeof t&&(this.promise.catch(()=>{}),1===t.length?t(e):t(e,r))}}}function m(t){return t.endsWith(".cloudworkstations.dev")}async function v(t){return(await fetch(t,{credentials:"include"})).ok}function w(t,e){if(t.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=e||"demo-project",n=t.iat||0,i=t.sub||t.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},t);return[h(JSON.stringify({alg:"none",type:"JWT"})),h(JSON.stringify(o)),""].join(".")}let x={},E=!1;function C(t,e){if("undefined"==typeof window||"undefined"==typeof document||!m(window.location.host)||x[t]===e||x[t]||E)return;function r(t){return`__firebase__banner__${t}`}x[t]=e;let n="__firebase__banner",i=function(){let t={prod:[],emulator:[]};for(let e of Object.keys(x))x[e]?t.emulator.push(e):t.prod.push(e);return t}().prod.length>0;function o(){let t,e,o=(t=document.getElementById(n),e=!1,t||((t=document.createElement("div")).setAttribute("id",n),e=!0),{created:e,element:t}),s=r("text"),a=document.getElementById(s)||document.createElement("span"),l=r("learnmore"),h=document.getElementById(l)||document.createElement("a"),u=r("preprendIcon"),c=document.getElementById(u)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.created){let t=o.element;t.style.display="flex",t.style.background="#7faaf0",t.style.position="fixed",t.style.bottom="5px",t.style.left="5px",t.style.padding=".5em",t.style.borderRadius="5px",t.style.alignItems="center",h.setAttribute("id",l),h.innerText="Learn more",h.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",h.setAttribute("target","__blank"),h.style.paddingLeft="5px",h.style.textDecoration="underline";let e=function(){let t=document.createElement("span");return t.style.cursor="pointer",t.style.marginLeft="16px",t.style.fontSize="24px",t.innerHTML=" ×",t.onclick=()=>{E=!0;let t=document.getElementById(n);t&&t.remove()},t}();c.setAttribute("width","24"),c.setAttribute("id",u),c.setAttribute("height","24"),c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("fill","none"),c.style.marginLeft="-6px",t.append(c,a,h,e),document.body.appendChild(t)}i?(a.innerText="Preview backend disconnected.",c.innerHTML=` + + + + + + +`):(c.innerHTML=` + + + + + + +`,a.innerText="Preview backend running in this workspace."),a.setAttribute("id",s)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o):o()}function A(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function S(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(A())}function I(){var t;let e=null==(t=f())?void 0:t.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(t){return!1}}function T(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function O(){let t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function _(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function j(){let t=A();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function k(){return!I()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function M(){return!I()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function B(){try{return"object"==typeof indexedDB}catch(t){return!1}}function R(){return new Promise((t,e)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),t(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var t;e((null==(t=i.error)?void 0:t.message)||"")}}catch(t){e(t)}})}class D extends Error{constructor(t,e,r){super(e),this.code=t,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,D.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,N.prototype.create)}}class N{constructor(t,e,r){this.service=t,this.serviceName=e,this.errors=r}create(t,...e){var r,n;let i=e[0]||{},o=`${this.service}/${t}`,s=this.errors[t],a=s?(r=s,n=i,r.replace(L,(t,e)=>{let r=n[e];return null!=r?String(r):`<${e}?>`})):"Error",l=`${this.serviceName}: ${a} (${o}).`;return new D(o,l,i)}}let L=/\{\$([^}]+)}/g;function P(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function U(t){return null!==t&&"object"==typeof t}function z(t){let e=[];for(let[r,n]of Object.entries(t))Array.isArray(n)?n.forEach(t=>{e.push(encodeURIComponent(r)+"="+encodeURIComponent(t))}):e.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function H(t){let e={};return t.replace(/^\?/,"").split("&").forEach(t=>{if(t){let[r,n]=t.split("=");e[decodeURIComponent(r)]=decodeURIComponent(n)}}),e}function F(t){let e=t.indexOf("?");if(!e)return"";let r=t.indexOf("#",e);return t.substring(e,r>0?r:void 0)}function $(t,e){let r=new W(t,e);return r.subscribe.bind(r)}class W{constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(()=>{t(this)}).catch(t=>{this.error(t)})}next(t){this.forEachObserver(e=>{e.next(t)})}error(t){this.forEachObserver(e=>{e.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,e,r){let n;if(void 0===t&&void 0===e&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(t,e){if("object"!=typeof t||null===t)return!1;for(let r of e)if(r in t&&"function"==typeof t[r])return!0;return!1}(t,["next","error","complete"])?{next:t,error:e,complete:r}:t).next&&(n.next=V),void 0===n.error&&(n.error=V),void 0===n.complete&&(n.complete=V);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(t){}}),this.observers.push(n),i}unsubscribeOne(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let e=0;e{if(void 0!==this.observers&&void 0!==this.observers[t])try{e(this.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}})}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function V(){}function X(t){return t&&t._delegate?t._delegate:t}},59253:(t,e,r)=>{"use strict";r.d(e,{HF:()=>n.Y,xI:()=>n.p,hg:()=>n.z,df:()=>n.d,CI:()=>n.D});var n=r(82830);r(91398),r(57176),r(5969),r(22396)},70222:(t,e,r)=>{"use strict";r.d(e,{c:()=>i});var n=r(12115);function i(t){let e=n.useRef(t);return n.useEffect(()=>{e.current=t}),n.useMemo(()=>(...t)=>e.current?.(...t),[])}},71450:(t,e,r)=>{"use strict";r.d(e,{Cl:()=>n,Tt:()=>i,fX:()=>o});var n=function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;re.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);ie.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}Object.create;function o(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i{"use strict";r.d(e,{QP:()=>tr});let n=(t,e)=>{if(0===t.length)return e.classGroupId;let r=t[0],i=e.nextPart.get(r),o=i?n(t.slice(1),i):void 0;if(o)return o;if(0===e.validators.length)return;let s=t.join("-");return e.validators.find(({validator:t})=>t(s))?.classGroupId},i=/^\[(.+)\]$/,o=(t,e,r,n)=>{t.forEach(t=>{if("string"==typeof t){(""===t?e:s(e,t)).classGroupId=r;return}if("function"==typeof t)return a(t)?void o(t(n),e,r,n):void e.validators.push({validator:t,classGroupId:r});Object.entries(t).forEach(([t,i])=>{o(i,s(e,t),r,n)})})},s=(t,e)=>{let r=t;return e.split("-").forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},a=t=>t.isThemeGetter,l=/\s+/;function h(){let t,e,r=0,n="";for(;r{let e;if("string"==typeof t)return t;let r="";for(let n=0;n{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},f=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,d=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p=/^\d+\/\d+$/,g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,b=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,m=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w=t=>p.test(t),x=t=>!!t&&!Number.isNaN(Number(t)),E=t=>!!t&&Number.isInteger(Number(t)),C=t=>t.endsWith("%")&&x(t.slice(0,-1)),A=t=>g.test(t),S=()=>!0,I=t=>y.test(t)&&!b.test(t),T=()=>!1,O=t=>m.test(t),_=t=>v.test(t),j=t=>!M(t)&&!P(t),k=t=>V(t,q,T),M=t=>f.test(t),B=t=>V(t,Z,I),R=t=>V(t,Q,x),D=t=>V(t,G,T),N=t=>V(t,K,_),L=t=>V(t,T,O),P=t=>d.test(t),U=t=>X(t,Z),z=t=>X(t,tt),H=t=>X(t,G),F=t=>X(t,q),$=t=>X(t,K),W=t=>X(t,te,!0),V=(t,e,r)=>{let n=f.exec(t);return!!n&&(n[1]?e(n[1]):r(n[2]))},X=(t,e,r=!1)=>{let n=d.exec(t);return!!n&&(n[1]?e(n[1]):r)},G=t=>"position"===t,J=new Set(["image","url"]),K=t=>J.has(t),Y=new Set(["length","size","percentage"]),q=t=>Y.has(t),Z=t=>"length"===t,Q=t=>"number"===t,tt=t=>"family-name"===t,te=t=>"shadow"===t;Symbol.toStringTag;let tr=function(t,...e){let r,s,a,u=function(l){let h;return s=(r={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,r=new Map,n=new Map,i=(i,o)=>{r.set(i,o),++e>t&&(e=0,n=r,r=new Map)};return{get(t){let e=r.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(i(t,e),e):void 0},set(t,e){r.has(t)?r.set(t,e):i(t,e)}}})((h=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:r}=t,n=t=>{let e,r,n=[],i=0,o=0,s=0;for(let r=0;rs?e-s:void 0}};if(e){let t=e+":",r=n;n=e=>e.startsWith(t)?r(e.substring(t.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:e,maybePostfixModifierPosition:void 0}}if(r){let t=n;n=e=>r({className:e,parseClassName:t})}return n})(h),sortModifiers:(t=>{let e=Object.fromEntries(t.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;let r=[],n=[];return t.forEach(t=>{"["===t[0]||e[t]?(r.push(...n.sort(),t),n=[]):n.push(t)}),r.push(...n.sort()),r}})(h),...(t=>{let e=(t=>{let{theme:e,classGroups:r}=t,n={nextPart:new Map,validators:[]};for(let t in r)o(r[t],n,t,e);return n})(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:t=>{let r=t.split("-");return""===r[0]&&1!==r.length&&r.shift(),n(r,e)||(t=>{if(i.test(t)){let e=i.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}})(t)},getConflictingClassGroupIds:(t,e)=>{let n=r[t]||[];return e&&s[t]?[...n,...s[t]]:n}}})(h)}).cache.get,a=r.cache.set,u=c,c(l)};function c(t){let e=s(t);if(e)return e;let n=((t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o}=e,s=[],a=t.trim().split(l),h="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:l,modifiers:u,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:d}=r(e);if(l){h=e+(h.length>0?" "+h:h);continue}let p=!!d,g=n(p?f.substring(0,d):f);if(!g){if(!p||!(g=n(f))){h=e+(h.length>0?" "+h:h);continue}p=!1}let y=o(u).join(":"),b=c?y+"!":y,m=b+g;if(s.includes(m))continue;s.push(m);let v=i(g,p);for(let t=0;t0?" "+h:h)}return h})(t,r);return a(t,n),n}return function(){return u(h.apply(null,arguments))}}(()=>{let t=c("color"),e=c("font"),r=c("text"),n=c("font-weight"),i=c("tracking"),o=c("leading"),s=c("breakpoint"),a=c("container"),l=c("spacing"),h=c("radius"),u=c("shadow"),f=c("inset-shadow"),d=c("drop-shadow"),p=c("blur"),g=c("perspective"),y=c("aspect"),b=c("ease"),m=c("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],_=()=>[w,"px","full","auto",P,M,l],V=()=>[E,"none","subgrid",P,M],X=()=>["auto",{span:["full",E,P,M]},P,M],G=()=>[E,"auto",P,M],J=()=>["auto","min","max","fr",P,M],K=()=>[P,M,l],Y=()=>["start","end","center","between","around","evenly","stretch","baseline"],q=()=>["start","end","center","stretch"],Z=()=>[P,M,l],Q=()=>["px",...Z()],tt=()=>["px","auto",...Z()],te=()=>[w,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",P,M,l],tr=()=>[t,P,M],tn=()=>[C,B],ti=()=>["","none","full",h,P,M],to=()=>["",x,U,B],ts=()=>["solid","dashed","dotted","double"],ta=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],tl=()=>["","none",p,P,M],th=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P,M],tu=()=>["none",x,P,M],tc=()=>["none",x,P,M],tf=()=>[x,P,M],td=()=>[w,"full","px",P,M,l];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A],breakpoint:[A],color:[S],container:[A],"drop-shadow":[A],ease:["in","out","in-out"],font:[j],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A],shadow:[A],spacing:[x],text:[A],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",w,M,P,y]}],container:["container"],columns:[{columns:[x,M,P,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...I(),M,P]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",P,M]}],basis:[{basis:[w,"full","auto",P,M,a,l]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,w,"auto","initial","none",M]}],grow:[{grow:["",x,P,M]}],shrink:[{shrink:["",x,P,M]}],order:[{order:[E,"first","last","none",P,M]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...q(),"baseline"]}],"align-self":[{self:["auto",...q(),"baseline"]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:Q()}],px:[{px:Q()}],py:[{py:Q()}],ps:[{ps:Q()}],pe:[{pe:Q()}],pt:[{pt:Q()}],pr:[{pr:Q()}],pb:[{pb:Q()}],pl:[{pl:Q()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":Z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Z()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...te()]}],h:[{h:["screen",...te()]}],"min-h":[{"min-h":["screen","none",...te()]}],"max-h":[{"max-h":["screen",...te()]}],"font-size":[{text:["base",r,U,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,P,R]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C,M]}],"font-family":[{font:[z,M,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,P,M]}],"line-clamp":[{"line-clamp":[x,"none",P,R]}],leading:[{leading:[P,M,o,l]}],"list-image":[{"list-image":["none",P,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:tr()}],"text-color":[{text:tr()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ts(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",P,B]}],"text-decoration-color":[{decoration:tr()}],"underline-offset":[{"underline-offset":[x,"auto",P,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...Z()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I(),H,D]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",F,k]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,P,M],radial:["",P,M],conic:[E,P,M]},$,N]}],"bg-color":[{bg:tr()}],"gradient-from-pos":[{from:tn()}],"gradient-via-pos":[{via:tn()}],"gradient-to-pos":[{to:tn()}],"gradient-from":[{from:tr()}],"gradient-via":[{via:tr()}],"gradient-to":[{to:tr()}],rounded:[{rounded:ti()}],"rounded-s":[{"rounded-s":ti()}],"rounded-e":[{"rounded-e":ti()}],"rounded-t":[{"rounded-t":ti()}],"rounded-r":[{"rounded-r":ti()}],"rounded-b":[{"rounded-b":ti()}],"rounded-l":[{"rounded-l":ti()}],"rounded-ss":[{"rounded-ss":ti()}],"rounded-se":[{"rounded-se":ti()}],"rounded-ee":[{"rounded-ee":ti()}],"rounded-es":[{"rounded-es":ti()}],"rounded-tl":[{"rounded-tl":ti()}],"rounded-tr":[{"rounded-tr":ti()}],"rounded-br":[{"rounded-br":ti()}],"rounded-bl":[{"rounded-bl":ti()}],"border-w":[{border:to()}],"border-w-x":[{"border-x":to()}],"border-w-y":[{"border-y":to()}],"border-w-s":[{"border-s":to()}],"border-w-e":[{"border-e":to()}],"border-w-t":[{"border-t":to()}],"border-w-r":[{"border-r":to()}],"border-w-b":[{"border-b":to()}],"border-w-l":[{"border-l":to()}],"divide-x":[{"divide-x":to()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":to()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ts(),"hidden","none"]}],"divide-style":[{divide:[...ts(),"hidden","none"]}],"border-color":[{border:tr()}],"border-color-x":[{"border-x":tr()}],"border-color-y":[{"border-y":tr()}],"border-color-s":[{"border-s":tr()}],"border-color-e":[{"border-e":tr()}],"border-color-t":[{"border-t":tr()}],"border-color-r":[{"border-r":tr()}],"border-color-b":[{"border-b":tr()}],"border-color-l":[{"border-l":tr()}],"divide-color":[{divide:tr()}],"outline-style":[{outline:[...ts(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,P,M]}],"outline-w":[{outline:["",x,U,B]}],"outline-color":[{outline:[t]}],shadow:[{shadow:["","none",u,W,L]}],"shadow-color":[{shadow:tr()}],"inset-shadow":[{"inset-shadow":["none",P,M,f]}],"inset-shadow-color":[{"inset-shadow":tr()}],"ring-w":[{ring:to()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:tr()}],"ring-offset-w":[{"ring-offset":[x,B]}],"ring-offset-color":[{"ring-offset":tr()}],"inset-ring-w":[{"inset-ring":to()}],"inset-ring-color":[{"inset-ring":tr()}],opacity:[{opacity:[x,P,M]}],"mix-blend":[{"mix-blend":[...ta(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ta()}],filter:[{filter:["","none",P,M]}],blur:[{blur:tl()}],brightness:[{brightness:[x,P,M]}],contrast:[{contrast:[x,P,M]}],"drop-shadow":[{"drop-shadow":["","none",d,P,M]}],grayscale:[{grayscale:["",x,P,M]}],"hue-rotate":[{"hue-rotate":[x,P,M]}],invert:[{invert:["",x,P,M]}],saturate:[{saturate:[x,P,M]}],sepia:[{sepia:["",x,P,M]}],"backdrop-filter":[{"backdrop-filter":["","none",P,M]}],"backdrop-blur":[{"backdrop-blur":tl()}],"backdrop-brightness":[{"backdrop-brightness":[x,P,M]}],"backdrop-contrast":[{"backdrop-contrast":[x,P,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,P,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,P,M]}],"backdrop-invert":[{"backdrop-invert":["",x,P,M]}],"backdrop-opacity":[{"backdrop-opacity":[x,P,M]}],"backdrop-saturate":[{"backdrop-saturate":[x,P,M]}],"backdrop-sepia":[{"backdrop-sepia":["",x,P,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Z()}],"border-spacing-x":[{"border-spacing-x":Z()}],"border-spacing-y":[{"border-spacing-y":Z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",P,M]}],ease:[{ease:["linear","initial",b,P,M]}],delay:[{delay:[x,P,M]}],animate:[{animate:["none",m,P,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,P,M]}],"perspective-origin":[{"perspective-origin":th()}],rotate:[{rotate:tu()}],"rotate-x":[{"rotate-x":tu()}],"rotate-y":[{"rotate-y":tu()}],"rotate-z":[{"rotate-z":tu()}],scale:[{scale:tc()}],"scale-x":[{"scale-x":tc()}],"scale-y":[{"scale-y":tc()}],"scale-z":[{"scale-z":tc()}],"scale-3d":["scale-3d"],skew:[{skew:tf()}],"skew-x":[{"skew-x":tf()}],"skew-y":[{"skew-y":tf()}],transform:[{transform:[P,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:th()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:td()}],"translate-x":[{"translate-x":td()}],"translate-y":[{"translate-y":td()}],"translate-z":[{"translate-z":td()}],"translate-none":["translate-none"],accent:[{accent:tr()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:tr()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,M]}],fill:[{fill:["none",...tr()]}],"stroke-w":[{stroke:[x,U,B,R]}],stroke:[{stroke:["none",...tr()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}})},76842:(t,e,r)=>{"use strict";r.d(e,{C:()=>s});var n=r(12115),i=r(94446),o=r(4129),s=t=>{let{present:e,children:r}=t,s=function(t){var e,r;let[i,s]=n.useState(),l=n.useRef({}),h=n.useRef(t),u=n.useRef("none"),[c,f]=(e=t?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((t,e)=>{let n=r[t][e];return null!=n?n:t},e));return n.useEffect(()=>{let t=a(l.current);u.current="mounted"===c?t:"none"},[c]),(0,o.N)(()=>{let e=l.current,r=h.current;if(r!==t){let n=u.current,i=a(e);t?f("MOUNT"):"none"===i||(null==e?void 0:e.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),h.current=t}},[t,f]),(0,o.N)(()=>{if(i){var t;let e,r=null!=(t=i.ownerDocument.defaultView)?t:window,n=t=>{let n=a(l.current).includes(t.animationName);if(t.target===i&&n&&(f("ANIMATION_END"),!h.current)){let t=i.style.animationFillMode;i.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=t)})}},o=t=>{t.target===i&&(u.current=a(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(e),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(t=>{t&&(l.current=getComputedStyle(t)),s(t)},[])}}(e),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),h=(0,i.s)(s.ref,function(t){var e,r;let n=null==(e=Object.getOwnPropertyDescriptor(t.props,"ref"))?void 0:e.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?t.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(t,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref}(l));return"function"==typeof r||s.isPresent?n.cloneElement(l,{ref:h}):null};function a(t){return(null==t?void 0:t.animationName)||"none"}s.displayName="Presence"},78625:(t,e,r)=>{"use strict";r.d(e,{N:()=>c});var n=r(12115),i=r(3468),o=r(94446),s=r(95155),a=n.forwardRef((t,e)=>{let{children:r,...i}=t,o=n.Children.toArray(r),a=o.find(u);if(a){let t=a.props.children,r=o.map(e=>e!==a?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(l,{...i,ref:e,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,s.jsx)(l,{...i,ref:e,children:r})});a.displayName="Slot";var l=n.forwardRef((t,e)=>{let{children:r,...i}=t;if(n.isValidElement(r)){let t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(r=(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?t.props.ref:t.props.ref||t.ref}(r),s=function(t,e){let r={...e};for(let n in e){let i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...t)=>{o(...t),i(...t)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}(i,r.props);return r.type!==n.Fragment&&(s.ref=e?(0,o.t)(e,t):t),n.cloneElement(r,s)}return n.Children.count(r)>1?n.Children.only(null):null});l.displayName="SlotClone";var h=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});function u(t){return n.isValidElement(t)&&t.type===h}function c(t){let e=t+"CollectionProvider",[r,l]=(0,i.A)(e),[h,u]=r(e,{collectionRef:{current:null},itemMap:new Map}),c=t=>{let{scope:e,children:r}=t,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(h,{scope:e,itemMap:o,collectionRef:i,children:r})};c.displayName=e;let f=t+"CollectionSlot",d=n.forwardRef((t,e)=>{let{scope:r,children:n}=t,i=u(f,r),l=(0,o.s)(e,i.collectionRef);return(0,s.jsx)(a,{ref:l,children:n})});d.displayName=f;let p=t+"CollectionItemSlot",g="data-radix-collection-item",y=n.forwardRef((t,e)=>{let{scope:r,children:i,...l}=t,h=n.useRef(null),c=(0,o.s)(e,h),f=u(p,r);return n.useEffect(()=>(f.itemMap.set(h,{ref:h,...l}),()=>void f.itemMap.delete(h))),(0,s.jsx)(a,{...{[g]:""},ref:c,children:i})});return y.displayName=p,[{Provider:c,Slot:d,ItemSlot:y},function(e){let r=u(t+"CollectionConsumer",e);return n.useCallback(()=>{let t=r.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((t,r)=>e.indexOf(t.ref.current)-e.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},81029:(t,e,r)=>{"use strict";var n=r(51746),i=r(55459),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),l=s(o),h=l.write(n,i);return h!==o&&(l=l.slice(0,h)),l}if(ArrayBuffer.isView(t)){var u=t;if(_(u,Uint8Array)){var g=new Uint8Array(u);return f(g.buffer,g.byteOffset,g.byteLength)}return c(u)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(_(t,SharedArrayBuffer)||t&&_(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var y=t.valueOf&&t.valueOf();if(null!=y&&y!==t)return a.from(y,e,r);var b=function(t){if(a.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(b)return b;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return h(t),s(t<0?0:0|d(t))}function c(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||_(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(t).length;default:if(i)return n?-1:I(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,s=1,a=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,l/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=r;oa&&(r=a-l),o=r;o>=0;o--){for(var c=!0,f=0;f239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:(192&(o=t[i+1]))==128&&(l=(31&h)<<6|63&o)>127&&(u=l);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(l=(15&h)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=c}var f=n,d=f.length;if(d<=4096)return String.fromCharCode.apply(String,f);for(var p="",g=0;gr)throw RangeError("Trying to access beyond buffer length")}function x(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function E(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function C(t,e,r,n,o){return e*=1,r>>>=0,o||E(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function A(t,e,r,n,o){return e*=1,r>>>=0,o||E(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.hp=a,e.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(h(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return u(t)},a.allocUnsafeSlow=function(t){return u(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(_(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),_(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);in.length?a.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(a.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(_(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,l=Math.min(o,s),h=this.slice(n,i),u=t.slice(e,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,h,u,c,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(t,this.length-u),this,u,c);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>>=0,!n){var i=Math.pow(2,8*r-1);x(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return A(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return A(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function _(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var j=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},83101:(t,e,r)=>{"use strict";r.d(e,{F:()=>s});var n=r(2821);let i=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,o=n.$,s=(t,e)=>r=>{var n;if((null==e?void 0:e.variants)==null)return o(t,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=e,l=Object.keys(s).map(t=>{let e=null==r?void 0:r[t],n=null==a?void 0:a[t];if(null===e)return null;let o=i(e)||i(n);return s[t][o]}),h=r&&Object.entries(r).reduce((t,e)=>{let[r,n]=e;return void 0===n||(t[r]=n),t},{});return o(t,l,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:r,className:n,...i}=e;return Object.entries(i).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...a,...h}[e]):({...a,...h})[e]===r})?[...t,r,n]:t},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},88142:(t,e,r)=>{"use strict";r.d(e,{sG:()=>c,hO:()=>f});var n=r(12115),i=r(47650),o=r(94446),s=r(95155),a=n.forwardRef((t,e)=>{let{children:r,...i}=t,o=n.Children.toArray(r),a=o.find(u);if(a){let t=a.props.children,r=o.map(e=>e!==a?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(l,{...i,ref:e,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,s.jsx)(l,{...i,ref:e,children:r})});a.displayName="Slot";var l=n.forwardRef((t,e)=>{let{children:r,...i}=t;if(n.isValidElement(r)){let t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(r=(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?t.props.ref:t.props.ref||t.ref}(r),s=function(t,e){let r={...e};for(let n in e){let i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...t)=>{o(...t),i(...t)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}(i,r.props);return r.type!==n.Fragment&&(s.ref=e?(0,o.t)(e,t):t),n.cloneElement(r,s)}return n.Children.count(r)>1?n.Children.only(null):null});l.displayName="SlotClone";var h=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});function u(t){return n.isValidElement(t)&&t.type===h}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let r=n.forwardRef((t,r)=>{let{asChild:n,...i}=t,o=n?a:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function f(t,e){t&&i.flushSync(()=>t.dispatchEvent(e))}},90916:(t,e,r)=>{"use strict";r.d(e,{VV:()=>i,jz:()=>n});var n,i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};(function(){function t(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.B=Array(this.blockSize),this.o=this.h=0,this.s()}var e=function(){this.blockSize=-1};function r(){}function o(t,e,r){r||(r=0);var n=Array(16);if("string"==typeof e)for(var i=0;16>i;++i)n[i]=e.charCodeAt(r++)|e.charCodeAt(r++)<<8|e.charCodeAt(r++)<<16|e.charCodeAt(r++)<<24;else for(i=0;16>i;++i)n[i]=e[r++]|e[r++]<<8|e[r++]<<16|e[r++]<<24;e=t.g[0],r=t.g[1],i=t.g[2];var o=t.g[3],s=e+(o^r&(i^o))+n[0]+0xd76aa478|0;s=o+(i^(e=r+(s<<7|s>>>25))&(r^i))+n[1]+0xe8c7b756|0,s=i+(r^(o=e+(s<<12|s>>>20))&(e^r))+n[2]+0x242070db|0,s=r+(e^(i=o+(s<<17|s>>>15))&(o^e))+n[3]+0xc1bdceee|0,s=e+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[4]+0xf57c0faf|0,s=o+(i^(e=r+(s<<7|s>>>25))&(r^i))+n[5]+0x4787c62a|0,s=i+(r^(o=e+(s<<12|s>>>20))&(e^r))+n[6]+0xa8304613|0,s=r+(e^(i=o+(s<<17|s>>>15))&(o^e))+n[7]+0xfd469501|0,s=e+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[8]+0x698098d8|0,s=o+(i^(e=r+(s<<7|s>>>25))&(r^i))+n[9]+0x8b44f7af|0,s=i+(r^(o=e+(s<<12|s>>>20))&(e^r))+n[10]+0xffff5bb1|0,s=r+(e^(i=o+(s<<17|s>>>15))&(o^e))+n[11]+0x895cd7be|0,s=e+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[12]+0x6b901122|0,s=o+(i^(e=r+(s<<7|s>>>25))&(r^i))+n[13]+0xfd987193|0,s=i+(r^(o=e+(s<<12|s>>>20))&(e^r))+n[14]+0xa679438e|0,s=r+(e^(i=o+(s<<17|s>>>15))&(o^e))+n[15]+0x49b40821|0,r=i+(s<<22|s>>>10),s=e+(i^o&(r^i))+n[1]+0xf61e2562|0,e=r+(s<<5|s>>>27),s=o+(r^i&(e^r))+n[6]+0xc040b340|0,o=e+(s<<9|s>>>23),s=i+(e^r&(o^e))+n[11]+0x265e5a51|0,i=o+(s<<14|s>>>18),s=r+(o^e&(i^o))+n[0]+0xe9b6c7aa|0,r=i+(s<<20|s>>>12),s=e+(i^o&(r^i))+n[5]+0xd62f105d|0,e=r+(s<<5|s>>>27),s=o+(r^i&(e^r))+n[10]+0x2441453|0,o=e+(s<<9|s>>>23),s=i+(e^r&(o^e))+n[15]+0xd8a1e681|0,i=o+(s<<14|s>>>18),s=r+(o^e&(i^o))+n[4]+0xe7d3fbc8|0,r=i+(s<<20|s>>>12),s=e+(i^o&(r^i))+n[9]+0x21e1cde6|0,e=r+(s<<5|s>>>27),s=o+(r^i&(e^r))+n[14]+0xc33707d6|0,o=e+(s<<9|s>>>23),s=i+(e^r&(o^e))+n[3]+0xf4d50d87|0,i=o+(s<<14|s>>>18),s=r+(o^e&(i^o))+n[8]+0x455a14ed|0,r=i+(s<<20|s>>>12),s=e+(i^o&(r^i))+n[13]+0xa9e3e905|0,e=r+(s<<5|s>>>27),s=o+(r^i&(e^r))+n[2]+0xfcefa3f8|0,o=e+(s<<9|s>>>23),s=i+(e^r&(o^e))+n[7]+0x676f02d9|0,i=o+(s<<14|s>>>18),s=r+(o^e&(i^o))+n[12]+0x8d2a4c8a|0,s=e+((r=i+(s<<20|s>>>12))^i^o)+n[5]+0xfffa3942|0,s=o+((e=r+(s<<4|s>>>28))^r^i)+n[8]+0x8771f681|0,s=i+((o=e+(s<<11|s>>>21))^e^r)+n[11]+0x6d9d6122|0,s=r+((i=o+(s<<16|s>>>16))^o^e)+n[14]+0xfde5380c|0,s=e+((r=i+(s<<23|s>>>9))^i^o)+n[1]+0xa4beea44|0,s=o+((e=r+(s<<4|s>>>28))^r^i)+n[4]+0x4bdecfa9|0,s=i+((o=e+(s<<11|s>>>21))^e^r)+n[7]+0xf6bb4b60|0,s=r+((i=o+(s<<16|s>>>16))^o^e)+n[10]+0xbebfbc70|0,s=e+((r=i+(s<<23|s>>>9))^i^o)+n[13]+0x289b7ec6|0,s=o+((e=r+(s<<4|s>>>28))^r^i)+n[0]+0xeaa127fa|0,s=i+((o=e+(s<<11|s>>>21))^e^r)+n[3]+0xd4ef3085|0,s=r+((i=o+(s<<16|s>>>16))^o^e)+n[6]+0x4881d05|0,s=e+((r=i+(s<<23|s>>>9))^i^o)+n[9]+0xd9d4d039|0,s=o+((e=r+(s<<4|s>>>28))^r^i)+n[12]+0xe6db99e5|0,s=i+((o=e+(s<<11|s>>>21))^e^r)+n[15]+0x1fa27cf8|0,s=r+((i=o+(s<<16|s>>>16))^o^e)+n[2]+0xc4ac5665|0,r=i+(s<<23|s>>>9),s=e+(i^(r|~o))+n[0]+0xf4292244|0,e=r+(s<<6|s>>>26),s=o+(r^(e|~i))+n[7]+0x432aff97|0,o=e+(s<<10|s>>>22),s=i+(e^(o|~r))+n[14]+0xab9423a7|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~e))+n[5]+0xfc93a039|0,r=i+(s<<21|s>>>11),s=e+(i^(r|~o))+n[12]+0x655b59c3|0,e=r+(s<<6|s>>>26),s=o+(r^(e|~i))+n[3]+0x8f0ccc92|0,o=e+(s<<10|s>>>22),s=i+(e^(o|~r))+n[10]+0xffeff47d|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~e))+n[1]+0x85845dd1|0,r=i+(s<<21|s>>>11),s=e+(i^(r|~o))+n[8]+0x6fa87e4f|0,e=r+(s<<6|s>>>26),s=o+(r^(e|~i))+n[15]+0xfe2ce6e0|0,o=e+(s<<10|s>>>22),s=i+(e^(o|~r))+n[6]+0xa3014314|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~e))+n[13]+0x4e0811a1|0,r=i+(s<<21|s>>>11),s=e+(i^(r|~o))+n[4]+0xf7537e82|0,e=r+(s<<6|s>>>26),s=o+(r^(e|~i))+n[11]+0xbd3af235|0,o=e+(s<<10|s>>>22),s=i+(e^(o|~r))+n[2]+0x2ad7d2bb|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~e))+n[9]+0xeb86d391|0,t.g[0]=t.g[0]+e|0,t.g[1]=t.g[1]+(i+(s<<21|s>>>11))|0,t.g[2]=t.g[2]+i|0,t.g[3]=t.g[3]+o|0}function a(t,e){this.h=e;for(var r=[],n=!0,i=t.length-1;0<=i;i--){var o=0|t[i];n&&o==e||(r[i]=o,n=!1)}this.g=r}r.prototype=e.prototype,t.D=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.C=function(t,r,n){for(var i=Array(arguments.length-2),o=2;othis.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;ee;++e)for(var n=0;32>n;n+=8)t[r++]=this.g[e]>>>n&255;return t};var l,h={};function u(t){var e;return -128<=t&&128>t?(e=function(t){return new a([0|t],0>t?-1:0)},Object.prototype.hasOwnProperty.call(h,t)?h[t]:h[t]=e(t)):new a([0|t],0>t?-1:0)}function c(t){if(isNaN(t)||!isFinite(t))return f;if(0>t)return b(c(-t));for(var e=[],r=1,n=0;t>=r;n++)e[n]=t/r|0,r*=0x100000000;return new a(e,0)}var f=u(0),d=u(1),p=u(0x1000000);function g(t){if(0!=t.h)return!1;for(var e=0;e>>16,t[e]&=65535,e++}function w(t,e){this.g=t,this.h=e}function x(t,e){if(g(e))throw Error("division by zero");if(g(t))return new w(f,f);if(y(t))return e=x(b(t),e),new w(b(e.g),b(e.h));if(y(e))return e=x(t,b(e)),new w(b(e.g),e.h);if(30=n.l(t);)r=E(r),n=E(n);var i=C(r,1),o=C(n,1);for(n=C(n,2),r=C(r,2);!g(n);){var s=o.add(n);0>=s.l(t)&&(i=i.add(r),o=s),n=C(n,1),r=C(r,1)}return e=m(t,i.j(e)),new w(i,e)}for(i=f;0<=t.l(e);){for(n=48>=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(t.m()/e.m())))/Math.LN2))?1:Math.pow(2,n-48),s=(o=c(r)).j(e);y(s)||0>>31;return new a(r,t.h)}function C(t,e){var r=e>>5;e%=32;for(var n=t.g.length-r,i=[],o=0;o>>e|t.i(o+r+1)<<32-e:t.i(o+r);return new a(i,t.h)}(l=a.prototype).m=function(){if(y(this))return-b(this).m();for(var t=0,e=1,r=0;r(t=t||10)||36>>0).toString(t);if(g(r=i))return o+n;for(;6>o.length;)o="0"+o;n=o+n}},l.i=function(t){return 0>t?0:t>>16)+(this.i(i)>>>16)+(t.i(i)>>>16);n=s>>>16,o&=65535,s&=65535,r[i]=s<<16|o}return new a(r,-0x80000000&r[r.length-1]?-1:0)},l.j=function(t){if(g(this)||g(t))return f;if(y(this))return y(t)?b(this).j(b(t)):b(b(this).j(t));if(y(t))return b(this.j(b(t)));if(0>this.l(p)&&0>t.l(p))return c(this.m()*t.m());for(var e=this.g.length+t.g.length,r=[],n=0;n<2*e;n++)r[n]=0;for(n=0;n>>16,s=65535&this.i(n),l=t.i(i)>>>16,h=65535&t.i(i);r[2*n+2*i]+=s*h,v(r,2*n+2*i),r[2*n+2*i+1]+=o*h,v(r,2*n+2*i+1),r[2*n+2*i+1]+=s*l,v(r,2*n+2*i+1),r[2*n+2*i+2]+=o*l,v(r,2*n+2*i+2)}for(n=0;n(r=r||10)||36s?(s=c(Math.pow(r,s)),i=i.j(s).add(c(a))):i=(i=i.j(n)).add(c(a))}return i},n=s.Integer=a}).apply(void 0!==o?o:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},91398:(t,e,r)=>{"use strict";let n,i;r.d(e,{MF:()=>D,j6:()=>k,xZ:()=>M,om:()=>j,Sx:()=>L,Dk:()=>P,Wp:()=>N,KO:()=>U});var o=r(22396),s=r(5969),a=r(57176);let l=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,f=new WeakMap,d={get(t,e,r){if(t instanceof IDBTransaction){if("done"===e)return h.get(t);if("objectStoreNames"===e)return t.objectStoreNames||u.get(t);if("store"===e)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return p(t[e])},set:(t,e,r)=>(t[e]=r,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function p(t){if(t instanceof IDBRequest){let e=new Promise((e,r)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{e(p(t.result)),n()},o=()=>{r(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(e=>{e instanceof IDBCursor&&l.set(e,t)}).catch(()=>{}),f.set(e,t),e}if(c.has(t))return c.get(t);let e=function(t){if("function"==typeof t)return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(g(this),e),p(l.get(this))}:function(...e){return p(t.apply(g(this),e))}:function(e,...r){let n=t.call(g(this),e,...r);return u.set(n,e.sort?e.sort():[e]),p(n)};return t instanceof IDBTransaction&&function(t){if(h.has(t))return;let e=new Promise((e,r)=>{let n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{e(),n()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});h.set(t,e)}(t),(n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(t,d):t}(t);return e!==t&&(c.set(t,e),f.set(e,t)),e}let g=t=>f.get(t),y=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],m=new Map;function v(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&"string"==typeof e))return;if(m.get(e))return m.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,i=b.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||y.includes(r)))return;let o=async function(t,...e){let o=this.transaction(t,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(e.shift())),(await Promise.all([s[r](...e),i&&o.done]))[0]};return m.set(e,o),o}d=(t=>({...t,get:(e,r,n)=>v(e,r)||t.get(e,r,n),has:(e,r)=>!!v(e,r)||t.has(e,r)}))(d);class w{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(!function(t){let e=t.getComponent();return(null==e?void 0:e.type)==="VERSION"}(t))return null;{let e=t.getImmediate();return`${e.library}/${e.version}`}}).filter(t=>t).join(" ")}}let x="@firebase/app",E="0.13.1",C=new s.Vy("@firebase/app"),A="[DEFAULT]",S={[x]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},I=new Map,T=new Map,O=new Map;function _(t,e){try{t.container.addComponent(e)}catch(r){C.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,r)}}function j(t){let e=t.name;if(O.has(e))return C.debug(`There were multiple attempts to register component ${e}.`),!1;for(let r of(O.set(e,t),I.values()))_(r,t);for(let e of T.values())_(e,t);return!0}function k(t,e){let r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(e)}function M(t){return null!=t&&void 0!==t.settings}let B=new a.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class R{constructor(t,e,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new o.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw B.create("app-deleted",{appName:this._name})}}let D="11.9.0";function N(t,e={}){let r=t;"object"!=typeof e&&(e={name:e});let n=Object.assign({name:A,automaticDataCollectionEnabled:!0},e),i=n.name;if("string"!=typeof i||!i)throw B.create("bad-app-name",{appName:String(i)});if(r||(r=(0,a.T9)()),!r)throw B.create("no-options");let s=I.get(i);if(s)if((0,a.bD)(r,s.options)&&(0,a.bD)(n,s.config))return s;else throw B.create("duplicate-app",{appName:i});let l=new o.h1(i);for(let t of O.values())l.addComponent(t);let h=new R(r,n,l);return I.set(i,h),h}function L(t=A){let e=I.get(t);if(!e&&t===A&&(0,a.T9)())return N();if(!e)throw B.create("no-app",{appName:t});return e}function P(){return Array.from(I.values())}function U(t,e,r){var n;let i=null!=(n=S[t])?n:t;r&&(i+=`-${r}`);let s=i.match(/\s|\//),a=e.match(/\s|\//);if(s||a){let t=[`Unable to register library "${i}" with version "${e}":`];s&&t.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&a&&t.push("and"),a&&t.push(`version name "${e}" contains illegal characters (whitespace or "/")`),C.warn(t.join(" "));return}j(new o.uA(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}let z="firebase-heartbeat-store",H=null;function F(){return H||(H=(function(t,e,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(t,1),a=p(s);return n&&s.addEventListener("upgradeneeded",t=>{n(p(s.result),t.oldVersion,t.newVersion,p(s.transaction),t)}),r&&s.addEventListener("blocked",t=>r(t.oldVersion,t.newVersion,t)),a.then(t=>{o&&t.addEventListener("close",()=>o()),i&&t.addEventListener("versionchange",t=>i(t.oldVersion,t.newVersion,t))}).catch(()=>{}),a})("firebase-heartbeat-database",0,{upgrade:(t,e)=>{if(0===e)try{t.createObjectStore(z)}catch(t){console.warn(t)}}}).catch(t=>{throw B.create("idb-open",{originalErrorMessage:t.message})})),H}async function $(t){try{let e=(await F()).transaction(z),r=await e.objectStore(z).get(V(t));return await e.done,r}catch(t){if(t instanceof a.g)C.warn(t.message);else{let e=B.create("idb-get",{originalErrorMessage:null==t?void 0:t.message});C.warn(e.message)}}}async function W(t,e){try{let r=(await F()).transaction(z,"readwrite"),n=r.objectStore(z);await n.put(e,V(t)),await r.done}catch(t){if(t instanceof a.g)C.warn(t.message);else{let e=B.create("idb-set",{originalErrorMessage:null==t?void 0:t.message});C.warn(e.message)}}}function V(t){return`${t.name}!${t.options.appId}`}class X{constructor(t){this.container=t,this._heartbeatsCache=null;let e=this.container.getProvider("app").getImmediate();this._storage=new J(e),this._heartbeatsCachePromise=this._storage.read().then(t=>(this._heartbeatsCache=t,t))}async triggerHeartbeat(){var t,e;try{let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=G();if((null==(t=this._heartbeatsCache)?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(t=>t.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){let t=function(t){if(0===t.length)return -1;let e=0,r=t[0].date;for(let n=1;nt.agent===i.agent);if(t){if(t.dates.push(i.date),K(r)>e){t.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),K(r)>e){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=(0,a.Uj)(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(t){return C.warn(t),""}}}function G(){return new Date().toISOString().substring(0,10)}class J{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let t=await $(this.app);return(null==t?void 0:t.heartbeats)?t:{heartbeats:[]}}}async overwrite(t){var e;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!=(e=t.lastSentHeartbeatDate)?e:r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}}async add(t){var e;if(await this._canUseIndexedDBPromise){let r=await this.read();return W(this.app,{lastSentHeartbeatDate:null!=(e=t.lastSentHeartbeatDate)?e:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}}}function K(t){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:t})).length}j(new o.uA("platform-logger",t=>new w(t),"PRIVATE")),j(new o.uA("heartbeat",t=>new X(t),"PRIVATE")),U(x,E,""),U(x,E,"esm2017"),U("fire-js","")},92556:(t,e,r)=>{"use strict";function n(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),!1===r||!n.defaultPrevented)return e?.(n)}}r.d(e,{m:()=>n})},94446:(t,e,r)=>{"use strict";r.d(e,{s:()=>s,t:()=>o});var n=r(12115);function i(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function o(...t){return e=>{let r=!1,n=t.map(t=>{let n=i(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e{t.d(r,{b:()=>l});var a=t(12115),n=t(88142),o=t(95155),i=a.forwardRef((e,r)=>(0,o.jsx)(n.sG.label,{...e,ref:r,onMouseDown:r=>{var t;r.target.closest("button, input, select, textarea")||(null==(t=e.onMouseDown)||t.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));i.displayName="Label";var l=i},20063:(e,r,t)=>{var a=t(47260);t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},59007:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(14294).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},73180:(e,r,t)=>{t.d(r,{A:()=>a});let a=(0,t(14294).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},86374:(e,r,t)=>{t.d(r,{UC:()=>ei,Y9:()=>en,q7:()=>ea,bL:()=>et,l9:()=>eo});var a=t(12115),n=t(3468),o=t(78625),i=t(94446),l=t(92556),s=t(23558),d=t(88142),c=t(4129),u=t(76842),p=t(68946),f=t(95155),h="Collapsible",[v,b]=(0,n.A)(h),[m,x]=v(h),w=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u=!1,h]=(0,s.i)({prop:n,defaultProp:o,onChange:l});return(0,f.jsx)(m,{scope:t,disabled:i,contentId:(0,p.B)(),open:u,onOpenToggle:a.useCallback(()=>h(e=>!e),[h]),children:(0,f.jsx)(d.sG.div,{"data-state":R(u),"data-disabled":i?"":void 0,...c,ref:r})})});w.displayName=h;var g="CollapsibleTrigger",y=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,...a}=e,n=x(g,t);return(0,f.jsx)(d.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":R(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...a,ref:r,onClick:(0,l.m)(e.onClick,n.onOpenToggle)})});y.displayName=g;var j="CollapsibleContent",A=a.forwardRef((e,r)=>{let{forceMount:t,...a}=e,n=x(j,e.__scopeCollapsible);return(0,f.jsx)(u.C,{present:t||n.open,children:e=>{let{present:t}=e;return(0,f.jsx)(C,{...a,ref:r,present:t})}})});A.displayName=j;var C=a.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:n,children:o,...l}=e,s=x(j,t),[u,p]=a.useState(n),h=a.useRef(null),v=(0,i.s)(r,h),b=a.useRef(0),m=b.current,w=a.useRef(0),g=w.current,y=s.open||u,A=a.useRef(y),C=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=h.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();b.current=r.height,w.current=r.width,A.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(n)}},[s.open,n]),(0,f.jsx)(d.sG.div,{"data-state":R(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...l,ref:v,style:{"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":g?"".concat(g,"px"):void 0,...e.style},children:y&&o})});function R(e){return e?"open":"closed"}var k=t(66218),N="Accordion",_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[D,I,P]=(0,o.N)(N),[S,G]=(0,n.A)(N,[P,b]),H=b(),O=a.forwardRef((e,r)=>{let{type:t,...a}=e;return(0,f.jsx)(D.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,f.jsx)(z,{...a,ref:r}):(0,f.jsx)(q,{...a,ref:r})})});O.displayName=N;var[E,M]=S(N),[L,T]=S(N,{collapsible:!1}),q=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[d,c]=(0,s.i)({prop:t,defaultProp:n,onChange:o});return(0,f.jsx)(E,{scope:e.__scopeAccordion,value:d?[d]:[],onItemOpen:c,onItemClose:a.useCallback(()=>i&&c(""),[i,c]),children:(0,f.jsx)(L,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(F,{...l,ref:r})})})}),z=a.forwardRef((e,r)=>{let{value:t,defaultValue:n,onValueChange:o=()=>{},...i}=e,[l=[],d]=(0,s.i)({prop:t,defaultProp:n,onChange:o}),c=a.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[d]),u=a.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[d]);return(0,f.jsx)(E,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:(0,f.jsx)(L,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(F,{...i,ref:r})})})}),[B,U]=S(N),F=a.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:n,dir:o,orientation:s="vertical",...c}=e,u=a.useRef(null),p=(0,i.s)(u,r),h=I(t),v="ltr"===(0,k.jH)(o),b=(0,l.m)(e.onKeyDown,e=>{var r;if(!_.includes(e.key))return;let t=e.target,a=h().filter(e=>{var r;return!(null==(r=e.ref.current)?void 0:r.disabled)}),n=a.findIndex(e=>e.ref.current===t),o=a.length;if(-1===n)return;e.preventDefault();let i=n,l=o-1,d=()=>{(i=n+1)>l&&(i=0)},c=()=>{(i=n-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===s&&(v?d():c());break;case"ArrowDown":"vertical"===s&&d();break;case"ArrowLeft":"horizontal"===s&&(v?c():d());break;case"ArrowUp":"vertical"===s&&c()}null==(r=a[i%o].ref.current)||r.focus()});return(0,f.jsx)(B,{scope:t,disabled:n,direction:o,orientation:s,children:(0,f.jsx)(D.Slot,{scope:t,children:(0,f.jsx)(d.sG.div,{...c,"data-orientation":s,ref:p,onKeyDown:n?void 0:b})})})}),K="AccordionItem",[V,Y]=S(K),J=a.forwardRef((e,r)=>{let{__scopeAccordion:t,value:a,...n}=e,o=U(K,t),i=M(K,t),l=H(t),s=(0,p.B)(),d=a&&i.value.includes(a)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(V,{scope:t,open:d,disabled:c,triggerId:s,children:(0,f.jsx)(w,{"data-orientation":o.orientation,"data-state":er(d),...l,...n,ref:r,disabled:c,open:d,onOpenChange:e=>{e?i.onItemOpen(a):i.onItemClose(a)}})})});J.displayName=K;var Q="AccordionHeader",W=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=U(N,t),o=Y(Q,t);return(0,f.jsx)(d.sG.h3,{"data-orientation":n.orientation,"data-state":er(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:r})});W.displayName=Q;var X="AccordionTrigger",Z=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=U(N,t),o=Y(X,t),i=T(X,t),l=H(t);return(0,f.jsx)(D.ItemSlot,{scope:t,children:(0,f.jsx)(y,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...l,...a,ref:r})})});Z.displayName=X;var $="AccordionContent",ee=a.forwardRef((e,r)=>{let{__scopeAccordion:t,...a}=e,n=U(N,t),o=Y($,t),i=H(t);return(0,f.jsx)(A,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...i,...a,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=$;var et=O,ea=J,en=W,eo=Z,ei=ee}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/886-3ce1c8b74538a648.js b/adl-server/src/main/resources/static/_next/static/chunks/886-3ce1c8b74538a648.js new file mode 100644 index 00000000..9384861d --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/886-3ce1c8b74538a648.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[886],{16146:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},56745:(e,t,n)=>{let r;n.d(t,{TW:()=>ez,YZ:()=>ey,Zk:()=>h});var l,a=n(12115);let i=(0,a.createContext)(null);i.displayName="PanelGroupContext";let o={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},u=a.useLayoutEffect,s=(l||(l=n.t(a,2)))["useId".toString()],c="function"==typeof s?s:()=>null,d=0;function f(e=null){let t=c(),n=(0,a.useRef)(e||t||null);return null===n.current&&(n.current=""+d++),null!=e?e:n.current}function p({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:l,forwardedRef:s,id:c,maxSize:d,minSize:p,onCollapse:h,onExpand:m,onResize:g,order:y,style:v,tagName:b="div",...z}){let x=(0,a.useContext)(i);if(null===x)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:w,expandPanel:k,getPanelSize:E,getPanelStyle:C,groupId:I,isPanelCollapsed:S,reevaluatePanelConstraints:A,registerPanel:P,resizePanel:$,unregisterPanel:N}=x,R=f(c),M=(0,a.useRef)({callbacks:{onCollapse:h,onExpand:m,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:l,maxSize:d,minSize:p},id:R,idIsFromProps:void 0!==c,order:y});(0,a.useRef)({didLogMissingDefaultSizeWarning:!1}),u(()=>{let{callbacks:e,constraints:t}=M.current,a={...t};M.current.id=R,M.current.idIsFromProps=void 0!==c,M.current.order=y,e.onCollapse=h,e.onExpand=m,e.onResize=g,t.collapsedSize=n,t.collapsible=r,t.defaultSize=l,t.maxSize=d,t.minSize=p,(a.collapsedSize!==t.collapsedSize||a.collapsible!==t.collapsible||a.maxSize!==t.maxSize||a.minSize!==t.minSize)&&A(M.current,a)}),u(()=>{let e=M.current;return P(e),()=>{N(e)}},[y,R,P,N]),(0,a.useImperativeHandle)(s,()=>({collapse:()=>{w(M.current)},expand:e=>{k(M.current,e)},getId:()=>R,getSize:()=>E(M.current),isCollapsed:()=>S(M.current),isExpanded:()=>!S(M.current),resize:e=>{$(M.current,e)}}),[w,k,E,S,R,$]);let L=C(M.current,l);return(0,a.createElement)(b,{...z,children:e,className:t,id:R,style:{...L,...v},[o.groupId]:I,[o.panel]:"",[o.panelCollapsible]:r||void 0,[o.panelId]:R,[o.panelSize]:parseFloat(""+L.flexGrow).toFixed(1)})}let h=(0,a.forwardRef)((e,t)=>(0,a.createElement)(p,{...e,forwardedRef:t}));p.displayName="Panel",h.displayName="forwardRef(Panel)";let m=null,g=-1,y=null;function v(e,t){var n,l,a;let i=function(e,t){if(t){let e=(t&A)!=0,n=(t&P)!=0,r=(t&$)!=0,l=(t&N)!=0;if(e)if(r)return"se-resize";else if(l)return"ne-resize";else return"e-resize";if(n)if(r)return"sw-resize";else if(l)return"nw-resize";else return"w-resize";if(r)return"s-resize";else if(l)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);m!==i&&(m=i,null===y&&(y=document.createElement("style"),r&&y.setAttribute("nonce",r),document.head.appendChild(y)),g>=0&&(null==(a=y.sheet)||a.removeRule(g)),g=null!=(n=null==(l=y.sheet)?void 0:l.insertRule(`*{cursor: ${i} !important;}`))?n:-1)}function b(e){return"keydown"===e.type}function z(e){return e.type.startsWith("pointer")}function x(e){return e.type.startsWith("mouse")}function w(e){if(z(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(x(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let k=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function E(e){let t=e.length;for(;t--;){let n=e[t];if(U(n,"Missing node"),function(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||function(e){var t;let n=getComputedStyle(null!=(t=S(e))?t:e).display;return"flex"===n||"inline-flex"===n}(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||k.test(t.willChange))||"touch"===t.webkitOverflowScrolling}(n))return n}return null}function C(e){return e&&Number(getComputedStyle(e).zIndex)||0}function I(e){let t=[];for(;e;)t.push(e),e=S(e);return t}function S(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let A=1,P=2,$=4,N=8,R="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),M=[],L=!1,D=new Map,H=new Map,F=new Set;function G(e){let{target:t}=e,{x:n,y:r}=w(e);L=!0,B({target:t,x:n,y:r}),_(),M.length>0&&(q("down",e),e.preventDefault(),j(t)||e.stopImmediatePropagation())}function O(e){let{x:t,y:n}=w(e);if(L&&0===e.buttons&&(L=!1,q("up",e)),!L){let{target:r}=e;B({target:r,x:t,y:n})}q("move",e),W(),M.length>0&&e.preventDefault()}function T(e){let{target:t}=e,{x:n,y:r}=w(e);H.clear(),L=!1,M.length>0&&(e.preventDefault(),j(t)||e.stopImmediatePropagation()),q("up",e),B({target:t,x:n,y:r}),W(),_()}function j(e){let t=e;for(;t;){if(t.hasAttribute(o.resizeHandle))return!0;t=t.parentElement}return!1}function B({target:e,x:t,y:n}){M.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),F.forEach(e=>{let{element:l,hitAreaMargins:a}=e,i=l.getBoundingClientRect(),{bottom:o,left:u,right:s,top:c}=i,d=R?a.coarse:a.fine;if(t>=u-d&&t<=s+d&&n>=c-d&&n<=o+d){if(null!==r&&document.contains(r)&&l!==r&&!l.contains(r)&&!r.contains(l)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:I(e),b:I(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;U(n,"Stacking order can only be calculated for elements with a common ancestor");let l={a:C(E(r.a)),b:C(E(r.b))};if(l.a===l.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},l=e.length;for(;l--;){let n=e[l];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(l.a-l.b)}(r,l)>0){let e=r,t=!1;for(;e;){var f;if(e.contains(l))break;if(f=e.getBoundingClientRect(),f.xi.x&&f.yi.y){t=!0;break}e=e.parentElement}if(t)return}M.push(e)}})}function W(){let e=!1,t=!1;M.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;H.forEach(e=>{n|=e}),e&&t?v("intersection",n):e?v("horizontal",n):t?v("vertical",n):null!==y&&(document.head.removeChild(y),m=null,y=null,g=-1)}let J=new AbortController;function _(){J.abort();let e={capture:!0,signal:(J=new AbortController).signal};F.size&&(L?(M.length>0&&D.forEach((t,n)=>{let{body:r}=n;t>0&&(r.addEventListener("contextmenu",T,e),r.addEventListener("pointerleave",O,e),r.addEventListener("pointermove",O,e))}),window.addEventListener("pointerup",T,e),window.addEventListener("pointercancel",T,e)):D.forEach((t,n)=>{let{body:r}=n;t>0&&(r.addEventListener("pointerdown",G,e),r.addEventListener("pointermove",O,e))}))}function q(e,t){F.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,M.includes(n),t)})}function U(e,t){if(!e)throw console.error(t),Error(t)}function V(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Y(e,t,n=10){return 0===V(e,t,n)}function K(e,t,n){return 0===V(e,t,n)}function X({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];U(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:a,maxSize:i=100,minSize:o=0}=r;return 0>V(n,o)&&(n=a&&0>V(n,(l+o)/2)?l:o),n=parseFloat((n=Math.min(i,n)).toFixed(10))}function Z({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:l,trigger:a}){if(K(e,0))return t;let i=[...t],[o,u]=r;U(null!=o,"Invalid first pivot index"),U(null!=u,"Invalid second pivot index");let s=0;if("keyboard"===a){{let r=e<0?u:o,l=n[r];U(l,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:i,minSize:s=0}=l;if(i){let n=t[r];if(U(null!=n,`Previous layout not found for panel index ${r}`),K(n,a)){let t=s-n;V(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?o:u,l=n[r];U(l,`No panel constraints found for index ${r}`);let{collapsedSize:a=0,collapsible:i,minSize:s=0}=l;if(i){let n=t[r];if(U(null!=n,`Previous layout not found for panel index ${r}`),K(n,s)){let t=n-a;V(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,l=e<0?u:o,a=0;for(;;){let e=t[l];if(U(null!=e,`Previous layout not found for panel index ${l}`),a+=X({panelConstraints:n,panelIndex:l,size:100})-e,(l+=r)<0||l>=n.length)break}let i=Math.min(Math.abs(e),Math.abs(a));e=e<0?0-i:i}{let r=e<0?o:u;for(;r>=0&&r=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n=0&&r0?r--:r++}}}return K(i.reduce((e,t)=>t+e,0),100)?i:l}function Q(e,t=document){return Array.from(t.querySelectorAll(`[${o.resizeHandleId}][data-panel-group-id="${e}"]`))}function ee(e,t,n=document){let r=Q(e,n).findIndex(e=>e.getAttribute(o.resizeHandleId)===t);return null!=r?r:null}function et(e,t,n){let r=ee(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function en(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null==(n=t.dataset)?void 0:n.panelGroupId)==e)return t;let r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function er(e,t=document){let n=t.querySelector(`[${o.resizeHandleId}="${e}"]`);return n||null}function el(e,t){if(e.length!==t.length)return!1;for(let n=0;n{let l=e[r];U(l,`Panel data not found for index ${r}`);let{callbacks:a,constraints:i,id:o}=l,{collapsedSize:u=0,collapsible:s}=i,c=n[o];if(null==c||t!==c){n[o]=t;let{onCollapse:e,onExpand:r,onResize:l}=a;l&&l(t,c),s&&(e||r)&&(r&&(null==c||Y(c,u))&&!Y(t,u)&&r(),e&&(null==c||!Y(c,u))&&Y(t,u)&&e())}})}function eo(e,t){if(e.length!==t.length)return!1;for(let n=0;nlocalStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function es(e){return`react-resizable-panels:${e}`}function ec(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:l}=e;return r?n:l?`${l}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ed(e,t){try{let n=es(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function ef(e,t,n,r,l){var a;let i=es(e),o=ec(t),u=null!=(a=ed(e,l))?a:{};u[o]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{l.setItem(i,JSON.stringify(u))}catch(e){console.error(e)}}function ep({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!K(r,100)&&n.length>0)for(let e=0;e(eu(eh),eh.getItem(e)),setItem:(e,t)=>{eu(eh),eh.setItem(e,t)}},em={};function eg({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:l,id:s=null,onLayout:c=null,keyboardResizeBy:d=null,storage:p=eh,style:h,tagName:m="div",...g}){let y=f(s),v=(0,a.useRef)(null),[w,k]=(0,a.useState)(null),[E,C]=(0,a.useState)([]),I=function(){let[e,t]=(0,a.useState)(0);return(0,a.useCallback)(()=>t(e=>e+1),[])}(),S=(0,a.useRef)({}),R=(0,a.useRef)(new Map),M=(0,a.useRef)(0),L=(0,a.useRef)({autoSaveId:e,direction:r,dragState:w,id:y,keyboardResizeBy:d,onLayout:c,storage:p}),D=(0,a.useRef)({layout:E,panelDataArray:[],panelDataArrayChanged:!1});(0,a.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,a.useImperativeHandle)(l,()=>({getId:()=>L.current.id,getLayout:()=>{let{layout:e}=D.current;return e},setLayout:e=>{let{onLayout:t}=L.current,{layout:n,panelDataArray:r}=D.current,l=ep({layout:e,panelConstraints:r.map(e=>e.constraints)});el(n,l)||(C(l),D.current.layout=l,t&&t(l),ei(r,l,S.current))}}),[]),u(()=>{L.current.autoSaveId=e,L.current.direction=r,L.current.dragState=w,L.current.id=y,L.current.onLayout=c,L.current.storage=p}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:l,panelGroupElement:i,setLayout:s}){(0,a.useRef)({didWarnAboutMissingResizeHandle:!1}),u(()=>{if(!i)return;let e=Q(n,i);for(let t=0;t{let{constraints:n}=e,{maxSize:u=100,minSize:s=0}=n;t===o?(r=s,l=u):(a+=s,i+=u)}),{valueMax:Math.min(l,100-a),valueMin:Math.max(r,100-i),valueNow:e[o]}}({layout:r,panelsArray:l,pivotIndices:[t,t+1]}),o=e[t];if(null==o);else{let e=l[t];U(e,`No panel data found for index "${t}"`),o.setAttribute("aria-controls",e.id),o.setAttribute("aria-valuemax",""+Math.round(n)),o.setAttribute("aria-valuemin",""+Math.round(a)),o.setAttribute("aria-valuenow",null!=i?""+Math.round(i):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,l,i]),(0,a.useEffect)(()=>{if(!i)return;let e=t.current;U(e,"Eager values not found");let{panelDataArray:l}=e;U(null!=en(n,i),`No group found for id "${n}"`);let a=Q(n,i);U(a,`No resize handles found for group id "${n}"`);let u=a.map(e=>{let t=e.getAttribute(o.resizeHandleId);U(t,"Resize handle element has no handle id attribute");let[a,u]=function(e,t,n,r=document){var l,a,i,o;let u=er(t,r),s=Q(e,r),c=u?s.indexOf(u):-1;return[null!=(l=null==(a=n[c])?void 0:a.id)?l:null,null!=(i=null==(o=n[c+1])?void 0:o.id)?i:null]}(n,t,l,i);if(null==a||null==u)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let o=l.findIndex(e=>e.id===a);if(o>=0){let e=l[o];U(e,`No panel data found for index ${o}`);let a=r[o],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=a&&c){let e=Z({delta:K(a,u)?d-u:u-a,initialLayout:r,panelConstraints:l.map(e=>e.constraints),pivotIndices:et(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&s(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{u.forEach(e=>e())}},[i,e,t,n,r,l,s])}({committedValuesRef:L,eagerValuesRef:D,groupId:y,layout:E,panelDataArray:D.current.panelDataArray,setLayout:C,panelGroupElement:v.current}),(0,a.useEffect)(()=>{let{panelDataArray:t}=D.current;if(e){if(0===E.length||E.length!==t.length)return;let n=em[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(ef,100),em[e]=n),n(e,[...t],new Map(R.current),E,p)}},[e,E,p]),(0,a.useEffect)(()=>{});let F=(0,a.useCallback)(e=>{let{onLayout:t}=L.current,{layout:n,panelDataArray:r}=D.current;if(e.constraints.collapsible){let l=r.map(e=>e.constraints),{collapsedSize:a=0,panelSize:i,pivotIndices:o}=eb(r,e,n);if(U(null!=i,`Panel size not found for panel "${e.id}"`),!Y(i,a)){R.current.set(e.id,i);let u=Z({delta:ev(r,e)===r.length-1?i-a:a-i,initialLayout:n,panelConstraints:l,pivotIndices:o,prevLayout:n,trigger:"imperative-api"});eo(n,u)||(C(u),D.current.layout=u,t&&t(u),ei(r,u,S.current))}}},[]),G=(0,a.useCallback)((e,t)=>{let{onLayout:n}=L.current,{layout:r,panelDataArray:l}=D.current;if(e.constraints.collapsible){let a=l.map(e=>e.constraints),{collapsedSize:i=0,panelSize:o=0,minSize:u=0,pivotIndices:s}=eb(l,e,r),c=null!=t?t:u;if(Y(o,i)){let t=R.current.get(e.id),i=null!=t&&t>=c?t:c,u=Z({delta:ev(l,e)===l.length-1?o-i:i-o,initialLayout:r,panelConstraints:a,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});eo(r,u)||(C(u),D.current.layout=u,n&&n(u),ei(l,u,S.current))}}},[]),O=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=D.current,{panelSize:r}=eb(n,e,t);return U(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),T=(0,a.useCallback)((e,t)=>{let{panelDataArray:n}=D.current,r=ev(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:l,precision:a=3}){let i=n[l];return{flexBasis:0,flexGrow:null==i?void 0!=e?e.toPrecision(a):"1":1===r.length?"1":i.toPrecision(a),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:w,layout:E,panelData:n,panelIndex:r})},[w,E]),j=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=D.current,{collapsedSize:r=0,collapsible:l,panelSize:a}=eb(n,e,t);return U(null!=a,`Panel size not found for panel "${e.id}"`),!0===l&&Y(a,r)},[]),B=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=D.current,{collapsedSize:r=0,collapsible:l,panelSize:a}=eb(n,e,t);return U(null!=a,`Panel size not found for panel "${e.id}"`),!l||V(a,r)>0},[]),W=(0,a.useCallback)(e=>{let{panelDataArray:t}=D.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),D.current.panelDataArrayChanged=!0,I()},[I]);u(()=>{if(D.current.panelDataArrayChanged){D.current.panelDataArrayChanged=!1;let{autoSaveId:l,onLayout:a,storage:i}=L.current,{layout:o,panelDataArray:u}=D.current,s=null;if(l){var e,t,n,r;let a=(e=l,t=u,null!=(r=(null!=(n=ed(e,i))?n:{})[ec(t)])?r:null);a&&(R.current=new Map(Object.entries(a.expandToSizes)),s=a.layout)}null==s&&(s=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,l=100;for(let a=0;ae.constraints)});el(o,c)||(C(c),D.current.layout=c,a&&a(c),ei(u,c,S.current))}}),u(()=>{let e=D.current;return()=>{e.layout=[]}},[]);let J=(0,a.useCallback)(e=>{let t=!1,n=v.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){var r,l;n.preventDefault();let a=v.current;if(!a)return()=>null;let{direction:i,dragState:u,id:s,keyboardResizeBy:c,onLayout:d}=L.current,{layout:f,panelDataArray:p}=D.current,{initialLayout:h}=null!=u?u:{},m=et(s,e,a),g=function(e,t,n,r,l,a){if(b(e)){let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=l?l:10;let a=0;switch(e.key){case"ArrowDown":a=t?0:r;break;case"ArrowLeft":a=t?-r:0;break;case"ArrowRight":a=t?r:0;break;case"ArrowUp":a=t?0:-r;break;case"End":a=100;break;case"Home":a=-100}return a}return null==r?0:function(e,t,n,r,l){let a="horizontal"===n,i=er(t,l);U(i,`No resize handle element found for id "${t}"`);let u=i.getAttribute(o.groupId);U(u,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r,c=ea(n,e),d=en(u,l);U(d,`No group element found for id "${u}"`);let f=d.getBoundingClientRect();return(c-s)/(a?f.width:f.height)*100}(e,t,n,r,a)}(n,e,i,u,c,a),y="horizontal"===i;y&&t&&(g=-g);let w=Z({delta:g,initialLayout:null!=h?h:f,panelConstraints:p.map(e=>e.constraints),pivotIndices:m,prevLayout:f,trigger:b(n)?"keyboard":"mouse-or-touch"}),k=!eo(f,w);(z(n)||x(n))&&M.current!=g&&((M.current=g,k||0===g)?H.set(e,0):y?(r=g<0?A:P,H.set(e,r)):(l=g<0?$:N,H.set(e,l))),k&&(C(w),D.current.layout=w,d&&d(w),ei(p,w,S.current))}},[]),_=(0,a.useCallback)((e,t)=>{let{onLayout:n}=L.current,{layout:r,panelDataArray:l}=D.current,a=l.map(e=>e.constraints),{panelSize:i,pivotIndices:o}=eb(l,e,r);U(null!=i,`Panel size not found for panel "${e.id}"`);let u=Z({delta:ev(l,e)===l.length-1?i-t:t-i,initialLayout:r,panelConstraints:a,pivotIndices:o,prevLayout:r,trigger:"imperative-api"});eo(r,u)||(C(u),D.current.layout=u,n&&n(u),ei(l,u,S.current))},[]),q=(0,a.useCallback)((e,t)=>{let{layout:n,panelDataArray:r}=D.current,{collapsedSize:l=0,collapsible:a}=t,{collapsedSize:i=0,collapsible:o,maxSize:u=100,minSize:s=0}=e.constraints,{panelSize:c}=eb(r,e,n);null!=c&&(a&&o&&Y(c,l)?Y(l,i)||_(e,i):cu&&_(e,u))},[_]),X=(0,a.useCallback)((e,t)=>{let{direction:n}=L.current,{layout:r}=D.current;if(!v.current)return;let l=er(e,v.current);U(l,`Drag handle element not found for id "${e}"`);let a=ea(n,t);k({dragHandleId:e,dragHandleRect:l.getBoundingClientRect(),initialCursorPosition:a,initialLayout:r})},[]),ee=(0,a.useCallback)(()=>{k(null)},[]),eu=(0,a.useCallback)(e=>{let{panelDataArray:t}=D.current,n=ev(t,e);n>=0&&(t.splice(n,1),delete S.current[e.id],D.current.panelDataArrayChanged=!0,I())},[I]),es=(0,a.useMemo)(()=>({collapsePanel:F,direction:r,dragState:w,expandPanel:G,getPanelSize:O,getPanelStyle:T,groupId:y,isPanelCollapsed:j,isPanelExpanded:B,reevaluatePanelConstraints:q,registerPanel:W,registerResizeHandle:J,resizePanel:_,startDragging:X,stopDragging:ee,unregisterPanel:eu,panelGroupElement:v.current}),[F,w,r,G,O,T,y,j,B,q,W,J,_,X,ee,eu]);return(0,a.createElement)(i.Provider,{value:es},(0,a.createElement)(m,{...g,children:t,className:n,id:s,ref:v,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...h},[o.group]:"",[o.groupDirection]:r,[o.groupId]:y}))}let ey=(0,a.forwardRef)((e,t)=>(0,a.createElement)(eg,{...e,forwardedRef:t}));function ev(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eb(e,t,n){let r=ev(e,t),l=r===e.length-1,a=n[r];return{...t.constraints,panelSize:a,pivotIndices:l?[r-1,r]:[r,r+1]}}function ez({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:l,onBlur:s,onClick:c,onDragging:d,onFocus:p,onPointerDown:h,onPointerUp:m,style:g={},tabIndex:y=0,tagName:v="div",...b}){var z,x;let w=(0,a.useRef)(null),k=(0,a.useRef)({onClick:c,onDragging:d,onPointerDown:h,onPointerUp:m});(0,a.useEffect)(()=>{k.current.onClick=c,k.current.onDragging=d,k.current.onPointerDown=h,k.current.onPointerUp=m});let E=(0,a.useContext)(i);if(null===E)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:C,groupId:I,registerResizeHandle:S,startDragging:A,stopDragging:P,panelGroupElement:$}=E,N=f(l),[R,L]=(0,a.useState)("inactive"),[G,O]=(0,a.useState)(!1),[T,j]=(0,a.useState)(null),B=(0,a.useRef)({state:R});u(()=>{B.current.state=R}),(0,a.useEffect)(()=>{if(n)j(null);else{let e=S(N);j(()=>e)}},[n,N,S]);let J=null!=(z=null==r?void 0:r.coarse)?z:15,q=null!=(x=null==r?void 0:r.fine)?x:5;return(0,a.useEffect)(()=>{if(n||null==T)return;let e=w.current;U(e,"Element ref not attached");let t=!1;return function(e,t,n,r,l){var a;let{ownerDocument:i}=t,o={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:l},u=null!=(a=D.get(i))?a:0;return D.set(i,u+1),F.add(o),_(),function(){var t;H.delete(e),F.delete(o);let n=null!=(t=D.get(i))?t:1;if(D.set(i,n-1),_(),1===n&&D.delete(i),M.includes(o)){let e=M.indexOf(o);e>=0&&M.splice(e,1),W(),l("up",!0,null)}}}(N,e,C,{coarse:J,fine:q},(e,n,r)=>{if(!n)return void L("inactive");switch(e){case"down":{L("drag"),t=!1,U(r,'Expected event to be defined for "down" action'),A(N,r);let{onDragging:e,onPointerDown:n}=k.current;null==e||e(!0),null==n||n();break}case"move":{let{state:e}=B.current;t=!0,"drag"!==e&&L("hover"),U(r,'Expected event to be defined for "move" action'),T(r);break}case"up":{L("hover"),P();let{onClick:e,onDragging:n,onPointerUp:r}=k.current;null==n||n(!1),null==r||r(),t||null==e||e()}}})},[J,C,n,q,S,N,T,A,P]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,a.useEffect)(()=>{if(e||null==n||null==r)return;let l=er(t,r);if(null==l)return;let a=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=l.getAttribute(o.groupId);U(n,`No group element found for id "${n}"`);let a=Q(n,r),i=ee(n,t,r);U(null!==i,`No resize element found for id "${t}"`);let u=e.shiftKey?i>0?i-1:a.length-1:i+1{l.removeEventListener("keydown",a)}},[r,e,t,n])}({disabled:n,handleId:N,resizeHandler:T,panelGroupElement:$}),(0,a.createElement)(v,{...b,children:e,className:t,id:l,onBlur:()=>{O(!1),null==s||s()},onFocus:()=>{O(!0),null==p||p()},ref:w,role:"separator",style:{touchAction:"none",userSelect:"none",...g},tabIndex:y,[o.groupDirection]:C,[o.groupId]:I,[o.resizeHandle]:"",[o.resizeHandleActive]:"drag"===R?"pointer":G?"keyboard":void 0,[o.resizeHandleEnabled]:!n,[o.resizeHandleId]:N,[o.resizeHandleState]:R})}eg.displayName="PanelGroup",ey.displayName="forwardRef(PanelGroup)",ez.displayName="PanelResizeHandle"},92033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/913-5fe9e33b298fd2b3.js b/adl-server/src/main/resources/static/_next/static/chunks/913-5fe9e33b298fd2b3.js new file mode 100644 index 00000000..55cd8bd2 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/913-5fe9e33b298fd2b3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[913],{5225:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>u});var a=r(12115),o=(e,t,r,a,o,n,s,l)=>{let i=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&n?o.map(e=>n[e]||e):o;r?(i.classList.remove(...a),i.classList.add(n&&n[t]?n[t]:t)):i.setAttribute(e,t)}),r=t,l&&c.includes(r)&&(i.style.colorScheme=r)}if(a)u(a);else try{let e=localStorage.getItem(t)||r,a=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(a)}catch(e){}},n=["light","dark"],s="(prefers-color-scheme: dark)",l=a.createContext(void 0),i={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=a.useContext(l))?e:i},u=e=>a.useContext(l)?a.createElement(a.Fragment,null,e.children):a.createElement(m,{...e}),d=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:u=d,defaultTheme:m=o?"system":"light",attribute:g="data-theme",value:v,children:k,nonce:b,scriptProps:x}=e,[C,w]=a.useState(()=>p(c,m)),[A,P]=a.useState(()=>"system"===C?f():C),E=v?Object.values(v):u,N=a.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=f());let a=v?v[t]:t,s=r?y(b):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...E),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(g)?g.forEach(c):c(g),i){let e=n.includes(m)?m:null,r=n.includes(t)?t:e;l.style.colorScheme=r}null==s||s()},[b]),R=a.useCallback(e=>{let t="function"==typeof e?e(C):e;w(t);try{localStorage.setItem(c,t)}catch(e){}},[C]),T=a.useCallback(e=>{P(f(e)),"system"===C&&o&&!t&&N("system")},[C,t]);a.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),a.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?w(e.newValue):R(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),a.useEffect(()=>{N(null!=t?t:C)},[t,C]);let S=a.useMemo(()=>({theme:C,setTheme:R,forcedTheme:t,resolvedTheme:"system"===C?A:C,themes:o?[...u,"system"]:u,systemTheme:o?A:void 0}),[C,R,t,A,o,u]);return a.createElement(l.Provider,{value:S},a.createElement(h,{forcedTheme:t,storageKey:c,attribute:g,enableSystem:o,enableColorScheme:i,defaultTheme:m,value:v,themes:u,nonce:b,scriptProps:x}),k)},h=a.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:n,enableSystem:s,enableColorScheme:l,defaultTheme:i,value:c,themes:u,nonce:d,scriptProps:m}=e,h=JSON.stringify([n,r,i,t,u,c,s,l]).slice(1,-1);return a.createElement("script",{...m,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(h,")")}})}),p=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},9484:(e,t,r)=>{"use strict";r.d(t,{C1:()=>x,bL:()=>b});var a=r(12115),o=r(3468),n=r(88142),s=r(95155),l="Progress",[i,c]=(0,o.A)(l),[u,d]=i(l),m=a.forwardRef((e,t)=>{var r,a,o,l;let{__scopeProgress:i,value:c=null,max:d,getValueLabel:m=y,...h}=e;(d||0===d)&&!v(d)&&console.error((r="".concat(d),a="Progress","Invalid prop `max` of value `".concat(r,"` supplied to `").concat(a,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let p=v(d)?d:100;null===c||k(c,p)||console.error((o="".concat(c),l="Progress","Invalid prop `value` of value `".concat(o,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let b=k(c,p)?c:null,x=g(b)?m(b,p):void 0;return(0,s.jsx)(u,{scope:i,value:b,max:p,children:(0,s.jsx)(n.sG.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":g(b)?b:void 0,"aria-valuetext":x,role:"progressbar","data-state":f(b,p),"data-value":null!=b?b:void 0,"data-max":p,...h,ref:t})})});m.displayName=l;var h="ProgressIndicator",p=a.forwardRef((e,t)=>{var r;let{__scopeProgress:a,...o}=e,l=d(h,a);return(0,s.jsx)(n.sG.div,{"data-state":f(l.value,l.max),"data-value":null!=(r=l.value)?r:void 0,"data-max":l.max,...o,ref:t})});function y(e,t){return"".concat(Math.round(e/t*100),"%")}function f(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function g(e){return"number"==typeof e}function v(e){return g(e)&&!isNaN(e)&&e>0}function k(e,t){return g(e)&&!isNaN(e)&&e<=t&&e>=0}p.displayName=h;var b=m,x=p},30848:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},31189:()=>{},41165:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},52240:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},53773:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>l,QF:()=>s});var a=r(12115),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e){var t,r,o,n,s,l,i,c,u=e.className,d=e.counterClockwise,m=e.dashRatio,h=e.pathRadius,p=e.strokeWidth,y=e.style;return(0,a.createElement)("path",{className:u,style:Object.assign({},y,(r=(t={pathRadius:h,dashRatio:m,counterClockwise:d}).counterClockwise,o=t.dashRatio,s=(1-o)*(n=2*Math.PI*t.pathRadius),{strokeDasharray:n+"px "+n+"px",strokeDashoffset:(r?-s:s)+"px"})),d:(i=(l={pathRadius:h,counterClockwise:d}).pathRadius,"\n M 50,50\n m 0,-"+i+"\n a "+i+","+i+" "+(c=+!!l.counterClockwise)+" 1 1 0,"+2*i+"\n a "+i+","+i+" "+c+" 1 1 0,-"+2*i+"\n "),strokeWidth:p,fillOpacity:0})}var s=function(e){function t(){this.constructor=r}function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},r.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},r.prototype.getPathRatio=function(){var e=this.props,t=e.value,r=e.minValue,a=e.maxValue;return(Math.min(Math.max(t,r),a)-r)/(a-r)},r.prototype.render=function(){var e=this.props,t=e.circleRatio,r=e.className,o=e.classes,s=e.counterClockwise,l=e.styles,i=e.strokeWidth,c=e.text,u=this.getPathRadius(),d=this.getPathRatio();return(0,a.createElement)("svg",{className:o.root+" "+r,style:l.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,a.createElement)("circle",{className:o.background,style:l.background,cx:50,cy:50,r:50}):null,(0,a.createElement)(n,{className:o.trail,counterClockwise:s,dashRatio:t,pathRadius:u,strokeWidth:i,style:l.trail}),(0,a.createElement)(n,{className:o.path,counterClockwise:s,dashRatio:d*t,pathRadius:u,strokeWidth:i,style:l.path}),c?(0,a.createElement)("text",{className:o.text,style:l.text,x:50,y:50},c):null)},r.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},r}(a.Component);function l(e){var t=e.rotation,r=e.strokeLinecap,a=e.textColor,o=e.textSize,n=e.pathColor,s=e.pathTransition,l=e.pathTransitionDuration,c=e.trailColor,u=e.backgroundColor,d=null==t?void 0:"rotate("+t+"turn)",m=null==t?void 0:"center center";return{root:{},path:i({stroke:n,strokeLinecap:r,transform:d,transformOrigin:m,transition:s,transitionDuration:null==l?void 0:l+"s"}),trail:i({stroke:c,strokeLinecap:r,transform:d,transformOrigin:m}),text:i({fill:a,fontSize:o}),background:i({fill:u})}}function i(e){return Object.keys(e).forEach(function(t){null==e[t]&&delete e[t]}),e}},62593:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},92033:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94374:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(14294).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/922-872afe22e827abbb.js b/adl-server/src/main/resources/static/_next/static/chunks/922-872afe22e827abbb.js new file mode 100644 index 00000000..b8139555 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/922-872afe22e827abbb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[922],{5379:(e,t,a)=>{a.d(t,{D:()=>d,N:()=>c});var r=a(12115),n=(e,t,a,r,n,o,l,i)=>{let s=document.documentElement,d=["light","dark"];function c(t){var a;(Array.isArray(e)?e:[e]).forEach(e=>{let a="class"===e,r=a&&o?n.map(e=>o[e]||e):n;a?(s.classList.remove(...r),s.classList.add(o&&o[t]?o[t]:t)):s.setAttribute(e,t)}),a=t,i&&d.includes(a)&&(s.style.colorScheme=a)}if(r)c(r);else try{let e=localStorage.getItem(t)||a,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},o=["light","dark"],l="(prefers-color-scheme: dark)",i=r.createContext(void 0),s={setTheme:e=>{},themes:[]},d=()=>{var e;return null!=(e=r.useContext(i))?e:s},c=e=>r.useContext(i)?r.createElement(r.Fragment,null,e.children):r.createElement(m,{...e}),u=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:a=!1,enableSystem:n=!0,enableColorScheme:s=!0,storageKey:d="theme",themes:c=u,defaultTheme:m=n?"system":"light",attribute:v="data-theme",value:b,children:g,nonce:x,scriptProps:w}=e,[k,C]=r.useState(()=>p(d,m)),[A,j]=r.useState(()=>"system"===k?y():k),R=b?Object.values(b):c,M=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=y());let r=b?b[t]:t,l=a?f(x):null,i=document.documentElement,d=e=>{"class"===e?(i.classList.remove(...R),r&&i.classList.add(r)):e.startsWith("data-")&&(r?i.setAttribute(e,r):i.removeAttribute(e))};if(Array.isArray(v)?v.forEach(d):d(v),s){let e=o.includes(m)?m:null,a=o.includes(t)?t:e;i.style.colorScheme=a}null==l||l()},[x]),N=r.useCallback(e=>{let t="function"==typeof e?e(k):e;C(t);try{localStorage.setItem(d,t)}catch(e){}},[k]),T=r.useCallback(e=>{j(y(e)),"system"===k&&n&&!t&&M("system")},[k,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),r.useEffect(()=>{let e=e=>{e.key===d&&(e.newValue?C(e.newValue):N(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[N]),r.useEffect(()=>{M(null!=t?t:k)},[t,k]);let I=r.useMemo(()=>({theme:k,setTheme:N,forcedTheme:t,resolvedTheme:"system"===k?A:k,themes:n?[...c,"system"]:c,systemTheme:n?A:void 0}),[k,N,t,A,n,c]);return r.createElement(i.Provider,{value:I},r.createElement(h,{forcedTheme:t,storageKey:d,attribute:v,enableSystem:n,enableColorScheme:s,defaultTheme:m,value:b,themes:c,nonce:x,scriptProps:w}),g)},h=r.memo(e=>{let{forcedTheme:t,storageKey:a,attribute:o,enableSystem:l,enableColorScheme:i,defaultTheme:s,value:d,themes:c,nonce:u,scriptProps:m}=e,h=JSON.stringify([o,a,s,t,c,d,l,i]).slice(1,-1);return r.createElement("script",{...m,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(n.toString(),")(").concat(h,")")}})}),p=(e,t)=>{let a;try{a=localStorage.getItem(e)||void 0}catch(e){}return a||t},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},10489:(e,t,a)=>{a.d(t,{b:()=>i});var r=a(12115),n=a(88142),o=a(95155),l=r.forwardRef((e,t)=>(0,o.jsx)(n.sG.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var i=l},12784:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},13630:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},25667:(e,t,a)=>{a.d(t,{B8:()=>T,UC:()=>E,bL:()=>N,l9:()=>I});var r=a(12115),n=a(92556),o=a(3468),l=a(72431),i=a(76842),s=a(88142),d=a(66218),c=a(23558),u=a(68946),m=a(95155),h="Tabs",[p,f]=(0,o.A)(h,[l.RG]),y=(0,l.RG)(),[v,b]=p(h),g=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:n,defaultValue:o,orientation:l="horizontal",dir:i,activationMode:h="automatic",...p}=e,f=(0,d.jH)(i),[y,b]=(0,c.i)({prop:r,onChange:n,defaultProp:o});return(0,m.jsx)(v,{scope:a,baseId:(0,u.B)(),value:y,onValueChange:b,orientation:l,dir:f,activationMode:h,children:(0,m.jsx)(s.sG.div,{dir:f,"data-orientation":l,...p,ref:t})})});g.displayName=h;var x="TabsList",w=r.forwardRef((e,t)=>{let{__scopeTabs:a,loop:r=!0,...n}=e,o=b(x,a),i=y(a);return(0,m.jsx)(l.bL,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:(0,m.jsx)(s.sG.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:t})})});w.displayName=x;var k="TabsTrigger",C=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,disabled:o=!1,...i}=e,d=b(k,a),c=y(a),u=R(d.baseId,r),h=M(d.baseId,r),p=r===d.value;return(0,m.jsx)(l.q7,{asChild:!0,...c,focusable:!o,active:p,children:(0,m.jsx)(s.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":h,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:(0,n.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(r)}),onKeyDown:(0,n.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(r)}),onFocus:(0,n.m)(e.onFocus,()=>{let e="manual"!==d.activationMode;p||o||!e||d.onValueChange(r)})})})});C.displayName=k;var A="TabsContent",j=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:n,forceMount:o,children:l,...d}=e,c=b(A,a),u=R(c.baseId,n),h=M(c.baseId,n),p=n===c.value,f=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(i.C,{present:o||p,children:a=>{let{present:r}=a;return(0,m.jsx)(s.sG.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:h,tabIndex:0,...d,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:r&&l})}})});function R(e,t){return"".concat(e,"-trigger-").concat(t)}function M(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=A;var N=g,T=w,I=C,E=j},32265:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},59007:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},73180:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},78770:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},85989:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},86374:(e,t,a)=>{a.d(t,{UC:()=>el,Y9:()=>en,q7:()=>er,bL:()=>ea,l9:()=>eo});var r=a(12115),n=a(3468),o=a(78625),l=a(94446),i=a(92556),s=a(23558),d=a(88142),c=a(4129),u=a(76842),m=a(68946),h=a(95155),p="Collapsible",[f,y]=(0,n.A)(p),[v,b]=f(p),g=r.forwardRef((e,t)=>{let{__scopeCollapsible:a,open:n,defaultOpen:o,disabled:l,onOpenChange:i,...c}=e,[u=!1,p]=(0,s.i)({prop:n,defaultProp:o,onChange:i});return(0,h.jsx)(v,{scope:a,disabled:l,contentId:(0,m.B)(),open:u,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,h.jsx)(d.sG.div,{"data-state":j(u),"data-disabled":l?"":void 0,...c,ref:t})})});g.displayName=p;var x="CollapsibleTrigger",w=r.forwardRef((e,t)=>{let{__scopeCollapsible:a,...r}=e,n=b(x,a);return(0,h.jsx)(d.sG.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":j(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:t,onClick:(0,i.m)(e.onClick,n.onOpenToggle)})});w.displayName=x;var k="CollapsibleContent",C=r.forwardRef((e,t)=>{let{forceMount:a,...r}=e,n=b(k,e.__scopeCollapsible);return(0,h.jsx)(u.C,{present:a||n.open,children:e=>{let{present:a}=e;return(0,h.jsx)(A,{...r,ref:t,present:a})}})});C.displayName=k;var A=r.forwardRef((e,t)=>{let{__scopeCollapsible:a,present:n,children:o,...i}=e,s=b(k,a),[u,m]=r.useState(n),p=r.useRef(null),f=(0,l.s)(t,p),y=r.useRef(0),v=y.current,g=r.useRef(0),x=g.current,w=s.open||u,C=r.useRef(w),A=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=p.current;if(e){A.current=A.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,g.current=t.width,C.current||(e.style.transitionDuration=A.current.transitionDuration,e.style.animationName=A.current.animationName),m(n)}},[s.open,n]),(0,h.jsx)(d.sG.div,{"data-state":j(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...i,ref:f,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:w&&o})});function j(e){return e?"open":"closed"}var R=a(66218),M="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[T,I,E]=(0,o.N)(M),[S,D]=(0,n.A)(M,[E,y]),_=y(),L=r.forwardRef((e,t)=>{let{type:a,...r}=e;return(0,h.jsx)(T.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,h.jsx)(z,{...r,ref:t}):(0,h.jsx)(O,{...r,ref:t})})});L.displayName=M;var[G,P]=S(M),[H,V]=S(M,{collapsible:!1}),O=r.forwardRef((e,t)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},collapsible:l=!1,...i}=e,[d,c]=(0,s.i)({prop:a,defaultProp:n,onChange:o});return(0,h.jsx)(G,{scope:e.__scopeAccordion,value:d?[d]:[],onItemOpen:c,onItemClose:r.useCallback(()=>l&&c(""),[l,c]),children:(0,h.jsx)(H,{scope:e.__scopeAccordion,collapsible:l,children:(0,h.jsx)(F,{...i,ref:t})})})}),z=r.forwardRef((e,t)=>{let{value:a,defaultValue:n,onValueChange:o=()=>{},...l}=e,[i=[],d]=(0,s.i)({prop:a,defaultProp:n,onChange:o}),c=r.useCallback(e=>d(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[d]),u=r.useCallback(e=>d(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[d]);return(0,h.jsx)(G,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:u,children:(0,h.jsx)(H,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(F,{...l,ref:t})})})}),[K,q]=S(M),F=r.forwardRef((e,t)=>{let{__scopeAccordion:a,disabled:n,dir:o,orientation:s="vertical",...c}=e,u=r.useRef(null),m=(0,l.s)(u,t),p=I(a),f="ltr"===(0,R.jH)(o),y=(0,i.m)(e.onKeyDown,e=>{var t;if(!N.includes(e.key))return;let a=e.target,r=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),n=r.findIndex(e=>e.ref.current===a),o=r.length;if(-1===n)return;e.preventDefault();let l=n,i=o-1,d=()=>{(l=n+1)>i&&(l=0)},c=()=>{(l=n-1)<0&&(l=i)};switch(e.key){case"Home":l=0;break;case"End":l=i;break;case"ArrowRight":"horizontal"===s&&(f?d():c());break;case"ArrowDown":"vertical"===s&&d();break;case"ArrowLeft":"horizontal"===s&&(f?c():d());break;case"ArrowUp":"vertical"===s&&c()}null==(t=r[l%o].ref.current)||t.focus()});return(0,h.jsx)(K,{scope:a,disabled:n,direction:o,orientation:s,children:(0,h.jsx)(T.Slot,{scope:a,children:(0,h.jsx)(d.sG.div,{...c,"data-orientation":s,ref:m,onKeyDown:n?void 0:y})})})}),B="AccordionItem",[U,W]=S(B),J=r.forwardRef((e,t)=>{let{__scopeAccordion:a,value:r,...n}=e,o=q(B,a),l=P(B,a),i=_(a),s=(0,m.B)(),d=r&&l.value.includes(r)||!1,c=o.disabled||e.disabled;return(0,h.jsx)(U,{scope:a,open:d,disabled:c,triggerId:s,children:(0,h.jsx)(g,{"data-orientation":o.orientation,"data-state":et(d),...i,...n,ref:t,disabled:c,open:d,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});J.displayName=B;var Y="AccordionHeader",Z=r.forwardRef((e,t)=>{let{__scopeAccordion:a,...r}=e,n=q(M,a),o=W(Y,a);return(0,h.jsx)(d.sG.h3,{"data-orientation":n.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Z.displayName=Y;var Q="AccordionTrigger",X=r.forwardRef((e,t)=>{let{__scopeAccordion:a,...r}=e,n=q(M,a),o=W(Q,a),l=V(Q,a),i=_(a);return(0,h.jsx)(T.ItemSlot,{scope:a,children:(0,h.jsx)(w,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...i,...r,ref:t})})});X.displayName=Q;var $="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:a,...r}=e,n=q(M,a),o=W($,a),l=_(a);return(0,h.jsx)(C,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=$;var ea=L,er=J,en=Z,eo=X,el=ee},92033:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/966-cd4559ff8888c9f0.js b/adl-server/src/main/resources/static/_next/static/chunks/966-cd4559ff8888c9f0.js new file mode 100644 index 00000000..dce713c5 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/966-cd4559ff8888c9f0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{11186:(e,a,s)=>{s.d(a,{bq:()=>f,eb:()=>h,gC:()=>x,l6:()=>c,yv:()=>m});var t=s(95155),r=s(12115),l=s(95102),n=s(59007),i=s(42614),d=s(72251),o=s(64269);let c=l.bL;l.YJ;let m=l.WT,f=r.forwardRef((e,a)=>{let{className:s,children:r,...i}=e;return(0,t.jsxs)(l.l9,{ref:a,className:(0,o.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...i,children:[r,(0,t.jsx)(l.In,{asChild:!0,children:(0,t.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=l.l9.displayName;let u=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(l.PP,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,t.jsx)(i.A,{className:"h-4 w-4"})})});u.displayName=l.PP.displayName;let p=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(l.wn,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",s),...r,children:(0,t.jsx)(n.A,{className:"h-4 w-4"})})});p.displayName=l.wn.displayName;let x=r.forwardRef((e,a)=>{let{className:s,children:r,position:n="popper",...i}=e;return(0,t.jsx)(l.ZL,{children:(0,t.jsxs)(l.UC,{ref:a,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:n,...i,children:[(0,t.jsx)(u,{}),(0,t.jsx)(l.LM,{className:(0,o.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(p,{})]})})});x.displayName=l.UC.displayName,r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(l.JU,{ref:a,className:(0,o.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",s),...r})}).displayName=l.JU.displayName;let h=r.forwardRef((e,a)=>{let{className:s,children:r,...n}=e;return(0,t.jsxs)(l.q7,{ref:a,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.VF,{children:(0,t.jsx)(d.A,{className:"h-4 w-4"})})}),(0,t.jsx)(l.p4,{children:r})]})});h.displayName=l.q7.displayName,r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(l.wv,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",s),...r})}).displayName=l.wv.displayName},11647:(e,a,s)=>{s.d(a,{E:()=>i,e:()=>n});var t=s(95155);s(12115);var r=s(83101),l=s(64269);let n=(0,r.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:a,variant:s,...r}=e;return(0,t.jsx)("div",{className:(0,l.cn)(n({variant:s}),a),...r})}},13496:(e,a,s)=>{s.d(a,{$m:()=>c,As:()=>o,nD:()=>d,ub:()=>m});var t=s(95155),r=s(12115),l=s(86374),n=s(59007),i=s(64269);let d=l.bL,o=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(l.q7,{ref:a,className:(0,i.cn)("border-b",s),...r})});o.displayName="AccordionItem";let c=r.forwardRef((e,a)=>{let{className:s,children:r,...d}=e;return(0,t.jsx)(l.Y9,{className:"flex",children:(0,t.jsxs)(l.l9,{ref:a,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",s),...d,children:[r,(0,t.jsx)(n.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});c.displayName=l.l9.displayName;let m=r.forwardRef((e,a)=>{let{className:s,children:r,...n}=e;return(0,t.jsx)(l.UC,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",s),children:r})})});m.displayName=l.UC.displayName},16789:(e,a,s)=>{s.d(a,{HK:()=>d,WM:()=>c,wV:()=>o});var t=s(95155),r=s(12115),l=s(16146),n=s(56745),i=s(64269);let d=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)(n.YZ,{ref:a,className:(0,i.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",s),...r})});d.displayName="ResizablePanelGroup";let o=n.Zk,c=r.forwardRef((e,a)=>{let{className:s,withHandle:r,...d}=e;return(0,t.jsx)(n.TW,{ref:a,className:(0,i.cn)("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",s),...d,children:r&&(0,t.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:(0,t.jsx)(l.A,{className:"h-2.5 w-2.5"})})})});c.displayName="ResizableHandle"},17037:(e,a,s)=>{s.d(a,{F:()=>i});var t=s(95155),r=s(12115),l=s(59034),n=s(64269);let i=r.forwardRef((e,a)=>{let{className:s,children:r,...i}=e;return(0,t.jsxs)(l.bL,{ref:a,className:(0,n.cn)("relative overflow-hidden",s),...i,children:[(0,t.jsx)(l.LM,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(d,{}),(0,t.jsx)(l.OK,{})]})});i.displayName=l.bL.displayName;let d=r.forwardRef((e,a)=>{let{className:s,orientation:r="vertical",...i}=e;return(0,t.jsx)(l.VM,{ref:a,orientation:r,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...i,children:(0,t.jsx)(l.lr,{className:"relative flex-1 rounded-full bg-border"})})});d.displayName=l.VM.displayName},26333:(e,a,s)=>{s.d(a,{AM:()=>i,Wv:()=>d,hl:()=>o});var t=s(95155),r=s(12115),l=s(20561),n=s(64269);let i=l.bL,d=l.l9,o=r.forwardRef((e,a)=>{let{className:s,align:r="center",sideOffset:i=4,...d}=e;return(0,t.jsx)(l.ZL,{children:(0,t.jsx)(l.UC,{ref:a,align:r,sideOffset:i,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...d})})});o.displayName=l.UC.displayName},31120:(e,a,s)=>{s.d(a,{T:()=>n});var t=s(95155),r=s(12115),l=s(64269);let n=r.forwardRef((e,a)=>{let{className:s,...r}=e;return(0,t.jsx)("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:a,...r})});n.displayName="Textarea"},47614:(e,a,s)=>{s.d(a,{A:()=>v});var t=s(95155),r=s(27314),l=s(5418),n=s(60805),i=s(5225),d=s(19201),o=s(13630),c=s(6259),m=s(3998),f=s(31120),u=s(11647),p=s(5484);let x=p.bL,h=p.R6,g=p.Ke;var j=s(26333),N=s(64269);function v(e){var a,s,p,v;let{message:b,isEditing:y=!1,onContentChange:w=()=>{},onRemove:C=()=>{},onRoleChange:k=()=>{}}=e,A="user"===b.role,R=null==(a=b.context)?void 0:a.find(e=>"useCase"===e.key),z=null==(s=b.context)?void 0:s.find(e=>"useCaseContent"===e.key),L=null==(p=b.context)?void 0:p.find(e=>"compliance"===e.key),U=null==(v=b.context)?void 0:v.filter(e=>"useCase"!==e.key&&"useCaseContent"!==e.key&&"compliance"!==e.key),M=b.toolCalls,S=()=>(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full ".concat(A?"bg-secondary text-secondary-foreground":"bg-primary text-primary-foreground"),children:A?(0,t.jsx)(r.A,{className:"h-5 w-5"}):(0,t.jsx)(l.A,{className:"h-5 w-5"})});return(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[y?(0,t.jsxs)(c.rI,{children:[(0,t.jsx)(c.ty,{asChild:!0,children:(0,t.jsx)(m.$,{variant:"ghost",className:"h-10 w-10 shrink-0 rounded-full p-0",children:(0,t.jsx)(S,{})})}),(0,t.jsxs)(c.SQ,{children:[(0,t.jsxs)(c._2,{onClick:()=>k("user"),children:[(0,t.jsx)(r.A,{className:"mr-2 h-4 w-4"})," User"]}),(0,t.jsxs)(c._2,{onClick:()=>k("assistant"),children:[(0,t.jsx)(l.A,{className:"mr-2 h-4 w-4"})," Assistant"]})]})]}):(0,t.jsx)(S,{}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:["assistant"===b.role&&M&&M.length>0&&!y&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:M.map((e,a)=>(0,t.jsxs)(j.AM,{children:[(0,t.jsx)(j.Wv,{asChild:!0,children:(0,t.jsxs)(m.$,{variant:"ghost",size:"sm",className:"gap-2",children:[(0,t.jsx)(n.A,{className:"h-4 w-4"}),e.name]})}),(0,t.jsx)(j.hl,{className:"w-80",children:(0,t.jsx)("div",{className:"grid gap-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-medium leading-none",children:["Arguments for ",e.name]}),(0,t.jsx)("pre",{className:"mt-2 text-sm text-muted-foreground bg-muted p-2 rounded-md whitespace-pre-wrap font-mono",children:(()=>{try{return JSON.stringify(JSON.parse(e.arguments),null,2)}catch(a){return e.arguments}})()})]})})})]},a))}),(0,t.jsx)("div",{className:"rounded-lg border p-4 text-sm bg-card",children:y?(0,t.jsx)(f.T,{value:b.content,onChange:e=>w(e.target.value),className:"w-full min-h-[60px] font-sans bg-transparent border-0 p-0 focus-visible:ring-0",rows:Math.max(2,b.content.split("\n").length)}):(0,t.jsx)("div",{className:"prose prose-sm dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:b.content}})}),"assistant"===b.role&&!y&&(z||L)&&(0,t.jsxs)("div",{className:"flex items-start justify-between mt-1 px-1",children:[(0,t.jsx)("div",{children:z&&(0,t.jsxs)(x,{className:"text-left",children:[(0,t.jsxs)(h,{className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground justify-start cursor-pointer p-1",children:[(0,t.jsx)(i.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"truncate",children:String((null==R?void 0:R.value)||"UseCase Context")})]}),(0,t.jsx)(g,{className:"pt-1",children:(0,t.jsx)("div",{className:"rounded-md border bg-muted p-2",children:(0,t.jsx)("pre",{className:"whitespace-pre-wrap font-sans text-sm",children:(0,t.jsx)("span",{children:String(z.value)})})})})]},"useCaseContent")}),L&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,t.jsx)(d.A,{className:"h-3 w-3 text-green-500"}),(0,t.jsx)("span",{children:String(L.value)})]})]}),"assistant"===b.role&&U&&U.length>0&&!y&&(0,t.jsx)("div",{className:"flex flex-col items-start gap-2 pt-2 px-1",children:U.map((e,a)=>{let s=String(e.value),r=s.length>50;return(0,t.jsxs)(x,{className:"text-left",children:[(0,t.jsx)(h,{className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground w-full justify-start cursor-pointer p-1 disabled:cursor-default",disabled:!r,children:(0,t.jsxs)("span",{className:(0,N.cn)((0,u.e)({variant:"secondary"}),"max-w-full"),children:[(0,t.jsxs)("span",{className:"font-semibold mr-1",children:[e.key,":"]}),(0,t.jsx)("span",{className:"truncate",children:r?"".concat(s.substring(0,50),"..."):s})]})}),r&&(0,t.jsx)(g,{className:"pt-1",children:(0,t.jsx)("div",{className:"rounded-md border bg-muted p-2",children:(0,t.jsx)("pre",{className:"whitespace-pre-wrap font-sans text-sm",children:(0,t.jsx)("span",{children:String(s)})})})})]},a)})})]}),y&&(0,t.jsxs)(m.$,{variant:"ghost",size:"icon",className:"shrink-0 h-10 w-10",onClick:C,children:[(0,t.jsx)(o.A,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"sr-only",children:"Remove message"})]})]})}}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/990-81fcfac161c404c8.js b/adl-server/src/main/resources/static/_next/static/chunks/990-81fcfac161c404c8.js new file mode 100644 index 00000000..5dfc9b2f --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/990-81fcfac161c404c8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[990],{399:(t,e,r)=>{"use strict";r.d(e,{P2:()=>te,pr:()=>J,bx:()=>tr,vh:()=>Q,sl:()=>Z});var n=r(41334),o=r.n(n),i=r(91373),a=r.n(i),u=r(24719),c=r(70543),l=r(49580),s=r(12115),f=r(2821),p=r(60833),h=r(35138),d=r.n(h),y=r(80385),v=r.n(y),m=r(87095),b=r(81906),g=function(t){return null};g.displayName="Cell";var x=r(14724),O=r(33692),w=r(84072),j=r(55744),S=r(53002),A=["x","y"];function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,A),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||o.height),10),c=parseInt("".concat(e.width||o.width),10);return _(_(_(_(_({},e),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function T(t){return s.createElement(S.yp,E({shapeType:"rectangle",propTransformer:M,activeClassName:"recharts-active-bar"},t))}var C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||(0,j.A)(!1),e)}},D=["value","background"];function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(){return(N=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,D);if(!a)return null;var c=R(R(R(R(R({},u),{},{fill:"#eee"},a),i),(0,w.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return s.createElement(T,N({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},c))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,l=r.children,f=(0,c.aS)(l,b.u);if(!f)return null;var p="vertical"===a?n[0].height/2:n[0].width/2,h=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,u.kr)(t,e)}};return s.createElement(m.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},f.map(function(t){return s.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,c=t.width,l=t.height,p=t.isAnimationActive,h=t.background,d=t.id;if(e||!r||!r.length)return null;var y=this.state.isAnimationFinished,b=(0,f.A)("recharts-bar",n),g=o&&o.allowDataOverflow,O=i&&i.allowDataOverflow,w=g||O,j=v()(d)?this.id:d;return s.createElement(m.W,{className:b},g||O?s.createElement("defs",null,s.createElement("clipPath",{id:"clipPath-".concat(j)},s.createElement("rect",{x:g?a:a-c/2,y:O?u:u-l/2,width:g?c:2*c,height:O?l:2*l}))):null,s.createElement(m.W,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},h?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!p||y)&&x.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&L(n.prototype,e),r&&L(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.PureComponent);function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(t,e){for(var r=0;r0&&Math.abs(g)0&&Math.abs(b)0&&(P=Math.min((t||0)-(E[e-1]||0),P))}),Number.isFinite(P)){var k=P/A,_="vertical"===m.layout?r.height:r.width;if("gap"===m.padding&&(c=k*_/2),"no-gap"===m.padding){var M=(0,l.F4)(t.barCategoryGap,k*_),T=k*_/2;c=T-M-(T-M)/_*M}}}f="xAxis"===n?[r.left+(O.left||0)+(c||0),r.left+r.width-(O.right||0)-(c||0)]:"yAxis"===n?"horizontal"===s?[r.top+r.height-(O.bottom||0),r.top+(O.top||0)]:[r.top+(O.top||0)+(c||0),r.top+r.height-(O.bottom||0)-(c||0)]:m.range,j&&(f=[f[1],f[0]]);var C=(0,u.W7)(m,o,d),D=C.scale,I=C.realScaleType;D.domain(g).range(f),(0,u.YB)(D);var N=(0,u.w7)(D,G(G({},m),{},{realScaleType:I}));"xAxis"===n?(v="top"===b&&!w||"bottom"===b&&w,p=r.left,y=h[S]-v*m.height):"yAxis"===n&&(v="left"===b&&!w||"right"===b&&w,p=h[S]-v*m.width,y=r.top);var B=G(G(G({},m),N),{},{realScaleType:I,x:p,y:y,scale:D,width:"xAxis"===n?r.width:m.width,height:"yAxis"===n?r.height:m.height});return B.bandSize=(0,u.Hj)(B,N),m.hide||"xAxis"!==n?m.hide||(h[S]+=(v?-1:1)*B.width):h[S]+=(v?-1:1)*B.height,G(G({},i),{},Y({},a,B))},{})},Z=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Q=function(t){return Z({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},tt=function(){var t,e;function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&X(r.prototype,t),e&&X(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();Y(tt,"EPS",1e-4);var te=function(t){var e=Object.keys(t).reduce(function(e,r){return G(G({},e),{},Y({},r,tt.create(t[r])))},{});return G(G({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return o()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:i})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},tr=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/e);return Math.abs(o>i&&o{var n=r(82455),o=r(42493),i=r(31326),a=r(76917);t.exports=function(t){return i(t)?n(a(t)):o(t)}},3489:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},4651:t=>{t.exports=function(t){return t!=t}},4816:(t,e,r)=>{var n=r(66126);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},6256:(t,e,r)=>{"use strict";function n(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}r.d(e,{C:()=>n,K:()=>o})},6407:(t,e,r)=>{var n=r(16815);t.exports=r(24567)(n)},6745:(t,e,r)=>{var n=r(70300);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},7050:(t,e,r)=>{"use strict";r.d(e,{I:()=>V});var n=r(12115);function o(){}function i(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}s.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function h(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function d(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function v(t){this._context=t}function m(t){this._context=new b(t)}function b(t){this._context=t}function g(t){this._context=t}function x(t){var e,r,n=t.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(e=0,i[n-1]=(t[n]+o[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var w=r(27012),j=r(73595),S=r(89569);function A(t){return t[0]}function P(t){return t[1]}function E(t,e){var r=(0,j.A)(!0),n=null,o=p,i=null,a=(0,S.i)(u);function u(u){var c,l,s,f=(u=(0,w.A)(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return E().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?A:(0,j.A)(+t),e="function"==typeof e?e:void 0===e?(0,j.A)(0):(0,j.A)(+e),r="function"==typeof r?r:void 0===r?P:(0,j.A)(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.A)(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.A)(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.A)(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,j.A)(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}var _=r(28568),M=r.n(_),T=r(71730),C=r.n(T),D=r(2821),I=r(84072),N=r(70543),B=r(49580);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;e{var n=r(69079),o=r(15834),i=r(29101);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},7620:(t,e,r)=>{"use strict";r.d(e,{s:()=>D});var n=r(12115),o=r(71730),i=r.n(o),a=r(2821),u=r(58672),c=r(69905),l=r(92143),s=r(84072);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return n.createElement("li",p({className:b,style:y,key:"legend-item-".concat(r)},(0,s.XC)(t.props,e,r)),n.createElement(c.u,{width:o,height:o,viewBox:d,style:v},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,r):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,o=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?A({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),A(A({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,o=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=A(A({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,j);return n.createElement(g,r)}(r,A(A({},this.props),{},{payload:(0,O.s)(c,u,C)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=A(A({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,x.Et)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&P(o.prototype,e),r&&P(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);M(D,"displayName","Legend"),M(D,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},7745:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},8082:(t,e,r)=>{var n=r(83642),o=r(98134),i=r(74633),a=r(31326),u=r(76462),c=r(29101),l=r(76917);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},8186:t=>{t.exports=function(){}},8524:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{"use strict";r.d(e,{J:()=>h,M:()=>y});var n=r(12115),o=r(2821),i=r(60833),a=r(70543);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1,c=r>=0?1:-1,l=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},h=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},d),t),u=(0,n.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{i=(r=r.call(t)).next,!1;for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,n.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=r.x,m=r.y,b=r.width,g=r.height,x=r.radius,O=r.className,w=r.animationEasing,j=r.animationDuration,S=r.animationBegin,A=r.isAnimationActive,P=r.isUpdateAnimationActive;if(v!==+v||m!==+m||b!==+b||g!==+g||0===b||0===g)return null;var E=(0,o.A)("recharts-rectangle",O);return P?n.createElement(i.Ay,{canBegin:h>0,from:{width:b,height:g,x:v,y:m},to:{width:b,height:g,x:v,y:m},duration:j,animationEasing:w,isActive:P},function(t){var e=t.width,o=t.height,l=t.x,s=t.y;return n.createElement(i.Ay,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:A,easing:w},n.createElement("path",c({},(0,a.J9)(r,!0),{className:E,d:p(l,s,e,o,x),ref:u})))}):n.createElement("path",c({},(0,a.J9)(r,!0),{className:E,d:p(v,m,b,g,x)}))}},9142:(t,e,r)=>{var n=r(21187),o=r(25902),i=r(25411),a=r(70637),u=r(35206),c=r(76917);t.exports=function(t,e,r){e=n(e,t);for(var l=-1,s=e.length,f=!1;++l{var n=r(36772),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f{var n=r(80942),o=r(26526);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},10883:(t,e,r)=>{var n=r(95918),o=r(57716),i=r(71624),a=r(32438);t.exports=function(t){return function(e){var r=o(e=a(e))?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},11428:(t,e,r)=>{var n=r(90176),o=r(60239),i=r(84729);t.exports=function(t,e){return i(o(t,e,n),t+"")}},12758:(t,e,r)=>{t.exports=r(19298)()},13132:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},13630:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(14294).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},14144:(t,e,r)=>{var n=r(41982),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},14344:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},14638:(t,e,r)=>{var n=r(21187),o=r(76917);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r{"use strict";r.d(e,{Z:()=>A});var n=r(12115),o=r(80385),i=r.n(o),a=r(26745),u=r.n(a),c=r(71730),l=r.n(c),s=r(30114),f=r.n(s),p=r(63296),h=r(87095),d=r(70543),y=r(24719);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=["valueAccessor"],b=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function A(t){var e=t.valueAccessor,r=void 0===e?S:e,o=j(t,m),a=o.data,u=o.dataKey,c=o.clockWise,l=o.id,s=o.textBreakAll,f=j(o,b);return a&&a.length?n.createElement(h.W,{className:"recharts-label-list"},a.map(function(t,e){var o=i()(u)?r(t,e):(0,y.kr)(t&&t.payload,u),a=i()(l)?{}:{id:"".concat(l,"-").concat(e)};return n.createElement(p.J,x({},(0,d.J9)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:o,textBreakAll:s,viewBox:p.J.parseViewBox(i()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}A.displayName="LabelList",A.renderCallByParent=function(t,e){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=(0,d.aS)(i,A).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return o?[(r=t.label,!r?null:!0===r?n.createElement(A,{key:"labelList-implicit",data:e}):n.isValidElement(r)||l()(r)?n.createElement(A,{key:"labelList-implicit",data:e,content:r}):u()(r)?n.createElement(A,x({data:e},r,{key:"labelList-implicit"})):null)].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},15668:(t,e,r)=>{var n=r(63431),o=r(28007),i=r(17719);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},15791:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},15834:(t,e,r)=>{var n=r(76462),o=r(91958);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},15907:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},16809:(t,e,r)=>{var n=r(38185);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},16815:(t,e,r)=>{var n=r(39089),o=r(91958);t.exports=function(t,e){return t&&n(t,e,o)}},17202:(t,e,r)=>{var n=r(14344),o=r(48908),i=r(70637),a=r(26745);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return("number"==u?!!(o(r)&&i(e,r.length)):"string"==u&&e in r)&&n(r[e],t)}},17719:(t,e,r)=>{t.exports=r(83558)(r(51483),"Map")},18135:(t,e,r)=>{var n=r(14344);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},18683:(t,e,r)=>{var n=r(29887),o=r(4651),i=r(23719);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},19298:(t,e,r)=>{"use strict";var n=r(53341);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},21187:(t,e,r)=>{var n=r(25411),o=r(31326),i=r(81864),a=r(32438);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},21457:t=>{t.exports=function(){return!1}},21533:(t,e,r)=>{"use strict";r.d(e,{A:()=>function t(){var e=new n,r=[],o=[],i=u;function c(t){let n=e.get(t);if(void 0===n){if(i!==u)return i;e.set(t,n=r.push(t)-1)}return o[n%o.length]}return c.domain=function(t){if(!arguments.length)return r.slice();for(let o of(r=[],e=new n,t))e.has(o)||e.set(o,r.push(o)-1);return c},c.range=function(t){return arguments.length?(o=Array.from(t),c):o.slice()},c.unknown=function(t){return arguments.length?(i=t,c):i},c.copy=function(){return t(r,o).unknown(i)},a.C.apply(c,arguments),c},h:()=>u});class n extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function o({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}var a=r(6256);let u=Symbol("implicit")},21899:(t,e,r)=>{var n=r(31481),o=r(24281),i=r(35457),a=r(87421),u=r(59901),c=r(7745);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l{var n=r(83693),o=r(26745);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},23508:(t,e,r)=>{"use strict";r.d(e,{m:()=>$});var n=r(12115),o=r(61927),i=r.n(o),a=r(80385),u=r.n(a),c=r(2821),l=r(49580);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rc[n]+s?Math.max(f,c[n]):Math.max(p,c[n])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(t=this.props.coordinate)?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null==(e=this.props.coordinate)?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,o,i,a,u,s,f,p,h,d,y,v,m,w,j,A,P,E=this,k=this.props,_=k.active,M=k.allowEscapeViewBox,T=k.animationDuration,C=k.animationEasing,D=k.children,I=k.coordinate,N=k.hasPayload,B=k.isAnimationActive,R=k.offset,L=k.position,z=k.reverseDirection,U=k.useTranslate3d,F=k.viewBox,$=k.wrapperStyle,W=(d=(t={allowEscapeViewBox:M,coordinate:I,offsetTopLeft:R,position:L,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:F}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,m=t.position,w=t.reverseDirection,j=t.tooltipBox,A=t.useTranslate3d,P=t.viewBox,j.height>0&&j.width>0&&y?(r=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.width,viewBox:P,viewBoxDimension:P.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.height,viewBox:P,viewBoxDimension:P.height}),useTranslate3d:A}).translateX,o=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:h,coordinate:y}).coordinate,u=i.translateX,s=i.translateY,(0,c.A)(g,b(b(b(b({},"".concat(g,"-right"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.Et)(u)&&a&&(0,l.Et)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.Et)(s)&&a&&(0,l.Et)(a.y)&&s0;return n.createElement(M,{allowEscapeViewBox:i,animationDuration:a,animationEasing:u,isAnimationActive:f,active:o,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:m,useTranslate3d:b,viewBox:g,wrapperStyle:x},(t=N(N({},this.props),{},{payload:O}),n.isValidElement(c)?n.cloneElement(c,t):"function"==typeof c?n.createElement(c,t):n.createElement(v,t)))}}],function(t,e){for(var r=0;r{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{"use strict";function n(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}r.d(e,{b:()=>n})},24281:(t,e,r)=>{var n=r(18683);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},24402:(t,e,r)=>{t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},24567:(t,e,r)=>{var n=r(48908);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a{var n=r(69833),o=r(56507),i=r(84856),a=r(9403),u=r(42979),c=r(25411),l=r(48728),s=r(38055),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var b=c(t),g=c(e),x=b?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(S&&!w)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var A=w&&d.call(t,"__wrapped__"),P=j&&d.call(e,"__wrapped__");if(A||P){var E=A?t.value():t,k=P?e.value():e;return m||(m=new n),v(E,k,r,y,m)}}return!!S&&(m||(m=new n),a(t,e,r,y,v,m))}},24719:(t,e,r)=>{"use strict";r.d(e,{s0:()=>n5,gH:()=>n0,YB:()=>oo,HQ:()=>or,xi:()=>oi,Hj:()=>og,BX:()=>n3,tA:()=>n2,DW:()=>oh,y2:()=>op,nb:()=>of,PW:()=>n7,Ay:()=>nQ,vf:()=>n6,Mk:()=>oy,Ps:()=>n1,Mn:()=>ol,kA:()=>od,Rh:()=>ot,w7:()=>os,zb:()=>oO,kr:()=>nZ,_L:()=>n9,KC:()=>ox,A1:()=>n4,W7:()=>on,AQ:()=>ob,_f:()=>oa});var n,o,i,a,u,c,l,s={};r.r(s),r.d(s,{scaleBand:()=>f.A,scaleDiverging:()=>function t(){var e=tN(rZ()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleDivergingLog:()=>function t(){var e=tq(rZ()).domain([.1,1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleDivergingPow:()=>rQ,scaleDivergingSqrt:()=>r0,scaleDivergingSymlog:()=>function t(){var e=tV(rZ());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleIdentity:()=>function t(e){var r;function n(t){return null==t||isNaN(t*=1)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,td),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,td):[0,1],tN(n)},scaleImplicit:()=>tG.h,scaleLinear:()=>tB,scaleLog:()=>function t(){let e=tq(tO()).domain([1,10]);return e.copy=()=>tx(e,t()).base(e.base()),tj.C.apply(e,arguments),e},scaleOrdinal:()=>tG.A,scalePoint:()=>f.z,scalePow:()=>tQ,scaleQuantile:()=>function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=Array(e-1);++t=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(r(t[i+1],i+1,t)-a)*(o-i)}}(r,t/e);return a}function a(t){return null==t||isNaN(t*=1)?e:n[A(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],efunction t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function u(t){return null!=t&&t<=t?a[A(i,t,0,o)]:e}function c(){var t=-1;for(i=Array(o);++t=o?[i[o-1],n]:[i[e-1],i[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return i.slice()},u.copy=function(){return t().domain([r,n]).range(a).unknown(e)},tj.C.apply(tN(u),arguments)},scaleRadial:()=>function t(){var e,r=tw(),n=[0,1],o=!1;function i(t){var n,i=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(i)?e:o?Math.round(i):i}return i.invert=function(t){return r.invert(t1(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,td)).map(t1)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},tj.C.apply(i,arguments),tN(i)},scaleSequential:()=>function t(){var e=tN(rG()(tv));return e.copy=function(){return rY(e,t())},tj.K.apply(e,arguments)},scaleSequentialLog:()=>function t(){var e=tq(rG()).domain([1,10]);return e.copy=function(){return rY(e,t()).base(e.base())},tj.K.apply(e,arguments)},scaleSequentialPow:()=>rK,scaleSequentialQuantile:()=>function t(){var e=[],r=tv;function n(t){if(null!=t&&!isNaN(t*=1))return r((A(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(g),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n*=1)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e*=1))){if(e<=0||n<2)return t3(t);if(e>=1)return t2(t);var n,o=(n-1)*e,i=Math.floor(o),a=t2((function t(e,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(e.length-1,o)),!(n<=r&&r<=o))return e;for(i=void 0===i?t5:function(t=g){if(t===g)return t5;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);o>n;){if(o-n>600){let a=o-n+1,u=r-n+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*l/a+s)),p=Math.min(o,Math.floor(r+(a-u)*l/a+s));t(e,r,f,p,i)}let a=e[r],u=n,c=o;for(t8(e,n,r),i(e[o],a)>0&&t8(e,n,o);ui(e[u],a);)++u;for(;i(e[c],a)>0;)--c}0===i(e[n],a)?t8(e,n,c):t8(e,++c,o),c<=r&&(n=c+1),r<=c&&(o=c-1)}return e})(t,i).subarray(0,i+1));return a+(t3(t.subarray(i+1))-a)*(o-i)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},tj.K.apply(n,arguments)},scaleSequentialSqrt:()=>rJ,scaleSequentialSymlog:()=>function t(){var e=tV(rG());return e.copy=function(){return rY(e,t()).constant(e.constant())},tj.K.apply(e,arguments)},scaleSqrt:()=>t0,scaleSymlog:()=>function t(){var e=tV(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.C.apply(e,arguments)},scaleThreshold:()=>function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[A(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(o=Math.min((r=Array.from(t)).length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},tj.C.apply(i,arguments)},scaleTime:()=>rX,scaleUtc:()=>rV,tickFormat:()=>tI});var f=r(30071);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,r){let n,o,i,a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(n=Math.round(t*(i=Math.pow(10,-u)/l)),o=Math.round(e*i),n/ie&&--o,i=-i):(n=Math.round(t/(i=Math.pow(10,u)*l)),o=Math.round(e/i),n*ie&&--o),o0))return[];if(t===e)return[t];let n=e=o))return[];let u=i-o+1,c=Array(u);if(n)if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,r,n;function o(t,n,i=0,a=t.length){if(i>>1;0>r(t[e],n)?i=e+1:a=e}while(ig(t(e),r),n=(e,r)=>t(e)-r):(e=t===g||t===x?t:w,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){let a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o>>1;0>=r(t[e],n)?o=e+1:i=e}while(o>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?q(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?q(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=D.exec(t))?new X(e[1],e[2],e[3],1):(e=I.exec(t))?new X(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?q(e[1],e[2],e[3],e[4]):(e=B.exec(t))?q(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=R.exec(t))?Z(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?Z(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?W(z[t]):"transparent"===t?new X(NaN,NaN,NaN,0):null}function W(t){return new X(t>>16&255,t>>8&255,255&t,1)}function q(t,e,r,n){return n<=0&&(t=e=r=NaN),new X(t,e,r,n)}function H(t,e,r,n){var o;return 1==arguments.length?((o=t)instanceof k||(o=$(o)),o)?new X((o=o.rgb()).r,o.g,o.b,o.opacity):new X:new X(t,e,r,null==n?1:n)}function X(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function V(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function G(){let t=Y(this.opacity);return`${1===t?"rgb(":"rgba("}${K(this.r)}, ${K(this.g)}, ${K(this.b)}${1===t?")":`, ${t})`}`}function Y(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function K(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return((t=K(t))<16?"0":"")+t.toString(16)}function Z(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,r,n)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=$(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+(r0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function te(t){return(t=(t||0)%360)<0?t+360:t}function tr(t){return Math.max(0,Math.min(1,t||0))}function tn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function to(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}P(k,$,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:F,toString:F}),P(X,H,E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new X(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new X(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new X(K(this.r),K(this.g),K(this.b),Y(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatHex8:function(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:G,toString:G})),P(tt,function(t,e,r,n){return 1==arguments.length?Q(t):new tt(t,e,r,null==n?1:n)},E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new X(tn(t>=240?t-240:t+120,o,n),tn(t,o,n),tn(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new tt(te(this.h),tr(this.s),tr(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Y(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tr(this.s)}%, ${100*tr(this.l)}%${1===t?")":`, ${t})`}`}}));let ti=t=>()=>t;function ta(t,e){var r=e-t;return r?function(e){return t+e*r}:ti(isNaN(t)?e:t)}let tu=function t(e){var r,n=1==(r=+e)?ta:function(t,e){var n,o,i;return e-t?(n=t,o=e,n=Math.pow(n,i=r),o=Math.pow(o,i)-n,i=1/i,function(t){return Math.pow(n+t*o,i)}):ti(isNaN(t)?e:t)};function o(t,e){var r=n((t=H(t)).r,(e=H(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function tc(t){return function(e){var r,n,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=nu&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(o=o[0])===(i=i[0])?l[c]?l[c]+=i:l[++c]=i:(l[++c]=null,s.push({i:c,x:tl(o,i)})),u=tf.lastIndex;return ue&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=c>2?tg:tb,o=i=null,f}function f(e){return null==e||isNaN(e*=1)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),tl)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function tw(){return tO()(tv,tv)}var tj=r(6256),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tA(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tP({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tP(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tE(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tk(t){return(t=tE(Math.abs(t)))?t[1]:NaN}function t_(t,e){var r=tE(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}tA.prototype=tP.prototype,tP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let tM={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>t_(100*t,e),r:t_,s:function(t,e){var r=tE(t,e);if(!r)return t+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return a===u?o:a>u?o+Array(a-u+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+tE(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tT(t){return t}var tC=Array.prototype.map,tD=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tI(t,e,r,n){var o,u,c=b(t,e,r);switch((n=tA(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tk(l)/3)))-tk(Math.abs(c))))||(n.precision=u),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,tk(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=c)))-tk(o))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-tk(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return i(n)}function tN(t){var e=t.domain;return t.ticks=function(t){var r=e();return v(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tI(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l0;){if((o=m(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else if(o<0)c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o;else break;n=o}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.C.apply(t,arguments),tN(t)}function tR(t,e){t=t.slice();var r,n=0,o=t.length-1,i=t[n],a=t[o];return a-t(-e,r)}function tq(t){let e,r,n=t(tL,tz),o=n.domain,a=10;function u(){var i,u;return e=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),t=>Math.log(t)/i),r=10===(u=a)?t$:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=tW(e),r=tW(r),t(tU,tF)):t(tL,tz),n}return n.base=function(t){return arguments.length?(a=+t,u()):a},n.domain=function(t){return arguments.length?(o(t),u()):o()},n.ticks=t=>{let n,i,u=o(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(n=1;nl)break;d.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))l)break;d.push(i)}2*d.length{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=tA(o)).precision||(o.trim=!0),o=i(o)),t===1/0)return o;let u=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*ao(tR(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tH(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tX(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tV(t){var e=1,r=t(tH(1),tX(e));return r.constant=function(r){return arguments.length?t(tH(e=+r),tX(e)):e},tN(r)}i=(o=function(t){var e,r,o,i=void 0===t.grouping||void 0===t.thousands?tT:(e=tC.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tT:(o=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return o[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tA(t)).fill,r=t.align,o=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,m=t.precision,b=t.trim,g=t.type;"n"===g?(v=!0,g="g"):tM[g]||(void 0===m&&(m=12),b=!0,g="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=tM[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var A=(t*=1)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),m),b&&(t=function(t){e:for(var e,r=t.length,n=1,o=-1;n0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==o&&(A=!1),h=(A?"("===o?o:f:"-"===o||"("===o?"":o)+h,S=("s"===g?tD[8+n/3]:"")+S+(A&&"("===o?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=i(t,1/0));var P=h.length+t.length+S.length,E=P>1)+h+t+S+E.slice(P);break;default:t=E+h+t+S}return l(t)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var r=h(((t=tA(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tk(e)/3))),o=Math.pow(10,-n),i=tD[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var tG=r(21533);function tY(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tK(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tJ(t){return t<0?-t*t:t*t}function tZ(t){var e=t(tv,tv),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(tv,tv):.5===r?t(tK,tJ):t(tY(r),tY(1/r)):r},tN(e)}function tQ(){var t=tZ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.C.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r=o)&&(r=o)}return r}function t3(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function t5(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te))}function t8(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let t4=new Date,t6=new Date;function t9(t,e,r,n){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{let a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r0))return u;do u.push(a=new Date(+r)),e(r,i),t(r);while(at9(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(o.count=(e,n)=>(t4.setTime(+e),t6.setTime(+n),t(t4),t(t6),Math.floor(r(t4,t6))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let t7=t9(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t7.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t9(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):t7:null,t7.range;let et=t9(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let er=t9(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());er.range;let en=t9(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());en.range;let eo=t9(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());eo.range;let ei=t9(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);ei.range;let ea=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t9(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t9(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t9(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let em=ev(0),eb=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);em.range,eb.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t9(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eA=t9(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eA.range;let eP=t9(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eP.every=t=>isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,eP.range;let eE=t9(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ek(t,e,r,n,o,i){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let o=Math.abs(r-e)/n,i=O(([,,t])=>t).right(a,o);if(i===a.length)return t.every(b(e/31536e6,r/31536e6,n));if(0===i)return t7.every(Math.max(b(e,r,n),1));let[u,c]=a[o/a[i-1][2]isFinite(t=Math.floor(t))&&t>0?t9(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,eE.range;let[e_,eM]=ek(eE,eA,em,eu,eo,er),[eT,eC]=ek(eP,eS,el,ei,en,ee);function eD(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eI(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eN(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eR=/^\s*\d+/,eL=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function eU(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i[t.toLowerCase(),e]))}function eq(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eH(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eX(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eV(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eG(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eY(t,e,r){var n=eR.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eJ(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eZ(t,e,r){var n=eR.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function eQ(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e0(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e1(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e2(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e3(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e5(t,e,r){var n=eR.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e8(t,e,r){var n=eR.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=eR.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function e6(t,e,r){var n=eL.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function e9(t,e,r){var n=eR.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function e7(t,e,r){var n=eR.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function rt(t,e){return eU(t.getDate(),e,2)}function re(t,e){return eU(t.getHours(),e,2)}function rr(t,e){return eU(t.getHours()%12||12,e,2)}function rn(t,e){return eU(1+ei.count(eP(t),t),e,3)}function ro(t,e){return eU(t.getMilliseconds(),e,3)}function ri(t,e){return ro(t,e)+"000"}function ra(t,e){return eU(t.getMonth()+1,e,2)}function ru(t,e){return eU(t.getMinutes(),e,2)}function rc(t,e){return eU(t.getSeconds(),e,2)}function rl(t){var e=t.getDay();return 0===e?7:e}function rs(t,e){return eU(el.count(eP(t)-1,t),e,2)}function rf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function rp(t,e){return t=rf(t),eU(eh.count(eP(t),t)+(4===eP(t).getDay()),e,2)}function rh(t){return t.getDay()}function rd(t,e){return eU(es.count(eP(t)-1,t),e,2)}function ry(t,e){return eU(t.getFullYear()%100,e,2)}function rv(t,e){return eU((t=rf(t)).getFullYear()%100,e,2)}function rm(t,e){return eU(t.getFullYear()%1e4,e,4)}function rb(t,e){var r=t.getDay();return eU((t=r>=4||0===r?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function rg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eU(e/60|0,"0",2)+eU(e%60,"0",2)}function rx(t,e){return eU(t.getUTCDate(),e,2)}function rO(t,e){return eU(t.getUTCHours(),e,2)}function rw(t,e){return eU(t.getUTCHours()%12||12,e,2)}function rj(t,e){return eU(1+ea.count(eE(t),t),e,3)}function rS(t,e){return eU(t.getUTCMilliseconds(),e,3)}function rA(t,e){return rS(t,e)+"000"}function rP(t,e){return eU(t.getUTCMonth()+1,e,2)}function rE(t,e){return eU(t.getUTCMinutes(),e,2)}function rk(t,e){return eU(t.getUTCSeconds(),e,2)}function r_(t){var e=t.getUTCDay();return 0===e?7:e}function rM(t,e){return eU(em.count(eE(t)-1,t),e,2)}function rT(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function rC(t,e){return t=rT(t),eU(eO.count(eE(t),t)+(4===eE(t).getUTCDay()),e,2)}function rD(t){return t.getUTCDay()}function rI(t,e){return eU(eb.count(eE(t)-1,t),e,2)}function rN(t,e){return eU(t.getUTCFullYear()%100,e,2)}function rB(t,e){return eU((t=rT(t)).getUTCFullYear()%100,e,2)}function rR(t,e){return eU(t.getUTCFullYear()%1e4,e,4)}function rL(t,e){var r=t.getUTCDay();return eU((t=r>=4||0===r?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function rz(){return"+0000"}function rU(){return"%"}function rF(t){return+t}function r$(t){return Math.floor(t/1e3)}function rW(t){return new Date(t)}function rq(t){return t instanceof Date?+t:+new Date(+t)}function rH(t,e,r,n,o,i,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:rF,s:r$,S:rc,u:rl,U:rs,V:rp,w:rh,W:rd,x:null,X:null,y:ry,Y:rm,Z:rg,"%":rU},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rx,e:rx,f:rA,g:rB,G:rL,H:rO,I:rw,j:rj,L:rS,m:rP,M:rE,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:rF,s:r$,S:rk,u:r_,U:rM,V:rC,w:rD,W:rI,x:null,X:null,y:rN,Y:rR,Z:rz,"%":rU},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:e0,e:e0,f:e4,g:eK,G:eY,H:e2,I:e2,j:e1,L:e8,m:eQ,M:e3,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:eZ,Q:e9,s:e7,S:e5,u:eH,U:eX,V:eV,w:eq,W:eG,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:eK,Y:eY,Z:eJ,"%":e6};function w(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=eI(eN(i.y,0,1))).getUTCDay())>4||0===o?eb.ceil(n):eb(n),n=ea.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=eD(eN(i.y,0,1))).getDay())>4||0===o?es.ceil(n):es(n),n=ei.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?eI(eN(i.y,0,1)).getUTCDay():eD(eN(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,eI(i)):eD(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a=c)return -1;if(37===(o=e.charCodeAt(a++))){if(!(i=O[(o=e.charAt(a++))in eB?e.charAt(a++):o])||(n=i(t,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var r2=r(27012),r3=r(73595);function r5(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function r8(t,e){return t[e]}function r4(t){let e=[];return e.key=t,e}var r6=r(72092),r9=r.n(r6),r7=r(91038),nt=r.n(r7),ne=r(80385),nr=r.n(ne),nn=r(71730),no=r.n(nn),ni=r(74743),na=r.n(ni),nu=r(98134),nc=r.n(nu),nl=r(84521),ns=r.n(nl),nf=r(32323),np=r.n(nf),nh=r(28568),nd=r.n(nh),ny=r(35138),nv=r.n(ny),nm=r(61927),nb=r.n(nm),ng=r(29533),nx=r.n(ng);function nO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,o):t(e-a,nA(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(o=n,i=r),[o,i]}function nL(t,e,r){if(t.lte(0))return new(nx())(0);var n=nC.getDigitCount(t.toNumber()),o=new(nx())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(nx())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(nx())(Math.ceil(u))}function nz(t,e,r){var n=1,o=new(nx())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(nx())(10).pow(nC.getDigitCount(t)-1),o=new(nx())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(nx())(Math.floor(t)))}else 0===t?o=new(nx())(Math.floor((e-1)/2)):r||(o=new(nx())(Math.floor(t)));var a=Math.floor((e-1)/2);return n_(nk(function(t){return o.add(new(nx())(t-a).mul(n)).toNumber()}),nE)(0,e)}var nU=nT(function(t){var e=nI(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nI(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(nD(nE(0,o-1).map(function(){return 1/0}))):[].concat(nD(nE(0,o-1).map(function(){return-1/0})),[l]);return r>n?nM(s):s}if(c===l)return nz(c,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(nx())(0),tickMin:new(nx())(0),tickMax:new(nx())(0)};var u=nL(new(nx())(r).sub(e).div(n-1),o,a),c=Math.ceil((i=e<=0&&r>=0?new(nx())(0):(i=new(nx())(e).add(r).div(2)).sub(new(nx())(i).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(nx())(r).sub(i).div(u).toNumber()),s=c+l+1;return s>n?t(e,r,n,o,a+1):(s0?l+(n-s):l,c=r>0?c:c+(n-s)),{step:u,tickMin:i.sub(new(nx())(c).mul(u)),tickMax:i.add(new(nx())(l).mul(u))})}(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=nC.rangeStep(h,d.add(new(nx())(.1).mul(p)),p);return r>n?nM(y):y});nT(function(t){var e=nI(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=nI(nR([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return nz(c,o,i);var s=nL(new(nx())(l).sub(c).div(a-1),i,0),f=n_(nk(function(t){return new(nx())(c).add(new(nx())(t).mul(s)).toNumber()}),nE)(0,a).filter(function(t){return t>=c&&t<=l});return r>n?nM(f):f});var nF=nT(function(t,e){var r=nI(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=nI(nR([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=nL(new(nx())(c).sub(u).div(l-1),i,0),f=[].concat(nD(nC.rangeStep(new(nx())(u),new(nx())(c).sub(new(nx())(.99).mul(s)),s)),[c]);return n>o?nM(f):f}),n$=r(81906),nW=r(49580),nq=r(70543),nH=r(56502);function nX(t){return(nX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nV(t){return function(t){if(Array.isArray(t))return nG(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nG(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nG(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nG(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(e=null==r?void 0:r.length)?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,c=0;c0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if((0,nW.sA)(s-l)!==(0,nW.sA)(f-s)){var h=[];if((0,nW.sA)(f-s)===(0,nW.sA)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[c].index;break}}}else for(var g=0;g0&&g(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},n1=function(t){var e,r,n=t.type.displayName,o=null!=(e=t.type)&&e.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},n2=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u=0});if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?nK(nK({},m),v[0].props):v[0].props,g=b.barSize,x=b[y];i[x]||(i[x]=[]);var O=nr()(g)?e:g;i[x].push({item:v[0],stackList:v.slice(1),barSize:nr()(O)?void 0:(0,nW.F4)(O,r,0)})}}return i},n3=function(t){var e,r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=void 0===i?[]:i,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,nW.F4)(r,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=o&&(h-=(c-1)*l,l=0),h>=o&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((o-h)/2|0)-l,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(nV(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:d})}),n},s)}else{var y=(0,nW.F4)(n,o,0,!0);o-2*y-(c-1)*l<=0&&(l=0);var v=(o-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(nV(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},n5=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=(0,nH.g)({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,nW.Et)(t[p]))return nK(nK({},t),{},nJ({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,nW.Et)(t[h]))return nK(nK({},t),{},nJ({},h,t[h]+(f||0)))}return t},n8=function(t,e,r,n,o){var i=e.props.children,a=(0,nq.aS)(i,n$.u).filter(function(t){var e;return e=t.props.direction,!!nr()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===e?"xAxis"===o:"y"!==e||"yAxis"===o)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nZ(e,r);if(nr()(n))return t;var o=Array.isArray(n)?[nt()(n),r9()(n)]:[n,n],i=u.reduce(function(t,r){var n=nZ(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},n4=function(t,e,r,n,o){var i=e.map(function(e){return n8(t,e,r,o,n)}).filter(function(t){return!nr()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},n6=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&n8(t,e,i,n)||nQ(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r=2?2*(0,nW.sA)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(o?o.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!np()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+c,value:t,offset:c}}):n.domain().map(function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}})},oe=new WeakMap,or=function(t,e){if("function"!=typeof e)return t;oe.has(t)||oe.set(t,new WeakMap);var r=oe.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},on=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(na()(n)){var u="scale".concat(nd()(n));return{scale:(s[u]||f.z)(),realScaleType:s[u]?u:"point"}}return no()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},oo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(ai||ui)&&t.domain([e[0],e[r-1]])}},oi=function(t,e){if(!t)return null;for(var r=0,n=t.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i0){for(var r,n=0,o=t[e[0]],i=o.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},oc=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=ou[r];return(function(){var t=(0,r3.A)([]),e=r5,r=r1,n=r8;function o(o){var i,a,u=Array.from(t.apply(this,arguments),r4),c=u.length,l=-1;for(let t of o)for(i=0,++l;i=0?0:o<0?o:n}return r[0]},od=function(t,e){var r,n=(null!=(r=t.type)&&r.defaultProps?nK(nK({},t.type.defaultProps),t.props):t.props).stackId;if((0,nW.vh)(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null},oy=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[nt()(e.concat([t[0]]).filter(nW.Et)),r9()(e.concat([t[1]]).filter(nW.Et))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ov=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,om=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ob=function(t,e,r){if(no()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,nW.Et)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ov.test(t[0])){var o=+ov.exec(t[0])[1];n[0]=e[0]-o}else no()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,nW.Et)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(om.test(t[1])){var i=+om.exec(t[1])[1];n[1]=e[1]+i}else no()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},og=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=nb()(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a{t.exports=Array.isArray},25902:(t,e,r)=>{var n=r(32598),o=r(26526),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")}},26526:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},26615:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(14294).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},26630:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},26660:(t,e,r)=>{t.exports=r(59955)(Object.keys,Object)},26745:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},26810:(t,e,r)=>{var n=r(51483);t.exports=function(){return n.Date.now()}},26932:(t,e,r)=>{var n=r(91108),o=r(57815);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},26991:(t,e,r)=>{"use strict";r.d(e,{u:()=>d});var n=r(2821),o=r(12115),i=r(22654),a=r.n(i),u=r(49580),c=r(58672),l=r(70543);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&(t=a()(t,S,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=_.current.getBoundingClientRect();return I(r.width,r.height),e.observe(_.current),function(){e.disconnect()}},[I,S]);var N=(0,o.useMemo)(function(){var t=C.containerWidth,e=C.containerHeight;if(t<0||e<0)return null;(0,c.R)((0,u._3)(y)||(0,u._3)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,m),(0,c.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,u._3)(y)?t:y,n=(0,u._3)(m)?e:m;i&&i>0&&(r?n=r/i:n&&(r=n*i),O&&n>O&&(n=O)),(0,c.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,y,m,g,x,i);var a=!Array.isArray(w)&&(0,l.Mn)(w.type).endsWith("Chart");return o.Children.map(w,function(t){return o.isValidElement(t)?(0,o.cloneElement)(t,p({width:r,height:n},a?{style:p({height:"100%",width:"100%",maxHeight:n,maxWidth:r},t.props.style)}:{})):t})},[i,w,m,O,x,g,C,y]);return o.createElement("div",{id:A?"".concat(A):void 0,className:(0,n.A)("recharts-responsive-container",P),style:p(p({},void 0===k?{}:k),{},{width:y,height:m,minWidth:g,minHeight:x,maxHeight:O}),ref:_},N)})},27012:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}r.d(e,{A:()=>n}),Array.prototype.slice},27467:(t,e,r)=>{var n=r(28007),o=r(17719),i=r(81495);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},27509:(t,e,r)=>{var n=r(18135);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},28007:(t,e,r)=>{var n=r(55428),o=r(60044),i=r(27509),a=r(92441),u=r(72377);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{t.exports=r(10883)("toUpperCase")},29101:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},29514:(t,e,r)=>{t.exports=r(83558)(r(51483),"DataView")},29533:function(t,e,r){var n;!function(o){"use strict";var i,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?P(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/1e7|0,l[i]%=1e7;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?P(e,p):e}function m(t,e,r){if(t!==~~t||tr)throw Error(l+t)}function b(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;et.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(o=t.d.length)?n:o;et.d[e]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return P(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,o=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(u=!1,e=g(S(this,o),S(t,o),o),u=!0,P(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?E(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):P(new r(this),n)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):E(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,o,i,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(o=Math.sqrt(+this))||o==1/0?(((e=b(this.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(g(this,i,a+2)).times(.5),b(i.d).slice(0,a)===(e=b(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(P(i,r+1,0),i.times(i).eq(this)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,P(n,r)},y.times=y.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(l=p.length)<(s=h.length)&&(i=p,p=h,h=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%1e7|0,e=c/1e7|0;i[o]=(i[o]+e)%1e7|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?P(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(m(t,0,1e9),void 0===e?e=n.rounding:m(e,0,8),P(r,t+O(r)+1,e))},y.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=k(n,!0):(m(t,0,1e9),void 0===e?e=o.rounding:m(e,0,8),r=k(n=P(new o(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?k(this):(m(t,0,1e9),void 0===e?e=o.rounding:m(e,0,8),r=k((n=P(new o(this),t+O(this)+1,e)).abs(),!1,t+O(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return P(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,o,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(i);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(i))return s;if(n=p.precision,t.eq(i))return P(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=0x1fffffffffffff){for(o=new p(i),e=Math.ceil(n/7+4),u=!1;r%2&&_((o=o.times(s)).d,e),0!==(r=f(r/2));)_((s=s.times(s)).d,e);return u=!0,t.s<0?new p(i).div(o):P(o,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(S(s,n+12)),u=!0,(o=x(o)).s=a,o},y.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?(r=O(o),n=k(o,r<=i.toExpNeg||r>=i.toExpPos)):(m(t,1,1e9),void 0===e?e=i.rounding:m(e,0,8),r=O(o=P(new i(o),t,e)),n=k(o,t<=r||r<=i.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(m(t,1,1e9),void 0===e?e=r.rounding:m(e,0,8)),P(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=+(t[r]1;)t.shift()}return function(n,o,i,a){var u,l,s,f,p,h,d,y,v,m,b,g,x,w,j,S,A,E,k=n.constructor,_=n.s==o.s?1:-1,M=n.d,T=o.d;if(!n.s)return new k(n);if(!o.s)throw Error(c+"Division by zero");for(s=0,l=n.e-o.e,A=T.length,j=M.length,y=(d=new k(_)).d=[];T[s]==(M[s]||0);)++s;if(T[s]>(M[s]||0)&&--l,(g=null==i?i=k.precision:a?i+(O(n)-O(o))+1:i)<0)return new k(0);if(g=g/7+2|0,s=0,1==A)for(f=0,T=T[0],g++;(s1&&(T=t(T,f),M=t(M,f),A=T.length,j=M.length),w=A,m=(v=M.slice(0,A)).length;m=1e7/2&&++S;do f=0,(u=e(T,v,A,m))<0?(b=v[0],A!=m&&(b=1e7*b+(v[1]||0)),(f=b/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(T,f)).length,m=v.length,1==(u=e(p,v,h,m))&&(f--,r(p,A16)throw Error(s+O(t));if(!t.s)return new h(i);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new h(i),h.precision=c;;){if(n=P(n.times(t),c),r=r.times(++l),b((a=o.plus(g(n,r,c))).d).slice(0,c)===b(o.d).slice(0,c)){for(;f--;)o=P(o.times(o),c);return h.precision=d,null==e?(u=!0,P(o,d)):o}o=a}}function O(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function w(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return P(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var r,n,o,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,x=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(m,p);if(m.precision=p+=10,n=(r=b(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(m,p+2,x).times(a+""),y=S(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=x,null==e?(u=!0,P(y,x)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=b((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=l=y=g(y.minus(i),y.plus(i),p),h=P(y.times(y),p),o=3;;){if(l=P(l.times(h),p),b((f=s.plus(g(l,new m(o),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(m,p+2,x).times(a+""))),s=g(s,new m(d),p),m.precision=x,null==e?(u=!0,P(s,x)):s;s=f,o+=2}}function A(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,t.e=f((r=r-n-1)/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),nd||t.e<-d))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function P(t,e,r){var n,o,i,a,c,l,h,y,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=v.length))return t;for(a=1,h=i=v[y];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==v[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return l?(i=O(t),v.length=1,e=e-i-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,i=1,y--):(v.length=y+1,i=p(10,7-n),v[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;)if(0==y){1e7==(v[0]+=i)&&(v[0]=1,++t.e);break}else{if(v[y]+=i,1e7!=v[y])break;v[y--]=0,i=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function E(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?P(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function _(t,e){if(t.length>e)return t.length=e,!0}function M(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(l+r+": "+n);if(void 0!==(n=t[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n);return this}(a=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return A(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))A(this,t);else throw Error(l+t)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=M,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{"use strict";r.d(e,{A:()=>i,z:()=>a});var n=r(6256),o=r(21533);function i(){var t,e,r=(0,o.A)().unknown(void 0),a=r.domain,u=r.range,c=0,l=1,s=!1,f=0,p=0,h=.5;function d(){var r=a().length,n=l{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},30508:(t,e,r)=>{var n=r(94897);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},30556:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},31326:(t,e,r)=>{var n=r(25411),o=r(36702),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},31450:t=>{t.exports=function(t,e){return t{var n=r(81495),o=r(60656),i=r(43539);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{t.exports=function(t,e){return null==t?void 0:t[e]}},32323:(t,e,r)=>{var n=r(9735);t.exports=function(t){return n(t)&&t!=+t}},32438:(t,e,r)=>{var n=r(50030);t.exports=function(t){return null==t?"":n(t)}},32499:(t,e,r)=>{t.exports=r(83558)(r(51483),"WeakMap")},32598:(t,e,r)=>{var n=r(80942),o=r(26526);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},32812:(t,e,r)=>{var n=r(6407),o=r(48908);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},33011:(t,e,r)=>{var n=r(7291),o=r(8082),i=r(90176),a=r(25411),u=r(1807);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},33692:(t,e,r)=>{"use strict";r.d(e,{m:()=>n});var n={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return n[t]},set:function(t,e){if("string"==typeof t)n[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){n[e]=t[e]})}}}},34010:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;eu,Kg:()=>a,yy:()=>f}),r(80385),r(12115),r(71730);var a=Math.PI/180,u=function(t,e,r,n){return{x:t+Math.cos(-a*n)*r,y:e+Math.sin(-a*n)*r}},c=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},l=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=c({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=Math.acos((r-o)/a);return n>i&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},f=function(t,e){var r,n=l({x:t.x,y:t.y},e),o=n.radius,a=n.angle,u=e.innerRadius,c=e.outerRadius;if(oc)return!1;if(0===o)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return r?i(i({},e),{},{radius:o,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},34741:(t,e,r)=>{var n=r(80942),o=r(71661),i=r(26526),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},35138:(t,e,r)=>{var n=r(83642);t.exports=function(t,e){return n(t,e)}},35206:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},35443:(t,e,r)=>{var n=r(73423),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},35457:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{"use strict";r.d(e,{A3:()=>f,Pu:()=>s});var n=r(33692);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||n.m.isSsr)return{width:0,height:0};var o=(Object.keys(e=a({},r)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:o});if(u.widthCache[i])return u.widthCache[i];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),o);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[i]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},36702:(t,e,r)=>{var n=r(80942),o=r(26526);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},36772:(t,e,r)=>{var n=r(78097),o=r(72374),i=r(91958);t.exports=function(t){return n(t,i,o)}},36862:(t,e,r)=>{var n=r(30556),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},36927:(t,e,r)=>{"use strict";r.d(e,{c:()=>c});var n=r(12115),o=r(2821),i=r(84072),a=r(70543);function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},37849:(t,e,r)=>{"use strict";t.exports=r(68381)},37951:(t,e,r)=>{var n=r(80942),o=r(35206),i=r(26526),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},38055:(t,e,r)=>{var n=r(37951),o=r(99425),i=r(83903),a=i&&i.isTypedArray;t.exports=a?o(a):n},38185:(t,e,r)=>{var n=r(26630);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},38208:t=>{t.exports=function(t){return t.split("")}},39058:(t,e,r)=>{var n=r(78363),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},39089:(t,e,r)=>{t.exports=r(55777)()},39346:(t,e,r)=>{"use strict";r.d(e,{E:()=>R});var n=r(12115),o=r(80385),i=r.n(o),a=r(2821),u=r(49580),c=r(33692),l=r(70543),s=r(36462);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+ra||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,v=c.length-1,m=0;y<=v&&m<=c.length-1;){var b=Math.floor((y+v)/2),g=_(d(b-1),2),x=g[0],O=g[1],w=_(d(b),1)[0];if(x||w||(y=b+1),x&&w&&(v=b-1),!x&&w){i=O;break}m++}return i||h},I=function(t){return[{words:i()(t)?[]:t.toString().split(T)}]},N=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!c.m.isSsr){var u=C({breakAll:i,children:n,style:o});if(!u)return I(n);var l=u.wordsWithComputedWidth,s=u.spaceWidth;return D({breakAll:i,children:n,maxLines:a,style:o},l,s,e,r)}return I(n)},B="#808080",R=function(t){var e,r=t.x,o=void 0===r?0:r,i=t.y,c=void 0===i?0:i,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,m=t.verticalAnchor,b=t.fill,g=void 0===b?B:b,x=k(t,A),O=(0,n.useMemo)(function(){return N({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,_=x.angle,M=x.className,T=x.breakAll,C=k(x,P);if(!(0,u.vh)(o)||!(0,u.vh)(c))return null;var D=o+((0,u.Et)(w)?w:0),I=c+((0,u.Et)(j)?j:0);switch(void 0===m?"end":m){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var R=[];if(y){var L=O[0].width,z=x.width;R.push("scale(".concat(((0,u.Et)(z)?z/L:1)/L,")"))}return _&&R.push("rotate(".concat(_,", ").concat(D,", ").concat(I,")")),R.length&&(C.transform=R.join(" ")),n.createElement("text",E({},(0,l.J9)(C,!0),{x:D,y:I,className:(0,a.A)("recharts-text",M),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,r){var o=t.words.join(T?"":" ");return n.createElement("tspan",{x:D,dy:0===r?e:f,key:"".concat(o,"-").concat(r)},o)}))}},39830:(t,e,r)=>{"use strict";r.d(e,{DR:()=>g,pj:()=>w,rY:()=>k,yi:()=>E,Yp:()=>x,hj:()=>P,sk:()=>A,AF:()=>O,Nk:()=>S,$G:()=>j});var n=r(12115),o=r(55744),i=r(92653),a=r.n(i),u=r(91373),c=r.n(u),l=r(66126),s=r.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return"l"+t.left+"t"+t.top+"w"+t.width+"h"+t.height}),f=r(49580),p=(0,n.createContext)(void 0),h=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),y=(0,n.createContext)({}),v=(0,n.createContext)(void 0),m=(0,n.createContext)(0),b=(0,n.createContext)(0),g=function(t){var e=t.state,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(i);return n.createElement(p.Provider,{value:r},n.createElement(h.Provider,{value:o},n.createElement(y.Provider,{value:i},n.createElement(d.Provider,{value:f},n.createElement(v.Provider,{value:a},n.createElement(m.Provider,{value:l},n.createElement(b.Provider,{value:c},u)))))))},x=function(){return(0,n.useContext)(v)},O=function(t){var e=(0,n.useContext)(p);null==e&&(0,o.A)(!1);var r=e[t];return null==r&&(0,o.A)(!1),r},w=function(){var t=(0,n.useContext)(p);return(0,f.lX)(t)},j=function(){var t=(0,n.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.lX)(t)},S=function(t){var e=(0,n.useContext)(h);null==e&&(0,o.A)(!1);var r=e[t];return null==r&&(0,o.A)(!1),r},A=function(){return(0,n.useContext)(d)},P=function(){return(0,n.useContext)(y)},E=function(){return(0,n.useContext)(b)},k=function(){return(0,n.useContext)(m)}},40672:(t,e,r)=>{var n=r(33011),o=r(48908),i=r(91958);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},41334:(t,e,r)=>{var n=r(30508),o=r(16815),i=r(33011);t.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},41982:(t,e,r)=>{var n=r(36862),o=r(26745),i=r(36702),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||l.test(t)?s(t.slice(2),r?2:8):u.test(t)?a:+t}},42493:(t,e,r)=>{var n=r(14638);t.exports=function(t){return function(e){return n(e,t)}}},42642:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(29514),o=r(17719),i=r(69568),a=r(45645),u=r(32499),c=r(80942),l=r(37183),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),b=l(a),g=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case b:return p;case g:return h}return e}),t.exports=x},43161:(t,e,r)=>{var n=r(70300),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},43526:(t,e,r)=>{var n=r(48486),o=r(94897),i=r(90176);t.exports=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i},43539:t=>{t.exports=function(t){return this.__data__.has(t)}},44882:(t,e,r)=>{var n=r(90988);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o=c)return l;return l*("desc"==r[o]?-1:1)}}return t.index-e.index}},45645:(t,e,r)=>{t.exports=r(83558)(r(51483),"Set")},46239:t=>{t.exports=function(t){return this.__data__.get(t)}},47387:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{"use strict";r.d(e,{N:()=>B});var n=r(12115),o=r(60833),i=r(71730),a=r.n(i),u=r(80385),c=r.n(u),l=r(35138),s=r.n(l),f=r(2821),p=r(7050),h=r(36927),d=r(87095),y=r(14724),v=r(81906),m=r(49580),b=r(70543),g=r(33692),x=r(24719),O=["type","layout","connectNulls","ref"],w=["key"];function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function A(){return(A=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);ru){l=[].concat(k(n.slice(0,s)),[u-f]);break}var p=l.length%2==0?[0,c]:[c];return[].concat(k(i.repeat(n,a)),k(l),p).map(function(t){return"".concat(t,"px")}).join(", ")}),I(t,"id",(0,m.NF)("recharts-line-")),I(t,"pathRef",function(e){t.mainCurve=e}),I(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),I(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&D(i,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,u=r.layout,c=r.children,l=(0,b.aS)(c,v.u);if(!l)return null;var s=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,x.kr)(t.payload,e)}};return n.createElement(d.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return n.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:u,dataPointFormatter:s})}))}},{key:"renderDots",value:function(t,e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.dot,u=o.points,c=o.dataKey,l=(0,b.J9)(this.props,!1),s=(0,b.J9)(a,!0),f=u.map(function(t,e){var r=E(E(E({key:"dot-".concat(e),r:3},l),s),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return i.renderDotItem(a,r)}),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return n.createElement(d.W,A({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,r,o){var i=this.props,a=i.type,u=i.layout,c=i.connectNulls,l=(i.ref,S(i,O)),s=E(E(E({},(0,b.J9)(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},o),{},{type:a,layout:u,connectNulls:c});return n.createElement(p.I,A({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,i=this.props,a=i.points,u=i.strokeDasharray,c=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,f=i.animationEasing,p=i.animationId,h=i.animateNewValues,d=i.width,y=i.height,v=this.state,b=v.prevPoints,g=v.totalLength;return n.createElement(o.Ay,{begin:l,duration:s,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var o,i=n.t;if(b){var c=b.length/a.length,l=a.map(function(t,e){var r=Math.floor(e*c);if(b[r]){var n=b[r],o=(0,m.Dj)(n.x,t.x),a=(0,m.Dj)(n.y,t.y);return E(E({},t),{},{x:o(i),y:a(i)})}if(h){var u=(0,m.Dj)(2*d,t.x),l=(0,m.Dj)(y/2,t.y);return E(E({},t),{},{x:u(i),y:l(i)})}return E(E({},t),{},{x:t.x,y:t.y})});return r.renderCurveStatically(l,t,e)}var s=(0,m.Dj)(0,g)(i);if(u){var f="".concat(u).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});o=r.getStrokeDasharray(s,g,f)}else o=r.generateSimpleStrokeDasharray(g,s);return r.renderCurveStatically(a,t,e,{strokeDasharray:o})})}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,u=i.totalLength;return o&&n&&n.length&&(!a&&u>0||!s()(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,o=e.dot,i=e.points,a=e.className,u=e.xAxis,l=e.yAxis,s=e.top,p=e.left,h=e.width,v=e.height,m=e.isAnimationActive,g=e.id;if(r||!i||!i.length)return null;var x=this.state.isAnimationFinished,O=1===i.length,w=(0,f.A)("recharts-line",a),j=u&&u.allowDataOverflow,S=l&&l.allowDataOverflow,A=j||S,P=c()(g)?this.id:g,E=null!=(t=(0,b.J9)(o,!1))?t:{r:3,strokeWidth:2},k=E.r,_=E.strokeWidth,M=((0,b.sT)(o)?o:{}).clipDot,T=void 0===M||M,C=2*(void 0===k?3:k)+(void 0===_?2:_);return n.createElement(d.W,{className:w},j||S?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(P)},n.createElement("rect",{x:j?p:p-h/2,y:S?s:s-v/2,width:j?h:2*h,height:S?v:2*v})),!T&&n.createElement("clipPath",{id:"clipPath-dots-".concat(P)},n.createElement("rect",{x:p-C/2,y:s-C/2,width:h+C,height:v+C}))):null,!O&&this.renderCurve(A,P),this.renderErrorBar(A,P),(O||o)&&this.renderDots(A,T,P),(!m||x)&&y.Z.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(k(t),[0]):t,n=[],o=0;o{"use strict";r.d(e,{W:()=>v});var n=r(12115),o=r(2821),i=r(39830),a=r(64396),u=r(24719);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{t.exports=function(t){return function(){return t}}},48665:(t,e,r)=>{var n=r(36702);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o{t=r.nmd(t);var n=r(51483),o=r(21457),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||o},48883:(t,e,r)=>{var n=r(91426),o=r(14638),i=r(33011),a=r(32812),u=r(15791),c=r(99425),l=r(44882),s=r(90176),f=r(25411);t.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[s];var p=-1;return e=n(e,c(i)),u(a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}}),function(t,e){return l(t,e,r)})}},48908:(t,e,r)=>{var n=r(71730),o=r(35206);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},49580:(t,e,r)=>{"use strict";r.d(e,{CG:()=>g,Dj:()=>x,Et:()=>h,F4:()=>m,NF:()=>v,_3:()=>p,eP:()=>O,lX:()=>b,sA:()=>f,vh:()=>d});var n=r(74743),o=r.n(n),i=r(32323),a=r.n(i),u=r(98134),c=r.n(u),l=r(9735),s=r.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},m=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return n;if(p(t)){var u=t.indexOf("%");r=e*parseFloat(t.slice(0,u))/100}else r=+t;return a()(r)&&(r=n),i&&r>e&&(r=e),r},b=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n{var n=r(73423),o=r(91426),i=r(25411),a=r(36702),u=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},51204:(t,e,r)=>{var n=r(70300);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},51483:(t,e,r)=>{var n=r(24402),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},53002:(t,e,r)=>{"use strict";r.d(e,{yp:()=>C,GG:()=>z,NE:()=>D,nZ:()=>I,xQ:()=>N});var n=r(12115),o=r(71730),i=r.n(o),a=r(34741),u=r.n(a),c=r(98142),l=r.n(c),s=r(35138),f=r.n(s),p=r(8829),h=r(2821),d=r(60833),y=r(70543);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:A},function(t){var e=t.upperWidth,i=t.lowerWidth,u=t.height,c=t.x,l=t.y;return n.createElement(d.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},n.createElement("path",m({},(0,y.J9)(r,!0),{className:P,d:O(c,l,e,i,u),ref:o})))}):n.createElement("g",null,n.createElement("path",m({},(0,y.J9)(r,!0),{className:P,d:O(c,l,s,f,p)})))},S=r(88062),A=r(87095),P=r(92143),E=["option","shapeType","propTransformer","activeClassName","isActive"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function M(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,E);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,M(M({},f),(0,n.isValidElement)(r)?r.props:r));else if(i()(r))e=r(f);else if(u()(r)&&!l()(r)){var p=(void 0===a?function(t,e){return M(M({},e),t)}:a)(r,f);e=n.createElement(T,{shapeType:o,elementProps:p})}else e=n.createElement(T,{shapeType:o,elementProps:f});return s?n.createElement(A.W,{className:void 0===c?"recharts-active-shape":c},e):e}function D(t,e){return null!=e&&"trapezoids"in t.props}function I(t,e){return null!=e&&"sectors"in t.props}function N(t,e){return null!=e&&"points"in t.props}function B(t,e){var r,n,o=t.x===(null==e||null==(r=e.labelViewBox)?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null==(n=e.labelViewBox)?void 0:n.y)||t.y===e.y;return o&&i}function R(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function z(t){var e,r,n,o=t.activeTooltipItem,i=t.graphicalItem,a=t.itemData,u=(D(i,o)?e="trapezoids":I(i,o)?e="sectors":N(i,o)&&(e="points"),e),c=D(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:I(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:N(i,o)?o.payload:{},l=a.filter(function(t,e){var r=f()(c,t),n=i.props[u].filter(function(t){var e;return(D(i,o)?e=B:I(i,o)?e=R:N(i,o)&&(e=L),e)(t,o)}),a=i.props[u].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(l[l.length-1])}},53341:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},53988:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(29887),o=r(33011),i=r(80055),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},55428:t=>{t.exports=function(){this.__data__=[],this.size=0}},55744:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function n(t,e){if(!t)throw Error("Invariant failed")}},55777:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},56502:(t,e,r)=>{"use strict";r.d(e,{g:()=>l});var n=r(7620),o=r(24719),i=r(70543);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{var n=r(31481),o=r(8524),i=r(87421);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d{var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},57815:(t,e,r)=>{var n=r(73423),o=r(25902),i=r(25411),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},57923:t=>{t.exports=function(t){return this.__data__.has(t)}},58034:(t,e,r)=>{var n=r(28007);t.exports=function(){this.__data__=new n,this.size=0}},58672:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});var n=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},59901:(t,e,r)=>{var n=r(45645),o=r(8186),i=r(7745);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},59955:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},60044:(t,e,r)=>{var n=r(18135),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},60239:(t,e,r)=>{var n=r(74861),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},60833:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>tS});var n=r(12115),o=r(12758),i=r.n(o),a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function s(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function f(t){return a(t).concat(u(t))}var p=Object.hasOwn||function(t,e){return c.call(t,e)};function h(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var d=Object.getOwnPropertyDescriptor,y=Object.keys;function v(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function m(t,e){return h(t.getTime(),e.getTime())}function b(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function g(t,e){return t===e}function x(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.entries(),c=0;(n=u.next())&&!n.done;){for(var l=e.entries(),s=!1,f=0;(o=l.next())&&!o.done;){if(a[f]){f++;continue}var p=n.value,h=o.value;if(r.equals(p[0],h[0],c,f,t,e,r)&&r.equals(p[1],h[1],p[0],h[0],t,e,r)){s=a[f]=!0;break}f++}if(!s)return!1;c++}return!0}function O(t,e,r){var n=y(t),o=n.length;if(y(e).length!==o)return!1;for(;o-- >0;)if(!k(t,e,r,n[o]))return!1;return!0}function w(t,e,r){var n,o,i,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if(!k(t,e,r,n=a[u])||(o=d(t,n),i=d(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function j(t,e){return h(t.valueOf(),e.valueOf())}function S(t,e){return t.source===e.source&&t.flags===e.flags}function A(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.values();(n=u.next())&&!n.done;){for(var c=e.values(),l=!1,s=0;(o=c.next())&&!o.done;){if(!a[s]&&r.equals(n.value,o.value,n.value,o.value,t,e,r)){l=a[s]=!0;break}s++}if(!l)return!1}return!0}function P(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function E(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function k(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||p(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var _=Array.isArray,M="undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView:null,T=Object.assign,C=Object.prototype.toString.call.bind(Object.prototype.toString),D=I();function I(t){void 0===t&&(t={});var e,r,n,o,i,a,u,c,f,p,d,y,k,D,I=t.circular,N=t.createInternalComparator,B=t.createState,R=t.strict,L=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?w:v,areDatesEqual:m,areErrorsEqual:b,areFunctionsEqual:g,areMapsEqual:n?l(x,w):x,areNumbersEqual:h,areObjectsEqual:n?w:O,arePrimitiveWrappersEqual:j,areRegExpsEqual:S,areSetsEqual:n?l(A,w):A,areTypedArraysEqual:n?w:P,areUrlsEqual:E,unknownTagComparators:void 0};if(r&&(o=T({},o,r(o))),e){var i=s(o.areArraysEqual),a=s(o.areMapsEqual),u=s(o.areObjectsEqual),c=s(o.areSetsEqual);o=T({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t)).areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,u=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,p=e.areRegExpsEqual,d=e.areSetsEqual,y=e.areTypedArraysEqual,k=e.areUrlsEqual,D=e.unknownTagComparators,function(t,e,l){if(t===e)return!0;if(null==t||null==e)return!1;var s=typeof t;if(s!==typeof e)return!1;if("object"!==s)return"number"===s?u(t,e,l):"function"===s&&i(t,e,l);var h=t.constructor;if(h!==e.constructor)return!1;if(h===Object)return c(t,e,l);if(_(t))return r(t,e,l);if(null!=M&&M(t))return y(t,e,l);if(h===Date)return n(t,e,l);if(h===RegExp)return p(t,e,l);if(h===Map)return a(t,e,l);if(h===Set)return d(t,e,l);var v=C(t);if("[object Date]"===v)return n(t,e,l);if("[object RegExp]"===v)return p(t,e,l);if("[object Map]"===v)return a(t,e,l);if("[object Set]"===v)return d(t,e,l);if("[object Object]"===v)return"function"!=typeof t.then&&"function"!=typeof e.then&&c(t,e,l);if("[object URL]"===v)return k(t,e,l);if("[object Error]"===v)return o(t,e,l);if("[object Arguments]"===v)return c(t,e,l);if("[object Boolean]"===v||"[object Number]"===v||"[object String]"===v)return f(t,e,l);if(D){var m=D[v];if(!m){var b=null!=t?t[Symbol.toStringTag]:void 0;b&&(m=D[b])}if(m)return m(t,e,l)}return!1}),z=N?N(L):function(t,e,r,n,o,i,a){return L(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache;return r(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:o,meta:u.meta,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:void 0!==I&&I,comparator:L,createState:B,equals:z,strict:void 0!==R&&R})}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>e)t(o),r=-1;else{var i;i=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=K(i,u),h=K(a,c),d=(t=i,e=u,function(r){var n;return Y([].concat(function(t){if(Array.isArray(t))return V(t)}(n=G(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||X(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o,i=p(r)-e,a=d(r);if(1e-4>Math.abs(i-e)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return h(r)};return y.isStepper=!1,y},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(i)?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},Q=function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(th(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=q(p,i,u),d=tv(tv(tv({},f.style),c),{},{transition:h});return[].concat(th(t),[d,i,s]).filter($)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return R(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(t,e)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void N(t.bind(null,a),i):(t(i),void N(t.bind(null,a)))}"object"===B(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}));var e,r,n,o=t.begin,i=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c)return void this.runJSAnimation(t);if(f.length>1)return void this.runStepAnimation(t);var d=a?tm({},a,u):u,y=q(Object.keys(d),i,c);h.start([l,o,tv(tv({},d),{},{transition:y}),i,s])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),o=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,tp)),a=n.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!o||0===a||r<=0)return e;var c=function(t){var e=t.props,r=e.style,o=e.className;return(0,n.cloneElement)(t,tv(tv({},i),{},{style:tv(tv({},void 0===r?{}:r),u),className:o}))};return 1===a?c(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var r=0;r{var n=r(70300),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},61927:(t,e,r)=>{var n=r(26932),o=r(48883),i=r(11428),a=r(17202);t.exports=i(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])})},63134:(t,e,r)=>{var n=r(95295),o=r(26660),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},63270:(t,e,r)=>{var n=r(33011),o=r(21899);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},63296:(t,e,r)=>{"use strict";r.d(e,{J:()=>A});var n=r(12115),o=r(80385),i=r.n(o),a=r(71730),u=r.n(a),c=r(26745),l=r.n(c),s=r(2821),f=r(39346),p=r(70543),h=r(49580),d=r(34010);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["offset"];function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1;"insideStart"===u?(o=b+S*l,a=O):"insideEnd"===u?(o=g-S*l,a=!O):"end"===u&&(o=g+S*l,a=O),a=j<=0?a:!a;var A=(0,d.IZ)(p,y,w,o),P=(0,d.IZ)(p,y,w,o+(a?1:-1)*359),E="M".concat(A.x,",").concat(A.y,"\n A").concat(w,",").concat(w,",0,1,").concat(+!a,",\n ").concat(P.x,",").concat(P.y),k=i()(t.id)?(0,h.NF)("recharts-radial-line-"):t.id;return n.createElement("text",x({},r,{dominantBaseline:"central",className:(0,s.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:k,d:E})),n.createElement("textPath",{xlinkHref:"#".concat(k)},e))},j=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e.cx,i=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=(0,d.IZ)(o,i,u+r,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.IZ)(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*n,m=y>0?"end":"start",b=y>0?"start":"end";if("top"===o)return g(g({},{x:i+u/2,y:a-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(a-r.y,0),width:u}:{});if("bottom"===o)return g(g({},{x:i+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(a+c),0),width:u}:{});if("left"===o){var x={x:i-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},x),r?{width:Math.max(x.x-r.x,0),height:c}:{})}if("right"===o){var O={x:i+u+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:c}:{})}var w=r?{width:u,height:c}:{};return"insideLeft"===o?g({x:i+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideRight"===o?g({x:i+u-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===o?g({x:i+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?g({x:i+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?g({x:i+v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideTopRight"===o?g({x:i+u-v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideBottomLeft"===o?g({x:i+v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):"insideBottomRight"===o?g({x:i+u-v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):l()(o)&&((0,h.Et)(o.x)||(0,h._3)(o.x))&&((0,h.Et)(o.y)||(0,h._3)(o.y))?g({x:i+(0,h.F4)(o.x,u),y:a+(0,h.F4)(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:i+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function A(t){var e,r=t.offset,o=g({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,v)),a=o.viewBox,c=o.position,l=o.value,d=o.children,y=o.content,m=o.className,b=o.textBreakAll;if(!a||i()(l)&&i()(d)&&!(0,n.isValidElement)(y)&&!u()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(u()(y)){if(e=(0,n.createElement)(y,o),(0,n.isValidElement)(e))return e}else e=O(o);var A="cx"in a&&(0,h.Et)(a.cx),P=(0,p.J9)(o,!0);if(A&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(o,e,P);var E=A?j(o):S(o);return n.createElement(f.E,x({className:(0,s.A)("recharts-label",void 0===m?"":m)},P,E,{breakAll:b}),e)}A.displayName="Label";var P=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,m=t.clockWise,b=t.labelViewBox;if(b)return b;if((0,h.Et)(y)&&(0,h.Et)(v)){if((0,h.Et)(s)&&(0,h.Et)(f))return{x:s,y:f,width:y,height:v};if((0,h.Et)(p)&&(0,h.Et)(d))return{x:p,y:d,width:y,height:v}}return(0,h.Et)(s)&&(0,h.Et)(f)?{x:s,y:f,width:0,height:0}:(0,h.Et)(e)&&(0,h.Et)(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};A.parseViewBox=P,A.renderCallByParent=function(t,e){var r,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var a=t.children,c=P(t),s=(0,p.aS)(a,A).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||c,key:"label-".concat(r)})});if(!i)return s;return[(r=t.label,o=e||c,!r?null:!0===r?n.createElement(A,{key:"label-implicit",viewBox:o}):(0,h.vh)(r)?n.createElement(A,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===A?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):u()(r)?n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):l()(r)?n.createElement(A,x({viewBox:o},r,{key:"label-implicit"})):null)].concat(function(t){if(Array.isArray(t))return m(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return m(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,e)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},63431:(t,e,r)=>{var n=r(51204),o=r(13132),i=r(61877),a=r(43161),u=r(6745);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{"use strict";r.d(e,{u:()=>T});var n=r(12115),o=r(71730),i=r.n(o),a=r(98134),u=r.n(a),c=r(2821),l=r(23999),s=r(87095),f=r(39346),p=r(63296),h=r(49580),d=r(84072),y=r(70543),v=r(96878),m=["viewBox"],b=["viewBox"],g=["ticks"];function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function A(t,e){for(var r=0;r0?this.props:d)),o<=0||a<=0||!y||!y.length)?null:n.createElement(s.W,{className:(0,c.A)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return n.isValidElement(t)?n.cloneElement(t,e):i()(t)?t(e):n.createElement(f.E,O({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&A(o.prototype,e),r&&A(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.Component);_(T,"displayName","CartesianAxis"),_(T,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},65211:(t,e,r)=>{t.exports=r(78720)()},65246:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},66126:(t,e,r)=>{var n=r(81495);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},68381:(t,e)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case a:case i:case f:case p:return t;default:switch(t=t&&t.$$typeof){case l:case c:case s:case d:case h:case u:return t;default:return e}}case n:return e}}}(t)===o}},68425:(t,e,r)=>{"use strict";r.d(e,{d:()=>_});var n=r(12115),o=r(71730),i=r.n(o),a=r(58672),u=r(49580),c=r(70543),l=r(24719),s=r(96878),f=r(64396),p=r(39830),h=["x1","y1","x2","y2","key"],d=["offset"];function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,u=t.height,c=t.ry;return n.createElement("rect",{x:o,y:i,ry:c,width:a,height:u,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function O(t,e){var r;if(n.isValidElement(t))r=n.cloneElement(t,e);else if(i()(t))r=t(e);else{var o=e.x1,a=e.y1,u=e.x2,l=e.y2,s=e.key,f=g(e,h),p=(0,c.J9)(f,!1),y=(p.offset,g(p,d));r=n.createElement("line",b({},y,{x1:o,y1:a,x2:u,y2:l,fill:"none",key:s}))}return r}function w(t){var e=t.x,r=t.width,o=t.horizontal,i=void 0===o||o,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var u=a.map(function(n,o){return O(i,m(m({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function j(t){var e=t.y,r=t.height,o=t.vertical,i=void 0===o||o,a=t.verticalPoints;if(!i||!a||!a.length)return null;var u=a.map(function(n,o){return O(i,m(m({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function S(t){var e=t.horizontalFill,r=t.fillOpacity,o=t.x,i=t.y,a=t.width,u=t.height,c=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var f=s.map(function(t,c){var l=s[c+1]?s[c+1]-t:i+u-t;if(l<=0)return null;var f=c%e.length;return n.createElement("rect",{key:"react-".concat(c),y:t,x:o,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function A(t){var e=t.vertical,r=t.verticalFill,o=t.fillOpacity,i=t.x,a=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!r||!r.length)return null;var s=l.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var l=s[e+1]?s[e+1]-t:i+u-t;if(l<=0)return null;var f=e%r.length;return n.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:l,height:c,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var P=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return(0,l.PW)((0,s.f)(m(m(m({},f.u.defaultProps),r),{},{ticks:(0,l.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},E=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return(0,l.PW)((0,s.f)(m(m(m({},f.u.defaultProps),r),{},{ticks:(0,l.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},k={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function _(t){var e,r,o,c,l,s,f=(0,p.yi)(),h=(0,p.rY)(),d=(0,p.hj)(),v=m(m({},t),{},{stroke:null!=(e=t.stroke)?e:k.stroke,fill:null!=(r=t.fill)?r:k.fill,horizontal:null!=(o=t.horizontal)?o:k.horizontal,horizontalFill:null!=(c=t.horizontalFill)?c:k.horizontalFill,vertical:null!=(l=t.vertical)?l:k.vertical,verticalFill:null!=(s=t.verticalFill)?s:k.verticalFill,x:(0,u.Et)(t.x)?t.x:d.left,y:(0,u.Et)(t.y)?t.y:d.top,width:(0,u.Et)(t.width)?t.width:d.width,height:(0,u.Et)(t.height)?t.height:d.height}),g=v.x,O=v.y,_=v.width,M=v.height,T=v.syncWithTicks,C=v.horizontalValues,D=v.verticalValues,I=(0,p.pj)(),N=(0,p.$G)();if(!(0,u.Et)(_)||_<=0||!(0,u.Et)(M)||M<=0||!(0,u.Et)(g)||g!==+g||!(0,u.Et)(O)||O!==+O)return null;var B=v.verticalCoordinatesGenerator||P,R=v.horizontalCoordinatesGenerator||E,L=v.horizontalPoints,z=v.verticalPoints;if((!L||!L.length)&&i()(R)){var U=C&&C.length,F=R({yAxis:N?m(m({},N),{},{ticks:U?C:N.ticks}):void 0,width:f,height:h,offset:d},!!U||T);(0,a.R)(Array.isArray(F),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(F),"]")),Array.isArray(F)&&(L=F)}if((!z||!z.length)&&i()(B)){var $=D&&D.length,W=B({xAxis:I?m(m({},I),{},{ticks:$?D:I.ticks}):void 0,width:f,height:h,offset:d},!!$||T);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(W),"]")),Array.isArray(W)&&(z=W)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(x,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height,ry:v.ry}),n.createElement(w,b({},v,{offset:d,horizontalPoints:L,xAxis:I,yAxis:N})),n.createElement(j,b({},v,{offset:d,verticalPoints:z,xAxis:I,yAxis:N})),n.createElement(S,b({},v,{horizontalPoints:L})),n.createElement(A,b({},v,{verticalPoints:z})))}_.displayName="CartesianGrid"},68867:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},68999:t=>{t.exports=function(){return[]}},69079:(t,e,r)=>{var n=r(69833),o=r(83642);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n{t.exports=r(83558)(r(51483),"Promise")},69833:(t,e,r)=>{var n=r(28007),o=r(58034),i=r(65246),a=r(46239),u=r(57923),c=r(27467);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,t.exports=l},69905:(t,e,r)=>{"use strict";r.d(e,{u:()=>c});var n=r(12115),o=r(2821),i=r(70543),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),y=l||{width:r,height:c,x:0,y:0},v=(0,o.A)("recharts-surface",s);return n.createElement("svg",u({},(0,i.J9)(d,!0,"svg"),{className:v,width:r,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,h),e)}},70300:(t,e,r)=>{t.exports=r(83558)(Object,"create")},70543:(t,e,r)=>{"use strict";r.d(e,{AW:()=>L,BU:()=>k,J9:()=>D,Me:()=>_,Mn:()=>j,OV:()=>I,X_:()=>R,aS:()=>E,ee:()=>B,sT:()=>T});var n=r(98134),o=r.n(n),i=r(80385),a=r.n(i),u=r(74743),c=r.n(u),l=r(71730),s=r.n(l),f=r(26745),p=r.n(f),h=r(12115),d=r(37849),y=r(49580),v=r(23999),m=r(84072),b=["children"],g=["children"];function x(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,A=null,P=function t(e){if(e===S&&Array.isArray(A))return A;var r=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))}),A=r,S=e,r};function E(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],P(t).forEach(function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function k(t,e){var r=E(t,e);return r&&r[0]}var _=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},M=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T=function(t){return t&&"object"===O(t)&&"clipDot"in t},C=function(t,e,r,n){var o,i=null!=(o=null===m.VU||void 0===m.VU?void 0:m.VU[n])?o:[];return!s()(t)&&(n&&i.includes(e)||m.QQ.includes(e))||r&&m.j2.includes(e)},D=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,h.isValidElement)(t)&&(n=t.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(t){var i;C(null==(i=n)?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},I=function t(e,r){if(e===r)return!0;var n=h.Children.count(e);if(n!==h.Children.count(r))return!1;if(0===n)return!0;if(1===n)return N(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(t);else if(t){var i=j(t.type),a=e[i]||{},u=a.handler,l=a.once;if(u&&(!l||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},L=function(t,e){return P(e).indexOf(t)}},70637:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(38208),o=r(57716),i=r(79608);t.exports=function(t){return o(t)?i(t):n(t)}},71661:(t,e,r)=>{t.exports=r(59955)(Object.getPrototypeOf,Object)},71730:(t,e,r)=>{var n=r(80942),o=r(26745);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},72092:(t,e,r)=>{var n=r(48665),o=r(89109),i=r(90176);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},72374:(t,e,r)=>{var n=r(42642),o=r(68999),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return i.call(t,e)})}:o},72377:(t,e,r)=>{var n=r(18135);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},73423:(t,e,r)=>{t.exports=r(51483).Symbol},73595:(t,e,r)=>{"use strict";function n(t){return function(){return t}}r.d(e,{A:()=>n})},73697:(t,e,r)=>{"use strict";r.d(e,{h:()=>v});var n=r(12115),o=r(2821),i=r(39830),a=r(64396),u=r(24719);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function d(){return(d=Object.assign?Object.assign.bind():function(t){for(var e=1;e{var n=r(96273),o=r(9142);t.exports=function(t,e){return null!=t&&o(t,e,n)}},74743:(t,e,r)=>{var n=r(80942),o=r(25411),i=r(26526);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},74861:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},76462:(t,e,r)=>{var n=r(26745);t.exports=function(t){return t==t&&!n(t)}},76917:(t,e,r)=>{var n=r(36702),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},77852:(t,e,r)=>{var n=r(38185);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},78097:(t,e,r)=>{var n=r(91108),o=r(25411);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},78363:(t,e,r)=>{t.exports=r(51483)["__core-js_shared__"]},78720:(t,e,r)=>{var n=r(15907),o=r(17202),i=r(14144);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e{var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+r+"|"+n+")?",c="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[o,i,a].join("|")+")"+c+u+")*",s=RegExp(n+"(?="+n+")|"+("(?:"+[o+r+"?",r,i,a,"["+e+"]"].join("|"))+")"+(c+u+l),"g");t.exports=function(t){return t.match(s)||[]}},80009:(t,e,r)=>{var n=r(38185);t.exports=function(t){return n(this,t).has(t)}},80055:(t,e,r)=>{var n=r(14144);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},80385:t=>{t.exports=function(t){return null==t}},80389:(t,e,r)=>{var n=r(38185);t.exports=function(t){return n(this,t).get(t)}},80942:(t,e,r)=>{var n=r(73423),o=r(35443),i=r(58840),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},81495:(t,e,r)=>{var n=r(15668),o=r(77852),i=r(80389),a=r(80009),u=r(16809);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(4816),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},81906:(t,e,r)=>{"use strict";r.d(e,{u:()=>v});var n=r(12115),o=r(55744),i=r(87095),a=r(70543),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),m=(0,a.J9)(v,!1);"x"===this.props.direction&&"number"!==d.type&&(0,o.A)(!1);var b=p.map(function(t){var o,a,u=h(t,f),p=u.x,v=u.y,b=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{i=(r=r.call(t)).next,!1;for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=O[0],a=O[1]}else o=a=g;if("vertical"===r){var w=d.scale,j=v+e,S=j+c,A=j-c,P=w(b-o),E=w(b+a);x.push({x1:E,y1:S,x2:E,y2:A}),x.push({x1:P,y1:j,x2:E,y2:j}),x.push({x1:P,y1:S,x2:P,y2:A})}else if("horizontal"===r){var k=y.scale,_=p+e,M=_-c,T=_+c,C=k(b-o),D=k(b+a);x.push({x1:M,y1:D,x2:T,y2:D}),x.push({x1:_,y1:C,x2:_,y2:D}),x.push({x1:M,y1:C,x2:T,y2:C})}return n.createElement(i.W,l({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},m),x.map(function(t){return n.createElement("line",l({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},b)}}],function(t,e){for(var r=0;r{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},82979:(t,e,r)=>{var n=r(53988),o=r(25902),i=r(25411),a=r(48728),u=r(70637),c=r(38055),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&c(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)(e||l.call(t,v))&&!(h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y)))&&d.push(v);return d}},83558:(t,e,r)=>{var n=r(94885),o=r(32198);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},83642:(t,e,r)=>{var n=r(24604),o=r(26526);t.exports=function t(e,r,i,a,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,a,t,u):e!=e&&r!=r)}},83693:(t,e,r)=>{var n=r(26745),o=r(26810),i=r(41982),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h,n=t-d;return void 0===h||r>=e||r<0||v&&n>=s}function x(){var t,r,n,i=o();if(g(i))return O(i);p=setTimeout(x,(t=i-h,r=i-d,n=e-t,v?u(n,s-r):n))}function O(t){return(p=void 0,m&&c)?b(t):(c=l=void 0,f)}function w(){var t,r=o(),n=g(r);if(c=arguments,l=this,h=r,n){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?b(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),b(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},83903:(t,e,r)=>{t=r.nmd(t);var n=r(24402),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},84072:(t,e,r)=>{"use strict";r.d(e,{QQ:()=>u,VU:()=>l,XC:()=>p,_U:()=>f,j2:()=>s});var n=r(12115),o=r(26745),i=r.n(o);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["points","pathLength"],l={svg:["viewBox","children"],polygon:c,polyline:c},s=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,n.isValidElement)(t)&&(r=t.props),!i()(r))return null;var o={};return Object.keys(r).forEach(function(t){s.includes(t)&&(o[t]=e||function(e){return r[t](r,e)})}),o},p=function(t,e,r){if(!i()(t)||"object"!==a(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];s.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t){return i(e,r,t),null})}),n}},84521:(t,e,r)=>{var n=r(26932),o=r(96676);t.exports=function(t,e){return n(o(t,e),1)}},84729:(t,e,r)=>{var n=r(43526);t.exports=r(3489)(n)},84856:(t,e,r)=>{var n=r(73423),o=r(91602),i=r(14344),a=r(56507),u=r(68867),c=r(7745),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)break;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},86790:(t,e,r)=>{"use strict";r.d(e,{b:()=>eB});var n=r(12115),o=r(80385),i=r.n(o),a=r(71730),u=r.n(a),c=r(65211),l=r.n(c),s=r(98134),f=r.n(s),p=r(61927),h=r.n(p),d=r(22654),y=r.n(d),v=r(2821),m=r(55744),b=r(69905),g=r(87095),x=r(23508),O=r(7620),w=r(36927),j=r(8829),S=r(70543),A=r(30071),P=r(39346),E=r(24719),k=r(49580);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})}),e.detachDragEndListener()}),W(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(e,"handleSlideDragStart",function(t){var r=X(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&$(o,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,c),f=o.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=(0,E.kr)(r[t],o,t);return u()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=X(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex,g=function(){var t=h.length-1;return"startX"===n&&(o>i?m%p==0:b%p==0)||!!(oi?b%p==0:m%p==0)||!!(o>i)&&b===t};this.setState(W(W({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(W({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.fill,u=t.stroke;return n.createElement("rect",{stroke:u,fill:a,x:e,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,o=t.width,i=t.height,a=t.data,u=t.children,c=t.padding,l=n.Children.only(u);return l?n.cloneElement(l,{x:e,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),m=L(L({},(0,S.J9)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),b=p||"Min value: ".concat(null==(r=h[d])?void 0:r.name,", Max value: ").concat(null==(i=h[y])?void 0:i.name);return n.createElement(g.W,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,o=r.y,i=r.height,a=r.stroke,u=r.travellerWidth,c=Math.min(t,e)+u,l=Math.max(Math.abs(e-t)-u,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return n.createElement(g.W,{className:"recharts-brush-texts"},n.createElement(P.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),n.createElement(P.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,o=t.children,i=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,m=s.isTravellerFocused;if(!e||!e.length||!(0,k.Et)(i)||!(0,k.Et)(a)||!(0,k.Et)(u)||!(0,k.Et)(c)||u<=0||c<=0)return null;var b=(0,v.A)("recharts-brush",r),x=1===n.Children.count(o),O=I("userSelect","none");return n.createElement(g.W,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||m||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,o=t.width,i=t.height,a=t.stroke,u=Math.floor(r+i/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:e,y:r,width:o,height:i,fill:a,stroke:"none"}),n.createElement("line",{x1:e+1,y1:u,x2:e+o-1,y2:u,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:e+1,y1:u+2,x2:e+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return n.isValidElement(t)?n.cloneElement(t,e):u()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return L({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?H({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i}return e>=t[o]?o:n}}],e&&z(o.prototype,e),r&&z(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);W(V,"displayName","Brush"),W(V,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var G=r(36462),Y=r(56502),K=r(63296),J=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Z=r(399),Q=r(58672);function tt(){return(tt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,t1));return(0,k.Et)(r)&&(0,k.Et)(i)&&(0,k.Et)(f)&&(0,k.Et)(h)&&(0,k.Et)(u)&&(0,k.Et)(l)?n.createElement("path",t2({},(0,S.J9)(y,!0),{className:(0,v.A)("recharts-cross",d),d:"M".concat(r,",").concat(u,"v").concat(h,"M").concat(l,",").concat(i,"h").concat(f)})):null};function t8(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,t$.IZ)(e,r,n,o),(0,t$.IZ)(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}var t4=r(88062);function t6(t){return(t6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t7(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(eu=function(){return!!t})()}function ec(t){return(ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function el(t,e){return(el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function es(t){return function(t){if(Array.isArray(t))return ep(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ef(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(t,e){if(t){if("string"==typeof t)return ep(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ep(t,e)}}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?i:t&&t.length&&(0,k.Et)(n)&&(0,k.Et)(o)?t.slice(n,o+1):[]};function ej(t){return"number"===t?[0,"auto"]:void 0}var eS=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=ew(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var c,l,s=null!=(c=u.props.data)?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,k.eP)(f,i.dataKey,n)}else l=s&&s[r]||a[r];return l?[].concat(es(o),[(0,E.zb)(u,l)]):o},[])},eA=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,E.gH)(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=eS(t,e,l,s),p=eO(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},eP=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,E._L)(f,o);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?ed(ed({},r.type.defaultProps),r.props):r.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=y[a];if(e[j])return e;var S=ew(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a])===j}),dataStartIndex:c,dataEndIndex:s}),A=S.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&(0,k.Et)(n)&&(0,k.Et)(o))return!0}return!1})(y.domain,b,v)&&(M=(0,E.AQ)(y.domain,null,b),d&&("number"===v||"auto"!==x)&&(C=(0,E.Ay)(S,m,"category")));var P=ej(v);if(!M||0===M.length){var _,M,T,C,D,I=null!=(D=y.domain)?D:P;if(m){if(M=(0,E.Ay)(S,m,v),"category"===v&&d){var N=(0,k.CG)(M);g&&N?(T=M,M=l()(0,A)):g||(M=(0,E.KC)(I,M,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(es(t),[e])},[]))}else if("category"===v)M=g?M.filter(function(t){return""!==t&&!i()(t)}):(0,E.KC)(I,M,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||i()(e)?t:[].concat(es(t),[e])},[]);else if("number"===v){var B=(0,E.A1)(S,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a],o="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===j&&(w||!o)}),m,o,f);B&&(M=B)}d&&("number"===v||"auto"!==x)&&(C=(0,E.Ay)(S,m,"category"))}else M=d?l()(0,A):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,E.Mk)(u[j].stackGroups,c,s):(0,E.vf)(S,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===j&&(w||!r)}),v,f,!0);"number"===v?(M=tF(p,M,j,o,O),I&&(M=(0,E.AQ)(I,M,b))):"category"===v&&I&&M.every(function(t){return I.indexOf(t)>=0})&&(M=I)}return ed(ed({},e),{},ey({},j,ed(ed({},y),{},{axisType:o,domain:M,categoricalDomain:C,duplicateDomain:T,originalDomain:null!=(_=y.domain)?_:P,isCategorical:d,layout:f})))},{})},eE=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=ew(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,E._L)(s,o),v=-1;return r.reduce(function(t,e){var m,b=(void 0!==e.type.defaultProps?ed(ed({},e.type.defaultProps),e.props):e.props)[i],g=ej("number");return t[b]?t:(v++,m=y?l()(0,d):a&&a[b]&&a[b].hasStack?tF(p,m=(0,E.Mk)(a[b].stackGroups,u,c),b,o):tF(p,m=(0,E.AQ)(g,(0,E.vf)(h,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null==(e=t.type.defaultProps)?void 0:e[i],o="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===b&&!o}),"number",s),n.defaultProps.allowDataOverflow),b,o),ed(ed({},t),{},ey({},b,ed(ed({axisType:o},n.defaultProps),{},{hide:!0,orientation:f()(em,"".concat(o,".").concat(v%2),null),domain:m,originalDomain:g,isCategorical:y,layout:s}))))},{})},ek=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=(0,S.aS)(l,o),p={};return f&&f.length?p=eP(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=eE(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},e_=function(t){var e=(0,k.lX)(t),r=(0,E.Rh)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:h()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,E.Hj)(e,r)}},eM=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.BU)(e,V),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},eT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eC=function(t,e){var r=t.props,n=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,u=void 0===a?{}:a,c=r.width,l=r.height,s=r.children,p=r.margin||{},h=(0,S.BU)(s,V),d=(0,S.BU)(s,O.s),y=Object.keys(u).reduce(function(t,e){var r=u[e],n=r.orientation;return r.mirror||r.hide?t:ed(ed({},t),{},ey({},n,t[n]+r.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(i).reduce(function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:ed(ed({},t),{},ey({},n,f()(t,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),m=ed(ed({},v),y),b=m.bottom;h&&(m.bottom+=h.props.height||V.defaultProps.height),d&&e&&(m=(0,E.s0)(m,n,r,e));var g=c-m.left-m.right,x=l-m.top-m.bottom;return ed(ed({brushBottom:b},m),{},{width:Math.max(g,0),height:Math.max(x,0)})},eD=r(47643),eI=r(47734),eN=r(73697),eB=function(t){var e=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,a=void 0===o?"axis":o,c=t.validateTooltipEventTypes,l=void 0===c?["axis"]:c,s=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,O=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,f=t.layout,p=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=eT(f),v=y.numericAxisName,b=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var O=ew(t.data,{graphicalItems:[r],dataStartIndex:u,dataEndIndex:c}),w=void 0!==r.type.defaultProps?ed(ed({},r.type.defaultProps),r.props):r.props,j=w.dataKey,A=w.maxBarSize,P=w["".concat(v,"Id")],k=w["".concat(b,"Id")],_=s.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,m.A)(!1);var i=n[o];return ed(ed({},t),{},ey(ey({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,E.Rh)(i)))},{}),M=_[b],T=_["".concat(b,"Ticks")],C=n&&n[P]&&n[P].hasStack&&(0,E.kA)(r,n[P].stackGroups),D=(0,S.Mn)(r.type).indexOf("Bar")>=0,I=(0,E.Hj)(M,T),N=[],B=g&&(0,E.tA)({barSize:l,stackGroups:n,totalSize:"xAxis"===b?_[b].width:"yAxis"===b?_[b].height:void 0});if(D){var R,L,z=i()(A)?d:A,U=null!=(R=null!=(L=(0,E.Hj)(M,T,!0))?L:z)?R:0;N=(0,E.BX)({barGap:p,barCategoryGap:h,bandSize:U!==I?U:I,sizeList:B[k],maxBarSize:z}),U!==I&&(N=N.map(function(t){return ed(ed({},t),{},{position:ed(ed({},t.position),{},{offset:t.position.offset-U/2})})}))}var F=r&&r.type&&r.type.getComposedData;F&&x.push({props:ed(ed({},F(ed(ed({},_),{},{displayedData:O,props:t,dataKey:j,item:r,bandSize:I,barPosition:N,offset:o,stackedData:C,layout:f,dataStartIndex:u,dataEndIndex:c}))),{},ey(ey(ey({key:r.key||"item-".concat(y)},v,_[v]),b,_[b]),"animationId",a)),childIndex:(0,S.AW)(r,t.children),item:r})}),x},A=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.Me)({props:o}))return null;var c=o.children,l=o.layout,f=o.stackOffset,p=o.data,d=o.reverseStackOrder,y=eT(l),v=y.numericAxisName,m=y.cateAxisName,b=(0,S.aS)(c,r),g=(0,E.Mn)(p,b,"".concat(v,"Id"),"".concat(m,"Id"),f,d),x=s.reduce(function(t,e){var r="".concat(e.axisType,"Map");return ed(ed({},t),{},ey({},r,ek(o,ed(ed({},e),{},{graphicalItems:b,stackGroups:e.axisType===v&&g,dataStartIndex:i,dataEndIndex:a}))))},{}),w=eC(ed(ed({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(o,x[t],w,t.replace("Map",""),e)});var j=e_(x["".concat(m,"Map")]),A=O(o,ed(ed({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:g,offset:w}));return ed(ed({formattedGraphicalItems:A,graphicalItems:b,offset:w,stackGroups:g},j),x)},P=function(t){var r;function o(t){var r,a,c,l,s;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return l=o,s=[t],l=ec(l),ey(c=function(t,e){if(e&&("object"===en(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,eu()?Reflect.construct(l,s||[],ec(this).constructor):l.apply(this,s)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ey(c,"accessibilityManager",new tJ),ey(c,"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;c.setState(ed({legendBBox:t},A({props:c.props,dataStartIndex:r,dataEndIndex:n,updateId:o},ed(ed({},c.state),{},{legendBBox:t}))))}}),ey(c,"handleReceiveSyncEvent",function(t,e,r){c.props.syncId===t&&(r!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),ey(c,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==c.state.dataStartIndex||r!==c.state.dataEndIndex){var n=c.state.updateId;c.setState(function(){return ed({dataStartIndex:e,dataEndIndex:r},A({props:c.props,dataStartIndex:e,dataEndIndex:r,updateId:n},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),ey(c,"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var r=ed(ed({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseEnter;u()(n)&&n(r,t)}}),ey(c,"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),r=e?ed(ed({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(r),c.triggerSyncEvent(r);var n=c.props.onMouseMove;u()(n)&&n(r,t)}),ey(c,"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),ey(c,"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),ey(c,"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),ey(c,"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var r=c.props.onMouseLeave;u()(r)&&r(e,t)}),ey(c,"handleOuterEvent",function(t){var e,r=(0,S.X_)(t),n=f()(c.props,"".concat(r));r&&u()(n)&&n(null!=(e=/.*touch.*/i.test(r)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))?e:{},t)}),ey(c,"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var r=ed(ed({},e),{},{isTooltipActive:!0});c.setState(r),c.triggerSyncEvent(r);var n=c.props.onClick;u()(n)&&n(r,t)}}),ey(c,"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),ey(c,"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),ey(c,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),ey(c,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),ey(c,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),ey(c,"handleDoubleClick",function(t){var e=c.props.onDoubleClick;u()(e)&&e(c.getMouseInfo(t),t)}),ey(c,"handleContextMenu",function(t){var e=c.props.onContextMenu;u()(e)&&e(c.getMouseInfo(t),t)}),ey(c,"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tH.emit(tX,c.props.syncId,t,c.eventEmitterSymbol)}),ey(c,"applySyncEvent",function(t){var e=c.props,r=e.layout,n=e.syncMethod,o=c.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(ed({dataStartIndex:i,dataEndIndex:a},A({props:c.props,dataStartIndex:i,dataEndIndex:a,updateId:o},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());D=(0,k.eP)(v,T,p),I=m&&b&&(0,k.eP)(b,T,p)}else D=null==v?void 0:v[f],I=m&&b&&b[f];if(A||j){var C=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,n.cloneElement)(t,ed(ed(ed({},o.props),_),{},{activeIndex:C})),null,null]}if(!i()(D))return[M].concat(es(c.renderActivePoints({item:o,activePoint:D,basePoint:I,childIndex:f,isRange:m})))}else{var D,I,N,B=(null!=(N=c.getItemByXY(c.state.activeCoordinate))?N:{graphicalItem:M}).graphicalItem,R=B.item,L=void 0===R?t:R,z=B.childIndex,U=ed(ed(ed({},o.props),_),{},{activeIndex:z});return[(0,n.cloneElement)(L,U),null,null]}return m?[M,null,null]:[M,null]}),ey(c,"renderCustomized",function(t,e,r){return(0,n.cloneElement)(t,ed(ed({key:"recharts-customized-".concat(r)},c.props),c.state))}),ey(c,"renderMap",{CartesianGrid:{handler:ex,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:ex},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:ex},YAxis:{handler:ex},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!=(r=t.id)?r:(0,k.NF)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!=(a=t.throttleDelay)?a:1e3/60),c.state={},c}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&el(o,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(t=this.props.margin.left)?t:0,top:null!=(e=this.props.margin.top)?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=(0,S.BU)(e,x.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=eS(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=ed(ed({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.OV)([(0,S.BU)(t.children,x.m)],[(0,S.BU)(this.props.children,x.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.BU)(this.props.children,x.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return l.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,G.A3)(r),o={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},i=r.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&l){var s=(0,k.lX)(c).scale,f=(0,k.lX)(l).scale,p=s&&s.invert?s.invert(o.chartX):null,h=f&&f.invert?f.invert(o.chartY):null;return ed(ed({},o),{},{xValue:p,yValue:h})}var d=eA(this.state,this.props.data,this.props.layout,a);return d?ed(ed({},o),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,k.lX)(c);return(0,t$.yy)({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.BU)(t,x.m),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),ed(ed({},(0,tV._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tH.on(tX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tH.removeListener(tX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o{"use strict";r.d(e,{W:()=>c});var n=r(12115),o=r(2821),i=r(70543),a=["children","className"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,a),s=(0,o.A)("recharts-layer",c);return n.createElement("g",u({className:s},(0,i.J9)(l,!0),{ref:e}),r)})},87421:t=>{t.exports=function(t,e){return t.has(e)}},87594:(t,e,r)=>{var n=r(6407);t.exports=function(t,e){var r;return n(t,function(t,n,o){return!(r=e(t,n,o))}),!!r}},88062:(t,e,r)=>{"use strict";r.d(e,{h:()=>v});var n=r(12115),o=r(2821),i=r(70543),a=r(34010),u=r(49580);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(i>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var d=(0,a.IZ)(e,r,n,i),y=(0,a.IZ)(e,r,n,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(e,",").concat(r," Z");return h},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.sA)(s-l),d=p({cx:e,cy:r,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,m=d.theta,b=p({cx:e,cy:r,radius:o,angle:s,sign:-f,cornerRadius:i,cornerIsExternal:c}),g=b.circleTangency,x=b.lineTangency,O=b.theta,w=c?Math.abs(l-s):Math.abs(l-s)-m-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):h({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var S=p({cx:e,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),A=S.circleTangency,P=S.lineTangency,E=S.theta,k=p({cx:e,cy:r,radius:n,angle:s,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),_=k.circleTangency,M=k.lineTangency,T=k.theta,C=c?Math.abs(l-s):Math.abs(l-s)-E-T;if(C<0&&0===i)return"".concat(j,"L").concat(e,",").concat(r,"Z");j+="L".concat(M.x,",").concat(M.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"\n A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else j+="L".concat(e,",").concat(r,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,r=f(f({},y),t),a=r.cx,c=r.cy,s=r.innerRadius,p=r.outerRadius,v=r.cornerRadius,m=r.forceCornerRadius,b=r.cornerIsExternal,g=r.startAngle,x=r.endAngle,O=r.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:m,cornerIsExternal:b,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),n.createElement("path",l({},(0,i.J9)(r,!0),{className:w,d:e,role:"img"}))}},89109:t=>{t.exports=function(t,e){return t>e}},89569:(t,e,r)=>{"use strict";r.d(e,{i:()=>c});let n=Math.PI,o=2*n,i=o-1e-6;function a(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6)if(Math.abs(f*c-l*s)>1e-6&&i){let h=r-a,d=o-u,y=c*c+l*l,v=Math.sqrt(y),m=Math.sqrt(p),b=i*Math.tan((n-Math.acos((y+p-(h*h+d*d))/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,a,u,c){if(t*=1,e*=1,r*=1,c=!!c,r<0)throw Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(d<0&&(d=d%o+o),d>i?this._append`A${r},${r},0,1,${h},${t-l},${e-s}A${r},${r},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${r},${r},0,${+(d>=n)},${h},${this._x1=t+r*Math.cos(u)},${this._y1=e+r*Math.sin(u)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new u(e)}u.prototype},90176:t=>{t.exports=function(t){return t}},90421:(t,e,r)=>{var n=r(6407);t.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},90576:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(14294).A)("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},90685:(t,e,r)=>{"use strict";r.d(e,{s:()=>u});var n=r(63270),o=r.n(n),i=r(71730),a=r.n(i);function u(t,e,r){return!0===e?o()(t,r):a()(e)?o()(t,e):t}},90925:function(t,e){var r,n,o;!function(i){"use strict";var a=i.setTimeout,u=i.clearTimeout,c=i.XMLHttpRequest,l=i.XDomainRequest,s=i.ActiveXObject,f=i.EventSource,p=i.document,h=i.Promise,d=i.fetch,y=i.Response,v=i.TextDecoder,m=i.TextEncoder,b=i.AbortController;if("undefined"==typeof window||void 0===p||"readyState"in p||null!=p.body||(p.readyState="loading",window.addEventListener("load",function(t){p.readyState="complete"},!1)),null==c&&null!=s&&(c=function(){return new s("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return new Date().getTime()}),void 0==b){var g=d;d=function(t,e){var r=e.signal;return g(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then(function(t){var e=t.body.getReader();return r._reader=e,r._aborted&&r._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}})},b=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function x(){this.bitsNeeded=0,this.codePoint=0}x.prototype.decode=function(t){function e(t,e,r){if(1===r)return t>=128>>e&&t<=2048>>e&&t<=57344>>e&&t<=65536>>e&&t<>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw Error()}for(var n="",o=this.bitsNeeded,i=this.codePoint,a=0;a191||!e(i<<6|63&u,o-6,r(o,i)))&&(o=0,n+=String.fromCharCode(i=65533)),0===o?(u>=0&&u<=127?(o=0,i=u):u>=192&&u<=223?(o=6,i=31&u):u>=224&&u<=239?(o=12,i=15&u):u>=240&&u<=247?(o=18,i=7&u):(o=0,i=65533),0===o||e(i,o,r(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&u),0===o&&(i<=65535?n+=String.fromCharCode(i):(n+=String.fromCharCode(55296+(i-65535-1>>10)),n+=String.fromCharCode(56320+(i-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=i,n},(void 0==v||void 0==m||!function(){try{return"test"===new v().decode(new m().encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}())&&(v=x);var O=function(){};function w(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=O}function j(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function S(t){for(var e=Object.create(null),r=t.split("\r\n"),n=0;n{var n=r(36702);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t{var n=r(48665),o=r(31450),i=r(90176);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},91108:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{var n=r(47387),o=r(90421),i=r(33011),a=r(25411),u=r(17202);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},91426:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=r(51483).Uint8Array},91958:(t,e,r)=>{var n=r(82979),o=r(63134),i=r(48908);t.exports=function(t){return i(t)?n(t):o(t)}},92143:(t,e,r)=>{"use strict";r.d(e,{i:()=>D});var n=r(12115),o=r(28568),i=r.n(o);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l,f={draw(t,e){let r=c(e/l);t.moveTo(r,0),t.arc(0,0,r,0,s)}},p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,m=c(3),b=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=r(73595),w=r(89569);c(3),c(3);var j=r(2821),S=r(70543);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var P=["type","size","sizeType"];function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,P)),{},{type:o,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.J9)(s,!0);return h===+h&&d===+d&&u===+u?n.createElement("path",E({},y,{className:(0,j.A)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=M["symbol".concat(i()(o))]||f,(function(t,e){let r=null,n=(0,w.i)(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:(0,O.A)(t||f),e="function"==typeof e?e:(0,O.A)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(C(u,l,o))())})):null};D.registerSymbol=function(t,e){M["symbol".concat(i()(t))]=e}},92441:(t,e,r)=>{var n=r(18135);t.exports=function(t){return n(this.__data__,t)>-1}},92653:(t,e,r)=>{t.exports=r(40672)(r(55415))},94820:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o{var n=r(71730),o=r(39058),i=r(26745),a=r(37183),u=/^\[object .+?Constructor\]$/,c=Object.prototype,l=Function.prototype.toString,s=c.hasOwnProperty,f=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:u).test(a(t))}},94897:(t,e,r)=>{var n=r(83558);t.exports=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},95295:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},95918:(t,e,r)=>{var n=r(69096);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},96273:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},96676:(t,e,r)=>{var n=r(91426),o=r(33011),i=r(32812),a=r(25411);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},96878:(t,e,r)=>{"use strict";r.d(e,{f:()=>d});var n=r(71730),o=r.n(n),i=r(49580),a=r(36462),u=r(33692),c=r(399);function l(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;ot*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e=2?(0,i.sA)(m[1].coordinate-m[0].coordinate):1,_=(n="width"===A,f=b.x,p=b.y,d=b.width,y=b.height,1===k?{start:n?f:p,end:n?f+d:p+y}:{start:n?f+d:p+y,end:n?f:p});return"equidistantPreserveStart"===O?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(i=function(){var e,i=null==n?void 0:n[f];if(void 0===i)return{v:l(n,p)};var a=f,d=function(){return void 0===e&&(e=r(i,a)),e},y=i.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+o),f+=p)}())return i.v;return[]}(k,_,E,m,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var f=n[u-1],p=r(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+o),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=i?u-1:u,v=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var f=t*(i.coordinate-t*u()/2-c);a[e]=i=h(h({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=h(h({},i),{},{tickCoord:i.coordinate});s(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=h(h({},i),{},{isShow:!0}))},m=0;m0?l.coordinate-p*t:l.coordinate})}else i[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+o),i[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return i}(k,_,E,m,g)).filter(function(t){return t.isShow})}},98134:(t,e,r)=>{var n=r(14638);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},98142:(t,e,r)=>{var n=r(80942),o=r(26526);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},99425:t=>{t.exports=function(t){return function(e){return t(e)}}},99810:(t,e,r)=>{var n=r(8524),o=r(33011),i=r(87594),a=r(25411),u=r(17202);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}}}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/_not-found/page-b51557374acf0621.js b/adl-server/src/main/resources/static/_next/static/chunks/app/_not-found/page-b51557374acf0621.js new file mode 100644 index 00000000..0df92b39 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/_not-found/page-b51557374acf0621.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{24585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38886:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(95155),n=l(24585);function o(e){let{status:t,message:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t+": "+l}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:t}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:l})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79520:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(95155),n=l(38886),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91014:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(79520)}])}},e=>{e.O(0,[441,255,358],()=>e(e.s=91014)),_N_E=e.O()}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/analytics/page-b2e3ec3eb2d36e1c.js b/adl-server/src/main/resources/static/_next/static/chunks/app/analytics/page-b2e3ec3eb2d36e1c.js new file mode 100644 index 00000000..1afe0dca --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/analytics/page-b2e3ec3eb2d36e1c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[745],{10670:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>v});var r=t(95155),n=t(12115),a=t(62044),l=t(23262),d=t(70405),c=t(86948),i=t(92033),o=t(30848),m=t(52240),x=t(41165),u=t(5225),f=t(62593),h=t(94374),p=t(25133),j=t(9484),g=t(64269);let N=n.forwardRef((e,s)=>{let{className:t,value:n,...a}=e;return(0,r.jsx)(j.bL,{ref:s,className:(0,g.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...a,children:(0,r.jsx)(j.C1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:"translateX(-".concat(100-(n||0),"%)")}})})});N.displayName=j.bL.displayName;var b=t(11647),y=t(87270);function v(){let[e,s]=(0,n.useState)(null),[t]=(0,a.IT)({query:l.XF,requestPolicy:"network-only"}),{data:j,fetching:v,error:C}=t,w=t=>{let r="asc";e&&e.key===t&&"asc"===e.direction&&(r="desc"),s({key:t,direction:r})},A=(0,n.useMemo)(()=>{var s;let t=[...(null==j||null==(s=j.dashboard)?void 0:s.mostUsedUseCase)||[]];return e&&t.sort((s,t)=>{let r=s[e.key],n=t[e.key];return null==r?1:null==n?-1:rn?"asc"===e.direction?1:-1:0}),t},[j,e]);if(v)return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col bg-background",children:[(0,r.jsx)(d.default,{}),(0,r.jsxs)("div",{className:"flex flex-1 items-center justify-center",children:[(0,r.jsx)(i.A,{className:"h-8 w-8 animate-spin text-primary"}),(0,r.jsx)("p",{className:"ml-4 text-muted-foreground",children:"Loading dashboard analytics..."})]})]});if(C)return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col bg-background",children:[(0,r.jsx)(d.default,{}),(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center p-6",children:(0,r.jsxs)(c.Zp,{className:"max-w-md w-full border-destructive/50",children:[(0,r.jsxs)(c.aR,{children:[(0,r.jsx)(c.ZB,{className:"text-destructive",children:"Dashboard Error"}),(0,r.jsx)(c.BT,{children:"Failed to fetch statistics from the server."})]}),(0,r.jsx)(c.Wu,{children:(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:C.message})})]})})]});let R=(null==j?void 0:j.dashboard)||{numberOfAdls:0,mostUsedUseCase:[],averageResponseTime:0},k=Math.max(0,Math.min(100,(1-R.averageResponseTime/5e3)*100)),S=s=>{let{columnKey:t}=s;return(null==e?void 0:e.key)!==t?(0,r.jsx)(o.A,{className:"ml-2 h-4 w-4 opacity-50"}):"asc"===e.direction?(0,r.jsx)(m.A,{className:"ml-2 h-4 w-4"}):(0,r.jsx)(x.A,{className:"ml-2 h-4 w-4"})};return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col bg-background",children:[(0,r.jsx)(d.default,{}),(0,r.jsxs)("main",{className:"flex-1 container mx-auto py-8 px-4 md:px-6",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 mb-8",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold tracking-tight",children:"Project Analytics"}),(0,r.jsx)("p",{className:"text-muted-foreground",children:"High-level statistics and performance metrics for your ADL Studio environment."})]}),(0,r.jsxs)("div",{className:"grid gap-6 md:grid-cols-2",children:[(0,r.jsxs)(c.Zp,{className:"flex flex-col",children:[(0,r.jsxs)(c.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,r.jsx)(c.ZB,{className:"text-sm font-medium",children:"Total ADL Files"}),(0,r.jsx)(u.A,{className:"h-4 w-4 text-muted-foreground"})]}),(0,r.jsxs)(c.Wu,{children:[(0,r.jsx)("div",{className:"text-4xl font-bold",children:R.numberOfAdls}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Managed prompts and contracts"}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)(N,{value:Math.min(100,R.numberOfAdls/50*100),className:"h-2"}),(0,r.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-1 text-right",children:["Quota usage: ",Math.min(100,R.numberOfAdls/50*100).toFixed(0),"%"]})]})]})]}),(0,r.jsxs)(c.Zp,{className:"flex flex-col",children:[(0,r.jsxs)(c.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,r.jsx)(c.ZB,{className:"text-sm font-medium",children:"Avg Response Time"}),(0,r.jsx)(f.A,{className:"h-4 w-4 text-muted-foreground"})]}),(0,r.jsxs)(c.Wu,{className:"flex flex-row items-center gap-8 pt-4",children:[(0,r.jsx)("div",{className:"mb-2 shrink-0",children:(0,r.jsx)(p.A,{value:k,label:"Latency Score"})}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"text-4xl font-bold",children:[(R.averageResponseTime/1e3).toFixed(2),"s"]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"Mean end-to-end latency"})]})]})]})]}),(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsxs)("h2",{className:"text-xl font-bold mb-4 flex items-center gap-2",children:[(0,r.jsx)(h.A,{className:"h-5 w-5 text-primary"}),"UseCase Usage Ranking"]}),(0,r.jsx)(c.Zp,{children:(0,r.jsx)(c.Wu,{className:"p-0",children:A.length>0?(0,r.jsxs)(y.XI,{children:[(0,r.jsx)(y.A0,{children:(0,r.jsxs)(y.Hj,{children:[(0,r.jsx)(y.nd,{className:"w-[100px]",children:"Rank"}),(0,r.jsx)(y.nd,{className:"cursor-pointer select-none hover:bg-muted/50",onClick:()=>w("useCaseId"),children:(0,r.jsxs)("div",{className:"flex items-center",children:["UseCase ID",(0,r.jsx)(S,{columnKey:"useCaseId"})]})}),(0,r.jsx)(y.nd,{className:"text-right cursor-pointer select-none hover:bg-muted/50",onClick:()=>w("count"),children:(0,r.jsxs)("div",{className:"flex items-center justify-end",children:["Execution Count",(0,r.jsx)(S,{columnKey:"count"})]})}),(0,r.jsx)(y.nd,{className:"text-right cursor-pointer select-none hover:bg-muted/50",onClick:()=>w("minComplianceScore"),children:(0,r.jsxs)("div",{className:"flex items-center justify-end",children:["Min Compliance",(0,r.jsx)(S,{columnKey:"minComplianceScore"})]})}),(0,r.jsx)(y.nd,{className:"text-right cursor-pointer select-none hover:bg-muted/50",onClick:()=>w("maxComplianceScore"),children:(0,r.jsxs)("div",{className:"flex items-center justify-end",children:["Max Compliance",(0,r.jsx)(S,{columnKey:"maxComplianceScore"})]})})]})}),(0,r.jsx)(y.BF,{children:A.map((e,s)=>(0,r.jsxs)(y.Hj,{className:"group",children:[(0,r.jsx)(y.nA,{className:"font-medium",children:(0,r.jsxs)(b.E,{variant:s<3?"default":"secondary",children:["#",s+1]})}),(0,r.jsx)(y.nA,{className:"font-mono text-sm",children:e.useCaseId}),(0,r.jsx)(y.nA,{className:"text-right font-semibold",children:e.count}),(0,r.jsx)(y.nA,{className:"text-right",children:(0,r.jsxs)("span",{className:(0,g.cn)("font-mono text-xs",e.minComplianceScore>.8?"text-green-600":e.minComplianceScore<.5?"text-red-600":"text-yellow-600"),children:[e.minComplianceScore.toFixed(1),"%"]})}),(0,r.jsx)(y.nA,{className:"text-right",children:(0,r.jsxs)("span",{className:(0,g.cn)("font-mono text-xs",e.maxComplianceScore>.8?"text-green-600":e.maxComplianceScore<.5?"text-red-600":"text-yellow-600"),children:[e.maxComplianceScore.toFixed(1),"%"]})})]},e.useCaseId))})]}):(0,r.jsx)("div",{className:"flex items-center justify-center py-12 text-sm text-muted-foreground italic",children:"No usage data available for this project yet."})})})]})]})]})}},11647:(e,s,t)=>{"use strict";t.d(s,{E:()=>d,e:()=>l});var r=t(95155);t(12115);var n=t(83101),a=t(64269);let l=(0,n.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:s,variant:t,...n}=e;return(0,r.jsx)("div",{className:(0,a.cn)(l({variant:t}),s),...n})}},23262:(e,s,t)=>{"use strict";t.d(s,{BZ:()=>c,Cn:()=>r,PW:()=>a,XF:()=>x,_i:()=>d,g3:()=>n,qS:()=>l,s_:()=>i,sz:()=>m,zH:()=>o});let r="\n query TestsQuery($useCaseId: String!) {\n testCases(useCaseId: $useCaseId) {\n description\n expectedConversation {\n content\n role\n }\n id\n name\n useCaseId\n contract\n }\n }\n",n="\n query ListPrompts($term: String!) {\n list(searchTerm: { term: $term, limit: 50, threshold: 0.5 }) {\n id\n createdAt\n tags\n relevance\n }\n }\n",a="\n query SearchByIdQuery($id: String!) {\n searchById(id: $id) {\n id\n createdAt\n tags\n content\n examples\n output\n }\n }\n",l="\n query getMcpTools {\n getMcpTools {\n description\n name\n parameters\n }\n }\n",d="\n query getMcpServerUrls {\n mcpServerUrls {\n url\n reachable\n toolCount \n }\n }\n",c="\n query GetUserSettings {\n userSettings {\n apiKey\n modelName\n modelUrl\n }\n }\n",i="\n query ListWidgets {\n widgets {\n id\n name\n description\n html\n }\n }\n",o="\n query GetWidget($id: String!) {\n widget(id: $id) {\n id\n name\n html\n jsonSchema\n }\n }\n",m="\n query RolePrompts {\n rolePrompts {\n id\n name\n tags\n role\n tone\n }\n }\n",x="\n query Dashboard {\n dashboard {\n numberOfAdls\n averageResponseTime\n mostUsedUseCase {\n useCaseId\n count\n minComplianceScore\n maxComplianceScore\n }\n }\n }\n"},25133:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});var r=t(95155),n=t(53773);t(31189);var a=t(5379);function l(e){let{value:s,label:t}=e,{resolvedTheme:l}=(0,a.D)();return(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{style:{width:"100px",height:"100px"},children:(0,r.jsx)(n.QF,{value:s,text:"".concat(s.toFixed(0)),strokeWidth:10,styles:(0,n.Hf)({pathColor:"hsl(var(--chart-2))",textColor:"dark"===l?"hsl(210 40% 98%)":"hsl(221.2 83.2% 53.3%)",trailColor:"hsl(var(--muted))",pathTransitionDuration:.5})})}),(0,r.jsx)("p",{className:"text-sm font-medium text-muted-foreground mt-2",children:t})]})}},86948:(e,s,t)=>{"use strict";t.d(s,{BT:()=>i,Wu:()=>o,ZB:()=>c,Zp:()=>l,aR:()=>d});var r=t(95155),n=t(12115),a=t(64269);let l=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm",t),...n})});l.displayName="Card";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",t),...n})});d.displayName="CardHeader";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",t),...n})});c.displayName="CardTitle";let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",t),...n})});i.displayName="CardDescription";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("p-6 pt-0",t),...n})});o.displayName="CardContent",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{ref:s,className:(0,a.cn)("flex items-center p-6 pt-0",t),...n})}).displayName="CardFooter"},87270:(e,s,t)=>{"use strict";t.d(s,{A0:()=>d,BF:()=>c,Hj:()=>i,XI:()=>l,nA:()=>m,nd:()=>o});var r=t(95155),n=t(12115),a=t(64269);let l=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-auto",children:(0,r.jsx)("table",{ref:s,className:(0,a.cn)("w-full caption-bottom text-sm",t),...n})})});l.displayName="Table";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("thead",{ref:s,className:(0,a.cn)("[&_tr]:border-b",t),...n})});d.displayName="TableHeader";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("tbody",{ref:s,className:(0,a.cn)("[&_tr:last-child]:border-0",t),...n})});c.displayName="TableBody",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("tfoot",{ref:s,className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...n})}).displayName="TableFooter";let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("tr",{ref:s,className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...n})});i.displayName="TableRow";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("th",{ref:s,className:(0,a.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...n})});o.displayName="TableHead";let m=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("td",{ref:s,className:(0,a.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...n})});m.displayName="TableCell",n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("caption",{ref:s,className:(0,a.cn)("mt-4 text-sm text-muted-foreground",t),...n})}).displayName="TableCaption"},95201:(e,s,t)=>{Promise.resolve().then(t.bind(t,10670))}},e=>{e.O(0,[310,992,644,73,381,44,913,405,441,255,358],()=>e(e.s=95201)),_N_E=e.O()}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/api/graphql/route-7c91a056435800b2.js b/adl-server/src/main/resources/static/_next/static/chunks/app/api/graphql/route-7c91a056435800b2.js new file mode 100644 index 00000000..c33f06ce --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/api/graphql/route-7c91a056435800b2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21],{84441:()=>{}},_=>{_.O(0,[441,255,358],()=>_(_.s=84441)),_N_E=_.O()}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/assistant/page-3b002de09dd7d696.js b/adl-server/src/main/resources/static/_next/static/chunks/app/assistant/page-3b002de09dd7d696.js new file mode 100644 index 00000000..cc033d65 --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/assistant/page-3b002de09dd7d696.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[125],{15894:(e,t,n)=>{"use strict";n.d(t,{dj:()=>u});var s=n(12115);let r=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},l=[],o={toasts:[]};function d(e){o=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(o,e),l.forEach(e=>{e(o)})}function c(e){let{...t}=e,n=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>d({type:"DISMISS_TOAST",toastId:n});return d({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||s()}}}),{id:n,dismiss:s,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,t]=s.useState(o);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},23262:(e,t,n)=>{"use strict";n.d(t,{BZ:()=>o,Cn:()=>s,PW:()=>a,XF:()=>m,_i:()=>l,g3:()=>r,qS:()=>i,s_:()=>d,sz:()=>u,zH:()=>c});let s="\n query TestsQuery($useCaseId: String!) {\n testCases(useCaseId: $useCaseId) {\n description\n expectedConversation {\n content\n role\n }\n id\n name\n useCaseId\n contract\n }\n }\n",r="\n query ListPrompts($term: String!) {\n list(searchTerm: { term: $term, limit: 50, threshold: 0.5 }) {\n id\n createdAt\n tags\n relevance\n }\n }\n",a="\n query SearchByIdQuery($id: String!) {\n searchById(id: $id) {\n id\n createdAt\n tags\n content\n examples\n output\n }\n }\n",i="\n query getMcpTools {\n getMcpTools {\n description\n name\n parameters\n }\n }\n",l="\n query getMcpServerUrls {\n mcpServerUrls {\n url\n reachable\n toolCount \n }\n }\n",o="\n query GetUserSettings {\n userSettings {\n apiKey\n modelName\n modelUrl\n }\n }\n",d="\n query ListWidgets {\n widgets {\n id\n name\n description\n html\n }\n }\n",c="\n query GetWidget($id: String!) {\n widget(id: $id) {\n id\n name\n html\n jsonSchema\n }\n }\n",u="\n query RolePrompts {\n rolePrompts {\n id\n name\n tags\n role\n tone\n }\n }\n",m="\n query Dashboard {\n dashboard {\n numberOfAdls\n averageResponseTime\n mostUsedUseCase {\n useCaseId\n count\n minComplianceScore\n maxComplianceScore\n }\n }\n }\n"},50085:(e,t,n)=>{Promise.resolve().then(n.bind(n,57532))},57532:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var s=n(95155),r=n(12115),a=n(62044),i=n(5418),l=n(92033),o=n(94979),d=n(70405),c=n(3998),u=n(65142),m=n(17037),p=n(47614),x=n(23262),h=n(68086),g=n(15894),f=n(11186),v=n(16789),j=n(86948),S=n(90576),b=n(66710),$=n(26615),N=n(90925);class y{static getInstance(){return y.instance||(y.instance=new y),y.instance}subscribe(e){this.subscribers.push(e)}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t!==e)}constructor(){this.eventSource=null,this.subscribers=[],this.eventSource=new N.EventSourcePolyfill("http://localhost:8080/events"),this.eventSource.onmessage=e=>{if(console.log("Received event:",e.data),"heartbeat"!==e.data)try{let t=JSON.parse(e.data);this.subscribers.forEach(e=>e(t))}catch(e){console.log("Error on event:",e)}},this.eventSource.onerror=e=>{this.eventSource&&this.eventSource.close()}}}let T=y.getInstance();var C=n(13496);function w(e){let{event:t}=e;return(0,s.jsxs)(j.Zp,{className:"font-mono text-xs",children:[(0,s.jsx)(j.aR,{className:"p-2",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),(0,s.jsx)(j.ZB,{className:"text-sm font-semibold",children:t.event})]})}),(0,s.jsxs)(j.Wu,{className:"p-2 space-y-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Model:"})," ",t.model]}),(0,s.jsx)(C.nD,{type:"single",collapsible:!0,className:"w-full text-xs",children:(0,s.jsxs)(C.As,{value:"item-1",className:"border-b-0",children:[(0,s.jsx)(C.$m,{className:"p-0 hover:no-underline font-normal",children:(0,s.jsx)("strong",{children:"Result:"})}),(0,s.jsx)(C.ub,{className:"pt-2",children:(0,s.jsx)("pre",{className:"p-2 bg-muted rounded whitespace-pre-wrap",children:(0,s.jsx)("code",{children:t.result})})})]})}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Total Tokens:"})," ",t.totalTokens]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Prompt:"})," ",t.promptTokens]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Completion:"})," ",t.completionTokens]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:"Tool Calls:"})," ",t.toolCallCount]})]})]})}var A=n(26991),I=n(86790),k=n(68425),E=n(47734),R=n(73697),_=n(23508),U=n(7620),q=n(47643);function O(e){let{events:t}=e,n=t.map((e,t)=>({name:"E".concat(t+1),total:e.totalTokens,prompt:e.promptTokens,completion:e.completionTokens})).reverse();return(0,s.jsxs)(j.Zp,{children:[(0,s.jsx)(j.aR,{className:"p-4",children:(0,s.jsx)(j.ZB,{className:"text-base",children:"Token Usage"})}),(0,s.jsx)(j.Wu,{className:"p-0",children:(0,s.jsx)(A.u,{width:"100%",height:150,children:(0,s.jsxs)(I.b,{data:n,margin:{top:5,right:20,left:-10,bottom:5},children:[(0,s.jsx)(k.d,{strokeDasharray:"3 3"}),(0,s.jsx)(E.W,{dataKey:"name"}),(0,s.jsx)(R.h,{}),(0,s.jsx)(_.m,{}),(0,s.jsx)(U.s,{}),(0,s.jsx)(q.N,{type:"monotone",dataKey:"total",stroke:"#8884d8",name:"Total"}),(0,s.jsx)(q.N,{type:"monotone",dataKey:"prompt",stroke:"#82ca9d",name:"Prompt"}),(0,s.jsx)(q.N,{type:"monotone",dataKey:"completion",stroke:"#ffc658",name:"Completion"})]})})})]})}function D(){let[e,t]=(0,r.useState)([]),[n,a]=(0,r.useState)(!1),i=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{t(t=>[e,...t].slice(0,100))};return T.subscribe(e),()=>{T.unsubscribe(e)}},[]),(0,r.useEffect)(()=>{if(i.current){let e=i.current.querySelector("div[data-radix-scroll-area-viewport]");e&&(e.scrollTop=0)}},[e]);let l=e.filter(e=>"LLMFinishedEvent"===e.event);return(0,s.jsxs)(j.Zp,{className:"h-full flex flex-col light:bg-transparent light:border-0",children:[(0,s.jsxs)(j.aR,{className:"p-4 flex flex-row items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(S.A,{className:"h-4 w-4 text-primary"}),(0,s.jsx)(j.ZB,{className:"text-base font-semibold",children:"Agent Events"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)(c.$,{variant:"ghost",size:"icon",onClick:()=>a(!n),className:"h-6 w-6",children:[(0,s.jsx)(b.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Toggle graph"})]}),(0,s.jsxs)(c.$,{variant:"ghost",size:"icon",onClick:()=>{t([])},className:"h-6 w-6",children:[(0,s.jsx)($.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Clear events"})]})]})]}),(0,s.jsx)(j.Wu,{className:"flex-1 overflow-hidden p-0",children:n?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(O,{events:l})}):(0,s.jsx)(m.F,{className:"h-full",ref:i,children:(0,s.jsx)("div",{className:"p-4 text-sm",children:0===e.length?(0,s.jsx)("p",{className:"text-muted-foreground text-center pt-8",children:"Waiting for events..."}):(0,s.jsx)("ul",{className:"space-y-2",children:e.map((e,t)=>(0,s.jsx)("li",{children:"LLMFinishedEvent"===e.event?(0,s.jsx)(w,{event:e}):(0,s.jsx)("div",{className:"font-mono bg-muted/50 p-2 rounded-lg text-xs border",children:(0,s.jsx)("pre",{children:(0,s.jsx)("code",{children:JSON.stringify(e,null,2)})})})},t))})})})})]})}let M=e=>{let{selectedRole:t,onRoleChange:n,roles:r,messages:a,isThinking:d,scrollAreaRef:x,onFormSubmit:h,input:g,onInputChange:v,selectedPrompt:j}=e;return(0,s.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,s.jsx)("div",{className:"border-b p-4 light:bg-white",children:(0,s.jsxs)(f.l6,{onValueChange:e=>n("none"===e?null:e),value:t||"none",children:[(0,s.jsx)(f.bq,{className:"w-full max-w-sm mx-auto",children:(0,s.jsx)(f.yv,{placeholder:"Select a role..."})}),(0,s.jsxs)(f.gC,{children:[(0,s.jsx)(f.eb,{value:"none",children:"No Role"}),r.map(e=>(0,s.jsx)(f.eb,{value:e.id,children:e.name},e.id))]})]})}),0!==a.length||d?(0,s.jsx)(m.F,{className:"flex-1",ref:x,children:(0,s.jsxs)("div",{className:"mx-auto w-full max-w-2xl space-y-6 p-4 md:p-6",children:[a.map((e,t)=>(0,s.jsx)(p.A,{message:e},t)),d&&(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground",children:(0,s.jsx)(i.A,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"flex-1 rounded-lg border p-4 text-sm bg-card flex items-center gap-2 light:bg-white",children:[(0,s.jsx)(l.A,{className:"h-4 w-4 animate-spin"}),(0,s.jsx)("span",{children:"Thinking..."})]})]})]})}):(0,s.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center p-4 rounded-lg",children:[(0,s.jsx)(i.A,{className:"mx-auto h-12 w-12 text-muted-foreground"}),(0,s.jsx)("h2",{className:"mt-4 text-xl font-semibold",children:"Assistant"}),(0,s.jsx)("p",{className:"mt-1 text-muted-foreground",children:"Start a conversation to begin."})]})}),(0,s.jsx)("div",{className:"border-t bg-background p-4 md:p-6 light:bg-white",children:(0,s.jsxs)("form",{onSubmit:h,className:"flex items-center gap-2 max-w-4xl mx-auto",children:[(0,s.jsx)(u.p,{value:g,onChange:e=>v(e.target.value),placeholder:"Type a message...",disabled:d||!j}),(0,s.jsxs)(c.$,{type:"submit",size:"icon",disabled:d||!g.trim()||!j,children:[(0,s.jsx)(o.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Send"})]})]})})]})};function P(){var e,t;let[n,i]=(0,r.useState)(!1);(0,r.useEffect)(()=>{i(!0)},[]);let[l,o]=(0,r.useState)([]),[c,u]=(0,r.useState)(""),[m,p]=(0,r.useState)(!1),[f,j]=(0,r.useState)(null),S=(0,r.useRef)(""),b=(0,r.useRef)(null),[$,N]=(0,r.useTransition)(),{toast:y}=(0,g.dj)(),[T]=(0,a.IT)({query:x.g3,variables:{term:""},pause:!n}),C=(null==(e=T.data)?void 0:e.list)||[],[w]=(0,a.IT)({query:x.sz,pause:!n}),A=(null==(t=w.data)?void 0:t.rolePrompts)||[],[I,k]=(0,a.n_)(h.of),E=(0,r.useMemo)(()=>C.length>0?C[0].id:null,[C]);(0,r.useEffect)(()=>{N(()=>{S.current="conv-".concat(Date.now()),o([])})},[E,f]),(0,r.useEffect)(()=>{if(b.current){let e=b.current.querySelector("div[data-radix-scroll-area-viewport]");e&&(e.scrollTop=e.scrollHeight)}},[l]);let R=(0,r.useCallback)(e=>{if(!E)return void y({variant:"destructive",title:"No prompt available",description:"Please create a prompt to start the conversation."});let t=[];f&&t.push({key:"role",value:f}),p(!0),k({input:{useCasesId:E,request:{messages:e.map(e=>{let{role:t,content:n,format:s}=e;return{role:t,content:n,format:s}}),userContext:{profile:[]},systemContext:t,conversationContext:{conversationId:S.current}}}}).then(e=>{let{data:t,error:n}=e;if(p(!1),n)y({variant:"destructive",title:"Error getting assistant response",description:n.message}),o(e=>[...e,{role:"assistant",content:"Sorry, I encountered an error.",format:"text"}]);else if(null==t?void 0:t.assistant){var s,r;let e=(t.assistant.messages||[]).map(e=>{let{__typename:t,...n}=e;return n}),n=null==(s=t.assistant.context)?void 0:s.map(e=>{let{__typename:t,...n}=e;return n}),a=null==(r=t.assistant.toolCalls)?void 0:r.map(e=>{let{__typename:t,...n}=e;return n});if(e.length>0){let t=e[e.length-1];"assistant"===t.role&&(n&&n.length>0&&(t.context=n),a&&a.length>0&&(t.toolCalls=a)),o(t=>[...t,...e])}else if(a&&a.length>0){let e={role:"assistant",content:"",format:"text",toolCalls:a};n&&n.length>0&&(e.context=n),o(t=>[...t,e])}}})},[k,E,y,f]);return(0,s.jsxs)("div",{className:"flex h-screen w-full flex-col bg-background light:bg-gray-100",children:[(0,s.jsx)(d.default,{}),(0,s.jsx)("main",{className:"flex flex-1 overflow-hidden",children:(0,s.jsxs)(v.HK,{direction:"horizontal",children:[(0,s.jsx)(v.wV,{defaultSize:75,children:(0,s.jsx)(M,{selectedRole:f,onRoleChange:j,roles:A,messages:l,isThinking:m,scrollAreaRef:b,onFormSubmit:e=>{if(e.preventDefault(),!c.trim()||m)return;let t=[...l,{role:"user",content:c,format:"text"}];o(t),R(t),u("")},input:c,onInputChange:u,selectedPrompt:E})}),(0,s.jsx)(v.WM,{withHandle:!0}),(0,s.jsx)(v.wV,{defaultSize:25,children:(0,s.jsx)("div",{className:"h-full p-4",children:(0,s.jsx)(D,{})})})]})})]})}},65142:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var s=n(95155),r=n(12115),a=n(64269);let i=r.forwardRef((e,t)=>{let{className:n,type:r,...i}=e;return(0,s.jsx)("input",{type:r,className:(0,a.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...i})});i.displayName="Input"},68086:(e,t,n)=>{"use strict";n.d(t,{EF:()=>h,G1:()=>f,I6:()=>c,K1:()=>$,Lp:()=>d,Q6:()=>i,Tc:()=>m,dk:()=>j,fe:()=>o,j_:()=>b,jq:()=>x,n$:()=>a,of:()=>s,rr:()=>g,t5:()=>p,v3:()=>u,vH:()=>S,w8:()=>l,x3:()=>v,xu:()=>r});let s="\n mutation Assistant($input: AssistantInput!) {\n assistant(input: $input) {\n messages {\n role\n content\n format\n }\n responseTime\n context {\n key\n value\n }\n toolCalls {\n name\n arguments\n }\n }\n }\n",r="\n mutation examples($useCase: String!) {\n examples(useCase: $useCase) {\n useCase\n examples\n }\n }\n",a="\n mutation newTests($id: String!) {\n newTests(id: $id) {\n count\n }\n }\n",i="\n mutation storeADL($id: String!, $createdAt: String!, $tags: [String!]!, $content: String!, $examples: [String!]!) {\n store(id: $id, createdAt: $createdAt, tags: $tags, content: $content, examples: $examples) {\n message\n storedExamplesCount\n }\n }\n",l="\n mutation updateTags($id: String!, $tags: [String!]!) {\n updateTags(id: $id, tags: $tags) {\n message\n }\n }\n",o="\n mutation delete($id: String!) {\n delete(id: $id) {\n message\n }\n }\n",d="\n mutation ImproveUseCase($useCase: String!) {\n improveUseCase(useCase: $useCase) {\n improvements {\n improved_use_case\n issue\n suggestion\n }\n }\n }\n",c="\n mutation executeTests($id: String!, $testCaseId: String) {\n executeTests(adlId: $id, testCaseId: $testCaseId) {\n overallScore\n results {\n score\n status\n actualConversation {\n content\n role\n }\n details {\n evidence {\n mapsTo\n quote\n }\n missingRequirements\n reasons\n score\n verdict\n violations\n }\n testCaseId\n testCaseName\n useCases\n }\n }\n }\n",u="\n mutation deleteTest($id: String!) {\n deleteTest(id: $id) \n }\n",m="\n mutation updateTest($input: UpdateTestCaseInput!) {\n updateTest(input: $input) {\n id\n }\n }\n",p="\n mutation addTest($input: AddTestCaseInput!) {\n addTest(input: $input) {\n id\n }\n }\n",x="\n mutation setMcpServerUrls($urls: [String!]!) {\n setMcpServerUrls(urls: $urls) {\n url\n reachable\n toolCount \n }\n }\n",h="\n mutation correctSpelling($text: String!) {\n correctSpelling(text: $text)\n }\n",g="\n mutation GenerateWidget($name: String!, $purpose: String!, $interactions: String!) {\n generateWidget(input: {\n name: $name,\n purpose: $purpose,\n interactions: $interactions\n }) {\n html\n jsonSchema\n }\n }\n",f="\n mutation SetUserSettings($apiKey: String!, $modelName: String!, $modelUrl: String) {\n setUserSettings(apiKey: $apiKey, modelName: $modelName, modelUrl: $modelUrl) {\n apiKey\n modelName\n modelUrl\n }\n }\n",v="\n mutation SaveWidget($id: String, $name: String!, $html: String!, $jsonSchema: String!, $preview: String!) {\n saveWidget(input: {\n id: $id,\n name: $name,\n html: $html,\n jsonSchema: $jsonSchema,\n preview: $preview\n }) {\n id\n name\n }\n }\n",j="\n mutation DeleteWidget($id: String!) {\n deleteWidget(id: $id)\n }\n",S="\n mutation UpdateRolePrompt($id: String!, $name: String!, $role: String!, $tone: String!) {\n updateRolePrompt(id: $id, name: $name, role: $role, tone: $tone) {\n id\n name\n role\n tone\n }\n }\n",b="\n mutation DeleteRolePrompt($id: String!) {\n deleteRolePrompt(id: $id)\n }\n",$="\n mutation UpdateOutput($id: String!, $output: String!) {\n updateOutput(id: $id, output: $output) {\n message\n }\n }\n"},86948:(e,t,n)=>{"use strict";n.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l});var s=n(95155),r=n(12115),a=n(64269);let i=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm",n),...r})});i.displayName="Card";let l=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",n),...r})});l.displayName="CardHeader";let o=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",n),...r})});o.displayName="CardTitle";let d=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",n),...r})});d.displayName="CardDescription";let c=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",n),...r})});c.displayName="CardContent",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",n),...r})}).displayName="CardFooter"}},e=>{e.O(0,[992,644,73,381,44,886,34,497,990,405,966,441,255,358],()=>e(e.s=50085)),_N_E=e.O()}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/dashboard/page-5fb332ab16dcc190.js b/adl-server/src/main/resources/static/_next/static/chunks/app/dashboard/page-5fb332ab16dcc190.js new file mode 100644 index 00000000..e9b52fef --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/dashboard/page-5fb332ab16dcc190.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[105],{11647:(e,r,s)=>{"use strict";s.d(r,{E:()=>i,e:()=>a});var t=s(95155);s(12115);var l=s(83101),n=s(64269);let a=(0,l.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:r,variant:s,...l}=e;return(0,t.jsx)("div",{className:(0,n.cn)(a({variant:s}),r),...l})}},16789:(e,r,s)=>{"use strict";s.d(r,{HK:()=>c,WM:()=>o,wV:()=>d});var t=s(95155),l=s(12115),n=s(16146),a=s(56745),i=s(64269);let c=l.forwardRef((e,r)=>{let{className:s,...l}=e;return(0,t.jsx)(a.YZ,{ref:r,className:(0,i.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",s),...l})});c.displayName="ResizablePanelGroup";let d=a.Zk,o=l.forwardRef((e,r)=>{let{className:s,withHandle:l,...c}=e;return(0,t.jsx)(a.TW,{ref:r,className:(0,i.cn)("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",s),...c,children:l&&(0,t.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:(0,t.jsx)(n.A,{className:"h-2.5 w-2.5"})})})});o.displayName="ResizableHandle"},20063:(e,r,s)=>{"use strict";var t=s(47260);s.o(t,"useRouter")&&s.d(r,{useRouter:function(){return t.useRouter}}),s.o(t,"useSearchParams")&&s.d(r,{useSearchParams:function(){return t.useSearchParams}})},30848:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(14294).A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},41165:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(14294).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},52240:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(14294).A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},55889:(e,r,s)=>{Promise.resolve().then(s.bind(s,80732))},78770:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(14294).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},80732:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>q});var t=s(95155),l=s(12115),n=s(62044),a=s(70405),i=s(15894),c=s(68086),d=s(23262);let o=(0,s(14294).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var u=s(3998),x=s(65142);function h(e){let{searchQuery:r,onSearchQueryChange:s,onSubmit:l,onClear:n}=e;return(0,t.jsxs)("form",{className:"flex items-center gap-2 flex-1",onSubmit:l,children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)(o,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,t.jsx)(x.p,{placeholder:"Describe what you are looking for...",className:"pl-9",value:r,onChange:e=>s(e.target.value)})]}),(0,t.jsx)(u.$,{type:"submit",children:"Search"}),r&&(0,t.jsx)(u.$,{type:"button",variant:"outline",onClick:n,children:"Clear"})]})}var m=s(20063),p=s(32265),f=s(92033),j=s(78770),v=s(52240),g=s(41165),y=s(30848),w=s(13630),b=s(86948),N=s(11647),k=s(18332),A=s(16789),C=s(64269),S=s(51834),z=s(76444);function D(e){let{score:r}=e;return null==r?null:(0,t.jsxs)(N.E,{variant:"outline",className:(0,C.cn)("font-mono",r>.8?"bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-300 border-green-500/30":r>.6?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/50 dark:text-yellow-300 border-yellow-500/30":"bg-red-100 text-red-800 dark:bg-red-900/50 dark:text-red-300 border-red-500/30"),children:[(100*r).toFixed(0),"%"]})}function E(e){let{prompts:r,fetching:s,error:n,sortConfig:a,requestSort:i,onDeleteClick:c}=e,[d,o]=(0,l.useState)([25,15,25,20,15]),h=(0,m.useRouter)(),[C,E]=(0,l.useState)(!1),[P,R]=(0,l.useState)(""),q=()=>{P.trim()&&(h.push("/prompts?new_id=".concat(encodeURIComponent(P.trim()))),E(!1),R(""))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.Zp,{children:[(0,t.jsx)(b.aR,{children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(b.ZB,{children:"All ADL Files"}),(0,t.jsx)(b.BT,{children:"A list of all saved ADL Files in your project."})]}),(0,t.jsxs)(u.$,{variant:"secondary",onClick:()=>E(!0),children:[(0,t.jsx)(p.A,{className:"mr-2 h-4 w-4"}),"New ADL Prompt"]})]})}),(0,t.jsx)(b.Wu,{children:s&&!r.length?(0,t.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,t.jsx)(f.A,{className:"h-8 w-8 animate-spin"})}):n?(0,t.jsxs)(k.Fc,{variant:"destructive",children:[(0,t.jsx)(j.A,{className:"h-4 w-4"}),(0,t.jsx)(k.XL,{children:"Error"}),(0,t.jsxs)(k.TN,{children:["Failed to load UseCase Prompts: ",n.message]})]}):(0,t.jsxs)("div",{className:"border rounded-lg",children:[(0,t.jsxs)(A.HK,{direction:"horizontal",onLayout:e=>{o(e)},className:"min-w-full font-medium text-muted-foreground text-sm",children:[(0,t.jsx)(A.wV,{defaultSize:d[0],minSize:15,children:(0,t.jsx)("div",{className:"flex h-12 items-center px-4 cursor-pointer hover:bg-muted/50",onClick:()=>i("id"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["ID",(null==a?void 0:a.key)==="id"?"ascending"===a.direction?(0,t.jsx)(v.A,{className:"h-4 w-4"}):(0,t.jsx)(g.A,{className:"h-4 w-4"}):(0,t.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground"})]})})}),(0,t.jsx)(A.WM,{withHandle:!0}),(0,t.jsx)(A.wV,{defaultSize:d[1],minSize:15,children:(0,t.jsx)("div",{className:"flex h-12 items-center px-4 cursor-pointer hover:bg-muted/50",onClick:()=>i("createdAt"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["Created At",(null==a?void 0:a.key)==="createdAt"?"ascending"===a.direction?(0,t.jsx)(v.A,{className:"h-4 w-4"}):(0,t.jsx)(g.A,{className:"h-4 w-4"}):(0,t.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground"})]})})}),(0,t.jsx)(A.WM,{withHandle:!0}),(0,t.jsx)(A.wV,{defaultSize:d[2],minSize:15,children:(0,t.jsx)("div",{className:"flex h-12 items-center px-4",children:"Tags"})}),(0,t.jsx)(A.WM,{withHandle:!0}),(0,t.jsx)(A.wV,{defaultSize:d[3],minSize:10,children:(0,t.jsx)("div",{className:"flex h-12 items-center px-4 cursor-pointer hover:bg-muted/50",onClick:()=>i("relevance"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["Relevance",(null==a?void 0:a.key)==="relevance"?"ascending"===a.direction?(0,t.jsx)(v.A,{className:"h-4 w-4"}):(0,t.jsx)(g.A,{className:"h-4 w-4"}):(0,t.jsx)(y.A,{className:"h-4 w-4 text-muted-foreground"})]})})}),(0,t.jsx)(A.WM,{withHandle:!0}),(0,t.jsx)(A.wV,{defaultSize:d[4],minSize:10,children:(0,t.jsx)("div",{className:"flex h-12 items-center justify-end px-4",children:"Actions"})})]}),(0,t.jsx)("div",{className:"border-t",children:s&&r.length>0?(0,t.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,t.jsx)(f.A,{className:"h-8 w-8 animate-spin"})}):r.length>0?r.map(e=>(0,t.jsxs)("div",{onClick:()=>h.push("/prompts?id=".concat(e.id)),className:"flex items-center min-w-full cursor-pointer hover:bg-muted/50 border-b last:border-b-0 text-sm",children:[(0,t.jsx)("div",{style:{flexBasis:"".concat(d[0],"%")},className:"px-4 py-4 overflow-hidden text-ellipsis whitespace-nowrap font-mono",children:e.id}),(0,t.jsx)("div",{style:{flexBasis:"".concat(d[1],"%")},className:"px-4 py-1 overflow-hidden text-ellipsis whitespace-nowrap",children:e.createdAt}),(0,t.jsx)("div",{style:{flexBasis:"".concat(d[2],"%")},className:"px-4 py-1",children:(0,t.jsx)("div",{className:"flex gap-2 flex-wrap",children:(e.tags||[]).map(e=>(0,t.jsx)(N.E,{variant:"secondary",children:e},e))})}),(0,t.jsx)("div",{style:{flexBasis:"".concat(d[3],"%")},className:"px-4 py-1",children:(0,t.jsx)(D,{score:e.relevance})}),(0,t.jsx)("div",{style:{flexBasis:"".concat(d[4],"%")},className:"px-4 py-1 flex justify-end",children:(0,t.jsxs)(u.$,{variant:"ghost",size:"icon",onClick:r=>c(r,e.id),children:[(0,t.jsx)(w.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Delete"})]})})]},e.id)):(0,t.jsx)("div",{className:"text-center py-6 text-sm text-muted-foreground",children:"No prompts found."})})]})})]}),(0,t.jsx)(S.lG,{open:C,onOpenChange:E,children:(0,t.jsxs)(S.Cf,{children:[(0,t.jsxs)(S.c7,{children:[(0,t.jsx)(S.L3,{children:"New UseCase Prompt"}),(0,t.jsx)(S.rr,{children:"Enter a name for your new prompt. This will be used as its unique ID."})]}),(0,t.jsx)("div",{className:"grid gap-4 py-4",children:(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(z.J,{htmlFor:"name",children:"Name"}),(0,t.jsx)(x.p,{id:"name",value:P,onChange:e=>R(e.target.value),onKeyDown:e=>{"Enter"===e.key&&q()},placeholder:"e.g. my-new-prompt",autoFocus:!0})]})}),(0,t.jsx)(S.Es,{children:(0,t.jsx)(u.$,{onClick:q,disabled:!P.trim(),children:"Create Prompt"})})]})})]})}var P=s(98053);function R(e){let{isOpen:r,onOpenChange:s,onConfirm:l,promptId:n}=e;return(0,t.jsx)(P.Lt,{open:r,onOpenChange:s,children:(0,t.jsxs)(P.EO,{children:[(0,t.jsxs)(P.wd,{children:[(0,t.jsx)(P.r7,{children:"Are you sure?"}),(0,t.jsxs)(P.$v,{children:['This action cannot be undone. This will permanently delete the prompt with ID "',n,'".']})]}),(0,t.jsxs)(P.ck,{children:[(0,t.jsx)(P.Zr,{children:"Cancel"}),(0,t.jsx)(P.Rx,{onClick:l,children:"Delete"})]})]})})}function q(){let{searchQuery:e,setSearchQuery:r,handleSearchSubmit:s,handleClearSearch:o,prompts:u,fetching:x,error:m,sortConfig:p,requestSort:f,reexecuteQuery:j}=function(){let[e,r]=(0,l.useState)(!1);(0,l.useEffect)(()=>{r(!0)},[]);let[s,t]=(0,l.useState)(""),[a,i]=(0,l.useState)(""),[c,o]=(0,l.useState)(null),[u,x]=(0,n.IT)({query:d.g3,variables:{term:a},requestPolicy:"cache-and-network",pause:!e}),{data:h,fetching:m,error:p}=u,f=(0,l.useMemo)(()=>{if(!(null==h?void 0:h.list))return[];let e=[...h.list];return null!==c&&e.sort((e,r)=>{let s=e[c.key],t=r[c.key];return null==s?1:null==t?-1:st?"ascending"===c.direction?1:-1:0}),e},[h,c]),j=(0,l.useCallback)(e=>{let r="ascending";c&&c.key===e&&"ascending"===c.direction&&(r="descending"),"relevance"!==e||c&&"relevance"===c.key&&"ascending"!==c.direction||(r="descending"),o({key:e,direction:r})},[c]),v=(0,l.useCallback)(e=>{e.preventDefault(),i(s),s?o({key:"relevance",direction:"descending"}):o(null)},[s]),g=(0,l.useCallback)(()=>{t(""),i(""),o(null)},[]);return{searchQuery:s,setSearchQuery:t,submittedQuery:a,handleSearchSubmit:v,handleClearSearch:g,prompts:f,fetching:m,error:p,sortConfig:c,requestSort:j,reexecuteQuery:(0,l.useCallback)(()=>{x({requestPolicy:"network-only"})},[x])}}(),[v,g]=(0,l.useState)(!1),[y,w]=(0,l.useState)(null),{toast:b}=(0,i.dj)(),[N,k]=(0,n.n_)(c.fe),A=async()=>{if(!y)return;let e=await k({id:y});if(e.error)b({variant:"destructive",title:"Error deleting prompt",description:e.error.message});else{var r,s;b({title:"Prompt deleted",description:(null==(s=e.data)||null==(r=s.delete)?void 0:r.message)||"The prompt has been successfully deleted."}),j()}g(!1),w(null)};return(0,t.jsxs)("div",{className:"flex min-h-screen w-full flex-col bg-background",children:[(0,t.jsx)(a.default,{}),(0,t.jsxs)("main",{className:"flex flex-1 flex-col px-4 pb-4 md:px-6 md:pb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 my-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold",children:"Your Query"}),(0,t.jsx)(h,{searchQuery:e,onSearchQueryChange:r,onSubmit:s,onClear:o})]}),(0,t.jsx)(E,{prompts:u,fetching:x,error:m,sortConfig:p,requestSort:f,onDeleteClick:(e,r)=>{e.stopPropagation(),w(r),g(!0)}})]}),(0,t.jsx)(R,{isOpen:v,onOpenChange:e=>{e||w(null),g(e)},onConfirm:A,promptId:y})]})}}},e=>{e.O(0,[992,644,73,381,44,886,448,401,405,513,441,255,358],()=>e(e.s=55889)),_N_E=e.O()}]); \ No newline at end of file diff --git a/adl-server/src/main/resources/static/_next/static/chunks/app/faces/page-d139066d173ebacb.js b/adl-server/src/main/resources/static/_next/static/chunks/app/faces/page-d139066d173ebacb.js new file mode 100644 index 00000000..3f9fc9ad --- /dev/null +++ b/adl-server/src/main/resources/static/_next/static/chunks/app/faces/page-d139066d173ebacb.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[435],{13496:(e,t,n)=>{"use strict";n.d(t,{$m:()=>c,As:()=>o,nD:()=>d,ub:()=>u});var s=n(95155),a=n(12115),r=n(86374),i=n(59007),l=n(64269);let d=r.bL,o=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(r.q7,{ref:t,className:(0,l.cn)("border-b",n),...a})});o.displayName="AccordionItem";let c=a.forwardRef((e,t)=>{let{className:n,children:a,...d}=e;return(0,s.jsx)(r.Y9,{className:"flex",children:(0,s.jsxs)(r.l9,{ref:t,className:(0,l.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...d,children:[a,(0,s.jsx)(i.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});c.displayName=r.l9.displayName;let u=a.forwardRef((e,t)=>{let{className:n,children:a,...i}=e;return(0,s.jsx)(r.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,s.jsx)("div",{className:(0,l.cn)("pb-4 pt-0",n),children:a})})});u.displayName=r.UC.displayName},15894:(e,t,n)=>{"use strict";n.d(t,{dj:()=>u});var s=n(12115);let a=0,r=new Map,i=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},l=[],d={toasts:[]};function o(e){d=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(d,e),l.forEach(e=>{e(d)})}function c(e){let{...t}=e,n=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>o({type:"DISMISS_TOAST",toastId:n});return o({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||s()}}}),{id:n,dismiss:s,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},16789:(e,t,n)=>{"use strict";n.d(t,{HK:()=>d,WM:()=>c,wV:()=>o});var s=n(95155),a=n(12115),r=n(16146),i=n(56745),l=n(64269);let d=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(i.YZ,{ref:t,className:(0,l.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),...a})});d.displayName="ResizablePanelGroup";let o=i.Zk,c=a.forwardRef((e,t)=>{let{className:n,withHandle:a,...d}=e;return(0,s.jsx)(i.TW,{ref:t,className:(0,l.cn)("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...d,children:a&&(0,s.jsx)("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:(0,s.jsx)(r.A,{className:"h-2.5 w-2.5"})})})});c.displayName="ResizableHandle"},23262:(e,t,n)=>{"use strict";n.d(t,{BZ:()=>d,Cn:()=>s,PW:()=>r,XF:()=>m,_i:()=>l,g3:()=>a,qS:()=>i,s_:()=>o,sz:()=>u,zH:()=>c});let s="\n query TestsQuery($useCaseId: String!) {\n testCases(useCaseId: $useCaseId) {\n description\n expectedConversation {\n content\n role\n }\n id\n name\n useCaseId\n contract\n }\n }\n",a="\n query ListPrompts($term: String!) {\n list(searchTerm: { term: $term, limit: 50, threshold: 0.5 }) {\n id\n createdAt\n tags\n relevance\n }\n }\n",r="\n query SearchByIdQuery($id: String!) {\n searchById(id: $id) {\n id\n createdAt\n tags\n content\n examples\n output\n }\n }\n",i="\n query getMcpTools {\n getMcpTools {\n description\n name\n parameters\n }\n }\n",l="\n query getMcpServerUrls {\n mcpServerUrls {\n url\n reachable\n toolCount \n }\n }\n",d="\n query GetUserSettings {\n userSettings {\n apiKey\n modelName\n modelUrl\n }\n }\n",o="\n query ListWidgets {\n widgets {\n id\n name\n description\n html\n }\n }\n",c="\n query GetWidget($id: String!) {\n widget(id: $id) {\n id\n name\n html\n jsonSchema\n }\n }\n",u="\n query RolePrompts {\n rolePrompts {\n id\n name\n tags\n role\n tone\n }\n }\n",m="\n query Dashboard {\n dashboard {\n numberOfAdls\n averageResponseTime\n mostUsedUseCase {\n useCaseId\n count\n minComplianceScore\n maxComplianceScore\n }\n }\n }\n"},29415:(e,t,n)=>{Promise.resolve().then(n.bind(n,46023))},31120:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var s=n(95155),a=n(12115),r=n(64269);let i=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t,...a})});i.displayName="Textarea"},46023:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var s=n(95155),a=n(12115),r=n(20063),i=n(70405),l=n(16789),d=n(86948),o=n(3998),c=n(65142),u=n(76444),m=n(31120),p=n(62044),f=n(15894),g=n(68086),h=n(23262),x=n(92033),v=n(73180),b=n(13496);let j={highlight:e=>e.split(/(<[^>]+>)/g).map((e,t)=>{if(!e)return null;if(e.startsWith("<")&&e.endsWith(">")){let n=e.slice(1,-1).split(/([\w\-\:]+="[^"]*")/g);return(0,s.jsxs)("span",{className:"text-gray-500",children:["<",n.map((e,t)=>{if(0===t){let n=e.match(/^\/?[\w\-\:]+/);if(n){let a=n[0],r=e.substring(a.length);return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"text-blue-400",children:a}),r]},t)}return(0,s.jsx)("span",{children:e},t)}if(/[\w\-\:]+="[^"]*"/.test(e)){let[n,a]=e.split("=",2);return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"text-yellow-500",children:n}),(0,s.jsx)("span",{className:"text-gray-500",children:"="}),(0,s.jsx)("span",{className:"text-green-500",children:a})]},t)}return(0,s.jsx)("span",{children:e},t)}),">"]},t)}return(0,s.jsx)("span",{children:e},t)})};function w(e){let{html:t,onHtmlChange:n}=e,r=(0,a.useRef)(null),i=(0,a.useRef)(null),l=(0,a.useMemo)(()=>{let e=t.split("\n");return e.map((t,n)=>{let r=j.highlight(t);return(0,s.jsxs)(a.Fragment,{children:[r,n{n(e.target.value)},onScroll:()=>{r.current&&i.current&&(r.current.scrollTop=i.current.scrollTop,r.current.scrollLeft=i.current.scrollLeft)},placeholder:"Enter your HTML here...",className:"relative w-full h-full resize-none font-mono text-sm rounded-lg bg-transparent text-transparent caret-foreground p-0 border-0 focus-visible:ring-0 focus-visible:ring-offset-0 px-3 py-2",spellCheck:"false"})]})}function S(){let e=(0,r.useSearchParams)(),t=(0,r.useRouter)(),n=e.get("id"),[j,S]=(0,a.useState)(""),[N,$]=(0,a.useState)(""),[y,A]=(0,a.useState)(""),[C,T]=(0,a.useState)(""),[I,R]=(0,a.useState)(""),[W,E]=(0,a.useState)(n),{toast:U}=(0,f.dj)(),[_,O]=(0,p.n_)(g.rr),[k,P]=(0,p.n_)(g.x3),[D]=(0,p.IT)({query:h.zH,variables:{id:n},pause:!n});(0,a.useEffect)(()=>{var e;if(null==(e=D.data)?void 0:e.widget){let{name:e,html:t,jsonSchema:n}=D.data.widget;T(e),S(t),$(n||"")}else D.error&&U({variant:"destructive",title:"Error loading widget",description:D.error.message})},[D.data,D.error,U]),(0,a.useEffect)(()=>{if(n)return;let t=e.get("name"),s=e.get("purpose"),a=e.get("interactions");t&&T(t),s&&A(s),a&&R(a)},[e,n]);let M=async e=>{var t,n;if(e.preventDefault(),!y.trim())return void U({variant:"destructive",title:"Purpose is empty",description:"Please describe the widget you want to generate."});let s=C||y.toLowerCase().split(" ").slice(0,3).join("-").replace(/[^a-z0-9-]/g,""),a=await O({name:s,purpose:y,interactions:I||"no interactions"});a.error?U({variant:"destructive",title:"Error generating widget",description:a.error.message}):(null==(n=a.data)||null==(t=n.generateWidget)?void 0:t.html)&&(S(a.data.generateWidget.html),$(a.data.generateWidget.jsonSchema||""),U({title:"Widget Generated",description:"The new widget has been generated and is ready for preview."}))},q=async()=>{var e;if(!j)return void U({variant:"destructive",title:"Nothing to save",description:"Please generate or write some HTML first."});if(!C)return void U({variant:"destructive",title:"Widget name is required",description:"Please provide a name for the widget."});let n=await P({id:W,name:C,html:j,jsonSchema:N,preview:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});if(n.error)U({variant:"destructive",title:"Error saving widget",description:n.error.message});else if((null==(e=n.data)?void 0:e.saveWidget)&&(U({title:"Widget Saved",description:'The widget "'.concat(n.data.saveWidget.name,'" has been saved.')}),!W)){let e=n.data.saveWidget.id;E(e),t.push("/faces?id=".concat(e),{scroll:!1})}},z='\n \n \n \n ADL Studio
      \ No newline at end of file diff --git a/adl-server/src/main/resources/static/analytics.txt b/adl-server/src/main/resources/static/analytics.txt new file mode 100644 index 00000000..71f64ecd --- /dev/null +++ b/adl-server/src/main/resources/static/analytics.txt @@ -0,0 +1,24 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[10670,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","913","static/chunks/913-5fe9e33b298fd2b3.js","405","static/chunks/405-f7962d7b0bac4b9d.js","745","static/chunks/app/analytics/page-b2e3ec3eb2d36e1c.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +:HL["/_next/static/css/e3f6dd86b47c8396.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","analytics"],"i":false,"f":[[["",{"children":["analytics",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["analytics",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e3f6dd86b47c8396.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/assistant.html b/adl-server/src/main/resources/static/assistant.html new file mode 100644 index 00000000..dbd6b8a2 --- /dev/null +++ b/adl-server/src/main/resources/static/assistant.html @@ -0,0 +1 @@ +ADL Studio

      Assistant

      Start a conversation to begin.

      Agent Events

      Waiting for events...

        \ No newline at end of file diff --git a/adl-server/src/main/resources/static/assistant.txt b/adl-server/src/main/resources/static/assistant.txt new file mode 100644 index 00000000..5b084809 --- /dev/null +++ b/adl-server/src/main/resources/static/assistant.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[57532,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","886","static/chunks/886-3ce1c8b74538a648.js","34","static/chunks/34-cf5c123a8d48bc75.js","497","static/chunks/497-9be55ae59b4eef77.js","990","static/chunks/990-81fcfac161c404c8.js","405","static/chunks/405-f7962d7b0bac4b9d.js","966","static/chunks/966-cd4559ff8888c9f0.js","125","static/chunks/app/assistant/page-3b002de09dd7d696.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","assistant"],"i":false,"f":[[["",{"children":["assistant",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["assistant",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/dashboard.html b/adl-server/src/main/resources/static/dashboard.html new file mode 100644 index 00000000..12d6137f --- /dev/null +++ b/adl-server/src/main/resources/static/dashboard.html @@ -0,0 +1 @@ +ADL Studio

        Your Query

        All ADL Files
        A list of all saved ADL Files in your project.
        ID
        Created At
        Tags
        Relevance
        Actions
        No prompts found.
          \ No newline at end of file diff --git a/adl-server/src/main/resources/static/dashboard.txt b/adl-server/src/main/resources/static/dashboard.txt new file mode 100644 index 00000000..8d8f41d4 --- /dev/null +++ b/adl-server/src/main/resources/static/dashboard.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[80732,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","886","static/chunks/886-3ce1c8b74538a648.js","448","static/chunks/448-c6b5e6b81c98d340.js","401","static/chunks/401-ee8dbd8e70fac275.js","405","static/chunks/405-f7962d7b0bac4b9d.js","513","static/chunks/513-52b3f545d82b1c22.js","105","static/chunks/app/dashboard/page-5fb332ab16dcc190.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","dashboard"],"i":false,"f":[[["",{"children":["dashboard",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/faces.html b/adl-server/src/main/resources/static/faces.html new file mode 100644 index 00000000..36538f84 --- /dev/null +++ b/adl-server/src/main/resources/static/faces.html @@ -0,0 +1 @@ +ADL Studio
            \ No newline at end of file diff --git a/adl-server/src/main/resources/static/faces.txt b/adl-server/src/main/resources/static/faces.txt new file mode 100644 index 00000000..b78dae6e --- /dev/null +++ b/adl-server/src/main/resources/static/faces.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[46023,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","886","static/chunks/886-3ce1c8b74538a648.js","858","static/chunks/858-c2fe6e476416844f.js","405","static/chunks/405-f7962d7b0bac4b9d.js","435","static/chunks/app/faces/page-d139066d173ebacb.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","faces"],"i":false,"f":[[["",{"children":["faces",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["faces",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/favicon.ico b/adl-server/src/main/resources/static/favicon.ico new file mode 100644 index 00000000..9621e46d Binary files /dev/null and b/adl-server/src/main/resources/static/favicon.ico differ diff --git a/adl-server/src/main/resources/static/index.html b/adl-server/src/main/resources/static/index.html new file mode 100644 index 00000000..c209e737 --- /dev/null +++ b/adl-server/src/main/resources/static/index.html @@ -0,0 +1 @@ +ADL Studio

            Build Reliable AI with ADL Studio

            An advanced platform for authoring, testing, and optimizing your large language model prompts. Ship with confidence.

            Key Features

            Everything You Need to Build Better Prompts

            From authoring and testing to AI-powered optimization, ADL Studio provides a comprehensive suite of tools for prompt engineering.

            Advanced Prompt Authoring

            Craft and manage complex prompts with a powerful, structured editor designed for clarity and control.

            Automated Testing

            Define test cases and run them against your prompts to ensure consistent and reliable behavior.

            Performance Analytics

            Get detailed performance metrics and scores for your prompts to identify areas for improvement.

            AI-Powered Suggestions

            Leverage AI to get suggestions for improving your prompts and generating new test cases automatically.

            Interactive Chat Playground

            Test your prompts in a real-time chat interface to see how they perform in a conversational context.

            Contract-Based Reliability

            Enforce critical tests as contracts to ensure your most important use cases never break at runtime.

              \ No newline at end of file diff --git a/adl-server/src/main/resources/static/index.txt b/adl-server/src/main/resources/static/index.txt new file mode 100644 index 00000000..77ccb80b --- /dev/null +++ b/adl-server/src/main/resources/static/index.txt @@ -0,0 +1,32 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[70405,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","405","static/chunks/405-f7962d7b0bac4b9d.js","974","static/chunks/app/page-658b2a6388096d45.js"],"default"] +8:I[52619,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","405","static/chunks/405-f7962d7b0bac4b9d.js","974","static/chunks/app/page-658b2a6388096d45.js"],""] +d:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"flex min-h-screen w-full flex-col bg-background","children":[["$","$L7",null,{}],["$","main",null,{"className":"flex-1","children":[["$","section",null,{"className":"w-full py-20 md:py-32 lg:py-40 bg-gradient-to-b from-background to-muted/50","children":["$","div",null,{"className":"container mx-auto px-4 md:px-6","children":["$","div",null,{"className":"grid gap-6 lg:grid-cols-[1fr_400px] lg:gap-12 xl:grid-cols-[1fr_600px]","children":["$","div",null,{"className":"flex flex-col justify-center space-y-4","children":[["$","div",null,{"className":"space-y-2","children":[["$","h1",null,{"className":"text-3xl font-bold tracking-tighter sm:text-5xl xl:text-6xl/none","children":"Build Reliable AI with ADL Studio"}],["$","p",null,{"className":"max-w-[600px] text-muted-foreground md:text-xl","children":"An advanced platform for authoring, testing, and optimizing your large language model prompts. Ship with confidence."}]]}],["$","div",null,{"className":"flex flex-col gap-2 min-[400px]:flex-row","children":["$","$L8",null,{"href":"/dashboard","children":["$","button",null,{"className":"inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 h-11 rounded-md px-8","ref":"$undefined","children":"Go to Dashboard"}]}]}]]}]}]}]}],["$","section",null,{"id":"features","className":"w-full py-12 md:py-24 lg:py-32","children":["$","div",null,{"className":"container mx-auto px-4 md:px-6","children":[["$","div",null,{"className":"flex flex-col items-center justify-center space-y-4 text-center","children":["$","div",null,{"className":"space-y-2","children":[["$","div",null,{"className":"inline-block rounded-lg bg-muted px-3 py-1 text-sm","children":"Key Features"}],["$","h2",null,{"className":"text-3xl font-bold tracking-tighter sm:text-5xl","children":"Everything You Need to Build Better Prompts"}],"$L9"]}]}],"$La"]}]}]]}]]}],null,"$Lb"]}],{},null,false]},null,false],"$Lc",false]],"m":"$undefined","G":["$d",[]],"s":false,"S":true} +15:I[24431,[],"OutletBoundary"] +17:I[15278,[],"AsyncMetadataOutlet"] +19:I[24431,[],"ViewportBoundary"] +1b:I[24431,[],"MetadataBoundary"] +1c:"$Sreact.suspense" +9:["$","p",null,{"className":"max-w-[900px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed","children":"From authoring and testing to AI-powered optimization, ADL Studio provides a comprehensive suite of tools for prompt engineering."}] +a:["$","div",null,{"className":"mx-auto grid max-w-5xl items-start gap-8 sm:grid-cols-2 md:gap-12 lg:grid-cols-3 lg:max-w-none mt-12","children":[["$","div","0",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-file-text h-8 w-8 text-primary","children":[["$","path","1rqfz7",{"d":"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}],["$","path","tnqrlb",{"d":"M14 2v4a2 2 0 0 0 2 2h4"}],["$","path","b1mrlr",{"d":"M10 9H8"}],["$","path","t4e002",{"d":"M16 13H8"}],["$","path","z1uh3a",{"d":"M16 17H8"}],"$undefined"]}],["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"Advanced Prompt Authoring"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Craft and manage complex prompts with a powerful, structured editor designed for clarity and control."}]}]]}],["$","div","1",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-zap h-8 w-8 text-primary","children":[["$","path","1xq2db",{"d":"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}],"$undefined"]}],["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"Automated Testing"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Define test cases and run them against your prompts to ensure consistent and reliable behavior."}]}]]}],["$","div","2",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-chart-no-axes-column-increasing h-8 w-8 text-primary","children":[["$","line","1vz5eb",{"x1":"12","x2":"12","y1":"20","y2":"10"}],["$","line","cun8e5",{"x1":"18","x2":"18","y1":"20","y2":"4"}],["$","line","hq0ia6",{"x1":"6","x2":"6","y1":"20","y2":"16"}],"$undefined"]}],["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"Performance Analytics"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Get detailed performance metrics and scores for your prompts to identify areas for improvement."}]}]]}],["$","div","3",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-sparkles h-8 w-8 text-primary","children":[["$","path","4pj2yx",{"d":"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["$","path","1olli1",{"d":"M20 3v4"}],"$Le","$Lf","$L10","$undefined"]}],"$L11"]}],"$L12"]}],"$L13","$L14"]}] +b:["$","$L15",null,{"children":["$L16",["$","$L17",null,{"promise":"$@18"}]]}] +c:["$","$1","h",{"children":[null,[["$","$L19",null,{"children":"$L1a"}],null],["$","$L1b",null,{"children":["$","div",null,{"hidden":true,"children":["$","$1c",null,{"fallback":null,"children":"$L1d"}]}]}]]}] +e:["$","path","1gvqau",{"d":"M22 5h-4"}] +f:["$","path","vumght",{"d":"M4 17v2"}] +10:["$","path","zchphs",{"d":"M5 18H3"}] +11:["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"AI-Powered Suggestions"}] +12:["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Leverage AI to get suggestions for improving your prompts and generating new test cases automatically."}]}] +13:["$","div","4",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-message-square h-8 w-8 text-primary","children":[["$","path","1lielz",{"d":"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}],"$undefined"]}],["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"Interactive Chat Playground"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Test your prompts in a real-time chat interface to see how they perform in a conversational context."}]}]]}] +14:["$","div","5",{"ref":"$undefined","className":"rounded-lg border bg-card text-card-foreground shadow-lg dark:shadow-sm","children":[["$","div",null,{"ref":"$undefined","className":"space-y-1.5 p-6 flex flex-row items-center gap-4","children":[["$","svg",null,{"ref":"$undefined","xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-shield-check h-8 w-8 text-primary","children":[["$","path","oel41y",{"d":"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["$","path","dzmm74",{"d":"m9 12 2 2 4-4"}],"$undefined"]}],["$","div",null,{"ref":"$undefined","className":"text-2xl font-semibold leading-none tracking-tight","children":"Contract-Based Reliability"}]]}],["$","div",null,{"ref":"$undefined","className":"p-6 pt-0","children":["$","p",null,{"className":"text-muted-foreground","children":"Enforce critical tests as contracts to ensure your most important use cases never break at runtime."}]}]]}] +1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +16:null +1e:I[80622,[],"IconMark"] +18:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L1e","3",{}]],"error":null,"digest":"$undefined"} +1d:"$18:metadata" diff --git a/adl-server/src/main/resources/static/prompts.html b/adl-server/src/main/resources/static/prompts.html new file mode 100644 index 00000000..c850e0e2 --- /dev/null +++ b/adl-server/src/main/resources/static/prompts.html @@ -0,0 +1 @@ +ADL Studio

              Loading...

                \ No newline at end of file diff --git a/adl-server/src/main/resources/static/prompts.txt b/adl-server/src/main/resources/static/prompts.txt new file mode 100644 index 00000000..2aced743 --- /dev/null +++ b/adl-server/src/main/resources/static/prompts.txt @@ -0,0 +1,24 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[5364,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","886","static/chunks/886-3ce1c8b74538a648.js","448","static/chunks/448-c6b5e6b81c98d340.js","401","static/chunks/401-ee8dbd8e70fac275.js","34","static/chunks/34-cf5c123a8d48bc75.js","497","static/chunks/497-9be55ae59b4eef77.js","45","static/chunks/45-bb8ab96d1497bb1f.js","405","static/chunks/405-f7962d7b0bac4b9d.js","513","static/chunks/513-52b3f545d82b1c22.js","966","static/chunks/966-cd4559ff8888c9f0.js","942","static/chunks/app/prompts/page-92ac60e2b52226ef.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +:HL["/_next/static/css/e3f6dd86b47c8396.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","prompts"],"i":false,"f":[[["",{"children":["prompts",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["prompts",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e3f6dd86b47c8396.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/roles.html b/adl-server/src/main/resources/static/roles.html new file mode 100644 index 00000000..dcde0e94 --- /dev/null +++ b/adl-server/src/main/resources/static/roles.html @@ -0,0 +1 @@ +ADL Studio

                Roles

                The roles define the persona and the tone of the agents.

                  \ No newline at end of file diff --git a/adl-server/src/main/resources/static/roles.txt b/adl-server/src/main/resources/static/roles.txt new file mode 100644 index 00000000..e336502b --- /dev/null +++ b/adl-server/src/main/resources/static/roles.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[35989,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","448","static/chunks/448-c6b5e6b81c98d340.js","401","static/chunks/401-ee8dbd8e70fac275.js","34","static/chunks/34-cf5c123a8d48bc75.js","405","static/chunks/405-f7962d7b0bac4b9d.js","513","static/chunks/513-52b3f545d82b1c22.js","124","static/chunks/app/roles/page-fbc998d6f2d8bb5b.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","roles"],"i":false,"f":[[["",{"children":["roles",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["roles",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/settings.html b/adl-server/src/main/resources/static/settings.html new file mode 100644 index 00000000..651d5fa7 --- /dev/null +++ b/adl-server/src/main/resources/static/settings.html @@ -0,0 +1 @@ +ADL Studio

                  Settings

                  Manage your models, MCP servers, and API keys.

                  MCP Servers
                  Configure the GraphQL endpoints for your Model Context Protocol servers.
                    \ No newline at end of file diff --git a/adl-server/src/main/resources/static/settings.txt b/adl-server/src/main/resources/static/settings.txt new file mode 100644 index 00000000..8f1fe78f --- /dev/null +++ b/adl-server/src/main/resources/static/settings.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[14176,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","922","static/chunks/922-872afe22e827abbb.js","405","static/chunks/405-f7962d7b0bac4b9d.js","662","static/chunks/app/settings/page-e45104bcc0677478.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","settings"],"i":false,"f":[[["",{"children":["settings",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/main/resources/static/widgets.html b/adl-server/src/main/resources/static/widgets.html new file mode 100644 index 00000000..9294e731 --- /dev/null +++ b/adl-server/src/main/resources/static/widgets.html @@ -0,0 +1 @@ +ADL Studio

                    Widgets

                    Widgets can be used to decorate Agent responses with HTML templates.

                      \ No newline at end of file diff --git a/adl-server/src/main/resources/static/widgets.txt b/adl-server/src/main/resources/static/widgets.txt new file mode 100644 index 00000000..c8dfb471 --- /dev/null +++ b/adl-server/src/main/resources/static/widgets.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[96150,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Providers"] +3:I[9766,[],""] +4:I[1212,["397","static/chunks/app/template-348caea712f4a67f.js"],"default"] +5:I[98924,[],""] +6:I[18516,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","44","static/chunks/44-e02908d1bfeea04d.js","285","static/chunks/285-320e7a4ba94ead5c.js","177","static/chunks/app/layout-348a402c1aa1b4a8.js"],"Toaster"] +7:I[81959,[],"ClientPageRoot"] +8:I[20625,["992","static/chunks/bc9e92e6-b73aade041e5face.js","644","static/chunks/ceb9e9aa-0bbe10afbc2d4738.js","73","static/chunks/73-b7cb3cbeb2f9c27c.js","381","static/chunks/381-385fd38be2156534.js","44","static/chunks/44-e02908d1bfeea04d.js","448","static/chunks/448-c6b5e6b81c98d340.js","405","static/chunks/405-f7962d7b0bac4b9d.js","392","static/chunks/app/widgets/page-81a4c8c19d077a11.js"],"default"] +b:I[24431,[],"OutletBoundary"] +d:I[15278,[],"AsyncMetadataOutlet"] +f:I[24431,[],"ViewportBoundary"] +11:I[24431,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[57150,[],""] +:HL["/_next/static/css/375b441846bbd843.css","style"] +0:{"P":null,"b":"Yb3VkXFnFa_F0qM7WDKHd","p":"","c":["","widgets"],"i":false,"f":[[["",{"children":["widgets",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/375b441846bbd843.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","link",null,{"rel":"preconnect","href":"https://fonts.googleapis.com"}],["$","link",null,{"rel":"preconnect","href":"https://fonts.gstatic.com","crossOrigin":"anonymous"}],["$","link",null,{"href":"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap","rel":"stylesheet"}]]}],["$","body",null,{"className":"font-body antialiased","children":[["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}]]}]]}],{"children":["widgets",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +9:{} +a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[80622,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"ADL Studio"}],["$","meta","1",{"name":"description","content":"An advanced platform for prompt engineering and testing."}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/adl-server/src/test/kotlin/AdlMutationIntegrationTest.kt b/adl-server/src/test/kotlin/AdlStorageMutationIntegrationTest.kt similarity index 93% rename from adl-server/src/test/kotlin/AdlMutationIntegrationTest.kt rename to adl-server/src/test/kotlin/AdlStorageMutationIntegrationTest.kt index decabc18..906ac141 100644 --- a/adl-server/src/test/kotlin/AdlMutationIntegrationTest.kt +++ b/adl-server/src/test/kotlin/AdlStorageMutationIntegrationTest.kt @@ -15,35 +15,15 @@ import kotlinx.serialization.Serializable import kotlinx.serialization.json.Json import kotlinx.serialization.serializer import org.assertj.core.api.Assertions.assertThat -import org.junit.jupiter.api.AfterAll import org.junit.jupiter.api.AfterEach -import org.junit.jupiter.api.BeforeAll import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test -import org.testcontainers.junit.jupiter.Container -import org.testcontainers.junit.jupiter.Testcontainers -import org.testcontainers.qdrant.QdrantContainer import io.ktor.client.engine.cio.CIO as ClientCIO +import org.eclipse.lmos.arc.assistants.support.usecases.toUseCases -@Testcontainers -class AdlMutationIntegrationTest { +class AdlStorageMutationIntegrationTest { companion object { - @Container - @JvmStatic - val qdrantContainer = QdrantContainer("qdrant/qdrant:v1.7.4") - - @BeforeAll - @JvmStatic - fun startContainer() { - qdrantContainer.start() - } - - @AfterAll - @JvmStatic - fun stopContainer() { - qdrantContainer.stop() - } } private val testPort = 18081 @@ -58,8 +38,8 @@ class AdlMutationIntegrationTest { @BeforeEach fun setUp() { val qdrantConfig = QdrantConfig( - host = qdrantContainer.host, - port = qdrantContainer.grpcPort, + host = "localhost", + port = 6333, ) server = startServer(wait = false, port = testPort, qdrantConfig = qdrantConfig) client = HttpClient(ClientCIO) @@ -270,9 +250,18 @@ class AdlMutationIntegrationTest { } private suspend fun executeStoreMutation(adl: String): StorageResultData { + val useCases = adl.toUseCases() + val id = useCases.firstOrNull()?.id ?: "unknown" + + val examplesJson = "" + val idJson = "\"$id\"" + val contentJson = adl.toGraphQLString() + val tagsJson = "[]" + val outputJson = "\"\"" + val query = """ mutation { - store(adl: ${adl.toGraphQLString()}) { + store(id: $idJson, content: $contentJson, tags: $tagsJson, examples: [$examplesJson], output: $outputJson) { storedExamplesCount message } @@ -298,7 +287,7 @@ class AdlMutationIntegrationTest { private suspend fun executeDeleteMutation(useCaseId: String): DeletionResultData { val query = """ mutation { - delete(useCaseId: "$useCaseId") { + delete(id: "$useCaseId") { useCaseId message } diff --git a/adl-server/src/test/kotlin/SystemPromptMutationIntegrationTest.kt b/adl-server/src/test/kotlin/SystemPromptMutationIntegrationTest.kt index 2583abe6..db2fae10 100644 --- a/adl-server/src/test/kotlin/SystemPromptMutationIntegrationTest.kt +++ b/adl-server/src/test/kotlin/SystemPromptMutationIntegrationTest.kt @@ -13,36 +13,18 @@ import io.ktor.server.engine.* import kotlinx.coroutines.runBlocking import kotlinx.serialization.Serializable import kotlinx.serialization.json.Json +import kotlinx.serialization.serializer import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.AfterAll import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeAll import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test -import org.testcontainers.junit.jupiter.Container -import org.testcontainers.junit.jupiter.Testcontainers -import org.testcontainers.qdrant.QdrantContainer import io.ktor.client.engine.cio.CIO as ClientCIO -@Testcontainers class SystemPromptMutationIntegrationTest { companion object { - @Container - @JvmStatic - val qdrantContainer = QdrantContainer("qdrant/qdrant:v1.7.4") - - @BeforeAll - @JvmStatic - fun startContainer() { - qdrantContainer.start() - } - - @AfterAll - @JvmStatic - fun stopContainer() { - qdrantContainer.stop() - } } private val testPort = 18080 @@ -57,8 +39,8 @@ class SystemPromptMutationIntegrationTest { @BeforeEach fun setUp() { val qdrantConfig = QdrantConfig( - host = qdrantContainer.host, - port = qdrantContainer.grpcPort, + host = "localhost", + port = 6333, ) server = startServer(wait = false, port = testPort, qdrantConfig = qdrantConfig) client = HttpClient(ClientCIO) diff --git a/adl-server/src/test/kotlin/agents/ConversationEvaluatorTest.kt b/adl-server/src/test/kotlin/agents/ConversationEvaluatorTest.kt deleted file mode 100644 index 94f5ef84..00000000 --- a/adl-server/src/test/kotlin/agents/ConversationEvaluatorTest.kt +++ /dev/null @@ -1,102 +0,0 @@ -// SPDX-FileCopyrightText: 2025 Deutsche Telekom AG and others -// -// SPDX-License-Identifier: Apache-2.0 - -package org.eclipse.lmos.adl.server.agents - -import dev.langchain4j.data.embedding.Embedding -import dev.langchain4j.data.segment.TextSegment -import dev.langchain4j.model.embedding.EmbeddingModel -import dev.langchain4j.model.output.Response -import org.assertj.core.api.Assertions.assertThat -import org.eclipse.lmos.adl.server.inbound.SimpleMessage -import org.eclipse.lmos.adl.server.services.ConversationEvaluator -import org.junit.jupiter.api.Test - -class ConversationEvaluatorTest { - - class MockEmbeddingModel : EmbeddingModel { - override fun embed(text: String): Response { - val vector = when (text) { - "match" -> floatArrayOf(1.0f, 0.0f) - "similar" -> floatArrayOf(0.99f, 0.01f) - "somewhat_similar" -> floatArrayOf(0.85f, 0.52678f) - "diff" -> floatArrayOf(0.0f, 1.0f) - else -> floatArrayOf(0.5f, 0.5f) - } - return Response.from(Embedding.from(vector)) - } - - override fun embed(textSegment: TextSegment): Response { - return embed(textSegment.text()) - } - - override fun embedAll(textSegments: List): Response> { - return Response.from(textSegments.map { embed(it).content() }) - } - } - - private val evaluator = ConversationEvaluator(MockEmbeddingModel()) - - @Test - fun `test exact match`() { - val conversation = listOf(SimpleMessage("user", "match")) - val expected = listOf(SimpleMessage("user", "match")) - - val result = evaluator.evaluate(conversation, expected) - - assertThat(result.score).isEqualTo(100) - assertThat(result.verdict).isEqualTo("pass") - assertThat(result.reasons).isEmpty() - } - - @Test - fun `test completely different content`() { - val conversation = listOf(SimpleMessage("user", "diff")) - val expected = listOf(SimpleMessage("user", "match")) - - val result = evaluator.evaluate(conversation, expected) - - // Dot product of (0,1) and (1,0) is 0. - assertThat(result.score).isEqualTo(0) - assertThat(result.verdict).isEqualTo("fail") - assertThat(result.reasons).isNotEmpty() - } - - @Test - fun `test role mismatch`() { - val conversation = listOf(SimpleMessage("assistant", "match")) - val expected = listOf(SimpleMessage("user", "match")) - - val result = evaluator.evaluate(conversation, expected) - - // Counted as 0 score - assertThat(result.score).isEqualTo(0) - assertThat(result.reasons).anyMatch { it.contains("Role mismatch") } - } - - @Test - fun `test length mismatch`() { - val conversation = listOf(SimpleMessage("user", "match")) - val expected = listOf(SimpleMessage("user", "match"), SimpleMessage("assistant", "match")) - - val result = evaluator.evaluate(conversation, expected) - - assertThat(result.score).isEqualTo(100) - assertThat(result.reasons).anyMatch { it.contains("Conversation length mismatch") } - } - - @Test - fun `test custom threshold`() { - val conversation = listOf(SimpleMessage("user", "somewhat_similar")) - val expected = listOf(SimpleMessage("user", "match")) - - // Default threshold is 0.8, similarity is 0.85 -> should NOT contain low similarity reason - val resultDefault = evaluator.evaluate(conversation, expected) - assertThat(resultDefault.reasons).noneMatch { it.contains("Content similarity is low") } - - // Custom threshold 0.9 -> similarity 0.85 is lower -> should contain low similarity reason - val resultHigh = evaluator.evaluate(conversation, expected, failureThreshold = 0.9) - assertThat(resultHigh.reasons).anyMatch { it.contains("Content similarity is low") } - } -} diff --git a/adl-server/src/test/kotlin/inbound/AdlValidationMutationTest.kt b/adl-server/src/test/kotlin/inbound/mutattion/AdlValidationMutationTest.kt similarity index 91% rename from adl-server/src/test/kotlin/inbound/AdlValidationMutationTest.kt rename to adl-server/src/test/kotlin/inbound/mutattion/AdlValidationMutationTest.kt index b1d7b17f..2b705649 100644 --- a/adl-server/src/test/kotlin/inbound/AdlValidationMutationTest.kt +++ b/adl-server/src/test/kotlin/inbound/mutattion/AdlValidationMutationTest.kt @@ -6,6 +6,7 @@ package org.eclipse.lmos.adl.server.inbound import kotlinx.coroutines.runBlocking import org.assertj.core.api.Assertions.assertThat +import org.eclipse.lmos.adl.server.inbound.mutation.AdlValidationMutation import org.junit.jupiter.api.Test class AdlValidationMutationTest { @@ -44,8 +45,8 @@ class AdlValidationMutationTest { val result = mutation.validate(invalidAdl) - assertThat(result.syntaxErrors).isNotEmpty - assertThat(result.syntaxErrors.any { it.message.contains("Unclosed") }).isTrue + assertThat(result.syntaxErrors).isNotEmpty() + assertThat(result.syntaxErrors.any { it.message.contains("Unclosed") }).isTrue() } @Test @@ -77,7 +78,7 @@ class AdlValidationMutationTest { val result = mutation.validate(adl) assertThat(result.references).contains("usecase1", "usecase2") - assertThat(result.references.any { it.contains("example.com") }).isTrue + assertThat(result.references.any { it.contains("example.com") }).isTrue() } @Test @@ -92,8 +93,8 @@ class AdlValidationMutationTest { val result = mutation.validate(adl) - assertThat(result.syntaxErrors).isNotEmpty - assertThat(result.syntaxErrors.any { it.message.contains("quote") }).isTrue + assertThat(result.syntaxErrors).isNotEmpty() + assertThat(result.syntaxErrors.any { it.message.contains("quote") }).isTrue() } @Test @@ -109,7 +110,7 @@ class AdlValidationMutationTest { val result = mutation.validate(malformedAdl) // Should have syntax errors - assertThat(result.syntaxErrors).isNotEmpty + assertThat(result.syntaxErrors).isNotEmpty() // But should still extract tools and references assertThat(result.usedTools).contains("extract_tool") assertThat(result.references).contains("some_usecase") @@ -137,8 +138,7 @@ class AdlValidationMutationTest { val result = mutation.validate(adl) - assertThat(result.syntaxErrors).isNotEmpty - assertThat(result.syntaxErrors.any { it.message.contains("Mixed tabs and spaces") }).isTrue + assertThat(result.syntaxErrors).isNotEmpty() + assertThat(result.syntaxErrors.any { it.message.contains("Mixed tabs and spaces") }).isTrue() } } - diff --git a/adl-server/src/test/kotlin/inbound/SystemPromptMutationTest.kt b/adl-server/src/test/kotlin/inbound/mutattion/SystemPromptMutationTest.kt similarity index 86% rename from adl-server/src/test/kotlin/inbound/SystemPromptMutationTest.kt rename to adl-server/src/test/kotlin/inbound/mutattion/SystemPromptMutationTest.kt index 6ab7626d..c131dc2b 100644 --- a/adl-server/src/test/kotlin/inbound/SystemPromptMutationTest.kt +++ b/adl-server/src/test/kotlin/inbound/mutattion/SystemPromptMutationTest.kt @@ -9,6 +9,10 @@ import org.assertj.core.api.Assertions.assertThat import org.eclipse.lmos.adl.server.sessions.InMemorySessions import org.eclipse.lmos.adl.server.sessions.Sessions import org.eclipse.lmos.adl.server.templates.TemplateLoader +import org.eclipse.lmos.adl.server.inbound.mutation.SystemPromptMutation +import org.eclipse.lmos.adl.server.repositories.RolePromptRepository +import org.eclipse.lmos.adl.server.repositories.impl.InMemoryRolePromptRepository +import org.eclipse.lmos.adl.server.models.RolePrompt import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test @@ -16,13 +20,15 @@ class SystemPromptMutationTest { private lateinit var sessions: Sessions private lateinit var templateLoader: TemplateLoader + private lateinit var rolePromptRepository: RolePromptRepository private lateinit var mutation: SystemPromptMutation @BeforeEach fun setUp() { sessions = InMemorySessions() templateLoader = TemplateLoader() - mutation = SystemPromptMutation(sessions, templateLoader) + rolePromptRepository = InMemoryRolePromptRepository() + mutation = SystemPromptMutation(sessions, templateLoader, rolePromptRepository) } @Test @@ -254,4 +260,35 @@ class SystemPromptMutationTest { assertThat(resultMobileOnly.systemPrompt).contains("general_case") } } + + @Test + fun `systemPrompt with custom role from repository`() { + runBlocking { + val adl = """ + ### UseCase: test + #### Description + Test. + + #### Solution + Test. + ---- + """.trimIndent() + + rolePromptRepository.save( + RolePrompt( + id = "custom-role", + name = "Custom Role", + description = "A custom role", + tags = listOf("test"), + role = "You are a custom role assistant.", + tone = "Be very formal." + ) + ) + + val result = mutation.systemPrompt(adl, roleId = "custom-role") + + assertThat(result.systemPrompt).contains("You are a custom role assistant.") + assertThat(result.systemPrompt).contains("Be very formal.") + } + } } diff --git a/arc-agents/src/main/kotlin/agent/Extensions.kt b/arc-agents/src/main/kotlin/agent/Extensions.kt index 8d1883d7..08f2e56d 100644 --- a/arc-agents/src/main/kotlin/agent/Extensions.kt +++ b/arc-agents/src/main/kotlin/agent/Extensions.kt @@ -39,7 +39,7 @@ val agentInputJson = Json { encodeDefaults = true; ignoreUnknownKeys = true } * @return A Result containing the processed output of type R or an AgentFailedException. */ suspend inline fun ConversationAgent.process(input: T) = result { - val inputString = agentInputJson.encodeToString(input) + val inputString = if (input is String) input else agentInputJson.encodeToString(input) val result = ask(inputString) failWith { it } agentInputJson.decodeFromString(result) } diff --git a/arc-agents/src/main/kotlin/dsl/extensions/Context.kt b/arc-agents/src/main/kotlin/dsl/extensions/Context.kt index 85f1442d..a3b4b91e 100644 --- a/arc-agents/src/main/kotlin/dsl/extensions/Context.kt +++ b/arc-agents/src/main/kotlin/dsl/extensions/Context.kt @@ -47,11 +47,18 @@ class OutputContext { values[key] = value } + fun get(key: String): String? = values[key] + fun map(): Map { return values } } +/** + * Extensions to get and set values in OutputContext. + */ +fun OutputContext.getUseCase(): String? = get("useCase") + /** * Providers. Implement these interfaces to provide the system context and user profile. */ diff --git a/arc-api/src/main/kotlin/AgentRequest.kt b/arc-api/src/main/kotlin/AgentRequest.kt index 10b700cc..02332ecb 100644 --- a/arc-api/src/main/kotlin/AgentRequest.kt +++ b/arc-api/src/main/kotlin/AgentRequest.kt @@ -13,15 +13,15 @@ import kotlinx.serialization.Serializable data class AgentRequest( val messages: List, val conversationContext: ConversationContext, - val systemContext: List, - val userContext: UserContext, + val systemContext: List = emptyList(), + val userContext: UserContext = UserContext(), ) @Serializable data class UserContext( val userId: String? = null, val userToken: String? = null, - val profile: List, + val profile: List = emptyList(), ) @Serializable diff --git a/arc-assistants/src/main/kotlin/extensions/LoadedUseCases.kt b/arc-assistants/src/main/kotlin/extensions/LoadedUseCases.kt index cd174cd4..37bae583 100644 --- a/arc-assistants/src/main/kotlin/extensions/LoadedUseCases.kt +++ b/arc-assistants/src/main/kotlin/extensions/LoadedUseCases.kt @@ -17,4 +17,11 @@ data class LoadedUseCases( val processedUseCaseMap: Map, val currentStep: String? = null, val currentUseCaseId: String? = null, -) +) { + /** + * Retrieves the current UseCase based on the currentUseCaseId. + */ + fun currentUseCase(): UseCase? { + return useCases.find { it.id == currentUseCaseId } + } +} diff --git a/arc-assistants/src/main/kotlin/usecases/UseCaseParser.kt b/arc-assistants/src/main/kotlin/usecases/UseCaseParser.kt index c01e08aa..b4265ee8 100644 --- a/arc-assistants/src/main/kotlin/usecases/UseCaseParser.kt +++ b/arc-assistants/src/main/kotlin/usecases/UseCaseParser.kt @@ -6,7 +6,16 @@ package org.eclipse.lmos.arc.assistants.support.usecases import kotlinx.serialization.Serializable import org.eclipse.lmos.arc.agents.dsl.extensions.then -import org.eclipse.lmos.arc.assistants.support.usecases.Section.* +import org.eclipse.lmos.arc.assistants.support.usecases.Section.ALTERNATIVE_SOLUTION +import org.eclipse.lmos.arc.assistants.support.usecases.Section.DESCRIPTION +import org.eclipse.lmos.arc.assistants.support.usecases.Section.EXAMPLES +import org.eclipse.lmos.arc.assistants.support.usecases.Section.FALLBACK_SOLUTION +import org.eclipse.lmos.arc.assistants.support.usecases.Section.GOAL +import org.eclipse.lmos.arc.assistants.support.usecases.Section.NONE +import org.eclipse.lmos.arc.assistants.support.usecases.Section.OUTPUT +import org.eclipse.lmos.arc.assistants.support.usecases.Section.SOLUTION +import org.eclipse.lmos.arc.assistants.support.usecases.Section.STEPS +import org.eclipse.lmos.arc.assistants.support.usecases.Section.SUB_START import kotlin.text.RegexOption.IGNORE_CASE /** @@ -46,6 +55,7 @@ fun String.toUseCases(): List { line.contains("# Fallback") -> FALLBACK_SOLUTION line.contains("# Step") -> STEPS line.contains("# Example") -> EXAMPLES + line.contains("# Output") -> OUTPUT else -> error("Unknown UseCase section: ${line.trim()}") } return@forEachLine @@ -62,6 +72,10 @@ fun String.toUseCases(): List { goal = (currentUseCase?.goal ?: emptyList()) + line.asConditional(), ) + OUTPUT -> currentUseCase?.copy( + output = (currentUseCase?.output ?: emptyList()) + line.asConditional(), + ) + STEPS -> currentUseCase?.copy(steps = (currentUseCase?.steps ?: emptyList()) + line.asConditional()) EXAMPLES -> currentUseCase?.copy(examples = (currentUseCase?.examples ?: "") + line) DESCRIPTION -> currentUseCase?.copy( @@ -202,6 +216,7 @@ enum class Section { FALLBACK_SOLUTION, STEPS, EXAMPLES, + OUTPUT, } @Serializable @@ -219,6 +234,7 @@ data class UseCase( val goal: List = emptyList(), val subUseCase: Boolean = false, val category: String? = null, + val output: List = emptyList(), ) { fun matches(allConditions: Set, input: String? = null): Boolean = conditions.matches(allConditions, input) @@ -294,20 +310,20 @@ fun Set.matches(conditions: Set, input: String? = null): Boolean conditions } return isEmpty() || ( - positiveConditionals().all { allConditions.contains(it) } && - negativeConditionals().none { allConditions.contains(it) } && - orConditionals().all { ors -> - ors.any { - if (it.startsWith("!")) { - !allConditions.contains( - it.removePrefix("!").trim(), - ) - } else { - allConditions.contains(it.trim()) + positiveConditionals().all { allConditions.contains(it) } && + negativeConditionals().none { allConditions.contains(it) } && + orConditionals().all { ors -> + ors.any { + if (it.startsWith("!")) { + !allConditions.contains( + it.removePrefix("!").trim(), + ) + } else { + allConditions.contains(it.trim()) + } + } } - } - } - ) + ) } /** diff --git a/arc-assistants/src/main/kotlin/usecases/features/FlowEnforcer.kt b/arc-assistants/src/main/kotlin/usecases/features/FlowEnforcer.kt index 5f95ad3c..ef372ab4 100644 --- a/arc-assistants/src/main/kotlin/usecases/features/FlowEnforcer.kt +++ b/arc-assistants/src/main/kotlin/usecases/features/FlowEnforcer.kt @@ -69,6 +69,7 @@ suspend fun processFlow( model: String? = null, noMatchResponse: String? = null, optionsAnalyserPrompt: String? = null, + optionsAnalyser: OptionsAnalyser? = null, ): String { val flowStart = extractFlowOptions(content) @@ -105,7 +106,13 @@ suspend fun processFlow( // // Match the user reply to one of the options. // - val matchedOption = evalUserReply(updatedFlowPosition, context, optionsAnalyserPrompt, model) + val messages = context.get().transcript.takeLast(4) + val userMessage = messages.last().content + val matchedOption = (if (optionsAnalyser != null) optionsAnalyser.pickOption( + userMessage, + updatedFlowPosition + ) else evalUserReply(updatedFlowPosition, context, optionsAnalyserPrompt, model)) + ?: updatedFlowPosition.options.firstOrNull { it.option == "else" } if (matchedOption != null) { // // The command "RESET" is a special command that clears the current flow progress. @@ -142,8 +149,11 @@ suspend fun processFlow( // Check if the instruction is to use static text. val instructions = referenceUseCase.toInstructions(conditions) - if (instructions.trim().startsWith(">>>")) { - context.breakWith(instructions.substringAfter(">>>"), reason = "Following flow option.") + if (instructions.trim().startsWith("\"") && instructions.trim().endsWith("\"")) { + context.breakWith( + instructions.substringAfter("\"") + .substringBeforeLast("\""), reason = "Following flow option." + ) } // Update the instructions to those of the referenced use case. @@ -297,3 +307,7 @@ data class FlowProgress(val useCaseId: String, val steps: List) suspend fun DSLContext.getCurrentFlowProgress(): FlowProgress? { return getLocal(MEMORY_KEY) as? FlowProgress? ?: memory(MEMORY_KEY) } + +fun interface OptionsAnalyser { + fun pickOption(userInput: String, options: FlowOptions): FlowOption? +} \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3a734d47..41b54b28 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -69,6 +69,7 @@ ktor-server-cio = { module = "io.ktor:ktor-server-cio", version.ref = "ktor-serv ktor-server-websockets = { module = "io.ktor:ktor-server-websockets", version.ref = "ktor-server-version" } ktor-server-static = { module = "io.ktor:ktor-server-status-pages", version.ref = "ktor-server-version" } ktor-server-cors = { module = "io.ktor:ktor-server-cors", version.ref = "ktor-server-version" } +ktor-server-sse = { module = "io.ktor:ktor-server-sse", version.ref = "ktor-server-version" } graphql-kotlin-ktor = { module = "com.expediagroup:graphql-kotlin-ktor-server", version.ref = "graphql-kotlin-version" } graphql-kotlin-spring = { module = "com.expediagroup:graphql-kotlin-spring-server", version.ref = "graphql-kotlin-version" }