[
  {
    "path": ".github/dependabot.yml",
    "content": "version: 2\nupdates:\n  - package-ecosystem: \"gradle\"\n    directory: \"/\"\n    schedule:\n      interval: \"daily\"\n  - package-ecosystem: \"github-actions\"\n    directory: \"/\"\n    schedule:\n      interval: \"daily\"\n"
  },
  {
    "path": ".github/workflows/gradle.yml",
    "content": "# This workflow will build a Java project with Gradle\n# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle\n\nname: Java CI with Gradle\n\non:\n  push:\n    branches: [ main ]\n  pull_request:\n    branches: [ main ]\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v4.1.1\n    - name: Set up JDK 17\n      uses: actions/setup-java@v4\n      with:\n        distribution: 'zulu'\n        java-version: 17\n    - name: Grant execute permission for gradlew\n      run: chmod +x gradlew\n    - name: Build with Gradle\n      run: ./gradlew build\n"
  },
  {
    "path": ".gitignore",
    "content": "HELP.md\n.gradle\nbuild/\n!gradle/wrapper/gradle-wrapper.jar\n!**/src/main/**/build/\n!**/src/test/**/build/\n\n### STS ###\n.apt_generated\n.classpath\n.factorypath\n.project\n.settings\n.springBeans\n.sts4-cache\nbin/\n!**/src/main/**/bin/\n!**/src/test/**/bin/\n\n### IntelliJ IDEA ###\n.idea\n*.iws\n*.iml\n*.ipr\nout/\n!**/src/main/**/out/\n!**/src/test/**/out/\n\n### NetBeans ###\n/nbproject/private/\n/nbbuild/\n/dist/\n/nbdist/\n/.nb-gradle/\n\n### VS Code ###\n.vscode/\nuploaded-images\n.DS_Store"
  },
  {
    "path": ".sdkmanrc",
    "content": "# Enable auto-env through the sdkman_auto_env config\n# Add key=value pairs of SDKs to use below\njava=17.0.3-zulu\n"
  },
  {
    "path": "LICENSE",
    "content": "\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License."
  },
  {
    "path": "Makefile",
    "content": ".PHONY: help run check\n.DEFAULT_GOAL := help\n\nSHELL = /bin/sh\n\n## Gradle\nGW = ./gradlew\nGFLAGS ?=\nGW_CMD = $(GW) $(GFLAGS)\n\nrun: ## Runs the service, with the local profile enabled\n\t$(GW_CMD) $(GW_OPT) bootRun --args='--spring.profiles.active=local'\n\ncheck: ## Runs gradlew check\n\t$(GW_CMD) $(GW_OPT) check\n\nhelp:\n\t@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = \":.*?## \"}; {printf \"\\033[36m%-30s\\033[0m %s\\n\", $$1, $$2}'\n"
  },
  {
    "path": "NOTICE",
    "content": ""
  },
  {
    "path": "README.md",
    "content": "Java DGS Framework example\n=====\n\nThis repository is an example application for the [DGS Framework](https://netflix.github.io/dgs).\nThe example is a standalone GraphQL server in Java.\n\nIt shows the following features:\n* [Datafetchers](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/datafetchers/ShowsDatafetcher.java#L26)\n* [Mutations](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/datafetchers/ReviewsDataFetcher.java#L50) \n* [DataLoader to prevent the N+1 problem](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/datafetchers/ReviewsDataFetcher.java#L40)\n* [Query testing](https://github.com/Netflix/dgs-examples-java/blob/main/src/test/java/com/example/demo/ShowsDatafetcherTest.java#L61)\n* [Using a generated Query API](https://github.com/Netflix/dgs-examples-java/blob/main/src/test/java/com/example/demo/ShowsDatafetcherTest.java#L89)  \n* [File Upload](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/datafetchers/ArtworkUploadDataFetcher.java#L22)\n* [Using the Gradle codegen plugin](https://github.com/Netflix/dgs-examples-java/blob/main/build.gradle.kts#L45)\n* [A custom instrumentation implementation](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/instrumentation/ExampleTracingInstrumentation.java#L20)\n* [Subscriptions](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/datafetchers/ReviewsDataFetcher.java#L60)\n* [Testing a subscription](https://github.com/Netflix/dgs-examples-java/blob/main/src/test/java/com/example/demo/ReviewSubscriptionTest.java#L46)  \n* [Registering an optional scalar from graphql-java](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/scalars/DateTimeScalar.java#L16)\n\nOther examples\n---\n\nThere are other examples of using the DGS framework as well:\n\n* [Kotlin implementation of this example](https://github.com/Netflix/dgs-examples-kotlin)\n* [Federation examples (with Apollo Gateway)](https://github.com/Netflix/dgs-federation-example)\n\nShows and Reviews\n----\n\nThis example is built around two main types: [Show](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/resources/schema/schema.graphqls#L14) and [Review](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/resources/schema/schema.graphqls#L22).\nA `Show` represents a series or movie you would find on Netflix.\nFor ease of running the demo, the list of shows is hardcoded in [ShowsServiceImpl](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/services/ShowsServiceImpl.java).\nA show can have `Reviews`.\nAgain, for ease of running the demo, a list of reviews is generated during startup for each show in [DefaultReviewsService](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/services/DefaultReviewsService.java).\n\nReviews can also be added by users of the API using a [mutation](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/resources/schema/schema.graphqls#L6), and a [GraphQL Subscription](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/resources/schema/schema.graphqls#L11) is available to watch for added reviews.\n\nThere's also a mutation available to add [Artwork](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/resources/schema/schema.graphqls#L7) for a show, demonstrating file uploads.\nUploaded files are stored in a folder `uploaded-images` in the work directory where ethe application is started.\n\nStarting the example\n----\n\nThe example requires Java 11.\nRun the application in an IDE using its [main class](https://github.com/Netflix/dgs-examples-java/blob/main/src/main/java/com/example/demo/DemoApplication.java) or using Gradle: \n\n```\n./gradlew bootRun\n```\n\nInteract with the application using GraphiQL on http://localhost:8080/graphiql.\n"
  },
  {
    "path": "build.gradle.kts",
    "content": "/*\n * Copyright 2021 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport org.gradle.api.tasks.testing.logging.TestExceptionFormat.*\nimport org.gradle.api.tasks.testing.logging.TestLogEvent.*\n\n\nplugins {\n    id(\"java\")\n    id(\"org.springframework.boot\") version \"3.3.0\"\n    id(\"io.spring.dependency-management\") version \"1.1.4\"\n    id(\"com.netflix.dgs.codegen\") version \"6.1.4\"\n}\napply(plugin = \"com.netflix.dgs.codegen\")\n\ngroup = \"com.example\"\nversion = \"0.0.1-SNAPSHOT\"\n\n\nrepositories {\n    mavenCentral()\n    // ----\n    // Before we release the DGS Framework our CI Pipeline tests this project against the current snapshot.\n    // To support that we need to have `mavenLocal` support.\n    mavenLocal()\n    // ----\n\n    maven {url = uri(\"https://repo.spring.io/milestone/\")}\n}\n\n\ndependencyManagement {\n    imports {\n        mavenBom(\"com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.5.6\")\n    }\n}\n\njava {\n    toolchain {\n        languageVersion.set(JavaLanguageVersion.of(17))\n    }\n}\n\nrepositories {\n    mavenLocal()\n}\n\n// Set Kotlin version to 1.9.20 to avoid the issue described here:\n// https://youtrack.jetbrains.com/issue/KT-58021\n// TODO: after updating to Spring Boot 3.2.x, this workaround can be removed\nextra[\"kotlin.version\"] = \"1.9.20\"\n\ndependencies {\n    implementation(platform(\"com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.5.6\"))\n    implementation(\"com.netflix.graphql.dgs:graphql-dgs-spring-graphql-starter\")\n    implementation(\"com.netflix.graphql.dgs:graphql-dgs-extended-scalars\")\n    implementation(\"org.springframework.boot:spring-boot-starter-websocket\")\n    implementation(\"name.nkonev.multipart-spring-graphql:multipart-spring-graphql:1.+\")\n    implementation(\"org.springframework.boot:spring-boot-starter-web\")\n    implementation(\"net.datafaker:datafaker:2.+\")\n    implementation(\"com.github.ben-manes.caffeine:caffeine\")\n    implementation(\"org.springframework.boot:spring-boot-starter-security\")\n    implementation(\"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer\")\n    implementation(\"org.springframework.boot:spring-boot-starter-actuator\")\n\n    testImplementation(\"org.springframework.boot:spring-boot-starter-test\")\n    implementation(\"com.netflix.graphql.dgs:graphql-dgs-spring-graphql-starter-test\")\n    testImplementation(\"com.netflix.graphql.dgs:graphql-dgs-client\")\n    testImplementation(\"org.springframework.boot:spring-boot-starter-webflux\")\n    testImplementation(\"io.projectreactor:reactor-test\")\n    testImplementation(\"org.springframework.security:spring-security-test\")\n}\n\ntasks.withType<com.netflix.graphql.dgs.codegen.gradle.GenerateJavaTask> {\n    generateClientv2 = true\n    packageName = \"com.example.demo.generated\"\n}\n\n\n\n\ntasks.withType<Test> {\n    useJUnitPlatform()\n    testLogging {\n        events(FAILED, STANDARD_ERROR, SKIPPED)\n        exceptionFormat = FULL\n        showExceptions = true\n        showCauses = true\n        showStackTraces = true\n    }\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-8.4-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\r\n@rem you may not use this file except in compliance with the License.\r\n@rem You may obtain a copy of the License at\r\n@rem\r\n@rem      https://www.apache.org/licenses/LICENSE-2.0\r\n@rem\r\n@rem Unless required by applicable law or agreed to in writing, software\r\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\r\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n@rem See the License for the specific language governing permissions and\r\n@rem limitations under the License.\r\n@rem\r\n\r\n@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\r\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle.kts",
    "content": "/*\n * Copyright 2021 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nrootProject.name = \"dgs-examples-java\"\n"
  },
  {
    "path": "src/main/java/com/example/demo/DemoApplication.java",
    "content": "package com.example.demo;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n@SpringBootApplication\npublic class DemoApplication {\n\n\tpublic static void main(String[] args) {\n\t\tSpringApplication.run(DemoApplication.class, args);\n\t}\n\n\t/**\n\t * Below is an example of using a PreparsedDocumentProvider.\n\t * Uncomment to enable\n\t */\n//\t@Configuration\n//\tstatic class PreparsedDocumentProviderConfig {\n//\n//\t\tprivate final Cache<String, PreparsedDocumentEntry> cache = Caffeine.newBuilder().maximumSize(250)\n//\t\t\t\t.expireAfterAccess(5, TimeUnit.MINUTES).recordStats().build();\n//\n//\n//\t\t@Bean\n//\t\tpublic PreparsedDocumentProvider preparsedDocumentProvider() {\n//\t\t\treturn (executionInput, parseAndValidateFunction) -> {\n//\t\t\t\tFunction<String, PreparsedDocumentEntry> mapCompute = key -> parseAndValidateFunction.apply(executionInput);\n//\t\t\t\treturn cache.get(executionInput.getQuery(), mapCompute);\n//\t\t\t};\n//\t\t}\n//\t}\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/config/MetricsConfig.java",
    "content": "package com.example.demo.config;\n\nimport io.micrometer.core.instrument.MeterRegistry;\nimport org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport io.micrometer.core.instrument.logging.LoggingMeterRegistry;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;\n\n@Configuration\npublic class MetricsConfig {\n\n    @Bean\n    public MeterRegistry loggingMeterRegistry() {\n        return new LoggingMeterRegistry();\n    }\n}\n\n"
  },
  {
    "path": "src/main/java/com/example/demo/config/SecurityConfig.java",
    "content": "package com.example.demo.config;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;\nimport org.springframework.security.config.annotation.web.builders.HttpSecurity;\nimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;\nimport org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;\nimport org.springframework.security.core.userdetails.User;\nimport org.springframework.security.core.userdetails.UserDetails;\nimport org.springframework.security.provisioning.InMemoryUserDetailsManager;\nimport org.springframework.security.web.DefaultSecurityFilterChain;\n\nimport static org.springframework.security.config.Customizer.withDefaults;\n\n@Configuration\n@EnableWebSecurity\n@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)\npublic class SecurityConfig {\n\n    @Bean\n    DefaultSecurityFilterChain springWebFilterChain(HttpSecurity http) throws Exception {\n        return http\n                .csrf(AbstractHttpConfigurer::disable)\n                .authorizeRequests(requests -> requests\n                        .anyRequest().permitAll()\n                )\n                .httpBasic(withDefaults())\n                .build();\n    }\n\n    @Bean\n    public static InMemoryUserDetailsManager userDetailsService() {\n        User.UserBuilder userBuilder = User.withDefaultPasswordEncoder();\n        UserDetails user = userBuilder.username(\"user\").password(\"user\").roles(\"USER\").build();\n        UserDetails admin = userBuilder.username(\"admin\").password(\"admin\").roles(\"USER\", \"ADMIN\").build();\n        return new InMemoryUserDetailsManager(user, admin);\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/datafetchers/ArtworkUploadDataFetcher.java",
    "content": "package com.example.demo.datafetchers;\n\nimport com.example.demo.generated.types.Image;\nimport com.netflix.graphql.dgs.DgsComponent;\nimport com.netflix.graphql.dgs.DgsMutation;\nimport com.netflix.graphql.dgs.InputArgument;\nimport org.springframework.web.multipart.MultipartFile;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\nimport java.util.List;\nimport java.util.UUID;\nimport java.util.stream.Collectors;\n\n@DgsComponent\npublic class ArtworkUploadDataFetcher {\n    @DgsMutation\n    public List<Image> addArtwork(@InputArgument Integer showId, @InputArgument MultipartFile upload) throws IOException {\n        Path uploadDir = Paths.get(\"uploaded-images\");\n        if (!Files.exists(uploadDir)) {\n            Files.createDirectories(uploadDir);\n        }\n\n        Path newFile = uploadDir.resolve(\"show-\" + showId + \"-\" + UUID.randomUUID() + upload.getOriginalFilename().substring(upload.getOriginalFilename().lastIndexOf(\".\")));\n        try (OutputStream outputStream = Files.newOutputStream(newFile)) {\n            outputStream.write(upload.getBytes());\n        }\n\n        return Files.list(uploadDir)\n                .filter(f -> f.getFileName().toString().startsWith(\"show-\" + showId))\n                .map(f -> f.getFileName().toString())\n                .map(fileName -> Image.newBuilder().url(fileName).build()).collect(Collectors.toList());\n\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/datafetchers/ReviewsDataFetcher.java",
    "content": "package com.example.demo.datafetchers;\n\nimport com.example.demo.dataloaders.ReviewsDataLoader;\nimport com.example.demo.dataloaders.ReviewsDataLoaderWithContext;\nimport com.example.demo.generated.DgsConstants;\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.generated.types.Show;\nimport com.example.demo.generated.types.SubmittedReview;\nimport com.example.demo.services.DefaultReviewsService;\nimport com.netflix.graphql.dgs.*;\nimport org.dataloader.BatchLoaderEnvironment;\nimport org.dataloader.DataLoader;\nimport org.reactivestreams.Publisher;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.LinkedHashMap;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Objects;\nimport java.util.Optional;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.stream.Collectors;\n\n\n@DgsComponent\npublic class ReviewsDataFetcher {\n\n    private final DefaultReviewsService reviewsService;\n\n    public ReviewsDataFetcher(DefaultReviewsService reviewsService) {\n        this.reviewsService = reviewsService;\n    }\n\n    /**\n     * This datafetcher will be called to resolve the \"reviews\" field on a Show.\n     * It's invoked for each individual Show, so if we would load 10 shows, this method gets called 10 times.\n     * To avoid the N+1 problem this datafetcher uses a DataLoader.\n     * Although the DataLoader is called for each individual show ID, it will batch up the actual loading to a single method call to the \"load\" method in the ReviewsDataLoader.\n     * For this to work correctly, the datafetcher needs to return a CompletableFuture.\n     */\n    @DgsData(parentType = DgsConstants.SHOW.TYPE_NAME, field = DgsConstants.SHOW.Reviews)\n    public CompletableFuture<List<Review>> reviews(DgsDataFetchingEnvironment dfe) {\n        //Instead of loading a DataLoader by name, we can use the DgsDataFetchingEnvironment and pass in the DataLoader classname.\n        DataLoader<Integer, List<Review>> reviewsDataLoader = dfe.getDataLoader(ReviewsDataLoaderWithContext.class);\n\n        //Because the reviews field is on Show, the getSource() method will return the Show instance.\n        Show show = dfe.getSource();\n\n        //Load the reviews from the DataLoader. This call is async and will be batched by the DataLoader mechanism.\n        return reviewsDataLoader.load(show.getId());\n    }\n\n    @DgsMutation\n    public List<Review> addReview(@InputArgument SubmittedReview review) {\n        reviewsService.saveReview(review);\n\n        List<Review> reviews = reviewsService.reviewsForShow(review.getShowId());\n\n        return Optional.ofNullable(reviews).orElse(Collections.emptyList());\n    }\n\n    @DgsMutation\n    public List<Review> addReviews(@InputArgument(value = \"reviews\", collectionType = SubmittedReview.class) List<SubmittedReview> reviewsInput) {\n        reviewsService.saveReviews(reviewsInput);\n\n        List<Integer> showIds = reviewsInput.stream().map(SubmittedReview::getShowId).collect(Collectors.toList());\n        Map<Integer, List<Review>> reviews = reviewsService.reviewsForShows(showIds);\n\n        return reviews.values().stream().flatMap(List::stream).collect(Collectors.toList());\n    }\n\n    @DgsSubscription\n    public Publisher<Review> reviewAdded(@InputArgument Integer showId) {\n        return reviewsService.getReviewsPublisher();\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/datafetchers/SecurityExampleFetchers.java",
    "content": "package com.example.demo.datafetchers;\n\nimport com.netflix.graphql.dgs.DgsComponent;\nimport com.netflix.graphql.dgs.DgsQuery;\nimport org.springframework.security.access.annotation.Secured;\n\n@DgsComponent\npublic class SecurityExampleFetchers {\n\n    @DgsQuery\n    public String secureNone() {\n        return \"Hello to everyone\";\n    }\n\n    @DgsQuery\n    @Secured({\"ROLE_USER\", \"ROLE_ADMIN\"})\n    public String secureUser() {\n        return \"Hello to users or admins\";\n    }\n\n    @DgsQuery\n    @Secured({\"ROLE_ADMIN\"})\n    public String secureAdmin() {\n        return \"Hello to admins only\";\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/datafetchers/ShowsDataFetcher.java",
    "content": "package com.example.demo.datafetchers;\n\nimport com.example.demo.generated.types.Show;\nimport com.example.demo.services.ShowsService;\nimport com.netflix.graphql.dgs.DgsComponent;\nimport com.netflix.graphql.dgs.DgsQuery;\nimport com.netflix.graphql.dgs.InputArgument;\n\nimport java.util.List;\nimport java.util.stream.Collectors;\n\n@DgsComponent\npublic class ShowsDataFetcher {\n    private final ShowsService showsService;\n\n    public ShowsDataFetcher(ShowsService showsService) {\n        this.showsService = showsService;\n    }\n\n    /**\n     * This dataFetcher resolves the shows field on Query.\n     * It uses an @InputArgument to get the titleFilter from the Query if one is defined.\n     */\n    @DgsQuery\n    public List<Show> shows(@InputArgument(\"titleFilter\") String titleFilter) {\n        if (titleFilter == null) {\n            return showsService.shows();\n        }\n\n        return showsService.shows().stream().filter(s -> s.getTitle().contains(titleFilter)).collect(Collectors.toList());\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/dataloaders/ReviewsDataLoader.java",
    "content": "package com.example.demo.dataloaders;\n\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.services.DefaultReviewsService;\nimport com.netflix.graphql.dgs.DgsDataLoader;\nimport org.dataloader.MappedBatchLoader;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Set;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.concurrent.CompletionStage;\n\n@DgsDataLoader(name = \"reviews\")\npublic class ReviewsDataLoader implements MappedBatchLoader<Integer, List<Review>> {\n    private final DefaultReviewsService reviewsService;\n\n    public ReviewsDataLoader(DefaultReviewsService reviewsService) {\n        this.reviewsService = reviewsService;\n    }\n\n    /**\n     * This method will be called once, even if multiple datafetchers use the load() method on the DataLoader.\n     * This way reviews can be loaded for all the Shows in a single call instead of per individual Show.\n     */\n    @Override\n    public CompletionStage<Map<Integer, List<Review>>> load(Set<Integer> keys) {\n\n        return CompletableFuture.supplyAsync(() -> reviewsService.reviewsForShows(new ArrayList<>(keys)));\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/dataloaders/ReviewsDataLoaderWithContext.java",
    "content": "package com.example.demo.dataloaders;\n\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.services.DefaultReviewsService;\nimport com.netflix.graphql.dgs.DgsDataLoader;\nimport org.dataloader.BatchLoaderEnvironment;\nimport org.dataloader.MappedBatchLoader;\nimport org.dataloader.MappedBatchLoaderWithContext;\nimport org.springframework.beans.factory.annotation.Autowired;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Set;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.concurrent.CompletionStage;\n\n@DgsDataLoader(name = \"reviewsWithContext\")\npublic class ReviewsDataLoaderWithContext implements MappedBatchLoaderWithContext<Integer, List<Review>> {\n    private final DefaultReviewsService reviewsService;\n\n    @Autowired\n    public ReviewsDataLoaderWithContext(DefaultReviewsService reviewsService) {\n        this.reviewsService = reviewsService;\n    }\n\n    @Override\n    public CompletionStage<Map<Integer, List<Review>>> load(Set<Integer> keys, BatchLoaderEnvironment environment) {\n        return CompletableFuture.supplyAsync(() -> reviewsService.reviewsForShows(new ArrayList<>(keys)));\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/directives/UppercaseDirective.java",
    "content": "package com.example.demo.directives;\n\nimport com.netflix.graphql.dgs.DgsDirective;\nimport graphql.schema.DataFetcher;\nimport graphql.schema.DataFetcherFactories;\nimport graphql.schema.GraphQLFieldDefinition;\nimport graphql.schema.GraphQLFieldsContainer;\nimport graphql.schema.idl.SchemaDirectiveWiring;\nimport graphql.schema.idl.SchemaDirectiveWiringEnvironment;\n\n@DgsDirective(name = \"uppercase\")\npublic class UppercaseDirective implements SchemaDirectiveWiring {\n\n    @Override\n    public GraphQLFieldDefinition onField(SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition> env) {\n        DataFetcher<?> originalDataFetcher = env.getFieldDataFetcher();\n        DataFetcher<?> dataFetcher = DataFetcherFactories.wrapDataFetcher(\n                originalDataFetcher,\n                (dataFetchingEnvironment, value) -> {\n                    if (value instanceof String) {\n                        return ((String) value).toUpperCase();\n                    }\n                    return value;\n                }\n        );\n\n        env.setFieldDataFetcher(dataFetcher);\n        return env.getElement();\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/instrumentation/ExampleTracingInstrumentation.java",
    "content": "package com.example.demo.instrumentation;\n\nimport graphql.ExecutionResult;\nimport graphql.execution.instrumentation.InstrumentationContext;\nimport graphql.execution.instrumentation.InstrumentationState;\nimport graphql.execution.instrumentation.SimpleInstrumentation;\nimport graphql.execution.instrumentation.SimplePerformantInstrumentation;\nimport graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters;\nimport graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters;\nimport graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;\nimport graphql.schema.DataFetcher;\nimport graphql.schema.GraphQLNonNull;\nimport graphql.schema.GraphQLObjectType;\nimport graphql.schema.GraphQLOutputType;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains.annotations.Nullable;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.stereotype.Component;\n\nimport java.util.concurrent.CompletableFuture;\n\n@Component\npublic class ExampleTracingInstrumentation extends SimplePerformantInstrumentation {\n    private final static Logger LOGGER = LoggerFactory.getLogger(ExampleTracingInstrumentation.class);\n\n    @Override\n    public @Nullable InstrumentationState createState(InstrumentationCreateStateParameters parameters) {\n        return new TracingState();\n    }\n\n    @Override\n    public @Nullable InstrumentationContext<ExecutionResult> beginExecution(InstrumentationExecutionParameters parameters, InstrumentationState state) {\n        TracingState tracingState = (TracingState) state;\n        tracingState.startTime = System.currentTimeMillis();\n        return super.beginExecution(parameters, state);\n    }\n\n    @Override\n    public @NotNull DataFetcher<?> instrumentDataFetcher(DataFetcher<?> dataFetcher, InstrumentationFieldFetchParameters parameters, InstrumentationState state) {\n        // We only care about user code\n        if(parameters.isTrivialDataFetcher()) {\n            return dataFetcher;\n        }\n\n        return environment -> {\n            long startTime = System.currentTimeMillis();\n            Object result = dataFetcher.get(environment);\n            if(result instanceof CompletableFuture) {\n                ((CompletableFuture<?>) result).whenComplete((r, ex) -> {\n                    long totalTime = System.currentTimeMillis() - startTime;\n                    LOGGER.info(\"Async datafetcher {} took {}ms\", findDatafetcherTag(parameters), totalTime);\n                });\n            } else {\n                long totalTime = System.currentTimeMillis() - startTime;\n                LOGGER.info(\"Datafetcher {} took {}ms\", findDatafetcherTag(parameters), totalTime);\n            }\n\n            return result;\n        };\n    }\n\n    @Override\n    public @NotNull CompletableFuture<ExecutionResult> instrumentExecutionResult(ExecutionResult executionResult, InstrumentationExecutionParameters parameters, InstrumentationState state) {\n        TracingState tracingState = (TracingState) state;\n        long totalTime = System.currentTimeMillis() - tracingState.startTime;\n        LOGGER.info(\"Total execution time: {}ms\", totalTime);\n\n        return super.instrumentExecutionResult(executionResult, parameters, state);\n    }\n\n    private String findDatafetcherTag(InstrumentationFieldFetchParameters parameters) {\n        GraphQLOutputType type = parameters.getExecutionStepInfo().getParent().getType();\n        GraphQLObjectType parent;\n        if (type instanceof GraphQLNonNull) {\n            parent = (GraphQLObjectType) ((GraphQLNonNull) type).getWrappedType();\n        } else {\n            parent = (GraphQLObjectType) type;\n        }\n\n        return  parent.getName() + \".\" + parameters.getExecutionStepInfo().getPath().getSegmentName();\n    }\n\n    static class TracingState implements InstrumentationState {\n        long startTime;\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/scalars/DateTimeScalar.java",
    "content": "package com.example.demo.scalars;\n\nimport com.netflix.graphql.dgs.DgsComponent;\nimport com.netflix.graphql.dgs.DgsRuntimeWiring;\nimport graphql.scalars.ExtendedScalars;\nimport graphql.schema.idl.RuntimeWiring;\n\n/**\n * graphql-java provides optional scalars in the graphql-java-extended-scalars library.\n * We can wire a scalar from this library by adding the scalar to the RuntimeWiring.\n */\n@DgsComponent\npublic class DateTimeScalar {\n\n    @DgsRuntimeWiring\n    public RuntimeWiring.Builder addScalar(RuntimeWiring.Builder builder) {\n        return builder.scalar(ExtendedScalars.DateTime);\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/services/DefaultReviewsService.java",
    "content": "package com.example.demo.services;\n\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.generated.types.SubmittedReview;\nimport net.datafaker.Faker;\nimport org.reactivestreams.Publisher;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.stereotype.Service;\nimport reactor.core.publisher.ConnectableFlux;\nimport reactor.core.publisher.Flux;\nimport reactor.core.publisher.FluxSink;\n\nimport jakarta.annotation.PostConstruct;\nimport java.time.LocalDateTime;\nimport java.time.OffsetDateTime;\nimport java.time.ZoneId;\nimport java.time.ZoneOffset;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentHashMap;\nimport java.util.concurrent.TimeUnit;\nimport java.util.stream.Collectors;\nimport java.util.stream.IntStream;\n\n/**\n * This service emulates a data store.\n * For convenience in the demo we just generate Reviews in memory, but imagine this would be backed by for example a database.\n * If this was indeed backed by a database, it would be very important to avoid the N+1 problem, which means we need to use a DataLoader to call this class.\n */\n@Service\npublic class DefaultReviewsService implements ReviewsService {\n    private final static Logger logger = LoggerFactory.getLogger(DefaultReviewsService.class);\n\n    private final ShowsService showsService;\n    private final Map<Integer, List<Review>> reviews = new ConcurrentHashMap<>();\n    private FluxSink<Review> reviewsStream;\n    private ConnectableFlux<Review> reviewsPublisher;\n\n    public DefaultReviewsService(ShowsService showsService) {\n        this.showsService = showsService;\n    }\n\n    @PostConstruct\n    private void createReviews() {\n        Faker faker = new Faker();\n\n        //For each show we generate a random set of reviews.\n        showsService.shows().forEach(show -> {\n            List<Review> generatedReviews = IntStream.range(0, faker.number().numberBetween(1, 20)).mapToObj(number -> {\n                LocalDateTime date = faker.date().past(300, TimeUnit.DAYS).toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();\n                return Review.newBuilder().submittedDate(OffsetDateTime.of(date, ZoneOffset.UTC)).username(faker.name().username()).starScore(faker.number().numberBetween(0, 6)).build();\n            }).collect(Collectors.toList());\n\n            reviews.put(show.getId(), generatedReviews);\n        });\n\n\n        Flux<Review> publisher = Flux.create(emitter -> {\n            reviewsStream = emitter;\n        });\n\n        reviewsPublisher = publisher.publish();\n        reviewsPublisher.connect();\n    }\n\n    /**\n     * Hopefully nobody calls this for multiple shows within a single query, that would indicate the N+1 problem!\n     */\n    public List<Review> reviewsForShow(Integer showId) {\n        return reviews.get(showId);\n    }\n\n    /**\n     * This is the method we want to call when loading reviews for multiple shows.\n     * If this code was backed by a relational database, it would select reviews for all requested shows in a single SQL query.\n     */\n    public Map<Integer, List<Review>> reviewsForShows(List<Integer> showIds) {\n        logger.info(\"Loading reviews for shows {}\", showIds.stream().map(String::valueOf).collect(Collectors.joining(\", \")));\n\n        return reviews\n                .entrySet()\n                .stream()\n                .filter(entry -> showIds.contains(entry.getKey())).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));\n    }\n\n    public void saveReview(SubmittedReview reviewInput) {\n        List<Review> reviewsForShow = reviews.computeIfAbsent(reviewInput.getShowId(), (key) -> new ArrayList<>());\n        Review review = Review.newBuilder()\n                .username(reviewInput.getUsername())\n                .starScore(reviewInput.getStarScore())\n                .submittedDate(OffsetDateTime.now()).build();\n\n        reviewsForShow.add(review);\n        reviewsStream.next(review);\n\n        logger.info(\"Review added {}\", review);\n    }\n\n    public void saveReviews(List<SubmittedReview> reviewsInput) {\n        reviewsInput.forEach(reviewInput -> {\n            List<Review> reviewsForShow = reviews.computeIfAbsent(reviewInput.getShowId(), (key) -> new ArrayList<>());\n            Review review = Review.newBuilder()\n                    .username(reviewInput.getUsername())\n                    .starScore(reviewInput.getStarScore())\n                    .submittedDate(OffsetDateTime.now()).build();\n\n            reviewsForShow.add(review);\n            reviewsStream.next(review);\n\n            logger.info(\"Review added {}\", review);\n        });\n    }\n\n    public Publisher<Review> getReviewsPublisher() {\n        return reviewsPublisher;\n    }\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/services/ReviewsService.java",
    "content": "package com.example.demo.services;\n\npublic interface ReviewsService {\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/services/ShowsService.java",
    "content": "package com.example.demo.services;\n\n\nimport com.example.demo.generated.types.Show;\n\nimport java.util.List;\n\npublic interface ShowsService {\n    List<Show> shows();\n}\n"
  },
  {
    "path": "src/main/java/com/example/demo/services/ShowsServiceImpl.java",
    "content": "package com.example.demo.services;\n\nimport com.example.demo.generated.types.Show;\nimport org.springframework.stereotype.Service;\n\nimport java.util.Arrays;\nimport java.util.List;\n\n@Service\npublic class ShowsServiceImpl implements ShowsService {\n    @Override\n    public List<Show> shows() {\n        return Arrays.asList(\n                Show.newBuilder().id(1).title(\"Stranger Things\").releaseYear(2016).build(),\n                Show.newBuilder().id(2).title(\"Ozark\").releaseYear(2017).build(),\n                Show.newBuilder().id(3).title(\"The Crown\").releaseYear(2016).build(),\n                Show.newBuilder().id(4).title(\"Dead to Me\").releaseYear(2019).build(),\n                Show.newBuilder().id(5).title(\"Orange is the New Black\").releaseYear(2013).build()\n        );\n    }\n}\n"
  },
  {
    "path": "src/main/resources/application.yml",
    "content": "spring:\n  application:\n    name: dgs-example-java\n\n  graphql:\n    graphiql:\n      enabled: true\n    websocket:\n      path: /graphql\n\n---\nspring:\n  config:\n    activate:\n      on-profile: local\n  output:\n    ansi:\n      enabled: always\n\nlogging:\n  level:\n    io.micrometer.core.instrument.logging.*: true\n"
  },
  {
    "path": "src/main/resources/schema/schema.graphqls",
    "content": "type Query {\n    shows(titleFilter: String): [Show]\n    secureNone: String\n    secureUser: String\n    secureAdmin: String\n}\n\ntype Mutation {\n    addReview(review: SubmittedReview): [Review]\n    addReviews(reviews: [SubmittedReview]): [Review]\n    addArtwork(showId: Int!, upload: Upload!): [Image]! @skipcodegen\n}\n\ntype Subscription {\n    reviewAdded(showId: Int!): Review\n}\n\ntype Show {\n    id: Int\n    title: String @uppercase\n    releaseYear: Int\n    reviews(minScore:Int): [Review]\n    artwork: [Image]\n}\n\ntype Review {\n    username: String\n    starScore: Int\n    submittedDate: DateTime\n}\n\ninput SubmittedReview {\n    showId: Int!\n    username: String!\n    starScore: Int!\n}\n\ntype Image {\n    url: String\n}\n\nscalar DateTime\nscalar Upload\ndirective @skipcodegen on FIELD_DEFINITION\ndirective @uppercase on FIELD_DEFINITION\n"
  },
  {
    "path": "src/main/resources/static/asset-manifest.json",
    "content": "{\n  \"files\": {\n    \"main.js\": \"/static/js/main.05accb10.chunk.js\",\n    \"main.js.map\": \"/static/js/main.05accb10.chunk.js.map\",\n    \"runtime-main.js\": \"/static/js/runtime-main.09b85ec0.js\",\n    \"runtime-main.js.map\": \"/static/js/runtime-main.09b85ec0.js.map\",\n    \"static/js/2.ae627b82.chunk.js\": \"/static/js/2.ae627b82.chunk.js\",\n    \"static/js/2.ae627b82.chunk.js.map\": \"/static/js/2.ae627b82.chunk.js.map\",\n    \"index.html\": \"/index.html\",\n    \"precache-manifest.2241ce5fa2602c9cdc3eb026c3eb8589.js\": \"/precache-manifest.2241ce5fa2602c9cdc3eb026c3eb8589.js\",\n    \"service-worker.js\": \"/service-worker.js\",\n    \"static/js/2.ae627b82.chunk.js.LICENSE.txt\": \"/static/js/2.ae627b82.chunk.js.LICENSE.txt\"\n  },\n  \"entrypoints\": [\n    \"static/js/runtime-main.09b85ec0.js\",\n    \"static/js/2.ae627b82.chunk.js\",\n    \"static/js/main.05accb10.chunk.js\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/static/index.html",
    "content": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><link rel=\"shortcut icon\" href=\"/favicon.ico\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1,shrink-to-fit=no\"><meta name=\"theme-color\" content=\"#000000\"><link rel=\"manifest\" href=\"/manifest.json\"><title>Launches</title><link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700\" rel=\"stylesheet\"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id=\"root\"></div><script>!function(e){function t(t){for(var n,l,i=t[0],f=t[1],a=t[2],p=0,s=[];p<i.length;p++)l=i[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var f=r[i];0!==o[f]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,\"a\",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p=\"/\";var i=this.webpackJsonpclient=this.webpackJsonpclient||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var c=f;r()}([])</script><script src=\"/static/js/2.ae627b82.chunk.js\"></script><script src=\"/static/js/main.05accb10.chunk.js\"></script></body></html>"
  },
  {
    "path": "src/main/resources/static/precache-manifest.2241ce5fa2602c9cdc3eb026c3eb8589.js",
    "content": "self.__precacheManifest = (self.__precacheManifest || []).concat([\n  {\n    \"revision\": \"e16b7b688dacd0dc3ffa733050e8aa20\",\n    \"url\": \"/index.html\"\n  },\n  {\n    \"revision\": \"43e513520a1bd98e6c88\",\n    \"url\": \"/static/js/2.ae627b82.chunk.js\"\n  },\n  {\n    \"revision\": \"570d362d673dab785e62d2b8563e1118\",\n    \"url\": \"/static/js/2.ae627b82.chunk.js.LICENSE.txt\"\n  },\n  {\n    \"revision\": \"a9b28ac0f6d2a2881254\",\n    \"url\": \"/static/js/main.05accb10.chunk.js\"\n  },\n  {\n    \"revision\": \"9b4e396c183e42c1fa5c\",\n    \"url\": \"/static/js/runtime-main.09b85ec0.js\"\n  }\n]);"
  },
  {
    "path": "src/main/resources/static/service-worker.js",
    "content": "/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app and you should\n * disable HTTP caching for this file too.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\nimportScripts(\"https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js\");\n\nimportScripts(\n  \"/precache-manifest.2241ce5fa2602c9cdc3eb026c3eb8589.js\"\n);\n\nself.addEventListener('message', (event) => {\n  if (event.data && event.data.type === 'SKIP_WAITING') {\n    self.skipWaiting();\n  }\n});\n\nworkbox.core.clientsClaim();\n\n/**\n * The workboxSW.precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nself.__precacheManifest = [].concat(self.__precacheManifest || []);\nworkbox.precaching.precacheAndRoute(self.__precacheManifest, {});\n\nworkbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL(\"/index.html\"), {\n  \n  blacklist: [/^\\/_/,/\\/[^/?]+\\.[^/]+$/],\n});\n"
  },
  {
    "path": "src/main/resources/static/static/js/2.ae627b82.chunk.js",
    "content": "/*! For license information please see 2.ae627b82.chunk.js.LICENSE.txt */\n(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[2],[function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return i})),n.d(t,\"a\",(function(){return o})),n.d(t,\"e\",(function(){return a})),n.d(t,\"b\",(function(){return u})),n.d(t,\"d\",(function(){return c})),n.d(t,\"f\",(function(){return s}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if(\"function\"!==typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&\"function\"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError(\"Generator is already executing.\");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}Object.create;function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return p.a})),n.d(t,\"b\",(function(){return u})),n.d(t,\"a\",(function(){return a}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;Object.create;var i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n=\"Invariant Violation\");var r=e.call(this,\"number\"===typeof n?\"Invariant Violation: \"+n+\" (see https://github.com/apollographql/invariant-packages)\":n)||this;return r.framesToPop=1,r.name=\"Invariant Violation\",o(r,t.prototype),r}return function(e,t){if(\"function\"!==typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}var c=[\"debug\",\"log\",\"warn\",\"error\",\"silent\"],s=c.indexOf(\"log\");function l(e){return function(){if(c.indexOf(e)>=s){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=l(\"debug\"),e.log=l(\"log\"),e.warn=l(\"warn\"),e.error=l(\"error\")}(u||(u={}));var f=n(20),p=n(13),d=\"__\",h=[d,d].join(\"DEV\");var v=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(f.a,h,{value:\"production\"!==Object(p.a)((function(){return\"production\"})),enumerable:!1,configurable:!0,writable:!0}),f.a[h]}}(),y=n(32);n(36).a,Object(y.a)(),__DEV__?u(\"boolean\"===typeof v,v):u(\"boolean\"===typeof v,36)},function(e,t,n){\"use strict\";n.d(t,\"e\",(function(){return c})),n.d(t,\"b\",(function(){return s})),n.d(t,\"h\",(function(){return f})),n.d(t,\"j\",(function(){return p})),n.d(t,\"d\",(function(){return d})),n.d(t,\"a\",(function(){return h})),n.d(t,\"c\",(function(){return v})),n.d(t,\"i\",(function(){return y})),n.d(t,\"k\",(function(){return b})),n.d(t,\"g\",(function(){return m})),n.d(t,\"f\",(function(){return g}));var r=n(33),i=n(8),o=n(7),a=n(72),u=n(71),c=Object.prototype.hasOwnProperty;function s(e,t){var n=e.__typename,r=e.id,i=e._id;if(\"string\"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return\"\".concat(n,\":\").concat(\"number\"===typeof r||\"string\"===typeof r?r:JSON.stringify(r))}var l={dataIdFromObject:s,addTypename:!0,resultCaching:!0,canonizeResults:!1};function f(e){return Object(r.a)(l,e)}function p(e){var t=e.canonizeResults;return void 0===t?l.canonizeResults:t}function d(e,t){return Object(i.g)(t)?e.get(t.__ref,\"__typename\"):t&&t.__typename}var h=/^[_a-z][_0-9a-z]*/i;function v(e){var t=e.match(h);return t?t[0]:e}function y(e,t,n){return!!Object(o.a)(t)&&(g(t)?t.every((function(t){return y(e,t,n)})):e.selections.every((function(e){if(Object(i.e)(e)&&Object(a.c)(e,n)){var r=Object(i.i)(e);return c.call(t,r)&&(!e.selectionSet||y(e.selectionSet,t[r],n))}return!0})))}function b(e){return Object(o.a)(e)&&!Object(i.g)(e)&&!g(e)}function m(){return new u.a}var g=function(e){return Array.isArray(e)}},function(e,t,n){\"use strict\";e.exports=n(53)},function(e,t,n){\"use strict\";var r;function i(e){return!!e&&e<7}n.d(t,\"a\",(function(){return r})),n.d(t,\"b\",(function(){return i})),function(e){e[e.loading=1]=\"loading\",e[e.setVariables=2]=\"setVariables\",e[e.fetchMore=3]=\"fetchMore\",e[e.refetch=4]=\"refetch\",e[e.poll=6]=\"poll\",e[e.ready=7]=\"ready\",e[e.error=8]=\"error\"}(r||(r={}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return c}));var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,u=new Map;function c(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t),u=i.call(n);if(r!==u)return!1;switch(r){case\"[object Array]\":if(t.length!==n.length)return!1;case\"[object Object]\":if(p(t,n))return!0;var c=s(t),l=s(n),d=c.length;if(d!==l.length)return!1;for(var h=0;h<d;++h)if(!o.call(n,c[h]))return!1;for(h=0;h<d;++h){var v=c[h];if(!e(t[v],n[v]))return!1}return!0;case\"[object Error]\":return t.name===n.name&&t.message===n.message;case\"[object Number]\":if(t!==t)return n!==n;case\"[object Boolean]\":case\"[object Date]\":return+t===+n;case\"[object RegExp]\":case\"[object String]\":return t==\"\"+n;case\"[object Map]\":case\"[object Set]\":if(t.size!==n.size)return!1;if(p(t,n))return!0;for(var y=t.entries(),b=\"[object Map]\"===r;;){var m=y.next();if(m.done)break;var g=m.value,w=g[0],O=g[1];if(!n.has(w))return!1;if(b&&!e(O,n.get(w)))return!1}return!0;case\"[object Uint16Array]\":case\"[object Uint8Array]\":case\"[object Uint32Array]\":case\"[object Int32Array]\":case\"[object Int8Array]\":case\"[object Int16Array]\":case\"[object ArrayBuffer]\":t=new Uint8Array(t),n=new Uint8Array(n);case\"[object DataView]\":var E=t.byteLength;if(E===n.byteLength)for(;E--&&t[E]===n[E];);return-1===E;case\"[object AsyncFunction]\":case\"[object GeneratorFunction]\":case\"[object AsyncGeneratorFunction]\":case\"[object Function]\":var k=a.call(t);return k===a.call(n)&&!function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(k,f)}return!1}(e,t)}finally{u.clear()}}function s(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}var f=\"{ [native code] }\";function p(e,t){var n=u.get(e);if(n){if(n.has(t))return!0}else u.set(e,n=new Set);return n.add(t),!1}},,function(e,t,n){\"use strict\";function r(e){return null!==e&&\"object\"===typeof e}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"h\",(function(){return a})),n.d(t,\"g\",(function(){return u})),n.d(t,\"d\",(function(){return c})),n.d(t,\"k\",(function(){return s})),n.d(t,\"j\",(function(){return l})),n.d(t,\"b\",(function(){return p})),n.d(t,\"a\",(function(){return v})),n.d(t,\"i\",(function(){return y})),n.d(t,\"c\",(function(){return b})),n.d(t,\"e\",(function(){return m})),n.d(t,\"f\",(function(){return g}));var r=n(1),i=n(7),o=n(27);function a(e){return{__ref:String(e)}}function u(e){return Boolean(e&&\"object\"===typeof e&&\"string\"===typeof e.__ref)}function c(e){return Object(i.a)(e)&&\"Document\"===e.kind&&Array.isArray(e.definitions)}function s(e,t,n,i){if(function(e){return\"IntValue\"===e.kind}(n)||function(e){return\"FloatValue\"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return\"BooleanValue\"===e.kind}(n)||function(e){return\"StringValue\"===e.kind}(n))e[t.value]=n.value;else if(function(e){return\"ObjectValue\"===e.kind}(n)){var o={};n.fields.map((function(e){return s(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return\"Variable\"===e.kind}(n)){var a=(i||{})[n.name.value];e[t.value]=a}else if(function(e){return\"ListValue\"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return s(n,t,e,i),n[t.value]}));else if(function(e){return\"EnumValue\"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return\"NullValue\"===e.kind}(n))throw __DEV__?new r.a('The inline argument \"'.concat(t.value,'\" of kind \"').concat(n.kind,'\"')+\"is not supported. Use variables instead of inline arguments to overcome this limitation.\"):new r.a(52);e[t.value]=null}}function l(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return s(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return s(r,n,i,t)}))),p(e.name.value,r,n)}var f=[\"connection\",\"include\",\"skip\",\"client\",\"rest\",\"export\"],p=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),\"\".concat(n.connection.key,\"(\").concat(d(i),\")\")}return n.connection.key}var o=e;if(t){var a=d(t);o+=\"(\".concat(a,\")\")}return n&&Object.keys(n).forEach((function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+=\"@\".concat(e,\"(\").concat(d(n[e]),\")\"):o+=\"@\".concat(e))})),o}),{setStringify:function(e){var t=d;return d=e,t}}),d=function(e){return JSON.stringify(e,h)};function h(e,t){return Object(i.a)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return s(n,r,i,t)})),n}return null}function y(e){return e.alias?e.alias.value:e.name.value}function b(e,t,n){if(\"string\"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(m(a)){if(\"__typename\"===a.name.value)return e[y(a)]}else{var u=b(e,Object(o.b)(a,n).selectionSet,n);if(\"string\"===typeof u)return u}}}function m(e){return\"Field\"===e.kind}function g(e){return\"InlineFragment\"===e.kind}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return l})),n.d(t,\"b\",(function(){return f}));var r=n(0),i=(n(1),n(11)),o=n(7),a=n(19),u=n(2);var c,s,l=function(){function e(){this.known=new(a.d?WeakSet:Set),this.pool=new i.a(a.c),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Object(o.a)(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Object(o.a)(e)){var t=function(e){return Object(o.a)(e)?Object(u.f)(e)?e.slice(0):Object(r.a)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Object(o.a)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(c=this.pool.lookupArray(r)).array||(this.known.add(c.array=r),__DEV__&&Object.freeze(r)),c.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],u=this.sortedKeys(e);a.push(u.json);var c,s=a.length;if(u.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(c=this.pool.lookupArray(a)).object){var l=c.object=Object.create(i);this.known.add(l),u.sorted.forEach((function(e,t){l[e]=a[s+t]})),__DEV__&&Object.freeze(l)}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),f=Object.assign((function(e){if(Object(o.a)(e)){void 0===c&&p();var t=c.admit(e),n=s.get(t);return void 0===n&&s.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:p});function p(){c=new l,s=new(a.c?WeakMap:Map)}},function(e,t,n){\"use strict\";n.d(t,\"b\",(function(){return o})),n.d(t,\"a\",(function(){return a}));var r=n(0),i=(n(1),n(46));function o(e){return e.hasOwnProperty(\"graphQLErrors\")}var a=function(e){function t(n){var r=n.graphQLErrors,o=n.clientErrors,a=n.networkError,u=n.errorMessage,c=n.extraInfo,s=e.call(this,u)||this;return s.graphQLErrors=r||[],s.clientErrors=o||[],s.networkError=a||null,s.message=u||function(e){var t=\"\";(Object(i.a)(e.graphQLErrors)||Object(i.a)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:\"Error message not found.\";t+=\"\".concat(n,\"\\n\")}));return e.networkError&&(t+=\"\".concat(e.networkError.message,\"\\n\")),t=t.replace(/\\n$/,\"\")}(s),s.extraInfo=c,s.__proto__=t.prototype,s}return Object(r.c)(t,e),t}(Error)},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return u}));var r=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,u=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case\"object\":if(null===e)break;case\"function\":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}()},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return j})),n.d(t,\"b\",(function(){return D}));var r=n(11),i=n(14);function o(){}var a,u=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=o),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),c=new i.a,s=Object.prototype.hasOwnProperty,l=void 0===(a=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:a;function f(e){var t=e.unsubscribe;\"function\"===typeof t&&(e.unsubscribe=void 0,t())}var p=[];function d(e,t){if(!e)throw new Error(t||\"assertion failure\")}function h(e){switch(e.length){case 0:throw new Error(\"unknown value\");case 1:return e[0];case 2:throw e[1]}}var v=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!m(this))return y(this),this.value[0]},e.prototype.recompute=function(e){return d(!this.recomputing,\"already recomputing\"),y(this),m(this)?function(e,t){x(e),c.withValue(e,b,[e,t]),function(e,t){if(\"function\"===typeof e.subscribe)try{f(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,m(e))return;w(e)}(e);return h(e.value)}(this,e):h(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,g(this),f(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),x(this),O(this,(function(t,n){t.setDirty(),T(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=p.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(l(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),p.push(this.deps),this.deps=null)},e.count=0,e}();function y(e){var t=c.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),m(e)?E(t,e):k(t,e),t}function b(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function m(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function g(e){O(e,E)}function w(e){O(e,k)}function O(e,t){var n=e.parents.size;if(n)for(var r=l(e.parents),i=0;i<n;++i)t(r[i],e)}function E(e,t){d(e.childValues.has(t)),d(m(t));var n=!m(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=p.pop()||new Set;e.dirtyChildren.add(t),n&&g(e)}function k(e,t){d(e.childValues.has(t)),d(!m(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),_(e,t),m(e)||w(e)}function _(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(p.length<100&&p.push(n),e.dirtyChildren=null))}function x(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){T(e,n)})),e.forgetDeps(),d(null===e.dirtyChildren)}function T(e,t){t.parents.delete(e),e.childValues.delete(t),_(e,t)}var S={setDirty:!0,dispose:!0,forget:!0};function j(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=c.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),\"function\"===typeof n&&(f(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&s.call(S,n)?n:\"setDirty\";l(r).forEach((function(e){return e[i]()})),t.delete(e),f(r)}},r}function C(){var e=new r.a(\"function\"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}C();var N=new Set;function D(e,t){void 0===t&&(t=Object.create(null));var n=new u(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||C(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new v(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var u=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),N.add(n),c.hasValue()||(N.forEach((function(e){return e.clean()})),N.clear()),u};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(o,\"size\",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}},function(e,t,n){\"use strict\";function r(e){try{return e()}catch(t){}}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return u}));var r=null,i={},o=1,a=Array,u=a[\"@wry/context:Slot\"]||function(){var e=function(){function e(){this.id=[\"slot\",o++,Date.now(),Math.random().toString(36).slice(2)].join(\":\")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),u=r;r={parent:u,slots:a};try{return t.apply(i,n)}finally{r=u}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(a,\"@wry/context:Slot\",{value:a[\"@wry/context:Slot\"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext},,function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return i})),n.d(t,\"b\",(function(){return u})),n.d(t,\"d\",(function(){return c})),n.d(t,\"c\",(function(){return s}));var r=n(12),i=new(n(14).a),o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:Object(r.a)()}),t}function u(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function s(e){var t=new Set,n=new Set,r=function r(u){if(arguments.length>0){if(e!==u){e=u,t.forEach((function(e){a(e).dep.dirty(r),l(e)}));var c=Array.from(n);n.clear(),c.forEach((function(t){return t(e)}))}}else{var s=i.getValue();s&&(o(s),a(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function l(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o})),n.d(t,\"f\",(function(){return a})),n.d(t,\"g\",(function(){return u})),n.d(t,\"d\",(function(){return c})),n.d(t,\"h\",(function(){return s})),n.d(t,\"c\",(function(){return l})),n.d(t,\"e\",(function(){return f})),n.d(t,\"b\",(function(){return p}));var r=n(1),i=n(8);function o(e){__DEV__?Object(r.b)(e&&\"Document\"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Object(r.b)(e&&\"Document\"===e.kind,44);var t=e.definitions.filter((function(e){return\"FragmentDefinition\"!==e.kind})).map((function(e){if(\"OperationDefinition\"!==e.kind)throw __DEV__?new r.a('Schema type definitions not allowed in queries. Found: \"'.concat(e.kind,'\"')):new r.a(45);return e}));return __DEV__?Object(r.b)(t.length<=1,\"Ambiguous GraphQL document: contains \".concat(t.length,\" operations\")):Object(r.b)(t.length<=1,46),e}function a(e){return o(e),e.definitions.filter((function(e){return\"OperationDefinition\"===e.kind}))[0]}function u(e){return e.definitions.filter((function(e){return\"OperationDefinition\"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return\"FragmentDefinition\"===e.kind}))}function s(e){var t=a(e);return __DEV__?Object(r.b)(t&&\"query\"===t.operation,\"Must contain a query definition.\"):Object(r.b)(t&&\"query\"===t.operation,47),t}function l(e){__DEV__?Object(r.b)(\"Document\"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Object(r.b)(\"Document\"===e.kind,48),__DEV__?Object(r.b)(e.definitions.length<=1,\"Fragment must have exactly one definition.\"):Object(r.b)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Object(r.b)(\"FragmentDefinition\"===t.kind,\"Must be a fragment definition.\"):Object(r.b)(\"FragmentDefinition\"===t.kind,50),t}function f(e){var t;o(e);for(var n=0,i=e.definitions;n<i.length;n++){var a=i[n];if(\"OperationDefinition\"===a.kind){var u=a.operation;if(\"query\"===u||\"mutation\"===u||\"subscription\"===u)return a}\"FragmentDefinition\"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new r.a(\"Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.\"):new r.a(51)}function p(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&Object(i.k)(t,e.variable.name,e.defaultValue)})),t}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r})),n.d(t,\"b\",(function(){return u}));var r,i=n(1);!function(e){e[e.Query=0]=\"Query\",e[e.Mutation=1]=\"Mutation\",e[e.Subscription=2]=\"Subscription\"}(r||(r={}));var o=new Map;function a(e){var t;switch(e){case r.Query:t=\"Query\";break;case r.Mutation:t=\"Mutation\";break;case r.Subscription:t=\"Subscription\"}return t}function u(e,t){var n=function(e){var t,n,a=o.get(e);if(a)return a;__DEV__?Object(i.b)(!!e&&!!e.kind,\"Argument of \".concat(e,\" passed to parser was not a valid GraphQL \")+\"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document\"):Object(i.b)(!!e&&!!e.kind,30);for(var u=[],c=[],s=[],l=[],f=0,p=e.definitions;f<p.length;f++){var d=p[f];if(\"FragmentDefinition\"!==d.kind){if(\"OperationDefinition\"===d.kind)switch(d.operation){case\"query\":c.push(d);break;case\"mutation\":s.push(d);break;case\"subscription\":l.push(d)}}else u.push(d)}__DEV__?Object(i.b)(!u.length||c.length||s.length||l.length,\"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well\"):Object(i.b)(!u.length||c.length||s.length||l.length,31),__DEV__?Object(i.b)(c.length+s.length+l.length<=1,\"react-apollo only supports a query, subscription, or a mutation per HOC. \"+\"\".concat(e,\" had \").concat(c.length,\" queries, \").concat(l.length,\" \")+\"subscriptions and \".concat(s.length,\" mutations. \")+\"You can use 'compose' to join multiple operation types to a component\"):Object(i.b)(c.length+s.length+l.length<=1,32),n=c.length?r.Query:r.Mutation,c.length||s.length||(n=r.Subscription);var h=c.length?c:s.length?s:l;__DEV__?Object(i.b)(1===h.length,\"react-apollo only supports one definition per HOC. \".concat(e,\" had \")+\"\".concat(h.length,\" definitions. \")+\"You can use 'compose' to join multiple operation types to a component\"):Object(i.b)(1===h.length,33);var v=h[0];t=v.variableDefinitions||[];var y={name:v.name&&\"Name\"===v.name.kind?v.name.value:\"data\",type:n,variables:t};return o.set(e,y),y}(e),u=a(t),c=a(n.type);__DEV__?Object(i.b)(n.type===t,\"Running a \".concat(u,\" requires a graphql \")+\"\".concat(u,\", but a \").concat(c,\" was used instead.\")):Object(i.b)(n.type===t,34)}},function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return i})),n.d(t,\"d\",(function(){return o})),n.d(t,\"b\",(function(){return a})),n.d(t,\"a\",(function(){return s}));var r=n(1),i=\"function\"===typeof WeakMap&&\"ReactNative\"!==Object(r.c)((function(){return navigator.product})),o=\"function\"===typeof WeakSet,a=\"function\"===typeof Symbol&&\"function\"===typeof Symbol.for,u=\"function\"===typeof Object(r.c)((function(){return window.document.createElement})),c=Object(r.c)((function(){return navigator.userAgent.indexOf(\"jsdom\")>=0}))||!1,s=u&&!c},function(e,t,n){\"use strict\";(function(e){var r=n(13);t.a=Object(r.a)((function(){return globalThis}))||Object(r.a)((function(){return window}))||Object(r.a)((function(){return self}))||Object(r.a)((function(){return e}))||Object(r.a)((function(){return r.a.constructor(\"return this\")()}))}).call(this,n(29))},function(e,t,n){\"use strict\";var r=\"function\"===typeof Symbol&&\"function\"===typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):void 0;t.a=r},function(e,t,n){\"use strict\";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return f}));var r=n(0),i=n(1),o=n(69);var a=n(17);function u(e,t){return t?t(e):o.a.of()}function c(e){return\"function\"===typeof e?new f(e):e}function s(e){return e.request.length<=1}var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return Object(r.c)(t,e),t}(Error),f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.a.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=c(n),a=c(r||new e(u));return s(i)&&s(a)?new e((function(e){return t(e)?i.request(e)||o.a.of():a.request(e)||o.a.of()})):new e((function(e,n){return t(e)?i.request(e,n)||o.a.of():a.request(e,n)||o.a.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=Object(r.a)({},e);return Object.defineProperty(t,\"setContext\",{enumerable:!1,value:function(e){n=\"function\"===typeof e?Object(r.a)(Object(r.a)({},n),e(n)):Object(r.a)(Object(r.a)({},n),e)}}),Object.defineProperty(t,\"getContext\",{enumerable:!1,value:function(){return Object(r.a)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=\"string\"!==typeof t.query?Object(a.g)(t.query)||void 0:\"\"),t}(function(e){for(var t=[\"query\",\"operationName\",\"variables\",\"extensions\",\"context\"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw __DEV__?new i.a(\"illegal argument: \".concat(o)):new i.a(24)}return e}(t))))||o.a.of()},e.concat=function(t,n){var r=c(t);if(s(r))return __DEV__&&i.b.warn(new l(\"You are calling concat on a terminating link, which will have no effect\",r)),r;var a=c(n);return s(a)?new e((function(e){return r.request(e,(function(e){return a.request(e)||o.a.of()}))||o.a.of()})):new e((function(e,t){return r.request(e,(function(e){return a.request(e,t)||o.a.of()}))||o.a.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.a(\"request is not implemented\"):new i.a(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},,function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(21);function i(e){return(i=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case\"string\":return JSON.stringify(e);case\"function\":return e.name?\"[function \".concat(e.name,\"]\"):\"[function]\";case\"object\":return null===e?\"null\":function(e,t){if(-1!==t.indexOf(e))return\"[Circular]\";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if(\"function\"===typeof t)return t;if(\"function\"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return\"string\"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return\"[]\";if(t.length>2)return\"[Array]\";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push(\"... 1 more item\"):r>1&&i.push(\"... \".concat(r,\" more items\"));return\"[\"+i.join(\", \")+\"]\"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return\"{}\";if(t.length>2)return\"[\"+function(e){var t=Object.prototype.toString.call(e).replace(/^\\[object /,\"\").replace(/]$/,\"\");if(\"Object\"===t&&\"function\"===typeof e.constructor){var n=e.constructor.name;if(\"string\"===typeof n&&\"\"!==n)return n}return t}(e)+\"]\";return\"{ \"+n.map((function(n){return n+\": \"+a(e[n],t)})).join(\", \")+\" }\"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){\"use strict\";function r(e){var t=e.split(/\\r\\n|[\\n\\r]/g),n=function(e){for(var t=null,n=1;n<e.length;n++){var r=e[n],o=i(r);if(o!==r.length&&((null===t||o<t)&&0===(t=o)))break}return null===t?0:t}(t);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join(\"\\n\")}function i(e){for(var t=0;t<e.length&&(\" \"===e[t]||\"\\t\"===e[t]);)t++;return t}function o(e){return i(e)===e.length}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf(\"\\n\"),i=\" \"===e[0]||\"\\t\"===e[0],o='\"'===e[e.length-1],a=!r||o||n,u=\"\";return!a||r&&i||(u+=\"\\n\"+t),u+=t?e.replace(/\\n/g,\"\\n\"+t):e,a&&(u+=\"\\n\"),'\"\"\"'+u.replace(/\"\"\"/g,'\\\\\"\"\"')+'\"\"\"'}n.d(t,\"a\",(function(){return r})),n.d(t,\"b\",(function(){return a}))},function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return o})),n.d(t,\"a\",(function(){return a})),n.d(t,\"b\",(function(){return u}));var r=n(0),i=n(1);function o(e,t){var n=t,o=[];return e.definitions.forEach((function(e){if(\"OperationDefinition\"===e.kind)throw __DEV__?new i.a(\"Found a \".concat(e.operation,\" operation\").concat(e.name?\" named '\".concat(e.name.value,\"'\"):\"\",\". \")+\"No operations are allowed when using a fragment as a query. Only fragments are allowed.\"):new i.a(41);\"FragmentDefinition\"===e.kind&&o.push(e)})),\"undefined\"===typeof n&&(__DEV__?Object(i.b)(1===o.length,\"Found \".concat(o.length,\" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.\")):Object(i.b)(1===o.length,42),n=o[0].name.value),Object(r.a)(Object(r.a)({},e),{definitions:Object(r.f)([{kind:\"OperationDefinition\",operation:\"query\",selectionSet:{kind:\"SelectionSet\",selections:[{kind:\"FragmentSpread\",name:{kind:\"Name\",value:n}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function u(e,t){switch(e.kind){case\"InlineFragment\":return e;case\"FragmentSpread\":var n=t&&t[e.name.value];return __DEV__?Object(i.b)(n,\"No fragment named \".concat(e.name.value,\".\")):Object(i.b)(n,43),n;default:return null}}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return a}));var r=n(1),i=n(3),o=n(34);function a(e){var t=Object(i.useContext)(Object(o.a)()),n=e||t.client;return __DEV__?Object(r.b)(!!n,'Could not find \"client\" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):Object(r.b)(!!n,29),n}},function(e,t){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(r){\"object\"===typeof window&&(n=window)}e.exports=n},function(e,t,n){\"use strict\";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o})),n.d(t,\"b\",(function(){return a}));var r=n(25),i={Name:[],Document:[\"definitions\"],OperationDefinition:[\"name\",\"variableDefinitions\",\"directives\",\"selectionSet\"],VariableDefinition:[\"variable\",\"type\",\"defaultValue\",\"directives\"],Variable:[\"name\"],SelectionSet:[\"selections\"],Field:[\"alias\",\"name\",\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"name\",\"value\"],FragmentSpread:[\"name\",\"directives\"],InlineFragment:[\"typeCondition\",\"directives\",\"selectionSet\"],FragmentDefinition:[\"name\",\"variableDefinitions\",\"typeCondition\",\"directives\",\"selectionSet\"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[\"values\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"name\",\"arguments\"],NamedType:[\"name\"],ListType:[\"type\"],NonNullType:[\"type\"],SchemaDefinition:[\"directives\",\"operationTypes\"],OperationTypeDefinition:[\"type\"],ScalarTypeDefinition:[\"description\",\"name\",\"directives\"],ObjectTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],FieldDefinition:[\"description\",\"name\",\"arguments\",\"type\",\"directives\"],InputValueDefinition:[\"description\",\"name\",\"type\",\"defaultValue\",\"directives\"],InterfaceTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],UnionTypeDefinition:[\"description\",\"name\",\"directives\",\"types\"],EnumTypeDefinition:[\"description\",\"name\",\"directives\",\"values\"],EnumValueDefinition:[\"description\",\"name\",\"directives\"],InputObjectTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],DirectiveDefinition:[\"description\",\"name\",\"arguments\",\"locations\"],SchemaExtension:[\"directives\",\"operationTypes\"],ScalarTypeExtension:[\"name\",\"directives\"],ObjectTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],InterfaceTypeExtension:[\"name\",\"directives\",\"fields\"],UnionTypeExtension:[\"name\",\"directives\",\"types\"],EnumTypeExtension:[\"name\",\"directives\",\"values\"],InputObjectTypeExtension:[\"name\",\"directives\",\"fields\"]},o=Object.freeze({});function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,s=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],b=[],m=e;do{var g=++f===l.length,w=g&&0!==p.length;if(g){if(h=0===b.length?void 0:y[y.length-1],d=v,v=b.pop(),w){if(s)d=d.slice();else{for(var O={},E=0,k=Object.keys(d);E<k.length;E++){var _=k[E];O[_]=d[_]}d=O}for(var x=0,T=0;T<p.length;T++){var S=p[T][0],j=p[T][1];s&&(S-=x),s&&null===j?(d.splice(S,1),x++):d[S]=j}}f=a.index,l=a.keys,p=a.edits,s=a.inArray,a=a.prev}else{if(h=v?s?f:l[f]:void 0,null===(d=v?v[h]:m)||void 0===d)continue;v&&y.push(h)}var C=void 0;if(!Array.isArray(d)){if(!u(d))throw new Error(\"Invalid AST Node: \"+Object(r.a)(d));var N=c(t,d.kind,g);if(N){if((C=N.call(t,d,h,v,y,b))===o)break;if(!1===C){if(!g){y.pop();continue}}else if(void 0!==C&&(p.push([h,C]),!g)){if(!u(C)){y.pop();continue}d=C}}}void 0===C&&w&&p.push([h,d]),g?y.pop():(a={inArray:s,index:f,keys:l,edits:p,prev:a},l=(s=Array.isArray(d))?d:n[d.kind]||[],f=-1,p=[],v&&b.push(v),v=d)}while(void 0!==a);return 0!==p.length&&(m=p[p.length-1][1]),m}function u(e){return Boolean(e&&\"string\"===typeof e.kind)}function c(e,t,n){var r=e[t];if(r){if(!n&&\"function\"===typeof r)return r;var i=n?r.leave:r.enter;if(\"function\"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if(\"function\"===typeof o)return o;var a=o[t];if(\"function\"===typeof a)return a}}}},function(e,t,n){\"use strict\";(function(e,r){function i(e){try{return e()}catch(t){}}n.d(t,\"a\",(function(){return u}));var o=i((function(){return globalThis}))||i((function(){return window}))||i((function(){return self}))||i((function(){return e}))||i((function(){return i.constructor(\"return this\")()})),a=!1;function u(){a&&(delete o.process,a=!1)}!o||i((function(){return\"production\"}))||i((function(){return r}))||(Object.defineProperty(o,\"process\",{value:{env:{NODE_ENV:\"production\"}},configurable:!0,enumerable:!1,writable:!0}),a=!0)}).call(this,n(29),n(68))},function(e,t,n){\"use strict\";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(3),i=n(19).b?Symbol.for(\"__APOLLO_CONTEXT__\"):\"__APOLLO_CONTEXT__\";function o(){var e=r.createContext[i];return e||(Object.defineProperty(r.createContext,i,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName=\"ApolloContext\"),e}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return m}));var r=n(0),i=n(1),o=n(31),a=n(23),u=n(69),c=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=__DEV__?new i.a(\"Network request failed. \".concat(t,\" is not serializable: \").concat(o.message)):new i.a(21);throw r.parseError=o,r}return n},s=function(e,t,n){var r=new Error(n);throw r.name=\"ServerError\",r.response=e,r.statusCode=e.status,r.result=t,r},l=Object.prototype.hasOwnProperty;var f=n(70),p={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:\"*/*\",\"content-type\":\"application/json\"},options:{method:\"POST\"}},d=function(e,t){return t(e)};function h(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={},a={};n.forEach((function(e){o=Object(r.a)(Object(r.a)(Object(r.a)({},o),e.options),{headers:Object(r.a)(Object(r.a)({},o.headers),v(e.headers))}),e.credentials&&(o.credentials=e.credentials),a=Object(r.a)(Object(r.a)({},a),e.http)}));var u=e.operationName,c=e.extensions,s=e.variables,l=e.query,p={operationName:u,variables:s};return a.includeExtensions&&(p.extensions=c),a.includeQuery&&(p.query=t(l,f.a)),{options:o,body:p}}function v(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}function y(e){return new u.a((function(t){t.error(e)}))}var b=Object(i.c)((function(){return fetch})),m=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?\"/graphql\":t,f=e.fetch,v=e.print,m=void 0===v?d:v,g=e.includeExtensions,w=e.useGETForQueries,O=e.includeUnusedVariables,E=void 0!==O&&O,k=Object(r.e)(e,[\"uri\",\"fetch\",\"print\",\"includeExtensions\",\"useGETForQueries\",\"includeUnusedVariables\"]);__DEV__&&function(e){if(!e&&\"undefined\"===typeof fetch)throw __DEV__?new i.a(\"\\n\\\"fetch\\\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\\n\\nimport fetch from 'cross-fetch';\\nimport { ApolloClient, HttpLink } from '@apollo/client';\\nconst client = new ApolloClient({\\n  link: new HttpLink({ uri: '/graphql', fetch })\\n});\\n    \"):new i.a(20)}(f||b);var _={http:{includeExtensions:g},options:k.fetchOptions,credentials:k.credentials,headers:k.headers};return new a.a((function(e){var t=function(e,t){var n=e.getContext().uri;return n||(\"function\"===typeof t?t(e):t||\"/graphql\")}(e,n),a=e.getContext(),d={};if(a.clientAwareness){var v=a.clientAwareness,g=v.name,O=v.version;g&&(d[\"apollographql-client-name\"]=g),O&&(d[\"apollographql-client-version\"]=O)}var k,x=Object(r.a)(Object(r.a)({},d),a.headers),T={http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:x},S=h(e,m,p,_,T),j=S.options,C=S.body;if(C.variables&&!E){var N=new Set(Object.keys(C.variables));Object(o.b)(e.query,{Variable:function(e,t,n){n&&\"VariableDefinition\"!==n.kind&&N.delete(e.name.value)}}),N.size&&(C.variables=Object(r.a)({},C.variables),N.forEach((function(e){delete C.variables[e]})))}if(!j.signal){var D=function(){if(\"undefined\"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),P=D.controller,I=D.signal;(k=P)&&(j.signal=I)}if(w&&!e.query.definitions.some((function(e){return\"OperationDefinition\"===e.kind&&\"mutation\"===e.operation}))&&(j.method=\"GET\"),\"GET\"===j.method){var R=function(e,t){var n=[],r=function(e,t){n.push(\"\".concat(e,\"=\").concat(encodeURIComponent(t)))};if(\"query\"in t&&r(\"query\",t.query),t.operationName&&r(\"operationName\",t.operationName),t.variables){var i=void 0;try{i=c(t.variables,\"Variables map\")}catch(A){return{parseError:A}}r(\"variables\",i)}if(t.extensions){var o=void 0;try{o=c(t.extensions,\"Extensions map\")}catch(A){return{parseError:A}}r(\"extensions\",o)}var a=\"\",u=e,s=e.indexOf(\"#\");-1!==s&&(a=e.substr(s),u=e.substr(0,s));var l=-1===u.indexOf(\"?\")?\"?\":\"&\";return{newURI:u+l+n.join(\"&\")+a}}(t,C),F=R.newURI,A=R.parseError;if(A)return y(A);t=F}else try{j.body=c(C,\"Payload\")}catch(A){return y(A)}return new u.a((function(n){var r;return(f||Object(i.c)((function(){return fetch}))||b)(t,j).then((function(t){return e.setContext({response:t}),t})).then((r=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name=\"ServerParseError\",n.response=e,n.statusCode=e.status,n.bodyText=t,n}})).then((function(t){return e.status>=300&&s(e,t,\"Response not successful: Received status code \".concat(e.status)),Array.isArray(t)||l.call(t,\"data\")||l.call(t,\"errors\")||s(e,t,\"Server response was missing for query '\".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,\"'.\")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){\"AbortError\"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){k&&k.abort()}}))}))}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(22);var i,o=function(e,t,n){this.body=e,this.name=t||\"GraphQL request\",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(r.a)(0,\"line in locationOffset is 1-indexed and must be positive\"),this.locationOffset.column>0||Object(r.a)(0,\"column in locationOffset is 1-indexed and must be positive\")};i=o,\"function\"===typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})},,,function(e,t,n){\"use strict\";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach((function(e){r[e]=e})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,u,c=a(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))i.call(n,l)&&(c[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)o.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(e,t,n){var r=n(41);e.exports=function(e,t){if(e){if(\"string\"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(n):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){\"use strict\";!function e(){if(\"undefined\"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(54)},function(e,t,n){(function(e){var r=n(57),i=n(61),o=n(65),a=n(67);(function(t){\"use strict\";function n(e){return null===e?\"null\":Array.isArray(e)?\"array\":typeof e}function u(e){return\"object\"===n(e)}function c(e,t){return e.length<124?e:t}var s,l;function f(e){if(!u(e))throw new Error(\"Message is expected to be an object, but got \".concat(n(e)));if(!e.type)throw new Error(\"Message is missing the 'type' property\");if(\"string\"!==typeof e.type)throw new Error(\"Message is expects the 'type' property to be a string, but got \".concat(n(e.type)));switch(e.type){case t.MessageType.ConnectionInit:case t.MessageType.ConnectionAck:case t.MessageType.Ping:case t.MessageType.Pong:if(\"payload\"in e&&!u(e.payload))throw new Error('\"'.concat(e.type,\"\\\" message expects the 'payload' property to be an object or missing, but got \\\"\").concat(e.payload,'\"'));break;case t.MessageType.Subscribe:if(\"string\"!==typeof e.id)throw new Error('\"'.concat(e.type,\"\\\" message expects the 'id' property to be a string, but got \").concat(n(e.id)));if(!e.id)throw new Error('\"'.concat(e.type,\"\\\" message requires a non-empty 'id' property\"));if(!u(e.payload))throw new Error('\"'.concat(e.type,\"\\\" message expects the 'payload' property to be an object, but got \").concat(n(e.payload)));if(\"string\"!==typeof e.payload.query)throw new Error('\"'.concat(e.type,\"\\\" message payload expects the 'query' property to be a string, but got \").concat(n(e.payload.query)));if(null!=e.payload.variables&&!u(e.payload.variables))throw new Error('\"'.concat(e.type,\"\\\" message payload expects the 'variables' property to be a an object or nullish or missing, but got \").concat(n(e.payload.variables)));if(null!=e.payload.operationName&&\"string\"!==n(e.payload.operationName))throw new Error('\"'.concat(e.type,\"\\\" message payload expects the 'operationName' property to be a string or nullish or missing, but got \").concat(n(e.payload.operationName)));if(null!=e.payload.extensions&&!u(e.payload.extensions))throw new Error('\"'.concat(e.type,\"\\\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got \").concat(n(e.payload.extensions)));break;case t.MessageType.Next:if(\"string\"!==typeof e.id)throw new Error('\"'.concat(e.type,\"\\\" message expects the 'id' property to be a string, but got \").concat(n(e.id)));if(!e.id)throw new Error('\"'.concat(e.type,\"\\\" message requires a non-empty 'id' property\"));if(!u(e.payload))throw new Error('\"'.concat(e.type,\"\\\" message expects the 'payload' property to be an object, but got \").concat(n(e.payload)));break;case t.MessageType.Error:if(\"string\"!==typeof e.id)throw new Error('\"'.concat(e.type,\"\\\" message expects the 'id' property to be a string, but got \").concat(n(e.id)));if(!e.id)throw new Error('\"'.concat(e.type,\"\\\" message requires a non-empty 'id' property\"));if(r=e.payload,!(Array.isArray(r)&&r.length>0&&r.every((function(e){return\"message\"in e}))))throw new Error('\"'.concat(e.type,\"\\\" message expects the 'payload' property to be an array of GraphQL errors, but got \").concat(JSON.stringify(e.payload)));break;case t.MessageType.Complete:if(\"string\"!==typeof e.id)throw new Error('\"'.concat(e.type,\"\\\" message expects the 'id' property to be a string, but got \").concat(n(e.id)));if(!e.id)throw new Error('\"'.concat(e.type,\"\\\" message requires a non-empty 'id' property\"));break;default:throw new Error(\"Invalid message 'type' property \\\"\".concat(e.type,'\"'))}var r;return e}function p(e,t){try{return f(e)}catch(n){if(\"string\"!==typeof e)throw new Error(\"Only strings are parsable messages\");return f(JSON.parse(e,t))}}function d(e,t){return f(e),JSON.stringify(e,t)}function h(e){return u(e)&&\"code\"in e&&\"reason\"in e}t.CloseCode=void 0,(s=t.CloseCode||(t.CloseCode={}))[s.InternalServerError=4500]=\"InternalServerError\",s[s.InternalClientError=4005]=\"InternalClientError\",s[s.BadRequest=4400]=\"BadRequest\",s[s.BadResponse=4004]=\"BadResponse\",s[s.Unauthorized=4401]=\"Unauthorized\",s[s.Forbidden=4403]=\"Forbidden\",s[s.SubprotocolNotAcceptable=4406]=\"SubprotocolNotAcceptable\",s[s.ConnectionInitialisationTimeout=4408]=\"ConnectionInitialisationTimeout\",s[s.ConnectionAcknowledgementTimeout=4504]=\"ConnectionAcknowledgementTimeout\",s[s.SubscriberAlreadyExists=4409]=\"SubscriberAlreadyExists\",s[s.TooManyInitialisationRequests=4429]=\"TooManyInitialisationRequests\",t.MessageType=void 0,(l=t.MessageType||(t.MessageType={})).ConnectionInit=\"connection_init\",l.ConnectionAck=\"connection_ack\",l.Ping=\"ping\",l.Pong=\"pong\",l.Subscribe=\"subscribe\",l.Next=\"next\",l.Error=\"error\",l.Complete=\"complete\",t.DEPRECATED_GRAPHQL_WS_PROTOCOL=\"graphql-ws\",t.GRAPHQL_TRANSPORT_WS_PROTOCOL=\"graphql-transport-ws\",t.createClient=function(n){var u,s,l=n.url,f=n.connectionParams,v=n.lazy,y=void 0===v||v,b=n.onNonLazyError,m=void 0===b?console.error:b,g=n.lazyCloseTimeout,w=void 0===g?0:g,O=n.keepAlive,E=void 0===O?0:O,k=n.disablePong,_=n.connectionAckWaitTimeout,x=void 0===_?0:_,T=n.retryAttempts,S=void 0===T?5:T,j=n.retryWait,C=void 0===j?function(){var e=a(o.mark((function e(t){var n,r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=1e3,r=0;r<t;r++)n*=2;return e.next=4,new Promise((function(e){return setTimeout(e,n+Math.floor(2700*Math.random()+300))}));case 4:case\"end\":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():j,N=n.shouldRetry,D=void 0===N?h:N,P=n.isFatalConnectionProblem,I=n.on,R=n.webSocketImpl,F=n.generateID,A=void 0===F?function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(\"x\"==e?t:3&t|8).toString(16)}))}:F,M=n.jsonMessageReplacer,L=n.jsonMessageReviver;if(R){if(!(\"function\"===typeof(s=R)&&\"constructor\"in s&&\"CLOSED\"in s&&\"CLOSING\"in s&&\"CONNECTING\"in s&&\"OPEN\"in s))throw new Error(\"Invalid WebSocket implementation provided\");u=R}else\"undefined\"!==typeof WebSocket?u=WebSocket:\"undefined\"!==typeof e?u=e.WebSocket||e.MozWebSocket:\"undefined\"!==typeof window&&(u=window.WebSocket||window.MozWebSocket);if(!u)throw new Error(\"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\");var V=u,q=function(){var e=function(){var e={};return{on:(t,n)=>(e[t]=n,function(){delete e[t]}),emit(t){var n;\"id\"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}}(),t={connecting:(null===I||void 0===I?void 0:I.connecting)?[I.connecting]:[],opened:(null===I||void 0===I?void 0:I.opened)?[I.opened]:[],connected:(null===I||void 0===I?void 0:I.connected)?[I.connected]:[],ping:(null===I||void 0===I?void 0:I.ping)?[I.ping]:[],pong:(null===I||void 0===I?void 0:I.pong)?[I.pong]:[],message:(null===I||void 0===I?void 0:I.message)?[e.emit,I.message]:[e.emit],closed:(null===I||void 0===I?void 0:I.closed)?[I.closed]:[],error:(null===I||void 0===I?void 0:I.error)?[I.error]:[]};return{onMessage:e.on,on(e,n){var r=t[e];return r.push(n),function(){r.splice(r.indexOf(n),1)}},emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var a=0,u=i(t[e]);a<u.length;a++)u[a].apply(void 0,r)}}}();function Q(e){var t=[q.on(\"error\",(function(n){t.forEach((function(e){return e()})),e(n)})),q.on(\"closed\",(function(n){t.forEach((function(e){return e()})),e(n)}))]}var z,U=0,B=!1,W=0,K=!1;function H(){return G.apply(this,arguments)}function G(){return(G=a(o.mark((function e(){var n,i,u,s,v,y;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null!==z&&void 0!==z?z:z=new Promise((function(e,n){return a(o.mark((function r(){var i,u,s,v,y;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=function(){isFinite(E)&&E>0&&(clearTimeout(s),s=setTimeout((function(){i.readyState===V.OPEN&&(i.send(d({type:t.MessageType.Ping})),q.emit(\"ping\",!1,void 0))}),E))},!B){r.next=8;break}return r.next=4,C(W);case 4:if(U){r.next=7;break}return z=void 0,r.abrupt(\"return\",n({code:1e3,reason:\"All Subscriptions Gone\"}));case 7:W++;case 8:if(q.emit(\"connecting\"),r.t0=V,\"function\"!==typeof l){r.next=16;break}return r.next=13,l();case 13:r.t1=r.sent,r.next=17;break;case 16:r.t1=l;case 17:r.t2=r.t1,r.t3=\"graphql-transport-ws\",i=new r.t0(r.t2,r.t3),Q((function(e){z=void 0,clearTimeout(u),clearTimeout(s),n(e),h(e)&&4499===e.code&&(i.close(4499,\"Terminated\"),i.onerror=null,i.onclose=null)})),i.onerror=function(e){return q.emit(\"error\",e)},i.onclose=function(e){return q.emit(\"closed\",e)},i.onopen=a(o.mark((function e(){var n;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,q.emit(\"opened\",i),\"function\"!==typeof f){e.next=8;break}return e.next=5,f();case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=f;case 9:if(n=e.t0,i.readyState===V.OPEN){e.next=12;break}return e.abrupt(\"return\");case 12:i.send(d(n?{type:t.MessageType.ConnectionInit,payload:n}:{type:t.MessageType.ConnectionInit},M)),isFinite(x)&&x>0&&(u=setTimeout((function(){i.close(t.CloseCode.ConnectionAcknowledgementTimeout,\"Connection acknowledgement timeout\")}),x)),v(),e.next=21;break;case 17:e.prev=17,e.t1=e.catch(0),q.emit(\"error\",e.t1),i.close(t.CloseCode.InternalClientError,c(e.t1 instanceof Error?e.t1.message:new Error(e.t1).message,\"Internal client error\"));case 21:case\"end\":return e.stop()}}),e,null,[[0,17]])}))),y=!1,i.onmessage=function(n){var r=n.data;try{var o=p(r,L);if(q.emit(\"message\",o),\"ping\"===o.type||\"pong\"===o.type)return q.emit(o.type,!0,o.payload),void(\"pong\"===o.type?v():k||(i.send(d(o.payload?{type:t.MessageType.Pong,payload:o.payload}:{type:t.MessageType.Pong})),q.emit(\"pong\",!1,o.payload)));if(y)return;if(o.type!==t.MessageType.ConnectionAck)throw new Error(\"First message cannot be of type \".concat(o.type));clearTimeout(u),y=!0,q.emit(\"connected\",i,o.payload),B=!1,W=0,e([i,new Promise((function(e,t){return Q(t)}))])}catch(a){i.onmessage=null,q.emit(\"error\",a),i.close(t.CloseCode.BadResponse,c(a instanceof Error?a.message:new Error(a).message,\"Bad response\"))}};case 26:case\"end\":return r.stop()}}),r)})))()}));case 2:if(n=e.sent,i=r(n,2),u=i[0],s=i[1],u.readyState!==V.CLOSING){e.next=9;break}return e.next=9,s;case 9:return v=function(){},y=new Promise((function(e){return v=e})),e.abrupt(\"return\",[u,v,Promise.race([y.then((function(){if(!U){var e=function(){return u.close(1e3,\"Normal Closure\")};isFinite(w)&&w>0?setTimeout((function(){U||u.readyState!==V.OPEN||e()}),w):e()}})),s])]);case 12:case\"end\":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e){if(h(e)&&(n=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(n)&&n>=1e3&&n<=1999||[t.CloseCode.InternalServerError,t.CloseCode.InternalClientError,t.CloseCode.BadRequest,t.CloseCode.BadResponse,t.CloseCode.Unauthorized,t.CloseCode.SubprotocolNotAcceptable,t.CloseCode.SubscriberAlreadyExists,t.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var n;if(K)return!1;if(h(e)&&1e3===e.code)return U>0;if(!S||W>=S)throw e;if(!D(e))throw e;if(null===P||void 0===P?void 0:P(e))throw e;return B=!0}return y||a(o.mark((function e(){var t,n,i;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:U++;case 1:return e.prev=1,e.next=4,H();case 4:return t=e.sent,n=r(t,3),i=n[2],e.next=9,i;case 9:e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),e.prev=13,Y(e.t0)){e.next=16;break}return e.abrupt(\"return\");case 16:e.next=21;break;case 18:return e.prev=18,e.t1=e.catch(13),e.abrupt(\"return\",null===m||void 0===m?void 0:m(e.t1));case 21:e.next=1;break;case 23:case\"end\":return e.stop()}}),e,null,[[1,11],[13,18]])})))(),{on:q.on,subscribe(e,n){var i=A(),u=!1,c=!1,s=function(){U--,u=!0};return a(o.mark((function a(){var l;return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:U++;case 1:return a.prev=1,a.delegateYield(o.mark((function a(){var l,f,p,h,v,y;return o.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,H();case 2:if(l=o.sent,f=r(l,3),p=f[0],h=f[1],v=f[2],!u){o.next=9;break}return o.abrupt(\"return\",{v:h()});case 9:return y=q.onMessage(i,(function(e){switch(e.type){case t.MessageType.Next:return void n.next(e.payload);case t.MessageType.Error:return c=!0,u=!0,n.error(e.payload),void s();case t.MessageType.Complete:return u=!0,void s()}})),p.send(d({id:i,type:t.MessageType.Subscribe,payload:e},M)),s=function(){u||p.readyState!==V.OPEN||p.send(d({id:i,type:t.MessageType.Complete},M)),U--,u=!0,h()},o.next=14,v.finally(y);case 14:return o.abrupt(\"return\",{v:void 0});case 15:case\"end\":return o.stop()}}),a)}))(),\"t0\",3);case 3:if(\"object\"!==typeof(l=a.t0)){a.next=6;break}return a.abrupt(\"return\",l.v);case 6:a.next=12;break;case 8:if(a.prev=8,a.t1=a.catch(1),Y(a.t1)){a.next=12;break}return a.abrupt(\"return\");case 12:a.next=1;break;case 14:case\"end\":return a.stop()}}),a,null,[[1,8]])})))().then((function(){c||n.complete()})).catch((function(e){n.error(e)})),function(){u||s()}},dispose:()=>a(o.mark((function e(){var t;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(K=!0,!z){e.next=8;break}return e.next=4,z;case 4:t=e.sent,r(t,1)[0].close(1e3,\"Normal Closure\");case 8:case\"end\":return e.stop()}}),e)})))(),terminate(){z&&q.emit(\"closed\",{code:4499,reason:\"Terminated\",wasClean:!1})}}},t.isMessage=function(e){try{return f(e),!0}catch(t){return!1}},t.parseMessage=p,t.stringifyMessage=d,t.validateMessage=f,Object.defineProperty(t,\"__esModule\",{value:!0})})(t)}).call(this,n(29))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return s}));var r=n(0),i=n(70),o=n(23),a=n(7),u=n(69),c=n(10);var s=function(e){function t(t){var n=e.call(this)||this;return n.client=t,n}return Object(r.c)(t,e),t.prototype.request=function(e){var t=this;return new u.a((function(n){return t.client.subscribe(Object(r.a)(Object(r.a)({},e),{query:Object(i.a)(e.query)}),{next:n.next.bind(n),complete:n.complete.bind(n),error:function(e){return e instanceof Error?n.error(e):(t=e,Object(a.a)(t)&&\"code\"in t&&\"reason\"in t?n.error(new Error(\"Socket closed with event \".concat(e.code,\" \").concat(e.reason||\"\"))):n.error(new c.a({graphQLErrors:Array.isArray(e)?e:[e]})));var t}})}))},t}(o.a)},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return i}));var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),\"\".concat(e,\":\").concat(t,\":\").concat(Math.random().toString(36).slice(2))}},function(e,t,n){\"use strict\";function r(e){return Array.isArray(e)&&e.length>0}n.d(t,\"a\",(function(){return r}))},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return L}));var r=n(0),i=n(25),o=n(22),a=n(21);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,a.a&&(e.prototype[a.a]=t)}function c(e){return(c=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e,t){for(var n,r=/\\r\\n|[\\n\\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function l(e){return f(e.source,s(e.source,e.start))}function f(e,t){var n=e.locationOffset.column-1,r=d(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,u=1===t.line?n:0,c=t.column+u,s=\"\".concat(e.name,\":\").concat(a,\":\").concat(c,\"\\n\"),l=r.split(/\\r\\n|[\\n\\r]/g),f=l[i];if(f.length>120){for(var h=Math.floor(c/80),v=c%80,y=[],b=0;b<f.length;b+=80)y.push(f.slice(b,b+80));return s+p([[\"\".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return[\"\",e]})),[[\" \",d(v-1)+\"^\"],[\"\",y[h+1]]]))}return s+p([[\"\".concat(a-1),l[i-1]],[\"\".concat(a),f],[\"\",d(c-1)+\"^\"],[\"\".concat(a+1),l[i+1]]])}function p(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return d(n-(t=r).length)+t+(i?\" | \"+i:\" |\")})).join(\"\\n\")}function d(e){return Array(e+1).join(\" \")}function h(e,t,n,r,i,o,a){var u=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,l=n;if(!l&&u){var f=u[0];l=f&&f.loc&&f.loc.source}var p,d=r;!d&&u&&(d=u.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),d&&0===d.length&&(d=void 0),r&&n?p=r.map((function(e){return s(n,e)})):u&&(p=u.reduce((function(e,t){return t.loc&&e.push(s(t.loc.source,t.loc.start)),e}),[]));var v,y=a;if(null==y&&null!=o){var b=o.extensions;\"object\"==c(v=b)&&null!==v&&(y=b)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:Boolean(p)},path:{value:i||void 0,enumerable:Boolean(i)},nodes:{value:u||void 0},source:{value:l||void 0},positions:{value:d||void 0},originalError:{value:o},extensions:{value:y||void 0,enumerable:Boolean(y)}}),o&&o.stack?Object.defineProperty(this,\"stack\",{value:o.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,\"stack\",{value:Error().stack,writable:!0,configurable:!0})}function v(e,t,n){return new h(\"Syntax Error: \".concat(n),void 0,e,[t])}h.prototype=Object.create(Error.prototype,{constructor:{value:h},name:{value:\"GraphQLError\"},toString:{value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+=\"\\n\\n\"+l(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+=\"\\n\\n\"+f(e.source,u)}return t}(this)}}});var y=Object.freeze({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\",SCHEMA_DEFINITION:\"SchemaDefinition\",OPERATION_TYPE_DEFINITION:\"OperationTypeDefinition\",SCALAR_TYPE_DEFINITION:\"ScalarTypeDefinition\",OBJECT_TYPE_DEFINITION:\"ObjectTypeDefinition\",FIELD_DEFINITION:\"FieldDefinition\",INPUT_VALUE_DEFINITION:\"InputValueDefinition\",INTERFACE_TYPE_DEFINITION:\"InterfaceTypeDefinition\",UNION_TYPE_DEFINITION:\"UnionTypeDefinition\",ENUM_TYPE_DEFINITION:\"EnumTypeDefinition\",ENUM_VALUE_DEFINITION:\"EnumValueDefinition\",INPUT_OBJECT_TYPE_DEFINITION:\"InputObjectTypeDefinition\",DIRECTIVE_DEFINITION:\"DirectiveDefinition\",SCHEMA_EXTENSION:\"SchemaExtension\",SCALAR_TYPE_EXTENSION:\"ScalarTypeExtension\",OBJECT_TYPE_EXTENSION:\"ObjectTypeExtension\",INTERFACE_TYPE_EXTENSION:\"InterfaceTypeExtension\",UNION_TYPE_EXTENSION:\"UnionTypeExtension\",ENUM_TYPE_EXTENSION:\"EnumTypeExtension\",INPUT_OBJECT_TYPE_EXTENSION:\"InputObjectTypeExtension\"}),b=n(36),m=n(26),g=Object.freeze({SOF:\"<SOF>\",EOF:\"<EOF>\",BANG:\"!\",DOLLAR:\"$\",AMP:\"&\",PAREN_L:\"(\",PAREN_R:\")\",SPREAD:\"...\",COLON:\":\",EQUALS:\"=\",AT:\"@\",BRACKET_L:\"[\",BRACKET_R:\"]\",BRACE_L:\"{\",PIPE:\"|\",BRACE_R:\"}\",NAME:\"Name\",INT:\"Int\",FLOAT:\"Float\",STRING:\"String\",BLOCK_STRING:\"BlockString\",COMMENT:\"Comment\"});function w(){return this.lastToken=this.token,this.token=this.lookahead()}function O(){var e=this.token;if(e.kind!==g.EOF)do{e=e.next||(e.next=_(this,e))}while(e.kind===g.COMMENT);return e}function E(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function k(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'\"\\\\u'.concat((\"00\"+e.toString(16).toUpperCase()).slice(-4),'\"')}function _(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=e.charCodeAt(i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(r,t.end,e),a=e.line,u=1+o-e.lineStart;if(o>=i)return new E(g.EOF,i,i,a,u,t);var c=r.charCodeAt(o);switch(c){case 33:return new E(g.BANG,o,o+1,a,u,t);case 35:return function(e,t,n,r,i){var o,a=e.body,u=t;do{o=a.charCodeAt(++u)}while(!isNaN(o)&&(o>31||9===o));return new E(g.COMMENT,t,u,n,r,i,a.slice(t+1,u))}(n,o,a,u,t);case 36:return new E(g.DOLLAR,o,o+1,a,u,t);case 38:return new E(g.AMP,o,o+1,a,u,t);case 40:return new E(g.PAREN_L,o,o+1,a,u,t);case 41:return new E(g.PAREN_R,o,o+1,a,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new E(g.SPREAD,o,o+3,a,u,t);break;case 58:return new E(g.COLON,o,o+1,a,u,t);case 61:return new E(g.EQUALS,o,o+1,a,u,t);case 64:return new E(g.AT,o,o+1,a,u,t);case 91:return new E(g.BRACKET_L,o,o+1,a,u,t);case 93:return new E(g.BRACKET_R,o,o+1,a,u,t);case 123:return new E(g.BRACE_L,o,o+1,a,u,t);case 124:return new E(g.PIPE,o,o+1,a,u,t);case 125:return new E(g.BRACE_R,o,o+1,a,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,u=t+1,c=0;for(;u!==a&&!isNaN(c=o.charCodeAt(u))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++u;return new E(g.NAME,t,u,n,r,i,o.slice(t,u))}(n,o,a,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,u=n,c=t,s=!1;45===u&&(u=a.charCodeAt(++c));if(48===u){if((u=a.charCodeAt(++c))>=48&&u<=57)throw v(e,c,\"Invalid number, unexpected digit after 0: \".concat(k(u),\".\"))}else c=x(e,c,u),u=a.charCodeAt(c);46===u&&(s=!0,u=a.charCodeAt(++c),c=x(e,c,u),u=a.charCodeAt(c));69!==u&&101!==u||(s=!0,43!==(u=a.charCodeAt(++c))&&45!==u||(u=a.charCodeAt(++c)),c=x(e,c,u),u=a.charCodeAt(c));if(46===u||69===u||101===u)throw v(e,c,\"Invalid number, expected digit but got: \".concat(k(u),\".\"));return new E(s?g.FLOAT:g.INT,t,c,r,i,o,a.slice(t,c))}(n,o,c,a,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?function(e,t,n,r,i,o){var a=e.body,u=t+3,c=u,s=0,l=\"\";for(;u<a.length&&!isNaN(s=a.charCodeAt(u));){if(34===s&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2))return l+=a.slice(c,u),new E(g.BLOCK_STRING,t,u+3,n,r,i,Object(m.a)(l));if(s<32&&9!==s&&10!==s&&13!==s)throw v(e,u,\"Invalid character within String: \".concat(k(s),\".\"));10===s?(++u,++o.line,o.lineStart=u):13===s?(10===a.charCodeAt(u+1)?u+=2:++u,++o.line,o.lineStart=u):92===s&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)&&34===a.charCodeAt(u+3)?(l+=a.slice(c,u)+'\"\"\"',c=u+=4):++u}throw v(e,u,\"Unterminated string.\")}(n,o,a,u,t,e):function(e,t,n,r,i){var o=e.body,a=t+1,u=a,c=0,s=\"\";for(;a<o.length&&!isNaN(c=o.charCodeAt(a))&&10!==c&&13!==c;){if(34===c)return s+=o.slice(u,a),new E(g.STRING,t,a+1,n,r,i,s);if(c<32&&9!==c)throw v(e,a,\"Invalid character within String: \".concat(k(c),\".\"));if(++a,92===c){switch(s+=o.slice(u,a-1),c=o.charCodeAt(a)){case 34:s+='\"';break;case 47:s+=\"/\";break;case 92:s+=\"\\\\\";break;case 98:s+=\"\\b\";break;case 102:s+=\"\\f\";break;case 110:s+=\"\\n\";break;case 114:s+=\"\\r\";break;case 116:s+=\"\\t\";break;case 117:var l=(p=o.charCodeAt(a+1),d=o.charCodeAt(a+2),h=o.charCodeAt(a+3),y=o.charCodeAt(a+4),T(p)<<12|T(d)<<8|T(h)<<4|T(y));if(l<0){var f=o.slice(a+1,a+5);throw v(e,a,\"Invalid character escape sequence: \\\\u\".concat(f,\".\"))}s+=String.fromCharCode(l),a+=4;break;default:throw v(e,a,\"Invalid character escape sequence: \\\\\".concat(String.fromCharCode(c),\".\"))}++a,u=a}}var p,d,h,y;throw v(e,a,\"Unterminated string.\")}(n,o,a,u,t)}throw v(n,o,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return\"Cannot contain the invalid character \".concat(k(e),\".\");if(39===e)return\"Unexpected single quote character ('), did you mean to use a double quote (\\\")?\";return\"Cannot parse the unexpected character \".concat(k(e),\".\")}(c))}function x(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw v(e,i,\"Invalid number, expected digit but got: \".concat(k(o),\".\"))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}u(E,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var S=Object.freeze({QUERY:\"QUERY\",MUTATION:\"MUTATION\",SUBSCRIPTION:\"SUBSCRIPTION\",FIELD:\"FIELD\",FRAGMENT_DEFINITION:\"FRAGMENT_DEFINITION\",FRAGMENT_SPREAD:\"FRAGMENT_SPREAD\",INLINE_FRAGMENT:\"INLINE_FRAGMENT\",VARIABLE_DEFINITION:\"VARIABLE_DEFINITION\",SCHEMA:\"SCHEMA\",SCALAR:\"SCALAR\",OBJECT:\"OBJECT\",FIELD_DEFINITION:\"FIELD_DEFINITION\",ARGUMENT_DEFINITION:\"ARGUMENT_DEFINITION\",INTERFACE:\"INTERFACE\",UNION:\"UNION\",ENUM:\"ENUM\",ENUM_VALUE:\"ENUM_VALUE\",INPUT_OBJECT:\"INPUT_OBJECT\",INPUT_FIELD_DEFINITION:\"INPUT_FIELD_DEFINITION\"});var j=function(){function e(e,t){var n=\"string\"===typeof e?new b.a(e):e;n instanceof b.a||Object(o.a)(0,\"Must provide Source. Received: \".concat(Object(i.a)(n))),this._lexer=function(e,t){var n=new E(g.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:w,lookahead:O}}(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(g.NAME);return{kind:y.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:y.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case\"query\":case\"mutation\":case\"subscription\":return this.parseOperationDefinition();case\"fragment\":return this.parseFragmentDefinition();case\"schema\":case\"scalar\":case\"type\":case\"interface\":case\"union\":case\"enum\":case\"input\":case\"directive\":return this.parseTypeSystemDefinition();case\"extend\":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:y.OPERATION_DEFINITION,operation:\"query\",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(g.NAME)&&(t=this.parseName()),{kind:y.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(g.NAME);switch(e.value){case\"query\":return\"query\";case\"mutation\":return\"mutation\";case\"subscription\":return\"subscription\"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:y.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:y.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:y.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(g.COLON)?(e=r,t=this.parseName()):t=r,{kind:y.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:y.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:y.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword(\"on\");return!t&&this.peek(g.NAME)?{kind:y.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:y.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword(\"fragment\"),this._options.experimentalFragmentVariables?{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if(\"on\"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:y.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:y.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:return\"true\"===t.value||\"false\"===t.value?(this._lexer.advance(),{kind:y.BOOLEAN,value:\"true\"===t.value,loc:this.loc(t)}):\"null\"===t.value?(this._lexer.advance(),{kind:y.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:y.ENUM,value:t.value,loc:this.loc(t)});case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:y.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:y.LIST,values:this.any(g.BRACKET_L,(function(){return t.parseValueLiteral(e)}),g.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:y.OBJECT,fields:this.any(g.BRACE_L,(function(){return t.parseObjectField(e)}),g.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),{kind:y.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:y.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:y.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:y.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:y.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.value){case\"schema\":return this.parseSchemaDefinition();case\"scalar\":return this.parseScalarTypeDefinition();case\"type\":return this.parseObjectTypeDefinition();case\"interface\":return this.parseInterfaceTypeDefinition();case\"union\":return this.parseUnionTypeDefinition();case\"enum\":return this.parseEnumTypeDefinition();case\"input\":return this.parseInputObjectTypeDefinition();case\"directive\":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword(\"schema\");var t=this.parseDirectives(!0),n=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:y.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var n=this.parseNamedType();return{kind:y.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"scalar\");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:y.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"type\");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:y.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword(\"implements\")){this.expectOptionalToken(g.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(g.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:y.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:y.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"interface\");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:y.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"union\");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:y.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(g.EQUALS)){this.expectOptionalToken(g.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"enum\");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:y.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:y.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"input\");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:y.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case\"schema\":return this.parseSchemaExtension();case\"scalar\":return this.parseScalarTypeExtension();case\"type\":return this.parseObjectTypeExtension();case\"interface\":return this.parseInterfaceTypeExtension();case\"union\":return this.parseUnionTypeExtension();case\"enum\":return this.parseEnumTypeExtension();case\"input\":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"schema\");var t=this.parseDirectives(!0),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:y.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"scalar\");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:y.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"type\");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:y.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"interface\");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:y.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"union\");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:y.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"enum\");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:y.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"input\");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:y.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword(\"directive\"),this.expectToken(g.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword(\"repeatable\");this.expectKeyword(\"on\");var o=this.parseDirectiveLocations();return{kind:y.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(g.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(g.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==S[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new C(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw v(this._lexer.source,t.start,\"Expected \".concat(e,\", found \").concat(N(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw v(this._lexer.source,t.start,'Expected \"'.concat(e,'\", found ').concat(N(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return v(this._lexer.source,t.start,\"Unexpected \".concat(N(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function C(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function N(e){var t=e.value;return t?\"\".concat(e.kind,' \"').concat(t,'\"'):e.kind}u(C,(function(){return{start:this.start,end:this.end}}));var D=new Map,P=new Map,I=!0,R=!1;function F(e){return e.replace(/[\\s,]+/g,\" \").trim()}function A(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if(\"FragmentDefinition\"===e.kind){var r=e.name.value,i=F((a=e.loc).source.body.substring(a.start,a.end)),o=P.get(r);o&&!o.has(i)?I&&console.warn(\"Warning: fragment with name \"+r+\" already exists.\\ngraphql-tag enforces all fragment names across your application to be unique; read more about\\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names\"):o||P.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),Object(r.a)(Object(r.a)({},e),{definitions:n})}function M(e){var t=F(e);if(!D.has(t)){var n=function(e,t){return new j(e,t).parseDocument()}(e,{experimentalFragmentVariables:R,allowLegacyFragmentVariables:R});if(!n||\"Document\"!==n.kind)throw new Error(\"Not a valid GraphQL document.\");D.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&\"object\"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(A(n)))}return D.get(t)}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];\"string\"===typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&\"Document\"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),M(r)}var V,q={gql:L,resetCaches:function(){D.clear(),P.clear()},disableFragmentWarnings:function(){I=!1},enableExperimentalFragmentVariables:function(){R=!0},disableExperimentalFragmentVariables:function(){R=!1}};(V=L||(L={})).gql=q.gql,V.resetCaches=q.resetCaches,V.disableFragmentWarnings=q.disableFragmentWarnings,V.enableExperimentalFragmentVariables=q.enableExperimentalFragmentVariables,V.disableExperimentalFragmentVariables=q.disableExperimentalFragmentVariables,L.default=L},,,,,,function(e,t,n){\"use strict\";var r=n(39),i=\"function\"===typeof Symbol&&Symbol.for,o=i?Symbol.for(\"react.element\"):60103,a=i?Symbol.for(\"react.portal\"):60106,u=i?Symbol.for(\"react.fragment\"):60107,c=i?Symbol.for(\"react.strict_mode\"):60108,s=i?Symbol.for(\"react.profiler\"):60114,l=i?Symbol.for(\"react.provider\"):60109,f=i?Symbol.for(\"react.context\"):60110,p=i?Symbol.for(\"react.forward_ref\"):60112,d=i?Symbol.for(\"react.suspense\"):60113,h=i?Symbol.for(\"react.memo\"):60115,v=i?Symbol.for(\"react.lazy\"):60116,y=\"function\"===typeof Symbol&&Symbol.iterator;function b(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function O(){}function E(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if(\"object\"!==typeof e&&\"function\"!==typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,\"setState\")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},O.prototype=w.prototype;var k=E.prototype=new O;k.constructor=E,r(k,w.prototype),k.isPureReactComponent=!0;var _={current:null},x=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=\"\"+t.key),t)x.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:_.current}}function j(e){return\"object\"===typeof e&&null!==e&&e.$$typeof===o}var C=/\\/+/g,N=[];function D(e,t,n,r){if(N.length){var i=N.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,i){var u=typeof t;\"undefined\"!==u&&\"boolean\"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case\"string\":case\"number\":c=!0;break;case\"object\":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,\"\"===n?\".\"+R(t,0):n),1;if(c=0,n=\"\"===n?\".\":n+\":\",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+R(u=t[s],s);c+=e(u,l,r,i)}else if(null===t||\"object\"!==typeof t?l=null:l=\"function\"===typeof(l=y&&t[y]||t[\"@@iterator\"])?l:null,\"function\"===typeof l)for(t=l.call(t),s=0;!(u=t.next()).done;)c+=e(u=u.value,l=n+R(u,s++),r,i);else if(\"object\"===u)throw r=\"\"+t,Error(b(31,\"[object Object]\"===r?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":r,\"\"));return c}(e,\"\",t,n)}function R(e,t){return\"object\"===typeof e&&null!==e&&null!=e.key?function(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function F(e,t){e.func.call(e.context,t,e.count++)}function A(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,(function(e){return e})):null!=e&&(j(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?\"\":(\"\"+e.key).replace(C,\"$&/\")+\"/\")+n)),r.push(e))}function M(e,t,n,r,i){var o=\"\";null!=n&&(o=(\"\"+n).replace(C,\"$&/\")+\"/\"),I(e,A,t=D(t,o,r,i)),P(t)}var L={current:null};function V(){var e=L.current;if(null===e)throw Error(b(321));return e}var q={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,F,t=D(null,null,t,n)),P(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!j(e))throw Error(b(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=E,t.StrictMode=c,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(b(267,e));var i=r({},e.props),a=e.key,u=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=_.current),void 0!==t.key&&(a=\"\"+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)x.call(t,l)&&!T.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:u,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return V().useCallback(e,t)},t.useContext=function(e,t){return V().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return V().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return V().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return V().useLayoutEffect(e,t)},t.useMemo=function(e,t){return V().useMemo(e,t)},t.useReducer=function(e,t,n){return V().useReducer(e,t,n)},t.useRef=function(e){return V().useRef(e)},t.useState=function(e){return V().useState(e)},t.version=\"16.14.0\"},function(e,t,n){\"use strict\";var r=n(3),i=n(39),o=n(55);function a(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}if(!r)throw Error(a(227));function u(e,t,n,r,i,o,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(l){this.onError(l)}}var c=!1,s=null,l=!1,f=null,p={onError:function(e){c=!0,s=e}};function d(e,t,n,r,i,o,a,l,f){c=!1,s=null,u.apply(p,arguments)}var h=null,v=null,y=null;function b(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=y(n),function(e,t,n,r,i,o,u,p,h){if(d.apply(this,arguments),c){if(!c)throw Error(a(198));var v=s;c=!1,s=null,l||(l=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var m=null,g={};function w(){if(m)for(var e in g){var t=g[e],n=m.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in E[n]=t,n=t.eventTypes){var i=void 0,o=n[r],u=t,c=r;if(k.hasOwnProperty(c))throw Error(a(99,c));k[c]=o;var s=o.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&O(s[i],u,c);i=!0}else o.registrationName?(O(o.registrationName,u,c),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function O(e,t,n){if(_[e])throw Error(a(100,e));_[e]=t,x[e]=t.eventTypes[n].dependencies}var E=[],k={},_={},x={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g.hasOwnProperty(t)||g[t]!==r){if(g[t])throw Error(a(102,t));g[t]=r,n=!0}}n&&w()}var S=!(\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement),j=null,C=null,N=null;function D(e){if(e=v(e)){if(\"function\"!==typeof j)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),j(e.stateNode,e.type,t))}}function P(e){C?N?N.push(e):N=[e]:C=e}function I(){if(C){var e=C,t=N;if(N=C=null,D(e),t)for(e=0;e<t.length;e++)D(t[e])}}function R(e,t){return e(t)}function F(e,t,n,r,i){return e(t,n,r,i)}function A(){}var M=R,L=!1,V=!1;function q(){null===C&&null===N||(A(),I())}function Q(e,t,n){if(V)return e(t,n);V=!0;try{return M(e,t,n)}finally{V=!1,q()}}var z=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,U=Object.prototype.hasOwnProperty,B={},W={};function K(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var H={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach((function(e){H[e]=new K(e,0,!1,e,null,!1)})),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach((function(e){var t=e[0];H[t]=new K(t,1,!1,e[1],null,!1)})),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach((function(e){H[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach((function(e){H[e]=new K(e,2,!1,e,null,!1)})),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach((function(e){H[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach((function(e){H[e]=new K(e,3,!0,e,null,!1)})),[\"capture\",\"download\"].forEach((function(e){H[e]=new K(e,4,!1,e,null,!1)})),[\"cols\",\"rows\",\"size\",\"span\"].forEach((function(e){H[e]=new K(e,6,!1,e,null,!1)})),[\"rowSpan\",\"start\"].forEach((function(e){H[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach((function(e){var t=e.replace(G,Y);H[t]=new K(t,1,!1,e,null,!1)})),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach((function(e){var t=e.replace(G,Y);H[t]=new K(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1)})),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach((function(e){var t=e.replace(G,Y);H[t]=new K(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1)})),[\"tabIndex\",\"crossOrigin\"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),H.xlinkHref=new K(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0),[\"src\",\"href\",\"action\",\"formAction\"].forEach((function(e){H[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,r){var i=H.hasOwnProperty(t)?H[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&(\"o\"===t[0]||\"O\"===t[0])&&(\"n\"===t[1]||\"N\"===t[1])))||(function(e,t,n,r){if(null===t||\"undefined\"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case\"function\":case\"symbol\":return!0;case\"boolean\":return!r&&(null!==n?!n.acceptsBooleans:\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!U.call(W,e)||!U.call(B,e)&&(z.test(e)?W[e]=!0:(B[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,\"\"+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&\"\":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?\"\":\"\"+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}$.hasOwnProperty(\"ReactCurrentDispatcher\")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty(\"ReactCurrentBatchConfig\")||($.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\\\\/]/,Z=\"function\"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for(\"react.element\"):60103,te=Z?Symbol.for(\"react.portal\"):60106,ne=Z?Symbol.for(\"react.fragment\"):60107,re=Z?Symbol.for(\"react.strict_mode\"):60108,ie=Z?Symbol.for(\"react.profiler\"):60114,oe=Z?Symbol.for(\"react.provider\"):60109,ae=Z?Symbol.for(\"react.context\"):60110,ue=Z?Symbol.for(\"react.concurrent_mode\"):60111,ce=Z?Symbol.for(\"react.forward_ref\"):60112,se=Z?Symbol.for(\"react.suspense\"):60113,le=Z?Symbol.for(\"react.suspense_list\"):60120,fe=Z?Symbol.for(\"react.memo\"):60115,pe=Z?Symbol.for(\"react.lazy\"):60116,de=Z?Symbol.for(\"react.block\"):60121,he=\"function\"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||\"object\"!==typeof e?null:\"function\"===typeof(e=he&&e[he]||e[\"@@iterator\"])?e:null}function ye(e){if(null==e)return null;if(\"function\"===typeof e)return e.displayName||e.name||null;if(\"string\"===typeof e)return e;switch(e){case ne:return\"Fragment\";case te:return\"Portal\";case ie:return\"Profiler\";case re:return\"StrictMode\";case se:return\"Suspense\";case le:return\"SuspenseList\"}if(\"object\"===typeof e)switch(e.$$typeof){case ae:return\"Context.Consumer\";case oe:return\"Context.Provider\";case ce:var t=e.render;return t=t.displayName||t.name||\"\",e.displayName||(\"\"!==t?\"ForwardRef(\"+t+\")\":\"ForwardRef\");case fe:return ye(e.type);case de:return ye(e.render);case pe:if(e=1===e._status?e._result:null)return ye(e)}return null}function be(e){var t=\"\";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n=\"\";break e;default:var r=e._debugOwner,i=e._debugSource,o=ye(e.type);n=null,r&&(n=ye(r.type)),r=o,o=\"\",i?o=\" (at \"+i.fileName.replace(X,\"\")+\":\"+i.lineNumber+\")\":n&&(o=\" (created by \"+n+\")\"),n=\"\\n    in \"+(r||\"Unknown\")+o}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case\"boolean\":case\"number\":case\"object\":case\"string\":case\"undefined\":return e;default:return\"\"}}function ge(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ge(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&\"undefined\"!==typeof n&&\"function\"===typeof n.get&&\"function\"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=\"\"+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=ge(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?\"\":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:\"checkbox\"===t.type||\"radio\"===t.type?null!=t.checked:null!=t.value}}function _e(e,t){null!=(t=t.checked)&&J(e,\"checked\",t,!1)}function xe(e,t){_e(e,t);var n=me(t.value),r=t.type;if(null!=n)\"number\"===r?(0===n&&\"\"===e.value||e.value!=n)&&(e.value=\"\"+n):e.value!==\"\"+n&&(e.value=\"\"+n);else if(\"submit\"===r||\"reset\"===r)return void e.removeAttribute(\"value\");t.hasOwnProperty(\"value\")?Se(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&Se(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty(\"value\")||t.hasOwnProperty(\"defaultValue\")){var r=t.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==t.value&&null!==t.value))return;t=\"\"+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}\"\"!==(n=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==n&&(e.name=n)}function Se(e,t,n){\"number\"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}function je(e,t){return e=i({children:void 0},t),(t=function(e){var t=\"\";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ce(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[\"$\"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=\"\"+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=\"\"),n=t}e._wrapperState={initialValue:me(n)}}function Pe(e,t){var n=me(t.value),r=me(t.defaultValue);null!=n&&((n=\"\"+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=\"\"+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&\"\"!==t&&null!==t&&(e.value=t)}var Re=\"http://www.w3.org/1999/xhtml\",Fe=\"http://www.w3.org/2000/svg\";function Ae(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Me(e,t){return null==e||\"http://www.w3.org/1999/xhtml\"===e?Ae(t):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===t?\"http://www.w3.org/1999/xhtml\":e}var Le,Ve=function(e){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Fe||\"innerHTML\"in e)e.innerHTML=t;else{for((Le=Le||document.createElement(\"div\")).innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var ze={animationend:Qe(\"Animation\",\"AnimationEnd\"),animationiteration:Qe(\"Animation\",\"AnimationIteration\"),animationstart:Qe(\"Animation\",\"AnimationStart\"),transitionend:Qe(\"Transition\",\"TransitionEnd\")},Ue={},Be={};function We(e){if(Ue[e])return Ue[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in Be)return Ue[e]=n[t];return e}S&&(Be=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),\"TransitionEvent\"in window||delete ze.transitionend.transition);var Ke=We(\"animationend\"),He=We(\"animationiteration\"),Ge=We(\"animationstart\"),Ye=We(\"transitionend\"),$e=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),Je=new(\"function\"===typeof WeakMap?WeakMap:Map);function Xe(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)b(e,t[r],n[r]);else t&&b(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(l)throw e=f,l=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!S)return!1;var t=(e=\"on\"+e)in document;return t||((t=document.createElement(\"div\")).setAttribute(e,\"return;\"),t=\"function\"===typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&&lt.push(e)}function pt(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Sn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,c=0;c<E.length;c++){var s=E[c];s&&(s=s.extractEvents(r,t,o,i,a))&&(u=rt(u,s))}ut(u)}}function ht(e,t,n){if(!n.has(e)){switch(e){case\"scroll\":Gt(t,\"scroll\",!0);break;case\"focus\":case\"blur\":Gt(t,\"focus\",!0),Gt(t,\"blur\",!0),n.set(\"blur\",null),n.set(\"focus\",null);break;case\"cancel\":case\"close\":st(e)&&Gt(t,e,!0);break;case\"invalid\":case\"submit\":case\"reset\":break;default:-1===$e.indexOf(e)&&Ht(e,t)}n.set(e,null)}}var vt,yt,bt,mt=!1,gt=[],wt=null,Ot=null,Et=null,kt=new Map,_t=new Map,xt=[],Tt=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit\".split(\" \"),St=\"focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture\".split(\" \");function jt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ct(e,t){switch(e){case\"focus\":case\"blur\":wt=null;break;case\"dragenter\":case\"dragleave\":Ot=null;break;case\"mouseover\":case\"mouseout\":Et=null;break;case\"pointerover\":case\"pointerout\":kt.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":_t.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=jt(t,n,r,i,o),null!==t&&(null!==(t=jn(t))&&yt(t)),e):(e.eventSystemFlags|=r,e)}function Dt(e){var t=Sn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){bt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=jn(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function It(e,t,n){Pt(e)&&n.delete(t)}function Rt(){for(mt=!1;0<gt.length;){var e=gt[0];if(null!==e.blockedOn){null!==(e=jn(e.blockedOn))&&vt(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gt.shift()}null!==wt&&Pt(wt)&&(wt=null),null!==Ot&&Pt(Ot)&&(Ot=null),null!==Et&&Pt(Et)&&(Et=null),kt.forEach(It),_t.forEach(It)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,mt||(mt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Rt)))}function At(e){function t(t){return Ft(t,e)}if(0<gt.length){Ft(gt[0],e);for(var n=1;n<gt.length;n++){var r=gt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Ft(wt,e),null!==Ot&&Ft(Ot,e),null!==Et&&Ft(Et,e),kt.forEach(t),_t.forEach(t),n=0;n<xt.length;n++)(r=xt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&null===(n=xt[0]).blockedOn;)Dt(n),null===n.blockedOn&&xt.shift()}var Mt={},Lt=new Map,Vt=new Map,qt=[\"abort\",\"abort\",Ke,\"animationEnd\",He,\"animationIteration\",Ge,\"animationStart\",\"canplay\",\"canPlay\",\"canplaythrough\",\"canPlayThrough\",\"durationchange\",\"durationChange\",\"emptied\",\"emptied\",\"encrypted\",\"encrypted\",\"ended\",\"ended\",\"error\",\"error\",\"gotpointercapture\",\"gotPointerCapture\",\"load\",\"load\",\"loadeddata\",\"loadedData\",\"loadedmetadata\",\"loadedMetadata\",\"loadstart\",\"loadStart\",\"lostpointercapture\",\"lostPointerCapture\",\"playing\",\"playing\",\"progress\",\"progress\",\"seeking\",\"seeking\",\"stalled\",\"stalled\",\"suspend\",\"suspend\",\"timeupdate\",\"timeUpdate\",Ye,\"transitionEnd\",\"waiting\",\"waiting\"];function Qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o=\"on\"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+\"Capture\"},dependencies:[r],eventPriority:t},Vt.set(r,t),Lt.set(r,o),Mt[i]=o}}Qt(\"blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange\".split(\" \"),0),Qt(\"drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel\".split(\" \"),1),Qt(qt,2);for(var zt=\"change selectionchange textInput compositionstart compositionend compositionupdate\".split(\" \"),Ut=0;Ut<zt.length;Ut++)Vt.set(zt[Ut],0);var Bt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Kt=!0;function Ht(e,t){Gt(t,e,!1)}function Gt(e,t,n){var r=Vt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=$t.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){L||A();var i=Jt,o=L;L=!0;try{F(i,e,t,n,r)}finally{(L=o)||q()}}function $t(e,t,n,r){Wt(Bt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(Kt)if(0<gt.length&&-1<Tt.indexOf(e))e=jt(null,e,t,n,r),gt.push(e);else{var i=Xt(e,t,n,r);if(null===i)Ct(e,r);else if(-1<Tt.indexOf(e))e=jt(i,e,t,n,r),gt.push(e);else if(!function(e,t,n,r,i){switch(t){case\"focus\":return wt=Nt(wt,e,t,n,r,i),!0;case\"dragenter\":return Ot=Nt(Ot,e,t,n,r,i),!0;case\"mouseover\":return Et=Nt(Et,e,t,n,r,i),!0;case\"pointerover\":var o=i.pointerId;return kt.set(o,Nt(kt.get(o)||null,e,t,n,r,i)),!0;case\"gotpointercapture\":return o=i.pointerId,_t.set(o,Nt(_t.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Ct(e,r),e=pt(e,r,null,t);try{Q(dt,e)}finally{ft(e)}}}}function Xt(e,t,n,r){if(null!==(n=Sn(n=ct(r)))){var i=Ze(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=pt(e,r,n,t);try{Q(dt,e)}finally{ft(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=[\"Webkit\",\"ms\",\"Moz\",\"O\"];function tn(e,t,n){return null==t||\"boolean\"===typeof t||\"\"===t?\"\":n||\"number\"!==typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(\"\"+t).trim():t+\"px\"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf(\"--\"),i=tn(n,t[n],r);\"float\"===n&&(n=\"cssFloat\"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,\"\"));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(\"object\"!==typeof t.dangerouslySetInnerHTML||!(\"__html\"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&\"object\"!==typeof t.style)throw Error(a(62,\"\"))}}function an(e,t){if(-1===e.indexOf(\"-\"))return\"string\"===typeof t.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var un=Re;function cn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=x[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function sn(){}function ln(e){if(\"undefined\"===typeof(e=e||(\"undefined\"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var e=window,t=ln();t instanceof e.HTMLIFrameElement;){try{var n=\"string\"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ln((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}var vn=null,yn=null;function bn(e,t){switch(e){case\"button\":case\"input\":case\"select\":case\"textarea\":return!!t.autoFocus}return!1}function mn(e,t){return\"textarea\"===e||\"option\"===e||\"noscript\"===e||\"string\"===typeof t.children||\"number\"===typeof t.children||\"object\"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var gn=\"function\"===typeof setTimeout?setTimeout:void 0,wn=\"function\"===typeof clearTimeout?clearTimeout:void 0;function On(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}var kn=Math.random().toString(36).slice(2),_n=\"__reactInternalInstance$\"+kn,xn=\"__reactEventHandlers$\"+kn,Tn=\"__reactContainere$\"+kn;function Sn(e){var t=e[_n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[_n]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[_n])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function jn(e){return!(e=e[_n]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Cn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Nn(e){return e[xn]||null}function Dn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Pn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&\"function\"!==typeof n)throw Error(a(231,t,typeof n));return n}function In(e,t,n){(t=Pn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Dn(t);for(t=n.length;0<t--;)In(n[t],\"captured\",e);for(t=0;t<n.length;t++)In(n[t],\"bubbled\",e)}}function Fn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Pn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function An(e){e&&e.dispatchConfig.registrationName&&Fn(e._targetInst,null,e)}function Mn(e){it(e,Rn)}var Ln=null,Vn=null,qn=null;function Qn(){if(qn)return qn;var e,t,n=Vn,r=n.length,i=\"value\"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return qn=i.slice(e,1<t?1-t:void 0)}function zn(){return!0}function Un(){return!1}function Bn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):\"target\"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?zn:Un,this.isPropagationStopped=Un,this}function Wn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Hn(e){e.eventPool=[],e.getPooled=Wn,e.release=Kn}i(Bn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){this.isPersistent=zn},isPersistent:Un,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Un,this._dispatchInstances=this._dispatchListeners=null}}),Bn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Bn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Hn(n),n},Hn(Bn);var Gn=Bn.extend({data:null}),Yn=Bn.extend({data:null}),$n=[9,13,27,32],Jn=S&&\"CompositionEvent\"in window,Xn=null;S&&\"documentMode\"in document&&(Xn=document.documentMode);var Zn=S&&\"TextEvent\"in window&&!Xn,er=S&&(!Jn||Xn&&8<Xn&&11>=Xn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",captured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},rr=!1;function ir(e,t){switch(e){case\"keyup\":return-1!==$n.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"blur\":return!0;default:return!1}}function or(e){return\"object\"===typeof(e=e.detail)&&\"data\"in e?e.data:null}var ar=!1;var ur={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Jn)e:{switch(e){case\"compositionstart\":var o=nr.compositionStart;break e;case\"compositionend\":o=nr.compositionEnd;break e;case\"compositionupdate\":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):\"keydown\"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&\"ko\"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Qn()):(Vn=\"value\"in(Ln=r)?Ln.value:Ln.textContent,ar=!0)),o=Gn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Mn(o),i=o):i=null,(e=Zn?function(e,t){switch(e){case\"compositionend\":return or(t);case\"keypress\":return 32!==t.which?null:(rr=!0,tr);case\"textInput\":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return\"compositionend\"===e||!Jn&&ir(e,t)?(e=Qn(),qn=Vn=Ln=null,ar=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return er&&\"ko\"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,Mn(t)):t=null,null===i?t:null===t?i:[i,t]}},cr={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 sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!cr[e.type]:\"textarea\"===t}var lr={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"blur change click focus input keydown keyup selectionchange\".split(\" \")}};function fr(e,t,n){return(e=Bn.getPooled(lr.change,e,t,n)).type=\"change\",P(n),Mn(e),e}var pr=null,dr=null;function hr(e){ut(e)}function vr(e){if(Oe(Cn(e)))return e}function yr(e,t){if(\"change\"===e)return t}var br=!1;function mr(){pr&&(pr.detachEvent(\"onpropertychange\",gr),dr=pr=null)}function gr(e){if(\"value\"===e.propertyName&&vr(dr))if(e=fr(dr,e,ct(e)),L)ut(e);else{L=!0;try{R(hr,e)}finally{L=!1,q()}}}function wr(e,t,n){\"focus\"===e?(mr(),dr=n,(pr=t).attachEvent(\"onpropertychange\",gr)):\"blur\"===e&&mr()}function Or(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return vr(dr)}function Er(e,t){if(\"click\"===e)return vr(t)}function kr(e,t){if(\"input\"===e||\"change\"===e)return vr(t)}S&&(br=st(\"input\")&&(!document.documentMode||9<document.documentMode));var _r={eventTypes:lr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?Cn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if(\"select\"===o||\"input\"===o&&\"file\"===i.type)var a=yr;else if(sr(i))if(br)a=kr;else{a=Or;var u=wr}else(o=i.nodeName)&&\"input\"===o.toLowerCase()&&(\"checkbox\"===i.type||\"radio\"===i.type)&&(a=Er);if(a&&(a=a(e,t)))return fr(a,n,r);u&&u(e,i,t),\"blur\"===e&&(e=i._wrapperState)&&e.controlled&&\"number\"===i.type&&Se(i,\"number\",i.value)}},xr=Bn.extend({view:null,detail:null}),Tr={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tr[e])&&!!t[e]}function jr(){return Sr}var Cr=0,Nr=0,Dr=!1,Pr=!1,Ir=xr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:jr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if(\"movementX\"in e)return e.movementX;var t=Cr;return Cr=e.screenX,Dr?\"mousemove\"===e.type?e.screenX-t:0:(Dr=!0,0)},movementY:function(e){if(\"movementY\"in e)return e.movementY;var t=Nr;return Nr=e.screenY,Pr?\"mousemove\"===e.type?e.screenY-t:0:(Pr=!0,0)}}),Rr=Ir.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:\"onMouseEnter\",dependencies:[\"mouseout\",\"mouseover\"]},mouseLeave:{registrationName:\"onMouseLeave\",dependencies:[\"mouseout\",\"mouseover\"]},pointerEnter:{registrationName:\"onPointerEnter\",dependencies:[\"pointerout\",\"pointerover\"]},pointerLeave:{registrationName:\"onPointerLeave\",dependencies:[\"pointerout\",\"pointerover\"]}},Ar={eventTypes:Fr,extractEvents:function(e,t,n,r,i){var o=\"mouseover\"===e||\"pointerover\"===e,a=\"mouseout\"===e||\"pointerout\"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Sn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if(\"mouseout\"===e||\"mouseover\"===e)var u=Ir,c=Fr.mouseLeave,s=Fr.mouseEnter,l=\"mouse\";else\"pointerout\"!==e&&\"pointerover\"!==e||(u=Rr,c=Fr.pointerLeave,s=Fr.pointerEnter,l=\"pointer\");if(e=null==a?o:Cn(a),o=null==t?o:Cn(t),(c=u.getPooled(c,a,n,r)).type=l+\"leave\",c.target=e,c.relatedTarget=o,(n=u.getPooled(s,t,n,r)).type=l+\"enter\",n.target=o,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(s=l,a=0,e=u=r;e;e=Dn(e))a++;for(e=0,t=s;t;t=Dn(t))e++;for(;0<a-e;)u=Dn(u),a--;for(;0<e-a;)s=Dn(s),e--;for(;a--;){if(u===s||u===s.alternate)break e;u=Dn(u),s=Dn(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=Dn(r);for(r=[];l&&l!==s&&(null===(a=l.alternate)||a!==s);)r.push(l),l=Dn(l);for(l=0;l<u.length;l++)Fn(u[l],\"bubbled\",c);for(l=r.length;0<l--;)Fn(r[l],\"captured\",n);return 0===(64&i)?[c]:[c,n]}};var Mr=\"function\"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Lr=Object.prototype.hasOwnProperty;function Vr(e,t){if(Mr(e,t))return!0;if(\"object\"!==typeof e||null===e||\"object\"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(t,n[r])||!Mr(e[n[r]],t[n[r]]))return!1;return!0}var qr=S&&\"documentMode\"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},zr=null,Ur=null,Br=null,Wr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wr||null==zr||zr!==ln(n)?null:(\"selectionStart\"in(n=zr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Br&&Vr(Br,n)?null:(Br=n,(e=Bn.getPooled(Qr.select,Ur,e,t)).type=\"select\",e.target=zr,Mn(e),e))}var Hr={eventTypes:Qr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Xe(i),o=x.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Cn(t):window,e){case\"focus\":(sr(i)||\"true\"===i.contentEditable)&&(zr=i,Ur=t,Br=null);break;case\"blur\":Br=Ur=zr=null;break;case\"mousedown\":Wr=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":return Wr=!1,Kr(n,r);case\"selectionchange\":if(qr)break;case\"keydown\":case\"keyup\":return Kr(n,r)}return null}},Gr=Bn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Bn.extend({clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),$r=xr.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Xr={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Zr={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},ei=xr.extend({key:function(e){if(e.key){var t=Xr[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=Jr(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?Zr[e.keyCode]||\"Unidentified\":\"\"},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:jr,charCode:function(e){return\"keypress\"===e.type?Jr(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?Jr(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}}),ti=Ir.extend({dataTransfer:null}),ni=xr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:jr}),ri=Bn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Ir.extend({deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Mt,extractEvents:function(e,t,n,r){var i=Lt.get(e);if(!i)return null;switch(e){case\"keypress\":if(0===Jr(n))return null;case\"keydown\":case\"keyup\":e=ei;break;case\"blur\":case\"focus\":e=$r;break;case\"click\":if(2===n.button)return null;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":e=Ir;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":e=ti;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":e=ni;break;case Ke:case He:case Ge:e=Gr;break;case Ye:e=ri;break;case\"scroll\":e=xr;break;case\"wheel\":e=ii;break;case\"copy\":case\"cut\":case\"paste\":e=Yr;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":e=Rr;break;default:e=Bn}return Mn(t=e.getPooled(i,t,n,r)),t}};if(m)throw Error(a(101));m=Array.prototype.slice.call(\"ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin\".split(\" \")),w(),h=Nn,v=jn,y=Cn,T({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Ar,ChangeEventPlugin:_r,SelectEventPlugin:Hr,BeforeInputEventPlugin:ur});var ai=[],ui=-1;function ci(e){0>ui||(e.current=ai[ui],ai[ui]=null,ui--)}function si(e,t){ui++,ai[ui]=e.current,e.current=t}var li={},fi={current:li},pi={current:!1},di=li;function hi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ci(pi),ci(fi)}function bi(e,t,n){if(fi.current!==li)throw Error(a(168));si(fi,t),si(pi,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,\"function\"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ye(t)||\"Unknown\",o));return i({},n,{},r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=fi.current,si(fi,e),si(pi,pi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ci(pi),ci(fi),si(fi,e)):ci(pi),si(pi,n)}var Oi=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,_i=o.unstable_requestPaint,xi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Si=o.unstable_ImmediatePriority,ji=o.unstable_UserBlockingPriority,Ci=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Pi={},Ii=o.unstable_shouldYield,Ri=void 0!==_i?_i:function(){},Fi=null,Ai=null,Mi=!1,Li=xi(),Vi=1e4>Li?xi:function(){return xi()-Li};function qi(){switch(Ti()){case Si:return 99;case ji:return 98;case Ci:return 97;case Ni:return 96;case Di:return 95;default:throw Error(a(332))}}function Qi(e){switch(e){case 99:return Si;case 98:return ji;case 97:return Ci;case 96:return Ni;case 95:return Di;default:throw Error(a(332))}}function zi(e,t){return e=Qi(e),Oi(e,t)}function Ui(e,t,n){return e=Qi(e),Ei(e,t,n)}function Bi(e){return null===Fi?(Fi=[e],Ai=Ei(Si,Ki)):Fi.push(e),Pi}function Wi(){if(null!==Ai){var e=Ai;Ai=null,ki(e)}Ki()}function Ki(){if(!Mi&&null!==Fi){Mi=!0;var e=0;try{var t=Fi;zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(n){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ei(Si,Wi),n}finally{Mi=!1}}}function Hi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Gi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Yi={current:null},$i=null,Ji=null,Xi=null;function Zi(){Xi=Ji=$i=null}function eo(e){var t=Yi.current;ci(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){$i=e,Xi=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Na=!0),e.firstContext=null)}function ro(e,t){if(Xi!==e&&!1!==t&&0!==t)if(\"number\"===typeof t&&1073741823!==t||(Xi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===$i)throw Error(a(308));Ji=t,$i.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function uo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function so(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function lo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,o.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=u))}if(null!==a){c=a.next;var s=o.baseState,l=0,f=null,p=null,d=null;if(null!==c)for(var h=c;;){if((u=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(p=d=v,f=s):d=d.next=v,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),oc(u,h.suspenseConfig);e:{var y=e,b=h;switch(u=t,v=n,b.tag){case 1:if(\"function\"===typeof(y=b.payload)){s=y.call(v,s,u);break e}s=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(u=\"function\"===typeof(y=b.payload)?y.call(v,s,u):y)||void 0===u)break e;s=i({},s,u);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=o.effects)?o.effects=[h]:u.push(h))}if(null===(h=h.next)||h===c){if(null===(u=o.shared.pending))break;h=a.next=u.next,u.next=c,o.baseQueue=a=u,o.shared.pending=null}}null===d?f=s:d.next=p,o.baseState=f,o.baseQueue=d,ac(l),e.expirationTime=l,e.memoizedState=s}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,\"function\"!==typeof r)throw Error(a(191,r));r.call(i)}}}var po=$.ReactCurrentBatchConfig,ho=(new r.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ku(),i=po.suspense;(i=uo(r=Hu(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),co(e,i),Gu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ku(),i=po.suspense;(i=uo(r=Hu(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),co(e,i),Gu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ku(),r=po.suspense;(r=uo(n=Hu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),co(e,r),Gu(e,n)}};function bo(e,t,n,r,i,o,a){return\"function\"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return\"object\"===typeof o&&null!==o?o=ro(o):(i=vi(t)?di:fi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function go(e,t,n,r){e=t.state,\"function\"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;\"object\"===typeof o&&null!==o?i.context=ro(o):(o=vi(t)?di:fi.current,i.context=hi(e,o)),lo(e,n,i,r),i.state=e.memoizedState,\"function\"===typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),\"function\"===typeof t.getDerivedStateFromProps||\"function\"===typeof i.getSnapshotBeforeUpdate||\"function\"!==typeof i.UNSAFE_componentWillMount&&\"function\"!==typeof i.componentWillMount||(t=i.state,\"function\"===typeof i.componentWillMount&&i.componentWillMount(),\"function\"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),\"function\"===typeof i.componentDidMount&&(e.effectTag|=4)}var Oo=Array.isArray;function Eo(e,t,n){if(null!==(e=n.ref)&&\"function\"!==typeof e&&\"object\"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=\"\"+e;return null!==t&&null!==t.ref&&\"function\"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if(\"string\"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){if(\"textarea\"!==e.type)throw Error(a(31,\"[object Object]\"===Object.prototype.toString.call(t)?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":t,\"\"))}function _o(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Tc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Cc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Eo(e,t,n),r.return=e,r):((r=Sc(n.type,n.key,n.props,null,e.mode,r)).ref=Eo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=jc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if(\"string\"===typeof t||\"number\"===typeof t)return(t=Cc(\"\"+t,e.mode,n)).return=e,t;if(\"object\"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Sc(t.type,t.key,t.props,null,e.mode,n)).ref=Eo(e,null,t),n.return=e,n;case te:return(t=Nc(t,e.mode,n)).return=e,t}if(Oo(t)||ve(t))return(t=jc(t,e.mode,n,null)).return=e,t;ko(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if(\"string\"===typeof n||\"number\"===typeof n)return null!==i?null:c(e,t,\"\"+n,r);if(\"object\"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case te:return n.key===i?l(e,t,n,r):null}if(Oo(n)||ve(n))return null!==i?null:f(e,t,n,r,null);ko(e,n)}return null}function h(e,t,n,r,i){if(\"string\"===typeof r||\"number\"===typeof r)return c(t,e=e.get(n)||null,\"\"+r,i);if(\"object\"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Oo(r)||ve(r))return f(t,e=e.get(n)||null,r,i,null);ko(t,r)}return null}function v(i,a,u,c){for(var s=null,l=null,f=a,v=a=0,y=null;null!==f&&v<u.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var b=d(i,f,u[v],c);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(i,f),a=o(b,a,v),null===l?s=b:l.sibling=b,l=b,f=y}if(v===u.length)return n(i,f),s;if(null===f){for(;v<u.length;v++)null!==(f=p(i,u[v],c))&&(a=o(f,a,v),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(i,f);v<u.length;v++)null!==(y=h(f,i,v,u[v],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=o(y,a,v),null===l?s=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(i,e)})),s}function y(i,u,c,s){var l=ve(c);if(\"function\"!==typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,v=u,y=u=0,b=null,m=c.next();null!==v&&!m.done;y++,m=c.next()){v.index>y?(b=v,v=null):b=v.sibling;var g=d(i,v,m.value,s);if(null===g){null===v&&(v=b);break}e&&v&&null===g.alternate&&t(i,v),u=o(g,u,y),null===f?l=g:f.sibling=g,f=g,v=b}if(m.done)return n(i,v),l;if(null===v){for(;!m.done;y++,m=c.next())null!==(m=p(i,m.value,s))&&(u=o(m,u,y),null===f?l=m:f.sibling=m,f=m);return l}for(v=r(i,v);!m.done;y++,m=c.next())null!==(m=h(v,i,y,m.value,s))&&(e&&null!==m.alternate&&v.delete(null===m.key?y:m.key),u=o(m,u,y),null===f?l=m:f.sibling=m,f=m);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,o,c){var s=\"object\"===typeof o&&null!==o&&o.type===ne&&null===o.key;s&&(o=o.props.children);var l=\"object\"===typeof o&&null!==o;if(l)switch(o.$$typeof){case ee:e:{for(l=o.key,s=r;null!==s;){if(s.key===l){switch(s.tag){case 7:if(o.type===ne){n(e,s.sibling),(r=i(s,o.props.children)).return=e,e=r;break e}break;default:if(s.elementType===o.type){n(e,s.sibling),(r=i(s,o.props)).ref=Eo(e,s,o),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}o.type===ne?((r=jc(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=Sc(o.type,o.key,o.props,null,e.mode,c)).ref=Eo(e,r,o),c.return=e,e=c)}return u(e);case te:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Nc(o,e.mode,c)).return=e,e=r}return u(e)}if(\"string\"===typeof o||\"number\"===typeof o)return o=\"\"+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Cc(o,e.mode,c)).return=e,e=r),u(e);if(Oo(o))return v(e,r,o,c);if(ve(o))return y(e,r,o,c);if(l&&ko(e,o),\"undefined\"===typeof o&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||\"Component\"))}return n(e,r)}}var xo=_o(!0),To=_o(!1),So={},jo={current:So},Co={current:So},No={current:So};function Do(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(si(No,t),si(Co,e),si(jo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,\"\");break;default:t=Me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(jo),si(jo,t)}function Io(){ci(jo),ci(Co),ci(No)}function Ro(e){Do(No.current);var t=Do(jo.current),n=Me(t,e.type);t!==n&&(si(Co,e),si(jo,n))}function Fo(e){Co.current===e&&(ci(jo),ci(Co))}var Ao={current:0};function Mo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Lo(e,t){return{responder:e,props:t}}var Vo=$.ReactCurrentDispatcher,qo=$.ReactCurrentBatchConfig,Qo=0,zo=null,Uo=null,Bo=null,Wo=!1;function Ko(){throw Error(a(321))}function Ho(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function Go(e,t,n,r,i,o){if(Qo=o,zo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vo.current=null===e||null===e.memoizedState?ba:ma,e=n(r,i),t.expirationTime===Qo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Bo=Uo=null,t.updateQueue=null,Vo.current=ga,e=n(r,i)}while(t.expirationTime===Qo)}if(Vo.current=ya,t=null!==Uo&&null!==Uo.next,Qo=0,Bo=Uo=zo=null,Wo=!1,t)throw Error(a(300));return e}function Yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Bo?zo.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function $o(){if(null===Uo){var e=zo.alternate;e=null!==e?e.memoizedState:null}else e=Uo.next;var t=null===Bo?zo.memoizedState:Bo.next;if(null!==t)Bo=t,Uo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Uo=e).memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},null===Bo?zo.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function Jo(e,t){return\"function\"===typeof t?t(e):t}function Xo(e){var t=$o(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Uo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=u=o=null,s=i;do{var l=s.expirationTime;if(l<Qo){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,o=r):c=c.next=f,l>zo.expirationTime&&(zo.expirationTime=l,ac(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),oc(l,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==i);null===c?o=r:c.next=u,Mr(r,t.memoizedState)||(Na=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zo(e){var t=$o(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=e(o,u.action),u=u.next}while(u!==i);Mr(o,t.memoizedState)||(Na=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Yo();return\"function\"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e}).dispatch=va.bind(null,zo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=zo.updateQueue)?(t={lastEffect:null},zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return $o().memoizedState}function ra(e,t,n,r){var i=Yo();zo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=$o();r=void 0===r?null:r;var o=void 0;if(null!==Uo){var a=Uo.memoizedState;if(o=a.destroy,null!==r&&Ho(r,a.deps))return void ta(t,n,o,r)}zo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function ua(e,t){return ia(4,2,e,t)}function ca(e,t){return\"function\"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,ca.bind(null,t,e),n)}function la(){}function fa(e,t){return Yo().memoizedState=[e,void 0===t?null:t],e}function pa(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ho(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=qi();zi(98>r?98:r,(function(){e(!0)})),zi(97<r?97:r,(function(){var r=qo.suspense;qo.suspense=void 0===t?null:t;try{e(!1),n()}finally{qo.suspense=r}}))}function va(e,t,n){var r=Ku(),i=po.suspense;i={expirationTime:r=Hu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===zo||null!==o&&o===zo)Wo=!0,i.expirationTime=Qo,zo.expirationTime=Qo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=o(a,n);if(i.eagerReducer=o,i.eagerState=u,Mr(u,a))return}catch(c){}Gu(e,r)}}var ya={readContext:ro,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yo().memoizedState=e},useState:ea,useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ma={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:sa,useLayoutEffect:ua,useMemo:da,useReducer:Xo,useRef:na,useState:function(){return Xo(Jo)},useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=Xo(Jo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xo(Jo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:sa,useLayoutEffect:ua,useMemo:da,useReducer:Zo,useRef:na,useState:function(){return Zo(Jo)},useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=Zo(Jo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Jo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},wa=null,Oa=null,Ea=!1;function ka(e,t){var n=_c(5,null,null,0);n.elementType=\"DELETED\",n.type=\"DELETED\",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _a(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=\"\"===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function xa(e){if(Ea){var t=Oa;if(t){var n=t;if(!_a(e,t)){if(!(t=On(n.nextSibling))||!_a(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(wa=e);ka(wa,n)}wa=e,Oa=On(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,wa=e}}function Ta(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Sa(e){if(e!==wa)return!1;if(!Ea)return Ta(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||\"head\"!==t&&\"body\"!==t&&!mn(t,e.memoizedProps))for(t=Oa;t;)ka(e,t),t=On(t.nextSibling);if(Ta(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(\"/$\"===n){if(0===t){Oa=On(e.nextSibling);break e}t--}else\"$\"!==n&&\"$!\"!==n&&\"$?\"!==n||t++}e=e.nextSibling}Oa=null}}else Oa=wa?On(e.stateNode.nextSibling):null;return!0}function ja(){Oa=wa=null,Ea=!1}var Ca=$.ReactCurrentOwner,Na=!1;function Da(e,t,n,r){t.child=null===e?To(t,null,n,r):xo(t,e.child,n,r)}function Pa(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Go(e,t,n,r,o,i),null===e||Na?(t.effectTag|=1,Da(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function Ia(e,t,n,r,i,o){if(null===e){var a=n.type;return\"function\"!==typeof a||xc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Sc(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&e.ref===t.ref)?Ga(e,t,o):(t.effectTag|=1,(e=Tc(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,n,r,i,o){return null!==e&&Vr(e.memoizedProps,r)&&e.ref===t.ref&&(Na=!1,i<o)?(t.expirationTime=e.expirationTime,Ga(e,t,o)):Aa(e,t,n,r,o)}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Aa(e,t,n,r,i){var o=vi(n)?di:fi.current;return o=hi(t,o),no(t,i),n=Go(e,t,n,r,o,i),null===e||Na?(t.effectTag|=1,Da(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function Ma(e,t,n,r,i){if(vi(n)){var o=!0;gi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),mo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,s=n.contextType;\"object\"===typeof s&&null!==s?s=ro(s):s=hi(t,s=vi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f=\"function\"===typeof l||\"function\"===typeof a.getSnapshotBeforeUpdate;f||\"function\"!==typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof a.componentWillReceiveProps||(u!==r||c!==s)&&go(t,a,r,s),io=!1;var p=t.memoizedState;a.state=p,lo(t,r,a,i),c=t.memoizedState,u!==r||p!==c||pi.current||io?(\"function\"===typeof l&&(vo(t,n,l,r),c=t.memoizedState),(u=io||bo(t,n,u,r,p,c,s))?(f||\"function\"!==typeof a.UNSAFE_componentWillMount&&\"function\"!==typeof a.componentWillMount||(\"function\"===typeof a.componentWillMount&&a.componentWillMount(),\"function\"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),\"function\"===typeof a.componentDidMount&&(t.effectTag|=4)):(\"function\"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=u):(\"function\"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Gi(t.type,u),c=a.context,\"object\"===typeof(s=n.contextType)&&null!==s?s=ro(s):s=hi(t,s=vi(n)?di:fi.current),(f=\"function\"===typeof(l=n.getDerivedStateFromProps)||\"function\"===typeof a.getSnapshotBeforeUpdate)||\"function\"!==typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof a.componentWillReceiveProps||(u!==r||c!==s)&&go(t,a,r,s),io=!1,c=t.memoizedState,a.state=c,lo(t,r,a,i),p=t.memoizedState,u!==r||c!==p||pi.current||io?(\"function\"===typeof l&&(vo(t,n,l,r),p=t.memoizedState),(l=io||bo(t,n,u,r,c,p,s))?(f||\"function\"!==typeof a.UNSAFE_componentWillUpdate&&\"function\"!==typeof a.componentWillUpdate||(\"function\"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),\"function\"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),\"function\"===typeof a.componentDidUpdate&&(t.effectTag|=4),\"function\"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):(\"function\"!==typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=l):(\"function\"!==typeof a.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return La(e,t,n,r,o,i)}function La(e,t,n,r,i,o){Fa(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),Ga(e,t,o);r=t.stateNode,Ca.current=t;var u=a&&\"function\"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,u,o)):Da(e,t,u,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Po(e,t.containerInfo)}var qa,Qa,za,Ua={dehydrated:null,retryTime:0};function Ba(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Ao.current,u=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),si(Ao,1&a),null===e){if(void 0!==o.fallback&&xa(t),u){if(u=o.fallback,(o=jc(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=jc(u,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ua,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=To(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,u){if(o=o.fallback,(n=Tc(e,e.pendingProps)).return=t,0===(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=Tc(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ua,t.child=n,i}return n=xo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=o.fallback,(o=jc(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=jc(u,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ua,t.child=o,n}return t.memoizedState=null,t.child=xo(t,e,o.children,n)}function Wa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Ka(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ha(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Da(e,t,r.children,n),0!==(2&(r=Ao.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wa(e,n);else if(19===e.tag)Wa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(Ao,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case\"forwards\":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Mo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o,t.lastEffect);break;case\"backwards\":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Mo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o,t.lastEffect);break;case\"together\":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ac(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $a(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&yi(),null;case 3:return Io(),ci(pi),ci(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Sa(t)||(t.effectTag|=4),null;case 5:Fo(t),n=Do(No.current);var o=t.type;if(null!==e&&null!=t.stateNode)Qa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Do(jo.current),Sa(t)){r=t.stateNode,o=t.type;var u=t.memoizedProps;switch(r[_n]=t,r[xn]=u,o){case\"iframe\":case\"object\":case\"embed\":Ht(\"load\",r);break;case\"video\":case\"audio\":for(e=0;e<$e.length;e++)Ht($e[e],r);break;case\"source\":Ht(\"error\",r);break;case\"img\":case\"image\":case\"link\":Ht(\"error\",r),Ht(\"load\",r);break;case\"form\":Ht(\"reset\",r),Ht(\"submit\",r);break;case\"details\":Ht(\"toggle\",r);break;case\"input\":ke(r,u),Ht(\"invalid\",r),cn(n,\"onChange\");break;case\"select\":r._wrapperState={wasMultiple:!!u.multiple},Ht(\"invalid\",r),cn(n,\"onChange\");break;case\"textarea\":De(r,u),Ht(\"invalid\",r),cn(n,\"onChange\")}for(var c in on(o,u),e=null,u)if(u.hasOwnProperty(c)){var s=u[c];\"children\"===c?\"string\"===typeof s?r.textContent!==s&&(e=[\"children\",s]):\"number\"===typeof s&&r.textContent!==\"\"+s&&(e=[\"children\",\"\"+s]):_.hasOwnProperty(c)&&null!=s&&cn(n,c)}switch(o){case\"input\":we(r),Te(r,u,!0);break;case\"textarea\":we(r),Ie(r);break;case\"select\":case\"option\":break;default:\"function\"===typeof u.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Ae(o)),e===un?\"script\"===o?((e=c.createElement(\"div\")).innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):\"string\"===typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),\"select\"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[_n]=t,e[xn]=r,qa(e,t),t.stateNode=e,c=an(o,r),o){case\"iframe\":case\"object\":case\"embed\":Ht(\"load\",e),s=r;break;case\"video\":case\"audio\":for(s=0;s<$e.length;s++)Ht($e[s],e);s=r;break;case\"source\":Ht(\"error\",e),s=r;break;case\"img\":case\"image\":case\"link\":Ht(\"error\",e),Ht(\"load\",e),s=r;break;case\"form\":Ht(\"reset\",e),Ht(\"submit\",e),s=r;break;case\"details\":Ht(\"toggle\",e),s=r;break;case\"input\":ke(e,r),s=Ee(e,r),Ht(\"invalid\",e),cn(n,\"onChange\");break;case\"option\":s=je(e,r);break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},s=i({},r,{value:void 0}),Ht(\"invalid\",e),cn(n,\"onChange\");break;case\"textarea\":De(e,r),s=Ne(e,r),Ht(\"invalid\",e),cn(n,\"onChange\");break;default:s=r}on(o,s);var l=s;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];\"style\"===u?nn(e,f):\"dangerouslySetInnerHTML\"===u?null!=(f=f?f.__html:void 0)&&Ve(e,f):\"children\"===u?\"string\"===typeof f?(\"textarea\"!==o||\"\"!==f)&&qe(e,f):\"number\"===typeof f&&qe(e,\"\"+f):\"suppressContentEditableWarning\"!==u&&\"suppressHydrationWarning\"!==u&&\"autoFocus\"!==u&&(_.hasOwnProperty(u)?null!=f&&cn(n,u):null!=f&&J(e,u,f,c))}switch(o){case\"input\":we(e),Te(e,r,!1);break;case\"textarea\":we(e),Ie(e);break;case\"option\":null!=r.value&&e.setAttribute(\"value\",\"\"+me(r.value));break;case\"select\":e.multiple=!!r.multiple,null!=(n=r.value)?Ce(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ce(e,!!r.multiple,r.defaultValue,!0);break;default:\"function\"===typeof s.onClick&&(e.onclick=sn)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)za(0,t,e.memoizedProps,r);else{if(\"string\"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Do(No.current),Do(jo.current),Sa(t)?(n=t.stateNode,r=t.memoizedProps,n[_n]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[_n]=t,t.stateNode=n)}return null;case 13:return ci(Ao),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Sa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=o,o.nextEffect=u):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ao.current)?Su===wu&&(Su=Ou):(Su!==wu&&Su!==Ou||(Su=Eu),0!==Pu&&null!==_u&&(Ic(_u,Tu),Rc(_u,Pu)))),(n||r)&&(t.effectTag|=4),null);case 4:return Io(),null;case 10:return eo(t),null;case 17:return vi(t.type)&&yi(),null;case 19:if(ci(Ao),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(u=r.rendering)){if(o)Ya(r,!1);else if(Su!==wu||null!==e&&0!==(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Mo(u))){for(t.effectTag|=64,Ya(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=u,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,u=e.dependencies,o.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return si(Ao,1&Ao.current|2),t.child}u=u.sibling}}else{if(!o)if(null!==(e=Mo(u))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&\"hidden\"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,t=Ao.current,si(Ao,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:vi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Io(),ci(pi),ci(fi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Fo(e),null;case 13:return ci(Ao),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ci(Ao),null;case 4:return Io(),null;case 10:return eo(e),null;default:return null}}function Xa(e,t){return{value:e,source:t,stack:be(t)}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var u,c,s=t.stateNode;switch(Do(jo.current),e=null,n){case\"input\":a=Ee(s,a),r=Ee(s,r),e=[];break;case\"option\":a=je(s,a),r=je(s,r),e=[];break;case\"select\":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case\"textarea\":a=Ne(s,a),r=Ne(s,r),e=[];break;default:\"function\"!==typeof a.onClick&&\"function\"===typeof r.onClick&&(s.onclick=sn)}for(u in on(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if(\"style\"===u)for(c in s=a[u])s.hasOwnProperty(c)&&(n||(n={}),n[c]=\"\");else\"dangerouslySetInnerHTML\"!==u&&\"children\"!==u&&\"suppressContentEditableWarning\"!==u&&\"suppressHydrationWarning\"!==u&&\"autoFocus\"!==u&&(_.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if(\"style\"===u)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]=\"\");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(e||(e=[]),e.push(u,n)),n=l;else\"dangerouslySetInnerHTML\"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(u,l)):\"children\"===u?s===l||\"string\"!==typeof l&&\"number\"!==typeof l||(e=e||[]).push(u,\"\"+l):\"suppressContentEditableWarning\"!==u&&\"suppressHydrationWarning\"!==u&&(_.hasOwnProperty(u)?(null!=l&&cn(o,u),e||s===l||(e=[])):(e=e||[]).push(u,l))}n&&(e=e||[]).push(\"style\",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},za=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za=\"function\"===typeof WeakSet?WeakSet:Set;function eu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=be(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function tu(e){var t=e.ref;if(null!==t)if(\"function\"===typeof t)try{t(null)}catch(n){mc(e,n)}else t.current=null}function nu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Gi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void iu(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Gi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&At(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function au(e,t,n){switch(\"function\"===typeof Ec&&Ec(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;zi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){mc(i,o)}}e=e.next}while(e!==r)}))}break;case 1:tu(t),\"function\"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){mc(e,n)}}(t,n);break;case 5:tu(t);break;case 4:lu(e,t,n)}}function uu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&uu(t)}function cu(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:{for(var t=e.return;null!==t;){if(cu(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(qe(t,\"\"),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=sn));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function lu(e,t,n){for(var r,i,o=t,u=!1;;){if(!u){u=o.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}u=u.return}u=!0}if(5===o.tag||6===o.tag){e:for(var c=e,s=o,l=n,f=s;;)if(au(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,s=o.stateNode,8===c.nodeType?c.parentNode.removeChild(s):c.removeChild(s)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(au(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(u=!1)}o.sibling.return=o.return,o=o.sibling}}function fu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ru(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[xn]=r,\"input\"===e&&\"radio\"===r.type&&null!=r.name&&_e(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var u=o[i],c=o[i+1];\"style\"===u?nn(n,c):\"dangerouslySetInnerHTML\"===u?Ve(n,c):\"children\"===u?qe(n,c):J(n,u,c,t)}switch(e){case\"input\":xe(n,r);break;case\"textarea\":Pe(n,r);break;case\"select\":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ce(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ce(n,!!r.multiple,r.defaultValue,!0):Ce(n,!!r.multiple,r.multiple?[]:\"\",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,At(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ru=Vi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?\"function\"===typeof(o=o.style).setProperty?o.setProperty(\"display\",\"none\",\"important\"):o.display=\"none\":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty(\"display\")?i.display:null,o.style.display=tn(\"display\",i));else if(6===e.tag)e.stateNode.nodeValue=r?\"\":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void pu(t);case 19:return void pu(t);case 17:return}throw Error(a(163))}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=wc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var du=\"function\"===typeof WeakMap?WeakMap:Map;function hu(e,t,n){(n=uo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Au||(Au=!0,Mu=r),eu(e,t)},n}function vu(e,t,n){(n=uo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"===typeof r){var i=t.value;n.payload=function(){return eu(e,t),r(i)}}var o=e.stateNode;return null!==o&&\"function\"===typeof o.componentDidCatch&&(n.callback=function(){\"function\"!==typeof r&&(null===Lu?Lu=new Set([this]):Lu.add(this),eu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:\"\"})}),n}var yu,bu=Math.ceil,mu=$.ReactCurrentDispatcher,gu=$.ReactCurrentOwner,wu=0,Ou=3,Eu=4,ku=0,_u=null,xu=null,Tu=0,Su=wu,ju=null,Cu=1073741823,Nu=1073741823,Du=null,Pu=0,Iu=!1,Ru=0,Fu=null,Au=!1,Mu=null,Lu=null,Vu=!1,qu=null,Qu=90,zu=null,Uu=0,Bu=null,Wu=0;function Ku(){return 0!==(48&ku)?1073741821-(Vi()/10|0):0!==Wu?Wu:Wu=1073741821-(Vi()/10|0)}function Hu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=qi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&ku))return Tu;if(null!==n)e=Hi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Hi(e,150,100);break;case 97:case 96:e=Hi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==_u&&e===Tu&&--e,e}function Gu(e,t){if(50<Uu)throw Uu=0,Bu=null,Error(a(185));if(null!==(e=Yu(e,t))){var n=qi();1073741823===t?0!==(8&ku)&&0===(48&ku)?Zu(e):(Ju(e),0===ku&&Wi()):Ju(e),0===(4&ku)||98!==n&&99!==n||(null===zu?zu=new Map([[e,t]]):(void 0===(n=zu.get(e))||n>t)&&zu.set(e,t))}}function Yu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(_u===i&&(ac(t),Su===Eu&&Ic(i,Tu)),Rc(i,t)),i}function $u(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Pc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ju(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Bi(Zu.bind(null,e));else{var t=$u(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ku();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Pi&&ki(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Bi(Zu.bind(null,e)):Ui(r,Xu.bind(null,e),{timeout:10*(1073741821-t)-Vi()}),e.callbackNode=t}}}function Xu(e,t){if(Wu=0,t)return Fc(e,t=Ku()),Ju(e),null;var n=$u(e);if(0!==n){if(t=e.callbackNode,0!==(48&ku))throw Error(a(327));if(vc(),e===_u&&n===Tu||nc(e,n),null!==xu){var r=ku;ku|=16;for(var i=ic();;)try{cc();break}catch(c){rc(e,c)}if(Zi(),ku=r,mu.current=i,1===Su)throw t=ju,nc(e,n),Ic(e,n),Ju(e),t;if(null===xu)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Su,_u=null,r){case wu:case 1:throw Error(a(345));case 2:Fc(e,2<n?2:n);break;case Ou:if(Ic(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),1073741823===Cu&&10<(i=Ru+500-Vi())){if(Iu){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(o=$u(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=gn(pc.bind(null,e),i);break}pc(e);break;case Eu:if(Ic(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),Iu&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(i=$u(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Nu?r=10*(1073741821-Nu)-Vi():1073741823===Cu?r=0:(r=10*(1073741821-Cu)-5e3,0>(r=(i=Vi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bu(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=gn(pc.bind(null,e),r);break}pc(e);break;case 5:if(1073741823!==Cu&&null!==Du){o=Cu;var u=Du;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Vi()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ic(e,n),e.timeoutHandle=gn(pc.bind(null,e),r);break}}pc(e);break;default:throw Error(a(329))}if(Ju(e),e.callbackNode===t)return Xu.bind(null,e)}}return null}function Zu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&ku))throw Error(a(327));if(vc(),e===_u&&t===Tu||nc(e,t),null!==xu){var n=ku;ku|=16;for(var r=ic();;)try{uc();break}catch(i){rc(e,i)}if(Zi(),ku=n,mu.current=r,1===Su)throw n=ju,nc(e,t),Ic(e,t),Ju(e),n;if(null!==xu)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,_u=null,pc(e),Ju(e)}return null}function ec(e,t){var n=ku;ku|=1;try{return e(t)}finally{0===(ku=n)&&Wi()}}function tc(e,t){var n=ku;ku&=-2,ku|=8;try{return e(t)}finally{0===(ku=n)&&Wi()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==xu)for(n=xu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Io(),ci(pi),ci(fi);break;case 5:Fo(r);break;case 4:Io();break;case 13:case 19:ci(Ao);break;case 10:eo(r)}n=n.return}_u=e,xu=Tc(e.current,null),Tu=t,Su=wu,ju=null,Nu=Cu=1073741823,Du=null,Pu=0,Iu=!1}function rc(e,t){for(;;){try{if(Zi(),Vo.current=ya,Wo)for(var n=zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qo=0,Bo=Uo=zo=null,Wo=!1,null===xu||null===xu.return)return Su=1,ju=t,xu=null;e:{var i=e,o=xu.return,a=xu,u=t;if(t=Tu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&\"object\"===typeof u&&\"function\"===typeof u.then){var c=u;if(0===(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!==(1&Ao.current),f=o;do{var p;if(p=13===f.tag){var d=f.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(p){var v=f.updateQueue;if(null===v){var y=new Set;y.add(c),f.updateQueue=y}else v.add(c);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var b=uo(1073741823,null);b.tag=2,co(a,b)}a.expirationTime=1073741823;break e}u=void 0,a=t;var m=i.pingCache;if(null===m?(m=i.pingCache=new du,u=new Set,m.set(c,u)):void 0===(u=m.get(c))&&(u=new Set,m.set(c,u)),!u.has(a)){u.add(a);var g=gc.bind(null,i,c,a);c.then(g,g)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ye(a.type)||\"A React component\")+\" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.\"+be(a))}5!==Su&&(Su=2),u=Xa(u,a),f=o;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=t,so(f,hu(f,c,t));break e;case 1:c=u;var w=f.type,O=f.stateNode;if(0===(64&f.effectTag)&&(\"function\"===typeof w.getDerivedStateFromError||null!==O&&\"function\"===typeof O.componentDidCatch&&(null===Lu||!Lu.has(O)))){f.effectTag|=4096,f.expirationTime=t,so(f,vu(f,c,t));break e}}f=f.return}while(null!==f)}xu=lc(xu)}catch(E){t=E;continue}break}}function ic(){var e=mu.current;return mu.current=ya,null===e?ya:e}function oc(e,t){e<Cu&&2<e&&(Cu=e),null!==t&&e<Nu&&2<e&&(Nu=e,Du=t)}function ac(e){e>Pu&&(Pu=e)}function uc(){for(;null!==xu;)xu=sc(xu)}function cc(){for(;null!==xu&&!Ii();)xu=sc(xu)}function sc(e){var t=yu(e.alternate,e,Tu);return e.memoizedProps=e.pendingProps,null===t&&(t=lc(e)),gu.current=null,t}function lc(e){xu=e;do{var t=xu.alternate;if(e=xu.return,0===(2048&xu.effectTag)){if(t=$a(t,xu,Tu),1===Tu||1!==xu.childExpirationTime){for(var n=0,r=xu.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}xu.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=xu.firstEffect),null!==xu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=xu.firstEffect),e.lastEffect=xu.lastEffect),1<xu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=xu:e.firstEffect=xu,e.lastEffect=xu))}else{if(null!==(t=Ja(xu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=xu.sibling))return t;xu=e}while(null!==xu);return Su===wu&&(Su=5),null}function fc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function pc(e){var t=qi();return zi(99,dc.bind(null,e,t)),null}function dc(e,t){do{vc()}while(null!==qu);if(0!==(48&ku))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===_u&&(xu=_u=null,Tu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=ku;ku|=32,gu.current=null,vn=Kt;var u=dn();if(hn(u)){if(\"selectionStart\"in u)var c={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(c=(c=u.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(s&&0!==s.rangeCount){c=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{c.nodeType,f.nodeType}catch(T){c=null;break e}var p=0,d=-1,h=-1,v=0,y=0,b=u,m=null;t:for(;;){for(var g;b!==c||0!==l&&3!==b.nodeType||(d=p+l),b!==f||0!==s&&3!==b.nodeType||(h=p+s),3===b.nodeType&&(p+=b.nodeValue.length),null!==(g=b.firstChild);)m=b,b=g;for(;;){if(b===u)break t;if(m===c&&++v===l&&(d=p),m===f&&++y===s&&(h=p),null!==(g=b.nextSibling))break;m=(b=m).parentNode}b=g}c=-1===d||-1===h?null:{start:d,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;yn={activeElementDetached:null,focusedElem:u,selectionRange:c},Kt=!1,Fu=i;do{try{hc()}catch(T){if(null===Fu)throw Error(a(330));mc(Fu,T),Fu=Fu.nextEffect}}while(null!==Fu);Fu=i;do{try{for(u=e,c=t;null!==Fu;){var w=Fu.effectTag;if(16&w&&qe(Fu.stateNode,\"\"),128&w){var O=Fu.alternate;if(null!==O){var E=O.ref;null!==E&&(\"function\"===typeof E?E(null):E.current=null)}}switch(1038&w){case 2:su(Fu),Fu.effectTag&=-3;break;case 6:su(Fu),Fu.effectTag&=-3,fu(Fu.alternate,Fu);break;case 1024:Fu.effectTag&=-1025;break;case 1028:Fu.effectTag&=-1025,fu(Fu.alternate,Fu);break;case 4:fu(Fu.alternate,Fu);break;case 8:lu(u,l=Fu,c),uu(l)}Fu=Fu.nextEffect}}catch(T){if(null===Fu)throw Error(a(330));mc(Fu,T),Fu=Fu.nextEffect}}while(null!==Fu);if(E=yn,O=dn(),w=E.focusedElem,c=E.selectionRange,O!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):\"contains\"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==c&&hn(w)&&(O=c.start,void 0===(E=c.end)&&(E=O),\"selectionStart\"in w?(w.selectionStart=O,w.selectionEnd=Math.min(E,w.value.length)):(E=(O=w.ownerDocument||document)&&O.defaultView||window).getSelection&&(E=E.getSelection(),l=w.textContent.length,u=Math.min(c.start,l),c=void 0===c.end?u:Math.min(c.end,l),!E.extend&&u>c&&(l=c,c=u,u=l),l=pn(w,u),f=pn(w,c),l&&f&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==f.node||E.focusOffset!==f.offset)&&((O=O.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),u>c?(E.addRange(O),E.extend(f.node,f.offset)):(O.setEnd(f.node,f.offset),E.addRange(O))))),O=[];for(E=w;E=E.parentNode;)1===E.nodeType&&O.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(\"function\"===typeof w.focus&&w.focus(),w=0;w<O.length;w++)(E=O[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kt=!!vn,yn=vn=null,e.current=n,Fu=i;do{try{for(w=e;null!==Fu;){var k=Fu.effectTag;if(36&k&&ou(w,Fu.alternate,Fu),128&k){O=void 0;var _=Fu.ref;if(null!==_){var x=Fu.stateNode;switch(Fu.tag){case 5:O=x;break;default:O=x}\"function\"===typeof _?_(O):_.current=O}}Fu=Fu.nextEffect}}catch(T){if(null===Fu)throw Error(a(330));mc(Fu,T),Fu=Fu.nextEffect}}while(null!==Fu);Fu=null,Ri(),ku=o}else e.current=n;if(Vu)Vu=!1,qu=e,Qu=t;else for(Fu=i;null!==Fu;)t=Fu.nextEffect,Fu.nextEffect=null,Fu=t;if(0===(t=e.firstPendingTime)&&(Lu=null),1073741823===t?e===Bu?Uu++:(Uu=0,Bu=e):Uu=0,\"function\"===typeof Oc&&Oc(n.stateNode,r),Ju(e),Au)throw Au=!1,e=Mu,Mu=null,e;return 0!==(8&ku)||Wi(),null}function hc(){for(;null!==Fu;){var e=Fu.effectTag;0!==(256&e)&&nu(Fu.alternate,Fu),0===(512&e)||Vu||(Vu=!0,Ui(97,(function(){return vc(),null}))),Fu=Fu.nextEffect}}function vc(){if(90!==Qu){var e=97<Qu?97:Qu;return Qu=90,zi(e,yc)}}function yc(){if(null===qu)return!1;var e=qu;if(qu=null,0!==(48&ku))throw Error(a(331));var t=ku;for(ku|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ru(5,n),iu(5,n)}}catch(r){if(null===e)throw Error(a(330));mc(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return ku=t,Wi(),!0}function bc(e,t,n){co(e,t=hu(e,t=Xa(n,t),1073741823)),null!==(e=Yu(e,1073741823))&&Ju(e)}function mc(e,t){if(3===e.tag)bc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){bc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if(\"function\"===typeof n.type.getDerivedStateFromError||\"function\"===typeof r.componentDidCatch&&(null===Lu||!Lu.has(r))){co(n,e=vu(n,e=Xa(t,e),1073741823)),null!==(n=Yu(n,1073741823))&&Ju(n);break}}n=n.return}}function gc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),_u===e&&Tu===n?Su===Eu||Su===Ou&&1073741823===Cu&&Vi()-Ru<500?nc(e,Tu):Iu=!0:Pc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ju(e)))}function wc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Hu(t=Ku(),e,null)),null!==(e=Yu(e,t))&&Ju(e)}yu=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)Na=!0;else{if(r<n){switch(Na=!1,t.tag){case 3:Va(t),ja();break;case 5:if(Ro(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&gi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,si(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ba(e,t,n):(si(Ao,1&Ao.current),null!==(t=Ga(e,t,n))?t.sibling:null);si(Ao,1&Ao.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Ha(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),si(Ao,Ao.current),!r)return null}return Ga(e,t,n)}Na=!1}}else Na=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,fi.current),no(t,n),i=Go(null,t,r,e,i,n),t.effectTag|=1,\"object\"===typeof i&&null!==i&&\"function\"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;gi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var u=r.getDerivedStateFromProps;\"function\"===typeof u&&vo(t,r,u,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=La(null,t,r,!0,o,n)}else t.tag=0,Da(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if(\"function\"===typeof e)return xc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(i),e=Gi(i,e),o){case 0:t=Aa(null,t,i,e,n);break e;case 1:t=Ma(null,t,i,e,n);break e;case 11:t=Pa(null,t,i,e,n);break e;case 14:t=Ia(null,t,i,Gi(i.type,e),r,n);break e}throw Error(a(306,i,\"\"))}return t;case 0:return r=t.type,i=t.pendingProps,Aa(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ma(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),lo(t,r,null,n),(r=t.memoizedState.element)===i)ja(),t=Ga(e,t,n);else{if((i=t.stateNode.hydrate)&&(Oa=On(t.stateNode.containerInfo.firstChild),wa=t,i=Ea=!0),i)for(n=To(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Da(e,t,r,n),ja();t=t.child}return t;case 5:return Ro(t),null===e&&xa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,u=i.children,mn(r,i)?u=null:null!==o&&mn(r,o)&&(t.effectTag|=16),Fa(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Da(e,t,u,n),t=t.child),t;case 6:return null===e&&xa(t),null;case 13:return Ba(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xo(t,null,r,n):Da(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pa(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,o=i.value;var c=t.type._context;if(si(Yi,c._currentValue),c._currentValue=o,null!==u)if(c=u.value,0===(o=Mr(c,o)?0:0|(\"function\"===typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(u.children===i.children&&!pi.current){t=Ga(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===c.tag&&((l=uo(n,null)).tag=2,co(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),to(c.return,n),s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}Da(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Da(e,t,r,n),t.child;case 14:return o=Gi(i=t.type,t.pendingProps),Ia(e,t,i,o=Gi(i.type,o),r,n);case 15:return Ra(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(r)?(e=!0,gi(t)):e=!1,no(t,n),mo(t,r,i),wo(t,r,i,n),La(null,t,r,!0,e,n);case 19:return Ha(e,t,n)}throw Error(a(156,t.tag))};var Oc=null,Ec=null;function kc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function _c(e,t,n,r){return new kc(e,t,n,r)}function xc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tc(e,t){var n=e.alternate;return null===n?((n=_c(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sc(e,t,n,r,i,o){var u=2;if(r=e,\"function\"===typeof e)xc(e)&&(u=1);else if(\"string\"===typeof e)u=5;else e:switch(e){case ne:return jc(n.children,i,o,t);case ue:u=8,i|=7;break;case re:u=8,i|=1;break;case ie:return(e=_c(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case se:return(e=_c(13,n,t,i)).type=se,e.elementType=se,e.expirationTime=o,e;case le:return(e=_c(19,n,t,i)).elementType=le,e.expirationTime=o,e;default:if(\"object\"===typeof e&&null!==e)switch(e.$$typeof){case oe:u=10;break e;case ae:u=9;break e;case ce:u=11;break e;case fe:u=14;break e;case pe:u=16,r=null;break e;case de:u=22;break e}throw Error(a(130,null==e?e:typeof e,\"\"))}return(t=_c(u,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function jc(e,t,n,r){return(e=_c(7,e,r,t)).expirationTime=n,e}function Cc(e,t,n){return(e=_c(6,e,null,t)).expirationTime=n,e}function Nc(e,t,n){return(t=_c(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Pc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ic(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Rc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Fc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ac(e,t,n,r){var i=t.current,o=Ku(),u=po.suspense;o=Hu(o,i,u);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(vi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var s=n.type;if(vi(s)){n=mi(n,s,c);break e}}n=c}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),Gu(i,o),o}function Mc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Lc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vc(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function qc(e,t,n){var r=new Dc(e,t,n=null!=n&&!0===n.hydrate),i=_c(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[Tn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);Tt.forEach((function(e){ht(e,t,n)})),St.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function zc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if(\"function\"===typeof i){var u=i;i=function(){var e=Mc(a);u.call(e)}}Ac(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute(\"data-reactroot\"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,\"function\"===typeof i){var c=i;i=function(){var e=Mc(a);c.call(e)}}tc((function(){Ac(t,a,e,i)}))}return Mc(a)}function Uc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:\"\"+r,children:e,containerInfo:t,implementation:n}}function Bc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(a(200));return Uc(e,t,null,n)}qc.prototype.render=function(e){Ac(e,this._internalRoot,null,null)},qc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ac(null,e,null,(function(){t[Tn]=null}))},vt=function(e){if(13===e.tag){var t=Hi(Ku(),150,100);Gu(e,t),Vc(e,t)}},yt=function(e){13===e.tag&&(Gu(e,3),Vc(e,3))},bt=function(e){if(13===e.tag){var t=Ku();Gu(e,t=Hu(t,e,null)),Vc(e,t)}},j=function(e,t,n){switch(t){case\"input\":if(xe(e,n),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Nn(r);if(!i)throw Error(a(90));Oe(r),xe(r,i)}}}break;case\"textarea\":Pe(e,n);break;case\"select\":null!=(t=n.value)&&Ce(e,!!n.multiple,t,!1)}},R=ec,F=function(e,t,n,r,i){var o=ku;ku|=4;try{return zi(98,e.bind(null,t,n,r,i))}finally{0===(ku=o)&&Wi()}},A=function(){0===(49&ku)&&(function(){if(null!==zu){var e=zu;zu=null,e.forEach((function(e,t){Fc(t,e),Ju(t)})),Wi()}}(),vc())},M=function(e,t){var n=ku;ku|=2;try{return e(t)}finally{0===(ku=n)&&Wi()}};var Wc={Events:[jn,Cn,Nn,T,k,Mn,function(e){it(e,An)},P,I,Jt,ut,vc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if(\"undefined\"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Oc=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Ec=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Sn,bundleType:0,version:\"16.14.0\",rendererPackageName:\"react-dom\"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,t.createPortal=Bc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if(\"function\"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&ku))throw Error(a(187));var n=ku;ku|=1;try{return zi(99,e.bind(null,t))}finally{ku=n,Wi()}},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return zc(null,e,t,!0,n)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(tc((function(){zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Bc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return zc(e,t,n,!1,r)},t.version=\"16.14.0\"},function(e,t,n){\"use strict\";e.exports=n(56)},function(e,t,n){\"use strict\";var r,i,o,a,u;if(\"undefined\"===typeof window||\"function\"!==typeof MessageChannel){var c=null,s=null,l=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(l,0))},i=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},a=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,v=window.clearTimeout;if(\"undefined\"!==typeof console){var y=window.cancelAnimationFrame;\"function\"!==typeof window.requestAnimationFrame&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"),\"function\"!==typeof y&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\")}if(\"object\"===typeof p&&\"function\"===typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var m=!1,g=null,w=-1,O=5,E=0;a=function(){return t.unstable_now()>=E},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported\"):O=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,_=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();E=e+O;try{g(!0,e)?_.postMessage(null):(m=!1,g=null)}catch(n){throw _.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,_.postMessage(null))},i=function(e,n){w=h((function(){e(t.unstable_now())}),n)},o=function(){v(w),w=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<j(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],u=o+1,c=e[u];if(void 0!==a&&0>j(a,n))void 0!==c&&0>j(c,a)?(e[r]=c,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>j(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],N=[],D=1,P=null,I=3,R=!1,F=!1,A=!1;function M(e){for(var t=T(N);null!==t;){if(null===t.callback)S(N);else{if(!(t.startTime<=e))break;S(N),t.sortIndex=t.expirationTime,x(C,t)}t=T(N)}}function L(e){if(A=!1,M(e),!F)if(null!==T(C))F=!0,r(V);else{var t=T(N);null!==t&&i(L,t.startTime-e)}}function V(e,n){F=!1,A&&(A=!1,o()),R=!0;var r=I;try{for(M(n),P=T(C);null!==P&&(!(P.expirationTime>n)||e&&!a());){var u=P.callback;if(null!==u){P.callback=null,I=P.priorityLevel;var c=u(P.expirationTime<=n);n=t.unstable_now(),\"function\"===typeof c?P.callback=c:P===T(C)&&S(C),M(n)}else S(C);P=T(C)}if(null!==P)var s=!0;else{var l=T(N);null!==l&&i(L,l.startTime-n),s=!1}return s}finally{P=null,I=r,R=!1}}function q(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Q=u;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_continueExecution=function(){F||R||(F=!0,r(V))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return T(C)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=Q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var u=t.unstable_now();if(\"object\"===typeof a&&null!==a){var c=a.delay;c=\"number\"===typeof c&&0<c?u+c:u,a=\"number\"===typeof a.timeout?a.timeout:q(e)}else a=q(e),c=u;return e={id:D++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>u?(e.sortIndex=c,x(N,e),null===T(C)&&e===T(N)&&(A?o():A=!0,i(L,c-u))):(e.sortIndex=a,x(C,e),F||R||(F=!0,r(V))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=T(C);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){var r=n(58),i=n(59),o=n(40),a=n(60);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(\"undefined\"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}},function(e,t,n){var r=n(62),i=n(63),o=n(40),a=n(64);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(41);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if(\"undefined\"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}},function(e,t,n){e.exports=n(66)},function(e,t,n){var r=function(e){\"use strict\";var t=Object.prototype,n=t.hasOwnProperty,r=\"function\"===typeof Symbol?Symbol:{},i=r.iterator||\"@@iterator\",o=r.asyncIterator||\"@@asyncIterator\",a=r.toStringTag||\"@@toStringTag\";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},\"\")}catch(T){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r=\"suspendedStart\";return function(i,o){if(\"executing\"===r)throw new Error(\"Generator is already running\");if(\"completed\"===r){if(\"throw\"===i)throw o;return x()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(\"suspendedStart\"===r)throw r=\"completed\",n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=\"executing\";var c=s(e,t,n);if(\"normal\"===c.type){if(r=n.done?\"completed\":\"suspendedYield\",c.arg===l)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(r=\"completed\",n.method=\"throw\",n.arg=c.arg)}}}(e,n,a),o}function s(e,t,n){try{return{type:\"normal\",arg:e.call(t,n)}}catch(T){return{type:\"throw\",arg:T}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};h[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==t&&n.call(y,i)&&(h=y);var b=d.prototype=f.prototype=Object.create(h);function m(e){[\"next\",\"throw\",\"return\"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,u){var c=s(e[i],e,o);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"===typeof f&&n.call(f,\"__await\")?t.resolve(f.__await).then((function(e){r(\"next\",e,a,u)}),(function(e){r(\"throw\",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r(\"throw\",e,a,u)}))}u(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,w(e,t),\"throw\"===t.method))return l;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return l}var r=s(n,e.iterator,t.arg);if(\"throw\"===r.type)return t.method=\"throw\",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,l):i:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if(\"function\"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return p.prototype=b.constructor=d,d.constructor=p,p.displayName=u(d,a,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"===typeof e&&e.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,\"GeneratorFunction\")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},m(g.prototype),g.prototype[o]=function(){return this},e.AsyncIterator=g,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new g(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(b),u(b,a,\"Generator\"),b[i]=function(){return this},b.toString=function(){return\"[object Generator]\"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)\"t\"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type=\"throw\",a.arg=e,t.next=n,r&&(t.method=\"next\",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var u=n.call(o,\"catchLoc\"),c=n.call(o,\"finallyLoc\");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(\"throw\"===r.type){var i=r.arg;E(n)}return i}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function(\"r\",\"regeneratorRuntime = r\")(r)}},function(e,t){function n(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function u(e){n(a,i,o,u,c,\"next\",e)}function c(e){n(a,i,o,u,c,\"throw\",e)}u(void 0)}))}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r=\"function\"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=u(p);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f<t;)c&&c[f].run();f=-1,t=s.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title=\"browser\",i.browser=!0,i.env={},i.argv=[],i.version=\"\",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error(\"process.binding is not supported\")},i.cwd=function(){return\"/\"},i.chdir=function(e){throw new Error(\"process.chdir is not supported\")},i.umask=function(){return 0}},function(e,t,n){\"use strict\";function r(e,t){var n=\"undefined\"!==typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&\"number\"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}n.d(t,\"a\",(function(){return _}));var u=function(){return\"function\"===typeof Symbol},c=function(e){return u()&&Boolean(Symbol[e])},s=function(e){return c(e)?Symbol[e]:\"@@\"+e};u()&&!c(\"observable\")&&(Symbol.observable=Symbol(\"observable\"));var l=s(\"iterator\"),f=s(\"observable\"),p=s(\"species\");function d(e,t){var n=e[t];if(null!=n){if(\"function\"!==typeof n)throw new TypeError(n+\" is not a function\");return n}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:_}function v(e){return e instanceof _}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function b(e){Promise.resolve().then((function(){try{e()}catch(t){y(t)}}))}function m(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if(\"function\"===typeof t)t();else{var n=d(t,\"unsubscribe\");n&&n.call(t)}}catch(r){y(r)}}function g(e){e._observer=void 0,e._queue=void 0,e._state=\"closed\"}function w(e,t,n){e._state=\"running\";var r=e._observer;try{var i=d(r,t);switch(t){case\"next\":i&&i.call(r,n);break;case\"error\":if(g(e),!i)throw n;i.call(r,n);break;case\"complete\":g(e),i&&i.call(r)}}catch(o){y(o)}\"closed\"===e._state?m(e):\"running\"===e._state&&(e._state=\"ready\")}function O(e,t,n){if(\"closed\"!==e._state){if(\"buffering\"!==e._state)return\"ready\"!==e._state?(e._state=\"buffering\",e._queue=[{type:t,value:n}],void b((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state=\"ready\";for(var n=0;n<t.length&&(w(e,t[n].type,t[n].value),\"closed\"!==e._state);++n);}}(e)}))):void w(e,t,n);e._queue.push({type:t,value:n})}}var E=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state=\"initializing\";var n=new k(this);try{this._cleanup=t.call(void 0,n)}catch(r){n.error(r)}\"initializing\"===this._state&&(this._state=\"ready\")}return e.prototype.unsubscribe=function(){\"closed\"!==this._state&&(g(this),m(this))},a(e,[{key:\"closed\",get:function(){return\"closed\"===this._state}}]),e}(),k=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){O(this._subscription,\"next\",e)},t.error=function(e){O(this._subscription,\"error\",e)},t.complete=function(){O(this._subscription,\"complete\")},a(e,[{key:\"closed\",get:function(){return\"closed\"===this._subscription._state}}]),e}(),_=function(){function e(t){if(!(this instanceof e))throw new TypeError(\"Observable cannot be called as a function\");if(\"function\"!==typeof t)throw new TypeError(\"Observable initializer must be a function\");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return\"object\"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if(\"function\"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+\" is not a function\"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if(\"function\"!==typeof e)throw new TypeError(e+\" is not a function\");return new(h(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if(\"function\"!==typeof e)throw new TypeError(e+\" is not a function\");return new(h(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if(\"function\"!==typeof e)throw new TypeError(e+\" is not a function\");var n=h(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(u){return n.error(u)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError(\"Cannot reduce an empty sequence\"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=h(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if(\"function\"!==typeof e)throw new TypeError(e+\" is not a function\");var n=h(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(u){return r.error(u)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[f]=function(){return this},e.from=function(t){var n=\"function\"===typeof this?this:e;if(null==t)throw new TypeError(t+\" is not an object\");var i=d(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+\" is not an object\");return v(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(c(\"iterator\")&&(i=d(t,l)))return new n((function(e){b((function(){if(!e.closed){for(var n,o=r(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){b((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+\" is not observable\")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=\"function\"===typeof this?this:e;return new i((function(e){b((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},a(e,null,[{key:p,get:function(){return this}}]),e}();u()&&Object.defineProperty(_,Symbol(\"extensions\"),{value:{symbol:f,hostReportError:y},configurable:!0})},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(31),i=n(26);function o(e){return Object(r.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return\"$\"+e.name},Document:function(e){return c(e.definitions,\"\\n\\n\")+\"\\n\"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l(\"(\",c(e.variableDefinitions,\", \"),\")\"),i=c(e.directives,\" \"),o=e.selectionSet;return n||i||r||\"query\"!==t?c([t,c([n,r]),i,o],\" \"):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+\": \"+n+l(\" = \",r)+l(\" \",c(i,\" \"))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return c([l(\"\",t,\": \")+n+l(\"(\",c(r,\", \"),\")\"),c(i,\" \"),o],\" \")},Argument:function(e){return e.name+\": \"+e.value},FragmentSpread:function(e){return\"...\"+e.name+l(\" \",c(e.directives,\" \"))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return c([\"...\",l(\"on \",t),c(n,\" \"),r],\" \")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return\"fragment \".concat(t).concat(l(\"(\",c(r,\", \"),\")\"),\" \")+\"on \".concat(n,\" \").concat(l(\"\",c(i,\" \"),\" \"))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.b)(n,\"description\"===t?\"\":\"  \"):JSON.stringify(n)},BooleanValue:function(e){return e.value?\"true\":\"false\"},NullValue:function(){return\"null\"},EnumValue:function(e){return e.value},ListValue:function(e){return\"[\"+c(e.values,\", \")+\"]\"},ObjectValue:function(e){return\"{\"+c(e.fields,\", \")+\"}\"},ObjectField:function(e){return e.name+\": \"+e.value},Directive:function(e){return\"@\"+e.name+l(\"(\",c(e.arguments,\", \"),\")\")},NamedType:function(e){return e.name},ListType:function(e){return\"[\"+e.type+\"]\"},NonNullType:function(e){return e.type+\"!\"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return c([\"schema\",c(t,\" \"),s(n)],\" \")},OperationTypeDefinition:function(e){return e.operation+\": \"+e.type},ScalarTypeDefinition:u((function(e){return c([\"scalar\",e.name,c(e.directives,\" \")],\" \")})),ObjectTypeDefinition:u((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c([\"type\",t,l(\"implements \",c(n,\" & \")),c(r,\" \"),s(i)],\" \")})),FieldDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l(\"(\\n\",f(c(n,\"\\n\")),\"\\n)\"):l(\"(\",c(n,\", \"),\")\"))+\": \"+r+l(\" \",c(i,\" \"))})),InputValueDefinition:u((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return c([t+\": \"+n,l(\"= \",r),c(i,\" \")],\" \")})),InterfaceTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.fields;return c([\"interface\",t,c(n,\" \"),s(r)],\" \")})),UnionTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.types;return c([\"union\",t,c(n,\" \"),r&&0!==r.length?\"= \"+c(r,\" | \"):\"\"],\" \")})),EnumTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.values;return c([\"enum\",t,c(n,\" \"),s(r)],\" \")})),EnumValueDefinition:u((function(e){return c([e.name,c(e.directives,\" \")],\" \")})),InputObjectTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.fields;return c([\"input\",t,c(n,\" \"),s(r)],\" \")})),DirectiveDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return\"directive @\"+t+(d(n)?l(\"(\\n\",f(c(n,\"\\n\")),\"\\n)\"):l(\"(\",c(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+c(i,\" | \")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return c([\"extend schema\",c(t,\" \"),s(n)],\" \")},ScalarTypeExtension:function(e){return c([\"extend scalar\",e.name,c(e.directives,\" \")],\" \")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return c([\"extend type\",t,l(\"implements \",c(n,\" & \")),c(r,\" \"),s(i)],\" \")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return c([\"extend interface\",t,c(n,\" \"),s(r)],\" \")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return c([\"extend union\",t,c(n,\" \"),r&&0!==r.length?\"= \"+c(r,\" | \"):\"\"],\" \")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return c([\"extend enum\",t,c(n,\" \"),s(r)],\" \")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return c([\"extend input\",t,c(n,\" \"),s(r)],\" \")}};function u(e){return function(t){return c([t.description,e(t)],\"\\n\")}}function c(e,t){return e?e.filter((function(e){return e})).join(t||\"\"):\"\"}function s(e){return e&&0!==e.length?\"{\\n\"+f(c(e,\"\\n\"))+\"\\n}\":\"\"}function l(e,t,n){return t?e+t+(n||\"\"):\"\"}function f(e){return e&&\"  \"+e.replace(/\\n/g,\"\\n  \")}function p(e){return-1!==e.indexOf(\"\\n\")}function d(e){return e&&e.some(p)}},function(e,t,n){\"use strict\";n.d(t,\"b\",(function(){return a})),n.d(t,\"c\",(function(){return u})),n.d(t,\"a\",(function(){return s}));var r=n(0),i=n(7),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(e)}function u(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new s,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var c=function(e,t,n){return this.merge(e[n],t[n])},s=function(){function e(e){void 0===e&&(e=c),this.reconciler=e,this.isObject=i.a,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];return Object(i.a)(t)&&Object(i.a)(e)?(Object.keys(t).forEach((function(i){if(o.call(e,i)){var u=e[i];if(t[i]!==u){var c=n.reconciler.apply(n,Object(r.f)([e,t,i],a,!1));c!==u&&((e=n.shallowCopyForMerge(e))[i]=c)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Object(i.a)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):Object(r.a)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},function(e,t,n){\"use strict\";n.d(t,\"c\",(function(){return o})),n.d(t,\"b\",(function(){return a})),n.d(t,\"a\",(function(){return u}));var r=n(1),i=n(31);function o(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return\"skip\"===t||\"include\"===t}(e)){var n=e.arguments,i=e.name.value;__DEV__?Object(r.b)(n&&1===n.length,\"Incorrect number of arguments for the @\".concat(i,\" directive.\")):Object(r.b)(n&&1===n.length,38);var o=n[0];__DEV__?Object(r.b)(o.name&&\"if\"===o.name.value,\"Invalid argument for the @\".concat(i,\" directive.\")):Object(r.b)(o.name&&\"if\"===o.name.value,39);var a=o.value;__DEV__?Object(r.b)(a&&(\"Variable\"===a.kind||\"BooleanValue\"===a.kind),\"Argument for the @\".concat(i,\" directive must be a variable or a boolean value.\")):Object(r.b)(a&&(\"Variable\"===a.kind||\"BooleanValue\"===a.kind),40),t.push({directive:e,ifArgument:o})}}));return t}(n).every((function(e){var n=e.directive,i=e.ifArgument,o=!1;return\"Variable\"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?Object(r.b)(void 0!==o,\"Invalid variable referenced in @\".concat(n.name.value,\" directive.\")):Object(r.b)(void 0!==o,37)):o=i.value.value,\"skip\"===n.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return Object(i.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function u(e){return e&&a([\"client\"],e)&&a([\"export\"],e)}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return r}));var r=n(23).a.split},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return u}));n(1);var r=n(3),i=n(5),o=n(18),a=n(28);function u(e,t){var n=Object(a.a)(null===t||void 0===t?void 0:t.client);Object(o.b)(e,o.a.Subscription);var u=Object(r.useState)({loading:!(null===t||void 0===t?void 0:t.skip),error:void 0,data:void 0,variables:null===t||void 0===t?void 0:t.variables}),c=u[0],s=u[1],l=Object(r.useState)((function(){return(null===t||void 0===t?void 0:t.skip)?null:n.subscribe({query:e,variables:null===t||void 0===t?void 0:t.variables,fetchPolicy:null===t||void 0===t?void 0:t.fetchPolicy,context:null===t||void 0===t?void 0:t.context})})),f=l[0],p=l[1],d=Object(r.useRef)(!1);Object(r.useEffect)((function(){return function(){d.current=!0}}),[]);var h=Object(r.useRef)({client:n,subscription:e,options:t});return Object(r.useEffect)((function(){var r,o,a,u,c=null===t||void 0===t?void 0:t.shouldResubscribe;\"function\"===typeof c&&(c=!!c(t)),(null===t||void 0===t?void 0:t.skip)?(!(null===t||void 0===t?void 0:t.skip)!==!(null===(r=h.current.options)||void 0===r?void 0:r.skip)||d.current)&&(s({loading:!1,data:void 0,error:void 0,variables:null===t||void 0===t?void 0:t.variables}),p(null),d.current=!1):(!1===c||n===h.current.client&&e===h.current.subscription&&(null===t||void 0===t?void 0:t.fetchPolicy)===(null===(o=h.current.options)||void 0===o?void 0:o.fetchPolicy)&&!(null===t||void 0===t?void 0:t.skip)===!(null===(a=h.current.options)||void 0===a?void 0:a.skip)&&Object(i.a)(null===t||void 0===t?void 0:t.variables,null===(u=h.current.options)||void 0===u?void 0:u.variables))&&!d.current||(s({loading:!0,data:void 0,error:void 0,variables:null===t||void 0===t?void 0:t.variables}),p(n.subscribe({query:e,variables:null===t||void 0===t?void 0:t.variables,fetchPolicy:null===t||void 0===t?void 0:t.fetchPolicy,context:null===t||void 0===t?void 0:t.context})),d.current=!1),Object.assign(h.current,{client:n,subscription:e,options:t})}),[n,e,t,d.current]),Object(r.useEffect)((function(){if(f){var e=f.subscribe({next:function(e){var r,i,o={loading:!1,data:e.data,error:void 0,variables:null===t||void 0===t?void 0:t.variables};s(o),null===(i=null===(r=h.current.options)||void 0===r?void 0:r.onSubscriptionData)||void 0===i||i.call(r,{client:n,subscriptionData:o})},error:function(e){s({loading:!1,data:void 0,error:e,variables:null===t||void 0===t?void 0:t.variables})},complete:function(){var e,t;null===(t=null===(e=h.current.options)||void 0===e?void 0:e.onSubscriptionComplete)||void 0===t||t.call(e)}});return function(){e.unsubscribe()}}}),[f]),c}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return a}));var r=n(1),i=n(3),o=n(34),a=function(e){var t=e.client,n=e.children,a=Object(o.a)();return i.createElement(a.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?Object(r.b)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the \"client\" prop.'):Object(r.b)(e.client,26),i.createElement(a.Provider,{value:e},n)}))}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return $}));var r=n(0),i=n(1),o=n(23),a=o.a.execute,u=n(35),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Object(u.a)(t).request)||this;return n.options=t,n}return Object(r.c)(t,e),t}(o.a),s=n(5),l=n(9),f=n(19),p=n(69);function d(e,t,n){return new p.a((function(r){var i=r.next,o=r.error,a=r.complete,u=0,c=!1,s={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++u;var n=function(){return e(t)};s=s.then(n,n).then((function(e){--u,i&&i.call(r,e),c&&f.complete()}),(function(e){throw--u,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){c=!0,u||a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function h(e){return e.errors&&e.errors.length>0||!1}var v=n(17),y=n(85),b=n(72),m=n(8),g=n(7),w=n(45);function O(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function E(e){function t(t){Object.defineProperty(e,t,{value:p.a})}return f.b&&Symbol.species&&t(Symbol.species),t(\"@@species\"),e}function k(e){return e&&\"function\"===typeof e.then}var _=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=[\"next\",e],O(n.observers,\"next\",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=[\"error\",e],n.reject(e),O(n.observers,\"error\",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?k(t)?t.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=t.subscribe(n.handlers):(e&&setTimeout((function(){return e.unsubscribe()})),n.sub=null,n.latest&&\"next\"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),O(n.observers,\"complete\"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),\"function\"===typeof t&&(t=[new p.a(t)]),k(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Object(r.c)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&\"next\"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(p.a);E(_);var x=n(46),T=n(10),S=n(4),j=n(82),C=n(33),N=Object.assign,D=Object.hasOwnProperty,P=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=R)}catch(t){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.isTornDown=!1;var u=n.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,s=void 0===c?\"cache-first\":c,l=o.fetchPolicy,f=void 0===l?s:l,p=o.initialFetchPolicy,d=void 0===p?\"standby\"===f?s:f:p;a.options=Object(r.a)(Object(r.a)({},o),{initialFetchPolicy:d,fetchPolicy:f}),a.queryId=i.queryId||n.generateQueryId();var h=Object(v.f)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return Object(r.c)(t,e),Object.defineProperty(t.prototype,\"query\",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"variables\",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||S.a.ready,i=Object(r.a)(Object(r.a)({},t),{loading:Object(S.b)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?\"cache-first\":o;if(\"network-only\"===a||\"no-cache\"===a||\"standby\"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),Object(s.a)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,!u.complete||i.networkStatus!==S.a.loading||\"cache-first\"!==a&&\"cache-only\"!==a||(i.networkStatus=S.a.ready,i.loading=!1)):i.partial=!0,!__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||F(u.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Object(s.a)(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Object(s.a)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast(\"result\",e)},t.prototype.getLastError=function(e){return this.getLast(\"error\",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},o=this.options.fetchPolicy;if(n.fetchPolicy=\"cache-and-network\"===o?o:\"no-cache\"===o?\"no-cache\":\"network-only\",__DEV__&&e&&D.call(e,\"variables\")){var a=Object(v.h)(this.query),u=a.variableDefinitions;u&&u.some((function(e){return\"variables\"===e.variable.name.value}))||__DEV__&&i.b.warn(\"Called refetch(\".concat(JSON.stringify(e),\") for query \").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),\", which does not declare a $variables variable.\\nDid you mean to call refetch(variables) instead of refetch({ variables })?\"))}return e&&!Object(s.a)(this.options.variables,e)&&(n.variables=this.options.variables=Object(r.a)(Object(r.a)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,S.a.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Object(r.a)(Object(r.a)({},e.query?e:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},this.options),{query:this.query}),e),{variables:Object(r.a)(Object(r.a)({},this.options.variables),e.variables)})),{fetchPolicy:\"no-cache\"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=S.a.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(i,n,S.a.fetchMore).then((function(r){return t.queryManager.removeQuery(i),o.networkStatus===S.a.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:r.data,variables:n.variables})})):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){u.add(e.query)}}),r})).finally((function(){u.has(t.query)||I(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&i.b.error(\"Unhandled GraphQL subscription error\",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Object(s.a)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},S.a.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?\"cache-first\":n,i=t.initialFetchPolicy,o=void 0===i?r:i;\"standby\"===r||(\"function\"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy=\"variables-changed\"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Object(i.b)(n,\"Attempted to start a polling query without a polling interval.\"):Object(i.b)(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Object(S.b)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:\"network-only\"},S.a.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Object(r.a)(Object(r.a)({},this.last),{result:this.queryManager.assumeImmutableResults?e:Object(j.a)(e),variables:t}),Object(x.a)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var i=t===S.a.refetch||t===S.a.fetchMore||t===S.a.poll,o=this.options.variables,a=this.options.fetchPolicy,u=Object(C.a)(this.options,e||{}),c=i?u:N(this.options,u);i||(this.updatePolling(),e&&e.variables&&!Object(s.a)(e.variables,o)&&\"standby\"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy(\"variables-changed\",c),void 0===t&&(t=S.a.setVariables)));var l=c.variables&&Object(r.a)({},c.variables),f=this.fetch(c,t),p={next:function(e){n.reportResult(e,l)},error:function(e){n.reportError(e,l)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=p),f.addObserver(p),f.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),O(this.observers,\"next\",e))},t.prototype.reportError=function(e,t){var n=Object(r.a)(Object(r.a)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:S.a.error,loading:!1});this.updateLastResult(n,t),O(this.observers,\"error\",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(p.a);function I(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return\"cache-and-network\"===n||\"network-only\"===n?e.reobserve({fetchPolicy:\"cache-first\",nextFetchPolicy:function(){return this.nextFetchPolicy=r,\"function\"===typeof r?r.apply(this,arguments):n}}):e.reobserve()}function R(e){__DEV__&&i.b.error(\"Unhandled error\",e.message,e.stack)}function F(e){__DEV__&&e&&__DEV__&&i.b.debug(\"Missing cache result fields: \".concat(JSON.stringify(e)),e)}E(P);var A=n(31),M=n(71),L=n(27),V=n(16),q=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(M.b)(t.resolvers,e)})):this.resolvers=Object(M.b)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,u=void 0!==a&&a;return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,u).then((function(e){return Object(r.a)(Object(r.a)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(b.b)([\"client\"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(y.c)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(r.a)(Object(r.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(r.a)(Object(r.a)({},t),e.exportedVariables)}))]:[2,Object(r.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(A.b)(e,{Directive:{enter:function(e){if(\"client\"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return\"always\"===e.name.value&&\"BooleanValue\"===e.value.kind&&!0===e.value.value}))))return A.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(y.b)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),Object(r.b)(this,void 0,void 0,(function(){var u,c,s,l,f,p,d,h,y;return Object(r.d)(this,(function(b){return u=Object(v.e)(e),c=Object(v.d)(e),s=Object(L.a)(c),l=u.operation,f=l?l.charAt(0).toUpperCase()+l.slice(1):\"Query\",d=(p=this).cache,h=p.client,y={fragmentMap:s,context:Object(r.a)(Object(r.a)({},n),{cache:d,client:h}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(u.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var o,a,u,c,s,l=this;return Object(r.d)(this,(function(f){return o=n.fragmentMap,a=n.context,u=n.variables,c=[t],s=function(e){return Object(r.b)(l,void 0,void 0,(function(){var s,l;return Object(r.d)(this,(function(r){return Object(b.c)(e,u)?Object(m.e)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;\"undefined\"!==typeof t&&c.push(((n={})[Object(m.i)(e)]=t,n))}))]:(Object(m.f)(e)?s=e:(s=o[e.name.value],__DEV__?Object(i.b)(s,\"No fragment named \".concat(e.name.value)):Object(i.b)(s,9)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,a))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Object(M.c)(c)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var i,o,a,u,c,s,l,f,p,d=this;return Object(r.d)(this,(function(r){return i=n.variables,o=e.name.value,a=Object(m.i)(e),u=o!==a,c=t[a]||t[o],s=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[u?o:a])&&(s=Promise.resolve(V.a.withValue(this.cache,p,[t,Object(m.a)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,s.then((function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEach((function(e){\"export\"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){\"as\"===e.name.value&&\"StringValue\"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),Q=new(f.c?WeakMap:Map);function z(e,t){var n=e[t];\"function\"===typeof n&&(e[t]=function(){return Q.set(e,(Q.get(e)+1)%1e15),n.apply(this,arguments)})}function U(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var B=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Q.has(n)||(Q.set(n,0),z(n,\"evict\"),z(n,\"modify\"),z(n,\"reset\"))}return e.prototype.init=function(e){var t=e.networkStatus||S.a.loading;return this.variables&&this.networkStatus!==S.a.loading&&!Object(s.a)(this.variables,e.variables)&&(t=S.a.setVariables),Object(s.a)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){U(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Object(s.a)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&\"no-cache\"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Object(s.a)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():I(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;U(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(S.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(\"cache-only\"!==e&&\"cache-and-network\"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||\"no-cache\"!==n.options.fetchPolicy){var i=Object(r.a)(Object(r.a)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Object(s.a)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Q.get(this.cache)&&Object(s.a)(t,n.variables)&&Object(s.a)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Object(x.a)(e.errors)?e.errors:[],this.reset(),\"no-cache\"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(W(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:Q.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=S.a.ready},e.prototype.markError=function(e){return this.networkStatus=S.a.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function W(e,t){void 0===t&&(t=\"none\");var n=\"ignore\"===t||\"all\"===t,r=!h(e);return!r&&n&&e.data&&(r=!0),r}var K=Object.prototype.hasOwnProperty,H=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,u=e.ssrMode,c=void 0!==u&&u,s=e.clientAwareness,l=void 0===s?{}:s,p=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(f.c?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=p||new q({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new i.a(\"QueryManager stopped while query was in flight\"):new i.a(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,u=e.optimisticResponse,c=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,f=e.awaitRefetchQueries,p=void 0!==f&&f,v=e.update,y=e.onQueryUpdated,b=e.fetchPolicy,m=void 0===b?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||\"network-only\":b,g=e.errorPolicy,w=void 0===g?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||\"none\":g,O=e.keepRootFields,E=e.context;return Object(r.b)(this,void 0,void 0,(function(){var e,t,n;return Object(r.d)(this,(function(s){switch(s.label){case 0:return __DEV__?Object(i.b)(o,\"mutation option is required. You must specify your GraphQL document in the mutation option.\"):Object(i.b)(o,12),__DEV__?Object(i.b)(\"network-only\"===m||\"no-cache\"===m,\"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.\"):Object(i.b)(\"network-only\"===m||\"no-cache\"===m,13),e=this.generateMutationId(),o=this.transform(o).document,a=this.getVariables(o,a),this.transform(o).hasClientExports?[4,this.localState.addExportedVariables(o,a,E)]:[3,2];case 1:a=s.sent(),s.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),u&&this.markMutationOptimistic(u,{mutationId:e,document:o,variables:a,fetchPolicy:m,errorPolicy:w,context:E,updateQueries:c,update:v,keepRootFields:O}),this.broadcastQueries(),n=this,[2,new Promise((function(i,s){return d(n.getObservableFromLink(o,Object(r.a)(Object(r.a)({},E),{optimisticResponse:u}),a,!1),(function(i){if(h(i)&&\"none\"===w)throw new T.a({graphQLErrors:i.errors});t&&(t.loading=!1,t.error=null);var s=Object(r.a)({},i);return\"function\"===typeof l&&(l=l(s)),\"ignore\"===w&&h(s)&&delete s.errors,n.markMutationResult({mutationId:e,result:s,document:o,variables:a,fetchPolicy:m,errorPolicy:w,context:E,update:v,updateQueries:c,awaitRefetchQueries:p,refetchQueries:l,removeOptimistic:u?e:void 0,onQueryUpdated:y,keepRootFields:O})})).subscribe({next:function(e){n.broadcastQueries(),i(e)},error:function(r){t&&(t.loading=!1,t.error=r),u&&n.cache.removeOptimistic(e),n.broadcastQueries(),s(r instanceof T.a?r:new T.a({networkError:r}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a=\"no-cache\"===e.fetchPolicy;if(!a&&W(i,e.errorPolicy)){o.push({result:i.data,dataId:\"ROOT_MUTATION\",query:e.document,variables:e.variables});var u=e.updateQueries;u&&this.queries.forEach((function(e,r){var a=e.observableQuery,c=a&&a.queryName;if(c&&K.call(u,c)){var s=u[c],l=n.queries.get(r),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var y=s(h,{mutationResult:i,queryName:f&&Object(v.g)(f)||void 0,queryVariables:p});y&&o.push({result:y,dataId:\"ROOT_QUERY\",query:f,variables:p})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var u=e.update;if(u){if(!a){var c=t.diff({id:\"ROOT_MUTATION\",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&(i=Object(r.a)(Object(r.a)({},i),{data:c.result}))}u(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:\"ROOT_MUTATION\",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return\"__typename\"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o=\"function\"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Object(r.a)(Object(r.a)({},t),{result:{data:o}}),e)}catch(a){__DEV__&&i.b.error(a)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),i=Object(y.d)(this.cache.transformForLink(n)),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),u={document:n,hasClientExports:Object(b.a)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(v.b)(Object(v.f)(n)),asQuery:Object(r.a)(Object(r.a)({},n),{definitions:n.definitions.map((function(e){return\"OperationDefinition\"===e.kind&&\"query\"!==e.operation?Object(r.a)(Object(r.a)({},e),{operation:\"query\"}):e}))})},c=function(e){e&&!t.has(e)&&t.set(e,u)};c(e),c(n),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(r.a)(Object(r.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){\"undefined\"===typeof(e=Object(r.a)(Object(r.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new B(this),n=new P({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Object(i.b)(e.query,\"query option is required. You must specify your GraphQL document in the query option.\"):Object(i.b)(e.query,14),__DEV__?Object(i.b)(\"Document\"===e.query.kind,'You must wrap the query string in a \"gql\" tag.'):Object(i.b)(\"Document\"===e.query.kind,15),__DEV__?Object(i.b)(!e.returnPartialData,\"returnPartialData option only supported on watchQuery.\"):Object(i.b)(!e.returnPartialData,16),__DEV__?Object(i.b)(!e.pollInterval,\"pollInterval option only supported on watchQuery.\"):Object(i.b)(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.a(\"Store reset while query was in flight (not completed in link chain)\"):new i.a(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=S.a.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e=\"active\");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){\"string\"===typeof e?o.set(e,!1):Object(m.d)(e)?o.set(t.transform(e).document,!1):Object(g.a)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,r){var i=t.observableQuery,a=t.document;if(i){if(\"all\"===e)return void n.set(r,i);var u=i.queryName;if(\"standby\"===i.options.fetchPolicy||\"active\"===e&&!i.hasObservers())return;(\"active\"===e||u&&o.has(u)||a&&o.has(a))&&(n.set(r,i),u&&o.set(u,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=Object(w.a)(\"legacyOneTimeQuery\"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),u=new P({queryManager:t,queryInfo:a,options:Object(r.a)(Object(r.a)({},e),{fetchPolicy:\"network-only\"})});Object(i.b)(u.queryId===o),a.setObservableQuery(u),n.set(o,u)})),__DEV__&&o.size&&o.forEach((function(e,t){e||__DEV__&&i.b.warn(\"Unknown query \".concat(\"string\"===typeof t?\"named \":\"\").concat(JSON.stringify(t,null,2),\" requested in refetchQueries options.include array\"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?\"all\":\"active\").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||\"standby\"!==o&&\"cache-only\"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,u=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,u,e).map((function(o){if(\"no-cache\"!==r&&(W(o,i)&&t.cache.write({query:n,result:o.data,dataId:\"ROOT_SUBSCRIPTION\",variables:e}),t.broadcastQueries()),h(o))throw new T.a({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var s=this.localState.addExportedVariables(n,o,u).then(c);return new p.a((function(e){var t=null;return s.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,u,c=this;void 0===i&&(i=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var f=this.inFlightLinkObservables,h=this.link,y={query:s,variables:n,operationName:Object(v.g)(s)||void 0,context:this.prepareContext(Object(r.a)(Object(r.a)({},t),{forceFetch:!i}))};if(t=y.context,i){var b=f.get(s)||new Map;f.set(s,b);var m=Object(l.b)(n);if(!(u=b.get(m))){var g=new _([a(h,y)]);b.set(m,u=g),g.cleanup((function(){b.delete(m)&&b.size<1&&f.delete(s)}))}}else u=new _([a(h,y)])}else u=new _([p.a.of({data:{}})]),t=this.prepareContext(t);var w=this.transform(e).clientQuery;return w&&(u=d(u,(function(e){return c.localState.runResolvers({document:w,remoteResult:e,context:t,variables:n})}))),u},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return d(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=Object(x.a)(i.errors);if(r>=e.lastRequestId){if(o&&\"none\"===n.errorPolicy)throw e.markError(new T.a({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:S.a.ready};return o&&\"ignore\"!==n.errorPolicy&&(a.errors=i.errors,a.networkStatus=S.a.error),a}),(function(t){var n=Object(T.b)(t)?t:new T.a({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=S.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,s=void 0===c?u&&u.fetchPolicy||\"cache-first\":c,l=t.errorPolicy,f=void 0===l?u&&u.errorPolicy||\"none\":l,p=t.returnPartialData,d=void 0!==p&&p,h=t.notifyOnNetworkStatusChange,v=void 0!==h&&h,y=t.context,b=void 0===y?{}:y,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:s,errorPolicy:f,returnPartialData:d,notifyOnNetworkStatusChange:v,context:b}),g=function(e){m.variables=e;var i=r.fetchQueryByPolicy(a,m,n);return\"standby\"!==m.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy(\"after-fetch\",t),i},w=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return O.cancel(e)}))}));var O=new _(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return O.promise.then(w,w),O},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,u=void 0===a?o?Object(w.a)(\"refetchQueries\"):void 0:a,c=e.onQueryUpdated,s=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){s.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof B&&e.watcher.observableQuery;if(r){if(c){s.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==c&&s.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),s.size&&s.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var u=i.queryInfo;u.reset(),a=u.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf(\"legacyOneTimeQuery\")>=0&&t.stopQueryNoBroadcast(n)})),u&&this.cache.removeOptimistic(u),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:n});var y=function(){return e.getDiff(a)},b=function(t,n){void 0===n&&(n=e.networkStatus||S.a.loading);var u=t.result;!__DEV__||f||Object(s.a)(u,{})||F(t.missing);var c=function(e){return p.a.of(Object(r.a)({data:e,loading:Object(S.b)(n),networkStatus:n},t.complete?null:{partial:!0}))};return u&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:u},context:d,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):c(u)},m=\"no-cache\"===u?0:n===S.a.refetch&&\"merge\"!==c?1:2,g=function(){return i.getResultsFromLink(e,m,{variables:a,context:d,fetchPolicy:u,errorPolicy:l})},w=h&&\"number\"===typeof v&&v!==n&&Object(S.b)(n);switch(u){default:case\"cache-first\":return(O=y()).complete?[b(O,e.markReady())]:f||w?[b(O),g()]:[g()];case\"cache-and-network\":var O;return(O=y()).complete||f||w?[b(O),g()]:[g()];case\"cache-only\":return[b(y(),e.markReady())];case\"network-only\":return w?[b(y()),g()]:[g()];case\"no-cache\":return w?[b(e.getDiff()),g()]:[g()];case\"standby\":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new B(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(r.a)(Object(r.a)({},t),{clientAwareness:this.clientAwareness})},e}(),G=n(83),Y=!1,$=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,u=e.cache,s=e.ssrMode,l=void 0!==s&&s,f=e.ssrForceFetchDelay,p=void 0===f?0:f,d=e.connectToDevTools,h=void 0===d?\"object\"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:d,v=e.queryDeduplication,y=void 0===v||v,b=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,w=e.resolvers,O=e.typeDefs,E=e.fragmentMatcher,k=e.name,_=e.version,x=e.link;if(x||(x=n?new c({uri:n,credentials:r,headers:a}):o.a.empty()),!u)throw __DEV__?new i.a(\"To initialize Apollo Client, you must specify a 'cache' property in the options object. \\nFor more information, please visit: https://go.apollo.dev/c/docs\"):new i.a(7);if(this.link=x,this.cache=u,this.disableNetworkFetches=l||p>0,this.queryDeduplication=y,this.defaultOptions=b||Object.create(null),this.typeDefs=O,p&&setTimeout((function(){return t.disableNetworkFetches=!1}),p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&\"object\"===typeof window&&(window.__APOLLO_CLIENT__=this),!Y&&__DEV__&&(Y=!0,\"undefined\"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var T=window.navigator,S=T&&T.userAgent,j=void 0;\"string\"===typeof S&&(S.indexOf(\"Chrome/\")>-1?j=\"https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm\":S.indexOf(\"Firefox/\")>-1&&(j=\"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/\")),j&&__DEV__&&i.b.log(\"Download the Apollo DevTools for a better development experience: \"+j)}this.version=\"3.6.9\",this.localState=new q({cache:u,client:this,resolvers:w,fragmentMatcher:E}),this.queryManager=new H({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:y,ssrMode:l,clientAwareness:{name:k,version:_},localState:this.localState,assumeImmutableResults:g,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(G.a)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||\"network-only\"!==e.fetchPolicy&&\"cache-and-network\"!==e.fetchPolicy||(e=Object(r.a)(Object(r.a)({},e),{fetchPolicy:\"cache-first\"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(G.a)(this.defaultOptions.query,e)),__DEV__?Object(i.b)(\"cache-and-network\"!==e.fetchPolicy,\"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only.\"):Object(i.b)(\"cache-and-network\"!==e.fetchPolicy,8),this.disableNetworkFetches&&\"network-only\"===e.fetchPolicy&&(e=Object(r.a)(Object(r.a)({},e),{fetchPolicy:\"cache-first\"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(G.a)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){__DEV__&&i.b.debug(\"In client.refetchQueries, Promise.all promise rejected with error \".concat(e))})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e=\"active\"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return le}));var r=n(0),i=n(1),o=n(12),a=n(5),u=n(27),c=function(){function e(){this.getFragmentDoc=Object(o.b)(u.c)}return e.prototype.batch=function(e){var t,n=this,r=\"string\"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(r.a)(Object(r.a)({},e),{rootId:e.id||\"ROOT_QUERY\",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(r.a)(Object(r.a)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=Object(r.e)(e,[\"id\",\"data\"]);return this.write(Object.assign(i,{dataId:t||\"ROOT_QUERY\",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=Object(r.e)(e,[\"id\",\"data\",\"fragment\",\"fragmentName\"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),o=t(i);return void 0===o||null===o?i:(n.writeQuery(Object(r.a)(Object(r.a)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),o=t(i);return void 0===o||null===o?i:(n.writeFragment(Object(r.a)(Object(r.a)({},e),{data:o})),o)}})},e}(),s=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r},l=n(8),f=n(85),p=n(19),d=n(33),h=n(17),v=n(71),y=n(72),b=n(84),m=n(7),g=n(11),w=n(2),O=Object.create(null),E=function(){return O},k=Object.create(null),_=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(b.a)(Object(l.g)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(l.g)(e)?n.has(e.__ref):\"object\"===typeof e},this.toReference=function(e,t){if(\"string\"===typeof e)return Object(l.h)(e);if(Object(l.g)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Object(l.h)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Object(r.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),w.e.call(this.data,e)){var n=this.data[e];if(n&&w.e.call(n,t))return n[t]}return\"__typename\"===t&&w.e.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof j?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,\"__exists\"),w.e.call(this.data,e)?this.data[e]:this instanceof j?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Object(l.g)(e)&&(e=e.__ref),Object(l.g)(t)&&(t=t.__ref);var o=\"string\"===typeof e?this.lookup(n=e):e,a=\"string\"===typeof t?this.lookup(n=t):t;if(a){__DEV__?Object(i.b)(\"string\"===typeof n,\"store.merge expects a string ID\"):Object(i.b)(\"string\"===typeof n,1);var u=new v.a(N).merge(o,a);if(this.data[n]=u,u!==o&&(delete this.refs[n],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==u[e]){c[e]=1;var t=Object(w.c)(e);t===e||r.policies.hasKeyArgs(u.__typename,t)||(c[t]=1),void 0!==u[e]||r instanceof j||delete u[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[n]!==u.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,u=!0,c={DELETE:O,INVALIDATE:k,isReference:l.g,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField(\"string\"===typeof t?{fieldName:t,from:r||Object(l.h)(e)}:t,{store:n})}};if(Object.keys(i).forEach((function(s){var l=Object(w.c)(s),f=i[s];if(void 0!==f){var p=\"function\"===typeof t?t:t[s]||t[l];if(p){var d=p===E?O:p(Object(b.a)(f),Object(r.a)(Object(r.a)({},c),{fieldName:l,storeFieldName:s,storage:n.getStorage(e,s)}));d===k?n.group.dirty(e,s):(d===O&&(d=void 0),d!==f&&(o[s]=d,a=!0,f=d))}void 0!==f&&(u=!1)}})),a)return this.merge(e,o),u&&(this instanceof j?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,\"__exists\")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,\"__typename\"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=E,r):E)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(w.e.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof j&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||\"__exists\")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){w.e.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&w.e.call(e,n)||t.delete(n)})),e){var n=e.__META,i=Object(r.e)(e,[\"__META\"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof j?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){w.e.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof j;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!w.e.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Object(l.g)(e)&&(t[e.__ref]=!0),Object(m.a)(e)&&Object.keys(e).forEach((function(t){var n=e[t];Object(m.a)(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),x=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Object(o.a)():null,this.keyMaker=new g.a(p.c)},e.prototype.depend=function(e,t){if(this.d){this.d(T(e,t));var n=Object(w.c)(t);n!==t&&this.d(T(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(T(e,t),\"__exists\"===t?\"forget\":\"setDirty\")},e}();function T(e,t){return t+\"#\"+e}function S(e,t){D(e)&&e.group.depend(t,\"__exists\")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new x(i))||this;return a.stump=new C(a),a.storageTrie=new g.a(p.c),o&&a.replace(o),a}return Object(r.c)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(_||(_={}));var j=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return Object(r.c)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Object(a.a)(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,\"__exists\"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return w.e.call(this.data,t)?Object(r.a)(Object(r.a)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(_),C=function(e){function t(t){return e.call(this,\"EntityStore.Stump\",t,(function(){}),new x(t.group.caching,t.group))||this}return Object(r.c)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(j);function N(e,t,n){var r=e[n],i=t[n];return Object(a.a)(r,i)?r:i}function D(e){return!!(e instanceof _&&e.group.caching)}var P=n(9);function I(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var R=function(){function e(e){var t=this;this.knownResults=new(p.c?WeakMap:Map),this.config=Object(d.a)(e,{addTypename:!1!==e.addTypename,canonizeResults:Object(w.j)(e)}),this.canon=e.canon||new P.a,this.executeSelectionSet=Object(o.b)((function(e){var n,i=e.context.canonizeResults,o=I(e);o[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?i?Object(r.a)(Object(r.a)({},a),{result:t.canon.admit(a.result)}):a:(S(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:I,makeCacheKey:function(e,t,n,r){if(D(n.store))return n.store.makeCacheKey(e,Object(l.g)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Object(o.b)((function(e){return S(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(D(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new P.a},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,o=void 0===i?\"ROOT_QUERY\":i,a=e.variables,c=e.returnPartialData,f=void 0===c||c,p=e.canonizeResults,d=void 0===p?this.config.canonizeResults:p,v=this.config.cache.policies;a=Object(r.a)(Object(r.a)({},Object(h.b)(Object(h.h)(n))),a);var y,b=Object(l.h)(o),m=this.executeSelectionSet({selectionSet:Object(h.e)(n).selectionSet,objectOrReference:b,enclosingRef:b,context:{store:t,query:n,policies:v,variables:a,varString:Object(P.b)(a),canonizeResults:d,fragmentMap:Object(u.a)(Object(h.d)(n))}});if(m.missing&&(y=[new s(F(m.missing),m.missing,n,a)],!f))throw y[0];return{result:m.result,complete:!y,missing:y}},e.prototype.isFresh=function(e,t,n,r){if(D(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Object(l.g)(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:\"Dangling reference to missing \".concat(r.__ref,\" object\")};var a,c=o.variables,s=o.policies,p=o.store.getFieldValue(r,\"__typename\"),d=[],h=new v.a;function m(e,t){var n;return e.missing&&(a=h.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&\"string\"===typeof p&&!s.rootIdsByTypename[p]&&d.push({__typename:p});var g=new Set(n.selections);g.forEach((function(e){var n,v;if(Object(y.c)(e,c))if(Object(l.e)(e)){var b=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),O=Object(l.i)(e);void 0===b?f.a.added(e)||(a=h.merge(a,((n={})[O]=\"Can't find field '\".concat(e.name.value,\"' on \").concat(Object(l.g)(r)?r.__ref+\" object\":\"object \"+JSON.stringify(r,null,2)),n))):Object(w.f)(b)?b=m(t.executeSubSelectedArray({field:e,array:b,enclosingRef:i,context:o}),O):e.selectionSet?null!=b&&(b=m(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:Object(l.g)(b)?b:i,context:o}),O)):o.canonizeResults&&(b=t.canon.pass(b)),void 0!==b&&d.push(((v={})[O]=b,v))}else{var E=Object(u.b)(e,o.fragmentMap);E&&s.fragmentMatches(E,p)&&E.selectionSet.selections.forEach(g.add,g)}}));var O={result:Object(v.c)(d),missing:a},E=o.canonizeResults?this.canon.admit(O):Object(b.a)(O);return E.result&&this.knownResults.set(E.result,n),E},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,u=e.context,c=new v.a;function s(e,n){var r;return e.missing&&(t=c.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(u.store.canRead)),o=o.map((function(e,t){return null===e?null:Object(w.f)(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:u}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Object(l.g)(e)?e:a,context:u}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Object(m.a)(n)&&(__DEV__?Object(i.b)(!Object(l.g)(n),\"Missing selection set for object of type \".concat(Object(w.d)(e,n),\" returned for query field \").concat(t.name.value)):Object(i.b)(!Object(l.g)(n),5),Object.values(n).forEach(r.add,r))}))}}(u.store,r,e),e)})),{result:u.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function F(e){try{JSON.stringify(e,(function(e,t){if(\"string\"===typeof t)throw t;return t}))}catch(t){return t}}var A=n(82),M=n(46),L=n(45);var V=n(16),q=Object.create(null);function Q(e){var t=JSON.stringify(e);return q[t]||(q[t]=Object.create(null))}function z(e){var t=Q(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=B(e,(function(e){var o=K(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&w.e.call(t,e[0])&&(o=K(t,e,W)),__DEV__?Object(i.b)(void 0!==o,\"Missing field '\".concat(e.join(\".\"),\"' while extracting keyFields from \").concat(JSON.stringify(t))):Object(i.b)(void 0!==o,2),o}));return\"\".concat(n.typename,\":\").concat(JSON.stringify(o))})}function U(e){var t=Q(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=B(e,(function(e){var n=e[0],o=n.charAt(0);if(\"@\"!==o)if(\"$\"!==o){if(t)return K(t,e)}else{var a=n.slice(1);if(i&&w.e.call(i,a)){var u=e.slice(0);return u[0]=a,K(i,u)}}else if(r&&Object(M.a)(r.directives)){var c=n.slice(1),s=r.directives.find((function(e){return e.name.value===c})),f=s&&Object(l.a)(s,i);return f&&K(f,e.slice(1))}})),u=JSON.stringify(a);return(t||\"{}\"!==u)&&(o+=\":\"+u),o})}function B(e,t){var n=new v.a;return function e(t){var n=Q(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach((function(n,o){Object(w.f)(n)?(e(n).forEach((function(e){return r.push(i.concat(e))})),i.length=0):(i.push(n),Object(w.f)(t[o+1])||(r.push(i.slice(0)),i.length=0))}))}return n.paths}(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function W(e,t){return e[t]}function K(e,t,n){return n=n||W,H(t.reduce((function e(t,r){return Object(w.f)(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function H(e){return Object(m.a)(e)?Object(w.f)(e)?e.map(H):B(Object.keys(e).sort(),(function(t){return K(e,t)})):e}function G(e){return void 0!==e.args?e.args:e.field?Object(l.a)(e.field,e.variables):null}l.b.setStringify(P.b);var Y=function(){},$=function(e,t){return t.fieldName},J=function(e,t,n){return(0,n.mergeObjects)(e,t)},X=function(e,t){return t},Z=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(r.a)({dataIdFromObject:w.b},e),this.cache=this.config.cache,this.setRootTypename(\"Query\"),this.setRootTypename(\"Mutation\"),this.setRootTypename(\"Subscription\"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return[\"ROOT_QUERY\"];for(var a,u=t&&t.storeObject||e,c=Object(r.a)(Object(r.a)({},t),{typename:o,storeObject:u,readField:t&&t.readField||function(){var e=te(arguments,u);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),s=o&&this.getTypePolicy(o),l=s&&s.keyFn||this.config.dataIdFromObject;l;){var f=l(e,c);if(!Object(w.f)(f)){a=f;break}l=z(f)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var i=e[n],o=i.queryType,a=i.mutationType,u=i.subscriptionType,c=Object(r.e)(i,[\"queryType\",\"mutationType\",\"subscriptionType\"]);o&&t.setRootTypename(\"Query\",n),a&&t.setRootTypename(\"Mutation\",n),u&&t.setRootTypename(\"Subscription\",n),w.e.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge=\"function\"===typeof t?t:!0===t?J:!1===t?X:e.merge}a(r,t.merge),r.keyFn=!1===i?Y:Object(w.f)(i)?z(i):\"function\"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if(\"function\"===typeof i)r.read=i;else{var u=i.keyArgs,c=i.read,s=i.merge;r.keyFn=!1===u?$:Object(w.f)(u)?U(u):\"function\"===typeof u?u:r.keyFn,\"function\"===typeof c&&(r.read=c),a(r,s)}r.read&&r.merge&&(r.keyFn=r.keyFn||$)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n=\"ROOT_\"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Object(i.b)(!r||r===e,\"Cannot change root \".concat(e,\" __typename more than once\")):Object(i.b)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(w.a);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!w.e.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=Object(r.e)(i,[\"fields\"]);Object.assign(n,a),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var u=this.getSupertypeSet(t,!0),c=[u],s=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!n||!this.fuzzySubtypes.size),f=!1,p=0;p<c.length;++p){var d=c[p];if(d.has(a))return u.has(a)||(f&&__DEV__&&i.b.warn(\"Inferring subtype \".concat(t,\" of supertype \").concat(a)),u.add(a)),!0;d.forEach(s),l&&p===c.length-1&&Object(w.i)(e.selectionSet,n,r)&&(l=!1,f=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&s(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},u=G(e);o;){var c=o(u,a);if(!Object(w.f)(c)){t=c||r;break}o=U(c)}return void 0===t&&(t=e.field?Object(l.j)(e.field,e.variables):Object(l.b)(r,G(e))),!1===t?r:r===Object(w.c)(t)?t:r+\":\"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,\"__typename\");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Object(w.c)(i),a=t.store.getFieldValue(n,i),u=this.getFieldPolicy(e.typename,o,!1),c=u&&u.read;if(c){var s=ee(this,n,e,t,t.store.getStorage(Object(l.g)(n)?n.__ref:n,i));return V.a.withValue(this.cache,c,[a,s])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,u=n.merge;return u===J?ne(r.store)(e,t):u===X?t:(r.overwrite&&(e=void 0),u(e,t,ee(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function ee(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Object(w.c)(o),u=n.variables||r.variables,c=r.store,s=c.toReference,f=c.canRead;return{args:G(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:u,isReference:l.g,toReference:s,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(te(arguments,t,u),r)},mergeObjects:ne(r.store)}}function te(e,t,n){var o,a=e[0],u=e[1],c=e.length;return\"string\"===typeof a?o={fieldName:a,from:c>1?u:t}:(o=Object(r.a)({},a),w.e.call(o,\"from\")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&i.b.warn(\"Undefined 'from' passed to readField with arguments \".concat(function(e){var t=Object(L.a)(\"stringifyForDisplay\");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join(\"<undefined>\")}(Array.from(e)))),void 0===o.variables&&(o.variables=n),o}function ne(e){return function(t,n){if(Object(w.f)(t)||Object(w.f)(n))throw __DEV__?new i.a(\"Cannot automatically merge arrays\"):new i.a(4);if(Object(m.a)(t)&&Object(m.a)(n)){var o=e.getFieldValue(t,\"__typename\"),a=e.getFieldValue(n,\"__typename\");if(o&&a&&o!==a)return n;if(Object(l.g)(t)&&Object(w.k)(n))return e.merge(t.__ref,n),t;if(Object(w.k)(t)&&Object(l.g)(n))return e.merge(t,n.__ref),n;if(Object(w.k)(t)&&Object(w.k)(n))return Object(r.a)(Object(r.a)({},t),n)}return n}}function re(e,t,n){var i=\"\".concat(t).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===n?e:Object(r.a)(Object(r.a)({},e),{clientOnly:t,deferred:n})),o}var ie=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,o=t.query,c=t.result,s=t.dataId,f=t.variables,p=t.overwrite,d=Object(h.f)(o),v=Object(w.g)();f=Object(r.a)(Object(r.a)({},Object(h.b)(d)),f);var y={store:e,written:Object.create(null),merge:function(e,t){return v.merge(e,t)},variables:f,varString:Object(P.b)(f),fragmentMap:Object(u.a)(Object(h.d)(o)),overwrite:!!p,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},b=this.processSelectionSet({result:c||Object.create(null),dataId:s,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:y});if(!Object(l.g)(b))throw __DEV__?new i.a(\"Could not identify object \".concat(JSON.stringify(c))):new i.a(6);return y.incomingById.forEach((function(t,r){var o=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,s=Object(l.h)(r);if(u&&u.map.size){var f=n.applyMerges(u,s,o,y);if(Object(l.g)(f))return;o=f}if(__DEV__&&!y.overwrite){var p=Object.create(null);c.forEach((function(e){e.selectionSet&&(p[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===p[Object(w.c)(e)]})(e)&&!function(e){var t=u&&u.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return\"object\"===typeof t&&t},u=o(e);if(!u)return;var c=o(t);if(!c)return;if(Object(l.g)(u))return;if(Object(a.a)(u,c))return;if(Object.keys(u).every((function(e){return void 0!==r.getFieldValue(c,e)})))return;var s=r.getFieldValue(e,\"__typename\")||r.getFieldValue(t,\"__typename\"),f=Object(w.c)(n),p=\"\".concat(s,\".\").concat(f);if(se.has(p))return;se.add(p);var d=[];Object(w.f)(u)||Object(w.f)(c)||[u,c].forEach((function(e){var t=r.getFieldValue(e,\"__typename\");\"string\"!==typeof t||d.includes(t)||d.push(t)}));__DEV__&&i.b.warn(\"Cache data may be lost when replacing the \".concat(f,\" field of a \").concat(s,\" object.\\n\\nTo address this problem (which is not a bug in Apollo Client), \").concat(d.length?\"either ensure all objects of type \"+d.join(\" and \")+\" have an ID or a custom merge function, or \":\"\",\"define a custom merge function for the \").concat(p,\" field, so InMemoryCache can safely merge these objects:\\n\\n  existing: \").concat(JSON.stringify(u).slice(0,1e3),\"\\n  incoming: \").concat(JSON.stringify(c).slice(0,1e3),\"\\n\\nFor more information about these options, please refer to the documentation:\\n\\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\\n\"))}(s,o,e,y.store)}))}e.merge(r,o)})),e.retain(b.__ref),b},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,a=e.selectionSet,u=e.context,c=e.mergeTree,s=this.cache.policies,p=Object.create(null),d=n&&s.rootTypenamesById[n]||Object(l.c)(o,a,u.fragmentMap)||n&&u.store.get(n,\"__typename\");\"string\"===typeof d&&(p.__typename=d);var h=function(){var e=te(arguments,p,u.variables);if(Object(l.g)(e.from)){var t=u.incomingById.get(e.from.__ref);if(t){var n=s.readField(Object(r.a)(Object(r.a)({},e),{from:t.storeObject}),u);if(void 0!==n)return n}}return s.readField(e,u)},v=new Set;this.flattenFields(a,o,u,d).forEach((function(e,n){var r,a=Object(l.i)(n),u=o[a];if(v.add(n),void 0!==u){var y=s.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),b=ae(c,y),m=t.processFieldValue(u,n,n.selectionSet?re(e,!1,!1):e,b),g=void 0;n.selectionSet&&(Object(l.g)(m)||Object(w.k)(m))&&(g=h(\"__typename\",m));var O=s.getMergeFunction(d,n.name.value,g);O?b.info={field:n,typename:d,merge:O}:ce(c,y),p=e.merge(p,((r={})[y]=m,r))}else!__DEV__||e.clientOnly||e.deferred||f.a.added(n)||s.getReadFunction(d,n.name.value)||__DEV__&&i.b.error(\"Missing field '\".concat(Object(l.i)(n),\"' while writing result \").concat(JSON.stringify(o,null,2)).substring(0,1e3))}));try{var y=s.identify(o,{typename:d,selectionSet:a,fragmentMap:u.fragmentMap,storeObject:p,readField:h}),b=y[0],m=y[1];n=n||b,m&&(p=u.merge(p,m))}catch(k){if(!n)throw k}if(\"string\"===typeof n){var g=Object(l.h)(n),O=u.written[n]||(u.written[n]=[]);if(O.indexOf(a)>=0)return g;if(O.push(a),this.reader&&this.reader.isFresh(o,g,a,u))return g;var E=u.incomingById.get(n);return E?(E.storeObject=u.merge(E.storeObject,p),E.mergeTree=function e(t,n){if(t===n||!n||ue(n))return t;if(!t||ue(t))return n;var i=t.info&&n.info?Object(r.a)(Object(r.a)({},t.info),n.info):t.info||n.info,o=t.map.size&&n.map.size,a=o?new Map:t.map.size?t.map:n.map,u={info:i,map:a};if(o){var c=new Set(n.map.keys());t.map.forEach((function(t,r){u.map.set(r,e(t,n.map.get(r))),c.delete(r)})),c.forEach((function(r){u.map.set(r,e(n.map.get(r),t.map.get(r)))}))}return u}(E.mergeTree,c),v.forEach((function(e){return E.fieldNodeSet.add(e)}))):u.incomingById.set(n,{storeObject:p,mergeTree:ue(c)?void 0:c,fieldNodeSet:v}),g}return p},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Object(w.f)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,ae(r,o));return ce(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Object(A.a)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Object(l.c)(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new g.a(!1);return function e(c,s){var f=a.lookup(c,s.clientOnly,s.deferred);f.visited||(f.visited=!0,c.selections.forEach((function(a){if(Object(y.c)(a,n.variables)){var c=s.clientOnly,f=s.deferred;if(c&&f||!Object(M.a)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if(\"client\"===t&&(c=!0),\"defer\"===t){var r=Object(l.a)(e,n.variables);r&&!1===r.if||(f=!0)}})),Object(l.e)(a)){var p=i.get(a);p&&(c=c&&p.clientOnly,f=f&&p.deferred),i.set(a,re(n,c,f))}else{var d=Object(u.b)(a,n.fragmentMap);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,re(n,c,f))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,o,a){var u,c=this;if(e.map.size&&!Object(l.g)(n)){var s,f=Object(w.f)(n)||!Object(l.g)(t)&&!Object(w.k)(t)?void 0:t,p=n;f&&!a&&(a=[Object(l.g)(f)?f.__ref:f]);var d=function(e,t){return Object(w.f)(e)?\"number\"===typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=d(f,t),r=d(p,t);if(void 0!==r){a&&a.push(t);var u=c.applyMerges(e,n,r,o,a);u!==r&&(s=s||new Map).set(t,u),a&&Object(i.b)(a.pop()===t)}})),s&&(n=Object(w.f)(p)?p.slice(0):Object(r.a)({},p),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):n},e}(),oe=[];function ae(e,t){var n=e.map;return n.has(t)||n.set(t,oe.pop()||{map:new Map}),n.get(t)}function ue(e){return!e||!(e.info||e.map.size)}function ce(e,t){var n=e.map,r=n.get(t);r&&ue(r)&&(oe.push(r),n.delete(t))}var se=new Set;var le=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=V.c,n.txCount=0,n.config=Object(w.h)(t),n.addTypename=!!n.config.addTypename,n.policies=new Z({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Object(r.c)(t,e),t.prototype.init=function(){var e=this.data=new _.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new ie(this,this.storeReader=new R({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Object(w.j)(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Object(o.b)((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(D(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Object(P.b)({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(i){if(i instanceof s)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.e.call(e,\"id\")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||\"ROOT_QUERY\",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Object(r.a)(Object(r.a)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||\"ROOT_QUERY\",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||Object(V.d)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Object(V.b)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){P.b.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Object(l.g)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&i.b.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(w.e.call(e,\"id\"))return!1;e=Object(r.a)(Object(r.a)({},e),{id:\"ROOT_QUERY\"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),P.b.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Object(V.b)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,u=e.removeOptimistic,c=e.onWatchUpdated,s=function(e){var r=n,o=r.data,a=r.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return c&&!this.txCount&&this.broadcastWatches(Object(r.a)(Object(r.a)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),\"string\"===typeof a?this.optimisticData=this.optimisticData.addLayer(a,s):!1===a?s(this.data):s(),\"string\"===typeof u&&(this.optimisticData=this.optimisticData.removeLayer(u)),c&&l.size?(this.broadcastWatches(Object(r.a)(Object(r.a)({},e),{onWatchUpdated:function(e,t){var n=c.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(f.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&\"string\"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Object(a.a)(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(c)},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return O}));var r=n(0),i=n(1),o=n(3),a=n(19),u=!1,c=o.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!u&&r!==t()&&(u=!0,__DEV__&&i.b.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"));var c=o.useState({inst:{value:r,getSnapshot:t}}),l=c[0].inst,f=c[1];return a.a?o.useLayoutEffect((function(){Object.assign(l,{value:r,getSnapshot:t}),s(l)&&f({inst:l})}),[e,r,t]):Object.assign(l,{value:r,getSnapshot:t}),o.useEffect((function(){return s(l)&&f({inst:l}),e((function(){s(l)&&f({inst:l})}))}),[e]),r};function s(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(r){return!0}}var l=n(5),f=n(83),p=n(34),d=n(10),h=n(4),v=n(18),y=n(28),b=n(84),m=n(33),g=n(46),w=Object.prototype.hasOwnProperty;function O(e,t){return void 0===t&&(t=Object.create(null)),function(e,t){var n=Object(o.useRef)();n.current&&e===n.current.client&&t===n.current.query||(n.current=new E(e,t,n.current));var r=n.current,i=Object(o.useState)(0),a=(i[0],i[1]);return r.forceUpdate=function(){a((function(e){return e+1}))},r}(Object(y.a)(t.client),e).useQuery(t)}var E=function(){function e(e,t,n){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(a.d?WeakSet:Set),this.ssrDisabledResult=Object(b.a)({loading:!0,data:void 0,error:void 0,networkStatus:h.a.loading}),this.skipStandbyResult=Object(b.a)({loading:!1,data:void 0,error:void 0,networkStatus:h.a.ready}),this.toQueryResultCache=new(a.c?WeakMap:Map),Object(v.b)(t,v.a.Query);var r=n&&n.result,i=r&&r.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.b.warn(\"Calling default no-op implementation of InternalState#forceUpdate\")},e.prototype.asyncUpdate=function(){var e=this;return new Promise((function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=Object(o.useContext)(Object(p.a)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=c(Object(o.useCallback)((function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&Object(l.a)(e.data,r.data)||t.setResult(r)},r=n.subscribe(e,(function i(o){var a=n.last;r.unsubscribe();try{n.resetLastResults(),r=n.subscribe(e,i)}finally{n.last=a}if(!w.call(o,\"graphQLErrors\"))throw o;var u=t.result;(!u||u&&u.loading||!Object(l.a)(o,u.error))&&t.setResult({data:u&&u.data,error:o,loading:!1,networkStatus:h.a.error})}));return function(){return r.unsubscribe()}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));this.unsafeHandlePartialRefetch(r);var i=this.toQueryResult(r);return!i.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach((function(e){return e(i)})),this.asyncResolveFns.clear()),i},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;!this.optionsToIgnoreOnce.has(i)&&Object(l.a)(r,i)||(this.watchQueryOptions=r,i&&this.observable&&(this.optionsToIgnoreOnce.delete(i),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||\"standby\"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(Object(m.a)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(f.a)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.displayName,e.defaultOptions,Object(r.e)(e,[\"skip\",\"ssr\",\"onCompleted\",\"onError\",\"displayName\",\"defaultOptions\"])),o=Object.assign(i,{query:this.query});if(!this.renderPromises||\"network-only\"!==o.fetchPolicy&&\"cache-and-network\"!==o.fetchPolicy||(o.fetchPolicy=\"cache-first\"),o.variables||(o.variables={}),n){var a=o.fetchPolicy,u=void 0===a?this.getDefaultFetchPolicy():a,c=o.initialFetchPolicy,s=void 0===c?u:c;Object.assign(o,{initialFetchPolicy:s,fetchPolicy:\"standby\"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||\"cache-first\"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=Object(o.useMemo)((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){e.loading||(e.error?this.onError(e.error):e.data&&this.onCompleted(e.data))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,Object(r.e)(e,[\"data\",\"partial\"]));return this.toQueryResultCache.set(e,t=Object(r.a)(Object(r.a)(Object(r.a)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&Object(g.a)(e.errors)&&(t.error=new d.a({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||\"cache-only\"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:h.a.refetch}),this.observable.refetch())},e}()},,,,function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return i}));var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case\"[object Array]\":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach((function(t,r){i[r]=e(t,n)})),i;case\"[object Object]\":if((n=n||new Map).has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach((function(r){o[r]=e(t[r],n)})),o;default:return t}}(e)}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));var r=n(0),i=n(33);function o(e,t){return Object(i.a)(e,t,t.variables&&{variables:Object(r.a)(Object(r.a)({},e&&e.variables),t.variables)})}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return o}));n(1);var r=n(7);function i(e){var t=new Set([e]);return t.forEach((function(e){Object(r.a)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){Object(r.a)(e[n])&&t.add(e[n])}))})),e}function o(e){return __DEV__&&i(e),e}},function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return h})),n.d(t,\"d\",(function(){return y})),n.d(t,\"b\",(function(){return b})),n.d(t,\"c\",(function(){return m}));var r=n(0),i=n(1),o=n(31),a=n(17);function u(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var c=n(8),s=n(27),l={kind:\"Field\",name:{kind:\"Name\",value:\"__typename\"}};function f(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return\"FragmentSpread\"===t.kind&&e(n[t.name.value],n)}))}(Object(a.f)(e)||Object(a.c)(e),Object(s.a)(Object(a.d)(e)))?null:e}function p(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function d(e,t){var n=Object.create(null),i=[],a=Object.create(null),s=[],l=f(Object(o.b)(t,{Variable:{enter:function(e,t,r){\"VariableDefinition\"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(p(e))))return t.arguments&&t.arguments.forEach((function(e){\"Variable\"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(Object(c.e)(t)||Object(c.f)(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):\"FragmentSpread\"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(p(e)(t))return null}}}));return l&&u(i,(function(e){return!!e.name&&!n[e.name]})).length&&(l=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&\"Variable\"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return f(Object(o.b)(t,{OperationDefinition:{enter:function(t){return Object(r.a)(Object(r.a)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,l)),l&&u(s,(function(e){return!!e.name&&!a[e.name]})).length&&(l=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return f(Object(o.b)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(s,l)),l}var h=Object.assign((function(e){return Object(o.b)(e,{SelectionSet:{enter:function(e,t,n){if(!n||\"OperationDefinition\"!==n.kind){var i=e.selections;if(i)if(!i.some((function(e){return Object(c.e)(e)&&(\"__typename\"===e.name.value||0===e.name.value.lastIndexOf(\"__\",0))}))){var o=n;if(!(Object(c.e)(o)&&o.directives&&o.directives.some((function(e){return\"export\"===e.name.value}))))return Object(r.a)(Object(r.a)({},e),{selections:Object(r.f)(Object(r.f)([],i,!0),[l],!1)})}}}}})}),{added:function(e){return e===l}}),v={test:function(e){var t=\"connection\"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return\"key\"===e.name.value}))||__DEV__&&i.b.warn(\"Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.\")),t}};function y(e){return d([v],Object(a.a)(e))}function b(e){return\"query\"===Object(a.e)(e).operation?e:Object(o.b)(e,{OperationDefinition:{enter:function(e){return Object(r.a)(Object(r.a)({},e),{operation:\"query\"})}}})}function m(e){Object(a.a)(e);var t=d([{test:function(e){return\"client\"===e.name.value},remove:!0}],e);return t&&(t=Object(o.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Object(c.e)(e)&&\"__typename\"===e.name.value})))return null}}})),t}}]]);\n//# sourceMappingURL=2.ae627b82.chunk.js.map"
  },
  {
    "path": "src/main/resources/static/static/js/2.ae627b82.chunk.js.LICENSE.txt",
    "content": "/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n/** @license React v0.19.1\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/** @license React v16.14.0\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/** @license React v16.14.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n"
  },
  {
    "path": "src/main/resources/static/static/js/main.05accb10.chunk.js",
    "content": "(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{51:function(e,n,t){e.exports=t(52)},52:function(e,n,t){\"use strict\";t.r(n);var a=t(30),r=t(3),l=t.n(r),c=t(42),i=t.n(c),u=t(35),o=t(76),d=t(73),s=t(77),m=t(78),v=t(47),E=t(74),b=t(75),h=t(44),w=t(43);function p(){var e=Object(a.a)([\"\\n        subscription ReviewAdded {\\n            reviewAdded(showId: 1) {\\n                username\\n            }\\n        }\\n    \"]);return p=function(){return e},e}function f(){var e=Object(a.a)([\"\\n        {\\n            shows {\\n                title\\n            }\\n        }\"]);return f=function(){return e},e}var j=new h.a(Object(w.createClient)({url:\"ws://localhost:8080/subscriptions\"})),O=Object(u.a)({uri:\"http://localhost:8080/graphql\"}),g=new o.a({link:Object(d.a)((function(e){return\"ReviewAdded\"===e.operationName}),j,O),cache:new s.a,headers:{},resolvers:{}}),A=function(){var e=Object(m.a)(Object(v.a)(f())),n=e.loading,t=e.error,a=e.data;return n?l.a.createElement(\"div\",null,\"Loading...\"):t?l.a.createElement(\"div\",null,t):l.a.createElement(\"div\",null,l.a.createElement(\"h1\",null,\"Movies\"),l.a.createElement(\"table\",null,l.a.createElement(\"tr\",null,l.a.createElement(\"th\",null,\"Title\")),a.shows.map((function(e){return l.a.createElement(\"tr\",null,l.a.createElement(\"td\",null,e.title))}))),l.a.createElement(\"h1\",null,\"Subscriptions\"),l.a.createElement(k,null))},k=function(){var e=Object(E.a)(Object(v.a)(p()),{}),n=e.data;e.loading,e.error;return n?l.a.createElement(\"div\",null,n.reviewAdded.username,\": \",n.reviewAdded.username):l.a.createElement(\"div\",null)};i.a.render(l.a.createElement(b.a,{client:g},l.a.createElement(A,null)),document.getElementById(\"root\"))}},[[51,1,2]]]);\n//# sourceMappingURL=main.05accb10.chunk.js.map"
  },
  {
    "path": "src/main/resources/static/static/js/runtime-main.09b85ec0.js",
    "content": "!function(e){function t(t){for(var n,l,i=t[0],f=t[1],a=t[2],p=0,s=[];p<i.length;p++)l=i[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(c&&c(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var f=r[i];0!==o[f]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){\"undefined\"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&\"object\"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,\"a\",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p=\"/\";var i=this.webpackJsonpclient=this.webpackJsonpclient||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var c=f;r()}([]);\n//# sourceMappingURL=runtime-main.09b85ec0.js.map"
  },
  {
    "path": "src/test/java/com/example/demo/ArtworkUploadDataFetcherTest.java",
    "content": "package com.example.demo;\n\nimport com.example.demo.generated.types.Image;\nimport com.jayway.jsonpath.TypeRef;\nimport com.netflix.graphql.dgs.DgsQueryExecutor;\nimport org.junit.jupiter.api.Test;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.mock.web.MockMultipartFile;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Random;\n\nimport static org.assertj.core.api.AssertionsForClassTypes.assertThat;\n\n@SpringBootTest\nclass ArtworkUploadDataFetcherTest {\n\n    @Autowired\n    DgsQueryExecutor dgsQueryExecutor;\n\n    @Test\n    void addArtwork() {\n        int showId = new Random().nextInt();\n\n        Map<String, Object> map = new HashMap<String, Object>() {{\n            put(\"showId\", showId);\n            put(\"upload\", new MockMultipartFile(\"test\", \"test.file\", \"text/plain\", \"test\".getBytes()));\n        }};\n\n        String mutation = \"mutation addArtwork($showId:Int!, $upload:Upload!) { addArtwork(showId:$showId, upload:$upload) {url} }\";\n\n        List<Image> result = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                mutation,\n                \"data.addArtwork\",\n                map,\n                new TypeRef<List<Image>>() {\n                }\n        );\n\n        assertThat(result.size()).isNotZero();\n        assertThat(result.get(0).getUrl()).contains(String.valueOf(showId));\n    }\n}"
  },
  {
    "path": "src/test/java/com/example/demo/ReviewSubscriptionIntegrationTest.java",
    "content": "package com.example.demo;\n\nimport com.example.demo.generated.client.AddReviewGraphQLQuery;\nimport com.example.demo.generated.client.AddReviewProjectionRoot;\nimport com.example.demo.generated.client.ReviewAddedGraphQLQuery;\nimport com.example.demo.generated.client.ReviewAddedProjectionRoot;\nimport com.example.demo.generated.types.SubmittedReview;\nimport com.netflix.graphql.dgs.client.MonoGraphQLClient;\nimport com.netflix.graphql.dgs.client.WebSocketGraphQLClient;\nimport com.netflix.graphql.dgs.client.codegen.GraphQLQueryRequest;\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Disabled;\nimport org.junit.jupiter.api.Test;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.boot.test.web.server.LocalServerPort;\nimport org.springframework.web.reactive.function.client.WebClient;\nimport org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient;\nimport reactor.core.publisher.Flux;\nimport reactor.test.StepVerifier;\n\nimport java.time.Duration;\nimport java.util.Collections;\n\n@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)\n@Disabled\npublic class ReviewSubscriptionIntegrationTest {\n\n    @LocalServerPort\n    private Integer port;\n\n    private WebSocketGraphQLClient webSocketGraphQLClient;\n    private MonoGraphQLClient graphQLClient;\n\n    @BeforeEach\n    public void setup() {\n        webSocketGraphQLClient = new WebSocketGraphQLClient(\"ws://localhost:\" + port + \"/graphql\", new ReactorNettyWebSocketClient());\n        graphQLClient = MonoGraphQLClient.createWithWebClient(WebClient.create((\"http://localhost:\" + port + \"/graphql\")));\n    }\n\n    @Test\n    public void testWebSocketSubscription() {\n        GraphQLQueryRequest subscriptionRequest = new GraphQLQueryRequest(\n                ReviewAddedGraphQLQuery.newRequest().showId(1).build(),\n                new ReviewAddedProjectionRoot<>().starScore()\n        );\n\n        GraphQLQueryRequest addReviewMutation1 = new GraphQLQueryRequest(\n                AddReviewGraphQLQuery.newRequest().review(SubmittedReview.newBuilder().showId(1).starScore(5).username(\"DGS User\").build()).build(),\n                new AddReviewProjectionRoot<>().starScore()\n        );\n\n        GraphQLQueryRequest addReviewMutation2 = new GraphQLQueryRequest(\n                AddReviewGraphQLQuery.newRequest().review(SubmittedReview.newBuilder().showId(1).starScore(3).username(\"DGS User\").build()).build(),\n                new AddReviewProjectionRoot<>().starScore()\n        );\n\n        Flux<Integer> starScore = webSocketGraphQLClient.reactiveExecuteQuery(subscriptionRequest.serialize(), Collections.emptyMap()).map(r -> r.extractValue(\"reviewAdded.starScore\"));\n\n        StepVerifier.create(starScore)\n                .thenAwait(Duration.ofSeconds(1))\n                .then(() -> {\n                    graphQLClient.reactiveExecuteQuery(addReviewMutation1.serialize(), Collections.emptyMap()).block();\n\n                })\n                .then(() ->\n                        graphQLClient.reactiveExecuteQuery(addReviewMutation2.serialize(), Collections.emptyMap()).block())\n                .expectNext(5)\n                .expectNext(3)\n                .thenCancel()\n                .verify();\n    }\n}\n"
  },
  {
    "path": "src/test/java/com/example/demo/ReviewSubscriptionTest.java",
    "content": "package com.example.demo;\n\nimport com.example.demo.datafetchers.ReviewsDataFetcher;\nimport com.example.demo.generated.client.AddReviewGraphQLQuery;\nimport com.example.demo.generated.client.AddReviewProjectionRoot;\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.generated.types.SubmittedReview;\nimport com.example.demo.scalars.DateTimeScalar;\nimport com.example.demo.services.DefaultReviewsService;\nimport com.example.demo.services.ShowsService;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.netflix.graphql.dgs.DgsQueryExecutor;\nimport com.netflix.graphql.dgs.client.codegen.GraphQLQueryRequest;\nimport com.netflix.graphql.dgs.scalars.UploadScalar;\nimport com.netflix.graphql.dgs.test.EnableDgsTest;\nimport graphql.ExecutionResult;\nimport org.junit.jupiter.api.Test;\nimport org.reactivestreams.Publisher;\nimport org.reactivestreams.Subscriber;\nimport org.reactivestreams.Subscription;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.boot.test.mock.mockito.MockBean;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.concurrent.CopyOnWriteArrayList;\n\nimport static org.assertj.core.api.AssertionsForClassTypes.assertThat;\n\n/**\n * Test the review added subscription.\n * The subscription query returns a Publisher<ExecutionResult>.\n * Each time a review is added, a new ExecutionResult is given to subscriber.\n * Normally, this publisher is consumed by the Websocket/SSE subscription handler and you don't deal with this code directly, but for testing purposes it's useful to use the stream directly.\n */\n@SpringBootTest(classes = {DefaultReviewsService.class, ReviewsDataFetcher.class, DateTimeScalar.class, UploadScalar.class})\n@EnableDgsTest\npublic class ReviewSubscriptionTest {\n    @Autowired\n    DgsQueryExecutor dgsQueryExecutor;\n\n    @MockBean\n    ShowsService showsService;\n\n    @Test\n    void reviewSubscription() {\n        ExecutionResult executionResult = dgsQueryExecutor.execute(\"subscription { reviewAdded(showId: 1) {starScore} }\");\n        Publisher<ExecutionResult> reviewPublisher = executionResult.getData();\n        List<Review> reviews = new CopyOnWriteArrayList<>();\n\n        reviewPublisher.subscribe(new Subscriber<ExecutionResult>() {\n            @Override\n            public void onSubscribe(Subscription s) {\n                s.request(2);\n            }\n\n            @Override\n            public void onNext(ExecutionResult executionResult) {\n                if (executionResult.getErrors().size() > 0) {\n                    System.out.println(executionResult.getErrors());\n                }\n                Map<String, Object> review = executionResult.getData();\n                reviews.add(new ObjectMapper().convertValue(review.get(\"reviewAdded\"), Review.class));\n            }\n\n            @Override\n            public void onError(Throwable t) {\n            }\n\n            @Override\n            public void onComplete() {\n            }\n        });\n\n        addReview();\n        addReview();\n\n        assertThat(reviews.size()).isEqualTo(2);\n    }\n\n    private void addReview() {\n        GraphQLQueryRequest graphQLQueryRequest = new GraphQLQueryRequest(\n                AddReviewGraphQLQuery.newRequest()\n                        .review(\n                                SubmittedReview.newBuilder()\n                                        .showId(1)\n                                        .username(\"testuser\")\n                                        .starScore(5).build())\n                        .build(),\n                new AddReviewProjectionRoot<>()\n                        .username()\n                        .starScore());\n        dgsQueryExecutor.execute(graphQLQueryRequest.serialize());\n    }\n}\n"
  },
  {
    "path": "src/test/java/com/example/demo/SecurityExampleFetchersTest.java",
    "content": "package com.example.demo;\n\nimport com.netflix.graphql.dgs.DgsQueryExecutor;\nimport com.netflix.graphql.dgs.exceptions.QueryException;\nimport org.junit.jupiter.api.Test;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.security.test.context.support.WithMockUser;\n\nimport static org.assertj.core.api.Assertions.assertThat;\nimport static org.junit.jupiter.api.Assertions.assertThrows;\n\n@SpringBootTest\nclass SecurityExampleFetchersTest {\n\n    @Autowired\n    DgsQueryExecutor dgsQueryExecutor;\n\n    @Test\n    void secureNone() {\n        String result = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                \" { secureNone }\",\n                \"data.secureNone\",\n                String.class);\n\n        assertThat(result).isEqualTo(\"Hello to everyone\");\n    }\n\n    @Test\n    @WithMockUser(username = \"user\", password = \"user\")\n    void secureUserWithUser() {\n        String result = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                \" { secureUser }\",\n                \"data.secureUser\",\n                String.class\n        );\n\n        assertThat(result).isEqualTo(\"Hello to users or admins\");\n    }\n\n    @Test\n    @WithMockUser(username = \"admin\", password = \"admin\", roles = {\"ADMIN\"})\n    void secureUserWithAdmin() {\n        String result = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                \" { secureUser }\",\n                \"data.secureUser\",\n                String.class\n        );\n\n        assertThat(result).isEqualTo(\"Hello to users or admins\");\n    }\n\n    @Test\n    void secureUserWithNone() {\n        assertThrows(QueryException.class, () -> {\n            dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                    \" { secureUser }\",\n                    \"data.secureUser\",\n                    String.class\n            );\n        });\n    }\n\n    @Test\n    @WithMockUser(username = \"admin\", password = \"admin\", roles = {\"ADMIN\"})\n    void secureAdminWithAdmin() {\n        String result = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                \" { secureAdmin }\",\n                \"data.secureAdmin\",\n                String.class\n        );\n\n        assertThat(result).isEqualTo(\"Hello to admins only\");\n    }\n\n    @Test\n    @WithMockUser(username = \"user\", password = \"user\")\n    void secureAdminWithUser() {\n        assertThrows(QueryException.class, () -> {\n            dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                    \" { secureAdmin }\",\n                    \"data.secureAdmin\",\n                    String.class\n            );\n        });\n    }\n\n    @Test\n    void secureAdminWithNone() {\n        assertThrows(QueryException.class, () -> {\n            dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                    \" { secureAdmin }\",\n                    \"data.secureAdmin\",\n                    String.class\n            );\n        });\n    }\n}\n"
  },
  {
    "path": "src/test/java/com/example/demo/ShowsDataFetcherTest.java",
    "content": "package com.example.demo;\n\nimport com.example.demo.datafetchers.ReviewsDataFetcher;\nimport com.example.demo.datafetchers.ShowsDataFetcher;\nimport com.example.demo.dataloaders.ReviewsDataLoader;\nimport com.example.demo.dataloaders.ReviewsDataLoaderWithContext;\nimport com.example.demo.generated.client.*;\nimport com.example.demo.generated.types.Review;\nimport com.example.demo.generated.types.Show;\nimport com.example.demo.generated.types.SubmittedReview;\nimport com.example.demo.scalars.DateTimeScalar;\nimport com.example.demo.services.DefaultReviewsService;\nimport com.example.demo.services.ShowsService;\nimport com.jayway.jsonpath.TypeRef;\nimport com.netflix.graphql.dgs.DgsQueryExecutor;\nimport com.netflix.graphql.dgs.client.codegen.GraphQLQueryRequest;\nimport com.netflix.graphql.dgs.scalars.UploadScalar;\nimport com.netflix.graphql.dgs.test.EnableDgsTest;\nimport graphql.ExecutionResult;\nimport org.assertj.core.util.Maps;\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Test;\nimport org.mockito.Mockito;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.boot.test.mock.mockito.MockBean;\n\nimport java.time.OffsetDateTime;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\nimport static org.assertj.core.api.Assertions.assertThat;\nimport static org.mockito.Mockito.verify;\n\n\n@SpringBootTest(classes = {ReviewsDataLoaderWithContext.class, ShowsDataFetcher.class, ReviewsDataFetcher.class, ReviewsDataLoader.class, DateTimeScalar.class, UploadScalar.class})\n@EnableDgsTest\nclass ShowsDataFetcherTest {\n\n    @Autowired\n    DgsQueryExecutor dgsQueryExecutor;\n\n    @MockBean\n    ShowsService showsService;\n\n    @MockBean\n    DefaultReviewsService reviewsService;\n\n    @BeforeEach\n    public void before() {\n        Mockito.when(showsService.shows())\n                .thenAnswer(invocation -> Collections.singletonList(Show.newBuilder().id(1).title(\"mock title\").releaseYear(2020).build()));\n        Mockito.when(reviewsService.reviewsForShows(Collections.singletonList(1)))\n                .thenAnswer(invocation ->\n                        Maps.newHashMap(1, Arrays.asList(\n                                Review.newBuilder().username(\"DGS User\").starScore(5).submittedDate(OffsetDateTime.now()).build(),\n                                Review.newBuilder().username(\"DGS User 2\").starScore(3).submittedDate(OffsetDateTime.now()).build())\n                        ));\n    }\n\n    @Test\n    void shows() {\n        List<String> titles = dgsQueryExecutor.executeAndExtractJsonPath(\n                \" { shows { title releaseYear }}\",\n                \"data.shows[*].title\");\n\n        assertThat(titles).contains(\"mock title\");\n    }\n\n\n    @Test\n    void showsWithException() {\n        Mockito.when(showsService.shows()).thenThrow(new RuntimeException(\"nothing to see here\"));\n\n        ExecutionResult result = dgsQueryExecutor.execute(\n                \" { shows { title releaseYear }}\");\n\n        assertThat(result.getErrors()).isNotEmpty();\n        assertThat(result.getErrors().get(0).getMessage()).isEqualTo(\"java.lang.RuntimeException: nothing to see here\");\n    }\n\n    @Test\n    void showsWithQueryApi() {\n        GraphQLQueryRequest graphQLQueryRequest = new GraphQLQueryRequest(ShowsGraphQLQuery.newRequest().titleFilter(\"\").build(), new ShowsProjectionRoot<>().title());\n        List<String> titles = dgsQueryExecutor.executeAndExtractJsonPath(graphQLQueryRequest.serialize(), \"data.shows[*].title\");\n        assertThat(titles).contains(\"mock title\");\n    }\n\n    @Test\n    void showWithReviews() {\n        GraphQLQueryRequest graphQLQueryRequest = new GraphQLQueryRequest(ShowsGraphQLQuery.newRequest().titleFilter(\"\").build(),\n                new ShowsProjectionRoot<>()\n                        .title()\n                        .reviews()\n                        .username()\n                        .starScore());\n\n        List<Show> shows = dgsQueryExecutor.executeAndExtractJsonPathAsObject(\n                graphQLQueryRequest.serialize(),\n                \"data.shows[*]\",\n                new TypeRef<List<Show>>() {\n                });\n\n        assertThat(shows.size()).isEqualTo(1);\n        assertThat(shows.get(0).getReviews().size()).isEqualTo(2);\n    }\n\n    @Test\n    void addReviewMutation() {\n        GraphQLQueryRequest graphQLQueryRequest = new GraphQLQueryRequest(\n                AddReviewGraphQLQuery.newRequest()\n                        .review(SubmittedReview.newBuilder()\n                                .showId(1)\n                                .username(\"testuser\")\n                                .starScore(5).build())\n                        .build(),\n                new AddReviewProjectionRoot<>().username().starScore());\n\n        ExecutionResult executionResult = dgsQueryExecutor.execute(graphQLQueryRequest.serialize());\n        assertThat(executionResult.getErrors()).isEmpty();\n\n        verify(reviewsService).reviewsForShow(1);\n    }\n\n    @Test\n    void addReviewsMutation() {\n        List<SubmittedReview> reviews = Collections.singletonList(\n                SubmittedReview.newBuilder().showId(1).username(\"testuser1\").starScore(5).build());\n        GraphQLQueryRequest graphQLQueryRequest = new GraphQLQueryRequest(\n                AddReviewsGraphQLQuery.newRequest()\n                        .reviews(reviews)\n                        .build(),\n                new AddReviewsProjectionRoot<>().username().starScore());\n\n        ExecutionResult executionResult = dgsQueryExecutor.execute(graphQLQueryRequest.serialize());\n        assertThat(executionResult.getErrors()).isEmpty();\n\n        verify(reviewsService).reviewsForShows(Collections.singletonList(1));\n    }\n}\n"
  },
  {
    "path": "ui-example/package.json",
    "content": "{\n  \"name\": \"client\",\n  \"version\": \"1.0.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@apollo/client\": \"^3.5.10\",\n    \"@reach/router\": \"^1.2.1\",\n    \"@types/node\": \"^12.12.14\",\n    \"@types/reach__router\": \"^1.2.6\",\n    \"@types/react\": \"^16.9.15\",\n    \"@types/react-dom\": \"^16.9.4\",\n    \"emotion\": \"^9.2.12\",\n    \"graphql\": \"^14.4.2\",\n    \"graphql-ws\": \"^5.10.0\",\n    \"polished\": \"^3.4.1\",\n    \"react\": \"^16.12.0\",\n    \"react-dom\": \"^16.12.0\",\n    \"react-emotion\": \"^9.2.12\",\n    \"react-scripts\": \"^3.4.1\",\n    \"subscriptions-transport-ws\": \"^0.9.18\",\n    \"typescript\": \"^3.7.3\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"rm -Rf ../src/main/resources/static/* && react-scripts build && mv build/* ../src/main/resources/static\",\n    \"eject\": \"react-scripts eject\"\n  },\n  \"eslintConfig\": {\n    \"extends\": \"react-app\"\n  },\n  \"browserslist\": [\n    \">0.2%\",\n    \"not dead\",\n    \"not ie <= 11\",\n    \"not op_mini all\"\n  ],\n  \"devDependencies\": {\n    \"@testing-library/jest-dom\": \"^4.0.0\",\n    \"@testing-library/react\": \"^8.0.7\",\n    \"@types/jest\": \"^24.0.23\",\n    \"apollo\": \"^2.16.3\",\n    \"artillery\": \"^1.6.0-26\",\n    \"npm-watch\": \"^0.6.0\"\n  }\n}\n"
  },
  {
    "path": "ui-example/public/index.html",
    "content": "<!--\n  ~ Copyright 2020 Netflix, Inc.\n  ~\n  ~ Licensed under the Apache License, Version 2.0 (the \"License\");\n  ~ you may not use this file except in compliance with the License.\n  ~ You may obtain a copy of the License at\n  ~\n  ~    http://www.apache.org/licenses/LICENSE-2.0\n  ~\n  ~ Unless required by applicable law or agreed to in writing, software\n  ~ distributed under the License is distributed on an \"AS IS\" BASIS,\n  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  ~ See the License for the specific language governing permissions and\n  ~ limitations under the License.\n  -->\n\n<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"utf-8\">\n    <link rel=\"shortcut icon\" href=\"%PUBLIC_URL%/favicon.ico\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n    <meta name=\"theme-color\" content=\"#000000\">\n    <!--\n        manifest.json provides metadata used when your web app is added to the\n        homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/\n      -->\n    <link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\">\n    <!--\n        Notice the use of %PUBLIC_URL% in the tags above.\n        It will be replaced with the URL of the `public` folder during the build.\n        Only files inside the `public` folder can be referenced from the HTML.\n        Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n        work correctly both with client-side routing and a non-root public URL.\n        Learn how to configure a non-root public URL by running `npm run build`.\n      -->\n    <title>Launches</title>\n    <link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700\" rel=\"stylesheet\">\n</head>\n\n<body>\n<noscript>\n    You need to enable JavaScript to run this app.\n</noscript>\n<div id=\"root\"></div>\n<!--\n    This HTML file is a template.\n    If you open it directly in the browser, you will see an empty page.\n    You can add webfonts, meta tags, or analytics to this file.\n    The build step will place the bundled scripts into the <body> tag.\n    To begin the development, run `npm start` or `yarn start`.\n    To create a production bundle, use `npm run build` or `yarn build`.\n  -->\n</body>\n\n</html>"
  },
  {
    "path": "ui-example/src/index.tsx",
    "content": "/*\n * Copyright 2020 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n    ApolloClient,\n    ApolloProvider,\n    createHttpLink,\n    gql,\n    InMemoryCache,\n    NormalizedCacheObject,\n    split,\n    useQuery,\n    useSubscription\n} from '@apollo/client';\n\nimport { GraphQLWsLink } from \"@apollo/client/link/subscriptions\";\nimport { createClient } from 'graphql-ws';\n\nconst webSocketLink = new GraphQLWsLink(createClient({\n    url: 'ws://localhost:8080/subscriptions',\n}));\n\n\nconst httpLink = createHttpLink({uri:'http://localhost:8080/graphql' })\nconst client: ApolloClient<NormalizedCacheObject> = new ApolloClient({\n    link: split((operation) => {\n        return operation.operationName === \"ReviewAdded\"\n    }, webSocketLink, httpLink),\n    cache: new InMemoryCache(),\n    headers: {},\n    resolvers: {},\n});\n\nconst App: React.FC = () => {\n    const {loading, error, data} = useQuery(gql`\n        {\n            shows {\n                title\n            }\n        }`);\n\n    return loading ?\n        <div>Loading...</div>\n        : error ? <div>{error}</div>\n            : <div>\n                <h1>Movies</h1>\n                <table>\n                    <tr>\n                        <th>Title</th>\n                    </tr>\n                    {data.shows.map((show: Show) => {\n                        return <tr>\n                            <td>{show.title}</td>\n                        </tr>\n                    })}\n                </table>\n\n                <h1>Subscriptions</h1>\n                <SubscriptionPanel/>\n            </div>\n}\n\ntype Show = {\n    title: String\n}\n\nconst SubscriptionPanel : React.FC = () => {\n    const {data, loading, error} = useSubscription(gql`\n        subscription ReviewAdded {\n            reviewAdded(showId: 1) {\n                username\n            }\n        }\n    `, {});\n\n\n    return data?<div>{data.reviewAdded.username}: { data.reviewAdded.username}</div>:<div/>\n}\n\nReactDOM.render(\n    <ApolloProvider client={client}>\n        <App/>\n    </ApolloProvider>,\n    document.getElementById('root'),\n);\n"
  },
  {
    "path": "ui-example/src/react-app-env.d.ts",
    "content": "/*\n * Copyright 2020 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/// <reference types=\"react-scripts\" />\n"
  },
  {
    "path": "ui-example/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"lib\": [\n      \"dom\",\n      \"dom.iterable\",\n      \"esnext\"\n    ],\n    \"allowJs\": true,\n    \"skipLibCheck\": true,\n    \"esModuleInterop\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"strict\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \"module\": \"esnext\",\n    \"moduleResolution\": \"node\",\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"noEmit\": true,\n    \"jsx\": \"preserve\",\n    \"outDir\": \"../src/main/resources/static\"\n  },\n  \"include\": [\n    \"src\"\n  ],\n}"
  }
]