diff --git a/.devcontainer/.vscode/launch.json b/.devcontainer/.vscode/launch.json new file mode 100644 index 000000000..f855a76bd --- /dev/null +++ b/.devcontainer/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Listen for Xdebug", + "type": "php", + "request": "launch", + "port": 9003 + }, + ] +} diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..97448ed0a --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,9 @@ +FROM php:8.3-apache-bookworm + +# Install PHP extensions +ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ + +RUN install-php-extensions @composer gd intl zip xdebug + +# Enable Apache2 rewrite module +RUN a2enmod rewrite diff --git a/.devcontainer/README.md b/.devcontainer/README.md new file mode 100644 index 000000000..fa6a74100 --- /dev/null +++ b/.devcontainer/README.md @@ -0,0 +1,70 @@ +# Welcome to the Winter development environment + +

+ Winter CMS Logo +

+ +This development environment container sets up a fully-functional installation of Winter CMS, running on Apache 2 with PHP 8.3, and makes it simple to start working with Winter CMS in VSCode, PHPStorm and online code-editing suites such as GitHub Codespaces. + +If you opted to use the `bootstrap-winter` feature, which is enabled by default, Winter CMS will be automatically configured and an administrator account will be generated with the credentials **admin / admin** for you to quickly sign in. It is recommended once you have done so that you change this password immediately. + +The following plugins and themes will be installed automatically with this feature: + +- Workshop theme (https://github.com/wintercms/wn-workshop-theme) +- Pages plugin (https://github.com/wintercms/wn-pages-plugin) +- Blog plugin (https://github.com/wintercms/wn-blog-plugin) +- Test plugin (https://github.com/wintercms/wn-test-plugin) + +## Using this environment + +When this environment is built, the Apache 2 service is automatically started, with the root folder of the Winter project being used. A preview of the website will be opened immediately - if you do not see this, you can open the **Ports** tab in VSCode to view the URL generated for viewing the project. + +XDebug is enabled by default, and allows you to quickly use step debugging. It will be available in the **Debug** tab of VSCode or similar screen in other IDEs. + +By default, when using the `bootstrap-winter` feature, changes to certain folders and locations will be ignored by Git to keep the change list clean. This includes the `plugins` and `themes` folders, the `config/app.php` file and the `composer.json` file in the root folder. If you wish to use this environment for your own projects, it is recommended that you do not use this feature. Please see the **Using in your own projects** section below for using this environment outside of Winter development. + +## Environment platform + +The following software is installed in this environment. + +- Apache 2.4 +- PHP 8.3 with the following extensions: + - `intl` + - `gd` + - `xdebug` +- Composer +- NodeJS 22 (including `npm`) +- Git + +## Using in your own projects + +You may use this development environment for your own projects, making it a great starting point to hit the ground running with Winter. It is recommended that you *disable* the `bootstrap-winter` feature when using this environment for your own projects. + +You may disable this feature by modifying the `.devcontainer/devcontainer.json` file before running the container and commenting out the feature: + +```json5 + "ghcr.io/devcontainers/features/git:1": {}, + "./local-features/apache-config": "latest", + // Comment the following feature if you wish to bootstrap and configure Winter manually (ie. you wish to use this for your own project) + //"./local-features/bootstrap-winter": "latest" + }, + "overrideFeatureInstallOrder": [ +``` + +If this feature is disabled, you must bootstrap your project manually. This includes: + +- Downloading the Composer dependencies. +- Generating the configuration for the project, either as an `.env` file or in the `config` folder. +- Finally, Running the database migrations. + +You may view the `.devcontainer/local-features/bootstrap-winter/bootstrap.sh` file to see how we bootstrap Winter, and run these commands manually. You will only need to do this once per project container. + +If you wish to mount your own volumes, use your own databases or any other complex usages, please review the [Docker documentation](https://docs.docker.com/) to set this up on the container. + +## Troubleshooting + +### Preview website missing styles / assets on Codespaces + +By default, ports that are forwarded in Codespaces are private by default. While we have tried to fix this automatically in the Winter bootstrap process by making the port public through the GitHub CLI, it unfortunately is not consistently applied. + +If you find that your preview website is missing assets or styling, open the **Ports** tab by opening the Action Palette in Codespaces (`F1`) and using the **View: Toggle Ports** action. Right click on the **Preview Winter installation** port, right click on it and choose **Port Visiblity -> Public**. This should resolve the issue. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..d27806e13 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,67 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/debian +{ + "name": "Winter on PHP 8.3", + "build": { + "dockerfile": "./Dockerfile", + "context": "." + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "true", + "configureZshAsDefaultShell": true, + "username": "vscode", + "userUid": "1000", + "userGid": "1000", + "upgradePackages": "true" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "22" + }, + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "./local-features/apache-config": "latest", + // Comment the following feature if you wish to bootstrap and configure Winter manually (ie. you wish to use this for your own project) + "./local-features/bootstrap-winter": "latest" + }, + "overrideFeatureInstallOrder": [ + "ghcr.io/devcontainers/features/common-utils" + ], + "containerEnv": { + "DB_CONNECTION": "sqlite", + "DB_DATABASE": "${containerWorkspaceFolder}/storage/database.sqlite" + }, + "postStartCommand": "sudo rm -rf /var/www/html && sudo ln -s ${containerWorkspaceFolder} /var/www/html && service apache2 start", + "forwardPorts": [8080], + "portsAttributes": { + "8080": { + "label": "Preview Winter installation", + "onAutoForward": "openPreview" + }, + "9003": { + "label": "Xdebug", + "onAutoForward": "notify" + } + }, + "customizations": { + "vscode": { + "settings": { + "php.validate.executablePath": "/usr/local/bin/php", + "phpcs.executablePath": "${containerWorkspaceFolder}/vendor/bin/phpcs" + }, + "extensions": [ + "xdebug.php-debug", + "bmewburn.vscode-intelephense-client", + "shevaua.phpcs", + "swordev.phpstan", + "wintercms.winter-cms" + ] + }, + "codespaces": { + "openFiles": [ + ".devcontainer/README.md" + ] + } + }, + "remoteUser": "vscode" +} diff --git a/.devcontainer/local-features/apache-config/devcontainer-feature.json b/.devcontainer/local-features/apache-config/devcontainer-feature.json new file mode 100644 index 000000000..b81a3145d --- /dev/null +++ b/.devcontainer/local-features/apache-config/devcontainer-feature.json @@ -0,0 +1,4 @@ +{ + "id": "apache-config", + "name": "Apache configuration changes" +} diff --git a/.devcontainer/local-features/apache-config/install.sh b/.devcontainer/local-features/apache-config/install.sh new file mode 100644 index 000000000..a0273836a --- /dev/null +++ b/.devcontainer/local-features/apache-config/install.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +#------------------------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. +#------------------------------------------------------------------------------------------------------------- + +USERNAME="vscode" + +set -e + +if [ "$(id -u)" -ne 0 ]; then + echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.' + exit 1 +fi + +# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. +export DEBIAN_FRONTEND=noninteractive + +apt-get update && apt-get -y install --no-install-recommends lynx +usermod -aG www-data ${USERNAME} +echo "Listen 8080" > /etc/apache2/ports.conf +apt-get clean -y && rm -rf /var/lib/apt/lists/* + +echo "Done!" diff --git a/.devcontainer/local-features/bootstrap-winter/bootstrap.sh b/.devcontainer/local-features/bootstrap-winter/bootstrap.sh new file mode 100644 index 000000000..c40a2ba33 --- /dev/null +++ b/.devcontainer/local-features/bootstrap-winter/bootstrap.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash + +set -e + +echo "### Updating Composer dependencies" +php ${PWD}/.devcontainer/local-features/bootstrap-winter/update-composer.php +composer update --no-interaction --no-scripts --no-audit + +if [ ! -f "${PWD}/.env" ]; then + echo "### Generating .env file" + php artisan winter:env -q + php artisan key:generate -q +fi + +if [ "${DB_CONNECTION}" = "sqlite" ] && [ "${DB_DATABASE}" = "${PWD}/storage/database.sqlite" ] && [ ! -f "${PWD}/storage/database.sqlite" ]; then + SETUP_ADMIN=true + echo "### Creating SQLite database" + touch storage/database.sqlite +fi + +echo "### Run migrations" +php artisan migrate + +if [ "${SETUP_ADMIN}" = true ]; then + echo "### Setup admin" + php artisan winter:passwd admin admin +fi + +echo "### Switch theme" +php artisan theme:use workshop + +echo "### Ignoring files in Git" +echo "plugins/*" >> "${PWD}/.git/info/exclude" +echo "themes/*" >> "${PWD}/.git/info/exclude" +echo "composer.json" >> "${PWD}/.git/info/exclude" +git update-index --assume-unchanged composer.json +git restore config + +cp ${PWD}/.devcontainer/.vscode/launch.json ${PWD}/.vscode/launch.json + +if [ "${CODESPACES}" = "true" ]; then + echo "### Configure for Codespaces" + php ${PWD}/.devcontainer/local-features/bootstrap-winter/codespaces.php + git update-index --assume-unchanged config/app.php + gh codespace ports visibility 8080:public -c $CODESPACE_NAME +fi diff --git a/.devcontainer/local-features/bootstrap-winter/codespaces.php b/.devcontainer/local-features/bootstrap-winter/codespaces.php new file mode 100644 index 000000000..2c7ea5604 --- /dev/null +++ b/.devcontainer/local-features/bootstrap-winter/codespaces.php @@ -0,0 +1,25 @@ +set('trustedHosts', [ + 'localhost', + '^(.+\.)?app.github.dev', +]); +$config->set('trustedProxies', '*'); + +$config->write(); + +$env = EnvFile::open($root . '/.env'); + +$env->set('APP_URL', 'https://' . $_ENV['CODESPACE_NAME'] . '.app.github.dev'); +$env->set('LINK_POLICY', 'force'); + +$env->write(); diff --git a/.devcontainer/local-features/bootstrap-winter/devcontainer-feature.json b/.devcontainer/local-features/bootstrap-winter/devcontainer-feature.json new file mode 100644 index 000000000..a9d74f2a9 --- /dev/null +++ b/.devcontainer/local-features/bootstrap-winter/devcontainer-feature.json @@ -0,0 +1,6 @@ +{ + "id": "bootstrap-winter", + "name": "Bootstrap Winter", + "description": "Bootstrap and configure Winter CMS automatically for development on Winter itself", + "postCreateCommand": "sh ./.devcontainer/local-features/bootstrap-winter/bootstrap.sh" +} diff --git a/.devcontainer/local-features/bootstrap-winter/install.sh b/.devcontainer/local-features/bootstrap-winter/install.sh new file mode 100644 index 000000000..4c1268410 --- /dev/null +++ b/.devcontainer/local-features/bootstrap-winter/install.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -e + +echo "Done" diff --git a/.devcontainer/local-features/bootstrap-winter/update-composer.php b/.devcontainer/local-features/bootstrap-winter/update-composer.php new file mode 100644 index 000000000..102ff8abe --- /dev/null +++ b/.devcontainer/local-features/bootstrap-winter/update-composer.php @@ -0,0 +1,22 @@ + 'dev-main', + 'winter/wn-blog-plugin' => 'dev-main', + 'winter/wn-blog-plugin' => 'dev-main', + 'winter/wn-workshop-theme' => 'dev-main', +]; + +// Install Winter packages +foreach ($packages as $package => $version) { + if (!in_array($package, array_keys($composer['require']))) { + $composer['require'][$package] = $version; + } +} + +file_put_contents( + $composerPath, + json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) +); diff --git a/.editorconfig b/.editorconfig index afb383273..39f90e53e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,5 @@ insert_final_newline = true indent_style = space indent_size = 4 -[.github/workflows/**.{yml,yaml}] +[**/.github/workflows/**.{yml,yaml}] indent_size = 2 diff --git a/.gitattributes b/.gitattributes index 0c3b228c5..1a7fadf6c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,8 +3,8 @@ *.md diff=markdown *.php diff=php +/.devcontainer export-ignore /.github export-ignore -/.gitpod export-ignore .gitattributes export-ignore -.gitpod.yml export-ignore CHANGELOG.md export-ignore +/package.json export-ignore diff --git a/.github/assets/sponsor-route4me.png b/.github/assets/sponsor-route4me.png new file mode 100644 index 000000000..58e0caffd Binary files /dev/null and b/.github/assets/sponsor-route4me.png differ diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml deleted file mode 100644 index 8d2b7ce48..000000000 --- a/.github/workflows/archive.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Archive - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - archive: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v1.1.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 182 - days-before-close: 3 - stale-issue-message: > - This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. - - If this issue is still relevant or you would like to see it actioned, please respond within 3 days. - - If this issue is critical for your business, please reach out to us at wintercms@luketowers.ca. - stale-pr-message: > - This pull request will be closed and archived in 3 days, as there has been no activity in this pull request for the last 6 months. - - If you intend to continue working on this pull request, please respond within 3 days. - - If this pull request is critical for your business, please reach out to us at wintercms@luketowers.ca. - stale-issue-label: 'Status: Archived' - stale-pr-label: 'Status: Archived' - exempt-issue-label: 'Status: In Progress' - exempt-pr-label: 'Status: In Progress' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6dd83f406..e14444a88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -96,7 +96,7 @@ jobs: max-parallel: 8 matrix: operatingSystem: [ubuntu-latest, windows-latest] - phpVersion: ['8.0', '8.1', '8.2'] + phpVersion: ['8.0', '8.1', '8.2', '8.3'] fail-fast: false runs-on: ${{ matrix.operatingSystem }} name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }} diff --git a/.gitignore b/.gitignore index 3582897e8..9485e1fe2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ sftp-config.json nbproject .idea .vscode +!.devcontainer/.vscode _ide_helper.php # Other ignores diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 8bd98780c..000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,36 +0,0 @@ -image: - file: ./.gitpod/Dockerfile - -tasks: - - init: ./.gitpod/gitpod-init - command: ./.gitpod/gitpod-cmd - -ports: - - port: 1025 - onOpen: ignore - - port: 3306 - onOpen: ignore - - port: 33060 - onOpen: ignore - - port: 8000 - visibility: public - onOpen: ignore - - port: 8025 - onOpen: ignore - - port: 9003 - onOpen: ignore - -vscode: - extensions: - - felixfbecker.php-debug - - bmewburn.vscode-intelephense-client - -github: - prebuilds: - master: false - branches: false - pullRequests: false - pullRequestsFromForks: false - addCheck: false - addComment: false - addBadge: true diff --git a/.gitpod/Dockerfile b/.gitpod/Dockerfile deleted file mode 100644 index 50d7443ee..000000000 --- a/.gitpod/Dockerfile +++ /dev/null @@ -1,71 +0,0 @@ -FROM gitpod/workspace-mysql - -# Install XDebug extension -RUN sudo apt-get update -q \ - && sudo apt-get install -y \ - php-dev \ - golang-go \ - && sudo pecl install xdebug - -# Install Composer 2 (Gitpod comes pre-installed with Composer 1) - borrowed from official Composer Docker image -ENV COMPOSER_ALLOW_SUPERUSER 1 -ENV COMPOSER_HOME /tmp -ENV COMPOSER_VERSION 2.1.6 - -RUN set -eux; \ - curl \ - --silent \ - --fail \ - --location \ - --retry 3 \ - --output /tmp/keys.dev.pub \ - --url https://raw.githubusercontent.com/composer/composer.github.io/e7f28b7200249f8e5bc912b42837d4598c74153a/snapshots.pub \ - ; \ - php -r " \ - \$signature = '4ac45767e5ec22652f0c1167cbbb8a2b0c708369153e328cad90147dafe50952'; \ - \$hash = hash('sha256', preg_replace('{\s}', '', file_get_contents('/tmp/keys.dev.pub'))); \ - if (!hash_equals(\$signature, \$hash)) { \ - echo 'Integrity check failed, dev public key is either corrupt or worse.' . PHP_EOL; \ - exit(1); \ - }" \ - ; \ - curl \ - --silent \ - --fail \ - --location \ - --retry 3 \ - --output /tmp/keys.tags.pub \ - --url https://raw.githubusercontent.com/composer/composer.github.io/e7f28b7200249f8e5bc912b42837d4598c74153a/releases.pub \ - ; \ - php -r " \ - \$signature = '57815ba27e54dc317ecc7cc5573090d087719ba68f3bb7234e5d42d084a14642'; \ - \$hash = hash('sha256', preg_replace('{\s}', '', file_get_contents('/tmp/keys.tags.pub'))); \ - if (!hash_equals(\$signature, \$hash)) { \ - echo 'Integrity check failed, tags public key is either corrupt or worse.' . PHP_EOL; \ - exit(1); \ - }" \ - ; \ - curl \ - --silent \ - --fail \ - --location \ - --retry 3 \ - --output /tmp/installer.php \ - --url https://raw.githubusercontent.com/composer/getcomposer.org/f24b8f860b95b52167f91bbd3e3a7bcafe043038/web/installer \ - ; \ - php -r " \ - \$signature = '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3'; \ - \$hash = hash('sha384', file_get_contents('/tmp/installer.php')); \ - if (!hash_equals(\$signature, \$hash)) { \ - echo 'Integrity check failed, installer is either corrupt or worse.' . PHP_EOL; \ - exit(1); \ - }" \ - ; \ - sudo php /tmp/installer.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION}; \ - composer --ansi --version --no-interaction; \ - composer diagnose; \ - rm -f /tmp/installer.php; \ - sudo find /tmp -type d -exec chmod -v 1777 {} + - -# Configure Xdebug -RUN sudo bash -c "echo -e '\nzend_extension = /usr/lib/php/20190902/xdebug.so\n\n[XDebug]\nxdebug.mode=debug\nxdebug.start_with_request = 1\nxdebug.client_host = 127.0.0.1\n' >> /etc/php/7.4/cli/php.ini" \ No newline at end of file diff --git a/.gitpod/README.md b/.gitpod/README.md deleted file mode 100644 index 183ca41dd..000000000 --- a/.gitpod/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# Winter CMS on Gitpod - -Winter CMS now supports the [Gitpod.io](https://gitpod.io) service to provide near-instant development and testing environments for Winter CMS. - -This service allows you to check out the Winter CMS codebase at any commit, any branch or any pull request and be given a full Visual Studio Code environment that is completely configured and bootstrapped to run Winter CMS immediately. - -Each instance contains the following: - -- Winter CMS with the [DebugBar plugin](https://github.com/wintercms/wn-debugbar-plugin). -- VSCode. -- MySQL 5.7. -- PHP 7.4 with all required extensions. -- PHP Xdebug extension. -- Composer 2. -- [MailHog service](https://github.com/mailhog/MailHog/) for capturing emails. - -To use this service, you will need an account on Gitpod - one can easily be created by using your GitHub login. You will receive 50 hours per month free for use on Gitpod, but can opt to increase your hours (or even get unlimited hours) by [purchasing a higher plan](https://www.gitpod.io/pricing) on Gitpod. - -## Creating a Gitpod instance - -There are several ways to create a Gitpod instance of Winter CMS: - -- Use one of the **Open in Gitpod** button, which will be available in the README of Winter CMS, as well as any pull request submitted to Winter CMS. -- Install the [Gitpod extension](https://www.gitpod.io/docs/browser-extension#browser-extension) for Chrome or Firefox, which provides a **Gitpod** button in GitHub. -- Manually create an instance by copying a GitHub address within the Winter CMS repo, and prefixing the address with `https://gitpod.io/#/` - -The Gitpod instance may take a minute or two to boot up if it has not been pre-built. - -> **Note:** For brevity, Gitpod instances have the initial admin account set to **admin / admin** as the username and password to login. If you intend to share the URL, we recommend you change this password. - -## Accessing the services - -The Gitpod instance is set-up to boot all necessary services and then provides two web-facing services - the Winter CMS install itself, which is run on port 8000, and MailHog, which is run on port 8025. - -You can click the **Ports** section in the status bar of VSCode, which will take you to the available ports, and click on one of these ports to view the actions for the port. The "globe" icon will open up a special URL which will access the service on that port. We automatically load up Winter CMS on boot in a new tab. - -### MySQL - -By default, MySQL only runs locally within the Gitpod instance, and cannot be connected to from the outside. However, you can use the [Gitpod Local Companion](https://www.gitpod.io/blog/local-app) service to tunnel into the running Gitpod instance and access its services on your own computer. - -Install the app for your OS, then run `gitpod-local-companion-[darwin|linux|windows]` to set up the tunneling service. For MySQL, this will make the database available on port 3306 on your computer. - -You can then connect to it using any MySQL management program of your choice. - -## Config files - -By default, the Winter CMS Gitpod instance will use `php artisan winter:env` to create an `.env` file that will contain your config. Because this command rewrites the main config files in the `config` directory, which will appear as changes in Git, we mark these files as "unwatched" in Git so that they are not committed to GitHub. - -If you are editing a pull request that does contain config changes that you wish to include in the PR, you can use the `.gitpod/gitpod-show-config` helper script inside your Gitpod instance to make these files appear in the Git changes. - -## Debugging - -Debugging Winter CMS in Gitpod is super simple - all necessary setup has already been done! You can access the Debugging tab in VSCode and press start on the debugging tool to use breakpoints within your code. Note that Gitpod does impose a time limit on responses from the web server, so you may find that using the debugging will result in timeouts when viewing your Winter CMS instance, however, debugging should still continue without issue. diff --git a/.gitpod/gitpod-cmd b/.gitpod/gitpod-cmd deleted file mode 100755 index fd285b6e8..000000000 --- a/.gitpod/gitpod-cmd +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# Create database -gp await-port 3306 && mysql -e "DROP DATABASE IF EXISTS winter" -mysql -e "CREATE DATABASE winter" - -# Create environment file -php artisan winter:env - -# Hide config file changes from Git -./.gitpod/gitpod-hide-config - -# Exclude Debugbar files from Git -echo -e "plugins/winter/debugbar\nstorage/debugbar" >> ./.git/info/exclude - -# Rewrite configuration -sed -i "s|APP_URL=.*$|APP_URL=${GITPOD_WORKSPACE_URL}|g" .env -sed -i "s|APP_URL=https://|APP_URL=https://8000-|g" .env -sed -i "s|APP_KEY=.*$|APP_KEY=$(cat /dev/urandom | base64 | head -c 32)|g" .env -sed -i "s|DB_CONNECTION=.*$|DB_CONNECTION=mysql|g" .env -sed -i "s|DB_HOST=.*$|DB_HOST=127.0.0.1|g" .env -sed -i "s|DB_PORT=.*$|DB_PORT=3306|g" .env -sed -i "s|DB_DATABASE=.*$|DB_DATABASE=winter|g" .env -sed -i "s|DB_USERNAME=.*$|DB_USERNAME=root|g" .env -sed -i "s|DB_PASSWORD=.*$|DB_PASSWORD=|g" .env -sed -i "s|MAIL_DRIVER=.*$|MAIL_DRIVER=smtp|g" .env -sed -i "s|MAIL_HOST=.*$|MAIL_HOST=127.0.0.1|g" .env -sed -i "s|MAIL_PORT=.*$|MAIL_PORT=1025|g" .env -sed -i "s|MAIL_ENCRYPTION=.*$|MAIL_ENCRYPTION=null|g" .env -sed -i "s|MAIL_USERNAME=.*$|MAIL_USERNAME=null|g" .env -sed -i "s|MAIL_PASSWORD=.*$|MAIL_PASSWORD=null|g" .env -sed -i "s|'trustedProxies' => null|'trustedProxies' => '*'|g" config/app.php - -# Run migrations -php artisan winter:up - -# Set admin password -php artisan winter:passwd admin admin - -# Run Mailhog in background -/workspace/go/bin/MailHog >/dev/null 2>&1 & - -# Serve site -php artisan serve >/dev/null 2>&1 & -gp await-port 8000 && gp preview --external $(gp url 8000) - -# Open README -gp open ./.gitpod/README.md diff --git a/.gitpod/gitpod-hide-config b/.gitpod/gitpod-hide-config deleted file mode 100755 index 149a84f8a..000000000 --- a/.gitpod/gitpod-hide-config +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Hide config file edits from Git changes -git update-index --skip-worktree config/app.php -git update-index --skip-worktree config/cache.php -git update-index --skip-worktree config/cms.php -git update-index --skip-worktree config/database.php -git update-index --skip-worktree config/mail.php -git update-index --skip-worktree config/queue.php -git update-index --skip-worktree config/session.php -git update-index --skip-worktree package.json diff --git a/.gitpod/gitpod-init b/.gitpod/gitpod-init deleted file mode 100755 index 086705c79..000000000 --- a/.gitpod/gitpod-init +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Install Mailhog -go get github.com/mailhog/MailHog - -# Add Debug Bar plugin -composer require --no-update "winter/wn-debugbar-plugin" "4.0.0" - -# Install Composer dependencies -composer update --no-progress -git reset --hard - -# Setup VSCode config -mkdir -p ./.vscode -cp ./.gitpod/vscode-launch.json ./.vscode/launch.json diff --git a/.gitpod/gitpod-show-config b/.gitpod/gitpod-show-config deleted file mode 100755 index d21820e87..000000000 --- a/.gitpod/gitpod-show-config +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Hide config file edits from Git changes -git update-index --no-skip-worktree config/app.php -git update-index --no-skip-worktree config/cache.php -git update-index --no-skip-worktree config/cms.php -git update-index --no-skip-worktree config/database.php -git update-index --no-skip-worktree config/mail.php -git update-index --no-skip-worktree config/queue.php -git update-index --no-skip-worktree config/session.php -git update-index --no-skip-worktree package.json diff --git a/.gitpod/vscode-launch.json b/.gitpod/vscode-launch.json deleted file mode 100644 index 542060d33..000000000 --- a/.gitpod/vscode-launch.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Listen for Xdebug", - "type": "php", - "request": "launch", - "port": 9003 - } - ] -} \ No newline at end of file diff --git a/README.md b/README.md index 502b72964..4f0c15ea9 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,7 @@ No matter how large or small your project is, Winter provides a rich development [![Version](https://img.shields.io/github/v/release/wintercms/winter?sort=semver&style=flat-square)](https://github.com/wintercms/winter/releases) [![Tests](https://img.shields.io/github/actions/workflow/status/wintercms/winter/tests.yml?branch=develop&label=tests&style=flat-square)](https://github.com/wintercms/winter/actions) [![License](https://img.shields.io/github/license/wintercms/winter?label=open%20source&style=flat-square)](https://packagist.org/packages/wintercms/winter) -[![Discord](https://img.shields.io/discord/816852513684193281?label=discord&style=flat-square)](https://discord.gg/D5MFSPH6Ux) -[![RINGER](https://www.ringerhq.com/images/get-support-on-ringer.svg)](https://www.ringerhq.com/i/wintercms/winter) - -[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/wintercms/winter) +[![Discord](https://img.shields.io/badge/discord-join-purple?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/D5MFSPH6Ux) ## Installing Winter @@ -90,6 +87,10 @@ Winter CMS development is financially supported by the generosity of the followi ### Organizations +[![Route4Me logo, Route Planning and Route Mapping](https://raw.githubusercontent.com/wintercms/winter/develop/.github/assets/sponsor-route4me.png)](https://route4me.com/?utm_source=wintercms) + +Route4Me is a [Premium Sponsor to the Winter CMS Open Collective](https://opencollective.com/wintercms). + [![Froala logo](https://froala.com/wp-content/uploads/2019/10/froala.svg)](https://froala.com/wysiwyg-editor/) Froala provides a perpetual, Enterprise license to Winter CMS which allows us and our users to use the Froala WYSIWYG Editor in Winter CMS powered projects. diff --git a/composer.json b/composer.json index 7c6a2dd16..3bb371bc2 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ ], "support": { "issues": "https://github.com/wintercms/winter/issues", - "docs": "https://wintercms.github.io/docs/", + "docs": "https://wintercms.com/docs/", "discord": "https://discord.gg/D5MFSPH6Ux", "source": "https://github.com/wintercms/winter" }, @@ -47,7 +47,9 @@ }, "scripts": { "post-create-project-cmd": [ - "@php artisan key:generate" + "@php artisan winter:install", + "@php artisan winter:env", + "@php artisan winter:mirror public --relative" ], "post-update-cmd": [ "@php artisan winter:version", diff --git a/config/app.php b/config/app.php index 1520e862c..b740d465e 100644 --- a/config/app.php +++ b/config/app.php @@ -14,6 +14,10 @@ | You can create a CMS page with route "/error" to set the contents | of this page. Otherwise a default error page is shown. | + | IMPORTANT: Always have debug mode set to false in production environments + | as it can reveal sensitive information about your application and + | infrastructure to untrusted users through more detailed errors. + | */ 'debug' => env('APP_DEBUG', true), diff --git a/modules/backend/ServiceProvider.php b/modules/backend/ServiceProvider.php index d300988aa..8d352d294 100644 --- a/modules/backend/ServiceProvider.php +++ b/modules/backend/ServiceProvider.php @@ -1,13 +1,19 @@ registerMailer(); $this->registerAssetBundles(); $this->registerBackendPermissions(); + $this->registerBackendUserEvents(); /* * Backend specific @@ -55,7 +62,7 @@ protected function registerConsole() $this->registerConsoleCommand('create.controller', \Backend\Console\CreateController::class); $this->registerConsoleCommand('create.formwidget', \Backend\Console\CreateFormWidget::class); $this->registerConsoleCommand('create.reportwidget', \Backend\Console\CreateReportWidget::class); - + $this->registerConsoleCommand('user.create', \Backend\Console\UserCreate::class); $this->registerConsoleCommand('winter.passwd', \Backend\Console\WinterPasswd::class); } @@ -207,6 +214,28 @@ protected function registerBackendPermissions() }); } + /** + * Register the backend user events + */ + protected function registerBackendUserEvents() + { + Event::listen('backend.user.login', function (\Backend\Models\User $user) { + // @TODO: Deprecate this, and only run migrations when it makes sense + $runMigrationsOnLogin = (bool) Config::get('cms.runMigrationsOnLogin', Config::get('app.debug', false)); + if ($runMigrationsOnLogin) { + try { + // Load version updates + UpdateManager::instance()->update(); + } catch (Exception $e) { + Flash::error($e->getMessage()); + } + } + + // Log the sign in event + AccessLog::add($user); + }); + } + /* * Register widgets */ diff --git a/modules/backend/assets/css/winter.css b/modules/backend/assets/css/winter.css index ed82c286b..765423d07 100644 --- a/modules/backend/assets/css/winter.css +++ b/modules/backend/assets/css/winter.css @@ -304,7 +304,7 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch} .control-treeview ol>li>div{font-size:14px;font-weight:normal;background:#fff;border-bottom:1px solid #ecf0f1;position:relative} .control-treeview ol>li>div>a{color:#2b3e50;padding:11px 45px 10px 61px;display:block;line-height:150%;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} .control-treeview ol>li>div:before{content:' ';background-image:url(../images/treeview-icons.png);background-position:0 -28px;background-repeat:no-repeat;background-size:42px auto;position:absolute;width:21px;height:22px;left:28px;top:15px} -.control-treeview ol>li>div span.comment{display:block;font-weight:400;color:#95a5a6;font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis} +.control-treeview ol>li>div span.comment{display:block;font-weight:400;color:#95a5a6;font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .control-treeview ol>li>div>span.expand{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;display:none;position:absolute;width:20px;height:20px;top:19px;left:2px;cursor:pointer;color:#bdc3c7;-webkit-transition:transform 0.1s ease;transition:transform 0.1s ease} .control-treeview ol>li>div>span.expand:before{font-family:"Font Awesome 6 Free";font-weight:900;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-variant:normal;text-rendering:auto;content:"\f0da";line-height:100%;font-size:15px;position:relative;left:8px;top:2px} .control-treeview ol>li>div>span.drag-handle{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;-webkit-transition:opacity 0.4s;transition:opacity 0.4s;position:absolute;right:9px;bottom:0;width:18px;height:19px;cursor:move;color:#bdc3c7;opacity:0;filter:alpha(opacity=0)} @@ -358,8 +358,10 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch} .control-treeview ol>li.has-subitems>div.popover-highlight:before{background-position:0 -52px} .control-treeview ol>li.has-subitems>div span.expand{display:block} .control-treeview ol>li.placeholder{position:relative;opacity:0.5;filter:alpha(opacity=50)} +.control-treeview ol>li.placeholder ol{display:none} .control-treeview ol>li.dragged{position:absolute;z-index:2000;opacity:0.25;filter:alpha(opacity=25)} .control-treeview ol>li.dragged>div{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px} +.control-treeview ol>li.dragged ol{display:none} .control-treeview ol>li.drop-target>div{background-color:#2581b8 !important} .control-treeview ol>li.drop-target>div>a{color:#fff} .control-treeview ol>li.drop-target>div>a>span.comment{color:#fff} @@ -438,7 +440,7 @@ html.mobile .control-scrollbar{overflow:auto;-webkit-overflow-scrolling:touch} .control-treeview.treeview-light ol>li>div>ul.submenu li p a{display:table-cell;vertical-align:middle;height:100%;padding:0 20px;font-size:13px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} .control-treeview.treeview-light ol>li>div>ul.submenu li p a i.control-icon{font-size:22px;margin-right:0} body.dragging .control-treeview ol.dragging, -body.dragging .control-treeview ol.dragging ol{background:#ccc;padding-right:20px;-webkit-transition:padding 1s;transition:padding 1s} +body.dragging .control-treeview ol.dragging ol{background:#ccc;padding-right:0} body.dragging .control-treeview ol.dragging>li>div, body.dragging .control-treeview ol.dragging ol>li>div{margin-right:0;-webkit-transition:margin 1s;transition:margin 1s} body.dragging .control-treeview ol.dragging>li>div .custom-checkbox, @@ -1101,4 +1103,4 @@ html.cssanimations .fancy-layout *:not(.nested-form)>.form-widget>.layout-row>.f .flyout-toggle i{margin:7px 0 0 6px;display:inline-block} .flyout-toggle:hover i{color:#fff} body.flyout-visible{overflow:hidden} -body.flyout-visible .flyout-overlay{background-color:rgba(0,0,0,0.3)} \ No newline at end of file +body.flyout-visible .flyout-overlay{background-color:rgba(0,0,0,0.3)} diff --git a/modules/backend/assets/less/controls/treeview.less b/modules/backend/assets/less/controls/treeview.less index 3b2b24b8a..c9da29a73 100644 --- a/modules/backend/assets/less/controls/treeview.less +++ b/modules/backend/assets/less/controls/treeview.less @@ -57,6 +57,7 @@ margin-top: 2px; overflow: hidden; text-overflow: ellipsis; + white-space: nowrap; } > span.expand { @@ -297,6 +298,10 @@ &.placeholder { position: relative; .opacity(.5); + + ol { + display: none; + } } &.dragged { @@ -307,6 +312,10 @@ > div { .border-radius(3px); } + + ol { + display: none; + } } &.drop-target { @@ -548,8 +557,7 @@ body.dragging .control-treeview { ol.dragging, ol.dragging ol { background: #ccc; - padding-right: 20px; - .transition(padding 1s); + padding-right: 0; > li { > div { diff --git a/modules/backend/assets/ui/js/build/backend.js b/modules/backend/assets/ui/js/build/backend.js index 133d5e72d..251900720 100644 --- a/modules/backend/assets/ui/js/build/backend.js +++ b/modules/backend/assets/ui/js/build/backend.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[147],{613:function(e,t,n){var i=n(471),r=n(341);class s extends Snowboard.Singleton{listens(){return{ready:"ready",ajaxFetchOptions:"ajaxFetchOptions",ajaxUpdateComplete:"ajaxUpdateComplete"}}ready(){window.jQuery&&((0,r.c)("render"),document.addEventListener("$render",(()=>{this.snowboard.globalEvent("render")})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((e=>{this.hasToken()&&(e.headers||(e.headers={}),e.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(e){this.hasToken()&&(e.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const e=document.querySelector('meta[name="csrf-token"]');return!!e&&!!e.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}class a extends Snowboard.PluginBase{construct(e,t){if(e instanceof Snowboard.PluginBase==!1)throw new Error("Event handling can only be applied to Snowboard classes.");if(!t)throw new Error("Event prefix is required.");this.instance=e,this.eventPrefix=t,this.events=[]}on(e,t){this.events.push({event:e,callback:t})}off(e,t){this.events=this.events.filter((n=>n.event!==e||n.callback!==t))}once(e,t){var n=this;const i=this.events.push({event:e,callback:function(){t(...arguments),n.events.splice(i-1,1)}})}fire(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e));let s=!1;r.forEach((e=>{s||!1===e.callback(...n)&&(s=!0)})),s||this.snowboard.globalEvent(`${this.eventPrefix}.${e}`,...n)}firePromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e)),s=r.filter((e=>null!==e),r.map((e=>e.callback(...n))));Promise.all(s).then((()=>{this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${e}`,...n)}))}}class o extends Snowboard.Singleton{construct(){this.registeredWidgets=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady",render:"onRender",ajaxUpdate:"onAjaxUpdate"}}register(e,t,n){this.registeredWidgets.push({control:e,widget:t,callback:n})}unregister(e){this.registeredWidgets=this.registeredWidgets.filter((t=>t.control!==e))}onReady(){this.initializeWidgets(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}onRender(){this.initializeWidgets(document.body)}onAjaxUpdate(e){this.initializeWidgets(e)}initializeWidgets(e){this.registeredWidgets.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.control}"]:not([data-widget-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.widgetInitialized)return;const n=this.snowboard[t.widget](e);this.elements.push({element:e,instance:n}),e.dataset.widgetInitialized=!0,this.snowboard.globalEvent("backend.widget.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getWidget(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destruct(),this.elements=this.elements.filter((t=>t!==e))}))}))}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(e=>{e.addPlugin("backend.ajax.handler",s),e.addPlugin("backend.ui.eventHandler",a),e.addPlugin("backend.ui.widgetHandler",o),e["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(t,n)=>{e.assetLoader().load(t).then((()=>{n&&"function"==typeof n&&n()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=i}},function(e){e.O(0,[101],(function(){return t=613,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[476],{286:function(e,t,n){var i=n(35),r=n(171);class s extends Snowboard.Singleton{listens(){return{ready:"ready",ajaxFetchOptions:"ajaxFetchOptions",ajaxUpdateComplete:"ajaxUpdateComplete"}}ready(){window.jQuery&&((0,r.M)("render"),document.addEventListener("$render",(()=>{this.snowboard.globalEvent("render")})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((e=>{this.hasToken()&&(e.headers||(e.headers={}),e.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(e){this.hasToken()&&(e.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const e=document.querySelector('meta[name="csrf-token"]');return!!e&&!!e.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}class a extends Snowboard.PluginBase{construct(e,t){if(e instanceof Snowboard.PluginBase==!1)throw new Error("Event handling can only be applied to Snowboard classes.");if(!t)throw new Error("Event prefix is required.");this.instance=e,this.eventPrefix=t,this.events=[]}on(e,t){this.events.push({event:e,callback:t})}off(e,t){this.events=this.events.filter((n=>n.event!==e||n.callback!==t))}once(e,t){var n=this;const i=this.events.push({event:e,callback:function(){t(...arguments),n.events.splice(i-1,1)}})}fire(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e));let s=!1;r.forEach((e=>{s||!1===e.callback(...n)&&(s=!0)})),s||this.snowboard.globalEvent(`${this.eventPrefix}.${e}`,...n)}firePromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e)),s=r.filter((e=>null!==e),r.map((e=>e.callback(...n))));Promise.all(s).then((()=>{this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${e}`,...n)}))}}class o extends Snowboard.Singleton{construct(){this.registeredWidgets=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady",render:"onRender",ajaxUpdate:"onAjaxUpdate"}}register(e,t,n){this.registeredWidgets.push({control:e,widget:t,callback:n})}unregister(e){this.registeredWidgets=this.registeredWidgets.filter((t=>t.control!==e))}onReady(){this.initializeWidgets(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}onRender(){this.initializeWidgets(document.body)}onAjaxUpdate(e){this.initializeWidgets(e)}initializeWidgets(e){this.registeredWidgets.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.control}"]:not([data-widget-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.widgetInitialized)return;const n=this.snowboard[t.widget](e);this.elements.push({element:e,instance:n}),e.dataset.widgetInitialized=!0,this.snowboard.globalEvent("backend.widget.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getWidget(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destruct(),this.elements=this.elements.filter((t=>t!==e))}))}))}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(e=>{e.addPlugin("backend.ajax.handler",s),e.addPlugin("backend.ui.eventHandler",a),e.addPlugin("backend.ui.widgetHandler",o),e["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(t,n)=>{e.assetLoader().load(t).then((()=>{n&&"function"==typeof n&&n()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=i}},function(e){e.O(0,[429],(function(){return t=286,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/modules/backend/assets/ui/js/build/manifest.js b/modules/backend/assets/ui/js/build/manifest.js index 2de8a0b77..058ea1c4c 100644 --- a/modules/backend/assets/ui/js/build/manifest.js +++ b/modules/backend/assets/ui/js/build/manifest.js @@ -1 +1 @@ -!function(){"use strict";var n,e={},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,exports:{}};return e[n](i,i.exports,t),i.exports}t.m=e,n=[],t.O=function(e,r,o,i){if(!r){var u=1/0;for(l=0;l=i)&&Object.keys(t.O).every((function(n){return t.O[n](r[c])}))?r.splice(c--,1):(f=!1,i0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[r,o,i]},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},function(){var n={207:0};t.O.j=function(e){return 0===n[e]};var e=function(e,r){var o,i,u=r[0],f=r[1],c=r[2],a=0;if(u.some((function(e){return 0!==n[e]}))){for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var l=c(t)}for(e&&e(r);a=i)&&Object.keys(t.O).every((function(n){return t.O[n](r[c])}))?r.splice(c--,1):(f=!1,i0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[r,o,i]},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},function(){var n={624:0};t.O.j=function(e){return 0===n[e]};var e=function(e,r){var o,i,u=r[0],f=r[1],c=r[2],a=0;if(u.some((function(e){return 0!==n[e]}))){for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var l=c(t)}for(e&&e(r);a{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},471:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return hr},Comment:function(){return is},EffectScope:function(){return pe},Fragment:function(){return os},KeepAlive:function(){return Er},ReactiveEffect:function(){return Te},Static:function(){return cs},Suspense:function(){return Jn},Teleport:function(){return ns},Text:function(){return ss},Transition:function(){return Ji},TransitionGroup:function(){return hc},VueElement:function(){return Ui},assertNumber:function(){return sn},callWithAsyncErrorHandling:function(){return ln},callWithErrorHandling:function(){return cn},camelize:function(){return Q},capitalize:function(){return ne},cloneVNode:function(){return Ns},compatUtils:function(){return Ci},compile:function(){return Bf},computed:function(){return ri},createApp:function(){return Kc},createBlock:function(){return vs},createCommentVNode:function(){return Ms},createElementBlock:function(){return gs},createElementVNode:function(){return ws},createHydrationRenderer:function(){return qo},createPropsRestProxy:function(){return pi},createRenderer:function(){return Go},createSSRApp:function(){return Gc},createSlots:function(){return ro},createStaticVNode:function(){return Os},createTextVNode:function(){return Rs},createVNode:function(){return ks},customRef:function(){return Xt},defineAsyncComponent:function(){return Cr},defineComponent:function(){return Sr},defineCustomElement:function(){return Bi},defineEmits:function(){return si},defineExpose:function(){return ii},defineProps:function(){return oi},defineSSRCustomElement:function(){return ji},devtools:function(){return Nn},effect:function(){return Re},effectScope:function(){return de},getCurrentInstance:function(){return Ds},getCurrentScope:function(){return me},getTransitionRawChildren:function(){return br},guardReactiveProps:function(){return Ts},h:function(){return hi},handleError:function(){return un},hydrate:function(){return zc},initCustomFormatter:function(){return vi},initDirectivesForSSR:function(){return Yc},inject:function(){return nr},isMemoSame:function(){return _i},isProxy:function(){return Ft},isReactive:function(){return Pt},isReadonly:function(){return At},isRef:function(){return Ut},isRuntimeOnly:function(){return Zs},isShallow:function(){return It},isVNode:function(){return ys},markRaw:function(){return Lt},mergeDefaults:function(){return fi},mergeProps:function(){return Fs},nextTick:function(){return _n},normalizeClass:function(){return p},normalizeProps:function(){return d},normalizeStyle:function(){return c},onActivated:function(){return Nr},onBeforeMount:function(){return $r},onBeforeUnmount:function(){return jr},onBeforeUpdate:function(){return Vr},onDeactivated:function(){return Rr},onErrorCaptured:function(){return zr},onMounted:function(){return Lr},onRenderTracked:function(){return Wr},onRenderTriggered:function(){return Hr},onScopeDispose:function(){return ge},onServerPrefetch:function(){return Ur},onUnmounted:function(){return Dr},onUpdated:function(){return Br},openBlock:function(){return as},popScopeId:function(){return Bn},provide:function(){return tr},proxyRefs:function(){return Yt},pushScopeId:function(){return Vn},queuePostFlushCb:function(){return xn},reactive:function(){return Tt},readonly:function(){return Rt},ref:function(){return Ht},registerRuntimeCompiler:function(){return Ys},render:function(){return Wc},renderList:function(){return no},renderSlot:function(){return oo},resolveComponent:function(){return Yr},resolveDirective:function(){return Qr},resolveDynamicComponent:function(){return Xr},resolveFilter:function(){return xi},resolveTransitionHooks:function(){return gr},setBlockTracking:function(){return hs},setDevtoolsHook:function(){return Mn},setTransitionHooks:function(){return _r},shallowReactive:function(){return Nt},shallowReadonly:function(){return Ot},shallowRef:function(){return Wt},ssrContextKey:function(){return mi},ssrUtils:function(){return Si},stop:function(){return Oe},toDisplayString:function(){return x},toHandlerKey:function(){return re},toHandlers:function(){return io},toRaw:function(){return $t},toRef:function(){return tn},toRefs:function(){return Qt},transformVNodeArgs:function(){return bs},triggerRef:function(){return Gt},unref:function(){return qt},useAttrs:function(){return ui},useCssModule:function(){return Hi},useCssVars:function(){return Wi},useSSRContext:function(){return gi},useSlots:function(){return li},useTransitionState:function(){return pr},vModelCheckbox:function(){return xc},vModelDynamic:function(){return Rc},vModelRadio:function(){return wc},vModelSelect:function(){return kc},vModelText:function(){return Sc},vShow:function(){return Lc},version:function(){return bi},warn:function(){return on},watch:function(){return cr},watchEffect:function(){return rr},watchPostEffect:function(){return or},watchSyncEffect:function(){return sr},withAsyncContext:function(){return di},withCtx:function(){return Dn},withDefaults:function(){return ci},withDirectives:function(){return Kr},withKeys:function(){return $c},withMemo:function(){return yi},withModifiers:function(){return Ic},withScopeId:function(){return jn}});var r={};function o(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(r),n.d(r,{BaseTransition:function(){return hr},Comment:function(){return is},EffectScope:function(){return pe},Fragment:function(){return os},KeepAlive:function(){return Er},ReactiveEffect:function(){return Te},Static:function(){return cs},Suspense:function(){return Jn},Teleport:function(){return ns},Text:function(){return ss},Transition:function(){return Ji},TransitionGroup:function(){return hc},VueElement:function(){return Ui},assertNumber:function(){return sn},callWithAsyncErrorHandling:function(){return ln},callWithErrorHandling:function(){return cn},camelize:function(){return Q},capitalize:function(){return ne},cloneVNode:function(){return Ns},compatUtils:function(){return Ci},computed:function(){return ri},createApp:function(){return Kc},createBlock:function(){return vs},createCommentVNode:function(){return Ms},createElementBlock:function(){return gs},createElementVNode:function(){return ws},createHydrationRenderer:function(){return qo},createPropsRestProxy:function(){return pi},createRenderer:function(){return Go},createSSRApp:function(){return Gc},createSlots:function(){return ro},createStaticVNode:function(){return Os},createTextVNode:function(){return Rs},createVNode:function(){return ks},customRef:function(){return Xt},defineAsyncComponent:function(){return Cr},defineComponent:function(){return Sr},defineCustomElement:function(){return Bi},defineEmits:function(){return si},defineExpose:function(){return ii},defineProps:function(){return oi},defineSSRCustomElement:function(){return ji},devtools:function(){return Nn},effect:function(){return Re},effectScope:function(){return de},getCurrentInstance:function(){return Ds},getCurrentScope:function(){return me},getTransitionRawChildren:function(){return br},guardReactiveProps:function(){return Ts},h:function(){return hi},handleError:function(){return un},hydrate:function(){return zc},initCustomFormatter:function(){return vi},initDirectivesForSSR:function(){return Yc},inject:function(){return nr},isMemoSame:function(){return _i},isProxy:function(){return Ft},isReactive:function(){return Pt},isReadonly:function(){return At},isRef:function(){return Ut},isRuntimeOnly:function(){return Zs},isShallow:function(){return It},isVNode:function(){return ys},markRaw:function(){return Lt},mergeDefaults:function(){return fi},mergeProps:function(){return Fs},nextTick:function(){return _n},normalizeClass:function(){return p},normalizeProps:function(){return d},normalizeStyle:function(){return c},onActivated:function(){return Nr},onBeforeMount:function(){return $r},onBeforeUnmount:function(){return jr},onBeforeUpdate:function(){return Vr},onDeactivated:function(){return Rr},onErrorCaptured:function(){return zr},onMounted:function(){return Lr},onRenderTracked:function(){return Wr},onRenderTriggered:function(){return Hr},onScopeDispose:function(){return ge},onServerPrefetch:function(){return Ur},onUnmounted:function(){return Dr},onUpdated:function(){return Br},openBlock:function(){return as},popScopeId:function(){return Bn},provide:function(){return tr},proxyRefs:function(){return Yt},pushScopeId:function(){return Vn},queuePostFlushCb:function(){return xn},reactive:function(){return Tt},readonly:function(){return Rt},ref:function(){return Ht},registerRuntimeCompiler:function(){return Ys},render:function(){return Wc},renderList:function(){return no},renderSlot:function(){return oo},resolveComponent:function(){return Yr},resolveDirective:function(){return Qr},resolveDynamicComponent:function(){return Xr},resolveFilter:function(){return xi},resolveTransitionHooks:function(){return gr},setBlockTracking:function(){return hs},setDevtoolsHook:function(){return Mn},setTransitionHooks:function(){return _r},shallowReactive:function(){return Nt},shallowReadonly:function(){return Ot},shallowRef:function(){return Wt},ssrContextKey:function(){return mi},ssrUtils:function(){return Si},stop:function(){return Oe},toDisplayString:function(){return x},toHandlerKey:function(){return re},toHandlers:function(){return io},toRaw:function(){return $t},toRef:function(){return tn},toRefs:function(){return Qt},transformVNodeArgs:function(){return bs},triggerRef:function(){return Gt},unref:function(){return qt},useAttrs:function(){return ui},useCssModule:function(){return Hi},useCssVars:function(){return Wi},useSSRContext:function(){return gi},useSlots:function(){return li},useTransitionState:function(){return pr},vModelCheckbox:function(){return xc},vModelDynamic:function(){return Rc},vModelRadio:function(){return wc},vModelSelect:function(){return kc},vModelText:function(){return Sc},vShow:function(){return Lc},version:function(){return bi},warn:function(){return on},watch:function(){return cr},watchEffect:function(){return rr},watchPostEffect:function(){return or},watchSyncEffect:function(){return sr},withAsyncContext:function(){return di},withCtx:function(){return Dn},withDefaults:function(){return ci},withDirectives:function(){return Kr},withKeys:function(){return $c},withMemo:function(){return yi},withModifiers:function(){return Ic},withScopeId:function(){return jn}});const s={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e){if(F(e)){const t={};for(let n=0;n{if(e){const n=e.split(u);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(j(e))t=e;else if(F(e))for(let n=0;nb(e,t)))}const x=e=>j(e)?e:null==e?"":F(e)||U(e)&&(e.toString===W||!B(e.toString))?JSON.stringify(e,C,2):String(e),C=(e,t)=>t&&t.__v_isRef?C(e,t.value):$(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()]}:!U(t)||F(t)||G(t)?t:String(t),w={},k=[],E=()=>{},T=()=>!1,N=/^on[^a-z]/,R=e=>N.test(e),O=e=>e.startsWith("onUpdate:"),M=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,I=(e,t)=>A.call(e,t),F=Array.isArray,$=e=>"[object Map]"===z(e),L=e=>"[object Set]"===z(e),V=e=>"[object Date]"===z(e),B=e=>"function"==typeof e,j=e=>"string"==typeof e,D=e=>"symbol"==typeof e,U=e=>null!==e&&"object"==typeof e,H=e=>U(e)&&B(e.then)&&B(e.catch),W=Object.prototype.toString,z=e=>W.call(e),K=e=>z(e).slice(8,-1),G=e=>"[object Object]"===z(e),q=e=>j(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,J=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},X=/-(\w)/g,Q=Z((e=>e.replace(X,((e,t)=>t?t.toUpperCase():"")))),ee=/\B([A-Z])/g,te=Z((e=>e.replace(ee,"-$1").toLowerCase())),ne=Z((e=>e.charAt(0).toUpperCase()+e.slice(1))),re=Z((e=>e?`on${ne(e)}`:"")),oe=(e,t)=>!Object.is(e,t),se=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ce=e=>{const t=parseFloat(e);return isNaN(t)?e:t},le=e=>{const t=j(e)?Number(e):NaN;return isNaN(t)?e:t};let ue;const ae=()=>ue||(ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let fe;class pe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=fe,!e&&fe&&(this.index=(fe.scopes||(fe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=fe;try{return fe=this,e()}finally{fe=t}}else 0}on(){fe=this}off(){fe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&xe)>0,_e=e=>(e.n&xe)>0,be=new WeakMap;let Se=0,xe=1;const Ce=30;let we;const ke=Symbol(""),Ee=Symbol("");class Te{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,he(this,n)}run(){if(!this.active)return this.fn();let e=we,t=Me;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=we,we=this,Me=!0,xe=1<<++Se,Se<=Ce?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":F(e)?q(n)&&c.push(i.get("length")):(c.push(i.get(ke)),$(e)&&c.push(i.get(Ee)));break;case"delete":F(e)||(c.push(i.get(ke)),$(e)&&c.push(i.get(Ee)));break;case"set":$(e)&&c.push(i.get(ke))}if(1===c.length)c[0]&&Ve(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);Ve(ve(e))}}function Ve(e,t){const n=F(e)?e:[...e];for(const e of n)e.computed&&Be(e,t);for(const e of n)e.computed||Be(e,t)}function Be(e,t){(e!==we||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const je=o("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(D)),Ue=Je(),He=Je(!1,!0),We=Je(!0),ze=Je(!0,!0),Ke=Ge();function Ge(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ae();const n=$t(this)[t].apply(this,e);return Ie(),n}})),e}function qe(e){const t=$t(this);return Fe(t,0,e),t.hasOwnProperty(e)}function Je(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Et:kt:t?wt:Ct).get(n))return n;const s=F(n);if(!e){if(s&&I(Ke,r))return Reflect.get(Ke,r,o);if("hasOwnProperty"===r)return qe}const i=Reflect.get(n,r,o);return(D(r)?De.has(r):je(r))?i:(e||Fe(n,0,r),t?i:Ut(i)?s&&q(r)?i:i.value:U(i)?e?Rt(i):Tt(i):i)}}function Ye(e=!1){return function(t,n,r,o){let s=t[n];if(At(s)&&Ut(s)&&!Ut(r))return!1;if(!e&&(It(r)||At(r)||(s=$t(s),r=$t(r)),!F(t)&&Ut(s)&&!Ut(r)))return s.value=r,!0;const i=F(t)&&q(n)?Number(n)e,nt=e=>Reflect.getPrototypeOf(e);function rt(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),s=$t(t);n||(t!==s&&Fe(o,0,t),Fe(o,0,s));const{has:i}=nt(o),c=r?tt:n?Bt:Vt;return i.call(o,t)?c(e.get(t)):i.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return t||(e!==o&&Fe(r,0,e),Fe(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function st(e,t=!1){return e=e.__v_raw,!t&&Fe($t(e),0,ke),Reflect.get(e,"size",e)}function it(e){e=$t(e);const t=$t(this);return nt(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function ct(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=nt(n);let s=r.call(n,e);s||(e=$t(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?oe(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function lt(e){const t=$t(this),{has:n,get:r}=nt(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e));r&&r.call(t,e);const s=t.delete(e);return o&&Le(t,"delete",e,void 0),s}function ut(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function at(e,t){return function(n,r){const o=this,s=o.__v_raw,i=$t(s),c=t?tt:e?Bt:Vt;return!e&&Fe(i,0,ke),s.forEach(((e,t)=>n.call(r,c(e),c(t),o)))}}function ft(e,t,n){return function(...r){const o=this.__v_raw,s=$t(o),i=$(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,u=o[e](...r),a=n?tt:t?Bt:Vt;return!t&&Fe(s,0,l?Ee:ke),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return"delete"!==e&&this}}function dt(){const e={get(e){return rt(this,e)},get size(){return st(this)},has:ot,add:it,set:ct,delete:lt,clear:ut,forEach:at(!1,!1)},t={get(e){return rt(this,e,!1,!0)},get size(){return st(this)},has:ot,add:it,set:ct,delete:lt,clear:ut,forEach:at(!1,!0)},n={get(e){return rt(this,e,!0)},get size(){return st(this,!0)},has(e){return ot.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:at(!0,!1)},r={get(e){return rt(this,e,!0,!0)},get size(){return st(this,!0)},has(e){return ot.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ft(o,!1,!1),n[o]=ft(o,!0,!1),t[o]=ft(o,!1,!0),r[o]=ft(o,!0,!0)})),[e,n,t,r]}const[ht,mt,gt,vt]=dt();function yt(e,t){const n=t?e?vt:gt:e?mt:ht;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(I(n,r)&&r in t?n:t,r,o)}const _t={get:yt(!1,!1)},bt={get:yt(!1,!0)},St={get:yt(!0,!1)},xt={get:yt(!0,!0)};const Ct=new WeakMap,wt=new WeakMap,kt=new WeakMap,Et=new WeakMap;function Tt(e){return At(e)?e:Mt(e,!1,Ze,_t,Ct)}function Nt(e){return Mt(e,!1,Qe,bt,wt)}function Rt(e){return Mt(e,!0,Xe,St,kt)}function Ot(e){return Mt(e,!0,et,xt,Et)}function Mt(e,t,n,r,o){if(!U(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(K(c));var c;if(0===i)return e;const l=new Proxy(e,2===i?r:n);return o.set(e,l),l}function Pt(e){return At(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function At(e){return!(!e||!e.__v_isReadonly)}function It(e){return!(!e||!e.__v_isShallow)}function Ft(e){return Pt(e)||At(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function Lt(e){return ie(e,"__v_skip",!0),e}const Vt=e=>U(e)?Tt(e):e,Bt=e=>U(e)?Rt(e):e;function jt(e){Me&&we&&$e((e=$t(e)).dep||(e.dep=ve()))}function Dt(e,t){const n=(e=$t(e)).dep;n&&Ve(n)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return zt(e,!1)}function Wt(e){return zt(e,!0)}function zt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Vt(e)}get value(){return jt(this),this._value}set value(e){const t=this.__v_isShallow||It(e)||At(e);e=t?e:$t(e),oe(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Vt(e),Dt(this))}}function Gt(e){Dt(e)}function qt(e){return Ut(e)?e.value:e}const Jt={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ut(o)&&!Ut(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Yt(e){return Pt(e)?e:new Proxy(e,Jt)}class Zt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>jt(this)),(()=>Dt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Xt(e){return new Zt(e)}function Qt(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=tn(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){var n;return null===(n=be.get(e))||void 0===n?void 0:n.get(t)}($t(this._object),this._key)}}function tn(e,t,n){const r=e[t];return Ut(r)?r:new en(e,t,n)}var nn;class rn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[nn]=!1,this._dirty=!0,this.effect=new Te(e,(()=>{this._dirty||(this._dirty=!0,Dt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}nn="__v_isReadonly";function on(e,...t){}function sn(e,t){}function cn(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){un(e,t,n)}return o}function ln(e,t,n,r){if(B(e)){const o=cn(e,t,n,r);return o&&H(o)&&o.catch((e=>{un(e,t,n)})),o}const o=[];for(let s=0;s>>1;kn(pn[r])kn(e)-kn(t))),gn=0;gnnull==e.id?1/0:e.id,En=(e,t)=>{const n=kn(e)-kn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Tn(e){fn=!1,an=!0,pn.sort(En);try{for(dn=0;dnNn.emit(e,...t))),Rn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Mn(e,t)})),setTimeout((()=>{Nn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,On=!0,Rn=[])}),3e3)}else On=!0,Rn=[]}function Pn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||w;let o=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:s}=r[e]||w;s&&(o=n.map((e=>j(e)?e.trim():e))),t&&(o=n.map(ce))}let c;let l=r[c=re(t)]||r[c=re(Q(t))];!l&&s&&(l=r[c=re(te(t))]),l&&ln(l,e,6,o);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,ln(u,e,6,o)}}function An(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let i={},c=!1;if(!B(e)){const r=e=>{const n=An(e,t,!0);n&&(c=!0,M(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||c?(F(s)?s.forEach((e=>i[e]=null)):M(i,s),U(e)&&r.set(e,i),i):(U(e)&&r.set(e,null),null)}function In(e,t){return!(!e||!R(t))&&(t=t.slice(2).replace(/Once$/,""),I(e,t[0].toLowerCase()+t.slice(1))||I(e,te(t))||I(e,t))}let Fn=null,$n=null;function Ln(e){const t=Fn;return Fn=e,$n=e&&e.type.__scopeId||null,t}function Vn(e){$n=e}function Bn(){$n=null}const jn=e=>Dn;function Dn(e,t=Fn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&hs(-1);const o=Ln(t);let s;try{s=e(...n)}finally{Ln(o),r._d&&hs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Un(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:c,attrs:l,emit:u,render:a,renderCache:f,data:p,setupState:d,ctx:h,inheritAttrs:m}=e;let g,v;const y=Ln(e);try{if(4&n.shapeFlag){const e=o||r;g=Ps(a.call(e,e,f,s,d,p,h)),v=l}else{const e=t;0,g=Ps(e.length>1?e(s,{attrs:l,slots:c,emit:u}):e(s,null)),v=t.props?l:Wn(l)}}catch(t){ls.length=0,un(t,e,1),g=ks(is)}let _=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=_;e.length&&7&t&&(i&&e.some(O)&&(v=zn(v,i)),_=Ns(_,v))}return n.dirs&&(_=Ns(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,Ln(y),g}function Hn(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||R(n))&&((t||(t={}))[n]=e[n]);return t},zn=(e,t)=>{const n={};for(const r in e)O(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Kn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,Jn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,c,l,u){null==e?function(e,t,n,r,o,s,i,c,l){const{p:u,o:{createElement:a}}=l,f=a("div"),p=e.suspense=Zn(e,o,r,t,f,n,s,i,c,l);u(null,p.pendingBranch=e.ssContent,f,null,r,p,s,i),p.deps>0?(Yn(e,"onPending"),Yn(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,s,i),er(p,e.ssFallback)):p.resolve()}(t,n,r,o,s,i,c,l,u):function(e,t,n,r,o,s,i,c,{p:l,um:u,o:{createElement:a}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=p,_s(p,m)?(l(m,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():g&&(l(h,d,n,r,o,null,s,i,c),er(f,d))):(f.pendingId++,v?(f.isHydrating=!1,f.activeBranch=m):u(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=a("div"),g?(l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():(l(h,d,n,r,o,null,s,i,c),er(f,d))):h&&_s(p,h)?(l(h,p,n,r,o,f,s,i,c),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0&&f.resolve()));else if(h&&_s(p,h))l(h,p,n,r,o,f,s,i,c),er(f,p);else if(Yn(t,"onPending"),f.pendingBranch=p,f.pendingId++,l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(d)}),e):0===e&&f.fallback(d)}}(e,t,n,r,o,i,c,l,u)},hydrate:function(e,t,n,r,o,s,i,c,l){const u=t.suspense=Zn(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,c,!0),a=l(e,u.pendingBranch=t.ssContent,n,u,s,i);0===u.deps&&u.resolve();return a},create:Zn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Xn(r?n.default:n),e.ssFallback=r?Xn(n.fallback):ks(is)}};function Yn(e,t){const n=e.props&&e.props[t];B(n)&&n()}function Zn(e,t,n,r,o,s,i,c,l,u,a=!1){const{p:f,m:p,um:d,n:h,o:{parentNode:m,remove:g}}=u,v=e.props?le(e.props.timeout):void 0;const y={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:a,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:s,parentComponent:i,container:c}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===y.pendingId&&p(r,c,t,0)});let{anchor:t}=y;n&&(t=h(n),d(n,i,y,!0)),e||p(r,c,t,0)}er(y,r),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,u=!1;for(;l;){if(l.pendingBranch){l.effects.push(...s),u=!0;break}l=l.parent}u||xn(s),y.effects=[],Yn(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:s}=y;Yn(t,"onFallback");const i=h(n),u=()=>{y.isInFallback&&(f(null,e,o,i,r,null,s,c,l),er(y,e))},a=e.transition&&"out-in"===e.transition.mode;a&&(n.transition.afterLeave=u),y.isInFallback=!0,d(n,r,null,!0),a||u()},move(e,t,n){y.activeBranch&&p(y.activeBranch,e,t,n),y.container=e},next(){return y.activeBranch&&h(y.activeBranch)},registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{un(t,e,0)})).then((o=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Js(e,o,!1),r&&(s.el=r);const c=!r&&e.subTree.el;t(e,s,m(r||e.subTree.el),r?null:h(e.subTree),y,i,l),c&&g(c),Gn(e,s.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&d(y.activeBranch,n,e,t),y.pendingBranch&&d(y.pendingBranch,n,e,t)}};return y}function Xn(e){let t;if(B(e)){const n=ds&&e._c;n&&(e._d=!1,as()),e=e(),n&&(e._d=!0,t=us,fs())}if(F(e)){const t=Hn(e);0,e=t}return e=Ps(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Qn(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):xn(e)}function er(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Gn(r,o))}function tr(e,t){if(js){let n=js.provides;const r=js.parent&&js.parent.provides;r===n&&(n=js.provides=Object.create(r)),n[e]=t}else 0}function nr(e,t,n=!1){const r=js||Fn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(r.proxy):t}else 0}function rr(e,t){return lr(e,null,t)}function or(e,t){return lr(e,null,{flush:"post"})}function sr(e,t){return lr(e,null,{flush:"sync"})}const ir={};function cr(e,t,n){return lr(e,t,n)}function lr(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=w){const c=me()===(null==js?void 0:js.scope)?js:null;let l,u,a=!1,f=!1;if(Ut(e)?(l=()=>e.value,a=It(e)):Pt(e)?(l=()=>e,r=!0):F(e)?(f=!0,a=e.some((e=>Pt(e)||It(e))),l=()=>e.map((e=>Ut(e)?e.value:Pt(e)?fr(e):B(e)?cn(e,c,2):void 0))):l=B(e)?t?()=>cn(e,c,2):()=>{if(!c||!c.isUnmounted)return u&&u(),ln(e,c,3,[d])}:E,t&&r){const e=l;l=()=>fr(e())}let p,d=e=>{u=v.onStop=()=>{cn(e,c,4)}};if(Gs){if(d=E,t?n&&ln(t,c,3,[l(),f?[]:void 0,d]):l(),"sync"!==o)return E;{const e=gi();p=e.__watcherHandles||(e.__watcherHandles=[])}}let h=f?new Array(e.length).fill(ir):ir;const m=()=>{if(v.active)if(t){const e=v.run();(r||a||(f?e.some(((e,t)=>oe(e,h[t]))):oe(e,h)))&&(u&&u(),ln(t,c,3,[e,h===ir?void 0:f&&h[0]===ir?[]:h,d]),h=e)}else v.run()};let g;m.allowRecurse=!!t,"sync"===o?g=m:"post"===o?g=()=>Ko(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),g=()=>bn(m));const v=new Te(l,g);t?n?m():h=v.run():"post"===o?Ko(v.run.bind(v),c&&c.suspense):v.run();const y=()=>{v.stop(),c&&c.scope&&P(c.scope.effects,v)};return p&&p.push(y),y}function ur(e,t,n){const r=this.proxy,o=j(e)?e.includes(".")?ar(r,e):()=>r[e]:e.bind(r,r);let s;B(t)?s=t:(s=t.handler,n=t);const i=js;Us(this);const c=lr(o,s.bind(r),n);return i?Us(i):Hs(),c}function ar(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{fr(e,t)}));else if(G(e))for(const n in e)fr(e[n],t);return e}function pr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lr((()=>{e.isMounted=!0})),jr((()=>{e.isUnmounting=!0})),e}const dr=[Function,Array],hr={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},setup(e,{slots:t}){const n=Ds(),r=pr();let o;return()=>{const s=t.default&&br(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==is){0,i=t,e=!0;break}}const c=$t(e),{mode:l}=c;if(r.isLeaving)return vr(i);const u=yr(i);if(!u)return vr(i);const a=gr(u,c,r,n);_r(u,a);const f=n.subTree,p=f&&yr(f);let d=!1;const{getTransitionKey:h}=u.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,d=!0)}if(p&&p.type!==is&&(!_s(u,p)||d)){const e=gr(p,c,r,n);if(_r(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},vr(i);"in-out"===l&&u.type!==is&&(e.delayLeave=(e,t,n)=>{mr(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function mr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function gr(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:a,onBeforeLeave:f,onLeave:p,onAfterLeave:d,onLeaveCancelled:h,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,_=String(e.key),b=mr(n,e),S=(e,t)=>{e&&ln(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),F(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:i,beforeEnter(t){let r=c;if(!n.isMounted){if(!o)return;r=m||c}t._leaveCb&&t._leaveCb(!0);const s=b[_];s&&_s(e,s)&&s.el._leaveCb&&s.el._leaveCb(),S(r,[t])},enter(e){let t=l,r=u,s=a;if(!n.isMounted){if(!o)return;t=g||l,r=v||u,s=y||a}let i=!1;const c=e._enterCb=t=>{i||(i=!0,S(t?s:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(f,[t]);let s=!1;const i=t._leaveCb=n=>{s||(s=!0,r(),S(n?h:d,[t]),t._leaveCb=void 0,b[o]===e&&delete b[o])};b[o]=e,p?x(p,[t,i]):i()},clone(e){return gr(e,t,n,r)}};return C}function vr(e){if(kr(e))return(e=Ns(e)).children=null,e}function yr(e){return kr(e)?e.children?e.children[0]:void 0:e}function _r(e,t){6&e.shapeFlag&&e.component?_r(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function br(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let e=0;e!!e.type.__asyncLoader;function Cr(e){B(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:c}=e;let l,u=null,a=0;const f=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((a++,u=null,f()))),(()=>n(e)),a+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Sr({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=js;if(l)return()=>wr(l,e);const t=t=>{u=null,un(t,e,13,!r)};if(i&&e.suspense||Gs)return f().then((t=>()=>wr(t,e))).catch((e=>(t(e),()=>r?ks(r,{error:e}):null)));const c=Ht(!1),a=Ht(),p=Ht(!!o);return o&&setTimeout((()=>{p.value=!1}),o),null!=s&&setTimeout((()=>{if(!c.value&&!a.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),a.value=e}}),s),f().then((()=>{c.value=!0,e.parent&&kr(e.parent.vnode)&&bn(e.parent.update)})).catch((e=>{t(e),a.value=e})),()=>c.value&&l?wr(l,e):a.value&&r?ks(r,{error:a.value}):n&&!p.value?ks(n):void 0}})}function wr(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=ks(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const kr=e=>e.type.__isKeepAlive,Er={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ds(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:u,um:a,o:{createElement:f}}}=r,p=f("div");function d(e){Pr(e),a(e,n,c,!0)}function h(e){o.forEach(((t,n)=>{const r=ti(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=o.get(e);i&&_s(t,i)?i&&Pr(i):d(t),o.delete(e),s.delete(e)}r.activate=(e,t,n,r,o)=>{const s=e.component;u(e,t,n,0,c),l(s.vnode,e,t,n,s,c,r,e.slotScopeIds,o),Ko((()=>{s.isDeactivated=!1,s.a&&se(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$s(t,s.parent,e)}),c)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,c),Ko((()=>{t.da&&se(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$s(n,t.parent,e),t.isDeactivated=!0}),c)},cr((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Tr(e,t))),t&&h((e=>!Tr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,Ar(n.subTree))};return Lr(v),Br(v),jr((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=Ar(t);if(e.type!==o.type||e.key!==o.key)d(e);else{Pr(o);const e=o.component.da;e&&Ko(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return i=null,n;if(!(ys(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return i=null,r;let c=Ar(r);const l=c.type,u=ti(xr(c)?c.type.__asyncResolved||{}:l),{include:a,exclude:f,max:p}=e;if(a&&(!u||!Tr(a,u))||f&&u&&Tr(f,u))return i=c,r;const d=null==c.key?l:c.key,h=o.get(d);return c.el&&(c=Ns(c),128&r.shapeFlag&&(r.ssContent=c)),g=d,h?(c.el=h.el,c.component=h.component,c.transition&&_r(c,c.transition),c.shapeFlag|=512,s.delete(d),s.add(d)):(s.add(d),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,qn(r.type)?r:c}}};function Tr(e,t){return F(e)?e.some((e=>Tr(e,t))):j(e)?e.split(",").includes(t):"[object RegExp]"===z(e)&&e.test(t)}function Nr(e,t){Or(e,"a",t)}function Rr(e,t){Or(e,"da",t)}function Or(e,t,n=js){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ir(t,r,n),n){let e=n.parent;for(;e&&e.parent;)kr(e.parent.vnode)&&Mr(r,t,n,e),e=e.parent}}function Mr(e,t,n,r){const o=Ir(t,e,r,!0);Dr((()=>{P(r[t],o)}),n)}function Pr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ar(e){return 128&e.shapeFlag?e.ssContent:e}function Ir(e,t,n=js,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Ae(),Us(n);const o=ln(t,n,e,r);return Hs(),Ie(),o});return r?o.unshift(s):o.push(s),s}}const Fr=e=>(t,n=js)=>(!Gs||"sp"===e)&&Ir(e,((...e)=>t(...e)),n),$r=Fr("bm"),Lr=Fr("m"),Vr=Fr("bu"),Br=Fr("u"),jr=Fr("bum"),Dr=Fr("um"),Ur=Fr("sp"),Hr=Fr("rtg"),Wr=Fr("rtc");function zr(e,t=js){Ir("ec",e,t)}function Kr(e,t){const n=Fn;if(null===n)return e;const r=ei(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function oo(e,t,n={},r,o){if(Fn.isCE||Fn.parent&&xr(Fn.parent)&&Fn.parent.isCE)return"default"!==t&&(n.name=t),ks("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),as();const i=s&&so(s(n)),c=vs(os,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function so(e){return e.some((e=>!ys(e)||e.type!==is&&!(e.type===os&&!so(e.children))))?e:null}function io(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}const co=e=>e?Ws(e)?ei(e)||e.proxy:co(e.parent):null,lo=M(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>co(e.parent),$root:e=>co(e.root),$emit:e=>e.emit,$options:e=>vo(e),$forceUpdate:e=>e.f||(e.f=()=>bn(e.update)),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>ur.bind(e)}),uo=(e,t)=>e!==w&&!e.__isScriptSetup&&I(e,t),ao={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:c,appContext:l}=e;let u;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(uo(r,t))return i[t]=1,r[t];if(o!==w&&I(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&I(u,t))return i[t]=3,s[t];if(n!==w&&I(n,t))return i[t]=4,n[t];po&&(i[t]=0)}}const a=lo[t];let f,p;return a?("$attrs"===t&&Fe(e,0,t),a(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==w&&I(n,t)?(i[t]=4,n[t]):(p=l.config.globalProperties,I(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return uo(o,t)?(o[t]=n,!0):r!==w&&I(r,t)?(r[t]=n,!0):!I(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let c;return!!n[i]||e!==w&&I(e,i)||uo(t,i)||(c=s[0])&&I(c,i)||I(r,i)||I(lo,i)||I(o.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:I(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const fo=M({},ao,{get(e,t){if(t!==Symbol.unscopables)return ao.get(e,t,e)},has(e,t){return"_"!==t[0]&&!i(t)}});let po=!0;function ho(e){const t=vo(e),n=e.proxy,r=e.ctx;po=!1,t.beforeCreate&&mo(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:c,provide:l,inject:u,created:a,beforeMount:f,mounted:p,beforeUpdate:d,updated:h,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:_,unmounted:b,render:S,renderTracked:x,renderTriggered:C,errorCaptured:w,serverPrefetch:k,expose:T,inheritAttrs:N,components:R,directives:O,filters:M}=t;if(u&&function(e,t,n=E,r=!1){F(e)&&(e=So(e));for(const n in e){const o=e[n];let s;s=U(o)?"default"in o?nr(o.from||n,o.default,!0):nr(o.from||n):nr(o),Ut(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,r,null,e.appContext.config.unwrapInjectedRef),i)for(const e in i){const t=i[e];B(t)&&(r[e]=t.bind(n))}if(o){0;const t=o.call(n,n);0,U(t)&&(e.data=Tt(t))}if(po=!0,s)for(const e in s){const t=s[e],o=B(t)?t.bind(n,n):B(t.get)?t.get.bind(n,n):E;0;const i=!B(t)&&B(t.set)?t.set.bind(n):E,c=ri({get:o,set:i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)go(c[e],r,n,e);if(l){const e=B(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{tr(t,e[t])}))}function P(e,t){F(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(a&&mo(a,e,"c"),P($r,f),P(Lr,p),P(Vr,d),P(Br,h),P(Nr,m),P(Rr,g),P(zr,w),P(Wr,x),P(Hr,C),P(jr,y),P(Dr,b),P(Ur,k),F(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===E&&(e.render=S),null!=N&&(e.inheritAttrs=N),R&&(e.components=R),O&&(e.directives=O)}function mo(e,t,n){ln(F(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function go(e,t,n,r){const o=r.includes(".")?ar(n,r):()=>n[r];if(j(e)){const n=t[e];B(n)&&cr(o,n)}else if(B(e))cr(o,e.bind(n));else if(U(e))if(F(e))e.forEach((e=>go(e,t,n,r)));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&cr(o,r,e)}else 0}function vo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((e=>yo(l,e,i,!0))),yo(l,t,i)):l=t,U(t)&&s.set(t,l),l}function yo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yo(e,s,n,!0),o&&o.forEach((t=>yo(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=_o[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const _o={data:bo,props:Co,emits:Co,methods:Co,computed:Co,beforeCreate:xo,created:xo,beforeMount:xo,mounted:xo,beforeUpdate:xo,updated:xo,beforeDestroy:xo,beforeUnmount:xo,destroyed:xo,unmounted:xo,activated:xo,deactivated:xo,errorCaptured:xo,serverPrefetch:xo,components:Co,directives:Co,watch:function(e,t){if(!e)return t;if(!t)return e;const n=M(Object.create(null),e);for(const r in t)n[r]=xo(e[r],t[r]);return n},provide:bo,inject:function(e,t){return Co(So(e),So(t))}};function bo(e,t){return t?e?function(){return M(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function So(e){if(F(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Eo(e,t,!0);M(i,n),r&&c.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return U(e)&&r.set(e,k),k;if(F(s))for(let e=0;e-1,r[1]=n<0||e-1||I(r,"default"))&&c.push(t)}}}}const u=[i,c];return U(e)&&r.set(e,u),u}function To(e){return"$"!==e[0]}function No(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Ro(e,t){return No(e)===No(t)}function Oo(e,t){return F(t)?t.findIndex((t=>Ro(t,e))):B(t)&&Ro(t,e)?0:-1}const Mo=e=>"_"===e[0]||"$stable"===e,Po=e=>F(e)?e.map(Ps):[Ps(e)],Ao=(e,t,n)=>{if(t._n)return t;const r=Dn(((...e)=>Po(t(...e))),n);return r._c=!1,r},Io=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mo(n))continue;const o=e[n];if(B(o))t[n]=Ao(0,o,r);else if(null!=o){0;const e=Po(o);t[n]=()=>e}}},Fo=(e,t)=>{const n=Po(t);e.slots.default=()=>n},$o=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ie(t,"_",n)):Io(t,e.slots={})}else e.slots={},t&&Fo(e,t);ie(e.slots,Ss,1)},Lo=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=w;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(M(o,t),n||1!==e||delete o._):(s=!t.$stable,Io(t,o)),i=t}else t&&(Fo(e,t),i={default:1});if(s)for(const e in o)Mo(e)||e in i||delete o[e]};function Vo(){return{app:null,config:{isNativeTag:T,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bo=0;function jo(e,t){return function(n,r=null){B(n)||(n=Object.assign({},n)),null==r||U(r)||(r=null);const o=Vo(),s=new Set;let i=!1;const c=o.app={_uid:Bo++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:bi,get config(){return o.config},set config(e){0},use(e,...t){return s.has(e)||(e&&B(e.install)?(s.add(e),e.install(c,...t)):B(e)&&(s.add(e),e(c,...t))),c},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),c},component(e,t){return t?(o.components[e]=t,c):o.components[e]},directive(e,t){return t?(o.directives[e]=t,c):o.directives[e]},mount(s,l,u){if(!i){0;const a=ks(n,r);return a.appContext=o,l&&t?t(a,s):e(a,s,u),i=!0,c._container=s,s.__vue_app__=c,ei(a.component)||a.component.proxy}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return o.provides[e]=t,c}};return c}}function Do(e,t,n,r,o=!1){if(F(e))return void e.forEach(((e,s)=>Do(e,t&&(F(t)?t[s]:t),n,r,o)));if(xr(r)&&!o)return;const s=4&r.shapeFlag?ei(r.component)||r.component.proxy:r.el,i=o?null:s,{i:c,r:l}=e;const u=t&&t.r,a=c.refs===w?c.refs={}:c.refs,f=c.setupState;if(null!=u&&u!==l&&(j(u)?(a[u]=null,I(f,u)&&(f[u]=null)):Ut(u)&&(u.value=null)),B(l))cn(l,c,12,[i,a]);else{const t=j(l),r=Ut(l);if(t||r){const c=()=>{if(e.f){const n=t?I(f,l)?f[l]:a[l]:l.value;o?F(n)&&P(n,s):F(n)?n.includes(s)||n.push(s):t?(a[l]=[s],I(f,l)&&(f[l]=a[l])):(l.value=[s],e.k&&(a[e.k]=l.value))}else t?(a[l]=i,I(f,l)&&(f[l]=i)):r&&(l.value=i,e.k&&(a[e.k]=i))};i?(c.id=-1,Ko(c,n)):c()}else 0}}let Uo=!1;const Ho=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Wo=e=>8===e.nodeType;function zo(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:c,insert:l,createComment:u}}=e,a=(n,r,c,u,g,v=!1)=>{const y=Wo(n)&&"["===n.data,_=()=>h(n,r,c,u,g,y),{type:b,ref:S,shapeFlag:x,patchFlag:C}=r;let w=n.nodeType;r.el=n,-2===C&&(v=!1,r.dynamicChildren=null);let k=null;switch(b){case ss:3!==w?""===r.children?(l(r.el=o(""),i(n),n),k=n):k=_():(n.data!==r.children&&(Uo=!0,n.data=r.children),k=s(n));break;case is:k=8!==w||y?_():s(n);break;case cs:if(y&&(w=(n=s(n)).nodeType),1===w||3===w){k=n;const e=!r.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:l,props:u,patchFlag:a,shapeFlag:f,dirs:d}=t,h="input"===l&&d||"option"===l;if(h||-1!==a){if(d&&Gr(t,null,n,"created"),u)if(h||!i||48&a)for(const t in u)(h&&t.endsWith("value")||R(t)&&!J(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$s(l,n,t),d&&Gr(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||d)&&Qn((()=>{l&&$s(l,n,t),d&&Gr(t,null,n,"mounted")}),o),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,o,s,i);for(;r;){Uo=!0;const e=r;r=r.nextSibling,c(e)}}else 8&f&&e.textContent!==t.children&&(Uo=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,s,i,c)=>{c=c||!!t.dynamicChildren;const l=t.children,u=l.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const f=i(e),d=p(s(e),t,f,n,r,o,c);return d&&Wo(d)&&"]"===d.data?s(t.anchor=d):(Uo=!0,l(t.anchor=u("]"),f,d),d)},h=(e,t,r,o,l,u)=>{if(Uo=!0,t.el=null,u){const t=m(e);for(;;){const n=s(e);if(!n||n===t)break;c(n)}}const a=s(e),f=i(e);return c(e),n(null,t,f,a,r,o,Ho(f),l),a},m=e=>{let t=0;for(;e;)if((e=s(e))&&Wo(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);Uo=!1,a(t.firstChild,e,null,null,null),wn(),t._vnode=e,Uo&&console.error("Hydration completed but contains mismatches.")},a]}const Ko=Qn;function Go(e){return Jo(e)}function qo(e){return Jo(e,zo)}function Jo(e,t){ae().__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:s,createText:i,createComment:c,setText:l,setElementText:u,parentNode:a,nextSibling:f,setScopeId:p=E,insertStaticContent:d}=e,h=(e,t,n,r=null,o=null,s=null,i=!1,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!_s(e,t)&&(r=z(e),j(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:a,shapeFlag:f}=t;switch(u){case ss:m(e,t,n,r);break;case is:g(e,t,n,r);break;case cs:null==e&&v(t,n,r,i);break;case os:R(e,t,n,r,o,s,i,c,l);break;default:1&f?_(e,t,n,r,o,s,i,c,l):6&f?O(e,t,n,r,o,s,i,c,l):(64&f||128&f)&&u.process(e,t,n,r,o,s,i,c,l,G)}null!=a&&o&&Do(a,e&&e.ref,s,t||e,!t)},m=(e,t,r,o)=>{if(null==e)n(t.el=i(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},g=(e,t,r,o)=>{null==e?n(t.el=c(t.children||""),r,o):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=d(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),r(e),e=n;r(t)},_=(e,t,n,r,o,s,i,c,l)=>{i=i||"svg"===t.type,null==e?b(t,n,r,o,s,i,c,l):C(e,t,o,s,i,c,l)},b=(e,t,r,i,c,l,a,f)=>{let p,d;const{type:h,props:m,shapeFlag:g,transition:v,dirs:y}=e;if(p=e.el=s(e.type,l,m&&m.is,m),8&g?u(p,e.children):16&g&&x(e.children,p,null,i,c,l&&"foreignObject"!==h,a,f),y&&Gr(e,null,i,"created"),S(p,e,e.scopeId,a,i),m){for(const t in m)"value"===t||J(t)||o(p,t,null,m[t],l,e.children,i,c,W);"value"in m&&o(p,"value",null,m.value),(d=m.onVnodeBeforeMount)&&$s(d,i,e)}y&&Gr(e,null,i,"beforeMount");const _=(!c||c&&!c.pendingBranch)&&v&&!v.persisted;_&&v.beforeEnter(p),n(p,t,r),((d=m&&m.onVnodeMounted)||_||y)&&Ko((()=>{d&&$s(d,i,e),_&&v.enter(p),y&&Gr(e,null,i,"mounted")}),c)},S=(e,t,n,r,o)=>{if(n&&p(e,n),r)for(let t=0;t{for(let u=l;u{const l=t.el=e.el;let{patchFlag:a,dynamicChildren:f,dirs:p}=t;a|=16&e.patchFlag;const d=e.props||w,h=t.props||w;let m;n&&Yo(n,!1),(m=h.onVnodeBeforeUpdate)&&$s(m,n,t,e),p&&Gr(t,e,n,"beforeUpdate"),n&&Yo(n,!0);const g=s&&"foreignObject"!==t.type;if(f?T(e.dynamicChildren,f,l,n,r,g,i):c||$(e,t,l,null,n,r,g,i,!1),a>0){if(16&a)N(l,t,d,h,n,r,s);else if(2&a&&d.class!==h.class&&o(l,"class",null,h.class,s),4&a&&o(l,"style",d.style,h.style,s),8&a){const i=t.dynamicProps;for(let t=0;t{m&&$s(m,n,t,e),p&&Gr(t,e,n,"updated")}),r)},T=(e,t,n,r,o,s,i)=>{for(let c=0;c{if(n!==r){if(n!==w)for(const l in n)J(l)||l in r||o(e,l,n[l],null,c,t.children,s,i,W);for(const l in r){if(J(l))continue;const u=r[l],a=n[l];u!==a&&"value"!==l&&o(e,l,a,u,c,t.children,s,i,W)}"value"in r&&o(e,"value",n.value,r.value)}},R=(e,t,r,o,s,c,l,u,a)=>{const f=t.el=e?e.el:i(""),p=t.anchor=e?e.anchor:i("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:m}=t;m&&(u=u?u.concat(m):m),null==e?(n(f,r,o),n(p,r,o),x(t.children,r,p,s,c,l,u,a)):d>0&&64&d&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,r,s,c,l,u),(null!=t.key||s&&t===s.subTree)&&Zo(e,t,!0)):$(e,t,r,p,s,c,l,u,a)},O=(e,t,n,r,o,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):M(t,n,r,o,s,i,l):P(e,t,l)},M=(e,t,n,r,o,s,i)=>{const c=e.component=Bs(e,r,o);if(kr(e)&&(c.ctx.renderer=G),qs(c),c.asyncDep){if(o&&o.registerDep(c,A),!e.el){const e=c.subTree=ks(is);g(null,e,t,n)}}else A(c,e,t,n,o,s,i)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!c||c&&c.$stable)||r!==i&&(r?!i||Kn(r,i,u):!!i);if(1024&l)return!0;if(16&l)return r?Kn(r,i,u):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;tdn&&pn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},A=(e,t,n,r,o,s,i)=>{const c=e.effect=new Te((()=>{if(e.isMounted){let t,{next:n,bu:r,u:c,parent:l,vnode:u}=e,f=n;0,Yo(e,!1),n?(n.el=u.el,F(e,n,i)):n=u,r&&se(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$s(t,l,n,u),Yo(e,!0);const p=Un(e);0;const d=e.subTree;e.subTree=p,h(d,p,a(d.el),z(d),e,o,s),n.el=p.el,null===f&&Gn(e,p.el),c&&Ko(c,o),(t=n.props&&n.props.onVnodeUpdated)&&Ko((()=>$s(t,l,n,u)),o)}else{let i;const{el:c,props:l}=t,{bm:u,m:a,parent:f}=e,p=xr(t);if(Yo(e,!1),u&&se(u),!p&&(i=l&&l.onVnodeBeforeMount)&&$s(i,f,t),Yo(e,!0),c&&Y){const n=()=>{e.subTree=Un(e),Y(c,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=Un(e);0,h(null,i,n,r,e,o,s),t.el=i.el}if(a&&Ko(a,o),!p&&(i=l&&l.onVnodeMounted)){const e=t;Ko((()=>$s(i,f,e)),o)}(256&t.shapeFlag||f&&xr(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Ko(e.a,o),e.isMounted=!0,t=n=r=null}}),(()=>bn(l)),e.scope),l=e.update=()=>c.run();l.id=e.uid,Yo(e,!0),l()},F=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=$t(o),[l]=e.propsOptions;let u=!1;if(!(r||i>0)||16&i){let r;wo(e,t,o,s)&&(u=!0);for(const s in c)t&&(I(t,s)||(r=te(s))!==s&&I(t,r))||(l?!n||void 0===n[s]&&void 0===n[r]||(o[s]=ko(l,c,s,void 0,e,!0)):delete o[s]);if(s!==c)for(const e in s)t&&I(t,e)||(delete s[e],u=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r{const a=e&&e.children,f=e?e.shapeFlag:0,p=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void V(a,p,n,r,o,s,i,c,l);if(256&d)return void L(a,p,n,r,o,s,i,c,l)}8&h?(16&f&&W(a,o,s),p!==a&&u(n,p)):16&f?16&h?V(a,p,n,r,o,s,i,c,l):W(a,o,s,!0):(8&f&&u(n,""),16&h&&x(p,n,r,o,s,i,c,l))},L=(e,t,n,r,o,s,i,c,l)=>{t=t||k;const u=(e=e||k).length,a=t.length,f=Math.min(u,a);let p;for(p=0;pa?W(e,o,s,!0,!1,f):x(t,n,r,o,s,i,c,l,f)},V=(e,t,n,r,o,s,i,c,l)=>{let u=0;const a=t.length;let f=e.length-1,p=a-1;for(;u<=f&&u<=p;){const r=e[u],a=t[u]=l?As(t[u]):Ps(t[u]);if(!_s(r,a))break;h(r,a,n,null,o,s,i,c,l),u++}for(;u<=f&&u<=p;){const r=e[f],u=t[p]=l?As(t[p]):Ps(t[p]);if(!_s(r,u))break;h(r,u,n,null,o,s,i,c,l),f--,p--}if(u>f){if(u<=p){const e=p+1,f=ep)for(;u<=f;)j(e[u],o,s,!0),u++;else{const d=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?As(t[u]):Ps(t[u]);null!=e.key&&g.set(e.key,u)}let v,y=0;const _=p-m+1;let b=!1,S=0;const x=new Array(_);for(u=0;u<_;u++)x[u]=0;for(u=d;u<=f;u++){const r=e[u];if(y>=_){j(r,o,s,!0);continue}let a;if(null!=r.key)a=g.get(r.key);else for(v=m;v<=p;v++)if(0===x[v-m]&&_s(r,t[v])){a=v;break}void 0===a?j(r,o,s,!0):(x[a-m]=u+1,a>=S?S=a:b=!0,h(r,t[a],n,null,o,s,i,c,l),y++)}const C=b?function(e){const t=e.slice(),n=[0];let r,o,s,i,c;const l=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[s-1]),n[s]=r)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(x):k;for(v=C.length-1,u=_-1;u>=0;u--){const e=m+u,f=t[e],p=e+1{const{el:i,type:c,transition:l,children:u,shapeFlag:a}=e;if(6&a)return void B(e.component.subTree,t,r,o);if(128&a)return void e.suspense.move(t,r,o);if(64&a)return void c.move(e,t,r,G);if(c===os){n(i,t,r);for(let e=0;e{let s;for(;e&&e!==t;)s=f(e),n(e,r,o),e=s;n(t,r,o)})(e,t,r);if(2!==o&&1&a&&l)if(0===o)l.beforeEnter(i),n(i,t,r),Ko((()=>l.enter(i)),s);else{const{leave:e,delayLeave:o,afterLeave:s}=l,c=()=>n(i,t,r),u=()=>{e(i,(()=>{c(),s&&s()}))};o?o(i,c,u):u()}else n(i,t,r)},j=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:c,children:l,dynamicChildren:u,shapeFlag:a,patchFlag:f,dirs:p}=e;if(null!=c&&Do(c,null,n,e,!0),256&a)return void t.ctx.deactivate(e);const d=1&a&&p,h=!xr(e);let m;if(h&&(m=i&&i.onVnodeBeforeUnmount)&&$s(m,t,e),6&a)H(e.component,n,r);else{if(128&a)return void e.suspense.unmount(n,r);d&&Gr(e,null,t,"beforeUnmount"),64&a?e.type.remove(e,t,n,o,G,r):u&&(s!==os||f>0&&64&f)?W(u,t,n,!1,!0):(s===os&&384&f||!o&&16&a)&&W(l,t,n),r&&D(e)}(h&&(m=i&&i.onVnodeUnmounted)||d)&&Ko((()=>{m&&$s(m,t,e),d&&Gr(e,null,t,"unmounted")}),n)},D=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===os)return void U(n,o);if(t===cs)return void y(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:r}=s,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},U=(e,t)=>{let n;for(;e!==t;)n=f(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:r,scope:o,update:s,subTree:i,um:c}=e;r&&se(r),o.stop(),s&&(s.active=!1,j(i,e,t,n)),c&&Ko(c,t),Ko((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},W=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?z(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&j(t._vnode,null,null,!0):h(t._vnode||null,e,t,null,null,null,n),Cn(),wn(),t._vnode=e},G={p:h,um:j,m:B,r:D,mt:M,mc:x,pc:$,pbc:T,n:z,o:e};let q,Y;return t&&([q,Y]=t(G)),{render:K,hydrate:q,createApp:jo(K,q)}}function Yo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zo(e,t,n=!1){const r=e.children,o=t.children;if(F(r)&&F(o))for(let e=0;ee&&(e.disabled||""===e.disabled),Qo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,es=(e,t)=>{const n=e&&e.to;if(j(n)){if(t){const e=t(n);return e}return null}return n};function ts(e,t,n,{o:{insert:r},m:o},s=2){0===s&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:u,props:a}=e,f=2===s;if(f&&r(i,t,n),(!f||Xo(a))&&16&l)for(let e=0;e{16&y&&a(_,e,t,o,s,i,c,l)};v?g(n,u):f&&g(f,p)}else{t.el=e.el;const r=t.anchor=e.anchor,a=t.target=e.target,d=t.targetAnchor=e.targetAnchor,m=Xo(e.props),g=m?n:a,y=m?r:d;if(i=i||Qo(a),b?(p(e.dynamicChildren,b,g,o,s,i,c),Zo(e,t,!0)):l||f(e,t,g,y,o,s,i,c,!1),v)m||ts(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=es(t.props,h);e&&ts(t,e,null,u,0)}else m&&ts(t,a,d,u,1)}rs(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:u,targetAnchor:a,target:f,props:p}=e;if(f&&s(a),(i||!Xo(p))&&(s(u),16&c))for(let e=0;e0?us||k:null,fs(),ds>0&&us&&us.push(e),e}function gs(e,t,n,r,o,s){return ms(ws(e,t,n,r,o,s,!0))}function vs(e,t,n,r,o){return ms(ks(e,t,n,r,o,!0))}function ys(e){return!!e&&!0===e.__v_isVNode}function _s(e,t){return e.type===t.type&&e.key===t.key}function bs(e){ps=e}const Ss="__vInternal",xs=({key:e})=>null!=e?e:null,Cs=({ref:e,ref_key:t,ref_for:n})=>null!=e?j(e)||Ut(e)||B(e)?{i:Fn,r:e,k:t,f:!!n}:e:null;function ws(e,t=null,n=null,r=0,o=null,s=(e===os?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xs(t),ref:t&&Cs(t),scopeId:$n,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Fn};return c?(Is(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=j(n)?8:16),ds>0&&!i&&us&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&us.push(l),l}const ks=Es;function Es(e,t=null,n=null,r=0,o=null,s=!1){if(e&&e!==Zr||(e=is),ys(e)){const r=Ns(e,t,!0);return n&&Is(r,n),ds>0&&!s&&us&&(6&r.shapeFlag?us[us.indexOf(e)]=r:us.push(r)),r.patchFlag|=-2,r}if(ni(e)&&(e=e.__vccOpts),t){t=Ts(t);let{class:e,style:n}=t;e&&!j(e)&&(t.class=p(e)),U(n)&&(Ft(n)&&!F(n)&&(n=M({},n)),t.style=c(n))}return ws(e,t,n,r,o,j(e)?1:qn(e)?128:(e=>e.__isTeleport)(e)?64:U(e)?4:B(e)?2:0,s,!0)}function Ts(e){return e?Ft(e)||Ss in e?M({},e):e:null}function Ns(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,c=t?Fs(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&xs(c),ref:t&&t.ref?n&&o?F(o)?o.concat(Cs(t)):[o,Cs(t)]:Cs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==os?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ns(e.ssContent),ssFallback:e.ssFallback&&Ns(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Rs(e=" ",t=0){return ks(ss,null,e,t)}function Os(e,t){const n=ks(cs,null,e);return n.staticCount=t,n}function Ms(e="",t=!1){return t?(as(),vs(is,null,e)):ks(is,null,e)}function Ps(e){return null==e||"boolean"==typeof e?ks(is):F(e)?ks(os,null,e.slice()):"object"==typeof e?As(e):ks(ss,null,String(e))}function As(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ns(e)}function Is(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(F(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Is(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Ss in t?3===r&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else B(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&r?(n=16,t=[Rs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fs(...e){const t={};for(let n=0;njs||Fn,Us=e=>{js=e,e.scope.on()},Hs=()=>{js&&js.scope.off(),js=null};function Ws(e){return 4&e.vnode.shapeFlag}let zs,Ks,Gs=!1;function qs(e,t=!1){Gs=t;const{props:n,children:r}=e.vnode,o=Ws(e);!function(e,t,n,r=!1){const o={},s={};ie(s,Ss,1),e.propsDefaults=Object.create(null),wo(e,t,o,s);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:Nt(o):e.type.props?e.props=o:e.props=s,e.attrs=s}(e,n,o,t),$o(e,r);const s=o?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Lt(new Proxy(e.ctx,ao)),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Qs(e):null;Us(e),Ae();const o=cn(r,e,0,[e.props,n]);if(Ie(),Hs(),H(o)){if(o.then(Hs,Hs),t)return o.then((n=>{Js(e,n,t)})).catch((t=>{un(t,e,0)}));e.asyncDep=o}else Js(e,o,t)}else Xs(e,t)}(e,t):void 0;return Gs=!1,s}function Js(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:U(t)&&(e.setupState=Yt(t)),Xs(e,n)}function Ys(e){zs=e,Ks=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,fo))}}const Zs=()=>!zs;function Xs(e,t,n){const r=e.type;if(!e.render){if(!t&&zs&&!r.render){const t=r.template||vo(e).template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:i}=r,c=M(M({isCustomElement:n,delimiters:s},o),i);r.render=zs(t,c)}}e.render=r.render||E,Ks&&Ks(e)}Us(e),Ae(),ho(e),Ie(),Hs()}function Qs(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get(t,n){return Fe(e,0,"$attrs"),t[n]}})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yt(Lt(e.exposed)),{get(t,n){return n in t?t[n]:n in lo?lo[n](e):void 0},has(e,t){return t in e||t in lo}}))}function ti(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function ni(e){return B(e)&&"__vccOpts"in e}const ri=(e,t)=>function(e,t,n=!1){let r,o;const s=B(e);return s?(r=e,o=E):(r=e.get,o=e.set),new rn(r,o,s||!o,n)}(e,0,Gs);function oi(){return null}function si(){return null}function ii(e){0}function ci(e,t){return null}function li(){return ai().slots}function ui(){return ai().attrs}function ai(){const e=Ds();return e.setupContext||(e.setupContext=Qs(e))}function fi(e,t){const n=F(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const r=n[e];r?F(r)||B(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function pi(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function di(e){const t=Ds();let n=e();return Hs(),H(n)&&(n=n.catch((e=>{throw Us(t),e}))),[n,()=>Us(t)]}function hi(e,t,n){const r=arguments.length;return 2===r?U(t)&&!F(t)?ys(t)?ks(e,null,[t]):ks(e,t):ks(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ys(n)&&(n=[n]),ks(e,t,n))}const mi=Symbol(""),gi=()=>{{const e=nr(mi);return e}};function vi(){return void 0}function yi(e,t,n,r){const o=n[r];if(o&&_i(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function _i(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&us&&us.push(e),!0}const bi="3.2.47",Si={createComponentInstance:Bs,setupComponent:qs,renderComponentRoot:Un,setCurrentRenderingInstance:Ln,isVNode:ys,normalizeVNode:Ps},xi=null,Ci=null,wi="undefined"!=typeof document?document:null,ki=wi&&wi.createElement("template"),Ei={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?wi.createElementNS("http://www.w3.org/2000/svg",e):wi.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>wi.createTextNode(e),createComment:e=>wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{ki.innerHTML=r?`${e}`:e;const o=ki.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Ti=/\s*!important$/;function Ni(e,t,n){if(F(n))n.forEach((n=>Ni(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Oi[t];if(n)return n;let r=Q(t);if("filter"!==r&&r in e)return Oi[t]=r;r=ne(r);for(let n=0;n{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();ln(function(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Li(),n}(r,o);Pi(e,n,i,c)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,c),s[t]=void 0)}}const Ii=/(?:Once|Passive|Capture)$/;let Fi=0;const $i=Promise.resolve(),Li=()=>Fi||($i.then((()=>Fi=0)),Fi=Date.now());const Vi=/^on[a-z]/;function Bi(e,t){const n=Sr(e);class r extends Ui{constructor(e){super(n,e,t)}}return r.def=n,r}const ji=e=>Bi(e,zc),Di="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ui extends Di{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(Wc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!F(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=le(this._props[e])),(o||(o=Object.create(null)))[Q(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=F(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(Q))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=Q(e);this._numberProps&&this._numberProps[n]&&(t=le(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(te(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(te(e),t+""):t||this.removeAttribute(te(e))))}_update(){Wc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ks(this._def,M({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),te(e)!==e&&t(te(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Ui){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Hi(e="$style"){{const t=Ds();if(!t)return w;const n=t.type.__cssModules;if(!n)return w;const r=n[e];return r||w}}function Wi(e){const t=Ds();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Ki(e,n)))},r=()=>{const r=e(t.proxy);zi(t.subTree,r),n(r)};or(r),Lr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Dr((()=>e.disconnect()))}))}function zi(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{zi(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ki(e.el,t);else if(e.type===os)e.children.forEach((e=>zi(e,t)));else if(e.type===cs){let{el:n,anchor:r}=e;for(;n&&(Ki(n,t),n!==r);)n=n.nextSibling}}function Ki(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Gi="transition",qi="animation",Ji=(e,{slots:t})=>hi(hr,ec(e),t);Ji.displayName="Transition";const Yi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Zi=Ji.props=M({},hr.props,Yi),Xi=(e,t=[])=>{F(e)?e.forEach((e=>e(...t))):e&&e(...t)},Qi=e=>!!e&&(F(e)?e.some((e=>e.length>1)):e.length>1);function ec(e){const t={};for(const n in e)n in Yi||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:a=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(U(e))return[tc(e.enter),tc(e.leave)];{const t=tc(e);return[t,t]}}(o),m=h&&h[0],g=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:x=v,onAppear:C=y,onAppearCancelled:w=_}=t,k=(e,t,n)=>{rc(e,t?a:c),rc(e,t?u:i),n&&n()},E=(e,t)=>{e._isLeaving=!1,rc(e,f),rc(e,d),rc(e,p),t&&t()},T=e=>(t,n)=>{const o=e?C:y,i=()=>k(t,e,n);Xi(o,[t,i]),oc((()=>{rc(t,e?l:s),nc(t,e?a:c),Qi(o)||ic(t,r,m,i)}))};return M(t,{onBeforeEnter(e){Xi(v,[e]),nc(e,s),nc(e,i)},onBeforeAppear(e){Xi(x,[e]),nc(e,l),nc(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);nc(e,f),ac(),nc(e,p),oc((()=>{e._isLeaving&&(rc(e,f),nc(e,d),Qi(b)||ic(e,r,g,n))})),Xi(b,[e,n])},onEnterCancelled(e){k(e,!1),Xi(_,[e])},onAppearCancelled(e){k(e,!0),Xi(w,[e])},onLeaveCancelled(e){E(e),Xi(S,[e])}})}function tc(e){return le(e)}function nc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function rc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function oc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let sc=0;function ic(e,t,n,r){const o=e._endId=++sc,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=cc(e,t);if(!i)return r();const u=i+"end";let a=0;const f=()=>{e.removeEventListener(u,p),s()},p=t=>{t.target===e&&++a>=l&&f()};setTimeout((()=>{a(n[e]||"").split(", "),o=r(`${Gi}Delay`),s=r(`${Gi}Duration`),i=lc(o,s),c=r(`${qi}Delay`),l=r(`${qi}Duration`),u=lc(c,l);let a=null,f=0,p=0;t===Gi?i>0&&(a=Gi,f=i,p=s.length):t===qi?u>0&&(a=qi,f=u,p=l.length):(f=Math.max(i,u),a=f>0?i>u?Gi:qi:null,p=a?a===Gi?s.length:l.length:0);return{type:a,timeout:f,propCount:p,hasTransform:a===Gi&&/\b(transform|all)(,|$)/.test(r(`${Gi}Property`).toString())}}function lc(e,t){for(;e.lengthuc(t)+uc(e[n]))))}function uc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ac(){return document.body.offsetHeight}const fc=new WeakMap,pc=new WeakMap,dc={name:"TransitionGroup",props:M({},Zi,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ds(),r=pr();let o,s;return Br((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=cc(r);return o.removeChild(r),s}(o[0].el,n.vnode.el,t))return;o.forEach(mc),o.forEach(gc);const r=o.filter(vc);ac(),r.forEach((e=>{const n=e.el,r=n.style;nc(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,rc(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=$t(e),c=ec(i);let l=i.tag||os;o=s,s=t.default?br(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?e=>se(t,e):t};function _c(e){e.target.composing=!0}function bc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=yc(o);const s=r||o.props&&"number"===o.props.type;Pi(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=ce(r)),e._assign(r)})),n&&Pi(e,"change",(()=>{e.value=e.value.trim()})),t||(Pi(e,"compositionstart",_c),Pi(e,"compositionend",bc),Pi(e,"change",bc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=yc(s),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ce(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},xc={deep:!0,created(e,t,n){e._assign=yc(n),Pi(e,"change",(()=>{const t=e._modelValue,n=Tc(e),r=e.checked,o=e._assign;if(F(t)){const e=S(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(L(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Nc(e,r))}))},mounted:Cc,beforeUpdate(e,t,n){e._assign=yc(n),Cc(e,t,n)}};function Cc(e,{value:t,oldValue:n},r){e._modelValue=t,F(t)?e.checked=S(t,r.props.value)>-1:L(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=b(t,Nc(e,!0)))}const wc={created(e,{value:t},n){e.checked=b(t,n.props.value),e._assign=yc(n),Pi(e,"change",(()=>{e._assign(Tc(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=yc(r),t!==n&&(e.checked=b(t,r.props.value))}},kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=L(t);Pi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ce(Tc(e)):Tc(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=yc(r)},mounted(e,{value:t}){Ec(e,t)},beforeUpdate(e,t,n){e._assign=yc(n)},updated(e,{value:t}){Ec(e,t)}};function Ec(e,t){const n=e.multiple;if(!n||F(t)||L(t)){for(let r=0,o=e.options.length;r-1:o.selected=t.has(s);else if(b(Tc(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Tc(e){return"_value"in e?e._value:e.value}function Nc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Rc={created(e,t,n){Mc(e,t,n,null,"created")},mounted(e,t,n){Mc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Mc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Mc(e,t,n,r,"updated")}};function Oc(e,t){switch(e){case"SELECT":return kc;case"TEXTAREA":return Sc;default:switch(t){case"checkbox":return xc;case"radio":return wc;default:return Sc}}}function Mc(e,t,n,r,o){const s=Oc(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const Pc=["ctrl","shift","alt","meta"],Ac={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Pc.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ic=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const r=te(n.key);return t.some((e=>e===r||Fc[e]===r))?e(n):void 0},Lc={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Vc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Vc(e,!0),r.enter(e)):r.leave(e,(()=>{Vc(e,!1)})):Vc(e,t))},beforeUnmount(e,{value:t}){Vc(e,t)}};function Vc(e,t){e.style.display=t?e._vod:"none"}const Bc=M({patchProp:(e,t,n,r,o=!1,s,i,c,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,n){const r=e.style,o=j(n);if(n&&!o){if(t&&!j(t))for(const e in t)null==n[e]&&Ni(r,e,"");for(const e in n)Ni(r,e,n[e])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}(e,n,r):R(t)?O(t)||Ai(e,t,0,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Vi.test(t)&&B(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Vi.test(t)&&j(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,s,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,o,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let c=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=_(n):null==n&&"string"===r?(n="",c=!0):"number"===r&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}(e,t,r,s,i,c,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Mi,t.slice(6,t.length)):e.setAttributeNS(Mi,t,n);else{const r=y(t);null==n||r&&!_(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Ei);let jc,Dc=!1;function Uc(){return jc||(jc=Go(Bc))}function Hc(){return jc=Dc?jc:qo(Bc),Dc=!0,jc}const Wc=(...e)=>{Uc().render(...e)},zc=(...e)=>{Hc().hydrate(...e)},Kc=(...e)=>{const t=Uc().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=qc(e);if(!r)return;const o=t._component;B(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Gc=(...e)=>{const t=Hc().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=qc(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function qc(e){if(j(e)){return document.querySelector(e)}return e}let Jc=!1;const Yc=()=>{Jc||(Jc=!0,Sc.getSSRProps=({value:e})=>({value:e}),wc.getSSRProps=({value:e},t)=>{if(t.props&&b(t.props.value,e))return{checked:!0}},xc.getSSRProps=({value:e},t)=>{if(F(e)){if(t.props&&S(e,t.props.value)>-1)return{checked:!0}}else if(L(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Oc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Lc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};function Zc(e){throw e}function Xc(e){}function Qc(e,t,n,r){const o=new SyntaxError(String(e));return o.code=e,o.loc=t,o}const el=Symbol(""),tl=Symbol(""),nl=Symbol(""),rl=Symbol(""),ol=Symbol(""),sl=Symbol(""),il=Symbol(""),cl=Symbol(""),ll=Symbol(""),ul=Symbol(""),al=Symbol(""),fl=Symbol(""),pl=Symbol(""),dl=Symbol(""),hl=Symbol(""),ml=Symbol(""),gl=Symbol(""),vl=Symbol(""),yl=Symbol(""),_l=Symbol(""),bl=Symbol(""),Sl=Symbol(""),xl=Symbol(""),Cl=Symbol(""),wl=Symbol(""),kl=Symbol(""),El=Symbol(""),Tl=Symbol(""),Nl=Symbol(""),Rl=Symbol(""),Ol=Symbol(""),Ml=Symbol(""),Pl=Symbol(""),Al=Symbol(""),Il=Symbol(""),Fl=Symbol(""),$l=Symbol(""),Ll=Symbol(""),Vl=Symbol(""),Bl={[el]:"Fragment",[tl]:"Teleport",[nl]:"Suspense",[rl]:"KeepAlive",[ol]:"BaseTransition",[sl]:"openBlock",[il]:"createBlock",[cl]:"createElementBlock",[ll]:"createVNode",[ul]:"createElementVNode",[al]:"createCommentVNode",[fl]:"createTextVNode",[pl]:"createStaticVNode",[dl]:"resolveComponent",[hl]:"resolveDynamicComponent",[ml]:"resolveDirective",[gl]:"resolveFilter",[vl]:"withDirectives",[yl]:"renderList",[_l]:"renderSlot",[bl]:"createSlots",[Sl]:"toDisplayString",[xl]:"mergeProps",[Cl]:"normalizeClass",[wl]:"normalizeStyle",[kl]:"normalizeProps",[El]:"guardReactiveProps",[Tl]:"toHandlers",[Nl]:"camelize",[Rl]:"capitalize",[Ol]:"toHandlerKey",[Ml]:"setBlockTracking",[Pl]:"pushScopeId",[Al]:"popScopeId",[Il]:"withCtx",[Fl]:"unref",[$l]:"isRef",[Ll]:"withMemo",[Vl]:"isMemoSame"};const jl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Dl(e,t,n,r,o,s,i,c=!1,l=!1,u=!1,a=jl){return e&&(c?(e.helper(sl),e.helper(gu(e.inSSR,u))):e.helper(mu(e.inSSR,u)),i&&e.helper(vl)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:u,loc:a}}function Ul(e,t=jl){return{type:17,loc:t,elements:e}}function Hl(e,t=jl){return{type:15,loc:t,properties:e}}function Wl(e,t){return{type:16,loc:jl,key:j(e)?zl(e,!0):e,value:t}}function zl(e,t=!1,n=jl,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Kl(e,t=jl){return{type:8,loc:t,children:e}}function Gl(e,t=[],n=jl){return{type:14,loc:n,callee:e,arguments:t}}function ql(e,t=void 0,n=!1,r=!1,o=jl){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Jl(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:jl}}const Yl=e=>4===e.type&&e.isStatic,Zl=(e,t)=>e===t||e===te(t);function Xl(e){return Zl(e,"Teleport")?tl:Zl(e,"Suspense")?nl:Zl(e,"KeepAlive")?rl:Zl(e,"BaseTransition")?ol:void 0}const Ql=/^\d|[^\$\w]/,eu=e=>!Ql.test(e),tu=/[A-Za-z_$\xA0-\uFFFF]/,nu=/[\.\?\w$\xA0-\uFFFF]/,ru=/\s+[.[]\s*|\s*[.[]\s+/g,ou=e=>{e=e.trim().replace(ru,(e=>e.trim()));let t=0,n=[],r=0,o=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===r))}return n}function Su(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function xu(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(mu(r,e.isComponent)),t(sl),t(gu(r,e.isComponent)))}function Cu(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function wu(e,t){const n=Cu("MODE",t),r=Cu(e,t);return 3===n?!0===r:!1!==r}function ku(e,t,n,...r){return wu(e,t)}const Eu=/&(gt|lt|amp|apos|quot);/g,Tu={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Nu={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:T,isPreTag:T,isCustomElement:T,decodeEntities:e=>e.replace(Eu,((e,t)=>Tu[t])),onError:Zc,onWarn:Xc,comments:!1};function Ru(e,t={}){const n=function(e,t){const n=M({},Nu);let r;for(r in t)n[r]=void 0===t[r]?Nu[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=Hu(n);return function(e,t=jl){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(Ou(n,0,[]),Wu(n,r))}function Ou(e,t,n){const r=zu(n),o=r?r.ns:0,s=[];for(;!Zu(e,t,n);){const i=e.source;let c;if(0===t||1===t)if(!e.inVPre&&Ku(i,e.options.delimiters[0]))c=ju(e,t);else if(0===t&&"<"===i[0])if(1===i.length)Yu(e,5,1);else if("!"===i[1])Ku(i,"\x3c!--")?c=Au(e):Ku(i,""===i[2]){Yu(e,14,2),Gu(e,3);continue}if(/[a-z]/i.test(i[2])){Yu(e,23),Lu(e,1,r);continue}Yu(e,12,2),c=Iu(e)}else/[a-z]/i.test(i[1])?(c=Fu(e,n),wu("COMPILER_NATIVE_TEMPLATE",e)&&c&&"template"===c.tag&&!c.props.some((e=>7===e.type&&$u(e.name)))&&(c=c.children)):"?"===i[1]?(Yu(e,21,1),c=Iu(e)):Yu(e,12,1);if(c||(c=Du(e,t)),F(c))for(let e=0;e/.exec(e.source);if(r){r.index<=3&&Yu(e,0),r[1]&&Yu(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let o=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",o));)Gu(e,s-o+1),s+4");return-1===o?(r=e.source.slice(n),Gu(e,e.source.length)):(r=e.source.slice(n,o),Gu(e,o+1)),{type:3,content:r,loc:Wu(e,t)}}function Fu(e,t){const n=e.inPre,r=e.inVPre,o=zu(t),s=Lu(e,0,o),i=e.inPre&&!n,c=e.inVPre&&!r;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return i&&(e.inPre=!1),c&&(e.inVPre=!1),s;t.push(s);const l=e.options.getTextMode(s,o),u=Ou(e,l,t);t.pop();{const t=s.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&ku("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=Wu(e,s.loc.end);t.value={type:2,content:n.source,loc:n}}}if(s.children=u,Xu(e.source,s.tag))Lu(e,1,o);else if(Yu(e,24,0,s.loc.start),0===e.source.length&&"script"===s.tag.toLowerCase()){const t=u[0];t&&Ku(t.loc.source,"\x3c!--")&&Yu(e,8)}return s.loc=Wu(e,s.loc.start),i&&(e.inPre=!1),c&&(e.inVPre=!1),s}const $u=o("if,else,else-if,for,slot");function Lu(e,t,n){const r=Hu(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=o[1],i=e.options.getNamespace(s,n);Gu(e,o[0].length),qu(e);const c=Hu(e),l=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let u=Vu(e,t);0===t&&!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,M(e,c),e.source=l,u=Vu(e,t).filter((e=>"v-pre"!==e.name)));let a=!1;if(0===e.source.length?Yu(e,9):(a=Ku(e.source,"/>"),1===t&&a&&Yu(e,4),Gu(e,a?2:1)),1===t)return;let f=0;return e.inVPre||("slot"===s?f=2:"template"===s?u.some((e=>7===e.type&&$u(e.name)))&&(f=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Xl(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e0&&!Ku(e.source,">")&&!Ku(e.source,"/>");){if(Ku(e.source,"/")){Yu(e,22),Gu(e,1),qu(e);continue}1===t&&Yu(e,3);const o=Bu(e,r);6===o.type&&o.value&&"class"===o.name&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Yu(e,15),qu(e)}return n}function Bu(e,t){const n=Hu(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r)&&Yu(e,2),t.add(r),"="===r[0]&&Yu(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(r);)Yu(e,17,n.index)}let o;Gu(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(qu(e),Gu(e,1),qu(e),o=function(e){const t=Hu(e);let n;const r=e.source[0],o='"'===r||"'"===r;if(o){Gu(e,1);const t=e.source.indexOf(r);-1===t?n=Uu(e,e.source.length,4):(n=Uu(e,t,4),Gu(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let o;for(;o=r.exec(t[0]);)Yu(e,18,o.index);n=Uu(e,t[0].length,4)}return{content:n,isQuoted:o,loc:Wu(e,t)}}(e),o||Yu(e,13));const s=Wu(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let i,c=Ku(r,"."),l=t[1]||(c||Ku(r,":")?"bind":Ku(r,"@")?"on":"slot");if(t[2]){const o="slot"===l,s=r.lastIndexOf(t[2]),c=Wu(e,Ju(e,n,s),Ju(e,n,s+t[2].length+(o&&t[3]||"").length));let u=t[2],a=!0;u.startsWith("[")?(a=!1,u.endsWith("]")?u=u.slice(1,u.length-1):(Yu(e,27),u=u.slice(1))):o&&(u+=t[3]||""),i={type:4,content:u,isStatic:a,constType:a?3:0,loc:c}}if(o&&o.isQuoted){const e=o.loc;e.start.offset++,e.start.column++,e.end=iu(e.start,o.content),e.source=e.source.slice(1,-1)}const u=t[3]?t[3].slice(1).split("."):[];return c&&u.push("prop"),"bind"===l&&i&&u.includes("sync")&&ku("COMPILER_V_BIND_SYNC",e,0,i.loc.source)&&(l="model",u.splice(u.indexOf("sync"),1)),{type:7,name:l,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:i,modifiers:u,loc:s}}return!e.inVPre&&Ku(r,"v-")&&Yu(e,26),{type:6,name:r,value:o&&{type:2,content:o.content,loc:o.loc},loc:s}}function ju(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(-1===o)return void Yu(e,25);const s=Hu(e);Gu(e,n.length);const i=Hu(e),c=Hu(e),l=o-n.length,u=e.source.slice(0,l),a=Uu(e,l,t),f=a.trim(),p=a.indexOf(f);p>0&&cu(i,u,p);return cu(c,u,l-(a.length-f.length-p)),Gu(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:Wu(e,i,c)},loc:Wu(e,s)}}function Du(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let t=0;to&&(r=o)}const o=Hu(e);return{type:2,content:Uu(e,r,t),loc:Wu(e,o)}}function Uu(e,t,n){const r=e.source.slice(0,t);return Gu(e,t),2!==n&&3!==n&&r.includes("&")?e.options.decodeEntities(r,4===n):r}function Hu(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Wu(e,t,n){return{start:t,end:n=n||Hu(e),source:e.originalSource.slice(t.offset,n.offset)}}function zu(e){return e[e.length-1]}function Ku(e,t){return e.startsWith(t)}function Gu(e,t){const{source:n}=e;cu(e,n,t),e.source=n.slice(t)}function qu(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Gu(e,t[0].length)}function Ju(e,t,n){return iu(t,e.originalSource.slice(t.offset,n),n)}function Yu(e,t,n,r=Hu(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Qc(t,{start:r,end:r,source:""}))}function Zu(e,t,n){const r=e.source;switch(t){case 0:if(Ku(r,"=0;--e)if(Xu(r,n[e].tag))return!0;break;case 1:case 2:{const e=zu(n);if(e&&Xu(r,e.tag))return!0;break}case 3:if(Ku(r,"]]>"))return!0}return!r}function Xu(e,t){return Ku(e,"]/.test(e[2+t.length]||">")}function Qu(e,t){ta(e,t,ea(e,e.children[0]))}function ea(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!hu(t)}function ta(e,t,n=!1){const{children:r}=e,o=r.length;let s=0;for(let e=0;e0){if(e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),s++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=ca(e);if((!n||512===n||1===n)&&sa(o,t)>=2){const n=ia(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,ta(o,t),e&&t.scopes.vSlot--}else if(11===o.type)ta(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e1)for(let o=0;on&&(C.childIndex--,C.onNodeRemoved()):(C.currentNode=null,C.onNodeRemoved()),C.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){j(e)&&(e=zl(e)),C.hoists.push(e);const t=zl(`_hoisted_${C.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:jl}}(C.cached++,e,t)}};return C.filters=new Set,C}function ua(e,t){const n=la(e,t);aa(e,n),t.hoistStatic&&Qu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(ea(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&xu(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;s[64];0,e.codegenNode=Dl(t,n(el),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aa(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(pu))return;const s=[];for(let i=0;i`${Bl[e]}: _${Bl[e]}`;function ha(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:a=!1,isTS:f=!1,inSSR:p=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:a,isTS:f,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Bl[e]}`},push(e,t){d.code+=e},indent(){h(++d.indentLevel)},deindent(e=!1){e?--d.indentLevel:h(--d.indentLevel)},newline(){h(d.indentLevel)}};function h(e){d.push("\n"+" ".repeat(e))}return d}function ma(e,t={}){const n=ha(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:u,ssr:a}=n,f=Array.from(e.helpers),p=f.length>0,d=!s&&"module"!==r,h=n;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,u=c,a=Array.from(e.helpers);if(a.length>0&&(o(`const _Vue = ${u}\n`),e.hoists.length)){o(`const { ${[ll,ul,al,fl,pl].filter((e=>a.includes(e))).map(da).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:i}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(ga(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ga(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n"),l()),a||o("return "),e.codegenNode?_a(e.codegenNode,n):o("null"),d&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ga(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?gl:"component"===t?dl:ml);for(let n=0;n3||!1;t.push("["),n&&t.indent(),ya(e,t,n),n&&t.deindent(),t.push("]")}function ya(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,l,u]),t),n(")"),f&&n(")");a&&(n(", "),_a(a,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=j(e.callee)?e.callee:r(e.callee);o&&n(pa);n(s+"(",e),ya(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),F(i)?va(i,t):_a(i,t)):c&&_a(c,t);(l||c)&&(o(),n("}"));u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:u}=t;if(4===n.type){const e=!eu(n.content);e&&i("("),ba(n,t),e&&i(")")}else i("("),_a(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),_a(r,t),t.indentLevel--,s&&u(),s||i(" "),i(": ");const a=19===o.type;a||t.indentLevel++;_a(o,t),a||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ml)}(-1),`),i());n(`_cache[${e.index}] = `),_a(e.value,t),e.isVNode&&(n(","),i(),n(`${r(Ml)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")")}(e,t);break;case 21:ya(e.body,t,!0,!1)}}function ba(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Sa(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Qc(28,t.loc)),t.exp=zl("true",!1,r)}0;if("if"===t.name){const o=wa(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Qc(30,e.loc)),n.removeNode();const o=wa(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);aa(o,n),s&&s(),n.currentNode=null}else n.onError(Qc(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=ka(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=ka(t,i+e.branches.length-1,n)}}}))));function wa(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!lu(e,"for")?e.children:[e],userKey:uu(e,"key"),isTemplateIf:n}}function ka(e,t,n){return e.condition?Jl(e.condition,Ea(e,t,n),Gl(n.helper(al),['""',"true"])):Ea(e,t,n)}function Ea(e,t,n){const{helper:r}=n,o=Wl("key",zl(`${t}`,!1,jl,2)),{children:i}=e,c=i[0];if(1!==i.length||1!==c.type){if(1===i.length&&11===c.type){const e=c.codegenNode;return _u(e,o,n),e}{let t=64;s[64];return Dl(n,r(el),Hl([o]),i,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=c.codegenNode,t=14===(l=e).type&&l.callee===Ll?l.arguments[1].returns:l;return 13===t.type&&xu(t,n),_u(t,o,n),e}var l}const Ta=fa("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Qc(31,t.loc));const o=Ma(t.exp,n);if(!o)return void n.onError(Qc(32,t.loc));const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:u,key:a,index:f}=o,p={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:a,objectIndexAlias:f,parseResult:o,children:du(e)?e.children:[e]};n.replaceNode(p),c.vFor++;const d=r&&r(p);return()=>{c.vFor--,d&&d()}}(e,t,n,(t=>{const s=Gl(r(yl),[t.source]),i=du(e),c=lu(e,"memo"),l=uu(e,"key"),u=l&&(6===l.type?zl(l.value.content,!0):l.exp),a=l?Wl("key",u):null,f=4===t.source.type&&t.source.constType>0,p=f?64:l?128:256;return t.codegenNode=Dl(n,r(el),void 0,s,p+"",void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:p}=t;const d=1!==p.length||1!==p[0].type,h=hu(e)?e:i&&1===e.children.length&&hu(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&a&&_u(l,a,n)):d?l=Dl(n,r(el),a?Hl([a]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,i&&a&&_u(l,a,n),l.isBlock!==!f&&(l.isBlock?(o(sl),o(gu(n.inSSR,l.isComponent))):o(mu(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(sl),r(gu(n.inSSR,l.isComponent))):r(mu(n.inSSR,l.isComponent))),c){const e=ql(Aa(t.parseResult,[zl("_cached")]));e.body={type:21,body:[Kl(["const _memo = (",c.exp,")"]),Kl(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Vl)}(_cached, _memo)) return _cached`]),Kl(["const _item = ",l]),zl("_item.memo = _memo"),zl("return _item")],loc:jl},s.arguments.push(e,zl("_cache"),zl(String(n.cached++)))}else s.arguments.push(ql(Aa(t.parseResult),l,!0))}}))}));const Na=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ra=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Oa=/^\(|\)$/g;function Ma(e,t){const n=e.loc,r=e.content,o=r.match(Na);if(!o)return;const[,s,i]=o,c={source:Pa(n,i.trim(),r.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Oa,"").trim();const u=s.indexOf(l),a=l.match(Ra);if(a){l=l.replace(Ra,"").trim();const e=a[1].trim();let t;if(e&&(t=r.indexOf(e,u+l.length),c.key=Pa(n,e,t)),a[2]){const o=a[2].trim();o&&(c.index=Pa(n,o,r.indexOf(o,c.key?t+e.length:u+l.length)))}}return l&&(c.value=Pa(n,l,u)),c}function Pa(e,t,n){return zl(t,!1,su(e,n,t.length))}function Aa({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||zl("_".repeat(t+1),!1)))}([e,t,n,...r])}const Ia=zl("undefined",!1),Fa=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=lu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},$a=(e,t,n)=>ql(e,t,!1,!0,t.length?t[0].loc:n);function La(e,t,n=$a){t.helper(Il);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=lu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Yl(e)&&(c=!0),s.push(Wl(e||zl("default",!0),n(t,r,o)))}let u=!1,a=!1;const f=[],p=new Set;let d=0;for(let e=0;e{const s=n(e,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),Wl("default",s)};u?f.length&&f.some((e=>ja(e)))&&(a?t.onError(Qc(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Ba(e.children)?3:1;let m=Hl(s.concat(Wl("_",zl(h+"",!1))),o);return i.length&&(m=Gl(t.helper(bl),[m,Ul(i)])),{slots:m,hasDynamicSlots:c}}function Va(e,t,n){const r=[Wl("name",e),Wl("fn",t)];return null!=n&&r.push(Wl("key",zl(String(n),!0))),Hl(r)}function Ba(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=Ka(r),s=uu(e,"is");if(s)if(o||wu("COMPILER_IS_ON_ELEMENT",t)){const e=6===s.type?s.value&&zl(s.value.content,!0):s.exp;if(e)return Gl(t.helper(hl),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=!o&&lu(e,"is");if(i&&i.exp)return Gl(t.helper(hl),[i.exp]);const c=Xl(r)||t.isBuiltInComponent(r);if(c)return n||t.helper(c),c;return t.helper(dl),t.components.add(r),Su(r,"component")}(e,t):`"${n}"`;const i=U(s)&&s.callee===hl;let c,l,u,a,f,p,d=0,h=i||s===tl||s===nl||!o&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=Ha(e,t,void 0,o,i);c=n.props,d=n.patchFlag,f=n.dynamicPropNames;const r=n.directives;p=r&&r.length?Ul(r.map((e=>function(e,t){const n=[],r=Da.get(e);r?n.push(t.helperString(r)):(t.helper(ml),t.directives.add(e.name),n.push(Su(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=zl("true",!1,o);n.push(Hl(e.modifiers.map((e=>Wl(e,t))),o))}return Ul(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){s===rl&&(h=!0,d|=1024);if(o&&s!==tl&&s!==rl){const{slots:n,hasDynamicSlots:r}=La(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&s!==tl){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===na(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}0!==d&&(u=String(d),f&&f.length&&(a=function(e){let t="[";for(let n=0,r=e.length;n0;let d=!1,h=0,m=!1,g=!1,v=!1,y=!1,_=!1,b=!1;const S=[],x=e=>{u.length&&(a.push(Hl(Wa(u),c)),u=[]),e&&a.push(e)},C=({key:e,value:n})=>{if(Yl(e)){const s=e.content,i=R(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||J(s)||(y=!0),i&&J(s)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&na(n,t)>0)return;"ref"===s?m=!0:"class"===s?g=!0:"style"===s?v=!0:"key"===s||S.includes(s)||S.push(s),!r||"class"!==s&&"style"!==s||S.includes(s)||S.push(s)}else _=!0};for(let o=0;o0&&u.push(Wl(zl("ref_for",!0),zl("true")))),"is"===n&&(Ka(i)||r&&r.content.startsWith("vue:")||wu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Wl(zl(n,!0,su(e,0,n.length)),zl(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:o,exp:h,loc:m}=l,g="bind"===n,v="on"===n;if("slot"===n){r||t.onError(Qc(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&au(o,"is")&&(Ka(i)||wu("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&s)continue;if((g&&au(o,"key")||v&&p&&au(o,"vue:before-update"))&&(d=!0),g&&au(o,"ref")&&t.scopes.vFor>0&&u.push(Wl(zl("ref_for",!0),zl("true"))),!o&&(g||v)){if(_=!0,h)if(g){if(x(),wu("COMPILER_V_BIND_OBJECT_ORDER",t)){a.unshift(h);continue}a.push(h)}else x({type:14,loc:m,callee:t.helper(Tl),arguments:r?[h]:[h,"true"]});else t.onError(Qc(g?34:35,m));continue}const y=t.directiveTransforms[n];if(y){const{props:n,needRuntime:r}=y(l,e,t);!s&&n.forEach(C),v&&o&&!Yl(o)?x(Hl(n,c)):u.push(...n),r&&(f.push(l),D(r)&&Da.set(l,r))}else Y(n)||(f.push(l),p&&(d=!0))}}let w;if(a.length?(x(),w=a.length>1?Gl(t.helper(xl),a,c):a[0]):u.length&&(w=Hl(Wa(u),c)),_?h|=16:(g&&!r&&(h|=2),v&&!r&&(h|=4),S.length&&(h|=8),y&&(h|=32)),d||0!==h&&32!==h||!(m||b||f.length>0)||(h|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.replace(Ga,((e,t)=>t?t.toUpperCase():"")))),Ja=(e,t)=>{if(hu(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Ha(e,t,o,!1,!1);n=r,s.length&&t.onError(Qc(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=ql([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Gl(t.helper(_l),i,r)}};const Ya=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Za=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Qc(35,o)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=zl(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?re(Q(e)):`on:${e}`,!0,i.loc)}else c=Kl([`${n.helperString(Ol)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(Ol)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=ou(l.content),t=!(e||Ya.test(l.content)),n=l.content.includes(";");0,(t||u&&e)&&(l=Kl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let a={props:[Wl(c,l||zl("() => {}",!1,o))]};return r&&(a=r(a)),u&&(a.props[0].value=n.cache(a.props[0].value)),a.props.forEach((e=>e.key.isHandlerKey=!0)),a},Xa=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,i=e.arg;return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=Q(i.content):i.content=`${n.helperString(Nl)}(${i.content})`:(i.children.unshift(`${n.helperString(Nl)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&Qa(i,"."),o.includes("attr")&&Qa(i,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(Qc(34,s)),{props:[Wl(i,zl("",!0,s))]}):{props:[Wl(i,r)]}},Qa=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ef=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&lu(e,"once",!0)){if(tf.has(e)||t.inVOnce)return;return tf.add(e),t.inVOnce=!0,t.helper(Ml),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},rf=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Qc(41,e.loc)),of();const s=r.loc.source,i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Qc(44,r.loc)),of();if(!i.trim()||!ou(i))return n.onError(Qc(42,r.loc)),of();const l=o||zl("modelValue",!0),u=o?Yl(o)?`onUpdate:${Q(o.content)}`:Kl(['"onUpdate:" + ',o]):"onUpdate:modelValue";let a;a=Kl([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[Wl(l,e.exp),Wl(u,a)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(eu(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?Yl(o)?`${o.content}Modifiers`:Kl([o,' + "Modifiers"']):"modelModifiers";f.push(Wl(n,zl(`{ ${t} }`,!1,e.loc,2)))}return of(f)};function of(e=[]){return{props:e}}const sf=/[\w).+\-_$\]]/,cf=(e,t)=>{wu("COMPILER_FILTER",t)&&(5===e.type&&lf(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&lf(e.exp,t)})))};function lf(e,t){if(4===e.type)uf(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&sf.test(e)||(a=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=lu(e,"memo");if(!n||ff.has(e))return;return ff.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&xu(r,t),e.codegenNode=Gl(t.helper(Ll),[n.exp,ql(void 0,r),"_cache",String(t.cached++)]))}}};function df(e,t={}){const n=t.onError||Zc,r="module"===t.mode;!0===t.prefixIdentifiers?n(Qc(47)):r&&n(Qc(48));t.cacheHandlers&&n(Qc(49)),t.scopeId&&!r&&n(Qc(50));const o=j(e)?Ru(e,t):e,[s,i]=[[nf,Ca,pf,Ta,cf,Ja,Ua,Fa,ef],{on:Za,bind:Xa,model:rf}];return ua(o,M({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:M({},i,t.directiveTransforms||{})})),ma(o,M({},t,{prefixIdentifiers:false}))}const hf=Symbol(""),mf=Symbol(""),gf=Symbol(""),vf=Symbol(""),yf=Symbol(""),_f=Symbol(""),bf=Symbol(""),Sf=Symbol(""),xf=Symbol(""),Cf=Symbol("");var wf;let kf;wf={[hf]:"vModelRadio",[mf]:"vModelCheckbox",[gf]:"vModelText",[vf]:"vModelSelect",[yf]:"vModelDynamic",[_f]:"withModifiers",[bf]:"withKeys",[Sf]:"vShow",[xf]:"Transition",[Cf]:"TransitionGroup"},Object.getOwnPropertySymbols(wf).forEach((e=>{Bl[e]=wf[e]}));const Ef=o("style,iframe,script,noscript",!0),Tf={isVoidTag:g,isNativeTag:e=>h(e)||m(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return kf||(kf=document.createElement("div")),t?(kf.innerHTML=`
`,kf.children[0].getAttribute("foo")):(kf.innerHTML=e,kf.textContent)},isBuiltInComponent:e=>Zl(e,"Transition")?xf:Zl(e,"TransitionGroup")?Cf:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Ef(e))return 2}return 0}},Nf=(e,t)=>{const n=f(e);return zl(JSON.stringify(n),!1,t,3)};function Rf(e,t){return Qc(e,t)}const Of=o("passive,once,capture"),Mf=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Pf=o("left,right"),Af=o("onkeyup,onkeydown,onkeypress",!0),If=(e,t)=>Yl(e)&&"onclick"===e.content.toLowerCase()?zl(t,!0):4!==e.type?Kl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Ff=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(Rf(61,e.loc)),t.removeNode())},$f=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:zl("style",!0,t.loc),exp:Nf(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Lf={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Rf(51,o)),t.children.length&&(n.onError(Rf(52,o)),t.children.length=0),{props:[Wl(zl("innerHTML",!0,o),r||zl("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Rf(53,o)),t.children.length&&(n.onError(Rf(54,o)),t.children.length=0),{props:[Wl(zl("textContent",!0),r?na(r,n)>0?r:Gl(n.helperString(Sl),[r],o):zl("",!0))]}},model:(e,t,n)=>{const r=rf(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Rf(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=gf,c=!1;if("input"===o||s){const r=uu(t,"type");if(r){if(7===r.type)i=yf;else if(r.value)switch(r.value.content){case"radio":i=hf;break;case"checkbox":i=mf;break;case"file":c=!0,n.onError(Rf(57,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=yf)}else"select"===o&&(i=vf);c||(r.needRuntime=n.helper(i))}else n.onError(Rf(55,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Za(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],s=[],i=[];for(let r=0;r{const{exp:r,loc:o}=e;return r||n.onError(Rf(59,o)),{props:[],needRuntime:n.helper(Sf)}}};const Vf=Object.create(null);function Bf(e,t){if(!j(e)){if(!e.nodeType)return E;e=e.innerHTML}const n=e,o=Vf[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const s=M({hoistStatic:!0,onError:void 0,onWarn:E},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));const{code:i}=function(e,t={}){return df(e,M({},Tf,t,{nodeTransforms:[Ff,...$f,...t.nodeTransforms||[]],directiveTransforms:M({},Lf,t.directiveTransforms||{}),transformHoist:null}))}(e,s);const c=new Function("Vue",i)(r);return c._rc=!0,Vf[n]=c}Ys(Bf)}}]); \ No newline at end of file +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[429],{935:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var s=0;s{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},35:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return Mr},BaseTransitionPropsValidators:function(){return Ir},Comment:function(){return Oi},DeprecationTypes:function(){return Kc},EffectScope:function(){return be},ErrorCodes:function(){return Ln},ErrorTypeStrings:function(){return Uc},Fragment:function(){return Ii},KeepAlive:function(){return fo},ReactiveEffect:function(){return ke},Static:function(){return Mi},Suspense:function(){return ki},Teleport:function(){return Cr},Text:function(){return Ri},TrackOpTypes:function(){return xn},Transition:function(){return sl},TransitionGroup:function(){return ea},TriggerOpTypes:function(){return Cn},VueElement:function(){return zl},assertNumber:function(){return Dn},callWithAsyncErrorHandling:function(){return Vn},callWithErrorHandling:function(){return Fn},camelize:function(){return M},capitalize:function(){return L},cloneVNode:function(){return Zi},compatUtils:function(){return zc},compile:function(){return Rp},computed:function(){return Pc},createApp:function(){return Ra},createBlock:function(){return ji},createCommentVNode:function(){return nc},createElementBlock:function(){return Hi},createElementVNode:function(){return Yi},createHydrationRenderer:function(){return Js},createPropsRestProxy:function(){return as},createRenderer:function(){return Ks},createSSRApp:function(){return Oa},createSlots:function(){return Uo},createStaticVNode:function(){return tc},createTextVNode:function(){return ec},createVNode:function(){return Gi},customRef:function(){return mn},defineAsyncComponent:function(){return lo},defineComponent:function(){return Br},defineCustomElement:function(){return jl},defineEmits:function(){return Xo},defineExpose:function(){return Qo},defineModel:function(){return ts},defineOptions:function(){return Zo},defineProps:function(){return Go},defineSSRCustomElement:function(){return ql},defineSlots:function(){return es},devtools:function(){return Hc},effect:function(){return Le},effectScope:function(){return _e},getCurrentInstance:function(){return dc},getCurrentScope:function(){return Se},getCurrentWatcher:function(){return wn},getTransitionRawChildren:function(){return Vr},guardReactiveProps:function(){return Qi},h:function(){return Dc},handleError:function(){return Bn},hasInjectionContext:function(){return Ns},hydrate:function(){return Ia},hydrateOnIdle:function(){return ro},hydrateOnInteraction:function(){return io},hydrateOnMediaQuery:function(){return so},hydrateOnVisible:function(){return oo},initCustomFormatter:function(){return Lc},initDirectivesForSSR:function(){return La},inject:function(){return As},isMemoSame:function(){return Fc},isProxy:function(){return Qt},isReactive:function(){return Yt},isReadonly:function(){return Gt},isRef:function(){return rn},isRuntimeOnly:function(){return kc},isShallow:function(){return Xt},isVNode:function(){return qi},markRaw:function(){return en},mergeDefaults:function(){return cs},mergeModels:function(){return ls},mergeProps:function(){return ic},nextTick:function(){return Gn},normalizeClass:function(){return X},normalizeProps:function(){return Q},normalizeStyle:function(){return z},onActivated:function(){return ho},onBeforeMount:function(){return xo},onBeforeUnmount:function(){return Eo},onBeforeUpdate:function(){return ko},onDeactivated:function(){return mo},onErrorCaptured:function(){return Ro},onMounted:function(){return Co},onRenderTracked:function(){return Io},onRenderTriggered:function(){return No},onScopeDispose:function(){return xe},onServerPrefetch:function(){return Ao},onUnmounted:function(){return wo},onUpdated:function(){return To},onWatcherCleanup:function(){return An},openBlock:function(){return Li},popScopeId:function(){return fr},provide:function(){return ws},proxyRefs:function(){return pn},pushScopeId:function(){return ur},queuePostFlushCb:function(){return Zn},reactive:function(){return qt},readonly:function(){return zt},ref:function(){return on},registerRuntimeCompiler:function(){return Cc},render:function(){return Na},renderList:function(){return Bo},renderSlot:function(){return Ho},resolveComponent:function(){return Po},resolveDirective:function(){return $o},resolveDynamicComponent:function(){return Lo},resolveFilter:function(){return Wc},resolveTransitionHooks:function(){return Dr},setBlockTracking:function(){return Bi},setDevtoolsHook:function(){return jc},setTransitionHooks:function(){return Fr},shallowReactive:function(){return Wt},shallowReadonly:function(){return Kt},shallowRef:function(){return sn},ssrContextKey:function(){return ni},ssrUtils:function(){return qc},stop:function(){return $e},toDisplayString:function(){return he},toHandlerKey:function(){return $},toHandlers:function(){return qo},toRaw:function(){return Zt},toRef:function(){return bn},toRefs:function(){return gn},toValue:function(){return fn},transformVNodeArgs:function(){return zi},triggerRef:function(){return an},unref:function(){return un},useAttrs:function(){return os},useCssModule:function(){return Yl},useCssVars:function(){return kl},useHost:function(){return Kl},useId:function(){return Ur},useModel:function(){return fi},useSSRContext:function(){return ri},useShadowRoot:function(){return Jl},useSlots:function(){return rs},useTemplateRef:function(){return jr},useTransitionState:function(){return Ar},vModelCheckbox:function(){return aa},vModelDynamic:function(){return ga},vModelRadio:function(){return fa},vModelSelect:function(){return da},vModelText:function(){return la},vShow:function(){return Sl},version:function(){return Vc},warn:function(){return Bc},watch:function(){return ci},watchEffect:function(){return oi},watchPostEffect:function(){return si},watchSyncEffect:function(){return ii},withAsyncContext:function(){return us},withCtx:function(){return pr},withDefaults:function(){return ns},withDirectives:function(){return hr},withKeys:function(){return Ca},withMemo:function(){return $c},withModifiers:function(){return Sa},withScopeId:function(){return dr}});var r={}; +/** +* @vue/shared v3.5.8 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.r(r),n.d(r,{BaseTransition:function(){return Mr},BaseTransitionPropsValidators:function(){return Ir},Comment:function(){return Oi},DeprecationTypes:function(){return Kc},EffectScope:function(){return be},ErrorCodes:function(){return Ln},ErrorTypeStrings:function(){return Uc},Fragment:function(){return Ii},KeepAlive:function(){return fo},ReactiveEffect:function(){return ke},Static:function(){return Mi},Suspense:function(){return ki},Teleport:function(){return Cr},Text:function(){return Ri},TrackOpTypes:function(){return xn},Transition:function(){return sl},TransitionGroup:function(){return ea},TriggerOpTypes:function(){return Cn},VueElement:function(){return zl},assertNumber:function(){return Dn},callWithAsyncErrorHandling:function(){return Vn},callWithErrorHandling:function(){return Fn},camelize:function(){return M},capitalize:function(){return L},cloneVNode:function(){return Zi},compatUtils:function(){return zc},computed:function(){return Pc},createApp:function(){return Ra},createBlock:function(){return ji},createCommentVNode:function(){return nc},createElementBlock:function(){return Hi},createElementVNode:function(){return Yi},createHydrationRenderer:function(){return Js},createPropsRestProxy:function(){return as},createRenderer:function(){return Ks},createSSRApp:function(){return Oa},createSlots:function(){return Uo},createStaticVNode:function(){return tc},createTextVNode:function(){return ec},createVNode:function(){return Gi},customRef:function(){return mn},defineAsyncComponent:function(){return lo},defineComponent:function(){return Br},defineCustomElement:function(){return jl},defineEmits:function(){return Xo},defineExpose:function(){return Qo},defineModel:function(){return ts},defineOptions:function(){return Zo},defineProps:function(){return Go},defineSSRCustomElement:function(){return ql},defineSlots:function(){return es},devtools:function(){return Hc},effect:function(){return Le},effectScope:function(){return _e},getCurrentInstance:function(){return dc},getCurrentScope:function(){return Se},getCurrentWatcher:function(){return wn},getTransitionRawChildren:function(){return Vr},guardReactiveProps:function(){return Qi},h:function(){return Dc},handleError:function(){return Bn},hasInjectionContext:function(){return Ns},hydrate:function(){return Ia},hydrateOnIdle:function(){return ro},hydrateOnInteraction:function(){return io},hydrateOnMediaQuery:function(){return so},hydrateOnVisible:function(){return oo},initCustomFormatter:function(){return Lc},initDirectivesForSSR:function(){return La},inject:function(){return As},isMemoSame:function(){return Fc},isProxy:function(){return Qt},isReactive:function(){return Yt},isReadonly:function(){return Gt},isRef:function(){return rn},isRuntimeOnly:function(){return kc},isShallow:function(){return Xt},isVNode:function(){return qi},markRaw:function(){return en},mergeDefaults:function(){return cs},mergeModels:function(){return ls},mergeProps:function(){return ic},nextTick:function(){return Gn},normalizeClass:function(){return X},normalizeProps:function(){return Q},normalizeStyle:function(){return z},onActivated:function(){return ho},onBeforeMount:function(){return xo},onBeforeUnmount:function(){return Eo},onBeforeUpdate:function(){return ko},onDeactivated:function(){return mo},onErrorCaptured:function(){return Ro},onMounted:function(){return Co},onRenderTracked:function(){return Io},onRenderTriggered:function(){return No},onScopeDispose:function(){return xe},onServerPrefetch:function(){return Ao},onUnmounted:function(){return wo},onUpdated:function(){return To},onWatcherCleanup:function(){return An},openBlock:function(){return Li},popScopeId:function(){return fr},provide:function(){return ws},proxyRefs:function(){return pn},pushScopeId:function(){return ur},queuePostFlushCb:function(){return Zn},reactive:function(){return qt},readonly:function(){return zt},ref:function(){return on},registerRuntimeCompiler:function(){return Cc},render:function(){return Na},renderList:function(){return Bo},renderSlot:function(){return Ho},resolveComponent:function(){return Po},resolveDirective:function(){return $o},resolveDynamicComponent:function(){return Lo},resolveFilter:function(){return Wc},resolveTransitionHooks:function(){return Dr},setBlockTracking:function(){return Bi},setDevtoolsHook:function(){return jc},setTransitionHooks:function(){return Fr},shallowReactive:function(){return Wt},shallowReadonly:function(){return Kt},shallowRef:function(){return sn},ssrContextKey:function(){return ni},ssrUtils:function(){return qc},stop:function(){return $e},toDisplayString:function(){return he},toHandlerKey:function(){return $},toHandlers:function(){return qo},toRaw:function(){return Zt},toRef:function(){return bn},toRefs:function(){return gn},toValue:function(){return fn},transformVNodeArgs:function(){return zi},triggerRef:function(){return an},unref:function(){return un},useAttrs:function(){return os},useCssModule:function(){return Yl},useCssVars:function(){return kl},useHost:function(){return Kl},useId:function(){return Ur},useModel:function(){return fi},useSSRContext:function(){return ri},useShadowRoot:function(){return Jl},useSlots:function(){return rs},useTemplateRef:function(){return jr},useTransitionState:function(){return Ar},vModelCheckbox:function(){return aa},vModelDynamic:function(){return ga},vModelRadio:function(){return fa},vModelSelect:function(){return da},vModelText:function(){return la},vShow:function(){return Sl},version:function(){return Vc},warn:function(){return Bc},watch:function(){return ci},watchEffect:function(){return oi},watchPostEffect:function(){return si},watchSyncEffect:function(){return ii},withAsyncContext:function(){return us},withCtx:function(){return pr},withDefaults:function(){return ns},withDirectives:function(){return hr},withKeys:function(){return Ca},withMemo:function(){return $c},withModifiers:function(){return Sa},withScopeId:function(){return dr}});const s={},i=[],c=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),f=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),m=Array.isArray,g=e=>"[object Map]"===T(e),v=e=>"[object Set]"===T(e),y=e=>"[object Date]"===T(e),b=e=>"function"==typeof e,_=e=>"string"==typeof e,S=e=>"symbol"==typeof e,x=e=>null!==e&&"object"==typeof e,C=e=>(x(e)||b(e))&&b(e.then)&&b(e.catch),k=Object.prototype.toString,T=e=>k.call(e),E=e=>T(e).slice(8,-1),w=e=>"[object Object]"===T(e),A=e=>_(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,N=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,M=R((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,D=R((e=>e.replace(P,"-$1").toLowerCase())),L=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),$=R((e=>e?`on${L(e)}`:"")),F=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=_(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const q=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const W=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function z(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(_(e))t=e;else if(m(e))for(let n=0;n?@[\\\]^`{|}~]/g;function ue(e,t){return e.replace(ae,(e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`))}function fe(e,t){if(e===t)return!0;let n=y(e),r=y(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=S(e),r=S(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rfe(e,t)))}const pe=e=>!(!e||!0!==e.__v_isRef),he=e=>_(e)?e:null==e?"":m(e)||x(e)&&(e.toString===k||!b(e.toString))?pe(e)?he(e.value):JSON.stringify(e,me,2):String(e),me=(e,t)=>pe(t)?me(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[ge(t,r)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ge(e)))}:S(t)?ge(t):!x(t)||m(t)||w(t)?t:String(t),ge=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let ve,ye;class be{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ve,!e&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e0)return;let e;for(;Te;){let t=Te;for(Te=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function Ie(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Re(e,t=!1){let n,r=e.depsTail,o=r;for(;o;){const e=o.prevDep;-1===o.version?(o===r&&(r=e),Pe(o,t),De(o)):n=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=n,e.depsTail=r}function Oe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Me(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Me(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===je)return;e.globalVersion=je;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Oe(e))return void(e.flags&=-3);const n=ye,r=Fe;ye=e,Fe=!0;try{Ie(e);const n=e.fn(e._value);(0===t.version||F(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ye=n,Fe=r,Re(e,!0),e.flags&=-3}}function Pe(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r),!n.subs)if(n.computed){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Pe(e,!0)}else n.map&&!t&&(n.map.delete(n.key),n.map.size||Ke.delete(n.target))}function De(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Le(e,t){e.effect instanceof ke&&(e=e.effect.fn);const n=new ke(e);t&&f(n,t);try{n.run()}catch(e){throw n.stop(),e}const r=n.run.bind(n);return r.effect=n,r}function $e(e){e.effect.stop()}let Fe=!0;const Ve=[];function Be(){Ve.push(Fe),Fe=!1}function Ue(){const e=Ve.pop();Fe=void 0===e||e}function He(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ye;ye=void 0;try{t()}finally{ye=e}}}let je=0;class qe{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class We{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0}track(e){if(!ye||!Fe||ye===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ye)t=this.activeLink=new qe(ye,this),ye.deps?(t.prevDep=ye.depsTail,ye.depsTail.nextDep=t,ye.depsTail=t):ye.deps=ye.depsTail=t,4&ye.flags&&ze(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ye.depsTail,t.nextDep=void 0,ye.depsTail.nextDep=t,ye.depsTail=t,ye.deps===t&&(ye.deps=e)}return t}trigger(e){this.version++,je++,this.notify(e)}notify(e){Ae();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ne()}}}function ze(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ze(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Ke=new WeakMap,Je=Symbol(""),Ye=Symbol(""),Ge=Symbol("");function Xe(e,t,n){if(Fe&&ye){let t=Ke.get(e);t||Ke.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new We),r.target=e,r.map=t,r.key=n),r.track()}}function Qe(e,t,n,r,o,s){const i=Ke.get(e);if(!i)return void je++;const c=e=>{e&&e.trigger()};if(Ae(),"clear"===t)i.forEach(c);else{const o=m(e),s=o&&A(n);if(o&&"length"===n){const e=Number(r);i.forEach(((t,n)=>{("length"===n||n===Ge||!S(n)&&n>=e)&&c(t)}))}else switch(void 0!==n&&c(i.get(n)),s&&c(i.get(Ge)),t){case"add":o?s&&c(i.get("length")):(c(i.get(Je)),g(e)&&c(i.get(Ye)));break;case"delete":o||(c(i.get(Je)),g(e)&&c(i.get(Ye)));break;case"set":g(e)&&c(i.get(Je))}}Ne()}function Ze(e){const t=Zt(e);return t===e?t:(Xe(t,0,Ge),Xt(e)?t:t.map(tn))}function et(e){return Xe(e=Zt(e),0,Ge),e}const tt={__proto__:null,[Symbol.iterator](){return nt(this,Symbol.iterator,tn)},concat(...e){return Ze(this).concat(...e.map((e=>m(e)?Ze(e):e)))},entries(){return nt(this,"entries",(e=>(e[1]=tn(e[1]),e)))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,(e=>e.map(tn)),arguments)},find(e,t){return ot(this,"find",e,t,tn,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,tn,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return it(this,"includes",e)},indexOf(...e){return it(this,"indexOf",e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return it(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return ct(this,"pop")},push(...e){return ct(this,"push",e)},reduce(e,...t){return st(this,"reduce",e,t)},reduceRight(e,...t){return st(this,"reduceRight",e,t)},shift(){return ct(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return ct(this,"splice",e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return ct(this,"unshift",e)},values(){return nt(this,"values",tn)}};function nt(e,t,n){const r=et(e),o=r[t]();return r===e||Xt(e)||(o._next=o.next,o.next=()=>{const e=o._next();return e.value&&(e.value=n(e.value)),e}),o}const rt=Array.prototype;function ot(e,t,n,r,o,s){const i=et(e),c=i!==e&&!Xt(e),l=i[t];if(l!==rt[t]){const t=l.apply(e,s);return c?tn(t):t}let a=n;i!==e&&(c?a=function(t,r){return n.call(this,tn(t),r,e)}:n.length>2&&(a=function(t,r){return n.call(this,t,r,e)}));const u=l.call(i,a,r);return c&&o?o(u):u}function st(e,t,n,r){const o=et(e);let s=n;return o!==e&&(Xt(e)?n.length>3&&(s=function(t,r,o){return n.call(this,t,r,o,e)}):s=function(t,r,o){return n.call(this,t,tn(r),o,e)}),o[t](s,...r)}function it(e,t,n){const r=Zt(e);Xe(r,0,Ge);const o=r[t](...n);return-1!==o&&!1!==o||!Qt(n[0])?o:(n[0]=Zt(n[0]),r[t](...n))}function ct(e,t,n=[]){Be(),Ae();const r=Zt(e)[t].apply(e,n);return Ne(),Ue(),r}const lt=o("__proto__,__v_isRef,__isVue"),at=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(S));function ut(e){S(e)||(e=String(e));const t=Zt(this);return Xe(t,0,e),t.hasOwnProperty(e)}class ft{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?jt:Ht:o?Ut:Bt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!r){let e;if(s&&(e=tt[t]))return e;if("hasOwnProperty"===t)return ut}const i=Reflect.get(e,t,rn(e)?e:n);return(S(t)?at.has(t):lt(t))?i:(r||Xe(e,0,t),o?i:rn(i)?s&&A(t)?i:i.value:x(i)?r?zt(i):qt(i):i)}}class dt extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){const t=Gt(o);if(Xt(n)||Gt(n)||(o=Zt(o),n=Zt(n)),!m(e)&&rn(o)&&!rn(n))return!t&&(o.value=n,!0)}const s=m(e)&&A(t)?Number(t)e,bt=e=>Reflect.getPrototypeOf(e);function _t(e,t,n=!1,r=!1){const o=Zt(e=e.__v_raw),s=Zt(t);n||(F(t,s)&&Xe(o,0,t),Xe(o,0,s));const{has:i}=bt(o),c=r?yt:n?nn:tn;return i.call(o,t)?c(e.get(t)):i.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function St(e,t=!1){const n=this.__v_raw,r=Zt(n),o=Zt(e);return t||(F(e,o)&&Xe(r,0,e),Xe(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function xt(e,t=!1){return e=e.__v_raw,!t&&Xe(Zt(e),0,Je),Reflect.get(e,"size",e)}function Ct(e,t=!1){t||Xt(e)||Gt(e)||(e=Zt(e));const n=Zt(this);return bt(n).has.call(n,e)||(n.add(e),Qe(n,"add",e,e)),this}function kt(e,t,n=!1){n||Xt(t)||Gt(t)||(t=Zt(t));const r=Zt(this),{has:o,get:s}=bt(r);let i=o.call(r,e);i||(e=Zt(e),i=o.call(r,e));const c=s.call(r,e);return r.set(e,t),i?F(t,c)&&Qe(r,"set",e,t):Qe(r,"add",e,t),this}function Tt(e){const t=Zt(this),{has:n,get:r}=bt(t);let o=n.call(t,e);o||(e=Zt(e),o=n.call(t,e));r&&r.call(t,e);const s=t.delete(e);return o&&Qe(t,"delete",e,void 0),s}function Et(){const e=Zt(this),t=0!==e.size,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}function wt(e,t){return function(n,r){const o=this,s=o.__v_raw,i=Zt(s),c=t?yt:e?nn:tn;return!e&&Xe(i,0,Je),s.forEach(((e,t)=>n.call(r,c(e),c(t),o)))}}function At(e,t,n){return function(...r){const o=this.__v_raw,s=Zt(o),i=g(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,a=o[e](...r),u=n?yt:t?nn:tn;return!t&&Xe(s,0,l?Ye:Je),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Nt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function It(){const e={get(e){return _t(this,e)},get size(){return xt(this)},has:St,add:Ct,set:kt,delete:Tt,clear:Et,forEach:wt(!1,!1)},t={get(e){return _t(this,e,!1,!0)},get size(){return xt(this)},has:St,add(e){return Ct.call(this,e,!0)},set(e,t){return kt.call(this,e,t,!0)},delete:Tt,clear:Et,forEach:wt(!1,!0)},n={get(e){return _t(this,e,!0)},get size(){return xt(this,!0)},has(e){return St.call(this,e,!0)},add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear"),forEach:wt(!0,!1)},r={get(e){return _t(this,e,!0,!0)},get size(){return xt(this,!0)},has(e){return St.call(this,e,!0)},add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear"),forEach:wt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=At(o,!1,!1),n[o]=At(o,!0,!1),t[o]=At(o,!1,!0),r[o]=At(o,!0,!0)})),[e,n,t,r]}const[Rt,Ot,Mt,Pt]=It();function Dt(e,t){const n=t?e?Pt:Mt:e?Ot:Rt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(h(n,r)&&r in t?n:t,r,o)}const Lt={get:Dt(!1,!1)},$t={get:Dt(!1,!0)},Ft={get:Dt(!0,!1)},Vt={get:Dt(!0,!0)};const Bt=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,jt=new WeakMap;function qt(e){return Gt(e)?e:Jt(e,!1,ht,Lt,Bt)}function Wt(e){return Jt(e,!1,gt,$t,Ut)}function zt(e){return Jt(e,!0,mt,Ft,Ht)}function Kt(e){return Jt(e,!0,vt,Vt,jt)}function Jt(e,t,n,r,o){if(!x(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(E(c));var c;if(0===i)return e;const l=new Proxy(e,2===i?r:n);return o.set(e,l),l}function Yt(e){return Gt(e)?Yt(e.__v_raw):!(!e||!e.__v_isReactive)}function Gt(e){return!(!e||!e.__v_isReadonly)}function Xt(e){return!(!e||!e.__v_isShallow)}function Qt(e){return!!e&&!!e.__v_raw}function Zt(e){const t=e&&e.__v_raw;return t?Zt(t):e}function en(e){return!h(e,"__v_skip")&&Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const tn=e=>x(e)?qt(e):e,nn=e=>x(e)?zt(e):e;function rn(e){return!!e&&!0===e.__v_isRef}function on(e){return cn(e,!1)}function sn(e){return cn(e,!0)}function cn(e,t){return rn(e)?e:new ln(e,t)}class ln{constructor(e,t){this.dep=new We,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Zt(e),this._value=t?e:tn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Xt(e)||Gt(e);e=n?e:Zt(e),F(e,t)&&(this._rawValue=e,this._value=n?e:tn(e),this.dep.trigger())}}function an(e){e.dep&&e.dep.trigger()}function un(e){return rn(e)?e.value:e}function fn(e){return b(e)?e():un(e)}const dn={get:(e,t,n)=>"__v_raw"===t?e:un(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return rn(o)&&!rn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function pn(e){return Yt(e)?e:new Proxy(e,dn)}class hn{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new We,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function mn(e){return new hn(e)}function gn(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=_n(e,n);return t}class vn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Zt(this._object),t=this._key,null==(n=Ke.get(e))?void 0:n.get(t);var e,t,n}}class yn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bn(e,t,n){return rn(e)?e:b(e)?new yn(e):x(e)&&arguments.length>1?_n(e,t,n):on(e)}function _n(e,t,n){const r=e[t];return rn(r)?r:new vn(e,t,n)}class Sn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new We(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=je-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ye===this))return we(this),!0}get value(){const e=this.dep.track();return Me(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const xn={GET:"get",HAS:"has",ITERATE:"iterate"},Cn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},kn={},Tn=new WeakMap;let En;function wn(){return En}function An(e,t=!1,n=En){if(n){let t=Tn.get(n);t||Tn.set(n,t=[]),t.push(e)}else 0}function Nn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,rn(e))Nn(e.value,t,n);else if(m(e))for(let r=0;r{Nn(e,t,n)}));else if(w(e)){for(const r in e)Nn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Nn(e[r],t,n)}return e} +/** +* @vue/runtime-core v3.5.8 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +const In=[];let Rn=!1;function On(e,...t){if(Rn)return;Rn=!0,Be();const n=In.length?In[In.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=function(){let e=In[In.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Fn(r,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Oc(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Oc(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Mn(e.props),s]:[o+s]}(e))})),t}(o)),console.warn(...n)}Ue(),Rn=!1}function Mn(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Pn(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Pn(e,t,n){return _(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:rn(t)?(t=Pn(e,Zt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):b(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Zt(t),n?t:[`${e}=`,t])}function Dn(e,t){}const Ln={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},$n={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Fn(e,t,n,r){try{return r?e(...r):e()}catch(e){Bn(e,t,n)}}function Vn(e,t,n,r){if(b(e)){const o=Fn(e,t,n,r);return o&&C(o)&&o.catch((e=>{Bn(e,t,n)})),o}if(m(e)){const o=[];for(let s=0;s=nr(n)?jn.push(e):jn.splice(function(e){let t=Un?qn+1:0,n=jn.length;for(;t>>1,o=jn[r],s=nr(o);snr(e)-nr(t)));if(Wn.length=0,zn)return void zn.push(...e);for(zn=e,Kn=0;Knnull==e.id?2&e.flags?-1:1/0:e.id;function rr(e){Hn=!1,Un=!0;try{for(qn=0;qnpr;function pr(e,t=cr,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Bi(-1);const o=ar(t);let s;try{s=e(...n)}finally{ar(o),r._d&&Bi(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function hr(e,t){if(null===cr)return e;const n=Ac(cr),r=e.dirs||(e.dirs=[]);for(let e=0;ee.__isTeleport,yr=e=>e&&(e.disabled||""===e.disabled),br=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,_r=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Sr=(e,t)=>{const n=e&&e.to;if(_(n)){if(t){return t(n)}return null}return n};function xr(e,t,n,{o:{insert:r},m:o},s=2){0===s&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:a,props:u}=e,f=2===s;if(f&&r(i,t,n),(!f||yr(u))&&16&l)for(let e=0;e{16&y&&(o&&o.isCE&&(o.ce._teleportTarget=e),u(b,e,t,o,s,i,c,l))},d=()=>{const e=t.target=Sr(t.props,h),n=Tr(e,t,m,p);e&&("svg"!==i&&br(e)?i="svg":"mathml"!==i&&_r(e)&&(i="mathml"),v||(f(e,n),kr(t)))};v&&(f(n,a),kr(t)),(S=t.props)&&(S.defer||""===S.defer)?zs(d,s):d()}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=yr(e.props),g=m?n:u,y=m?r:p;if("svg"===i||br(u)?i="svg":("mathml"===i||_r(u))&&(i="mathml"),_?(d(e.dynamicChildren,_,g,o,s,i,c),Zs(e,t,!0)):l||f(e,t,g,y,o,s,i,c,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xr(t,n,r,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Sr(t.props,h);e&&xr(t,e,null,a,0)}else m&&xr(t,u,p,a,1);kr(t)}var S},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:c,anchor:l,targetStart:a,targetAnchor:u,target:f,props:d}=e;if(f&&(o(a),o(u)),s&&o(l),16&i){const e=s||!yr(d);for(let o=0;o{e.isMounted=!0})),Eo((()=>{e.isUnmounting=!0})),e}const Nr=[Function,Array],Ir={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nr,onEnter:Nr,onAfterEnter:Nr,onEnterCancelled:Nr,onBeforeLeave:Nr,onLeave:Nr,onAfterLeave:Nr,onLeaveCancelled:Nr,onBeforeAppear:Nr,onAppear:Nr,onAfterAppear:Nr,onAppearCancelled:Nr},Rr=e=>{const t=e.subTree;return t.component?Rr(t.component):t};function Or(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Oi){0,t=r,n=!0;break}}return t}const Mr={name:"BaseTransition",props:Ir,setup(e,{slots:t}){const n=dc(),r=Ar();return()=>{const o=t.default&&Vr(t.default(),!0);if(!o||!o.length)return;const s=Or(o),i=Zt(e),{mode:c}=i;if(r.isLeaving)return Lr(s);const l=$r(s);if(!l)return Lr(s);let a=Dr(l,i,r,n,(e=>a=e));l.type!==Oi&&Fr(l,a);const u=n.subTree,f=u&&$r(u);if(f&&f.type!==Oi&&!Wi(l,f)&&Rr(n).type!==Oi){const e=Dr(f,i,r,n);if(Fr(f,e),"out-in"===c&&l.type!==Oi)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave},Lr(s);"in-out"===c&&l.type!==Oi&&(e.delayLeave=(e,t,n)=>{Pr(r,f)[String(f.key)]=f,e[Er]=()=>{t(),e[Er]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function Pr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dr(e,t,n,r,o){const{appear:s,mode:i,persisted:c=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,S=String(e.key),x=Pr(n,e),C=(e,t)=>{e&&Vn(e,r,9,t)},k=(e,t)=>{const n=t[1];C(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:i,persisted:c,beforeEnter(t){let r=l;if(!n.isMounted){if(!s)return;r=v||l}t[Er]&&t[Er](!0);const o=x[S];o&&Wi(e,o)&&o.el[Er]&&o.el[Er](),C(r,[t])},enter(e){let t=a,r=u,o=f;if(!n.isMounted){if(!s)return;t=y||a,r=b||u,o=_||f}let i=!1;const c=e[wr]=t=>{i||(i=!0,C(t?o:r,[e]),T.delayedLeave&&T.delayedLeave(),e[wr]=void 0)};t?k(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[wr]&&t[wr](!0),n.isUnmounting)return r();C(d,[t]);let s=!1;const i=t[Er]=n=>{s||(s=!0,r(),C(n?g:h,[t]),t[Er]=void 0,x[o]===e&&delete x[o])};x[o]=e,p?k(p,[t,i]):i()},clone(e){const s=Dr(e,t,n,r,o);return o&&o(s),s}};return T}function Lr(e){if(uo(e))return(e=Zi(e)).children=null,e}function $r(e){if(!uo(e))return vr(e.type)&&e.children?Or(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function Fr(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Fr(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vr(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let e=0;ef({name:e.name},t,{setup:e}))():e}function Ur(){const e=dc();if(e)return(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++}function Hr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function jr(e){const t=dc(),n=sn(null);if(t){const r=t.refs===s?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else 0;return n}function qr(e,t,n,r,o=!1){if(m(e))return void e.forEach(((e,s)=>qr(e,t&&(m(t)?t[s]:t),n,r,o)));if(co(r)&&!o)return;const i=4&r.shapeFlag?Ac(r.component):r.el,c=o?null:i,{i:l,r:a}=e;const u=t&&t.r,f=l.refs===s?l.refs={}:l.refs,p=l.setupState,g=Zt(p),v=p===s?()=>!1:e=>h(g,e);if(null!=u&&u!==a&&(_(u)?(f[u]=null,v(u)&&(p[u]=null)):rn(u)&&(u.value=null)),b(a))Fn(a,l,12,[c,f]);else{const t=_(a),r=rn(a);if(t||r){const s=()=>{if(e.f){const n=t?v(a)?p[a]:f[a]:a.value;o?m(n)&&d(n,i):m(n)?n.includes(i)||n.push(i):t?(f[a]=[i],v(a)&&(p[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else t?(f[a]=c,v(a)&&(p[a]=c)):r&&(a.value=c,e.k&&(f[e.k]=c))};c?(s.id=-1,zs(s,n)):s()}else 0}}let Wr=!1;const zr=()=>{Wr||(console.error("Hydration completed but contains mismatches."),Wr=!0)},Kr=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Jr=e=>8===e.nodeType;function Yr(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:c,insert:l,createComment:u}}=e,f=(n,r,c,a,u,b=!1)=>{b=b||!!r.dynamicChildren;const _=Jr(n)&&"["===n.data,S=()=>m(n,r,c,a,u,_),{type:x,ref:C,shapeFlag:k,patchFlag:T}=r;let E=n.nodeType;r.el=n,-2===T&&(b=!1,r.dynamicChildren=null);let w=null;switch(x){case Ri:3!==E?""===r.children?(l(r.el=o(""),i(n),n),w=n):w=S():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&On("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),zr(),n.data=r.children),w=s(n));break;case Oi:y(n)?(w=s(n),v(r.el=n.content.firstChild,n,c)):w=8!==E||_?S():s(n);break;case Mi:if(_&&(E=(n=s(n)).nodeType),1===E||3===E){w=n;const e=!r.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:l,props:u,patchFlag:f,shapeFlag:d,dirs:h,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==f){h&&mr(t,null,n,"created");let l,b=!1;if(y(e)){b=Qs(o,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;b&&m.beforeEnter(r),v(r,e,n),t.el=e=r}if(16&d&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,o,s,i),l=!1;for(;r;){no(e,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!l&&(On("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),l=!0),zr());const t=r;r=r.nextSibling,c(t)}}else if(8&d){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1)),e.textContent!==n&&(no(e,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&On("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),zr()),e.textContent=t.children)}if(u)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||g||!i||48&f){const o=e.tagName.includes("-");for(const s in u)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||h&&h.some((e=>e.dir.created))||!Gr(e,s,u[s],t,n)||zr(),(g&&(s.endsWith("value")||"indeterminate"===s)||a(s)&&!N(s)||"."===s[0]||o)&&r(e,s,null,u[s],void 0,n)}else if(u.onClick)r(e,"onClick",null,u.onClick,void 0,n);else if(4&f&&Yt(u.style))for(const e in u.style)u.style[e];(l=u&&u.onVnodeBeforeMount)&&cc(l,n,t),h&&mr(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h||b)&&Ai((()=>{l&&cc(l,n,t),b&&m.enter(e),h&&mr(t,null,n,"mounted")}),o)}return e.nextSibling},p=(e,t,r,i,c,a,u)=>{u=u||!!t.dynamicChildren;const d=t.children,p=d.length;let h=!1;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const f=i(e),d=p(s(e),t,f,n,r,o,c);return d&&Jr(d)&&"]"===d.data?s(t.anchor=d):(zr(),l(t.anchor=u("]"),f,d),d)},m=(e,t,r,o,l,a)=>{if(no(e.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&On("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":Jr(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),zr()),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;c(n)}}const u=s(e),f=i(e);return c(e),n(null,t,f,u,r,o,Kr(f),l),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=s(e))&&Jr(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},v=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&On("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),tr(),void(t._vnode=e);f(t.firstChild,e,null,null,null),tr(),t._vnode=e},f]}function Gr(e,t,n,r,o){let s,i,c,l;if("class"===t)c=e.getAttribute("class"),l=X(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(Xr(c||""),Xr(l))||(s=2,i="class");else if("style"===t){c=e.getAttribute("style")||"",l=_(n)?n:function(e){let t="";if(!e||_(e))return t;for(const n in e){const r=e[n];(_(r)||"number"==typeof r)&&(t+=`${n.startsWith("--")?n:D(n)}:${r};`)}return t}(z(n));const t=Qr(c),a=Qr(l);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||a.set("display","none");o&&Zr(o,r,a),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,a)||(s=3,i="style")}else(e instanceof SVGElement&&le(t)||e instanceof HTMLElement&&(se(t)||ce(t)))&&(se(t)?(c=e.hasAttribute(t),l=ie(n)):null==n?(c=e.hasAttribute(t),l=!1):(c=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,l=!!function(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}(n)&&String(n)),c!==l&&(s=4,i=t));if(null!=s&&!no(e,s)){const t=e=>!1===e?"(not rendered)":`${i}="${e}"`;return On(`Hydration ${to[s]} mismatch on`,e,`\n - rendered on server: ${t(c)}\n - expected on client: ${t(l)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function Xr(e){return new Set(e.trim().split(/\s+/))}function Qr(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}function Zr(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===Ii&&r.children.includes(t))){const t=e.getCssVars();for(const e in t)n.set(`--${ue(e,!1)}`,String(t[e]))}t===r&&e.parent&&Zr(e.parent,e.vnode,n)}const eo="data-allow-mismatch",to={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function no(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(eo);)e=e.parentElement;const n=e&&e.getAttribute(eo);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||n.split(",").includes(to[t])}}const ro=(e=1e4)=>t=>{const n=requestIdleCallback(t,{timeout:e});return()=>cancelIdleCallback(n)};const oo=e=>(t,n)=>{const r=new IntersectionObserver((e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}}),e);return n((e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:i}=window;return(t>0&&t0&&r0&&n0&&or.disconnect()},so=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},io=(e=[])=>(t,n)=>{_(e)&&(e=[e]);let r=!1;const o=e=>{r||(r=!0,s(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},s=()=>{n((t=>{for(const n of e)t.removeEventListener(n,o)}))};return n((t=>{for(const n of e)t.addEventListener(n,o,{once:!0})})),s};const co=e=>!!e.type.__asyncLoader +/*! #__NO_SIDE_EFFECTS__ */;function lo(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:s,timeout:i,suspensible:c=!0,onError:l}=e;let a,u=null,f=0;const d=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((f++,u=null,d()))),(()=>n(e)),f+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),a=t,t))))};return Br({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(e,t,n){const r=s?()=>{const r=s(n,(t=>function(e,t){if(Jr(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(Jr(r))if("]"===r.data){if(0==--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t)));r&&(t.bum||(t.bum=[])).push(r)}:n;a?r():d().then((()=>!t.isUnmounted&&r()))},get __asyncResolved(){return a},setup(){const e=fc;if(Hr(e),a)return()=>ao(a,e);const t=t=>{u=null,Bn(t,e,13,!r)};if(c&&e.suspense||_c)return d().then((t=>()=>ao(t,e))).catch((e=>(t(e),()=>r?Gi(r,{error:e}):null)));const s=on(!1),l=on(),f=on(!!o);return o&&setTimeout((()=>{f.value=!1}),o),null!=i&&setTimeout((()=>{if(!s.value&&!l.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),l.value=e}}),i),d().then((()=>{s.value=!0,e.parent&&uo(e.parent.vnode)&&e.parent.update()})).catch((e=>{t(e),l.value=e})),()=>s.value&&a?ao(a,e):l.value&&r?Gi(r,{error:l.value}):n&&!f.value?Gi(n):void 0}})}function ao(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=Gi(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const uo=e=>e.type.__isKeepAlive,fo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=dc(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:a,um:u,o:{createElement:f}}}=r,d=f("div");function p(e){yo(e),u(e,n,c,!0)}function h(e){o.forEach(((t,n)=>{const r=Rc(t.type);r&&!e(r)&&m(n)}))}function m(e){const t=o.get(e);!t||i&&Wi(t,i)?i&&yo(i):p(t),o.delete(e),s.delete(e)}r.activate=(e,t,n,r,o)=>{const s=e.component;a(e,t,n,0,c),l(s.vnode,e,t,n,s,c,r,e.slotScopeIds,o),zs((()=>{s.isDeactivated=!1,s.a&&V(s.a);const t=e.props&&e.props.onVnodeMounted;t&&cc(t,s.parent,e)}),c)},r.deactivate=e=>{const t=e.component;ti(t.m),ti(t.a),a(e,d,null,1,c),zs((()=>{t.da&&V(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&cc(n,t.parent,e),t.isDeactivated=!0}),c)},ci((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>po(e,t))),t&&h((e=>!po(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(xi(n.subTree.type)?zs((()=>{o.set(g,bo(n.subTree))}),n.subTree.suspense):o.set(g,bo(n.subTree)))};return Co(v),To(v),Eo((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=bo(t);if(e.type!==o.type||e.key!==o.key)p(e);else{yo(o);const e=o.component.da;e&&zs(e,r)}}))})),()=>{if(g=null,!t.default)return i=null;const n=t.default(),r=n[0];if(n.length>1)return i=null,n;if(!(qi(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return i=null,r;let c=bo(r);if(c.type===Oi)return i=null,c;const l=c.type,a=Rc(co(c)?c.type.__asyncResolved||{}:l),{include:u,exclude:f,max:d}=e;if(u&&(!a||!po(u,a))||f&&a&&po(f,a))return c.shapeFlag&=-257,i=c,r;const p=null==c.key?l:c.key,h=o.get(p);return c.el&&(c=Zi(c),128&r.shapeFlag&&(r.ssContent=c)),g=p,h?(c.el=h.el,c.component=h.component,c.transition&&Fr(c,c.transition),c.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),d&&s.size>parseInt(d,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,xi(r.type)?r:c}}};function po(e,t){return m(e)?e.some((e=>po(e,t))):_(e)?e.split(",").includes(t):"[object RegExp]"===T(e)&&(e.lastIndex=0,e.test(t))}function ho(e,t){go(e,"a",t)}function mo(e,t){go(e,"da",t)}function go(e,t,n=fc){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_o(t,r,n),n){let e=n.parent;for(;e&&e.parent;)uo(e.parent.vnode)&&vo(r,t,n,e),e=e.parent}}function vo(e,t,n,r){const o=_o(t,e,r,!0);wo((()=>{d(r[t],o)}),n)}function yo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bo(e){return 128&e.shapeFlag?e.ssContent:e}function _o(e,t,n=fc,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{Be();const o=mc(n),s=Vn(t,n,e,r);return o(),Ue(),s});return r?o.unshift(s):o.push(s),s}}const So=e=>(t,n=fc)=>{_c&&"sp"!==e||_o(e,((...e)=>t(...e)),n)},xo=So("bm"),Co=So("m"),ko=So("bu"),To=So("u"),Eo=So("bum"),wo=So("um"),Ao=So("sp"),No=So("rtg"),Io=So("rtc");function Ro(e,t=fc){_o("ec",e,t)}const Oo="components",Mo="directives";function Po(e,t){return Fo(Oo,e,!0,t)||e}const Do=Symbol.for("v-ndc");function Lo(e){return _(e)?Fo(Oo,e,!1)||e:e||Do}function $o(e){return Fo(Mo,e)}function Fo(e,t,n=!0,r=!1){const o=cr||fc;if(o){const n=o.type;if(e===Oo){const e=Rc(n,!1);if(e&&(e===t||e===M(t)||e===L(M(t))))return n}const s=Vo(o[e]||n[e],t)||Vo(o.appContext[e],t);return!s&&r?n:s}}function Vo(e,t){return e&&(e[t]||e[M(t)]||e[L(M(t))])}function Bo(e,t,n,r){let o;const s=n&&n[r],i=m(e);if(i||_(e)){let n=!1;i&&Yt(e)&&(n=!Xt(e),e=et(e)),o=new Array(e.length);for(let r=0,i=e.length;rt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ho(e,t,n={},r,o){if(cr.ce||cr.parent&&co(cr.parent)&&cr.parent.ce)return"default"!==t&&(n.name=t),Li(),ji(Ii,null,[Gi("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),Li();const i=s&&jo(s(n)),c=ji(Ii,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function jo(e){return e.some((e=>!qi(e)||e.type!==Oi&&!(e.type===Ii&&!jo(e.children))))?e:null}function qo(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:$(r)]=e[r];return n}const Wo=e=>e?vc(e)?Ac(e):Wo(e.parent):null,zo=f(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wo(e.parent),$root:e=>Wo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ms(e),$forceUpdate:e=>e.f||(e.f=()=>{Xn(e.update)}),$nextTick:e=>e.n||(e.n=Gn.bind(e.proxy)),$watch:e=>ai.bind(e)}),Ko=(e,t)=>e!==s&&!e.__isScriptSetup&&h(e,t),Jo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:c,type:l,appContext:a}=e;let u;if("$"!==t[0]){const l=c[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Ko(r,t))return c[t]=1,r[t];if(o!==s&&h(o,t))return c[t]=2,o[t];if((u=e.propsOptions[0])&&h(u,t))return c[t]=3,i[t];if(n!==s&&h(n,t))return c[t]=4,n[t];fs&&(c[t]=0)}}const f=zo[t];let d,p;return f?("$attrs"===t&&Xe(e.attrs,0,""),f(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==s&&h(n,t)?(c[t]=4,n[t]):(p=a.config.globalProperties,h(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Ko(o,t)?(o[t]=n,!0):r!==s&&h(r,t)?(r[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},c){let l;return!!n[c]||e!==s&&h(e,c)||Ko(t,c)||(l=i[0])&&h(l,c)||h(r,c)||h(zo,c)||h(o.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Yo=f({},Jo,{get(e,t){if(t!==Symbol.unscopables)return Jo.get(e,t,e)},has(e,t){return"_"!==t[0]&&!W(t)}});function Go(){return null}function Xo(){return null}function Qo(e){0}function Zo(e){0}function es(){return null}function ts(){0}function ns(e,t){return null}function rs(){return ss().slots}function os(){return ss().attrs}function ss(){const e=dc();return e.setupContext||(e.setupContext=wc(e))}function is(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function cs(e,t){const n=is(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?m(r)||b(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function ls(e,t){return e&&t?m(e)&&m(t)?e.concat(t):f({},is(e),is(t)):e||t}function as(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function us(e){const t=dc();let n=e();return gc(),C(n)&&(n=n.catch((e=>{throw mc(t),e}))),[n,()=>mc(t)]}let fs=!0;function ds(e){const t=ms(e),n=e.proxy,r=e.ctx;fs=!1,t.beforeCreate&&ps(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:l,provide:a,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:_,beforeUnmount:S,destroyed:C,unmounted:k,render:T,renderTracked:E,renderTriggered:w,errorCaptured:A,serverPrefetch:N,expose:I,inheritAttrs:R,components:O,directives:M,filters:P}=t;if(u&&function(e,t){m(e)&&(e=bs(e));for(const n in e){const r=e[n];let o;o=x(r)?"default"in r?As(r.from||n,r.default,!0):As(r.from||n):As(r),rn(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(u,r,null),i)for(const e in i){const t=i[e];b(t)&&(r[e]=t.bind(n))}if(o){0;const t=o.call(n,n);0,x(t)&&(e.data=qt(t))}if(fs=!0,s)for(const e in s){const t=s[e],o=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):c;0;const i=!b(t)&&b(t.set)?t.set.bind(n):c,l=Pc({get:o,set:i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)hs(l[e],r,n,e);if(a){const e=b(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{ws(t,e[t])}))}function D(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&ps(f,e,"c"),D(xo,d),D(Co,p),D(ko,h),D(To,g),D(ho,v),D(mo,y),D(Ro,A),D(Io,E),D(No,w),D(Eo,S),D(wo,k),D(Ao,N),m(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===c&&(e.render=T),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),M&&(e.directives=M),N&&Hr(e)}function ps(e,t,n){Vn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function hs(e,t,n,r){let o=r.includes(".")?ui(n,r):()=>n[r];if(_(e)){const n=t[e];b(n)&&ci(o,n)}else if(b(e))ci(o,e.bind(n));else if(x(e))if(m(e))e.forEach((e=>hs(e,t,n,r)));else{const r=b(e.handler)?e.handler.bind(n):t[e.handler];b(r)&&ci(o,r,e)}else 0}function ms(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((e=>gs(l,e,i,!0))),gs(l,t,i)):l=t,x(t)&&s.set(t,l),l}function gs(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&gs(e,s,n,!0),o&&o.forEach((t=>gs(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=vs[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const vs={data:ys,props:xs,emits:xs,methods:Ss,computed:Ss,beforeCreate:_s,created:_s,beforeMount:_s,mounted:_s,beforeUpdate:_s,updated:_s,beforeDestroy:_s,beforeUnmount:_s,destroyed:_s,unmounted:_s,activated:_s,deactivated:_s,errorCaptured:_s,serverPrefetch:_s,components:Ss,directives:Ss,watch:function(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const r in t)n[r]=_s(e[r],t[r]);return n},provide:ys,inject:function(e,t){return Ss(bs(e),bs(t))}};function ys(e,t){return t?e?function(){return f(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function bs(e){if(m(e)){const t={};for(let n=0;n1)return n&&b(t)?t.call(r&&r.proxy):t}else 0}function Ns(){return!!(fc||cr||Es)}const Is={},Rs=()=>Object.create(Is),Os=e=>Object.getPrototypeOf(e)===Is;function Ms(e,t,n,r){const[o,i]=e.propsOptions;let c,l=!1;if(t)for(let s in t){if(N(s))continue;const a=t[s];let u;o&&h(o,u=M(s))?i&&i.includes(u)?(c||(c={}))[u]=a:n[u]=a:mi(e.emitsOptions,s)||s in r&&a===r[s]||(r[s]=a,l=!0)}if(i){const t=Zt(n),r=c||s;for(let s=0;s{u=!0;const[n,r]=Ls(e,t,!0);f(l,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!c&&!u)return x(e)&&r.set(e,i),i;if(m(c))for(let e=0;e"_"===e[0]||"$stable"===e,Vs=e=>m(e)?e.map(rc):[rc(e)],Bs=(e,t,n)=>{if(t._n)return t;const r=pr(((...e)=>Vs(t(...e))),n);return r._c=!1,r},Us=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Fs(n))continue;const o=e[n];if(b(o))t[n]=Bs(0,o,r);else if(null!=o){0;const e=Vs(o);t[n]=()=>e}}},Hs=(e,t)=>{const n=Vs(t);e.slots.default=()=>n},js=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])},qs=(e,t,n)=>{const r=e.slots=Rs();if(32&e.vnode.shapeFlag){const e=t._;e?(js(r,t,n),n&&B(r,"_",e,!0)):Us(t,r)}else t&&Hs(e,t)},Ws=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,c=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:js(o,t,n):(i=!t.$stable,Us(t,o)),c=t}else t&&(Hs(e,t),c={default:1});if(i)for(const e in o)Fs(e)||null!=c[e]||delete o[e]};const zs=Ai;function Ks(e){return Ys(e)}function Js(e){return Ys(e,Yr)}function Ys(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(q().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);q().__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:l,createText:a,createComment:u,setText:f,setElementText:d,parentNode:p,nextSibling:m,setScopeId:g=c,insertStaticContent:v}=e,y=(e,t,n,r=null,o=null,s=null,i=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Wi(e,t)&&(r=G(e),W(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:f}=t;switch(a){case Ri:b(e,t,n,r);break;case Oi:_(e,t,n,r);break;case Mi:null==e&&S(t,n,r,i);break;case Ii:R(e,t,n,r,o,s,i,c,l);break;default:1&f?C(e,t,n,r,o,s,i,c,l):6&f?O(e,t,n,r,o,s,i,c,l):(64&f||128&f)&&a.process(e,t,n,r,o,s,i,c,l,Z)}null!=u&&o&&qr(u,e&&e.ref,s,t||e,!t)},b=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},_=(e,t,r,o)=>{null==e?n(t.el=u(t.children||""),r,o):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),r(e),e=n;r(t)},C=(e,t,n,r,o,s,i,c,l)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?k(t,n,r,o,s,i,c,l):w(e,t,o,s,i,c,l)},k=(e,t,r,s,i,c,a,u)=>{let f,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(f=e.el=l(e.type,c,h&&h.is,h),8&m?d(f,e.children):16&m&&E(e.children,f,null,s,i,Gs(e,c),a,u),v&&mr(e,null,s,"created"),T(f,e,e.scopeId,a,s),h){for(const e in h)"value"===e||N(e)||o(f,e,null,h[e],c,s);"value"in h&&o(f,"value",null,h.value,c),(p=h.onVnodeBeforeMount)&&cc(p,s,e)}v&&mr(e,null,s,"beforeMount");const y=Qs(i,g);y&&g.beforeEnter(f),n(f,t,r),((p=h&&h.onVnodeMounted)||y||v)&&zs((()=>{p&&cc(p,s,e),y&&g.enter(f),v&&mr(e,null,s,"mounted")}),i)},T=(e,t,n,r,o)=>{if(n&&g(e,n),r)for(let t=0;t{for(let a=l;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||s,m=t.props||s;let g;if(n&&Xs(n,!1),(g=m.onVnodeBeforeUpdate)&&cc(g,n,t,e),p&&mr(t,e,n,"beforeUpdate"),n&&Xs(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(a,""),f?A(e.dynamicChildren,f,a,n,r,Gs(t,i),c):l||B(e,t,a,null,n,r,Gs(t,i),c,!1),u>0){if(16&u)I(a,h,m,n,i);else if(2&u&&h.class!==m.class&&o(a,"class",null,m.class,i),4&u&&o(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&cc(g,n,t,e),p&&mr(t,e,n,"updated")}),r)},A=(e,t,n,r,o,s,i)=>{for(let c=0;c{if(t!==n){if(t!==s)for(const s in t)N(s)||s in n||o(e,s,t[s],null,i,r);for(const s in n){if(N(s))continue;const c=n[s],l=t[s];c!==l&&"value"!==s&&o(e,s,l,c,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},R=(e,t,r,o,s,i,c,l,u)=>{const f=t.el=e?e.el:a(""),d=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(f,r,o),n(d,r,o),E(t.children||[],r,d,s,i,c,l,u)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,r,s,i,c,l),(null!=t.key||s&&t===s.subTree)&&Zs(e,t,!0)):B(e,t,r,d,s,i,c,l,u)},O=(e,t,n,r,o,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):P(t,n,r,o,s,i,l):L(e,t,l)},P=(e,t,n,r,o,s,i)=>{const c=e.component=uc(e,r,o);if(uo(e)&&(c.ctx.renderer=Z),Sc(c,!1,i),c.asyncDep){if(o&&o.registerDep(c,$,i),!e.el){const e=c.subTree=Gi(Oi);_(null,e,t,n)}}else $(c,e,t,n,o,s,i)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:l}=t,a=s.emitsOptions;0;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!c||c&&c.$stable)||r!==i&&(r?!i||_i(r,i,a):!!i);if(1024&l)return!0;if(16&l)return r?_i(r,i,a):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;t{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:l,vnode:a}=e;{const n=ei(e);if(n)return t&&(t.el=a.el,F(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,f=t;0,Xs(e,!1),t?(t.el=a.el,F(e,t,i)):t=a,n&&V(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&cc(u,l,t,a),Xs(e,!0);const d=gi(e);0;const h=e.subTree;e.subTree=d,y(h,d,p(h.el),G(h),e,o,s),t.el=d.el,null===f&&Si(e,d.el),r&&zs(r,o),(u=t.props&&t.props.onVnodeUpdated)&&zs((()=>cc(u,l,t,a)),o)}else{let i;const{el:c,props:l}=t,{bm:a,m:u,parent:f,root:d,type:p}=e,h=co(t);if(Xs(e,!1),a&&V(a),!h&&(i=l&&l.onVnodeBeforeMount)&&cc(i,f,t),Xs(e,!0),c&&te){const t=()=>{e.subTree=gi(e),te(c,e.subTree,e,o,null)};h&&p.__asyncHydrate?p.__asyncHydrate(c,e,t):t()}else{d.ce&&d.ce._injectChildStyle(p);const i=e.subTree=gi(e);0,y(null,i,n,r,e,o,s),t.el=i.el}if(u&&zs(u,o),!h&&(i=l&&l.onVnodeMounted)){const e=t;zs((()=>cc(i,f,e)),o)}(256&t.shapeFlag||f&&co(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&zs(e.a,o),e.isMounted=!0,t=n=r=null}};e.scope.on();const l=e.effect=new ke(c);e.scope.off();const a=e.update=l.run.bind(l),u=e.job=l.runIfDirty.bind(l);u.i=e,u.id=e.uid,l.scheduler=()=>Xn(u),Xs(e,!0),a()},F=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=Zt(o),[l]=e.propsOptions;let a=!1;if(!(r||i>0)||16&i){let r;Ms(e,t,o,s)&&(a=!0);for(const s in c)t&&(h(t,s)||(r=D(s))!==s&&h(t,r))||(l?!n||void 0===n[s]&&void 0===n[r]||(o[s]=Ps(l,c,s,void 0,e,!0)):delete o[s]);if(s!==c)for(const e in s)t&&h(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r{const a=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,f,n,r,o,s,i,c,l);if(256&p)return void U(a,f,n,r,o,s,i,c,l)}8&h?(16&u&&Y(a,o,s),f!==a&&d(n,f)):16&u?16&h?H(a,f,n,r,o,s,i,c,l):Y(a,o,s,!0):(8&u&&d(n,""),16&h&&E(f,n,r,o,s,i,c,l))},U=(e,t,n,r,o,s,c,l,a)=>{t=t||i;const u=(e=e||i).length,f=t.length,d=Math.min(u,f);let p;for(p=0;pf?Y(e,o,s,!0,!1,d):E(t,n,r,o,s,c,l,a,d)},H=(e,t,n,r,o,s,c,l,a)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const r=e[u],i=t[u]=a?oc(t[u]):rc(t[u]);if(!Wi(r,i))break;y(r,i,n,null,o,s,c,l,a),u++}for(;u<=d&&u<=p;){const r=e[d],i=t[p]=a?oc(t[p]):rc(t[p]);if(!Wi(r,i))break;y(r,i,n,null,o,s,c,l,a),d--,p--}if(u>d){if(u<=p){const e=p+1,i=ep)for(;u<=d;)W(e[u],o,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=a?oc(t[u]):rc(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const _=p-m+1;let S=!1,x=0;const C=new Array(_);for(u=0;u<_;u++)C[u]=0;for(u=h;u<=d;u++){const r=e[u];if(b>=_){W(r,o,s,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(v=m;v<=p;v++)if(0===C[v-m]&&Wi(r,t[v])){i=v;break}void 0===i?W(r,o,s,!0):(C[i-m]=u+1,i>=x?x=i:S=!0,y(r,t[i],n,null,o,s,c,l,a),b++)}const k=S?function(e){const t=e.slice(),n=[0];let r,o,s,i,c;const l=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[s-1]),n[s]=r)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(C):i;for(v=k.length-1,u=_-1;u>=0;u--){const e=m+u,i=t[e],d=e+1{const{el:i,type:c,transition:l,children:a,shapeFlag:u}=e;if(6&u)return void j(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Ii){n(i,t,r);for(let e=0;e{let s;for(;e&&e!==t;)s=m(e),n(e,r,o),e=s;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(i),n(i,t,r),zs((()=>l.enter(i)),s);else{const{leave:e,delayLeave:o,afterLeave:s}=l,c=()=>n(i,t,r),a=()=>{e(i,(()=>{c(),s&&s()}))};o?o(i,c,a):a()}else n(i,t,r)},W=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:c,children:l,dynamicChildren:a,shapeFlag:u,patchFlag:f,dirs:d,cacheIndex:p}=e;if(-2===f&&(o=!1),null!=c&&qr(c,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,m=!co(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&cc(g,t,e),6&u)J(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&mr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,r):a&&!a.hasOnce&&(s!==Ii||f>0&&64&f)?Y(a,t,n,!1,!0):(s===Ii&&384&f||!o&&16&u)&&Y(l,t,n),r&&z(e)}(m&&(g=i&&i.onVnodeUnmounted)||h)&&zs((()=>{g&&cc(g,t,e),h&&mr(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===Ii)return void K(n,o);if(t===Mi)return void x(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:r}=s,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),r(e),e=n;r(t)},J=(e,t,n)=>{const{bum:r,scope:o,job:s,subTree:i,um:c,m:l,a:a}=e;ti(l),ti(a),r&&V(r),o.stop(),s&&(s.flags|=8,W(i,e,t,n)),c&&zs(c,t),zs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i{if(6&e.shapeFlag)return G(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[gr];return n?m(n):t};let X=!1;const Q=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,X||(X=!0,er(),tr(),X=!1)},Z={p:y,um:W,m:j,r:z,mt:P,mc:E,pc:B,pbc:A,n:G,o:e};let ee,te;return t&&([ee,te]=t(Z)),{render:Q,hydrate:ee,createApp:Ts(Q,ee)}}function Gs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qs(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zs(e,t,n=!1){const r=e.children,o=t.children;if(m(r)&&m(o))for(let e=0;e{{const e=As(ni);return e}};function oi(e,t){return li(e,null,t)}function si(e,t){return li(e,null,{flush:"post"})}function ii(e,t){return li(e,null,{flush:"sync"})}function ci(e,t,n){return li(e,t,n)}function li(e,t,n=s){const{immediate:r,deep:o,flush:i,once:l}=n;const a=f({},n);let u;if(_c)if("sync"===i){const e=ri();u=e.__watcherHandles||(e.__watcherHandles=[])}else{if(t&&!r){const e=()=>{};return e.stop=c,e.resume=c,e.pause=c,e}a.once=!0}const p=fc;a.call=(e,t,n)=>Vn(e,p,t,n);let h=!1;"post"===i?a.scheduler=e=>{zs(e,p&&p.suspense)}:"sync"!==i&&(h=!0,a.scheduler=(e,t)=>{t?e():Xn(e)}),a.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const g=function(e,t,n=s){const{immediate:r,deep:o,once:i,scheduler:l,augmentJob:a,call:u}=n,f=e=>o?e:Xt(e)||!1===o||0===o?Nn(e,1):Nn(e);let p,h,g,v,y=!1,_=!1;if(rn(e)?(h=()=>e.value,y=Xt(e)):Yt(e)?(h=()=>f(e),y=!0):m(e)?(_=!0,y=e.some((e=>Yt(e)||Xt(e))),h=()=>e.map((e=>rn(e)?e.value:Yt(e)?f(e):b(e)?u?u(e,2):e():void 0))):h=b(e)?t?u?()=>u(e,2):e:()=>{if(g){Be();try{g()}finally{Ue()}}const t=En;En=p;try{return u?u(e,3,[v]):e(v)}finally{En=t}}:c,t&&o){const e=h,t=!0===o?1/0:o;h=()=>Nn(e(),t)}const S=Se(),x=()=>{p.stop(),S&&d(S.effects,p)};if(i&&t){const e=t;t=(...t)=>{e(...t),x()}}let C=_?new Array(e.length).fill(kn):kn;const k=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(o||y||(_?e.some(((e,t)=>F(e,C[t]))):F(e,C))){g&&g();const n=En;En=p;try{const n=[e,C===kn?void 0:_&&C[0]===kn?[]:C,v];u?u(t,3,n):t(...n),C=e}finally{En=n}}}else p.run()};return a&&a(k),p=new ke(h),p.scheduler=l?()=>l(k,!1):k,v=e=>An(e,!1,p),g=p.onStop=()=>{const e=Tn.get(p);if(e){if(u)u(e,4);else for(const t of e)t();Tn.delete(p)}},t?r?k(!0):C=p.run():l?l(k.bind(null,!0),!0):p.run(),x.pause=p.pause.bind(p),x.resume=p.resume.bind(p),x.stop=x,x}(e,t,a);return u&&u.push(g),g}function ai(e,t,n){const r=this.proxy,o=_(e)?e.includes(".")?ui(r,e):()=>r[e]:e.bind(r,r);let s;b(t)?s=t:(s=t.handler,n=t);const i=mc(this),c=li(o,s.bind(r),n);return i(),c}function ui(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{let a,u,f=s;return ii((()=>{const n=e[t];F(a,n)&&(a=n,l())})),{get(){return c(),n.get?n.get(a):a},set(e){const c=n.set?n.set(e):e;if(!(F(c,a)||f!==s&&F(e,f)))return;const d=r.vnode.props;d&&(t in d||o in d||i in d)&&(`onUpdate:${t}`in d||`onUpdate:${o}`in d||`onUpdate:${i}`in d)||(a=e,l()),r.emit(`update:${t}`,c),F(e,c)&&F(e,f)&&!F(c,u)&&l(),f=e,u=c}}}));return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?c||s:l,done:!1}:{done:!0}}}},l}const di=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${M(t)}Modifiers`]||e[`${D(t)}Modifiers`];function pi(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let o=n;const i=t.startsWith("update:"),c=i&&di(r,t.slice(7));let l;c&&(c.trim&&(o=n.map((e=>_(e)?e.trim():e))),c.number&&(o=n.map(U)));let a=r[l=$(t)]||r[l=$(M(t))];!a&&i&&(a=r[l=$(D(t))]),a&&Vn(a,e,6,o);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Vn(u,e,6,o)}}function hi(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let i={},c=!1;if(!b(e)){const r=e=>{const n=hi(e,t,!0);n&&(c=!0,f(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||c?(m(s)?s.forEach((e=>i[e]=null)):f(i,s),x(e)&&r.set(e,i),i):(x(e)&&r.set(e,null),null)}function mi(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,D(t))||h(e,t))}function gi(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:c,emit:l,render:a,renderCache:f,props:d,data:p,setupState:h,ctx:m,inheritAttrs:g}=e,v=ar(e);let y,b;try{if(4&n.shapeFlag){const e=o||r,t=e;y=rc(a.call(t,e,f,d,h,p,m)),b=c}else{const e=t;0,y=rc(e.length>1?e(d,{attrs:c,slots:i,emit:l}):e(d,null)),b=t.props?c:yi(c)}}catch(t){Pi.length=0,Bn(t,e,1),y=Gi(Oi)}let _=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(u)&&(b=bi(b,s)),_=Zi(_,b,!1,!0))}return n.dirs&&(_=Zi(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Fr(_,n.transition),y=_,ar(v),y}function vi(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},bi=(e,t)=>{const n={};for(const r in e)u(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function _i(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let Ci=0;const ki={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,c,l,a){if(null==e)!function(e,t,n,r,o,s,i,c,l){const{p:a,o:{createElement:u}}=l,f=u("div"),d=e.suspense=Ei(e,o,r,t,f,n,s,i,c,l);a(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(Ti(e,"onPending"),Ti(e,"onFallback"),a(null,e.ssFallback,t,n,r,null,s,i),Ni(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,o,s,i,c,l,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,s,i,c,{p:l,um:a,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=d,Wi(d,m)?(l(m,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():g&&(v||(l(h,p,n,r,o,null,s,i,c),Ni(f,p)))):(f.pendingId=Ci++,v?(f.isHydrating=!1,f.activeBranch=m):a(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),g?(l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():(l(h,p,n,r,o,null,s,i,c),Ni(f,p))):h&&Wi(d,h)?(l(h,d,n,r,o,f,s,i,c),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0&&f.resolve()));else if(h&&Wi(d,h))l(h,d,n,r,o,f,s,i,c),Ni(f,d);else if(Ti(t,"onPending"),f.pendingBranch=d,512&d.shapeFlag?f.pendingId=d.component.suspenseId:f.pendingId=Ci++,l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}(e,t,n,r,o,i,c,l,a)}},hydrate:function(e,t,n,r,o,s,i,c,l){const a=t.suspense=Ei(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,c,!0),u=l(e,a.pendingBranch=t.ssContent,n,a,s,i);0===a.deps&&a.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=wi(r?n.default:n),e.ssFallback=r?wi(n.fallback):Gi(Oi)}};function Ti(e,t){const n=e.props&&e.props[t];b(n)&&n()}function Ei(e,t,n,r,o,s,i,c,l,a,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0;const _=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:Ci++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:l,parentComponent:a,container:u}=S;let f=!1;S.isHydrating?S.isHydrating=!1:e||(f=o&&i.transition&&"out-in"===i.transition.mode,f&&(o.transition.afterLeave=()=>{c===S.pendingId&&(d(i,u,s===_?h(o):s,0),Zn(l))}),o&&(m(o.el)===u&&(s=h(o)),p(o,a,S,!0)),f||d(i,u,s,0)),Ni(S,i),S.pendingBranch=null,S.isInFallback=!1;let g=S.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...l),b=!0;break}g=g.parent}b||f||Zn(l),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Ti(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:s}=S;Ti(t,"onFallback");const i=h(n),a=()=>{S.isInFallback&&(f(null,e,o,i,r,null,s,c,l),Ni(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),S.isInFallback=!0,p(n,r,null,!0),u||a()},move(e,t,n){S.activeBranch&&d(S.activeBranch,e,t,n),S.container=e},next(){return S.activeBranch&&h(S.activeBranch)},registerDep(e,t,n){const r=!!S.pendingBranch;r&&S.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{Bn(t,e,0)})).then((s=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:c}=e;xc(e,s,!1),o&&(c.el=o);const l=!o&&e.subTree.el;t(e,c,m(o||e.subTree.el),o?null:h(e.subTree),S,i,n),l&&g(l),Si(e,c.el),r&&0==--S.deps&&S.resolve()}))},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,e,t),S.pendingBranch&&p(S.pendingBranch,n,e,t)}};return S}function wi(e){let t;if(b(e)){const n=Vi&&e._c;n&&(e._d=!1,Li()),e=e(),n&&(e._d=!0,t=Di,$i())}if(m(e)){const t=vi(e);0,e=t}return e=rc(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Ai(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):Zn(e)}function Ni(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Si(r,o))}const Ii=Symbol.for("v-fgt"),Ri=Symbol.for("v-txt"),Oi=Symbol.for("v-cmt"),Mi=Symbol.for("v-stc"),Pi=[];let Di=null;function Li(e=!1){Pi.push(Di=e?null:[])}function $i(){Pi.pop(),Di=Pi[Pi.length-1]||null}let Fi,Vi=1;function Bi(e){Vi+=e,e<0&&Di&&(Di.hasOnce=!0)}function Ui(e){return e.dynamicChildren=Vi>0?Di||i:null,$i(),Vi>0&&Di&&Di.push(e),e}function Hi(e,t,n,r,o,s){return Ui(Yi(e,t,n,r,o,s,!0))}function ji(e,t,n,r,o){return Ui(Gi(e,t,n,r,o,!0))}function qi(e){return!!e&&!0===e.__v_isVNode}function Wi(e,t){return e.type===t.type&&e.key===t.key}function zi(e){Fi=e}const Ki=({key:e})=>null!=e?e:null,Ji=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?_(e)||rn(e)||b(e)?{i:cr,r:e,k:t,f:!!n}:e:null);function Yi(e,t=null,n=null,r=0,o=null,s=(e===Ii?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Ji(t),scopeId:lr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:cr};return c?(sc(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=_(n)?8:16),Vi>0&&!i&&Di&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Di.push(l),l}const Gi=Xi;function Xi(e,t=null,n=null,r=0,o=null,s=!1){if(e&&e!==Do||(e=Oi),qi(e)){const r=Zi(e,t,!0);return n&&sc(r,n),Vi>0&&!s&&Di&&(6&r.shapeFlag?Di[Di.indexOf(e)]=r:Di.push(r)),r.patchFlag=-2,r}if(Mc(e)&&(e=e.__vccOpts),t){t=Qi(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=X(e)),x(n)&&(Qt(n)&&!m(n)&&(n=f({},n)),t.style=z(n))}return Yi(e,t,n,r,o,_(e)?1:xi(e)?128:vr(e)?64:x(e)?4:b(e)?2:0,s,!0)}function Qi(e){return e?Qt(e)||Os(e)?f({},e):e:null}function Zi(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:c,transition:l}=e,a=t?ic(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ki(a),ref:t&&t.ref?n&&s?m(s)?s.concat(Ji(t)):[s,Ji(t)]:Ji(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ii?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fr(u,l.clone(u)),u}function ec(e=" ",t=0){return Gi(Ri,null,e,t)}function tc(e,t){const n=Gi(Mi,null,e);return n.staticCount=t,n}function nc(e="",t=!1){return t?(Li(),ji(Oi,null,e)):Gi(Oi,null,e)}function rc(e){return null==e||"boolean"==typeof e?Gi(Oi):m(e)?Gi(Ii,null,e.slice()):"object"==typeof e?oc(e):Gi(Ri,null,String(e))}function oc(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Zi(e)}function sc(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),sc(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Os(t)?3===r&&cr&&(1===cr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=cr}}else b(t)?(t={default:t,_ctx:cr},n=32):(t=String(t),64&r?(n=16,t=[ec(t)]):n=8);e.children=t,e.shapeFlag|=n}function ic(...e){const t={};for(let n=0;nfc||cr;let pc,hc;{const e=q(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};pc=t("__VUE_INSTANCE_SETTERS__",(e=>fc=e)),hc=t("__VUE_SSR_SETTERS__",(e=>_c=e))}const mc=e=>{const t=fc;return pc(e),e.scope.on(),()=>{e.scope.off(),pc(t)}},gc=()=>{fc&&fc.scope.off(),pc(null)};function vc(e){return 4&e.vnode.shapeFlag}let yc,bc,_c=!1;function Sc(e,t=!1,n=!1){t&&hc(t);const{props:r,children:o}=e.vnode,s=vc(e);!function(e,t,n,r=!1){const o={},s=Rs();e.propsDefaults=Object.create(null),Ms(e,t,o,s);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:Wt(o):e.type.props?e.props=o:e.props=s,e.attrs=s}(e,r,s,t),qs(e,o,n);const i=s?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jo),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?wc(e):null,o=mc(e);Be();const s=Fn(r,e,0,[e.props,n]);if(Ue(),o(),C(s)){if(co(e)||Hr(e),s.then(gc,gc),t)return s.then((n=>{xc(e,n,t)})).catch((t=>{Bn(t,e,0)}));e.asyncDep=s}else xc(e,s,t)}else Tc(e,t)}(e,t):void 0;return t&&hc(!1),i}function xc(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=pn(t)),Tc(e,n)}function Cc(e){yc=e,bc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Yo))}}const kc=()=>!yc;function Tc(e,t,n){const r=e.type;if(!e.render){if(!t&&yc&&!r.render){const t=r.template||ms(e).template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:i}=r,c=f(f({isCustomElement:n,delimiters:s},o),i);r.render=yc(t,c)}}e.render=r.render||c,bc&&bc(e)}{const t=mc(e);Be();try{ds(e)}finally{Ue(),t()}}}const Ec={get(e,t){return Xe(e,0,""),e[t]}};function wc(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ec),slots:e.slots,emit:e.emit,expose:t}}function Ac(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pn(en(e.exposed)),{get(t,n){return n in t?t[n]:n in zo?zo[n](e):void 0},has(e,t){return t in e||t in zo}})):e.proxy}const Nc=/(?:^|[-_])(\w)/g,Ic=e=>e.replace(Nc,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Rc(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}function Oc(e,t,n=!1){let r=Rc(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Ic(r):n?"App":"Anonymous"}function Mc(e){return b(e)&&"__vccOpts"in e}const Pc=(e,t)=>{const n=function(e,t,n=!1){let r,o;return b(e)?r=e:(r=e.get,o=e.set),new Sn(r,o,n)}(e,0,_c);return n};function Dc(e,t,n){const r=arguments.length;return 2===r?x(t)&&!m(t)?qi(t)?Gi(e,null,[t]):Gi(e,t):Gi(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&qi(n)&&(n=[n]),Gi(e,t,n))}function Lc(){return void 0}function $c(e,t,n,r){const o=n[r];if(o&&Fc(o,e))return o;const s=t();return s.memo=e.slice(),s.cacheIndex=r,n[r]=s}function Fc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Di&&Di.push(e),!0}const Vc="3.5.8",Bc=c,Uc=$n,Hc=or,jc=function e(t,n){var r,o;if(or=t,or)or.enabled=!0,sr.forEach((({event:e,args:t})=>or.emit(e,...t))),sr=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{or||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ir=!0,sr=[])}),3e3)}else ir=!0,sr=[]},qc={createComponentInstance:uc,setupComponent:Sc,renderComponentRoot:gi,setCurrentRenderingInstance:ar,isVNode:qi,normalizeVNode:rc,getComponentPublicInstance:Ac,ensureValidVNode:jo,pushWarningContext:function(e){In.push(e)},popWarningContext:function(){In.pop()}},Wc=null,zc=null,Kc=null; +/** +* @vue/runtime-dom v3.5.8 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +let Jc;const Yc="undefined"!=typeof window&&window.trustedTypes;if(Yc)try{Jc=Yc.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Gc=Jc?e=>Jc.createHTML(e):e=>e,Xc="undefined"!=typeof document?document:null,Qc=Xc&&Xc.createElement("template"),Zc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?Xc.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Xc.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Xc.createElement(e,{is:n}):Xc.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Xc.createTextNode(e),createComment:e=>Xc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{Qc.innerHTML=Gc("svg"===r?`${e}`:"mathml"===r?`${e}`:e);const o=Qc.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},el="transition",tl="animation",nl=Symbol("_vtc"),rl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ol=f({},Ir,rl),sl=(e=>(e.displayName="Transition",e.props=ol,e))(((e,{slots:t})=>Dc(Mr,ll(e),t))),il=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},cl=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function ll(e){const t={};for(const n in e)n in rl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(x(e))return[al(e.enter),al(e.leave)];{const t=al(e);return[t,t]}}(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:S,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:E=_}=t,w=(e,t,n)=>{fl(e,t?u:c),fl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,fl(e,d),fl(e,h),fl(e,p),t&&t()},N=e=>(t,n)=>{const o=e?T:b,i=()=>w(t,e,n);il(o,[t,i]),dl((()=>{fl(t,e?l:s),ul(t,e?u:c),cl(o)||hl(t,r,g,i)}))};return f(t,{onBeforeEnter(e){il(y,[e]),ul(e,s),ul(e,i)},onBeforeAppear(e){il(k,[e]),ul(e,l),ul(e,a)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ul(e,d),ul(e,p),yl(),dl((()=>{e._isLeaving&&(fl(e,d),ul(e,h),cl(S)||hl(e,r,v,n))})),il(S,[e,n])},onEnterCancelled(e){w(e,!1),il(_,[e])},onAppearCancelled(e){w(e,!0),il(E,[e])},onLeaveCancelled(e){A(e),il(C,[e])}})}function al(e){return H(e)}function ul(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[nl]||(e[nl]=new Set)).add(t)}function fl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[nl];n&&(n.delete(t),n.size||(e[nl]=void 0))}function dl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let pl=0;function hl(e,t,n,r){const o=e._endId=++pl,s=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=ml(e,t);if(!i)return r();const a=i+"end";let u=0;const f=()=>{e.removeEventListener(a,d),s()},d=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{u(n[e]||"").split(", "),o=r(`${el}Delay`),s=r(`${el}Duration`),i=gl(o,s),c=r(`${tl}Delay`),l=r(`${tl}Duration`),a=gl(c,l);let u=null,f=0,d=0;t===el?i>0&&(u=el,f=i,d=s.length):t===tl?a>0&&(u=tl,f=a,d=l.length):(f=Math.max(i,a),u=f>0?i>a?el:tl:null,d=u?u===el?s.length:l.length:0);return{type:u,timeout:f,propCount:d,hasTransform:u===el&&/\b(transform|all)(,|$)/.test(r(`${el}Property`).toString())}}function gl(e,t){for(;e.lengthvl(t)+vl(e[n]))))}function vl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function yl(){return document.body.offsetHeight}const bl=Symbol("_vod"),_l=Symbol("_vsh"),Sl={beforeMount(e,{value:t},{transition:n}){e[bl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),xl(e,!0),r.enter(e)):r.leave(e,(()=>{xl(e,!1)})):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[bl]:"none",e[_l]=!t}const Cl=Symbol("");function kl(e){const t=dc();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>El(e,n)))};const r=()=>{const r=e(t.proxy);t.ce?El(t.ce,r):Tl(t.subTree,r),n(r)};xo((()=>{si(r)})),Co((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),wo((()=>e.disconnect()))}))}function Tl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Tl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)El(e.el,t);else if(e.type===Ii)e.children.forEach((e=>Tl(e,t)));else if(e.type===Mi){let{el:n,anchor:r}=e;for(;n&&(El(n,t),n!==r);)n=n.nextSibling}}function El(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[Cl]=r}}const wl=/(^|;)\s*display\s*:/;const Al=/\s*!important$/;function Nl(e,t,n){if(m(n))n.forEach((n=>Nl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Rl[t];if(n)return n;let r=M(t);if("filter"!==r&&r in e)return Rl[t]=r;r=L(r);for(let n=0;n{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Vn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Bl(),n}(r,o);Pl(e,n,i,c)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,c),s[t]=void 0)}}const $l=/(?:Once|Passive|Capture)$/;let Fl=0;const Vl=Promise.resolve(),Bl=()=>Fl||(Vl.then((()=>Fl=0)),Fl=Date.now());const Ul=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Hl={}; +/*! #__NO_SIDE_EFFECTS__ */function jl(e,t,n){const r=Br(e,t);w(r)&&f(r,t);class o extends zl{constructor(e){super(r,e,n)}}return o.def=r,o} +/*! #__NO_SIDE_EFFECTS__ */const ql=(e,t)=>jl(e,t,Oa),Wl="undefined"!=typeof HTMLElement?HTMLElement:class{};class zl extends Wl{constructor(e,t={},n=Ra){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Ra?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof zl){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Gn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let o;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(o||(o=Object.create(null)))[M(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then((t=>e(this._def=t,!0))):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)h(this,e)||Object.defineProperty(this,e,{get:()=>un(t[e])})}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(M))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Hl;const r=M(e);t&&this._numberProps&&this._numberProps[r]&&(n=H(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){t!==this._props[e]&&(t===Hl?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(D(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(D(e),t+""):t||this.removeAttribute(D(e))))}_update(){Na(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Gi(this._def,f(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?f({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),D(e)!==e&&t(D(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let t=e.length-1;t>=0;t--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e))({name:"TransitionGroup",props:f({},ol,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dc(),r=Ar();let o,s;return To((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[nl];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=ml(r);return s.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(ta),o.forEach(na);const r=o.filter(ra);yl(),r.forEach((e=>{const n=e.el,r=n.style;ul(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[Ql]=null,fl(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=Zt(e),c=ll(i);let l=i.tag||Ii;if(o=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>V(t,e):t};function sa(e){e.target.composing=!0}function ia(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ca=Symbol("_assign"),la={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[ca]=oa(o);const s=r||o.props&&"number"===o.props.type;Pl(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=U(r)),e[ca](r)})),n&&Pl(e,"change",(()=>{e.value=e.value.trim()})),t||(Pl(e,"compositionstart",sa),Pl(e,"compositionend",ia),Pl(e,"change",ia))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[ca]=oa(i),e.composing)return;const c=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))!==c){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===c)return}e.value=c}}},aa={deep:!0,created(e,t,n){e[ca]=oa(n),Pl(e,"change",(()=>{const t=e._modelValue,n=ha(e),r=e.checked,o=e[ca];if(m(t)){const e=de(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(v(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(ma(e,r))}))},mounted:ua,beforeUpdate(e,t,n){e[ca]=oa(n),ua(e,t,n)}};function ua(e,{value:t,oldValue:n},r){let o;e._modelValue=t,o=m(t)?de(t,r.props.value)>-1:v(t)?t.has(r.props.value):fe(t,ma(e,!0)),e.checked!==o&&(e.checked=o)}const fa={created(e,{value:t},n){e.checked=fe(t,n.props.value),e[ca]=oa(n),Pl(e,"change",(()=>{e[ca](ha(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[ca]=oa(r),t!==n&&(e.checked=fe(t,r.props.value))}},da={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=v(t);Pl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?U(ha(e)):ha(e)));e[ca](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Gn((()=>{e._assigning=!1}))})),e[ca]=oa(r)},mounted(e,{value:t,modifiers:{number:n}}){pa(e,t)},beforeUpdate(e,t,n){e[ca]=oa(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||pa(e,t)}};function pa(e,t,n){const r=e.multiple,o=m(t);if(!r||o||v(t)){for(let n=0,s=e.options.length;nString(e)===String(i))):de(t,i)>-1}else s.selected=t.has(i);else if(fe(ha(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ha(e){return"_value"in e?e._value:e.value}function ma(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ga={created(e,t,n){ya(e,t,n,null,"created")},mounted(e,t,n){ya(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ya(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ya(e,t,n,r,"updated")}};function va(e,t){switch(e){case"SELECT":return da;case"TEXTAREA":return la;default:switch(t){case"checkbox":return aa;case"radio":return fa;default:return la}}}function ya(e,t,n,r,o){const s=va(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const ba=["ctrl","shift","alt","meta"],_a={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ba.some((n=>e[`${n}Key`]&&!t.includes(n)))},Sa=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=D(n.key);return t.some((e=>e===r||xa[e]===r))?e(n):void 0})},ka=f({patchProp:(e,t,n,r,o,s)=>{const i="svg"===o;"class"===t?function(e,t,n){const r=e[nl];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,o=_(n);let s=!1;if(n&&!o){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Nl(r,t,"")}else for(const e in t)null==n[e]&&Nl(r,e,"");for(const e in n)"display"===e&&(s=!0),Nl(r,e,n[e])}else if(o){if(t!==n){const e=r[Cl];e&&(n+=";"+e),r.cssText=n,s=wl.test(n)}}else t&&e.removeAttribute("style");bl in e&&(e[bl]=s?r.display:"",e[_l]&&(r.display="none"))}(e,n,r):a(t)?u(t)||Ll(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ul(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ul(t)&&_(n))return!1;if(t in e)return!0;if(e._isVueCE&&(/[A-Z]/.test(t)||!_(n)))return!0;return!1}(e,t,r,i))?(!function(e,t,n){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Gc(n):n));const r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){const o="OPTION"===r?e.getAttribute("value")||"":e.value,s=null==n?"checkbox"===e.type?"on":"":String(n);return o===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=ie(n):null==n&&"string"===r?(n="",o=!0):"number"===r&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(t)}(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Ml(e,t,r,i,0,"value"!==t)):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Ml(e,t,r,i))}},Zc);let Ta,Ea=!1;function wa(){return Ta||(Ta=Ks(ka))}function Aa(){return Ta=Ea?Ta:Js(ka),Ea=!0,Ta}const Na=(...e)=>{wa().render(...e)},Ia=(...e)=>{Aa().hydrate(...e)},Ra=(...e)=>{const t=wa().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Pa(e);if(!r)return;const o=t._component;b(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const s=n(r,!1,Ma(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Oa=(...e)=>{const t=Aa().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Pa(e);if(t)return n(t,!0,Ma(t))},t};function Ma(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pa(e){if(_(e)){return document.querySelector(e)}return e}let Da=!1;const La=()=>{Da||(Da=!0,la.getSSRProps=({value:e})=>({value:e}),fa.getSSRProps=({value:e},t)=>{if(t.props&&fe(t.props.value,e))return{checked:!0}},aa.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&de(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ga.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=va(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Sl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},$a=Symbol(""),Fa=Symbol(""),Va=Symbol(""),Ba=Symbol(""),Ua=Symbol(""),Ha=Symbol(""),ja=Symbol(""),qa=Symbol(""),Wa=Symbol(""),za=Symbol(""),Ka=Symbol(""),Ja=Symbol(""),Ya=Symbol(""),Ga=Symbol(""),Xa=Symbol(""),Qa=Symbol(""),Za=Symbol(""),eu=Symbol(""),tu=Symbol(""),nu=Symbol(""),ru=Symbol(""),ou=Symbol(""),su=Symbol(""),iu=Symbol(""),cu=Symbol(""),lu=Symbol(""),au=Symbol(""),uu=Symbol(""),fu=Symbol(""),du=Symbol(""),pu=Symbol(""),hu=Symbol(""),mu=Symbol(""),gu=Symbol(""),vu=Symbol(""),yu=Symbol(""),bu=Symbol(""),_u=Symbol(""),Su=Symbol(""),xu={[$a]:"Fragment",[Fa]:"Teleport",[Va]:"Suspense",[Ba]:"KeepAlive",[Ua]:"BaseTransition",[Ha]:"openBlock",[ja]:"createBlock",[qa]:"createElementBlock",[Wa]:"createVNode",[za]:"createElementVNode",[Ka]:"createCommentVNode",[Ja]:"createTextVNode",[Ya]:"createStaticVNode",[Ga]:"resolveComponent",[Xa]:"resolveDynamicComponent",[Qa]:"resolveDirective",[Za]:"resolveFilter",[eu]:"withDirectives",[tu]:"renderList",[nu]:"renderSlot",[ru]:"createSlots",[ou]:"toDisplayString",[su]:"mergeProps",[iu]:"normalizeClass",[cu]:"normalizeStyle",[lu]:"normalizeProps",[au]:"guardReactiveProps",[uu]:"toHandlers",[fu]:"camelize",[du]:"capitalize",[pu]:"toHandlerKey",[hu]:"setBlockTracking",[mu]:"pushScopeId",[gu]:"popScopeId",[vu]:"withCtx",[yu]:"unref",[bu]:"isRef",[_u]:"withMemo",[Su]:"isMemoSame"};const Cu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ku(e,t,n,r,o,s,i,c=!1,l=!1,a=!1,u=Cu){return e&&(c?(e.helper(Ha),e.helper(Pu(e.inSSR,a))):e.helper(Mu(e.inSSR,a)),i&&e.helper(eu)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function Tu(e,t=Cu){return{type:17,loc:t,elements:e}}function Eu(e,t=Cu){return{type:15,loc:t,properties:e}}function wu(e,t){return{type:16,loc:Cu,key:_(e)?Au(e,!0):e,value:t}}function Au(e,t=!1,n=Cu,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Nu(e,t=Cu){return{type:8,loc:t,children:e}}function Iu(e,t=[],n=Cu){return{type:14,loc:n,callee:e,arguments:t}}function Ru(e,t=void 0,n=!1,r=!1,o=Cu){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Ou(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Cu}}function Mu(e,t){return e||t?Wa:za}function Pu(e,t){return e||t?ja:qa}function Du(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Mu(r,e.isComponent)),t(Ha),t(Pu(r,e.isComponent)))}const Lu=new Uint8Array([123,123]),$u=new Uint8Array([125,125]);function Fu(e){return e>=97&&e<=122||e>=65&&e<=90}function Vu(e){return 32===e||10===e||9===e||12===e||13===e}function Bu(e){return 47===e||62===e||Vu(e)}function Uu(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Gu(e){switch(e){case"Teleport":case"teleport":return Fa;case"Suspense":case"suspense":return Va;case"KeepAlive":case"keep-alive":return Ba;case"BaseTransition":case"base-transition":return Ua}}const Xu=/^\d|[^\$\w\xA0-\uFFFF]/,Qu=e=>!Xu.test(e),Zu=/[A-Za-z_$\xA0-\uFFFF]/,ef=/[\.\?\w$\xA0-\uFFFF]/,tf=/\s+[.[]\s*|\s*[.[]\s+/g,nf=e=>4===e.type?e.content:e.loc.source,rf=e=>{const t=nf(e).trim().replace(tf,(e=>e.trim()));let n=0,r=[],o=0,s=0,i=null;for(let e=0;e|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,sf=e=>of.test(nf(e));function cf(e,t,n=!1){for(let r=0;r4===e.key.type&&e.key.content===r))}return n}function yf(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const bf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,_f={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isIgnoreNewlineTag:l,isCustomElement:l,onError:zu,onWarn:Ku,comments:!1,prefixIdentifiers:!1};let Sf=_f,xf=null,Cf="",kf=null,Tf=null,Ef="",wf=-1,Af=-1,Nf=0,If=!1,Rf=null;const Of=[],Mf=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Lu,this.delimiterClose=$u,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Lu,this.delimiterClose=$u}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Bu(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Vu(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Hu.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Of,{onerr:Zf,ontext(e,t){Ff(Lf(e,t),e,t)},ontextentity(e,t,n){Ff(e,t,n)},oninterpolation(e,t){if(If)return Ff(Lf(e,t),e,t);let n=e+Mf.delimiterOpen.length,r=t-Mf.delimiterClose.length;for(;Vu(Cf.charCodeAt(n));)n++;for(;Vu(Cf.charCodeAt(r-1));)r--;let o=Lf(n,r);o.includes("&")&&(o=Sf.decodeEntities(o,!1)),Jf({type:5,content:Qf(o,!1,Yf(n,r)),loc:Yf(e,t)})},onopentagname(e,t){const n=Lf(e,t);kf={type:1,tag:n,ns:Sf.getNamespace(n,Of[0],Sf.ns),tagType:0,props:[],children:[],loc:Yf(e-1,t),codegenNode:void 0}},onopentagend(e){$f(e)},onclosetag(e,t){const n=Lf(e,t);if(!Sf.isVoidTag(n)){let r=!1;for(let e=0;e0&&Zf(24,Of[0].loc.start.offset);for(let n=0;n<=e;n++){Vf(Of.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Zf(2,t)},onattribend(e,t){if(kf&&Tf){if(Gf(Tf.loc,t),0!==e)if(Ef.includes("&")&&(Ef=Sf.decodeEntities(Ef,!0)),6===Tf.type)"class"===Tf.name&&(Ef=Kf(Ef).trim()),1!==e||Ef||Zf(13,t),Tf.value={type:2,content:Ef,loc:1===e?Yf(wf,Af):Yf(wf-1,Af+1)},Mf.inSFCRoot&&"template"===kf.tag&&"lang"===Tf.name&&Ef&&"html"!==Ef&&Mf.enterRCDATA(Uu("{const o=t.start.offset+n;return Qf(e,!1,Yf(o,o+e.length),0,r?1:0)},c={source:i(s.trim(),n.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Df,"").trim();const a=o.indexOf(l),u=l.match(Pf);if(u){l=l.replace(Pf,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+l.length),c.key=i(e,t,!0)),u[2]){const r=u[2].trim();r&&(c.index=i(r,n.indexOf(r,c.key?t+e.length:a+l.length),!0))}}l&&(c.value=i(l,a,!0));return c}(Tf.exp));let t=-1;"bind"===Tf.name&&(t=Tf.modifiers.findIndex((e=>"sync"===e.content)))>-1&&Wu("COMPILER_V_BIND_SYNC",Sf,Tf.loc,Tf.rawName)&&(Tf.name="model",Tf.modifiers.splice(t,1))}7===Tf.type&&"pre"===Tf.name||kf.props.push(Tf)}Ef="",wf=Af=-1},oncomment(e,t){Sf.comments&&Jf({type:3,content:Lf(e,t),loc:Yf(e-4,t+3)})},onend(){const e=Cf.length;for(let t=0;t64&&n<91)||Gu(e)||Sf.isBuiltInComponent&&Sf.isBuiltInComponent(e)||Sf.isNativeTag&&!Sf.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wu("COMPILER_INLINE_TEMPLATE",Sf,n.loc)&&e.children.length&&(n.value={type:2,content:Lf(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Bf(e,t){let n=e;for(;Cf.charCodeAt(n)!==t&&n>=0;)n--;return n}const Uf=new Set(["if","else","else-if","for","slot"]);function Hf({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){c.codegenNode.patchFlag=-1,i.push(c);continue}}else{const e=c.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&cd(c,n)>=2){const t=ld(c);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===c.type){if((r?0:od(c,n))>=2){i.push(c);continue}}if(1===c.type){const t=1===c.tagType;t&&n.scopes.vSlot++,rd(c,e,n,!1,o),t&&n.scopes.vSlot--}else if(11===c.type)rd(c,e,n,1===c.children.length,!0);else if(9===c.type)for(let t=0;te.key===t||e.key.content===t));return n&&n.value}}i.length&&n.transformHoist&&n.transformHoist(s,n,e)}function od(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const o=e.codegenNode;if(13!==o.type)return 0;if(o.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===o.patchFlag){let r=3;const s=cd(e,t);if(0===s)return n.set(e,0),0;s1)for(let o=0;on&&(w.childIndex--,w.onNodeRemoved()):(w.currentNode=null,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:c,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){_(e)&&(e=Au(e)),w.hoists.push(e);const t=Au(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){const n=function(e,t,n=!1){return{type:20,index:e,value:t,needPauseTracking:n,needArraySpread:!1,loc:Cu}}(w.cached.length,e,t);return w.cached.push(n),n}};return w.filters=new Set,w}function ud(e,t){const n=ad(e,t);fd(e,n),t.hoistStatic&&td(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(nd(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Du(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;0,e.codegenNode=ku(t,n($a),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function fd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(ff))return;const s=[];for(let i=0;i`${xu[e]}: _${xu[e]}`;function md(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${xu[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:a,ssr:u}=n,f=Array.from(e.helpers),d=f.length>0,p=!s&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,a=c,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${a}\n`,-1),e.hoists.length)){o(`const { ${[Wa,za,Ka,Ja,Ya].filter((e=>u.includes(e))).map(hd).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(gd(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),gd(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),u||o("return "),e.codegenNode?bd(e.codegenNode,n):o("null"),p&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function gd(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?Za:"component"===t?Ga:Qa);for(let n=0;n3||!1;t.push("["),n&&t.indent(),yd(e,t,n),n&&t.deindent(),t.push("]")}function yd(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,h,a]),t),n(")"),f&&n(")");u&&(n(", "),bd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=_(e.callee)?e.callee:r(e.callee);o&&n(pd);n(s+"(",-2,e),yd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),m(i)?vd(i,t):bd(i,t)):c&&bd(c,t);(l||c)&&(o(),n("}"));a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!Qu(n.content);e&&i("("),_d(n,t),e&&i(")")}else i("("),bd(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),bd(r,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===o.type;u||t.indentLevel++;bd(o,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t,{needPauseTracking:c,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),c&&(o(),n(`${r(hu)}(-1),`),i(),n("("));n(`_cache[${e.index}] = `),bd(e.value,t),c&&(n(`).cacheIndex = ${e.index},`),i(),n(`${r(hu)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")"),l&&n(")]")}(e,t);break;case 21:yd(e.body,t,!0,!1)}}function _d(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Sd(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Ju(28,t.loc)),t.exp=Au("true",!1,r)}0;if("if"===t.name){const o=kd(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Ju(30,e.loc)),n.removeNode();const o=kd(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);fd(o,n),s&&s(),n.currentNode=null}else n.onError(Ju(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=Td(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Td(t,i+e.branches.length-1,n)}}}))));function kd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!cf(e,"for")?e.children:[e],userKey:lf(e,"key"),isTemplateIf:n}}function Td(e,t,n){return e.condition?Ou(e.condition,Ed(e,t,n),Iu(n.helper(Ka),['""',"true"])):Ed(e,t,n)}function Ed(e,t,n){const{helper:r}=n,o=wu("key",Au(`${t}`,!1,Cu,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return gf(e,o,n),e}{let t=64;return ku(n,r($a),Eu([o]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===_u?c.arguments[1].returns:c;return 13===t.type&&Du(t,n),gf(t,o,n),e}var c}const wd=(e,t,n)=>{const{modifiers:r,loc:o}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Ju(52,s.loc)),{props:[wu(s,Au("",!0,o))]};Ad(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.some((e=>"camel"===e.content))&&(4===s.type?s.isStatic?s.content=M(s.content):s.content=`${n.helperString(fu)}(${s.content})`:(s.children.unshift(`${n.helperString(fu)}(`),s.children.push(")"))),n.inSSR||(r.some((e=>"prop"===e.content))&&Nd(s,"."),r.some((e=>"attr"===e.content))&&Nd(s,"^")),{props:[wu(s,i)]}},Ad=(e,t)=>{const n=e.arg,r=M(n.content);e.exp=Au(r,!1,n.loc)},Nd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Id=dd("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Ju(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Ju(32,t.loc));Rd(o,n);const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:a,key:u,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:o,children:df(e)?e.children:[e]};n.replaceNode(d),c.vFor++;const p=r&&r(d);return()=>{c.vFor--,p&&p()}}(e,t,n,(t=>{const s=Iu(r(tu),[t.source]),i=df(e),c=cf(e,"memo"),l=lf(e,"key",!1,!0);l&&7===l.type&&!l.exp&&Ad(l);const a=l&&(6===l.type?l.value?Au(l.value.content,!0):void 0:l.exp),u=l&&a?wu("key",a):null,f=4===t.source.type&&t.source.constType>0,d=f?64:l?128:256;return t.codegenNode=ku(n,r($a),void 0,s,d,void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:d}=t;const p=1!==d.length||1!==d[0].type,h=pf(e)?e:i&&1===e.children.length&&pf(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&u&&gf(l,u,n)):p?l=ku(n,r($a),u?Eu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,i&&u&&gf(l,u,n),l.isBlock!==!f&&(l.isBlock?(o(Ha),o(Pu(n.inSSR,l.isComponent))):o(Mu(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(Ha),r(Pu(n.inSSR,l.isComponent))):r(Mu(n.inSSR,l.isComponent))),c){const e=Ru(Od(t.parseResult,[Au("_cached")]));e.body={type:21,body:[Nu(["const _memo = (",c.exp,")"]),Nu(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Su)}(_cached, _memo)) return _cached`]),Nu(["const _item = ",l]),Au("_item.memo = _memo"),Au("return _item")],loc:Cu},s.arguments.push(e,Au("_cache"),Au(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(Ru(Od(t.parseResult),l,!0))}}))}));function Rd(e,t){e.finalized||(e.finalized=!0)}function Od({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Au("_".repeat(t+1),!1)))}([e,t,n,...r])}const Md=Au("undefined",!1),Pd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=cf(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Dd=(e,t,n,r)=>Ru(e,n,!1,!0,n.length?n[0].loc:r);function Ld(e,t,n=Dd){t.helper(vu);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=cf(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Yu(e)&&(c=!0),s.push(wu(e||Au("default",!0),n(t,void 0,r,o)))}let a=!1,u=!1;const f=[],d=new Set;let p=0;for(let e=0;e{const s=n(e,void 0,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),wu("default",s)};a?f.length&&f.some((e=>Vd(e)))&&(u?t.onError(Ju(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Fd(e.children)?3:1;let m=Eu(s.concat(wu("_",Au(h+"",!1))),o);return i.length&&(m=Iu(t.helper(ru),[m,Tu(i)])),{slots:m,hasDynamicSlots:c}}function $d(e,t,n){const r=[wu("name",e),wu("fn",t)];return null!=n&&r.push(wu("key",Au(String(n),!0))),Eu(r)}function Fd(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=Wd(r),s=lf(e,"is",!1,!0);if(s)if(o||qu("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Au(s.value.content,!0):(e=s.exp,e||(e=Au("is",!1,s.arg.loc))),e)return Iu(t.helper(Xa),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=Gu(r)||t.isBuiltInComponent(r);if(i)return n||t.helper(i),i;return t.helper(Ga),t.components.add(r),yf(r,"component")}(e,t):`"${n}"`;const i=x(s)&&s.callee===Xa;let c,l,a,u,f,d=0,p=i||s===Fa||s===Va||!o&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=Hd(e,t,void 0,o,i);c=n.props,d=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;f=r&&r.length?Tu(r.map((e=>function(e,t){const n=[],r=Bd.get(e);r?n.push(t.helperString(r)):(t.helper(Qa),t.directives.add(e.name),n.push(yf(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Au("true",!1,o);n.push(Eu(e.modifiers.map((e=>wu(e,t))),o))}return Tu(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){s===Ba&&(p=!0,d|=1024);if(o&&s!==Fa&&s!==Ba){const{slots:n,hasDynamicSlots:r}=Ld(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&s!==Fa){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===od(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}u&&u.length&&(a=function(e){let t="[";for(let n=0,r=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,b=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(f.push(Eu(jd(u),c)),u=[]),e&&f.push(e)},T=()=>{t.scopes.vFor>0&&u.push(wu(Au("ref_for",!0),Au("true")))},E=({key:e,value:n})=>{if(Yu(e)){const s=e.content,i=a(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||N(s)||(b=!0),i&&N(s)&&(x=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&od(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||C.includes(s)||C.push(s),!r||"class"!==s&&"style"!==s||C.includes(s)||C.push(s)}else _=!0};for(let o=0;o"prop"===e.content))&&(m|=32);const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:r}=x(l,e,t);!s&&n.forEach(E),b&&o&&!Yu(o)?k(Eu(n,c)):u.push(...n),r&&(d.push(l),S(r)&&Bd.set(l,r))}else I(n)||(d.push(l),p&&(h=!0))}}let w;if(f.length?(k(),w=f.length>1?Iu(t.helper(su),f,c):f[0]):u.length&&(w=Eu(jd(u),c)),_?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),C.length&&(m|=8),b&&(m|=32)),h||0!==m&&32!==m||!(g||x||d.length>0)||(m|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{if(pf(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Hd(e,t,o,!1,!1);n=r,s.length&&t.onError(Ju(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=Ru([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Iu(t.helper(nu),i,r)}};const Kd=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Ju(35,o)),4===i.type)if(i.isStatic){let e=i.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=Au(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?$(M(e)):`on:${e}`,!0,i.loc)}else c=Nu([`${n.helperString(pu)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(pu)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=rf(l),t=!(e||sf(l)),n=l.content.includes(";");0,(t||a&&e)&&(l=Nu([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[wu(c,l||Au("() => {}",!1,o))]};return r&&(u=r(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Jd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&cf(e,"once",!0)){if(Yd.has(e)||t.inVOnce||t.inSSR)return;return Yd.add(e),t.inVOnce=!0,t.helper(hu),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Xd=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Ju(41,e.loc)),Qd();const s=r.loc.source.trim(),i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Ju(44,r.loc)),Qd();if(!i.trim()||!rf(r))return n.onError(Ju(42,r.loc)),Qd();const l=o||Au("modelValue",!0),a=o?Yu(o)?`onUpdate:${M(o.content)}`:Nu(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;u=Nu([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[wu(l,e.exp),wu(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(Qu(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?Yu(o)?`${o.content}Modifiers`:Nu([o,' + "Modifiers"']):"modelModifiers";f.push(wu(n,Au(`{ ${t} }`,!1,e.loc,2)))}return Qd(f)};function Qd(e=[]){return{props:e}}const Zd=/[\w).+\-_$\]]/,ep=(e,t)=>{qu("COMPILER_FILTERS",t)&&(5===e.type?tp(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&tp(e.exp,t)})))};function tp(e,t){if(4===e.type)np(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Zd.test(e)||(u=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=cf(e,"memo");if(!n||op.has(e))return;return op.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Du(r,t),e.codegenNode=Iu(t.helper(_u),[n.exp,Ru(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function ip(e,t={}){const n=t.onError||zu,r="module"===t.mode;!0===t.prefixIdentifiers?n(Ju(47)):r&&n(Ju(48));t.cacheHandlers&&n(Ju(49)),t.scopeId&&!r&&n(Ju(50));const o=f({},t,{prefixIdentifiers:!1}),s=_(e)?ed(e,o):e,[i,c]=[[Gd,Cd,sp,Id,ep,zd,Ud,Pd,Jd],{on:Kd,bind:wd,model:Xd}];return ud(s,f({},o,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:f({},c,t.directiveTransforms||{})})),md(s,o)}const cp=Symbol(""),lp=Symbol(""),ap=Symbol(""),up=Symbol(""),fp=Symbol(""),dp=Symbol(""),pp=Symbol(""),hp=Symbol(""),mp=Symbol(""),gp=Symbol("");var vp;let yp;vp={[cp]:"vModelRadio",[lp]:"vModelCheckbox",[ap]:"vModelText",[up]:"vModelSelect",[fp]:"vModelDynamic",[dp]:"withModifiers",[pp]:"withKeys",[hp]:"vShow",[mp]:"Transition",[gp]:"TransitionGroup"},Object.getOwnPropertySymbols(vp).forEach((e=>{xu[e]=vp[e]}));const bp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return yp||(yp=document.createElement("div")),t?(yp.innerHTML=`
`,yp.children[0].getAttribute("foo")):(yp.innerHTML=e,yp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?mp:"TransitionGroup"===e||"transition-group"===e?gp:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},_p=(e,t)=>{const n=G(e);return Au(JSON.stringify(n),!1,t,3)};function Sp(e,t){return Ju(e,t)}const xp=o("passive,once,capture"),Cp=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),kp=o("left,right"),Tp=o("onkeyup,onkeydown,onkeypress"),Ep=(e,t)=>Yu(e)&&"onclick"===e.content.toLowerCase()?Au(t,!0):4!==e.type?Nu(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const wp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const Ap=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Au("style",!0,t.loc),exp:_p(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Np={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Sp(53,o)),t.children.length&&(n.onError(Sp(54,o)),t.children.length=0),{props:[wu(Au("innerHTML",!0,o),r||Au("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Sp(55,o)),t.children.length&&(n.onError(Sp(56,o)),t.children.length=0),{props:[wu(Au("textContent",!0),r?od(r,n)>0?r:Iu(n.helperString(ou),[r],o):Au("",!0))]}},model:(e,t,n)=>{const r=Xd(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Sp(58,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=ap,c=!1;if("input"===o||s){const r=lf(t,"type");if(r){if(7===r.type)i=fp;else if(r.value)switch(r.value.content){case"radio":i=cp;break;case"checkbox":i=lp;break;case"file":c=!0,n.onError(Sp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=fp)}else"select"===o&&(i=up);c||(r.needRuntime=n.helper(i))}else n.onError(Sp(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Kd(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n)=>{const r=[],o=[],s=[];for(let i=0;i{const{exp:r,loc:o}=e;return r||n.onError(Sp(61,o)),{props:[],needRuntime:n.helper(hp)}}};const Ip=new WeakMap;function Rp(e,t){if(!_(e)){if(!e.nodeType)return c;e=e.innerHTML}const n=e,o=function(e){let t=Ip.get(null!=e?e:s);return t||(t=Object.create(null),Ip.set(null!=e?e:s,t)),t}(t),i=o[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const l=f({hoistStatic:!0,onError:void 0,onWarn:c},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return ip(e,f({},bp,t,{nodeTransforms:[wp,...Ap,...t.nodeTransforms||[]],directiveTransforms:f({},Np,t.directiveTransforms||{}),transformHoist:null}))}(e,l);const u=new Function("Vue",a)(r);return u._rc=!0,o[n]=u}Cc(Rp)}}]); \ No newline at end of file diff --git a/modules/backend/behaviors/ListController.php b/modules/backend/behaviors/ListController.php index 379cf99cc..d9b25f712 100644 --- a/modules/backend/behaviors/ListController.php +++ b/modules/backend/behaviors/ListController.php @@ -235,39 +235,37 @@ public function makeList($definition = null) if (isset($listConfig->filter)) { $filterConfig = $this->makeConfig($listConfig->filter); - if (!empty($filterConfig->scopes)) { - $widget->cssClasses[] = 'list-flush'; - - $filterConfig->alias = $widget->alias . 'Filter'; - $filterWidget = $this->makeWidget(\Backend\Widgets\Filter::class, $filterConfig); - $filterWidget->bindToController(); - - /* - * Filter the list when the scopes are changed - */ - $filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) { - return $widget->onFilter(); - }); + $widget->cssClasses[] = 'list-flush'; - /* - * Filter Widget with extensibility - */ - $filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) { - $this->controller->listFilterExtendScopes($filterWidget); - }); + $filterConfig->alias = $widget->alias . 'Filter'; + $filterWidget = $this->makeWidget(\Backend\Widgets\Filter::class, $filterConfig); + $filterWidget->bindToController(); - /* - * Extend the query of the list of options - */ - $filterWidget->bindEvent('filter.extendQuery', function ($query, $scope) { - $this->controller->listFilterExtendQuery($query, $scope); - }); + /* + * Filter the list when the scopes are changed + */ + $filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) { + return $widget->onFilter(); + }); - // Apply predefined filter values - $widget->addFilter([$filterWidget, 'applyAllScopesToQuery']); + /* + * Filter Widget with extensibility + */ + $filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) { + $this->controller->listFilterExtendScopes($filterWidget); + }); - $this->filterWidgets[$definition] = $filterWidget; - } + /* + * Extend the query of the list of options + */ + $filterWidget->bindEvent('filter.extendQuery', function ($query, $scope) { + $this->controller->listFilterExtendQuery($query, $scope); + }); + + // Apply predefined filter values + $widget->addFilter([$filterWidget, 'applyAllScopesToQuery']); + + $this->filterWidgets[$definition] = $filterWidget; } return $widget; diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index d55751aaf..3f8346df4 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -669,7 +669,7 @@ protected function makeViewWidget() $config->showSorting = $this->getConfig('view[showSorting]', true); $config->defaultSort = $this->getConfig('view[defaultSort]'); $config->recordsPerPage = $this->getConfig('view[recordsPerPage]'); - $config->showPageNumbers = $this->getConfig('view[showPageNumbers]', false); + $config->showPageNumbers = $this->getConfig('view[showPageNumbers]', true); $config->showCheckboxes = $this->getConfig('view[showCheckboxes]', !$this->readOnly); $config->recordUrl = $this->getConfig('view[recordUrl]'); $config->customViewPath = $this->getConfig('view[customViewPath]'); @@ -821,7 +821,7 @@ protected function makeManageWidget() $config->showSorting = $this->getConfig('manage[showSorting]', !$isPivot); $config->defaultSort = $this->getConfig('manage[defaultSort]'); $config->recordsPerPage = $this->getConfig('manage[recordsPerPage]'); - $config->showPageNumbers = $this->getConfig('manage[showPageNumbers]', false); + $config->showPageNumbers = $this->getConfig('manage[showPageNumbers]', true); $config->noRecordsMessage = $this->getConfig('manage[noRecordsMessage]'); if ($this->viewMode === 'single') { diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index 9139ded69..bb413249f 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -1,13 +1,13 @@ -options)) { return $this->options; - } - elseif (is_callable($this->options)) { + } elseif (is_callable($this->options)) { $callable = $this->options; return $callable(); + } elseif (is_string($this->options) && is_array($options = Lang::get($this->options))) { + return $options; } return []; @@ -434,9 +436,8 @@ public function getAttributes($position = 'field', $htmlBuild = true) // Field is required, so add the "required" attribute if ($position === 'field' && $this->required && (!isset($result['required']) || $result['required'])) { $result['required'] = ''; - } - // The "required" attribute is set and falsy, so unset it - elseif ($position === 'field' && isset($result['required']) && !$result['required']) { + } elseif ($position === 'field' && isset($result['required']) && !$result['required']) { + // The "required" attribute is set and falsy, so unset it unset($result['required']); } diff --git a/modules/backend/classes/ListColumn.php b/modules/backend/classes/ListColumn.php index 58614abed..04bc867e4 100644 --- a/modules/backend/classes/ListColumn.php +++ b/modules/backend/classes/ListColumn.php @@ -42,6 +42,11 @@ class ListColumn */ public $sortable = true; + /** + * @var bool Specifies if this column can be summed. + */ + public $summable = false; + /** * @var bool If set to false, disables the default click behavior when the column is clicked. */ @@ -152,6 +157,9 @@ protected function evalConfig($config) if (isset($config['sortable'])) { $this->sortable = $config['sortable']; } + if (isset($config['summable'])) { + $this->summable = $config['summable']; + } if (isset($config['clickable'])) { $this->clickable = $config['clickable']; } diff --git a/modules/backend/console/CreateController.php b/modules/backend/console/CreateController.php index bb8918493..152881532 100644 --- a/modules/backend/console/CreateController.php +++ b/modules/backend/console/CreateController.php @@ -22,6 +22,7 @@ class CreateController extends BaseScaffoldCommand {controller : The name of the controller to generate. (eg: Posts)} {--force : Overwrite existing files with generated files.} {--model= : Defines the model name to use. If not provided, the singular name of the controller is used.} + {--sidebar : Create stubs for form-with-sidebar layout} {--uninspiring : Disable inspirational quotes} '; @@ -47,10 +48,7 @@ class CreateController extends BaseScaffoldCommand 'scaffold/controller/_list_toolbar.stub' => 'controllers/{{lower_name}}/_list_toolbar.php', 'scaffold/controller/config_form.stub' => 'controllers/{{lower_name}}/config_form.yaml', 'scaffold/controller/config_list.stub' => 'controllers/{{lower_name}}/config_list.yaml', - 'scaffold/controller/create.stub' => 'controllers/{{lower_name}}/create.php', 'scaffold/controller/index.stub' => 'controllers/{{lower_name}}/index.php', - 'scaffold/controller/preview.stub' => 'controllers/{{lower_name}}/preview.php', - 'scaffold/controller/update.stub' => 'controllers/{{lower_name}}/update.php', 'scaffold/controller/controller.stub' => 'controllers/{{studly_name}}.php', ]; @@ -69,6 +67,13 @@ protected function prepareVars(): array $model = Str::singular($vars['name']); } $vars['model'] = $model; + $vars['sidebar'] = $this->option('sidebar'); + + $layout = $this->option('sidebar') ? 'sidebar' : 'standard'; + + $this->stubs["scaffold/controller/{$layout}/create.stub"] = 'controllers/{{lower_name}}/create.php'; + $this->stubs["scaffold/controller/{$layout}/update.stub"] = 'controllers/{{lower_name}}/update.php'; + $this->stubs["scaffold/controller/{$layout}/preview.stub"] = 'controllers/{{lower_name}}/preview.php'; return $vars; } diff --git a/modules/backend/console/UserCreate.php b/modules/backend/console/UserCreate.php new file mode 100644 index 000000000..b1ec78718 --- /dev/null +++ b/modules/backend/console/UserCreate.php @@ -0,0 +1,87 @@ +Use the role\'s code} + {--f|force : Force the operation to run and ignore production warnings and confirmation questions.}'; + + /** + * @var string The console command description. + */ + protected $description = 'Creates a backend user.'; + + /** + * Execute the console command. + */ + public function handle(): int + { + $email = $this->argument('email'); + + if ( + Config::get('app.env', 'production') !== 'local' + && !$this->option('force') + && !$this->confirmWithInput("CAUTION, currently working with non-local data. Please confirm the user email address", $email) + ) { + return 1; + } + + if (User::where('email', $email)->exists()) { + $this->error('A user with that email already exists.'); + return 1; + } + + $data = [ + 'email' => $email, + 'password' => $this->option('password') ?: $this->secret('Password'), + 'first_name' => $this->option('fname') ?: $this->ask('First name', ''), + 'last_name' => $this->option('lname') ?: $this->ask('Last name', ''), + 'role_id' => ( + UserRole::where( + 'code', + $this->option('role') ?: $this->choice( + 'Role', + UserRole::lists('name', 'code') + ) + )->firstOrFail() + )->id, + ]; + + $data['password_confirmation'] = $data['password']; + + $user = User::create([ + 'first_name' => $data['first_name'], + 'last_name' => $data['last_name'], + 'login' => $data['email'], + 'email' => $data['email'], + 'role_id' => $data['role_id'], + 'password' => $data['password'], + 'password_confirmation' => $data['password'], + ]); + + $this->info("User {$user->email} created successfully with the {$role->name} role."); + + return 0; + } +} diff --git a/modules/backend/console/scaffold/controller/controller.stub b/modules/backend/console/scaffold/controller/controller.stub index 0c5e1f3da..1d0b5c8cd 100644 --- a/modules/backend/console/scaffold/controller/controller.stub +++ b/modules/backend/console/scaffold/controller/controller.stub @@ -16,10 +16,21 @@ class {{ studly_name }} extends Controller \Backend\Behaviors\ListController::class, ]; + /** + * @var array Permissions required to view this page. + */ + protected $requiredPermissions = [ + '{{ lower_author }}.{{ lower_plugin }}.{{ lower_name }}.manage_all', + ]; + public function __construct() { parent::__construct(); BackendMenu::setContext('{{ plugin_code }}', '{{ lower_plugin }}', '{{ lower_name }}'); + {% if sidebar %} + + $this->bodyClass = 'compact-container'; + {% endif -%} } } diff --git a/modules/backend/console/scaffold/controller/sidebar/create.stub b/modules/backend/console/scaffold/controller/sidebar/create.stub new file mode 100644 index 000000000..cfce78fa9 --- /dev/null +++ b/modules/backend/console/scaffold/controller/sidebar/create.stub @@ -0,0 +1,64 @@ + +
    +
  • +
  • pageTitle)) ?>
  • +
+ + +fatalError): ?> + + +
+ +
+ formRenderOutsideFields() ?> + formRenderPrimaryTabs() ?> +
+ +
+
+ + + + or + +
+
+ +
+ + + +
formRenderSecondaryTabs() ?>
+ + + + 'layout stretch']) ?> + makeLayout('form-with-sidebar') ?> + + + + +
+ +
+
+

fatalError)) ?>

+

+
+ diff --git a/modules/backend/console/scaffold/controller/sidebar/preview.stub b/modules/backend/console/scaffold/controller/sidebar/preview.stub new file mode 100644 index 000000000..6014bd458 --- /dev/null +++ b/modules/backend/console/scaffold/controller/sidebar/preview.stub @@ -0,0 +1,39 @@ + +
    +
  • +
  • pageTitle)) ?>
  • +
+ + +fatalError): ?> + + +
+ +
+ formRenderOutsideFields() ?> + formRenderPrimaryTabs() ?> +
+ +
+ + + +
formRenderSecondaryTabs() ?>
+ + + + 'layout stretch']) ?> + makeLayout('form-with-sidebar') ?> + + + + +
+ +
+
+

fatalError)) ?>

+

+
+ diff --git a/modules/backend/console/scaffold/controller/sidebar/update.stub b/modules/backend/console/scaffold/controller/sidebar/update.stub new file mode 100644 index 000000000..bd5677411 --- /dev/null +++ b/modules/backend/console/scaffold/controller/sidebar/update.stub @@ -0,0 +1,72 @@ + +
    +
  • +
  • pageTitle)) ?>
  • +
+ + +fatalError): ?> + + +
+ +
+ formRenderOutsideFields() ?> + formRenderPrimaryTabs() ?> +
+ +
+
+ + + + + or + +
+
+ +
+ + + +
formRenderSecondaryTabs() ?>
+ + + + 'layout stretch']) ?> + makeLayout('form-with-sidebar') ?> + + + + +
+ +
+
+

fatalError)) ?>

+

+
+ diff --git a/modules/backend/console/scaffold/controller/create.stub b/modules/backend/console/scaffold/controller/standard/create.stub similarity index 100% rename from modules/backend/console/scaffold/controller/create.stub rename to modules/backend/console/scaffold/controller/standard/create.stub diff --git a/modules/backend/console/scaffold/controller/preview.stub b/modules/backend/console/scaffold/controller/standard/preview.stub similarity index 100% rename from modules/backend/console/scaffold/controller/preview.stub rename to modules/backend/console/scaffold/controller/standard/preview.stub diff --git a/modules/backend/console/scaffold/controller/update.stub b/modules/backend/console/scaffold/controller/standard/update.stub similarity index 100% rename from modules/backend/console/scaffold/controller/update.stub rename to modules/backend/console/scaffold/controller/standard/update.stub diff --git a/modules/backend/controllers/Auth.php b/modules/backend/controllers/Auth.php index 278ae0c23..8ed4ecef4 100644 --- a/modules/backend/controllers/Auth.php +++ b/modules/backend/controllers/Auth.php @@ -1,18 +1,16 @@ bodyClass = 'signin'; // Clear Cache and any previous data to fix invalid security token issue @@ -90,20 +92,6 @@ public function signin_onSubmit() 'password' => post('password') ], $remember); - $runMigrationsOnLogin = (bool) Config::get('cms.runMigrationsOnLogin', Config::get('app.debug', false)); - - if ($runMigrationsOnLogin) { - try { - // Load version updates - UpdateManager::instance()->update(); - } catch (Exception $ex) { - Flash::error($ex->getMessage()); - } - } - - // Log the sign in event - AccessLog::add($user); - // Redirect to the intended page after successful sign in return Backend::redirectIntended('backend'); } diff --git a/modules/backend/formwidgets/RecordFinder.php b/modules/backend/formwidgets/RecordFinder.php index 982e12dc0..0e5799cf0 100644 --- a/modules/backend/formwidgets/RecordFinder.php +++ b/modules/backend/formwidgets/RecordFinder.php @@ -60,7 +60,7 @@ class RecordFinder extends FormWidgetBase /** * @var string Prompt to display if no record is selected. */ - public $prompt = 'Click the %s button to find a record'; + public $prompt = null; /** * @var int Maximum rows to display for each page. @@ -144,6 +144,10 @@ public function init() 'modelClass', ]); + if (!isset($this->prompt)) { + $this->prompt = Lang::get('backend::lang.recordfinder.default_prompt'); + } + if (!$this->useRelation && !class_exists($this->modelClass)) { throw new ApplicationException(Lang::get('backend::lang.recordfinder.invalid_model_class', ['modelClass' => $this->modelClass])); } diff --git a/modules/backend/formwidgets/Relation.php b/modules/backend/formwidgets/Relation.php index e15462fcd..830af3b49 100644 --- a/modules/backend/formwidgets/Relation.php +++ b/modules/backend/formwidgets/Relation.php @@ -1,10 +1,12 @@ -readOnly)) { + if (!isset($this->readOnly) && $this->config->previewMode) { $this->readOnly = $this->config->previewMode; } } @@ -58,12 +58,17 @@ public function render() throw new SystemException($error); } - $options = [ - 'readOnly' => $this->readOnly, - 'recordUrl' => $this->recordUrl, - ]; + $options = []; - if ($this->recordOnClick) { + if (!is_null($this->readOnly)) { + $options['readOnly'] = $this->readOnly; + } + + if (!is_null($this->recordUrl)) { + $options['recordUrl'] = $this->recordUrl; + } + + if (!is_null($this->recordOnClick)) { $options['recordOnClick'] = $this->recordOnClick; } diff --git a/modules/backend/formwidgets/TagList.php b/modules/backend/formwidgets/TagList.php index fdaa2f117..7159fbb16 100644 --- a/modules/backend/formwidgets/TagList.php +++ b/modules/backend/formwidgets/TagList.php @@ -1,7 +1,9 @@ -getRelationModel(); $existingTags = $relationModel ->whereIn($this->nameFrom, $names) diff --git a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js index 5fd8bf6d6..775398bfd 100644 --- a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js +++ b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js @@ -1,3 +1 @@ -(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[728],{562:function(t){ -/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */ -self,t.exports=(()=>{"use strict";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:()=>E});var o={};function r(t,e,o,r,i={}){e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(o)||(o=[o]);for(const n of e)for(const e of o)n[t](e,r,{capture:!1,...i});return Array.prototype.slice.call(arguments,1)}t.r(o),t.d(o,{adjustableInputNumbers:()=>p,createElementFromString:()=>s,createFromTemplate:()=>a,eventPath:()=>c,off:()=>n,on:()=>i,resolveElement:()=>l});const i=r.bind(null,"addEventListener"),n=r.bind(null,"removeEventListener");function s(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function a(t){const e=(t,e)=>{const o=t.getAttribute(e);return t.removeAttribute(e),o},o=(t,r={})=>{const i=e(t,":obj"),n=e(t,":ref"),s=i?r[i]={}:r;n&&(r[n]=t);for(const r of Array.from(t.children)){const t=e(r,":arr"),i=o(r,t?{}:s);t&&(s[t]||(s[t]=[])).push(Object.keys(i).length?i:r)}return r};return o(s(t))}function c(t){let e=t.path||t.composedPath&&t.composedPath();if(e)return e;let o=t.target.parentElement;for(e=[t.target,o];o=o.parentElement;)e.push(o);return e.push(document,window),e}function l(t){return t instanceof Element?t:"string"==typeof t?t.split(/>>/g).reduce(((t,e,o,r)=>(t=t.querySelector(e),ot)){function o(o){const r=[.001,.01,.1][Number(o.shiftKey||2*o.ctrlKey)]*(o.deltaY<0?1:-1);let i=0,n=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,((t,o)=>o<=n&&o+t.length>=n?(n=o,e(Number(t),r,i)):(i++,t))),t.focus(),t.setSelectionRange(n,n),o.preventDefault(),t.dispatchEvent(new Event("input"))}i(t,"focus",(()=>i(window,"wheel",o,{passive:!1}))),i(t,"blur",(()=>n(window,"wheel",o)))}const{min:h,max:u,floor:d,round:g}=Math;function f(t,e,o){e/=100,o/=100;const r=d(t=t/360*6),i=t-r,n=o*(1-e),s=o*(1-i*e),a=o*(1-(1-i)*e),c=r%6;return[255*[o,s,n,n,a,o][c],255*[a,o,o,s,n,n][c],255*[n,n,a,o,o,s][c]]}function m(t,e,o){const r=(2-(e/=100))*(o/=100)/2;return 0!==r&&(e=1===r?0:r<.5?e*o/(2*r):e*o/(2-2*r)),[t,100*e,100*r]}function v(t,e,o){const r=h(t/=255,e/=255,o/=255),i=u(t,e,o),n=i-r;let s,a;if(0===n)s=a=0;else{a=n/i;const r=((i-t)/6+n/2)/n,c=((i-e)/6+n/2)/n,l=((i-o)/6+n/2)/n;t===i?s=l-c:e===i?s=1/3+r-l:o===i&&(s=2/3+c-r),s<0?s+=1:s>1&&(s-=1)}return[360*s,100*a,100*i]}function b(t,e,o,r){return e/=100,o/=100,[...v(255*(1-h(1,(t/=100)*(1-(r/=100))+r)),255*(1-h(1,e*(1-r)+r)),255*(1-h(1,o*(1-r)+r)))]}function k(t,e,o){e/=100;const r=2*(e*=(o/=100)<.5?o:1-o)/(o+e)*100,i=100*(o+e);return[t,isNaN(r)?0:r,i]}function w(t){return v(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function y(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e){if(!(r=e[i].exec(t)))continue;const n=t=>!!r[2]==("number"==typeof t);switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{const[,,,t,e,s,a]=o(r);if(t>255||e>255||s>255||a<0||a>1||!n(a))break t;return{values:[...v(t,e,s),a],a:a,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{const[,,,t,e,s,a]=o(r);if(t>360||e>100||s>100||a<0||a>1||!n(a))break t;return{values:[...k(t,e,s),a],a:a,type:i}}case"hsva":{const[,,,t,e,s,a]=o(r);if(t>360||e>100||s>100||a<0||a>1||!n(a))break t;return{values:[t,e,s,a],a:a,type:i}}}}return{values:null,type:null}}function _(t=0,e=0,o=0,r=1){const i=(t,e)=>(o=-1)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),n={h:t,s:e,v:o,a:r,toHSVA(){const t=[n.h,n.s,n.v,n.a];return t.toString=i(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toHSLA(){const t=[...m(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toRGBA(){const t=[...f(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${n.a})`)),t},toCMYK(){const t=function(t,e,o){const r=f(t,e,o),i=r[0]/255,n=r[1]/255,s=r[2]/255,a=h(1-i,1-n,1-s);return[100*(1===a?0:(1-i-a)/(1-a)),100*(1===a?0:(1-n-a)/(1-a)),100*(1===a?0:(1-s-a)/(1-a)),100*a]}(n.h,n.s,n.v);return t.toString=i(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return f(t,e,o).map((t=>g(t).toString(16).padStart(2,"0")))}(n.h,n.s,n.v),e=n.a>=1?"":Number((255*n.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>_(n.h,n.s,n.v,n.a)};return n}const C=t=>Math.max(Math.min(t,1),0);function x(t){const e={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},t),_keyboard(t){const{options:o}=e,{type:r,key:i}=t;if(document.activeElement===o.wrapper){const{lock:o}=e.options,n="ArrowUp"===i,s="ArrowRight"===i,a="ArrowDown"===i,c="ArrowLeft"===i;if("keydown"===r&&(n||s||a||c)){let r=0,i=0;"v"===o?r=n||s?1:-1:"h"===o?r=n||s?-1:1:(i=n?-1:a?1:0,r=c?-1:s?1:0),e.update(C(e.cache.x+.01*r),C(e.cache.y+.01*i)),t.preventDefault()}else i.startsWith("Arrow")&&(e.options.onstop(),t.preventDefault())}},_tapstart(t){i(document,["mouseup","touchend","touchcancel"],e._tapstop),i(document,["mousemove","touchmove"],e._tapmove),t.cancelable&&t.preventDefault(),e._tapmove(t)},_tapmove(t){const{options:o,cache:r}=e,{lock:i,element:n,wrapper:s}=o,a=s.getBoundingClientRect();let c=0,l=0;if(t){const e=t&&t.touches&&t.touches[0];c=t?(e||t).clientX:0,l=t?(e||t).clientY:0,ca.left+a.width&&(c=a.left+a.width),la.top+a.height&&(l=a.top+a.height),c-=a.left,l-=a.top}else r&&(c=r.x*a.width,l=r.y*a.height);"h"!==i&&(n.style.left=`calc(${c/a.width*100}% - ${n.offsetWidth/2}px)`),"v"!==i&&(n.style.top=`calc(${l/a.height*100}% - ${n.offsetHeight/2}px)`),e.cache={x:c/a.width,y:l/a.height};const p=C(c/a.width),h=C(l/a.height);switch(i){case"v":return o.onchange(p);case"h":return o.onchange(h);default:return o.onchange(p,h)}},_tapstop(){e.options.onstop(),n(document,["mouseup","touchend","touchcancel"],e._tapstop),n(document,["mousemove","touchmove"],e._tapmove)},trigger(){e._tapmove()},update(t=0,o=0){const{left:r,top:i,width:n,height:s}=e.options.wrapper.getBoundingClientRect();"h"===e.options.lock&&(o=t),e._tapmove({clientX:r+n*t,clientY:i+s*o})},destroy(){const{options:t,_tapstart:o,_keyboard:r}=e;n(document,["keydown","keyup"],r),n([t.wrapper,t.element],"mousedown",o),n([t.wrapper,t.element],"touchstart",o,{passive:!1})}},{options:o,_tapstart:r,_keyboard:s}=e;return i([o.wrapper,o.element],"mousedown",r),i([o.wrapper,o.element],"touchstart",r,{passive:!1}),i(document,["keydown","keyup"],s),e}function A(t={}){t=Object.assign({onchange:()=>0,className:"",elements:[]},t);const e=i(t.elements,"click",(e=>{t.elements.forEach((o=>o.classList[e.target===o?"add":"remove"](t.className))),t.onchange(e),e.stopPropagation()}));return{destroy:()=>n(...e)}}const S={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8},H=(t,e,o)=>{const{container:r,margin:i,position:n,variantFlipOrder:s,positionFlipOrder:a}={container:document.documentElement.getBoundingClientRect(),...S,...o},{left:c,top:l}=e.style;e.style.left="0",e.style.top="0";const p=t.getBoundingClientRect(),h=e.getBoundingClientRect(),u={t:p.top-h.height-i,b:p.bottom+i,r:p.right+i,l:p.left-h.width-i},d={vs:p.left,vm:p.left+p.width/2+-h.width/2,ve:p.left+p.width-h.width,hs:p.top,hm:p.bottom-p.height/2-h.height/2,he:p.bottom-h.height},[g,f="middle"]=n.split("-"),m=a[g],v=s[f],{top:b,left:k,bottom:w,right:y}=r;for(const t of m){const o="t"===t||"b"===t,r=u[t],[i,n]=o?["top","left"]:["left","top"],[s,a]=o?[h.height,h.width]:[h.width,h.height],[c,l]=o?[w,y]:[y,w],[p,g]=o?[b,k]:[k,b];if(!(rc))for(const s of v){const c=d[(o?"v":"h")+s];if(!(cl))return e.style[n]=c-h[n]+"px",e.style[i]=r-h[i]+"px",t+s}}return e.style.left=c,e.style.top=l,null};function V(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}class E{constructor(t){V(this,"_initializingActive",!0),V(this,"_recalc",!0),V(this,"_nanopop",null),V(this,"_root",null),V(this,"_color",_()),V(this,"_lastColor",_()),V(this,"_swatchColors",[]),V(this,"_setupAnimationFrame",null),V(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=t=Object.assign({...E.DEFAULT_OPTIONS},t);const{swatches:e,components:o,theme:r,sliders:i,lockOpacity:n,padding:s}=t;["nano","monolith"].includes(r)&&!i&&(t.sliders="h"),o.interaction||(o.interaction={});const{preview:a,opacity:c,hue:l,palette:p}=o;o.opacity=!n&&c,o.palette=p||a||c||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),e&&e.length&&e.forEach((t=>this.addSwatch(t)));const{button:h,app:u}=this._root;this._nanopop=((t,e,o)=>{const r="object"!=typeof t||t instanceof HTMLElement?{reference:t,popper:e,...o}:t;return{update(t=r){const{reference:e,popper:o}=Object.assign(r,t);if(!o||!e)throw new Error("Popper- or reference-element missing.");return H(e,o,r)}}})(h,u,{margin:s}),h.setAttribute("role","button"),h.setAttribute("aria-label",this._t("btn:toggle"));const d=this;this._setupAnimationFrame=requestAnimationFrame((function e(){if(!u.offsetWidth)return requestAnimationFrame(e);d.setColor(t.default),d._rePositioningPicker(),t.defaultRepresentation&&(d._representation=t.defaultRepresentation,d.setColorRepresentation(d._representation)),t.showAlways&&d.show(),d._initializingActive=!1,d._emit("init")}))}_preBuild(){const{options:t}=this;for(const e of["el","container"])t[e]=l(t[e]);this._root=(t=>{const{components:e,useAsButton:o,inline:r,appClass:i,theme:n,lockOpacity:s}=t.options,c=t=>t?"":'style="display:none" hidden',l=e=>t._t(e),p=a(`\n
\n\n ${o?"":''}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:x({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:x({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:x({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:A({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=y(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||E.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=_(...e),n=s(`'}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:C({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:C({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:C({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:x({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e)if(r=e[i].exec(t))switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{let[,t,,e,,n,,,s]=o(r);if(t="%"===r[2]?t/100*255:t,e="%"===r[4]?e/100*255:e,n="%"===r[6]?n/100*255:n,s="%"===r[9]?s/100:s,t>255||e>255||n>255||s<0||s>1)break t;return{values:[...v(t,e,n),s],a:s,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[...k(t,e,n),s],a:s,type:i}}case"hsva":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[t,e,n,s],a:s,type:i}}}return{values:null,type:null}}(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||S.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=y(...e),n=s(`
diff --git a/modules/backend/formwidgets/fileupload/partials/_image_multi.php b/modules/backend/formwidgets/fileupload/partials/_image_multi.php index fd916e08e..59364b0cd 100644 --- a/modules/backend/formwidgets/fileupload/partials/_image_multi.php +++ b/modules/backend/formwidgets/fileupload/partials/_image_multi.php @@ -36,7 +36,7 @@ class="field-fileupload style-image-multi is-sortable is-multi getEventHandler('onRemoveAttachment') ?>" data-request-confirm="" - data-request-data="file_id: id ?>" + data-request-data="file_id: 'id ?>'" >

sizeToString()) ?>

diff --git a/modules/backend/formwidgets/fileupload/partials/_image_single.php b/modules/backend/formwidgets/fileupload/partials/_image_single.php index b0c58ef86..cf5ce5c66 100644 --- a/modules/backend/formwidgets/fileupload/partials/_image_single.php +++ b/modules/backend/formwidgets/fileupload/partials/_image_single.php @@ -40,7 +40,7 @@ class="upload-button"> class="upload-remove-button" data-request="getEventHandler('onRemoveAttachment') ?>" data-request-confirm="" - data-request-data="file_id: id ?>" + data-request-data="file_id: 'id ?>'" >

sizeToString()) ?>

diff --git a/modules/backend/formwidgets/iconpicker/assets/js/dist/iconpicker.js b/modules/backend/formwidgets/iconpicker/assets/js/dist/iconpicker.js index 2760470e5..6f27b9199 100644 --- a/modules/backend/formwidgets/iconpicker/assets/js/dist/iconpicker.js +++ b/modules/backend/formwidgets/iconpicker/assets/js/dist/iconpicker.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[743],{595:function(e,i,t){var a=t(471);const o={class:"input-group"},d=["name"],n={key:0,class:"aim-modal aim-open"},l={class:"aim-modal--content"},r={class:"aim-modal--header"},c={class:"aim-modal--header-logo-area"},s={class:"aim-modal--header-logo-title"},m={class:"aim-modal--body"},p={class:"aim-modal--sidebar"},b={class:"aim-modal--sidebar-tabs"},u=["onClick"],h={class:"aim-sidebar-preview"},v={class:"aim-icon-item"},f={class:"aim-icon-item-inner"},x={class:"aim-icon-item-name"},g={class:"aim-modal--icon-preview-wrap"},w={class:"aim-modal--icon-search"},k=(e=>((0,a.pushScopeId)("data-v-5314cddb"),e=e(),(0,a.popScopeId)(),e))((()=>(0,a.createElementVNode)("i",{class:"icon-search"},null,-1))),y={class:"aim-modal--icon-preview-inner"},V={class:"aim-modal--icon-preview"},E=["onClick"],N={class:"aim-icon-item-inner"},P={class:"aim-icon-item-name"},z={class:"form-buttons normalized aim-modal--footer"};var O={inheritAttrs:!1,props:["label","propValue","name","fontLibraries"],data(){let e=this.propValue,i=e??"";const t=[{id:"all",title:"All Icons",icon:"fas icon-star-of-life",link:"all"}],a=[],o=[];return this.fontLibraries.forEach((e=>{t.push({id:e.id,title:e.title,icon:e.listicon,link:e}),a.push(e.prefix),o.push(...e.icons)})),-1===o.indexOf(e)&&(i=o[0]??""),{modelValue:e,activeGlyph:i,filterText:"",isVisible:!1,activeTab:t[0],prefixes:a,allGlyphs:o,tabs:t}},computed:{glyphs:{get(){let e=[];if(e="all"!==this.activeTab.id?this.activeTab.link.icons:this.allGlyphs,""!==this.filterText){const i=this.filterText.toLowerCase();e=e.filter((e=>e.includes(i)))}return e}}},methods:{setActiveGlyph(e){this.activeGlyph=e},isActiveGlyph(e){return this.activeGlyph===e},isActiveTab(e){return e===this.activeTab.id},setActiveTab(e){this.activeTab=e},getGlyphName:e=>e.replace(/f.. icon-/g,"").replaceAll("-"," "),insert(){this.modelValue=this.activeGlyph,this.isVisible=!1},togglePicker(){this.isVisible=!this.isVisible},closePicker(){this.isVisible=!1}}},C=t(62),A=t.n(C),T=t(780),j={insert:"head",singleton:!1};A()(T.Z,j),T.Z.locals;const S=(0,t(407).Z)(O,[["render",function(e,i,t,O,C,A){return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("span",{class:"input-group-addon",onClick:i[0]||(i[0]=function(){return A.togglePicker&&A.togglePicker(...arguments)}),style:{cursor:"pointer"}},[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(C.modelValue)},null,2)]),(0,a.withDirectives)((0,a.createElementVNode)("input",{type:"text",class:"form-control","onUpdate:modelValue":i[1]||(i[1]=e=>C.modelValue=e),name:t.name,onClick:i[2]||(i[2]=function(){return A.togglePicker&&A.togglePicker(...arguments)})},null,8,d),[[a.vModelText,C.modelValue]])]),C.isVisible?((0,a.openBlock)(),(0,a.createElementBlock)("div",n,[(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("div",c,[(0,a.createElementVNode)("span",s,(0,a.toDisplayString)(t.label),1)])]),(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("div",b,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(C.tabs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["aim-modal--sidebar-tab-item",{"aesthetic-active":A.isActiveTab(e.id)}]),"data-library-id":"all",key:e.id,onClick:i=>A.setActiveTab(e)},[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(e.icon)},null,2),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.title),1)],10,u)))),128))]),(0,a.createElementVNode)("div",h,[(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("div",f,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(C.activeGlyph)},null,2),(0,a.createElementVNode)("div",x,(0,a.toDisplayString)(A.getGlyphName(C.activeGlyph)),1)])])])]),(0,a.createElementVNode)("div",g,[(0,a.createElementVNode)("div",w,[(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":i[3]||(i[3]=e=>C.filterText=e),placeholder:"Filter by name..."},null,512),[[a.vModelText,C.filterText]]),k]),(0,a.createElementVNode)("div",y,[(0,a.createElementVNode)("div",V,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(A.glyphs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["aim-icon-item",{"aesthetic-selected":A.isActiveGlyph(e)}]),key:e,onClick:i=>A.setActiveGlyph(e)},[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(e)},null,2),(0,a.createElementVNode)("div",P,(0,a.toDisplayString)(A.getGlyphName(e)),1)])],10,E)))),128))])])])]),(0,a.createElementVNode)("div",z,[(0,a.createElementVNode)("button",{class:"btn btn-primary aim-insert-icon-button",onClick:i[4]||(i[4]=function(){return A.insert&&A.insert(...arguments)})},"Insert"),(0,a.createElementVNode)("button",{class:"btn btn-secondary no-margin-right",onClick:i[5]||(i[5]=function(){return A.closePicker&&A.closePicker(...arguments)})},"Close")])])])):(0,a.createCommentVNode)("",!0)],64)}],["__scopeId","data-v-5314cddb"]]);var G=S;function B(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,a)}return t}function D(e){for(var i=1;i{class i extends e.PluginBase{construct(e){this.element=e,this.config=this.snowboard.dataConfig(this,e),this.events={click:()=>this.showPicker()},this.iconPickerApp=null,this.input=e.querySelector("input"),this.attachEvents()}defaults(){return{eventHandler:null}}attachEvents(){this.element.querySelector(".input-group").addEventListener("click",this.events.click)}destruct(){this.iconPickerApp&&(this.iconPickerApp.unmount(),this.iconPickerApp=null),this.element.querySelector(".input-group").removeEventListener("click",this.events.click),this.element=null}showPicker(){this.snowboard.request(this.input,this.config.get("eventHandler"),{success:e=>{this.iconPickerApp=(0,a.createApp)(G,D(D({},this.element.dataset),{},{fontLibraries:JSON.parse(e.result)})).mount(this.element),this.iconPickerApp.togglePicker()}})}}e.addPlugin("backend.formwidgets.iconpicker",i),e["backend.ui.widgetHandler"]().register("iconpicker","backend.formwidgets.iconpicker")})(window.Snowboard)},780:function(e,i,t){var a=t(609),o=t.n(a)()((function(e){return e[1]}));o.push([e.id,'.vue3-icon-picker[data-v-5314cddb]{cursor:pointer}.input-group i[data-v-5314cddb]{display:block;min-width:14px}button.select-icon[data-v-5314cddb]{background-color:#70b2dc;border-radius:5px;cursor:pointer;font-size:22px;padding:20px}.icon-picker-wrap ul[data-v-5314cddb]{display:inline-flex;list-style:none;margin:0;padding:0}.icon-picker-wrap ul li[data-v-5314cddb]{border:2px solid #ddd;cursor:pointer;font-size:20px;line-height:1;padding:5px}.icon-picker-wrap ul li i[data-v-5314cddb]{font-size:68px;line-height:1;margin:0}.icon-picker-wrap ul li[data-v-5314cddb]:nth-child(2){border-left:0}.aim-close[data-v-5314cddb]{opacity:0;visibility:hidden}.aim-close[data-v-5314cddb],.aim-open[data-v-5314cddb]{transition:all .4s ease-in-out}.aim-open[data-v-5314cddb]{opacity:1;visibility:visible}.aim-modal[data-v-5314cddb]{align-items:center;background-color:rgba(0,0,0,.2);bottom:0;display:flex;height:100%;left:0;position:fixed;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:9999}.aim-modal .aim-modal--content[data-v-5314cddb]{background-color:#f1f3f5;border-radius:3px;box-shadow:2px 8px 23px 3px rgba(0,0,0,.2);font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:100%}.aim-modal .aim-modal--header[data-v-5314cddb]{align-items:center;background-color:#fff;box-shadow:0 0 8px rgba(0,0,0,.1);color:#405261;display:flex;font-size:15px;font-weight:600;justify-content:space-between;padding:15px;position:relative;z-index:1}.aim-modal--body[data-v-5314cddb]{box-sizing:border-box;display:flex;font-size:12px;height:700px;line-height:1.5;max-height:85vh;min-height:50px;overflow:auto;padding:0}.aim-modal--sidebar[data-v-5314cddb]{background-color:hsla(0,0%,100%,.3);display:flex;flex-flow:column;flex-shrink:0;width:25%}.aim-modal--sidebar-tabs[data-v-5314cddb]{margin-top:30px}.aim-modal--sidebar-tab-item[data-v-5314cddb]{align-items:center;color:#6d7882;cursor:pointer;display:flex;font-size:14px;padding:15px 0 15px 45px;position:relative;text-align:left;text-transform:capitalize}.aim-modal--sidebar-tab-item i[data-v-5314cddb]{color:#a4afb7;font-size:20px;padding-right:15px}.aim-modal--sidebar-tab-item.aesthetic-active[data-v-5314cddb]{background-color:#fff;box-shadow:0 6px 20px 0 rgba(0,0,0,.1)}.aim-modal--sidebar-tab-item.aesthetic-active[data-v-5314cddb]:after{background-color:#4ea5e0;content:"";height:100%;left:0;position:absolute;top:0;width:5px}.aim-modal--sidebar-tab-item.aesthetic-active i[data-v-5314cddb]{color:#4ea5e0}.aim-modal--icon-preview-wrap[data-v-5314cddb]{display:flex;flex-direction:column;padding:30px 20px 0;width:75%}.aim-modal--icon-preview-inner[data-v-5314cddb]{margin:25px -15px 0;overflow:auto;padding:0 15px 15px}.aim-modal--icon-preview[data-v-5314cddb]{grid-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);margin:10px 0}.aim-modal--icon-search[data-v-5314cddb]{position:relative}.aim-modal--icon-search input[data-v-5314cddb]{background-color:#fff;border:none;padding:8px 15px;width:100%}.aim-modal--icon-search input[data-v-5314cddb]::-moz-placeholder{font-style:italic}.aim-modal--icon-search input[data-v-5314cddb]::placeholder{font-style:italic}.aim-modal--icon-search i[data-v-5314cddb]{position:absolute;right:15px;top:50%;transform:translateY(-50%)}.aim-icon-item[data-v-5314cddb]{background-color:#fff;border-radius:3px;box-shadow:0 1px 12px rgba(0,0,0,.05);cursor:pointer;overflow:hidden;padding:10px;position:relative;transition:all .3s}.aim-icon-item[data-v-5314cddb]:hover{box-shadow:0 1px 14px rgba(0,0,0,.16)}.aim-icon-item.aesthetic-selected[data-v-5314cddb]{box-shadow:0 1px 12px rgba(0,0,0,.05),0 0 0 3px #4ea5e0}.aim-icon-item-inner[data-v-5314cddb]{align-items:center;display:flex;flex-direction:column;padding:1px}.aim-icon-item-inner i[data-v-5314cddb]{color:#95a5a6;font-size:30px;padding:20px}.aim-icon-item-name[data-v-5314cddb]{color:#666;font-size:13px;max-width:100%;overflow:hidden;padding-top:15px;text-align:center;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.aim-modal .aim-modal--footer[data-v-5314cddb]{background-color:#fff;border:none;box-shadow:0 0 8px rgba(0,0,0,.1);display:none;display:flex;justify-content:flex-end;padding:20px;position:relative;text-align:center}.aim-modal .aim-modal--footer .aesthetic-button[data-v-5314cddb]{height:40px;margin-left:5px}.aim-modal .aim-modal--footer .aesthetic-button-success[data-v-5314cddb]{color:#fff;font-size:15px;padding:12px 36px;width:auto}.aim-modal .aim-modal--footer .aesthetic-button-success[data-v-5314cddb]:hover{background-color:#39b54a}.aim-sidebar-preview[data-v-5314cddb]{margin-top:auto}.aim-sidebar-preview .aim-icon-item-inner i[data-v-5314cddb]{font-size:110px;padding-top:10px}.aim-sidebar-preview .aim-icon-item-name[data-v-5314cddb]{color:#666;font-size:16px;padding:0 0 15px}@media (max-width:1439px){.aim-modal .aim-modal--content[data-v-5314cddb]{max-width:990px}}@media (min-width:1440px){.aim-modal .aim-modal--content[data-v-5314cddb]{max-width:1200px}}@media (max-width:479px){.aim-modal--icon-preview-wrap[data-v-5314cddb]{width:100%}}@media (max-width:1024px){.aim-modal--icon-preview[data-v-5314cddb]{grid-template-columns:repeat(3,1fr)}}@media (max-width:767px){.aim-sidebar-preview .aim-icon-item-inner i[data-v-5314cddb]{font-size:70px}.aim-modal--icon-preview[data-v-5314cddb]{grid-template-columns:repeat(2,1fr)}}@media (max-width:479px){.aim-modal--sidebar[data-v-5314cddb]{display:none}}@media (max-width:1439px){.aim-modal--sidebar-tab-item[data-v-5314cddb]{font-size:11px;padding:15px 15px 15px 25px}.aim-modal--sidebar-tab-item i[data-v-5314cddb]{font-size:15px}}@media (max-width:1024px){.aim-modal--sidebar-tab-item i[data-v-5314cddb]{display:none}}',""]),i.Z=o}},function(e){e.O(0,[101],(function(){return i=595,e(e.s=i);var i}));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[102],{661:function(e,i,t){var a=t(35);const o={class:"input-group"},n=["name"],d={key:0,class:"aim-modal aim-open"},l={class:"aim-modal--content"},r={class:"aim-modal--header"},c={class:"aim-modal--header-logo-area"},s={class:"aim-modal--header-logo-title"},m={class:"aim-modal--body"},p={class:"aim-modal--sidebar"},b={class:"aim-modal--sidebar-tabs"},u=["onClick"],h={class:"aim-sidebar-preview"},v={class:"aim-icon-item"},f={class:"aim-icon-item-inner"},x={class:"aim-icon-item-name"},g={class:"aim-modal--icon-preview-wrap"},w={class:"aim-modal--icon-search"},k={class:"aim-modal--icon-preview-inner"},y={class:"aim-modal--icon-preview"},V=["onClick"],E={class:"aim-icon-item-inner"},N={class:"aim-icon-item-name"},P={class:"form-buttons normalized aim-modal--footer"};var z={inheritAttrs:!1,props:["label","propValue","name","fontLibraries"],data(){let e=this.propValue,i=e??"";const t=[{id:"all",title:"All Icons",icon:"fas icon-star-of-life",link:"all"}],a=[],o=[];return this.fontLibraries.forEach((e=>{t.push({id:e.id,title:e.title,icon:e.listicon,link:e}),a.push(e.prefix),o.push(...e.icons)})),-1===o.indexOf(e)&&(i=o[0]??""),{modelValue:e,activeGlyph:i,filterText:"",isVisible:!1,activeTab:t[0],prefixes:a,allGlyphs:o,tabs:t}},computed:{glyphs:{get(){let e=[];if(e="all"!==this.activeTab.id?this.activeTab.link.icons:this.allGlyphs,""!==this.filterText){const i=this.filterText.toLowerCase();e=e.filter((e=>e.includes(i)))}return e}}},methods:{setActiveGlyph(e){this.activeGlyph=e},isActiveGlyph(e){return this.activeGlyph===e},isActiveTab(e){return e===this.activeTab.id},setActiveTab(e){this.activeTab=e},getGlyphName:e=>e.replace(/f.. icon-/g,"").replaceAll("-"," "),insert(){this.modelValue=this.activeGlyph,this.isVisible=!1},togglePicker(){this.isVisible=!this.isVisible},closePicker(){this.isVisible=!1}}},A=t(591),O=t.n(A),C=t(228),T={insert:"head",singleton:!1};O()(C.A,T),C.A.locals;const j=(0,t(433).A)(z,[["render",function(e,i,t,z,A,O){return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("span",{class:"input-group-addon",onClick:i[0]||(i[0]=function(){return O.togglePicker&&O.togglePicker(...arguments)}),style:{cursor:"pointer"}},[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(A.modelValue)},null,2)]),(0,a.withDirectives)((0,a.createElementVNode)("input",{type:"text",class:"form-control","onUpdate:modelValue":i[1]||(i[1]=e=>A.modelValue=e),name:t.name,onClick:i[2]||(i[2]=function(){return O.togglePicker&&O.togglePicker(...arguments)})},null,8,n),[[a.vModelText,A.modelValue]])]),A.isVisible?((0,a.openBlock)(),(0,a.createElementBlock)("div",d,[(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("div",c,[(0,a.createElementVNode)("span",s,(0,a.toDisplayString)(t.label),1)])]),(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("div",b,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(A.tabs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["aim-modal--sidebar-tab-item",{"aesthetic-active":O.isActiveTab(e.id)}]),"data-library-id":"all",key:e.id,onClick:i=>O.setActiveTab(e)},[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(e.icon)},null,2),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.title),1)],10,u)))),128))]),(0,a.createElementVNode)("div",h,[(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("div",f,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(A.activeGlyph)},null,2),(0,a.createElementVNode)("div",x,(0,a.toDisplayString)(O.getGlyphName(A.activeGlyph)),1)])])])]),(0,a.createElementVNode)("div",g,[(0,a.createElementVNode)("div",w,[(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":i[3]||(i[3]=e=>A.filterText=e),placeholder:"Filter by name..."},null,512),[[a.vModelText,A.filterText]]),i[6]||(i[6]=(0,a.createElementVNode)("i",{class:"icon-search"},null,-1))]),(0,a.createElementVNode)("div",k,[(0,a.createElementVNode)("div",y,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(O.glyphs,(e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["aim-icon-item",{"aesthetic-selected":O.isActiveGlyph(e)}]),key:e,onClick:i=>O.setActiveGlyph(e)},[(0,a.createElementVNode)("div",E,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(e)},null,2),(0,a.createElementVNode)("div",N,(0,a.toDisplayString)(O.getGlyphName(e)),1)])],10,V)))),128))])])])]),(0,a.createElementVNode)("div",P,[(0,a.createElementVNode)("button",{class:"btn btn-primary aim-insert-icon-button",onClick:i[4]||(i[4]=function(){return O.insert&&O.insert(...arguments)})},"Insert"),(0,a.createElementVNode)("button",{class:"btn btn-secondary no-margin-right",onClick:i[5]||(i[5]=function(){return O.closePicker&&O.closePicker(...arguments)})},"Close")])])])):(0,a.createCommentVNode)("",!0)],64)}],["__scopeId","data-v-5314cddb"]]);var G=j;function B(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,a)}return t}function S(e){for(var i=1;i{class i extends e.PluginBase{construct(e){this.element=e,this.config=this.snowboard.dataConfig(this,e),this.events={click:()=>this.showPicker()},this.iconPickerApp=null,this.input=e.querySelector("input"),this.attachEvents()}defaults(){return{eventHandler:null}}attachEvents(){this.element.querySelector(".input-group").addEventListener("click",this.events.click)}destruct(){this.iconPickerApp&&(this.iconPickerApp.unmount(),this.iconPickerApp=null),this.element.querySelector(".input-group").removeEventListener("click",this.events.click),this.element=null}showPicker(){this.snowboard.request(this.input,this.config.get("eventHandler"),{success:e=>{this.iconPickerApp=(0,a.createApp)(G,S(S({},this.element.dataset),{},{fontLibraries:JSON.parse(e.result)})).mount(this.element),this.iconPickerApp.togglePicker()}})}}e.addPlugin("backend.formwidgets.iconpicker",i),e["backend.ui.widgetHandler"]().register("iconpicker","backend.formwidgets.iconpicker")})(window.Snowboard)},228:function(e,i,t){var a=t(935),o=t.n(a)()((function(e){return e[1]}));o.push([e.id,'.vue3-icon-picker[data-v-5314cddb]{cursor:pointer}.input-group i[data-v-5314cddb]{display:block;min-width:14px}button.select-icon[data-v-5314cddb]{background-color:#70b2dc;border-radius:5px;cursor:pointer;font-size:22px;padding:20px}.icon-picker-wrap ul[data-v-5314cddb]{display:inline-flex;list-style:none;margin:0;padding:0}.icon-picker-wrap ul li[data-v-5314cddb]{border:2px solid #ddd;cursor:pointer;font-size:20px;line-height:1;padding:5px}.icon-picker-wrap ul li i[data-v-5314cddb]{font-size:68px;line-height:1;margin:0}.icon-picker-wrap ul li[data-v-5314cddb]:nth-child(2){border-left:0}.aim-close[data-v-5314cddb]{opacity:0;visibility:hidden}.aim-close[data-v-5314cddb],.aim-open[data-v-5314cddb]{transition:all .4s ease-in-out}.aim-open[data-v-5314cddb]{opacity:1;visibility:visible}.aim-modal[data-v-5314cddb]{align-items:center;background-color:rgba(0,0,0,.2);bottom:0;display:flex;height:100%;left:0;position:fixed;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:9999}.aim-modal .aim-modal--content[data-v-5314cddb]{background-color:#f1f3f5;border-radius:3px;box-shadow:2px 8px 23px 3px rgba(0,0,0,.2);font-family:Roboto,Arial,Helvetica,Verdana,sans-serif;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:100%}.aim-modal .aim-modal--header[data-v-5314cddb]{align-items:center;background-color:#fff;box-shadow:0 0 8px rgba(0,0,0,.1);color:#405261;display:flex;font-size:15px;font-weight:600;justify-content:space-between;padding:15px;position:relative;z-index:1}.aim-modal--body[data-v-5314cddb]{box-sizing:border-box;display:flex;font-size:12px;height:700px;line-height:1.5;max-height:85vh;min-height:50px;overflow:auto;padding:0}.aim-modal--sidebar[data-v-5314cddb]{background-color:hsla(0,0%,100%,.3);display:flex;flex-flow:column;flex-shrink:0;width:25%}.aim-modal--sidebar-tabs[data-v-5314cddb]{margin-top:30px}.aim-modal--sidebar-tab-item[data-v-5314cddb]{align-items:center;color:#6d7882;cursor:pointer;display:flex;font-size:14px;padding:15px 0 15px 45px;position:relative;text-align:left;text-transform:capitalize}.aim-modal--sidebar-tab-item i[data-v-5314cddb]{color:#a4afb7;font-size:20px;padding-right:15px}.aim-modal--sidebar-tab-item.aesthetic-active[data-v-5314cddb]{background-color:#fff;box-shadow:0 6px 20px 0 rgba(0,0,0,.1)}.aim-modal--sidebar-tab-item.aesthetic-active[data-v-5314cddb]:after{background-color:#4ea5e0;content:"";height:100%;left:0;position:absolute;top:0;width:5px}.aim-modal--sidebar-tab-item.aesthetic-active i[data-v-5314cddb]{color:#4ea5e0}.aim-modal--icon-preview-wrap[data-v-5314cddb]{display:flex;flex-direction:column;padding:30px 20px 0;width:75%}.aim-modal--icon-preview-inner[data-v-5314cddb]{margin:25px -15px 0;overflow:auto;padding:0 15px 15px}.aim-modal--icon-preview[data-v-5314cddb]{grid-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);margin:10px 0}.aim-modal--icon-search[data-v-5314cddb]{position:relative}.aim-modal--icon-search input[data-v-5314cddb]{background-color:#fff;border:none;padding:8px 15px;width:100%}.aim-modal--icon-search input[data-v-5314cddb]::-moz-placeholder{font-style:italic}.aim-modal--icon-search input[data-v-5314cddb]::placeholder{font-style:italic}.aim-modal--icon-search i[data-v-5314cddb]{position:absolute;right:15px;top:50%;transform:translateY(-50%)}.aim-icon-item[data-v-5314cddb]{background-color:#fff;border-radius:3px;box-shadow:0 1px 12px rgba(0,0,0,.05);cursor:pointer;overflow:hidden;padding:10px;position:relative;transition:all .3s}.aim-icon-item[data-v-5314cddb]:hover{box-shadow:0 1px 14px rgba(0,0,0,.16)}.aim-icon-item.aesthetic-selected[data-v-5314cddb]{box-shadow:0 1px 12px rgba(0,0,0,.05),0 0 0 3px #4ea5e0}.aim-icon-item-inner[data-v-5314cddb]{align-items:center;display:flex;flex-direction:column;padding:1px}.aim-icon-item-inner i[data-v-5314cddb]{color:#95a5a6;font-size:30px;padding:20px}.aim-icon-item-name[data-v-5314cddb]{color:#666;font-size:13px;max-width:100%;overflow:hidden;padding-top:15px;text-align:center;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.aim-modal .aim-modal--footer[data-v-5314cddb]{background-color:#fff;border:none;box-shadow:0 0 8px rgba(0,0,0,.1);display:none;display:flex;justify-content:flex-end;padding:20px;position:relative;text-align:center}.aim-modal .aim-modal--footer .aesthetic-button[data-v-5314cddb]{height:40px;margin-left:5px}.aim-modal .aim-modal--footer .aesthetic-button-success[data-v-5314cddb]{color:#fff;font-size:15px;padding:12px 36px;width:auto}.aim-modal .aim-modal--footer .aesthetic-button-success[data-v-5314cddb]:hover{background-color:#39b54a}.aim-sidebar-preview[data-v-5314cddb]{margin-top:auto}.aim-sidebar-preview .aim-icon-item-inner i[data-v-5314cddb]{font-size:110px;padding-top:10px}.aim-sidebar-preview .aim-icon-item-name[data-v-5314cddb]{color:#666;font-size:16px;padding:0 0 15px}@media (max-width:1439px){.aim-modal .aim-modal--content[data-v-5314cddb]{max-width:990px}}@media (min-width:1440px){.aim-modal .aim-modal--content[data-v-5314cddb]{max-width:1200px}}@media (max-width:479px){.aim-modal--icon-preview-wrap[data-v-5314cddb]{width:100%}}@media (max-width:1024px){.aim-modal--icon-preview[data-v-5314cddb]{grid-template-columns:repeat(3,1fr)}}@media (max-width:767px){.aim-sidebar-preview .aim-icon-item-inner i[data-v-5314cddb]{font-size:70px}.aim-modal--icon-preview[data-v-5314cddb]{grid-template-columns:repeat(2,1fr)}}@media (max-width:479px){.aim-modal--sidebar[data-v-5314cddb]{display:none}}@media (max-width:1439px){.aim-modal--sidebar-tab-item[data-v-5314cddb]{font-size:11px;padding:15px 15px 15px 25px}.aim-modal--sidebar-tab-item i[data-v-5314cddb]{font-size:15px}}@media (max-width:1024px){.aim-modal--sidebar-tab-item i[data-v-5314cddb]{display:none}}',""]),i.A=o}},function(e){e.O(0,[429],(function(){return i=661,e(e.s=i);var i}));e.O()}]); \ No newline at end of file diff --git a/modules/backend/formwidgets/recordfinder/partials/_recordfinder.php b/modules/backend/formwidgets/recordfinder/partials/_recordfinder.php index b9075287e..3ad24d971 100644 --- a/modules/backend/formwidgets/recordfinder/partials/_recordfinder.php +++ b/modules/backend/formwidgets/recordfinder/partials/_recordfinder.php @@ -10,7 +10,13 @@ class="field-recordfinder loading-indicator-container size-input-text" data-control="recordfinder" data-refresh-handler="getEventHandler('onRefresh') ?>" data-data-locker="#getId() ?>"> - > + + data-control="popup" + data-size="huge" + data-handler="getEventHandler('onFindRecord') ?>" + data-request-data="recordfinder_flag: 1" + > @@ -25,7 +31,7 @@ class="field-recordfinder loading-indicator-container size-input-text"