From aad4c31ec3f98140ccdf9923fbae4a2cce6ebe00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Popowicz?= Date: Thu, 19 Dec 2024 14:25:39 +0100 Subject: [PATCH 1/2] feat: add support to Nova 5 --- composer.json | 7 +- composer.lock | 2588 ++++++++++++++++----------------- workbench/app/Models/Page.php | 2 +- 3 files changed, 1291 insertions(+), 1306 deletions(-) diff --git a/composer.json b/composer.json index 31112f6..a2450bb 100644 --- a/composer.json +++ b/composer.json @@ -33,8 +33,8 @@ "php": "^8.0", "ext-json": "*", "james-heinrich/getid3": "^1.9", - "laravel/nova": "^4.0", - "nova-kit/nova-packages-tool": "^1.3.1", + "laravel/nova": "^4.0 || ^5.0", + "nova-kit/nova-packages-tool": "^1.3.1 || ^2.0", "pion/laravel-chunk-upload": "^1.5", "spatie/invade": "^1.0 || ^2.0" }, @@ -49,8 +49,7 @@ "pestphp/pest": "^1.21 || ^2.0", "pestphp/pest-plugin-laravel": "^1.2 || ^2.0", "pestphp/pest-plugin-mock": "^1.0 || ^2.0", - "spatie/laravel-ray": "^1.29", - "whitecube/nova-flexible-content": "^1.1" + "spatie/laravel-ray": "^1.29" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 6b7a8f4..77febb0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,29 +4,83 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c5195854bca8d1ae70d2dca6d04ba8c0", + "content-hash": "d5b2d1c553a452f6844705475bbbb4a3", "packages": [ + { + "name": "bacon/bacon-qr-code", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/Bacon/BaconQrCode.git", + "reference": "f9cc1f52b5a463062251d666761178dbdb6b544f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/f9cc1f52b5a463062251d666761178dbdb6b544f", + "reference": "f9cc1f52b5a463062251d666761178dbdb6b544f", + "shasum": "" + }, + "require": { + "dasprid/enum": "^1.0.3", + "ext-iconv": "*", + "php": "^8.1" + }, + "require-dev": { + "phly/keep-a-changelog": "^2.12", + "phpunit/phpunit": "^10.5.11 || 11.0.4", + "spatie/phpunit-snapshot-assertions": "^5.1.5", + "squizlabs/php_codesniffer": "^3.9" + }, + "suggest": { + "ext-imagick": "to generate QR code images" + }, + "type": "library", + "autoload": { + "psr-4": { + "BaconQrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "BaconQrCode is a QR code generator for PHP.", + "homepage": "https://github.com/Bacon/BaconQrCode", + "support": { + "issues": "https://github.com/Bacon/BaconQrCode/issues", + "source": "https://github.com/Bacon/BaconQrCode/tree/v3.0.1" + }, + "time": "2024-10-01T13:55:55+00:00" + }, { "name": "brick/math", - "version": "0.11.0", + "version": "0.12.1", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" + "reference": "f510c0a40911935b77b86859eb5223d58d660df1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", - "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", + "url": "https://api.github.com/repos/brick/math/zipball/f510c0a40911935b77b86859eb5223d58d660df1", + "reference": "f510c0a40911935b77b86859eb5223d58d660df1", "shasum": "" }, "require": { - "php": "^8.0" + "php": "^8.1" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^9.0", - "vimeo/psalm": "5.0.0" + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "5.16.0" }, "type": "library", "autoload": { @@ -46,12 +100,17 @@ "arithmetic", "bigdecimal", "bignum", + "bignumber", "brick", - "math" + "decimal", + "integer", + "math", + "mathematics", + "rational" ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.11.0" + "source": "https://github.com/brick/math/tree/0.12.1" }, "funding": [ { @@ -59,34 +118,33 @@ "type": "github" } ], - "time": "2023-01-15T23:15:59+00:00" + "time": "2023-11-29T23:19:16+00:00" }, { "name": "brick/money", - "version": "0.8.1", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/brick/money.git", - "reference": "25f484a347756b7f3fbe7ad63ed9ad2d87b20004" + "reference": "08b0198a05c6eeac416486da053cbdc02ddff56c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/money/zipball/25f484a347756b7f3fbe7ad63ed9ad2d87b20004", - "reference": "25f484a347756b7f3fbe7ad63ed9ad2d87b20004", + "url": "https://api.github.com/repos/brick/money/zipball/08b0198a05c6eeac416486da053cbdc02ddff56c", + "reference": "08b0198a05c6eeac416486da053cbdc02ddff56c", "shasum": "" }, "require": { - "brick/math": "~0.10.1 || ~0.11.0", - "ext-json": "*", - "php": "^8.0" + "brick/math": "~0.12.0", + "php": "^8.1" }, "require-dev": { - "brick/varexporter": "~0.3.0", + "brick/varexporter": "~0.4.0", "ext-dom": "*", "ext-pdo": "*", "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^9.4.3", - "vimeo/psalm": "5.14.1" + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "5.26.1" }, "suggest": { "ext-intl": "Required to format Money objects" @@ -109,7 +167,7 @@ ], "support": { "issues": "https://github.com/brick/money/issues", - "source": "https://github.com/brick/money/tree/0.8.1" + "source": "https://github.com/brick/money/tree/0.10.0" }, "funding": [ { @@ -117,30 +175,30 @@ "type": "github" } ], - "time": "2023-09-23T21:17:11+00:00" + "time": "2024-10-12T21:33:29+00:00" }, { "name": "carbonphp/carbon-doctrine-types", - "version": "3.2.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^7.4 || ^8.0" }, "conflict": { - "doctrine/dbal": "<4.0.0 || >=5.0.0" + "doctrine/dbal": "<3.7.0 || >=4.0.0" }, "require-dev": { - "doctrine/dbal": "^4.0.0", + "doctrine/dbal": "^3.7.0", "nesbot/carbon": "^2.71.0 || ^3.0.0", "phpunit/phpunit": "^10.3" }, @@ -170,7 +228,7 @@ ], "support": { "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", - "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/2.1.0" }, "funding": [ { @@ -186,7 +244,57 @@ "type": "tidelift" } ], - "time": "2024-02-09T16:56:22+00:00" + "time": "2023-12-11T17:09:12+00:00" + }, + { + "name": "dasprid/enum", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/8dfd07c6d2cf31c8da90c53b83c026c7696dda90", + "reference": "8dfd07c6d2cf31c8da90c53b83c026c7696dda90", + "shasum": "" + }, + "require": { + "php": ">=7.1 <9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7 || ^8 || ^9 || ^10 || ^11", + "squizlabs/php_codesniffer": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "support": { + "issues": "https://github.com/DASPRiD/Enum/issues", + "source": "https://github.com/DASPRiD/Enum/tree/1.0.6" + }, + "time": "2024-08-09T14:30:48+00:00" }, { "name": "dflydev/dot-access-data", @@ -263,161 +371,6 @@ }, "time": "2024-07-08T12:26:09+00:00" }, - { - "name": "doctrine/dbal", - "version": "4.2.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/dbal.git", - "reference": "dadd35300837a3a2184bd47d403333b15d0a9bd0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/dadd35300837a3a2184bd47d403333b15d0a9bd0", - "reference": "dadd35300837a3a2184bd47d403333b15d0a9bd0", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^0.5.3|^1", - "php": "^8.1", - "psr/cache": "^1|^2|^3", - "psr/log": "^1|^2|^3" - }, - "require-dev": { - "doctrine/coding-standard": "12.0.0", - "fig/log-test": "^1", - "jetbrains/phpstorm-stubs": "2023.2", - "phpstan/phpstan": "1.12.6", - "phpstan/phpstan-phpunit": "1.4.0", - "phpstan/phpstan-strict-rules": "^1.6", - "phpunit/phpunit": "10.5.30", - "psalm/plugin-phpunit": "0.19.0", - "slevomat/coding-standard": "8.13.1", - "squizlabs/php_codesniffer": "3.10.2", - "symfony/cache": "^6.3.8|^7.0", - "symfony/console": "^5.4|^6.3|^7.0", - "vimeo/psalm": "5.25.0" - }, - "suggest": { - "symfony/console": "For helpful console commands such as SQL execution and import of files." - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\DBAL\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - } - ], - "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", - "homepage": "https://www.doctrine-project.org/projects/dbal.html", - "keywords": [ - "abstraction", - "database", - "db2", - "dbal", - "mariadb", - "mssql", - "mysql", - "oci8", - "oracle", - "pdo", - "pgsql", - "postgresql", - "queryobject", - "sasql", - "sql", - "sqlite", - "sqlserver", - "sqlsrv" - ], - "support": { - "issues": "https://github.com/doctrine/dbal/issues", - "source": "https://github.com/doctrine/dbal/tree/4.2.1" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal", - "type": "tidelift" - } - ], - "time": "2024-10-10T18:01:27+00:00" - }, - { - "name": "doctrine/deprecations", - "version": "1.1.3", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.3" - }, - "time": "2024-01-30T19:34:25+00:00" - }, { "name": "doctrine/inflector", "version": "2.0.10", @@ -939,28 +892,29 @@ }, { "name": "inertiajs/inertia-laravel", - "version": "v1.3.0", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/inertiajs/inertia-laravel.git", - "reference": "36730d13b1dab9017069004fd458b3e67449a326" + "reference": "0259e37f802bc39c814c42ba92c04ada17921f70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/36730d13b1dab9017069004fd458b3e67449a326", - "reference": "36730d13b1dab9017069004fd458b3e67449a326", + "url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/0259e37f802bc39c814c42ba92c04ada17921f70", + "reference": "0259e37f802bc39c814c42ba92c04ada17921f70", "shasum": "" }, "require": { "ext-json": "*", - "laravel/framework": "^8.74|^9.0|^10.0|^11.0", - "php": "^7.3|~8.0.0|~8.1.0|~8.2.0|~8.3.0", - "symfony/console": "^5.3|^6.0|^7.0" + "laravel/framework": "^10.0|^11.0", + "php": "^8.1.0", + "symfony/console": "^6.2|^7.0" }, "require-dev": { + "laravel/pint": "^1.16", "mockery/mockery": "^1.3.3", - "orchestra/testbench": "^6.4|^7.0|^8.0|^9.0", - "phpunit/phpunit": "^8.0|^9.5.8|^10.4", + "orchestra/testbench": "^8.0|^9.2", + "phpunit/phpunit": "^10.4|^11.0", "roave/security-advisories": "dev-master" }, "suggest": { @@ -972,9 +926,6 @@ "providers": [ "Inertia\\ServiceProvider" ] - }, - "branch-alias": { - "dev-master": "1.x-dev" } }, "autoload": { @@ -1003,7 +954,7 @@ ], "support": { "issues": "https://github.com/inertiajs/inertia-laravel/issues", - "source": "https://github.com/inertiajs/inertia-laravel/tree/v1.3.0" + "source": "https://github.com/inertiajs/inertia-laravel/tree/v2.0.0" }, "funding": [ { @@ -1011,7 +962,7 @@ "type": "github" } ], - "time": "2024-06-13T01:25:09+00:00" + "time": "2024-12-13T02:48:29+00:00" }, { "name": "james-heinrich/getid3", @@ -1080,22 +1031,87 @@ }, "time": "2023-10-19T13:18:49+00:00" }, + { + "name": "laravel/fortify", + "version": "v1.25.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/fortify.git", + "reference": "5022e7c01385fd6edcef91c12b19071f8f20d6d8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/fortify/zipball/5022e7c01385fd6edcef91c12b19071f8f20d6d8", + "reference": "5022e7c01385fd6edcef91c12b19071f8f20d6d8", + "shasum": "" + }, + "require": { + "bacon/bacon-qr-code": "^3.0", + "ext-json": "*", + "illuminate/support": "^10.0|^11.0", + "php": "^8.1", + "pragmarx/google2fa": "^8.0", + "symfony/console": "^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^8.16|^9.0", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.4" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Fortify\\FortifyServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Fortify\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Backend controllers and scaffolding for Laravel authentication.", + "keywords": [ + "auth", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/fortify/issues", + "source": "https://github.com/laravel/fortify" + }, + "time": "2024-11-27T14:51:15+00:00" + }, { "name": "laravel/framework", - "version": "v10.23.1", + "version": "v10.48.25", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "dbfd495557678759153e8d71cc2f6027686ca51e" + "reference": "f132b23b13909cc22c615c01b0c5640541c3da0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/dbfd495557678759153e8d71cc2f6027686ca51e", - "reference": "dbfd495557678759153e8d71cc2f6027686ca51e", + "url": "https://api.github.com/repos/laravel/framework/zipball/f132b23b13909cc22c615c01b0c5640541c3da0c", + "reference": "f132b23b13909cc22c615c01b0c5640541c3da0c", "shasum": "" }, "require": { - "brick/math": "^0.9.3|^0.10.2|^0.11", + "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", "composer-runtime-api": "^2.2", "doctrine/inflector": "^2.0.5", "dragonmantank/cron-expression": "^3.3.2", @@ -1109,7 +1125,7 @@ "ext-tokenizer": "*", "fruitcake/php-cors": "^1.2", "guzzlehttp/uri-template": "^1.0", - "laravel/prompts": "^0.1", + "laravel/prompts": "^0.1.9", "laravel/serializable-closure": "^1.3", "league/commonmark": "^2.2.1", "league/flysystem": "^3.8.0", @@ -1124,7 +1140,7 @@ "symfony/console": "^6.2", "symfony/error-handler": "^6.2", "symfony/finder": "^6.2", - "symfony/http-foundation": "^6.2", + "symfony/http-foundation": "^6.4", "symfony/http-kernel": "^6.2", "symfony/mailer": "^6.2", "symfony/mime": "^6.2", @@ -1137,6 +1153,10 @@ "voku/portable-ascii": "^2.0" }, "conflict": { + "carbonphp/carbon-doctrine-types": ">=3.0", + "doctrine/dbal": ">=4.0", + "mockery/mockery": "1.6.8", + "phpunit/phpunit": ">=11.0.0", "tightenco/collect": "<5.5.33" }, "provide": { @@ -1191,13 +1211,15 @@ "league/flysystem-read-only": "^3.3", "league/flysystem-sftp-v3": "^3.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^8.10", + "nyholm/psr7": "^1.2", + "orchestra/testbench-core": "^8.23.4", "pda/pheanstalk": "^4.0", - "phpstan/phpstan": "^1.4.7", + "phpstan/phpstan": "~1.11.11", "phpunit/phpunit": "^10.0.7", "predis/predis": "^2.0.2", "symfony/cache": "^6.2", - "symfony/http-client": "^6.2.4" + "symfony/http-client": "^6.2.4", + "symfony/psr-http-message-bridge": "^2.0" }, "suggest": { "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", @@ -1246,6 +1268,7 @@ "files": [ "src/Illuminate/Collections/helpers.php", "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", "src/Illuminate/Foundation/helpers.php", "src/Illuminate/Support/helpers.php" ], @@ -1278,56 +1301,57 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2023-09-13T14:51:46+00:00" + "time": "2024-11-26T15:32:57+00:00" }, { "name": "laravel/nova", - "version": "4.35.3", + "version": "5.0.3", "source": { "type": "git", "url": "git@github.com:laravel/nova.git", - "reference": "0122d85b87a3deead74bc5124f5af3ae10e1bb4f" + "reference": "93bc55ecf917280db1aad978b314d2078be5ede2" }, "dist": { "type": "zip", - "url": "https://nova.laravel.com/dist/laravel/nova/laravel-nova-0122d85b87a3deead74bc5124f5af3ae10e1bb4f-zip-a6c05b.zip", - "reference": "0122d85b87a3deead74bc5124f5af3ae10e1bb4f", - "shasum": "e5d547172ffc5f7034ab8ee08319297c6b0a3452" + "url": "https://nova.laravel.com/dist/laravel/nova/laravel-nova-93bc55ecf917280db1aad978b314d2078be5ede2-zip-7f5d60.zip", + "reference": "93bc55ecf917280db1aad978b314d2078be5ede2", + "shasum": "6dd4270cc42b51b1e7beb833201b507bd3492870" }, "require": { - "brick/money": "^0.5|^0.6|^0.7|^0.8|^0.9", - "doctrine/dbal": "^2.13.3|^3.1.2|^4.0", + "brick/money": "^0.8|^0.9|^0.10", "ext-json": "*", - "illuminate/support": "^8.83.4|^9.3.1|^10.0|^11.0", - "inertiajs/inertia-laravel": "^0.4.5|^0.5.2|^0.6.0|^1.0", - "laravel/ui": "^3.3|^4.0", - "nesbot/carbon": "^2.53.1|^3.0", - "php": "^7.3|^8.0", - "rap2hpoutre/fast-excel": "^3.2|^4.1|^5.0", - "spatie/once": "^1.1|^2.0|^3.0", - "symfony/console": "^5.4|^6.0|^7.0", - "symfony/finder": "^5.4|^6.0|^7.0", - "symfony/polyfill-intl-icu": "^1.22.1", - "symfony/process": "^5.4|^6.0|^7.0" + "illuminate/support": "^10.48.23|^11.35", + "inertiajs/inertia-laravel": "^1.3.2|^2.0", + "laravel/fortify": "^1.24.5", + "nesbot/carbon": "^2.62.1|^3.4", + "php": "^8.1", + "rap2hpoutre/fast-excel": "^5.4", + "spatie/once": "^3.0", + "symfony/console": "^6.4.14|^7.0.3", + "symfony/finder": "^6.4.13|^7.0.3", + "symfony/polyfill-intl-icu": "^1.31", + "symfony/polyfill-php83": "^1.31", + "symfony/polyfill-php84": "^1.31", + "symfony/process": "^6.4.14|^7.0.3" }, "require-dev": { - "larastan/larastan": "^1.0.1|^2.5.1", - "laravel/nova-dusk-suite": "8.4.x-dev|9.4.x-dev|10.4.x-dev|11.4.x-dev", - "laravel/pint": "^1.6", - "laravel/scout": "^9.8|^10.0", - "mockery/mockery": "^1.4.4", - "orchestra/testbench-dusk": "^6.44|^7.40|^8.22|^9.0", - "phpunit/phpunit": "^9.6|^10.5", - "predis/predis": "^1.1.9|^2.0.2" + "doctrine/dbal": "^3.5.1|^4.0", + "larastan/larastan": "^2.5.1", + "laravel/pint": "^1.17", + "laravel/scout": "^10.11", + "orchestra/testbench-core": "^8.30|^9.7", + "orchestra/testbench-dusk": "^8.32|^9.10", + "orchestra/workbench": "^8.13|^9.9", + "phpstan/phpstan": "^1.12", + "phpunit/phpunit": "^10.5.35|^11.3.5", + "predis/predis": "^2.3", + "spatie/laravel-ray": "^1.39" }, "suggest": { "ext-intl": "Required to format Currency field" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - }, "laravel": { "providers": [ "Laravel\\Nova\\NovaCoreServiceProvider" @@ -1344,47 +1368,86 @@ }, "autoload-dev": { "psr-4": { - "Laravel\\Nova\\Tests\\": "tests/" - } + "Laravel\\Nova\\Tests\\": "tests/", + "App\\": "workbench/app/", + "Database\\Factories\\": "workbench/database/factories/", + "Database\\Seeders\\": "workbench/database/seeders/", + "NovaComponents\\CustomField\\": "workbench/nova-components/CustomField/src/", + "NovaComponents\\IconsViewer\\": "workbench/nova-components/IconsViewer/src/", + "NovaComponents\\RememberTokenCopier\\": "workbench/nova-components/RememberTokenCopier/src/", + "NovaComponents\\ResourceTool\\": "workbench/nova-components/ResourceTool/src/", + "NovaComponents\\SidebarTool\\": "workbench/nova-components/SidebarTool/src/", + "Testbench\\App\\": "tests/laravel/app/", + "Testbench\\Database\\Factories\\": "tests/laravel/database/factories/" + }, + "files": [ + "workbench/app/functions.php" + ] }, "scripts": { - "post-autoload-dump": [ - "@clear", + "post-update-cmd": [ "@php vendor/bin/dusk-updater detect --auto-update --ansi", - "@php vendor/bin/testbench-dusk package:discover --ansi" + "@dusk:prepare", + "@sync" ], "clear": [ "@php vendor/bin/testbench-dusk package:purge-skeleton --ansi", "@php vendor/bin/testbench-dusk package:dusk-purge --ansi" ], - "dusk:prepare": [ - "@php -r \"file_exists('phpunit.dusk.xml') || copy('phpunit.dusk.xml.dist', 'phpunit.dusk.xml'); \"", - "@php -r \"if (file_exists('workbench/.env.dusk')) { copy('workbench/.env.dusk', 'vendor/laravel/nova-dusk-suite/.env'); } else { copy('workbench/.env.dusk.example', 'vendor/laravel/nova-dusk-suite/.env'); }\"" - ], - "dusk:dev-assets": [ + "build:dev-assets": [ "TAILWIND_MODE=build npm run dev", - "@php vendor/bin/testbench-dusk nova:publish --force --ansi" + "@sync" ], - "dusk:assets": [ + "build:assets": [ "TAILWIND_MODE=build npm run prod", + "@sync" + ], + "sync": [ + "@php vendor/bin/testbench-dusk package:sync-skeleton --ansi", + "@php vendor/bin/testbench-dusk package:discover --ansi", "@php vendor/bin/testbench-dusk nova:publish --force --ansi" ], - "dusk:test": [ + "dusk:prepare": [ + "@clear", + "@php vendor/bin/testbench workbench:drop-sqlite-db --ansi", + "@php -r \"file_exists('phpunit.dusk.xml') || copy('phpunit.dusk.xml.dist', 'phpunit.dusk.xml'); \"", "@php vendor/bin/testbench-dusk package:dusk-purge --ansi", - "@php vendor/bin/phpunit -c phpunit.dusk.xml --stop-on-failure --stop-on-error" + "@php vendor/bin/testbench-dusk workbench:build --ansi" ], - "dusk:filter": [ - "./vendor/bin/testbench-dusk package:dusk-purge --ansi && ./vendor/bin/phpunit -c phpunit.dusk.xml --filter" + "test": [ + "@clear", + "@php vendor/bin/testbench workbench:drop-sqlite-db --ansi", + "@php vendor/bin/testbench workbench:build --ansi", + "@php vendor/bin/phpunit" + ], + "dusk:test": [ + "@dusk:prepare", + "@php vendor/bin/phpunit -c phpunit.dusk.xml --stop-on-failure --stop-on-error" ], "test:local": [ - "@php vendor/bin/phpunit -c phpunit.xml --group date-field,datetime-field,external-network --testdox", + "@dusk:prepare", + "@php vendor/bin/phpunit --group date-field,datetime-field,external-network --testdox", "@php vendor/bin/phpunit -c phpunit.dusk.xml --group date-field,datetime-field,external-network --testdox" ], + "lint": [ + "@php vendor/bin/pint src --config=pint.json", + "@php vendor/bin/pint workbench --config=pint.json", + "@php vendor/bin/pint tests --config=tests/pint.json", + "@php vendor/bin/pint types --config=tests/pint.json", + "@php vendor/bin/phpstan analyse --verbose" + ], "serve": [ "@clear", - "@php vendor/bin/testbench package:discover --ansi", - "@php vendor/bin/testbench workbench:build --ansi", - "@php vendor/bin/testbench serve" + "@php vendor/bin/testbench-dusk package:discover --ansi", + "@php vendor/bin/testbench-dusk workbench:build --ansi", + "@putenv PHP_CLI_SERVER_WORKERS=5", + "@php vendor/bin/testbench-dusk serve --ansi" + ], + "herd": [ + "@clear", + "@sync", + "@php vendor/bin/testbench-dusk workbench:build --ansi", + "APP_URL=http://laravel-nova.test herd open laravel-nova" ] }, "license": [ @@ -1402,160 +1465,101 @@ "laravel" ], "support": { - "source": "https://github.com/laravel/nova/tree/v4.35.3" + "source": "https://github.com/laravel/nova/tree/v5.0.3" }, - "time": "2024-10-09T14:22:17+00:00" + "time": "2024-12-18T10:10:31+00:00" }, { "name": "laravel/prompts", - "version": "v0.1.8", + "version": "v0.1.25", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "68dcc65babf92e1fb43cba0b3f78fc3d8002709c" + "reference": "7b4029a84c37cb2725fc7f011586e2997040bc95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/68dcc65babf92e1fb43cba0b3f78fc3d8002709c", - "reference": "68dcc65babf92e1fb43cba0b3f78fc3d8002709c", + "url": "https://api.github.com/repos/laravel/prompts/zipball/7b4029a84c37cb2725fc7f011586e2997040bc95", + "reference": "7b4029a84c37cb2725fc7f011586e2997040bc95", "shasum": "" }, "require": { "ext-mbstring": "*", "illuminate/collections": "^10.0|^11.0", "php": "^8.1", - "symfony/console": "^6.2" + "symfony/console": "^6.2|^7.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" }, "require-dev": { "mockery/mockery": "^1.5", "pestphp/pest": "^2.3", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^1.11", "phpstan/phpstan-mockery": "^1.1" }, "suggest": { "ext-pcntl": "Required for the spinner to be animated." }, "type": "library", - "autoload": { - "files": [ - "src/helpers.php" - ], - "psr-4": { - "Laravel\\Prompts\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "support": { - "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.1.8" - }, - "time": "2023-09-19T15:33:56+00:00" - }, - { - "name": "laravel/serializable-closure", - "version": "v1.3.5", - "source": { - "type": "git", - "url": "https://github.com/laravel/serializable-closure.git", - "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", - "reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c", - "shasum": "" - }, - "require": { - "php": "^7.3|^8.0" - }, - "require-dev": { - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "nesbot/carbon": "^2.61|^3.0", - "pestphp/pest": "^1.21.3", - "phpstan/phpstan": "^1.8.2", - "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" - }, - "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-main": "0.1.x-dev" } }, "autoload": { + "files": [ + "src/helpers.php" + ], "psr-4": { - "Laravel\\SerializableClosure\\": "src/" + "Laravel\\Prompts\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - }, - { - "name": "Nuno Maduro", - "email": "nuno@laravel.com" - } - ], - "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", - "keywords": [ - "closure", - "laravel", - "serializable" + "license": [ + "MIT" ], + "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { - "issues": "https://github.com/laravel/serializable-closure/issues", - "source": "https://github.com/laravel/serializable-closure" + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.1.25" }, - "time": "2024-09-23T13:33:08+00:00" + "time": "2024-08-12T22:06:33+00:00" }, { - "name": "laravel/ui", - "version": "v4.5.2", + "name": "laravel/serializable-closure", + "version": "v1.3.7", "source": { "type": "git", - "url": "https://github.com/laravel/ui.git", - "reference": "c75396f63268c95b053c8e4814eb70e0875e9628" + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "4f48ade902b94323ca3be7646db16209ec76be3d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/c75396f63268c95b053c8e4814eb70e0875e9628", - "reference": "c75396f63268c95b053c8e4814eb70e0875e9628", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/4f48ade902b94323ca3be7646db16209ec76be3d", + "reference": "4f48ade902b94323ca3be7646db16209ec76be3d", "shasum": "" }, "require": { - "illuminate/console": "^9.21|^10.0|^11.0", - "illuminate/filesystem": "^9.21|^10.0|^11.0", - "illuminate/support": "^9.21|^10.0|^11.0", - "illuminate/validation": "^9.21|^10.0|^11.0", - "php": "^8.0", - "symfony/console": "^6.0|^7.0" + "php": "^7.3|^8.0" }, "require-dev": { - "orchestra/testbench": "^7.35|^8.15|^9.0", - "phpunit/phpunit": "^9.3|^10.4|^11.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.61|^3.0", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev" - }, - "laravel": { - "providers": [ - "Laravel\\Ui\\UiServiceProvider" - ] + "dev-master": "1.x-dev" } }, "autoload": { "psr-4": { - "Laravel\\Ui\\": "src/", - "Illuminate\\Foundation\\Auth\\": "auth-backend/" + "Laravel\\SerializableClosure\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1566,30 +1570,36 @@ { "name": "Taylor Otwell", "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" } ], - "description": "Laravel UI utilities and presets.", + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", "keywords": [ + "closure", "laravel", - "ui" + "serializable" ], "support": { - "source": "https://github.com/laravel/ui/tree/v4.5.2" + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" }, - "time": "2024-05-08T18:07:10+00:00" + "time": "2024-11-14T18:34:49+00:00" }, { "name": "league/commonmark", - "version": "2.5.3", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "b650144166dfa7703e62a22e493b853b58d874b0" + "reference": "d150f911e0079e90ae3c106734c93137c184f932" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0", - "reference": "b650144166dfa7703e62a22e493b853b58d874b0", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d150f911e0079e90ae3c106734c93137c184f932", + "reference": "d150f911e0079e90ae3c106734c93137c184f932", "shasum": "" }, "require": { @@ -1614,8 +1624,9 @@ "phpstan/phpstan": "^1.8.2", "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", "scrutinizer/ocular": "^1.8.1", - "symfony/finder": "^5.3 | ^6.0 || ^7.0", - "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0", + "symfony/finder": "^5.3 | ^6.0 | ^7.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0", "unleashedtech/php-coding-standard": "^3.1.1", "vimeo/psalm": "^4.24.0 || ^5.0.0" }, @@ -1625,7 +1636,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.6-dev" + "dev-main": "2.7-dev" } }, "autoload": { @@ -1682,7 +1693,7 @@ "type": "tidelift" } ], - "time": "2024-08-16T11:46:16+00:00" + "time": "2024-12-07T15:34:16+00:00" }, { "name": "league/config", @@ -1956,16 +1967,16 @@ }, { "name": "monolog/monolog", - "version": "3.7.0", + "version": "3.8.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8" + "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f4393b648b78a5408747de94fca38beb5f7e9ef8", - "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/aef6ee73a77a66e404dd6540934a9ef1b3c855b4", + "reference": "aef6ee73a77a66e404dd6540934a9ef1b3c855b4", "shasum": "" }, "require": { @@ -1985,12 +1996,14 @@ "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", - "phpstan/phpstan": "^1.9", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-strict-rules": "^1.4", - "phpunit/phpunit": "^10.5.17", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", "predis/predis": "^1.1 || ^2", - "ruflin/elastica": "^7", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", "symfony/mailer": "^5.4 || ^6", "symfony/mime": "^5.4 || ^6" }, @@ -2041,7 +2054,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.7.0" + "source": "https://github.com/Seldaek/monolog/tree/3.8.1" }, "funding": [ { @@ -2053,7 +2066,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T09:40:51+00:00" + "time": "2024-12-05T17:15:07+00:00" }, { "name": "nesbot/carbon", @@ -2312,35 +2325,43 @@ }, { "name": "nova-kit/nova-packages-tool", - "version": "v1.17.3", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/nova-kit/nova-packages-tool.git", - "reference": "cf6c03ee2d8232ca86c240eef459fdb6714ed22b" + "reference": "88240cf45b89363080baf5ce1f500eca054d9943" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nova-kit/nova-packages-tool/zipball/cf6c03ee2d8232ca86c240eef459fdb6714ed22b", - "reference": "cf6c03ee2d8232ca86c240eef459fdb6714ed22b", + "url": "https://api.github.com/repos/nova-kit/nova-packages-tool/zipball/88240cf45b89363080baf5ce1f500eca054d9943", + "reference": "88240cf45b89363080baf5ce1f500eca054d9943", "shasum": "" }, "require": { - "laravel/nova": ">=4.35.3 <4.36.0", - "php": "^7.3 || ^8.0" + "illuminate/support": "^10.48.23 || ^11.35", + "php": "^8.1" + }, + "conflict": { + "laravel/nova": "<5.0.0 || >=6.0.0" }, "require-dev": { - "nova-kit/nova-devtool": "^1.3", - "orchestra/testbench": "^6.35 || ^7.29 || ^8.9 || ^9.0" + "larastan/larastan": "^2.5.1", + "laravel/nova": "^5.0", + "laravel/nova-devtool": "^1.0", + "laravel/pint": "^1.17", + "orchestra/pest-plugin-testbench": "^2.0 || ^3.0", + "orchestra/workbench": "^8.13|^9.9", + "phpstan/phpstan": "^1.12" }, "type": "library", "extra": { - "branch-alias": { - "dev-develop": "2.x-dev" - }, "laravel": { "providers": [ "NovaKit\\NovaPackagesTool\\LaravelServiceProvider" ] + }, + "branch-alias": { + "dev-develop": "2.x-dev" } }, "autoload": { @@ -2360,38 +2381,38 @@ ], "description": "Tool for Laravel Nova Packages Development", "support": { - "source": "https://github.com/nova-kit/nova-packages-tool/tree/v1.17.3" + "source": "https://github.com/nova-kit/nova-packages-tool/tree/v2.0.0" }, - "time": "2024-10-09T14:24:59+00:00" + "time": "2024-12-13T14:23:21+00:00" }, { "name": "nunomaduro/termwind", - "version": "v1.16.0", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/termwind.git", - "reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257" + "reference": "5369ef84d8142c1d87e4ec278711d4ece3cbf301" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/dcf1ec3dfa36137b7ce41d43866644a7ab8fc257", - "reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/5369ef84d8142c1d87e4ec278711d4ece3cbf301", + "reference": "5369ef84d8142c1d87e4ec278711d4ece3cbf301", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^8.1", - "symfony/console": "^6.4.12" + "symfony/console": "^6.4.15" }, "require-dev": { - "illuminate/console": "^10.48.22", - "illuminate/support": "^10.48.22", - "laravel/pint": "^1.18.1", - "pestphp/pest": "^2", + "illuminate/console": "^10.48.24", + "illuminate/support": "^10.48.24", + "laravel/pint": "^1.18.2", + "pestphp/pest": "^2.36.0", "pestphp/pest-plugin-mock": "2.0.0", - "phpstan/phpstan": "^1.12.6", + "phpstan/phpstan": "^1.12.11", "phpstan/phpstan-strict-rules": "^1.6.1", - "symfony/var-dumper": "^6.4.11", + "symfony/var-dumper": "^6.4.15", "thecodingmachine/phpstan-strict-rules": "^1.0.0" }, "type": "library", @@ -2431,7 +2452,7 @@ ], "support": { "issues": "https://github.com/nunomaduro/termwind/issues", - "source": "https://github.com/nunomaduro/termwind/tree/v1.16.0" + "source": "https://github.com/nunomaduro/termwind/tree/v1.17.0" }, "funding": [ { @@ -2447,20 +2468,20 @@ "type": "github" } ], - "time": "2024-10-15T15:27:12+00:00" + "time": "2024-11-21T10:36:35+00:00" }, { "name": "openspout/openspout", - "version": "v4.25.0", + "version": "v4.28.3", "source": { "type": "git", "url": "https://github.com/openspout/openspout.git", - "reference": "519affe730d92e1598720a6467227fc28550f0e6" + "reference": "12b5eddcc230a97a9a67a722ad75c247e1a16750" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/openspout/openspout/zipball/519affe730d92e1598720a6467227fc28550f0e6", - "reference": "519affe730d92e1598720a6467227fc28550f0e6", + "url": "https://api.github.com/repos/openspout/openspout/zipball/12b5eddcc230a97a9a67a722ad75c247e1a16750", + "reference": "12b5eddcc230a97a9a67a722ad75c247e1a16750", "shasum": "" }, "require": { @@ -2470,17 +2491,17 @@ "ext-libxml": "*", "ext-xmlreader": "*", "ext-zip": "*", - "php": "~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0" }, "require-dev": { "ext-zlib": "*", - "friendsofphp/php-cs-fixer": "^3.64.0", - "infection/infection": "^0.29.6", + "friendsofphp/php-cs-fixer": "^3.65.0", + "infection/infection": "^0.29.8", "phpbench/phpbench": "^1.3.1", - "phpstan/phpstan": "^1.12.4", - "phpstan/phpstan-phpunit": "^1.4.0", - "phpstan/phpstan-strict-rules": "^1.6.1", - "phpunit/phpunit": "^10.5.20 || ^11.3.6" + "phpstan/phpstan": "^2.0.3", + "phpstan/phpstan-phpunit": "^2.0.1", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^11.5.0" }, "suggest": { "ext-iconv": "To handle non UTF-8 CSV files (if \"php-mbstring\" is not already installed or is too limited)", @@ -2528,7 +2549,7 @@ ], "support": { "issues": "https://github.com/openspout/openspout/issues", - "source": "https://github.com/openspout/openspout/tree/v4.25.0" + "source": "https://github.com/openspout/openspout/tree/v4.28.3" }, "funding": [ { @@ -2540,7 +2561,74 @@ "type": "github" } ], - "time": "2024-09-24T09:03:42+00:00" + "time": "2024-12-17T11:28:11+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "df1e7fde177501eee2037dd159cf04f5f301a512" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/df1e7fde177501eee2037dd159cf04f5f301a512", + "reference": "df1e7fde177501eee2037dd159cf04f5f301a512", + "shasum": "" + }, + "require": { + "php": "^8" + }, + "require-dev": { + "phpunit/phpunit": "^9", + "vimeo/psalm": "^4|^5" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2024-05-08T12:36:18+00:00" }, { "name": "phpoption/phpoption", @@ -2684,31 +2772,31 @@ "time": "2024-03-25T15:50:07+00:00" }, { - "name": "psr/cache", - "version": "3.0.0", + "name": "pragmarx/google2fa", + "version": "v8.0.3", "source": { "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + "url": "https://github.com/antonioribeiro/google2fa.git", + "reference": "6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", + "reference": "6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", "shasum": "" }, "require": { - "php": ">=8.0.0" + "paragonie/constant_time_encoding": "^1.0|^2.0|^3.0", + "php": "^7.1|^8.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } + "require-dev": { + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^7.5.15|^8.5|^9.0" }, + "type": "library", "autoload": { "psr-4": { - "Psr\\Cache\\": "src/" + "PragmaRX\\Google2FA\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2717,20 +2805,23 @@ ], "authors": [ { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" } ], - "description": "Common interface for caching libraries", + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", "keywords": [ - "cache", - "psr", - "psr-6" + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa" ], "support": { - "source": "https://github.com/php-fig/cache/tree/3.0.0" + "issues": "https://github.com/antonioribeiro/google2fa/issues", + "source": "https://github.com/antonioribeiro/google2fa/tree/v8.0.3" }, - "time": "2021-02-03T23:26:27+00:00" + "time": "2024-09-05T11:56:40+00:00" }, { "name": "psr/clock", @@ -3358,16 +3449,16 @@ }, { "name": "symfony/console", - "version": "v6.4.12", + "version": "v6.4.15", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765" + "reference": "f1fc6f47283e27336e7cebb9e8946c8de7bff9bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/72d080eb9edf80e36c19be61f72c98ed8273b765", - "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765", + "url": "https://api.github.com/repos/symfony/console/zipball/f1fc6f47283e27336e7cebb9e8946c8de7bff9bd", + "reference": "f1fc6f47283e27336e7cebb9e8946c8de7bff9bd", "shasum": "" }, "require": { @@ -3432,7 +3523,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.12" + "source": "https://github.com/symfony/console/tree/v6.4.15" }, "funding": [ { @@ -3448,24 +3539,24 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:15:52+00:00" + "time": "2024-11-06T14:19:14+00:00" }, { "name": "symfony/css-selector", - "version": "v6.4.8", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "4b61b02fe15db48e3687ce1c45ea385d1780fe08" + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/4b61b02fe15db48e3687ce1c45ea385d1780fe08", - "reference": "4b61b02fe15db48e3687ce1c45ea385d1780fe08", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "type": "library", "autoload": { @@ -3497,7 +3588,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.4.8" + "source": "https://github.com/symfony/css-selector/tree/v7.2.0" }, "funding": [ { @@ -3513,20 +3604,20 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", "shasum": "" }, "require": { @@ -3564,7 +3655,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" }, "funding": [ { @@ -3580,20 +3671,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/error-handler", - "version": "v6.4.10", + "version": "v6.4.14", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "231f1b2ee80f72daa1972f7340297d67439224f0" + "reference": "9e024324511eeb00983ee76b9aedc3e6ecd993d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/231f1b2ee80f72daa1972f7340297d67439224f0", - "reference": "231f1b2ee80f72daa1972f7340297d67439224f0", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/9e024324511eeb00983ee76b9aedc3e6ecd993d9", + "reference": "9e024324511eeb00983ee76b9aedc3e6ecd993d9", "shasum": "" }, "require": { @@ -3639,7 +3730,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v6.4.10" + "source": "https://github.com/symfony/error-handler/tree/v6.4.14" }, "funding": [ { @@ -3655,28 +3746,28 @@ "type": "tidelift" } ], - "time": "2024-07-26T12:30:32+00:00" + "time": "2024-11-05T15:34:40+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.4.8", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "8d7507f02b06e06815e56bb39aa0128e3806208b" + "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8d7507f02b06e06815e56bb39aa0128e3806208b", - "reference": "8d7507f02b06e06815e56bb39aa0128e3806208b", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/910c5db85a5356d0fea57680defec4e99eb9c8c1", + "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/event-dispatcher-contracts": "^2.5|^3" }, "conflict": { - "symfony/dependency-injection": "<5.4", + "symfony/dependency-injection": "<6.4", "symfony/service-contracts": "<2.5" }, "provide": { @@ -3685,13 +3776,13 @@ }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0|^7.0", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/error-handler": "^5.4|^6.0|^7.0", - "symfony/expression-language": "^5.4|^6.0|^7.0", - "symfony/http-foundation": "^5.4|^6.0|^7.0", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/error-handler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", "symfony/service-contracts": "^2.5|^3", - "symfony/stopwatch": "^5.4|^6.0|^7.0" + "symfony/stopwatch": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -3719,7 +3810,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.4.8" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0" }, "funding": [ { @@ -3735,20 +3826,20 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50" + "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f", + "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f", "shasum": "" }, "require": { @@ -3795,7 +3886,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1" }, "funding": [ { @@ -3811,20 +3902,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/finder", - "version": "v6.4.11", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453" + "reference": "daea9eca0b08d0ed1dc9ab702a46128fd1be4958" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d7eb6daf8cd7e9ac4976e9576b32042ef7253453", - "reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453", + "url": "https://api.github.com/repos/symfony/finder/zipball/daea9eca0b08d0ed1dc9ab702a46128fd1be4958", + "reference": "daea9eca0b08d0ed1dc9ab702a46128fd1be4958", "shasum": "" }, "require": { @@ -3859,7 +3950,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.11" + "source": "https://github.com/symfony/finder/tree/v6.4.13" }, "funding": [ { @@ -3875,20 +3966,20 @@ "type": "tidelift" } ], - "time": "2024-08-13T14:27:37+00:00" + "time": "2024-10-01T08:30:56+00:00" }, { "name": "symfony/http-foundation", - "version": "v6.4.12", + "version": "v6.4.16", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "133ac043875f59c26c55e79cf074562127cce4d2" + "reference": "431771b7a6f662f1575b3cfc8fd7617aa9864d57" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/133ac043875f59c26c55e79cf074562127cce4d2", - "reference": "133ac043875f59c26c55e79cf074562127cce4d2", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/431771b7a6f662f1575b3cfc8fd7617aa9864d57", + "reference": "431771b7a6f662f1575b3cfc8fd7617aa9864d57", "shasum": "" }, "require": { @@ -3898,12 +3989,12 @@ "symfony/polyfill-php83": "^1.27" }, "conflict": { - "symfony/cache": "<6.3" + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" }, "require-dev": { "doctrine/dbal": "^2.13.1|^3|^4", "predis/predis": "^1.1|^2.0", - "symfony/cache": "^6.3|^7.0", + "symfony/cache": "^6.4.12|^7.1.5", "symfony/dependency-injection": "^5.4|^6.0|^7.0", "symfony/expression-language": "^5.4|^6.0|^7.0", "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4|^7.0", @@ -3936,7 +4027,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v6.4.12" + "source": "https://github.com/symfony/http-foundation/tree/v6.4.16" }, "funding": [ { @@ -3952,20 +4043,20 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:18:25+00:00" + "time": "2024-11-13T18:58:10+00:00" }, { "name": "symfony/http-kernel", - "version": "v6.4.12", + "version": "v6.4.16", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "96df83d51b5f78804f70c093b97310794fd6257b" + "reference": "8838b5b21d807923b893ccbfc2cbeda0f1bc00f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/96df83d51b5f78804f70c093b97310794fd6257b", - "reference": "96df83d51b5f78804f70c093b97310794fd6257b", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/8838b5b21d807923b893ccbfc2cbeda0f1bc00f0", + "reference": "8838b5b21d807923b893ccbfc2cbeda0f1bc00f0", "shasum": "" }, "require": { @@ -4050,7 +4141,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v6.4.12" + "source": "https://github.com/symfony/http-kernel/tree/v6.4.16" }, "funding": [ { @@ -4066,20 +4157,20 @@ "type": "tidelift" } ], - "time": "2024-09-21T06:02:57+00:00" + "time": "2024-11-27T12:49:36+00:00" }, { "name": "symfony/mailer", - "version": "v6.4.12", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "b6a25408c569ae2366b3f663a4edad19420a9c26" + "reference": "c2f7e0d8d7ac8fe25faccf5d8cac462805db2663" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/b6a25408c569ae2366b3f663a4edad19420a9c26", - "reference": "b6a25408c569ae2366b3f663a4edad19420a9c26", + "url": "https://api.github.com/repos/symfony/mailer/zipball/c2f7e0d8d7ac8fe25faccf5d8cac462805db2663", + "reference": "c2f7e0d8d7ac8fe25faccf5d8cac462805db2663", "shasum": "" }, "require": { @@ -4130,7 +4221,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v6.4.12" + "source": "https://github.com/symfony/mailer/tree/v6.4.13" }, "funding": [ { @@ -4146,20 +4237,20 @@ "type": "tidelift" } ], - "time": "2024-09-08T12:30:05+00:00" + "time": "2024-09-25T14:18:03+00:00" }, { "name": "symfony/mime", - "version": "v6.4.12", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "abe16ee7790b16aa525877419deb0f113953f0e1" + "reference": "1de1cf14d99b12c7ebbb850491ec6ae3ed468855" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/abe16ee7790b16aa525877419deb0f113953f0e1", - "reference": "abe16ee7790b16aa525877419deb0f113953f0e1", + "url": "https://api.github.com/repos/symfony/mime/zipball/1de1cf14d99b12c7ebbb850491ec6ae3ed468855", + "reference": "1de1cf14d99b12c7ebbb850491ec6ae3ed468855", "shasum": "" }, "require": { @@ -4215,7 +4306,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v6.4.12" + "source": "https://github.com/symfony/mime/tree/v6.4.13" }, "funding": [ { @@ -4231,7 +4322,7 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:18:25+00:00" + "time": "2024-10-25T15:07:50+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4259,8 +4350,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4335,8 +4426,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4413,8 +4504,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4498,8 +4589,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4580,8 +4671,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4664,8 +4755,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4738,8 +4829,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4818,8 +4909,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4874,6 +4965,82 @@ ], "time": "2024-09-09T11:45:10+00:00" }, + { + "name": "symfony/polyfill-php84", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "e5493eb51311ab0b1cc2243416613f06ed8f18bd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/e5493eb51311ab0b1cc2243416613f06ed8f18bd", + "reference": "e5493eb51311ab0b1cc2243416613f06ed8f18bd", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.31.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T12:04:04+00:00" + }, { "name": "symfony/polyfill-uuid", "version": "v1.31.0", @@ -4900,8 +5067,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -4955,16 +5122,16 @@ }, { "name": "symfony/process", - "version": "v6.4.12", + "version": "v6.4.15", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "3f94e5f13ff58df371a7ead461b6e8068900fbb3" + "reference": "3cb242f059c14ae08591c5c4087d1fe443564392" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/3f94e5f13ff58df371a7ead461b6e8068900fbb3", - "reference": "3f94e5f13ff58df371a7ead461b6e8068900fbb3", + "url": "https://api.github.com/repos/symfony/process/zipball/3cb242f059c14ae08591c5c4087d1fe443564392", + "reference": "3cb242f059c14ae08591c5c4087d1fe443564392", "shasum": "" }, "require": { @@ -4996,7 +5163,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.4.12" + "source": "https://github.com/symfony/process/tree/v6.4.15" }, "funding": [ { @@ -5012,20 +5179,20 @@ "type": "tidelift" } ], - "time": "2024-09-17T12:47:12+00:00" + "time": "2024-11-06T14:19:14+00:00" }, { "name": "symfony/routing", - "version": "v6.4.12", + "version": "v6.4.16", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "a7c8036bd159486228dc9be3e846a00a0dda9f9f" + "reference": "91e02e606b4b705c2f4fb42f7e7708b7923a3220" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/a7c8036bd159486228dc9be3e846a00a0dda9f9f", - "reference": "a7c8036bd159486228dc9be3e846a00a0dda9f9f", + "url": "https://api.github.com/repos/symfony/routing/zipball/91e02e606b4b705c2f4fb42f7e7708b7923a3220", + "reference": "91e02e606b4b705c2f4fb42f7e7708b7923a3220", "shasum": "" }, "require": { @@ -5079,7 +5246,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v6.4.12" + "source": "https://github.com/symfony/routing/tree/v6.4.16" }, "funding": [ { @@ -5095,20 +5262,20 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:32:26+00:00" + "time": "2024-11-13T15:31:34+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", "shasum": "" }, "require": { @@ -5162,7 +5329,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" }, "funding": [ { @@ -5178,24 +5345,24 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/string", - "version": "v6.4.12", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "f8a1ccebd0997e16112dfecfd74220b78e5b284b" + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/f8a1ccebd0997e16112dfecfd74220b78e5b284b", - "reference": "f8a1ccebd0997e16112dfecfd74220b78e5b284b", + "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82", + "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", @@ -5205,11 +5372,12 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/error-handler": "^5.4|^6.0|^7.0", - "symfony/http-client": "^5.4|^6.0|^7.0", - "symfony/intl": "^6.2|^7.0", + "symfony/emoji": "^7.1", + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^5.4|^6.0|^7.0" + "symfony/var-exporter": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -5248,7 +5416,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.12" + "source": "https://github.com/symfony/string/tree/v7.2.0" }, "funding": [ { @@ -5264,20 +5432,20 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:15:52+00:00" + "time": "2024-11-13T13:31:26+00:00" }, { "name": "symfony/translation", - "version": "v6.4.12", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "cf8360b8352b086be620fae8342c4d96e391a489" + "reference": "bee9bfabfa8b4045a66bf82520e492cddbaffa66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/cf8360b8352b086be620fae8342c4d96e391a489", - "reference": "cf8360b8352b086be620fae8342c4d96e391a489", + "url": "https://api.github.com/repos/symfony/translation/zipball/bee9bfabfa8b4045a66bf82520e492cddbaffa66", + "reference": "bee9bfabfa8b4045a66bf82520e492cddbaffa66", "shasum": "" }, "require": { @@ -5343,7 +5511,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v6.4.12" + "source": "https://github.com/symfony/translation/tree/v6.4.13" }, "funding": [ { @@ -5359,20 +5527,20 @@ "type": "tidelift" } ], - "time": "2024-09-16T06:02:54+00:00" + "time": "2024-09-27T18:14:25+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a" + "reference": "4667ff3bd513750603a09c8dedbea942487fb07c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", - "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/4667ff3bd513750603a09c8dedbea942487fb07c", + "reference": "4667ff3bd513750603a09c8dedbea942487fb07c", "shasum": "" }, "require": { @@ -5421,7 +5589,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/translation-contracts/tree/v3.5.1" }, "funding": [ { @@ -5437,20 +5605,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/uid", - "version": "v6.4.12", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/uid.git", - "reference": "2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d" + "reference": "18eb207f0436a993fffbdd811b5b8fa35fa5e007" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/uid/zipball/2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d", - "reference": "2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d", + "url": "https://api.github.com/repos/symfony/uid/zipball/18eb207f0436a993fffbdd811b5b8fa35fa5e007", + "reference": "18eb207f0436a993fffbdd811b5b8fa35fa5e007", "shasum": "" }, "require": { @@ -5495,7 +5663,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/uid/tree/v6.4.12" + "source": "https://github.com/symfony/uid/tree/v6.4.13" }, "funding": [ { @@ -5511,20 +5679,20 @@ "type": "tidelift" } ], - "time": "2024-09-20T08:32:26+00:00" + "time": "2024-09-25T14:18:03+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.4.11", + "version": "v6.4.15", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "ee14c8254a480913268b1e3b1cba8045ed122694" + "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ee14c8254a480913268b1e3b1cba8045ed122694", - "reference": "ee14c8254a480913268b1e3b1cba8045ed122694", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", + "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", "shasum": "" }, "require": { @@ -5580,7 +5748,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.4.11" + "source": "https://github.com/symfony/var-dumper/tree/v6.4.15" }, "funding": [ { @@ -5596,7 +5764,7 @@ "type": "tidelift" } ], - "time": "2024-08-30T16:03:21+00:00" + "time": "2024-11-08T15:28:48+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -5737,16 +5905,16 @@ }, { "name": "voku/portable-ascii", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/voku/portable-ascii.git", - "reference": "b56450eed252f6801410d810c8e1727224ae0743" + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", - "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", "shasum": "" }, "require": { @@ -5771,7 +5939,7 @@ "authors": [ { "name": "Lars Moelleken", - "homepage": "http://www.moelleken.org/" + "homepage": "https://www.moelleken.org/" } ], "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", @@ -5783,7 +5951,7 @@ ], "support": { "issues": "https://github.com/voku/portable-ascii/issues", - "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + "source": "https://github.com/voku/portable-ascii/tree/2.0.3" }, "funding": [ { @@ -5807,7 +5975,7 @@ "type": "tidelift" } ], - "time": "2022-03-08T17:03:00+00:00" + "time": "2024-11-21T01:49:47+00:00" }, { "name": "webmozart/assert", @@ -5871,16 +6039,16 @@ "packages-dev": [ { "name": "aws/aws-crt-php", - "version": "v1.2.6", + "version": "v1.2.7", "source": { "type": "git", "url": "https://github.com/awslabs/aws-crt-php.git", - "reference": "a63485b65b6b3367039306496d49737cf1995408" + "reference": "d71d9906c7bb63a28295447ba12e74723bd3730e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/a63485b65b6b3367039306496d49737cf1995408", - "reference": "a63485b65b6b3367039306496d49737cf1995408", + "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e", + "reference": "d71d9906c7bb63a28295447ba12e74723bd3730e", "shasum": "" }, "require": { @@ -5919,22 +6087,22 @@ ], "support": { "issues": "https://github.com/awslabs/aws-crt-php/issues", - "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.6" + "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.7" }, - "time": "2024-06-13T17:21:28+00:00" + "time": "2024-10-18T22:15:13+00:00" }, { "name": "aws/aws-sdk-php", - "version": "3.322.8", + "version": "3.336.0", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "fb5099160e49b676277ae787ff721628e5e4dd5a" + "reference": "5a62003bf183e32da038056a4b9077c27224e034" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/fb5099160e49b676277ae787ff721628e5e4dd5a", - "reference": "fb5099160e49b676277ae787ff721628e5e4dd5a", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/5a62003bf183e32da038056a4b9077c27224e034", + "reference": "5a62003bf183e32da038056a4b9077c27224e034", "shasum": "" }, "require": { @@ -5963,8 +6131,8 @@ "nette/neon": "^2.3", "paragonie/random_compat": ">= 2", "phpunit/phpunit": "^5.6.3 || ^8.5 || ^9.5", - "psr/cache": "^1.0", - "psr/simple-cache": "^1.0", + "psr/cache": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", "sebastian/comparator": "^1.2.3 || ^4.0", "yoast/phpunit-polyfills": "^1.0" }, @@ -6017,22 +6185,22 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.322.8" + "source": "https://github.com/aws/aws-sdk-php/tree/3.336.0" }, - "time": "2024-09-30T19:09:25+00:00" + "time": "2024-12-18T19:04:32+00:00" }, { "name": "brianium/paratest", - "version": "v7.3.1", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/paratestphp/paratest.git", - "reference": "551f46f52a93177d873f3be08a1649ae886b4a30" + "reference": "cf16fcbb9b8107a7df6b97e497fc91e819774d8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/551f46f52a93177d873f3be08a1649ae886b4a30", - "reference": "551f46f52a93177d873f3be08a1649ae886b4a30", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/cf16fcbb9b8107a7df6b97e497fc91e819774d8b", + "reference": "cf16fcbb9b8107a7df6b97e497fc91e819774d8b", "shasum": "" }, "require": { @@ -6040,32 +6208,30 @@ "ext-pcre": "*", "ext-reflection": "*", "ext-simplexml": "*", - "fidry/cpu-core-counter": "^0.5.1 || ^1.0.0", - "jean85/pretty-package-versions": "^2.0.5", - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", - "phpunit/php-code-coverage": "^10.1.7", + "fidry/cpu-core-counter": "^1.2.0", + "jean85/pretty-package-versions": "^2.0.6", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", + "phpunit/php-code-coverage": "^10.1.16", "phpunit/php-file-iterator": "^4.1.0", - "phpunit/php-timer": "^6.0", - "phpunit/phpunit": "^10.4.2", - "sebastian/environment": "^6.0.1", - "symfony/console": "^6.3.4 || ^7.0.0", - "symfony/process": "^6.3.4 || ^7.0.0" + "phpunit/php-timer": "^6.0.0", + "phpunit/phpunit": "^10.5.36", + "sebastian/environment": "^6.1.0", + "symfony/console": "^6.4.7 || ^7.1.5", + "symfony/process": "^6.4.7 || ^7.1.5" }, "require-dev": { "doctrine/coding-standard": "^12.0.0", "ext-pcov": "*", "ext-posix": "*", - "infection/infection": "^0.27.6", - "phpstan/phpstan": "^1.10.40", - "phpstan/phpstan-deprecation-rules": "^1.1.4", - "phpstan/phpstan-phpunit": "^1.3.15", - "phpstan/phpstan-strict-rules": "^1.5.2", - "squizlabs/php_codesniffer": "^3.7.2", - "symfony/filesystem": "^6.3.1 || ^7.0.0" + "phpstan/phpstan": "^1.12.6", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.1", + "squizlabs/php_codesniffer": "^3.10.3", + "symfony/filesystem": "^6.4.3 || ^7.1.5" }, "bin": [ "bin/paratest", - "bin/paratest.bat", "bin/paratest_for_phpstorm" ], "type": "library", @@ -6102,7 +6268,7 @@ ], "support": { "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v7.3.1" + "source": "https://github.com/paratestphp/paratest/tree/v7.4.8" }, "funding": [ { @@ -6114,28 +6280,28 @@ "type": "paypal" } ], - "time": "2023-10-31T09:24:17+00:00" + "time": "2024-10-15T12:45:19+00:00" }, { "name": "composer/semver", - "version": "3.4.0", + "version": "3.4.3", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" }, "type": "library", "extra": { @@ -6179,7 +6345,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.0" + "source": "https://github.com/composer/semver/tree/3.4.3" }, "funding": [ { @@ -6195,20 +6361,65 @@ "type": "tidelift" } ], - "time": "2023-08-31T09:50:34+00:00" + "time": "2024-09-19T14:15:21+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "31610dbb31faa98e6b5447b62340826f54fbc4e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/31610dbb31faa98e6b5447b62340826f54fbc4e9", + "reference": "31610dbb31faa98e6b5447b62340826f54fbc4e9", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12", + "phpstan/phpstan": "1.4.10 || 2.0.3", + "phpstan/phpstan-phpunit": "^1.0 || ^2", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psr/log": "^1 || ^2 || ^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.4" + }, + "time": "2024-12-07T21:18:45+00:00" }, { "name": "fakerphp/faker", - "version": "v1.23.0", + "version": "v1.24.1", "source": { "type": "git", "url": "https://github.com/FakerPHP/Faker.git", - "reference": "e3daa170d00fde61ea7719ef47bb09bb8f1d9b01" + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e3daa170d00fde61ea7719ef47bb09bb8f1d9b01", - "reference": "e3daa170d00fde61ea7719ef47bb09bb8f1d9b01", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", "shasum": "" }, "require": { @@ -6234,11 +6445,6 @@ "ext-mbstring": "Required for multibyte Unicode string functionality." }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "v1.21-dev" - } - }, "autoload": { "psr-4": { "Faker\\": "src/Faker/" @@ -6261,9 +6467,9 @@ ], "support": { "issues": "https://github.com/FakerPHP/Faker/issues", - "source": "https://github.com/FakerPHP/Faker/tree/v1.23.0" + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" }, - "time": "2023-06-12T08:44:38+00:00" + "time": "2024-11-21T13:46:39+00:00" }, { "name": "fidry/cpu-core-counter", @@ -6328,26 +6534,26 @@ }, { "name": "filp/whoops", - "version": "2.15.4", + "version": "2.16.0", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546" + "reference": "befcdc0e5dce67252aa6322d82424be928214fa2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a139776fa3f5985a50b509f2a02ff0f709d2a546", - "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546", + "url": "https://api.github.com/repos/filp/whoops/zipball/befcdc0e5dce67252aa6322d82424be928214fa2", + "reference": "befcdc0e5dce67252aa6322d82424be928214fa2", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0 || ^8.0", + "php": "^7.1 || ^8.0", "psr/log": "^1.0.1 || ^2.0 || ^3.0" }, "require-dev": { - "mockery/mockery": "^0.9 || ^1.0", - "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", - "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" }, "suggest": { "symfony/var-dumper": "Pretty print complex values better with var-dumper available", @@ -6387,7 +6593,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.15.4" + "source": "https://github.com/filp/whoops/tree/2.16.0" }, "funding": [ { @@ -6395,7 +6601,7 @@ "type": "github" } ], - "time": "2023-11-03T12:00:00+00:00" + "time": "2024-09-25T12:00:00+00:00" }, { "name": "guzzlehttp/guzzle", @@ -6775,28 +6981,28 @@ }, { "name": "jean85/pretty-package-versions", - "version": "2.0.6", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4" + "reference": "3c4e5f62ba8d7de1734312e4fff32f67a8daaf10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/f9fdd29ad8e6d024f52678b570e5593759b550b4", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/3c4e5f62ba8d7de1734312e4fff32f67a8daaf10", + "reference": "3c4e5f62ba8d7de1734312e4fff32f67a8daaf10", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "composer-runtime-api": "^2.1.0", + "php": "^7.4|^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", "jean85/composer-provided-replaced-stub-package": "^1.0", "phpstan/phpstan": "^1.4", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "phpunit/phpunit": "^7.5|^8.5|^9.6", + "vimeo/psalm": "^4.3 || ^5.0" }, "type": "library", "extra": { @@ -6822,102 +7028,55 @@ "description": "A library to get pretty versions strings of installed dependencies", "keywords": [ "composer", - "package", - "release", - "versions" - ], - "support": { - "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.6" - }, - "time": "2024-03-08T09:58:59+00:00" - }, - { - "name": "konsulting/project-root", - "version": "1.1", - "source": { - "type": "git", - "url": "https://github.com/konsulting/project-root.git", - "reference": "3e33eddad57ad01a530e59733855a91a25d94495" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/konsulting/project-root/zipball/3e33eddad57ad01a530e59733855a91a25d94495", - "reference": "3e33eddad57ad01a530e59733855a91a25d94495", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "phpunit/phpunit": "^5.0 | ^6.0 | ^7.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Konsulting\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Keoghan Litchfield", - "email": "keoghan@klever.co.uk" - } + "package", + "release", + "versions" ], - "description": "A simple package to determine the working root directory for a composer dependency", "support": { - "issues": "https://github.com/konsulting/project-root/issues", - "source": "https://github.com/konsulting/project-root/tree/master" + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.0" }, - "time": "2019-04-16T07:29:33+00:00" + "time": "2024-11-18T16:19:46+00:00" }, { "name": "laravel/dusk", - "version": "v7.9.3", + "version": "v8.2.12", "source": { "type": "git", "url": "https://github.com/laravel/dusk.git", - "reference": "8d7ce583fb362472558cc1852adccfcd86cf87e4" + "reference": "a399aa31c1c9cef793ad747403017e56df77396c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/dusk/zipball/8d7ce583fb362472558cc1852adccfcd86cf87e4", - "reference": "8d7ce583fb362472558cc1852adccfcd86cf87e4", + "url": "https://api.github.com/repos/laravel/dusk/zipball/a399aa31c1c9cef793ad747403017e56df77396c", + "reference": "a399aa31c1c9cef793ad747403017e56df77396c", "shasum": "" }, "require": { "ext-json": "*", "ext-zip": "*", - "guzzlehttp/guzzle": "^7.2", - "illuminate/console": "^9.0|^10.0", - "illuminate/support": "^9.0|^10.0", - "nesbot/carbon": "^2.0", - "php": "^8.0", - "php-webdriver/webdriver": "^1.9.0", - "symfony/console": "^6.0", - "symfony/finder": "^6.0", - "symfony/process": "^6.0", + "guzzlehttp/guzzle": "^7.5", + "illuminate/console": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", + "php": "^8.1", + "php-webdriver/webdriver": "^1.15.2", + "symfony/console": "^6.2|^7.0", + "symfony/finder": "^6.2|^7.0", + "symfony/process": "^6.2|^7.0", "vlucas/phpdotenv": "^5.2" }, "require-dev": { - "mockery/mockery": "^1.4.2", - "orchestra/testbench": "^7.0|^8.0", + "mockery/mockery": "^1.6", + "orchestra/testbench": "^8.19|^9.0", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5.10|^10.0.1", - "psy/psysh": "^0.11.12" + "phpunit/phpunit": "^10.1|^11.0", + "psy/psysh": "^0.11.12|^0.12" }, "suggest": { "ext-pcntl": "Used to gracefully terminate Dusk when tests are running." }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "7.x-dev" - }, "laravel": { "providers": [ "Laravel\\Dusk\\DuskServiceProvider" @@ -6947,22 +7106,22 @@ ], "support": { "issues": "https://github.com/laravel/dusk/issues", - "source": "https://github.com/laravel/dusk/tree/v7.9.3" + "source": "https://github.com/laravel/dusk/tree/v8.2.12" }, - "time": "2023-08-03T16:00:26+00:00" + "time": "2024-11-21T17:37:39+00:00" }, { "name": "laravel/pint", - "version": "v1.18.1", + "version": "v1.18.3", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9" + "reference": "cef51821608239040ab841ad6e1c6ae502ae3026" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/35c00c05ec43e6b46d295efc0f4386ceb30d50d9", - "reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9", + "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026", + "reference": "cef51821608239040ab841ad6e1c6ae502ae3026", "shasum": "" }, "require": { @@ -6973,13 +7132,13 @@ "php": "^8.1.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.64.0", - "illuminate/view": "^10.48.20", - "larastan/larastan": "^2.9.8", + "friendsofphp/php-cs-fixer": "^3.65.0", + "illuminate/view": "^10.48.24", + "larastan/larastan": "^2.9.11", "laravel-zero/framework": "^10.4.0", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.35.1" + "nunomaduro/termwind": "^1.17.0", + "pestphp/pest": "^2.36.0" }, "bin": [ "builds/pint" @@ -7015,29 +7174,29 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-09-24T17:22:50+00:00" + "time": "2024-11-26T15:34:00+00:00" }, { "name": "laravel/tinker", - "version": "v2.8.2", + "version": "v2.10.0", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "b936d415b252b499e8c3b1f795cd4fc20f57e1f3" + "reference": "ba4d51eb56de7711b3a37d63aa0643e99a339ae5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/b936d415b252b499e8c3b1f795cd4fc20f57e1f3", - "reference": "b936d415b252b499e8c3b1f795cd4fc20f57e1f3", + "url": "https://api.github.com/repos/laravel/tinker/zipball/ba4d51eb56de7711b3a37d63aa0643e99a339ae5", + "reference": "ba4d51eb56de7711b3a37d63aa0643e99a339ae5", "shasum": "" }, "require": { - "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "php": "^7.2.5|^8.0", - "psy/psysh": "^0.10.4|^0.11.1", - "symfony/var-dumper": "^4.3.4|^5.0|^6.0" + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" }, "require-dev": { "mockery/mockery": "~1.3.3|^1.4.2", @@ -7045,13 +7204,10 @@ "phpunit/phpunit": "^8.5.8|^9.3.3" }, "suggest": { - "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0)." + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0)." }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, "laravel": { "providers": [ "Laravel\\Tinker\\TinkerServiceProvider" @@ -7082,9 +7238,9 @@ ], "support": { "issues": "https://github.com/laravel/tinker/issues", - "source": "https://github.com/laravel/tinker/tree/v2.8.2" + "source": "https://github.com/laravel/tinker/tree/v2.10.0" }, - "time": "2023-08-15T14:27:00+00:00" + "time": "2024-09-23T13:32:56+00:00" }, { "name": "league/flysystem-aws-s3-v3", @@ -7143,16 +7299,16 @@ }, { "name": "mockery/mockery", - "version": "1.6.11", + "version": "1.6.12", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "81a161d0b135df89951abd52296adf97deb0723d" + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d", - "reference": "81a161d0b135df89951abd52296adf97deb0723d", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", "shasum": "" }, "require": { @@ -7222,7 +7378,7 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2024-03-21T18:34:15+00:00" + "time": "2024-05-16T03:13:13+00:00" }, { "name": "mtdowling/jmespath.php", @@ -7292,16 +7448,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", "shasum": "" }, "require": { @@ -7340,7 +7496,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" }, "funding": [ { @@ -7348,29 +7504,31 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2024-11-08T17:47:46+00:00" }, { "name": "nikic/php-parser", - "version": "v4.19.1", + "version": "v5.3.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.1" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -7378,7 +7536,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -7402,45 +7560,44 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" }, - "time": "2024-03-17T08:10:35+00:00" + "time": "2024-10-08T18:51:32+00:00" }, { "name": "nova-kit/nova-devtool", - "version": "v1.3.0", + "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/nova-kit/nova-devtool.git", - "reference": "053d4c759f0763b5e4f769d54aef3f6a9ea2a450" + "reference": "7d1c076b15379373ae27084e61b7b245218d17c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nova-kit/nova-devtool/zipball/053d4c759f0763b5e4f769d54aef3f6a9ea2a450", - "reference": "053d4c759f0763b5e4f769d54aef3f6a9ea2a450", + "url": "https://api.github.com/repos/nova-kit/nova-devtool/zipball/7d1c076b15379373ae27084e61b7b245218d17c4", + "reference": "7d1c076b15379373ae27084e61b7b245218d17c4", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/nova": "^4.0", - "orchestra/workbench": "^0.2.5", - "php": "^7.3 || ^8.0" + "orchestra/workbench": "^7.0 || ^8.0 || ^9.0", + "php": "^8.0" }, "require-dev": { - "nunomaduro/larastan": "^1.0.1 || ^2.0", - "orchestra/testbench": "^6.35 || ^7.29 || ^8.9", - "phpunit/phpunit": "^9.6" + "larastan/larastan": "^2.4", + "laravel/nova": "^4.0", + "orchestra/testbench": "^7.39 || ^8.20 || ^9.0" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.0.x-dev" - }, "laravel": { "providers": [ "NovaKit\\NovaDevTool\\LaravelServiceProvider" ] + }, + "branch-alias": { + "dev-main": "1.0.x-dev" } }, "autoload": { @@ -7466,46 +7623,47 @@ ], "support": { "issues": "https://github.com/nova-kit/nova-devtool/issues", - "source": "https://github.com/nova-kit/nova-devtool/tree/v1.3.0" + "source": "https://github.com/nova-kit/nova-devtool/tree/v1.6.0" }, - "time": "2023-09-04T23:51:35+00:00" + "abandoned": "laravel/nova-devtool", + "time": "2024-03-07T11:53:21+00:00" }, { "name": "nunomaduro/collision", - "version": "v7.10.0", + "version": "v7.11.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "49ec67fa7b002712da8526678abd651c09f375b2" + "reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/49ec67fa7b002712da8526678abd651c09f375b2", - "reference": "49ec67fa7b002712da8526678abd651c09f375b2", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/994ea93df5d4132f69d3f1bd74730509df6e8a05", + "reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05", "shasum": "" }, "require": { - "filp/whoops": "^2.15.3", + "filp/whoops": "^2.16.0", "nunomaduro/termwind": "^1.15.1", "php": "^8.1.0", - "symfony/console": "^6.3.4" + "symfony/console": "^6.4.12" }, "conflict": { "laravel/framework": ">=11.0.0" }, "require-dev": { - "brianium/paratest": "^7.3.0", - "laravel/framework": "^10.28.0", - "laravel/pint": "^1.13.3", - "laravel/sail": "^1.25.0", - "laravel/sanctum": "^3.3.1", - "laravel/tinker": "^2.8.2", - "nunomaduro/larastan": "^2.6.4", - "orchestra/testbench-core": "^8.13.0", - "pestphp/pest": "^2.23.2", - "phpunit/phpunit": "^10.4.1", - "sebastian/environment": "^6.0.1", - "spatie/laravel-ignition": "^2.3.1" + "brianium/paratest": "^7.3.1", + "laravel/framework": "^10.48.22", + "laravel/pint": "^1.18.1", + "laravel/sail": "^1.36.0", + "laravel/sanctum": "^3.3.3", + "laravel/tinker": "^2.10.0", + "nunomaduro/larastan": "^2.9.8", + "orchestra/testbench-core": "^8.28.3", + "pestphp/pest": "^2.35.1", + "phpunit/phpunit": "^10.5.36", + "sebastian/environment": "^6.1.0", + "spatie/laravel-ignition": "^2.8.0" }, "type": "library", "extra": { @@ -7564,48 +7722,48 @@ "type": "patreon" } ], - "time": "2023-10-11T15:45:01+00:00" + "time": "2024-10-15T15:12:40+00:00" }, { "name": "orchestra/canvas", - "version": "v8.8.0", + "version": "v8.12.0", "source": { "type": "git", "url": "https://github.com/orchestral/canvas.git", - "reference": "63f8c0964d52f32f0790e024b60a83ef3adaf345" + "reference": "76385dfcf96efae5f8533a4d522d14c3c946ac5a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/canvas/zipball/63f8c0964d52f32f0790e024b60a83ef3adaf345", - "reference": "63f8c0964d52f32f0790e024b60a83ef3adaf345", + "url": "https://api.github.com/repos/orchestral/canvas/zipball/76385dfcf96efae5f8533a4d522d14c3c946ac5a", + "reference": "76385dfcf96efae5f8533a4d522d14c3c946ac5a", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", "composer/semver": "^3.0", - "illuminate/database": "^10.17", - "illuminate/support": "^10.17", - "orchestra/canvas-core": "^8.7", + "illuminate/console": "^10.48.25", + "illuminate/database": "^10.48.25", + "illuminate/filesystem": "^10.48.25", + "illuminate/support": "^10.48.25", + "orchestra/canvas-core": "^8.10.2", + "orchestra/testbench-core": "^8.30", "php": "^8.1", + "symfony/polyfill-php83": "^1.31", "symfony/yaml": "^6.2" }, "require-dev": { - "laravel/framework": "^10.17", - "laravel/pint": "^1.6", + "laravel/framework": "^10.48.25", + "laravel/pint": "^1.17", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^8.9.1", - "phpstan/phpstan": "^1.10.5", - "phpunit/phpunit": "^10.1", - "spatie/laravel-ray": "^1.32.4" + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^10.5", + "spatie/laravel-ray": "^1.33" }, "bin": [ "canvas" ], "type": "library", "extra": { - "branch-alias": { - "dev-master": "9.0-dev" - }, "laravel": { "providers": [ "Orchestra\\Canvas\\LaravelServiceProvider" @@ -7634,50 +7792,54 @@ "description": "Code Generators for Laravel Applications and Packages", "support": { "issues": "https://github.com/orchestral/canvas/issues", - "source": "https://github.com/orchestral/canvas/tree/v8.8.0" + "source": "https://github.com/orchestral/canvas/tree/v8.12.0" }, - "time": "2023-09-13T06:04:41+00:00" + "time": "2024-11-30T15:38:25+00:00" }, { "name": "orchestra/canvas-core", - "version": "v8.7.0", + "version": "v8.10.2", "source": { "type": "git", "url": "https://github.com/orchestral/canvas-core.git", - "reference": "54e75ae77bc2462945399a6e3269ba4f7695e5e0" + "reference": "3af8fb6b1ebd85903ba5d0e6df1c81aedacfedfc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/canvas-core/zipball/54e75ae77bc2462945399a6e3269ba4f7695e5e0", - "reference": "54e75ae77bc2462945399a6e3269ba4f7695e5e0", + "url": "https://api.github.com/repos/orchestral/canvas-core/zipball/3af8fb6b1ebd85903ba5d0e6df1c81aedacfedfc", + "reference": "3af8fb6b1ebd85903ba5d0e6df1c81aedacfedfc", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", "composer/semver": "^3.0", - "illuminate/console": "^10.17", - "illuminate/filesystem": "^10.17", - "php": "^8.1" + "illuminate/console": "^10.38.1", + "illuminate/filesystem": "^10.38.1", + "php": "^8.1", + "symfony/polyfill-php83": "^1.28" }, "conflict": { - "orchestra/canvas": "<8.8.0", + "orchestra/canvas": "<8.11.0", "orchestra/testbench-core": "<8.2.0" }, "require-dev": { + "laravel/framework": "^10.38.1", "laravel/pint": "^1.6", - "orchestra/testbench": "^8.9", + "mockery/mockery": "^1.5.1", + "orchestra/testbench-core": "^8.19", "phpstan/phpstan": "^1.10.6", - "phpunit/phpunit": "^10.1" + "phpunit/phpunit": "^10.1", + "symfony/yaml": "^6.2" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "9.0-dev" - }, "laravel": { "providers": [ "Orchestra\\Canvas\\Core\\LaravelServiceProvider" ] + }, + "branch-alias": { + "dev-master": "9.0-dev" } }, "autoload": { @@ -7702,22 +7864,22 @@ "description": "Code Generators Builder for Laravel Applications and Packages", "support": { "issues": "https://github.com/orchestral/canvas/issues", - "source": "https://github.com/orchestral/canvas-core/tree/v8.7.0" + "source": "https://github.com/orchestral/canvas-core/tree/v8.10.2" }, - "time": "2023-09-13T05:54:41+00:00" + "time": "2023-12-28T01:27:59+00:00" }, { "name": "orchestra/dusk-updater", - "version": "v2.2.1", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/orchestral/dusk-updater.git", - "reference": "f407d18d7134c4d29e387f00909222f12a230670" + "reference": "0e63a1cb2dbc7379e7eefa90a397d1dbd864da3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/dusk-updater/zipball/f407d18d7134c4d29e387f00909222f12a230670", - "reference": "f407d18d7134c4d29e387f00909222f12a230670", + "url": "https://api.github.com/repos/orchestral/dusk-updater/zipball/0e63a1cb2dbc7379e7eefa90a397d1dbd864da3c", + "reference": "0e63a1cb2dbc7379e7eefa90a397d1dbd864da3c", "shasum": "" }, "require": { @@ -7727,14 +7889,18 @@ "ext-zip": "*", "guzzlehttp/guzzle": "^7.2", "php": "^8.0", - "symfony/console": "^6.0", + "symfony/console": "^6.0 || ^7.0", "symfony/polyfill-ctype": "^1.9", - "symfony/process": "^6.0" + "symfony/polyfill-php83": "^1.28", + "symfony/process": "^6.0 || ^7.0" + }, + "conflict": { + "laravel/dusk": "<6.0.0 || >=9.0.0" }, "require-dev": { - "laravel/dusk": "^7.6", + "laravel/dusk": "^6.0 || ^7.0 || ^8.0", "laravel/pint": "^1.4", - "phpstan/phpstan": "^1.10.7", + "phpstan/phpstan": "^1.11", "phpunit/phpunit": "^9.6" }, "bin": [ @@ -7748,7 +7914,7 @@ }, "autoload": { "files": [ - "src/helpers.php" + "src/functions.php" ], "psr-4": { "Orchestra\\DuskUpdater\\": "src/" @@ -7771,44 +7937,33 @@ "description": "Updater for Laravel Dusk ChromeDriver binaries", "support": { "issues": "https://github.com/orchestral/dusk-updater/issues", - "source": "https://github.com/orchestral/dusk-updater/tree/v2.2.1" + "source": "https://github.com/orchestral/dusk-updater/tree/v2.6.0" }, - "funding": [ - { - "url": "https://paypal.me/crynobone", - "type": "custom" - }, - { - "url": "https://liberapay.com/crynobone", - "type": "liberapay" - } - ], - "time": "2023-07-27T01:33:10+00:00" + "time": "2024-08-14T03:24:56+00:00" }, { "name": "orchestra/testbench", - "version": "v8.10.2", + "version": "v8.30.0", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "55dd97d7a8f7154c5660e71b9222e28485917719" + "reference": "f07822b047b130d8d49563114d972191e4748eda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/55dd97d7a8f7154c5660e71b9222e28485917719", - "reference": "55dd97d7a8f7154c5660e71b9222e28485917719", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/f07822b047b130d8d49563114d972191e4748eda", + "reference": "f07822b047b130d8d49563114d972191e4748eda", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": ">=10.17.0 <10.24.0", + "laravel/framework": "^10.48.25", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": ">=8.10.0 <8.11.0", - "orchestra/workbench": "^0.2.6", + "orchestra/testbench-core": "^8.31", + "orchestra/workbench": "^8.15", "php": "^8.1", "phpunit/phpunit": "^9.6 || ^10.1", - "spatie/laravel-ray": "^1.32.4", "symfony/process": "^6.2", "symfony/yaml": "^6.2", "vlucas/phpdotenv": "^5.4.1" @@ -7837,51 +7992,64 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v8.10.2" + "source": "https://github.com/orchestral/testbench/tree/v8.30.0" }, - "time": "2023-09-12T15:19:41+00:00" + "time": "2024-12-16T00:02:21+00:00" }, { "name": "orchestra/testbench-core", - "version": "v8.10.2", + "version": "v8.31.1", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "54071af200899a22e849aa4abe8019e8a1d8e826" + "reference": "0047be7fa66d6752f03d1ad1fb5677b816d5c00b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/54071af200899a22e849aa4abe8019e8a1d8e826", - "reference": "54071af200899a22e849aa4abe8019e8a1d8e826", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/0047be7fa66d6752f03d1ad1fb5677b816d5c00b", + "reference": "0047be7fa66d6752f03d1ad1fb5677b816d5c00b", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", - "php": "^8.1" + "php": "^8.1", + "symfony/polyfill-php83": "^1.31" + }, + "conflict": { + "brianium/paratest": "<6.4.0 || >=7.0.0 <7.1.4 || >=8.0.0", + "laravel/framework": "<10.48.25 || >=11.0.0", + "laravel/serializable-closure": "<1.3.0 || >=3.0.0", + "nunomaduro/collision": "<6.4.0 || >=7.0.0 <7.4.0 || >=8.0.0", + "orchestra/testbench-dusk": "<8.32.0 || >=9.0.0", + "orchestra/workbench": "<1.0.0", + "phpunit/phpunit": "<9.6.0 || >=10.3.0 <10.3.3 || >=10.6.0" }, "require-dev": { "fakerphp/faker": "^1.21", - "laravel/framework": "^10.17", - "laravel/pint": "^1.6", + "laravel/framework": "^10.48.25", + "laravel/pint": "^1.17", + "laravel/serializable-closure": "^1.3 || ^2.0", "mockery/mockery": "^1.5.1", - "phpstan/phpstan": "^1.10.7", + "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^10.1", - "spatie/laravel-ray": "^1.32.4", + "spatie/laravel-ray": "^1.39", "symfony/process": "^6.2", "symfony/yaml": "^6.2", "vlucas/phpdotenv": "^5.4.1" }, "suggest": { - "brianium/paratest": "Allow using parallel tresting (^6.4 || ^7.1.4).", + "brianium/paratest": "Allow using parallel testing (^6.4 || ^7.1.4).", + "ext-pcntl": "Required to use all features of the console signal trapping.", "fakerphp/faker": "Allow using Faker for testing (^1.21).", - "laravel/framework": "Required for testing (^10.17).", + "laravel/framework": "Required for testing (^10.48.25).", "mockery/mockery": "Allow using Mockery for testing (^1.5.1).", "nunomaduro/collision": "Allow using Laravel style tests output and parallel testing (^6.4 || ^7.4).", "orchestra/testbench-browser-kit": "Allow using legacy Laravel BrowserKit for testing (^8.0).", "orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^8.0).", "phpunit/phpunit": "Allow using PHPUnit for testing (^9.6 || ^10.1).", - "symfony/yaml": "Required for CLI Commander (^6.2).", - "vlucas/phpdotenv": "Required for CLI Commander (^5.4.1)." + "symfony/process": "Required to use Orchestra\\Testbench\\remote function (^6.2).", + "symfony/yaml": "Required for Testbench CLI (^6.2).", + "vlucas/phpdotenv": "Required for Testbench CLI (^5.4.1)." }, "bin": [ "testbench" @@ -7889,7 +8057,7 @@ "type": "library", "autoload": { "files": [ - "src/helpers.php" + "src/functions.php" ], "psr-4": { "Orchestra\\Testbench\\": "src/" @@ -7920,49 +8088,46 @@ "issues": "https://github.com/orchestral/testbench/issues", "source": "https://github.com/orchestral/testbench-core" }, - "time": "2023-09-14T02:44:47+00:00" + "time": "2024-12-19T00:09:06+00:00" }, { "name": "orchestra/testbench-dusk", - "version": "v8.10.0", + "version": "v8.33.0", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-dusk.git", - "reference": "e6e3ef373453ac986f668c49708e29794f8181ad" + "reference": "2909866d918bda5f65d62e56d883a78bf13707dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-dusk/zipball/e6e3ef373453ac986f668c49708e29794f8181ad", - "reference": "e6e3ef373453ac986f668c49708e29794f8181ad", + "url": "https://api.github.com/repos/orchestral/testbench-dusk/zipball/2909866d918bda5f65d62e56d883a78bf13707dd", + "reference": "2909866d918bda5f65d62e56d883a78bf13707dd", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", - "konsulting/project-root": "^1.1", - "laravel/dusk": "^7.9", - "laravel/serializable-closure": "^1.0", - "orchestra/dusk-updater": "^2.2.1", - "orchestra/testbench": ">=8.10.0 <8.11.0", + "laravel/dusk": "^7.13 || ^8.1", + "laravel/serializable-closure": "^1.3 || ^2.0", + "orchestra/dusk-updater": "^2.6", + "orchestra/testbench": "^8.30", + "orchestra/testbench-core": "^8.31", "php": "^8.1", - "php-webdriver/webdriver": "^1.9" + "php-webdriver/webdriver": "^1.9", + "symfony/polyfill-php83": "^1.31" }, "require-dev": { - "laravel/pint": "^1.6", - "phpstan/phpstan": "^1.10.7", + "laravel/pint": "^1.17", + "laravel/tinker": "^2.9", + "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^10.1" }, "bin": [ "testbench-dusk" ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "8.0-dev" - } - }, "autoload": { "files": [ - "src/helpers.php" + "src/functions.php" ], "psr-4": { "Orchestra\\Testbench\\Dusk\\": "src/" @@ -7989,45 +8154,48 @@ "description": "Laravel Dusk Testing Helper for Packages Development", "support": { "issues": "https://github.com/orchestral/testbench-dusk/issues", - "source": "https://github.com/orchestral/testbench-dusk/tree/v8.10.0" + "source": "https://github.com/orchestral/testbench-dusk/tree/v8.33.0" }, - "time": "2023-08-29T06:21:03+00:00" + "time": "2024-12-16T00:33:53+00:00" }, { "name": "orchestra/workbench", - "version": "v0.2.6", + "version": "v8.15.2", "source": { "type": "git", "url": "https://github.com/orchestral/workbench.git", - "reference": "9cb449695fde6f7150c58dd4b112ff6d162fb66f" + "reference": "04902632fe1530a0233affc241a420e37e820eb3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/workbench/zipball/9cb449695fde6f7150c58dd4b112ff6d162fb66f", - "reference": "9cb449695fde6f7150c58dd4b112ff6d162fb66f", + "url": "https://api.github.com/repos/orchestral/workbench/zipball/04902632fe1530a0233affc241a420e37e820eb3", + "reference": "04902632fe1530a0233affc241a420e37e820eb3", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", - "illuminate/console": "^9.52.15 || ^10.17.0", - "illuminate/support": "^9.52.15 || ^10.17.0", + "fakerphp/faker": "^1.21", + "laravel/framework": "^10.48.25", "laravel/tinker": "^2.8.2", - "orchestra/canvas": "^7.8 || ^8.7", - "orchestra/testbench-core": "^7.30.0 || ^8.10.0", - "php": "^8.0" + "nunomaduro/collision": "^6.4 || ^7.10", + "orchestra/canvas": "^8.11.9", + "orchestra/testbench-core": "^8.31.1", + "php": "^8.1", + "symfony/polyfill-php83": "^1.31", + "symfony/process": "^6.2", + "symfony/yaml": "^6.2" }, "require-dev": { - "laravel/pint": "^1.4", - "orchestra/testbench": "^7.30.0 || ^8.10.0", - "phpstan/phpstan": "^1.10.7", - "phpunit/phpunit": "^9.6" + "laravel/pint": "^1.17", + "mockery/mockery": "^1.5.1", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^10.1", + "spatie/laravel-ray": "^1.39" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.2.x-dev" - } + "suggest": { + "ext-pcntl": "Required to use all features of the console signal trapping." }, + "type": "library", "autoload": { "psr-4": { "Orchestra\\Workbench\\": "src/" @@ -8052,42 +8220,43 @@ ], "support": { "issues": "https://github.com/orchestral/workbench/issues", - "source": "https://github.com/orchestral/workbench/tree/v0.2.6" + "source": "https://github.com/orchestral/workbench/tree/v8.15.2" }, - "time": "2023-09-05T00:41:58+00:00" + "time": "2024-12-19T00:31:47+00:00" }, { "name": "pestphp/pest", - "version": "v2.35.1", + "version": "v2.36.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "b13acb630df52c06123588d321823c31fc685545" + "reference": "f8c88bd14dc1772bfaf02169afb601ecdf2724cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/b13acb630df52c06123588d321823c31fc685545", - "reference": "b13acb630df52c06123588d321823c31fc685545", + "url": "https://api.github.com/repos/pestphp/pest/zipball/f8c88bd14dc1772bfaf02169afb601ecdf2724cd", + "reference": "f8c88bd14dc1772bfaf02169afb601ecdf2724cd", "shasum": "" }, "require": { "brianium/paratest": "^7.3.1", - "nunomaduro/collision": "^7.10.0|^8.4.0", - "nunomaduro/termwind": "^1.15.1|^2.0.1", + "nunomaduro/collision": "^7.11.0|^8.4.0", + "nunomaduro/termwind": "^1.16.0|^2.1.0", "pestphp/pest-plugin": "^2.1.1", "pestphp/pest-plugin-arch": "^2.7.0", "php": "^8.1.0", - "phpunit/phpunit": "^10.5.17" + "phpunit/phpunit": "^10.5.36" }, "conflict": { - "phpunit/phpunit": ">10.5.17", + "filp/whoops": "<2.16.0", + "phpunit/phpunit": ">10.5.36", "sebastian/exporter": "<5.1.0", "webmozart/assert": "<1.11.0" }, "require-dev": { - "pestphp/pest-dev-tools": "^2.16.0", - "pestphp/pest-plugin-type-coverage": "^2.8.5", - "symfony/process": "^6.4.0|^7.1.3" + "pestphp/pest-dev-tools": "^2.17.0", + "pestphp/pest-plugin-type-coverage": "^2.8.7", + "symfony/process": "^6.4.0|^7.1.5" }, "bin": [ "bin/pest" @@ -8150,7 +8319,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v2.35.1" + "source": "https://github.com/pestphp/pest/tree/v2.36.0" }, "funding": [ { @@ -8162,7 +8331,7 @@ "type": "github" } ], - "time": "2024-08-20T21:41:50+00:00" + "time": "2024-10-15T15:30:56+00:00" }, { "name": "pestphp/pest-plugin", @@ -8307,30 +8476,35 @@ }, { "name": "pestphp/pest-plugin-laravel", - "version": "v2.2.0", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-laravel.git", - "reference": "77a2838c1d3b09d147211e76a48987ba9a758279" + "reference": "53df51169a7f9595e06839cce638c73e59ace5e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-laravel/zipball/77a2838c1d3b09d147211e76a48987ba9a758279", - "reference": "77a2838c1d3b09d147211e76a48987ba9a758279", + "url": "https://api.github.com/repos/pestphp/pest-plugin-laravel/zipball/53df51169a7f9595e06839cce638c73e59ace5e8", + "reference": "53df51169a7f9595e06839cce638c73e59ace5e8", "shasum": "" }, "require": { - "laravel/framework": "^10.18.0|^11.0", - "pestphp/pest": "^2.13.0", + "laravel/framework": "^10.48.9|^11.5.0", + "pestphp/pest": "^2.34.7", "php": "^8.1.0" }, "require-dev": { - "laravel/dusk": "^7.9.3", - "orchestra/testbench": "^8.6.3", - "pestphp/pest-dev-tools": "^2.14.0" + "laravel/dusk": "^7.13.0", + "orchestra/testbench": "^8.22.3|^9.0.4", + "pestphp/pest-dev-tools": "^2.16.0" }, "type": "library", "extra": { + "pest": { + "plugins": [ + "Pest\\Laravel\\Plugin" + ] + }, "laravel": { "providers": [ "Pest\\Laravel\\PestServiceProvider" @@ -8360,7 +8534,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-laravel/tree/v2.2.0" + "source": "https://github.com/pestphp/pest-plugin-laravel/tree/v2.4.0" }, "funding": [ { @@ -8372,7 +8546,7 @@ "type": "github" } ], - "time": "2023-08-10T15:37:09+00:00" + "time": "2024-04-27T10:41:54+00:00" }, { "name": "pestphp/pest-plugin-mock", @@ -8690,16 +8864,16 @@ }, { "name": "php-webdriver/webdriver", - "version": "1.14.0", + "version": "1.15.2", "source": { "type": "git", "url": "https://github.com/php-webdriver/php-webdriver.git", - "reference": "3ea4f924afb43056bf9c630509e657d951608563" + "reference": "998e499b786805568deaf8cbf06f4044f05d91bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/3ea4f924afb43056bf9c630509e657d951608563", - "reference": "3ea4f924afb43056bf9c630509e657d951608563", + "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/998e499b786805568deaf8cbf06f4044f05d91bf", + "reference": "998e499b786805568deaf8cbf06f4044f05d91bf", "shasum": "" }, "require": { @@ -8708,7 +8882,7 @@ "ext-zip": "*", "php": "^7.3 || ^8.0", "symfony/polyfill-mbstring": "^1.12", - "symfony/process": "^5.0 || ^6.0" + "symfony/process": "^5.0 || ^6.0 || ^7.0" }, "replace": { "facebook/webdriver": "*" @@ -8721,7 +8895,7 @@ "php-parallel-lint/php-parallel-lint": "^1.2", "phpunit/phpunit": "^9.3", "squizlabs/php_codesniffer": "^3.5", - "symfony/var-dumper": "^5.0 || ^6.0" + "symfony/var-dumper": "^5.0 || ^6.0 || ^7.0" }, "suggest": { "ext-SimpleXML": "For Firefox profile creation" @@ -8750,9 +8924,9 @@ ], "support": { "issues": "https://github.com/php-webdriver/php-webdriver/issues", - "source": "https://github.com/php-webdriver/php-webdriver/tree/1.14.0" + "source": "https://github.com/php-webdriver/php-webdriver/tree/1.15.2" }, - "time": "2023-02-09T12:12:19+00:00" + "time": "2024-11-21T15:12:59+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -8809,16 +8983,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.4.1", + "version": "5.6.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" + "reference": "e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8", + "reference": "e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8", "shasum": "" }, "require": { @@ -8827,17 +9001,17 @@ "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7", + "phpstan/phpdoc-parser": "^1.7|^2.0", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.5", + "mockery/mockery": "~1.3.5 || ~1.6.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8", "phpstan/phpstan-mockery": "^1.1", "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^5.13" + "psalm/phar": "^5.26" }, "type": "library", "extra": { @@ -8867,29 +9041,29 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.1" }, - "time": "2024-05-21T05:55:05+00:00" + "time": "2024-12-07T09:39:29+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.8.2", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "153ae662783729388a584b4361f2545e4d841e3c" + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", - "reference": "153ae662783729388a584b4361f2545e4d841e3c", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a", + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a", "shasum": "" }, "require": { "doctrine/deprecations": "^1.0", "php": "^7.3 || ^8.0", "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.13" + "phpstan/phpdoc-parser": "^1.18|^2.0" }, "require-dev": { "ext-tokenizer": "*", @@ -8925,36 +9099,36 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.10.0" }, - "time": "2024-02-23T11:10:43+00:00" + "time": "2024-11-09T15:12:26+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.33.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140" + "reference": "c00d78fb6b29658347f9d37ebe104bffadf36299" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/c00d78fb6b29658347f9d37ebe104bffadf36299", + "reference": "c00d78fb6b29658347f9d37ebe104bffadf36299", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^5.3.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "symfony/process": "^5.2" }, "type": "library", @@ -8972,67 +9146,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0" - }, - "time": "2024-10-13T11:25:22+00:00" - }, - { - "name": "phpstan/phpstan", - "version": "1.12.0", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "384af967d35b2162f69526c7276acadce534d0e1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", - "reference": "384af967d35b2162f69526c7276acadce534d0e1", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0" - }, - "conflict": { - "phpstan/phpstan-shim": "*" - }, - "bin": [ - "phpstan", - "phpstan.phar" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPStan - PHP Static Analysis Tool", - "keywords": [ - "dev", - "static analysis" - ], - "support": { - "docs": "https://phpstan.org/user-guide/getting-started", - "forum": "https://github.com/phpstan/phpstan/discussions", - "issues": "https://github.com/phpstan/phpstan/issues", - "security": "https://github.com/phpstan/phpstan/security/policy", - "source": "https://github.com/phpstan/phpstan-src" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.0.0" }, - "funding": [ - { - "url": "https://github.com/ondrejmirtes", - "type": "github" - }, - { - "url": "https://github.com/phpstan", - "type": "github" - } - ], - "time": "2024-08-27T09:18:05+00:00" + "time": "2024-10-13T11:29:49+00:00" }, { "name": "phpunit/php-code-coverage", @@ -9357,16 +9473,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.17", + "version": "10.5.36", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c1f736a473d21957ead7e94fcc029f571895abf5" + "reference": "aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c1f736a473d21957ead7e94fcc029f571895abf5", - "reference": "c1f736a473d21957ead7e94fcc029f571895abf5", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870", + "reference": "aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870", "shasum": "" }, "require": { @@ -9376,26 +9492,26 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.5", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-invoker": "^4.0", - "phpunit/php-text-template": "^3.0", - "phpunit/php-timer": "^6.0", - "sebastian/cli-parser": "^2.0", - "sebastian/code-unit": "^2.0", - "sebastian/comparator": "^5.0", - "sebastian/diff": "^5.0", - "sebastian/environment": "^6.0", - "sebastian/exporter": "^5.1", - "sebastian/global-state": "^6.0.1", - "sebastian/object-enumerator": "^5.0", - "sebastian/recursion-context": "^5.0", - "sebastian/type": "^4.0", - "sebastian/version": "^4.0" + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.2", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" }, "suggest": { "ext-soap": "To be able to generate mocks based on WSDL files" @@ -9438,7 +9554,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.17" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.36" }, "funding": [ { @@ -9454,7 +9570,7 @@ "type": "tidelift" } ], - "time": "2024-04-05T04:39:01+00:00" + "time": "2024-10-08T15:36:51+00:00" }, { "name": "psr/http-client", @@ -9618,25 +9734,25 @@ }, { "name": "psy/psysh", - "version": "v0.11.21", + "version": "v0.12.7", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "bcb22101107f3bf770523b65630c9d547f60c540" + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/bcb22101107f3bf770523b65630c9d547f60c540", - "reference": "bcb22101107f3bf770523b65630c9d547f60c540", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", + "reference": "d73fa3c74918ef4522bb8a3bf9cab39161c4b57c", "shasum": "" }, "require": { "ext-json": "*", "ext-tokenizer": "*", - "nikic/php-parser": "^4.0 || ^3.1", - "php": "^8.0 || ^7.0.8", - "symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.4", - "symfony/var-dumper": "^6.0 || ^5.0 || ^4.0 || ^3.4" + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" }, "conflict": { "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" @@ -9647,20 +9763,19 @@ "suggest": { "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", "ext-pdo-sqlite": "The doc command requires SQLite to work.", - "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", - "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." }, "bin": [ "bin/psysh" ], "type": "library", "extra": { - "branch-alias": { - "dev-main": "0.11.x-dev" - }, "bamarni-bin": { "bin-links": false, "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" } }, "autoload": { @@ -9692,9 +9807,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.11.21" + "source": "https://github.com/bobthecow/psysh/tree/v0.12.7" }, - "time": "2023-09-17T21:15:54+00:00" + "time": "2024-12-10T01:58:33+00:00" }, { "name": "ralouphie/getallheaders", @@ -9740,65 +9855,6 @@ }, "time": "2019-03-08T08:55:37+00:00" }, - { - "name": "rector/rector", - "version": "1.2.4", - "source": { - "type": "git", - "url": "https://github.com/rectorphp/rector.git", - "reference": "42a4aa23b48b4cfc8ebfeac2b570364e27744381" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/42a4aa23b48b4cfc8ebfeac2b570364e27744381", - "reference": "42a4aa23b48b4cfc8ebfeac2b570364e27744381", - "shasum": "" - }, - "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.11.11" - }, - "conflict": { - "rector/rector-doctrine": "*", - "rector/rector-downgrade-php": "*", - "rector/rector-phpunit": "*", - "rector/rector-symfony": "*" - }, - "suggest": { - "ext-dom": "To manipulate phpunit.xml via the custom-rule command" - }, - "bin": [ - "bin/rector" - ], - "type": "library", - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Instant Upgrade and Automated Refactoring of any PHP code", - "keywords": [ - "automation", - "dev", - "migration", - "refactoring" - ], - "support": { - "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/1.2.4" - }, - "funding": [ - { - "url": "https://github.com/tomasvotruba", - "type": "github" - } - ], - "time": "2024-08-23T09:03:01+00:00" - }, { "name": "sebastian/cli-parser", "version": "2.0.1", @@ -9969,16 +10025,16 @@ }, { "name": "sebastian/comparator", - "version": "5.0.2", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53" + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53", - "reference": "2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", "shasum": "" }, "require": { @@ -9989,7 +10045,7 @@ "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^10.4" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { @@ -10034,7 +10090,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.2" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.3" }, "funding": [ { @@ -10042,7 +10098,7 @@ "type": "github" } ], - "time": "2024-08-12T06:03:08+00:00" + "time": "2024-10-18T14:56:07+00:00" }, { "name": "sebastian/complexity", @@ -10717,27 +10773,27 @@ }, { "name": "spatie/backtrace", - "version": "1.6.2", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/spatie/backtrace.git", - "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9" + "reference": "0f2477c520e3729de58e061b8192f161c99f770b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/backtrace/zipball/1a9a145b044677ae3424693f7b06479fc8c137a9", - "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/0f2477c520e3729de58e061b8192f161c99f770b", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b", "shasum": "" }, "require": { - "php": "^7.3|^8.0" + "php": "^7.3 || ^8.0" }, "require-dev": { "ext-json": "*", - "laravel/serializable-closure": "^1.3", - "phpunit/phpunit": "^9.3", - "spatie/phpunit-snapshot-assertions": "^4.2", - "symfony/var-dumper": "^5.1" + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" }, "type": "library", "autoload": { @@ -10764,7 +10820,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/backtrace/tree/1.6.2" + "source": "https://github.com/spatie/backtrace/tree/1.7.1" }, "funding": [ { @@ -10776,54 +10832,55 @@ "type": "other" } ], - "time": "2024-07-22T08:21:24+00:00" + "time": "2024-12-02T13:28:15+00:00" }, { "name": "spatie/laravel-ray", - "version": "1.37.1", + "version": "1.39.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-ray.git", - "reference": "c2bedfd1172648df2c80aaceb2541d70f1d9a5b9" + "reference": "31b601f98590606d20e76b5dd68578dc1642cd2c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/c2bedfd1172648df2c80aaceb2541d70f1d9a5b9", - "reference": "c2bedfd1172648df2c80aaceb2541d70f1d9a5b9", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/31b601f98590606d20e76b5dd68578dc1642cd2c", + "reference": "31b601f98590606d20e76b5dd68578dc1642cd2c", "shasum": "" }, "require": { + "composer-runtime-api": "^2.2", "ext-json": "*", - "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/database": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/queue": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0", - "php": "^7.4|^8.0", - "rector/rector": "^0.19.2|^1.0", + "illuminate/contracts": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/database": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/queue": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/support": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "php": "^7.4 || ^8.0", "spatie/backtrace": "^1.0", - "spatie/ray": "^1.41.1", - "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0", - "zbateson/mail-mime-parser": "^1.3.1|^2.0|^3.0" + "spatie/ray": "^1.41.3", + "symfony/stopwatch": "4.2 || ^5.1 || ^6.0 || ^7.0", + "zbateson/mail-mime-parser": "^1.3.1 || ^2.0 || ^3.0" }, "require-dev": { "guzzlehttp/guzzle": "^7.3", - "laravel/framework": "^7.20|^8.19|^9.0|^10.0|^11.0", - "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.22|^2.0", - "phpstan/phpstan": "^1.10.57", - "phpunit/phpunit": "^9.3|^10.1", - "spatie/pest-plugin-snapshots": "^1.1|^2.0", - "symfony/var-dumper": "^4.2|^5.1|^6.0|^7.0.3" + "laravel/framework": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "orchestra/testbench-core": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "pestphp/pest": "^1.22 || ^2.0", + "phpstan/phpstan": "^1.10.57 || ^2.0.2", + "phpunit/phpunit": "^9.3 || ^10.1", + "rector/rector": "dev-main", + "spatie/pest-plugin-snapshots": "^1.1 || ^2.0", + "symfony/var-dumper": "^4.2 || ^5.1 || ^6.0 || ^7.0.3" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.x-dev" - }, "laravel": { "providers": [ "Spatie\\LaravelRay\\RayServiceProvider" ] + }, + "branch-alias": { + "dev-main": "1.x-dev" } }, "autoload": { @@ -10851,7 +10908,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-ray/issues", - "source": "https://github.com/spatie/laravel-ray/tree/1.37.1" + "source": "https://github.com/spatie/laravel-ray/tree/1.39.0" }, "funding": [ { @@ -10863,7 +10920,7 @@ "type": "other" } ], - "time": "2024-07-12T12:35:17+00:00" + "time": "2024-12-11T09:34:41+00:00" }, { "name": "spatie/macroable", @@ -10917,35 +10974,35 @@ }, { "name": "spatie/ray", - "version": "1.41.2", + "version": "1.41.4", "source": { "type": "git", "url": "https://github.com/spatie/ray.git", - "reference": "c44f8cfbf82c69909b505de61d8d3f2d324e93fc" + "reference": "c5dbda0548c1881b30549ccc0b6d485f7471aaa5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/ray/zipball/c44f8cfbf82c69909b505de61d8d3f2d324e93fc", - "reference": "c44f8cfbf82c69909b505de61d8d3f2d324e93fc", + "url": "https://api.github.com/repos/spatie/ray/zipball/c5dbda0548c1881b30549ccc0b6d485f7471aaa5", + "reference": "c5dbda0548c1881b30549ccc0b6d485f7471aaa5", "shasum": "" }, "require": { "ext-curl": "*", "ext-json": "*", - "php": "^7.3|^8.0", - "ramsey/uuid": "^3.0|^4.1", + "php": "^7.4 || ^8.0", + "ramsey/uuid": "^3.0 || ^4.1", "spatie/backtrace": "^1.1", - "spatie/macroable": "^1.0|^2.0", - "symfony/stopwatch": "^4.0|^5.1|^6.0|^7.0", - "symfony/var-dumper": "^4.2|^5.1|^6.0|^7.0.3" + "spatie/macroable": "^1.0 || ^2.0", + "symfony/stopwatch": "^4.2 || ^5.1 || ^6.0 || ^7.0", + "symfony/var-dumper": "^4.2 || ^5.1 || ^6.0 || ^7.0.3" }, "require-dev": { - "illuminate/support": "6.x|^8.18|^9.0", + "illuminate/support": "^7.20 || ^8.18 || ^9.0 || ^10.0 || ^11.0", "nesbot/carbon": "^2.63", "pestphp/pest": "^1.22", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^1.10.57 || ^2.0.2", "phpunit/phpunit": "^9.5", - "rector/rector": "^0.19.2", + "rector/rector": "dev-main", "spatie/phpunit-snapshot-assertions": "^4.2", "spatie/test-time": "^1.2" }, @@ -10986,7 +11043,7 @@ ], "support": { "issues": "https://github.com/spatie/ray/issues", - "source": "https://github.com/spatie/ray/tree/1.41.2" + "source": "https://github.com/spatie/ray/tree/1.41.4" }, "funding": [ { @@ -10998,7 +11055,7 @@ "type": "other" } ], - "time": "2024-04-24T14:21:46+00:00" + "time": "2024-12-09T11:32:15+00:00" }, { "name": "symfony/polyfill-iconv", @@ -11026,8 +11083,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -11082,20 +11139,20 @@ }, { "name": "symfony/stopwatch", - "version": "v6.4.8", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "63e069eb616049632cde9674c46957819454b8aa" + "reference": "696f418b0d722a4225e1c3d95489d262971ca924" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/63e069eb616049632cde9674c46957819454b8aa", - "reference": "63e069eb616049632cde9674c46957819454b8aa", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/696f418b0d722a4225e1c3d95489d262971ca924", + "reference": "696f418b0d722a4225e1c3d95489d262971ca924", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/service-contracts": "^2.5|^3" }, "type": "library", @@ -11124,7 +11181,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.4.8" + "source": "https://github.com/symfony/stopwatch/tree/v7.2.0" }, "funding": [ { @@ -11140,20 +11197,20 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/yaml", - "version": "v6.3.3", + "version": "v6.4.13", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add" + "reference": "e99b4e94d124b29ee4cf3140e1b537d2dad8cec9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e23292e8c07c85b971b44c1c4b87af52133e2add", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add", + "url": "https://api.github.com/repos/symfony/yaml/zipball/e99b4e94d124b29ee4cf3140e1b537d2dad8cec9", + "reference": "e99b4e94d124b29ee4cf3140e1b537d2dad8cec9", "shasum": "" }, "require": { @@ -11165,7 +11222,7 @@ "symfony/console": "<5.4" }, "require-dev": { - "symfony/console": "^5.4|^6.0" + "symfony/console": "^5.4|^6.0|^7.0" }, "bin": [ "Resources/bin/yaml-lint" @@ -11196,7 +11253,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.3.3" + "source": "https://github.com/symfony/yaml/tree/v6.4.13" }, "funding": [ { @@ -11212,7 +11269,7 @@ "type": "tidelift" } ], - "time": "2023-07-31T07:08:24+00:00" + "time": "2024-09-25T14:18:03+00:00" }, { "name": "ta-tikoma/phpunit-architecture-test", @@ -11323,77 +11380,6 @@ ], "time": "2024-03-03T12:36:25+00:00" }, - { - "name": "whitecube/nova-flexible-content", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/whitecube/nova-flexible-content.git", - "reference": "a887ddbc1ef597cac4987b7f3ebdde78958b1fca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/whitecube/nova-flexible-content/zipball/a887ddbc1ef597cac4987b7f3ebdde78958b1fca", - "reference": "a887ddbc1ef597cac4987b7f3ebdde78958b1fca", - "shasum": "" - }, - "require": { - "ext-json": "*", - "laravel/framework": "^8.0|^9.0|^10.0|^11.0", - "laravel/nova": "^4.0", - "nova-kit/nova-packages-tool": "^1.3.1", - "php": "^7.3|^8.0" - }, - "require-dev": { - "laravel/pint": "^1.2", - "phpunit/phpunit": "^9.5", - "psalm/plugin-laravel": "^2.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Whitecube\\NovaFlexibleContent\\FieldServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Whitecube\\NovaFlexibleContent\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Toon Van den Bos", - "email": "toon@whitecube.be" - } - ], - "description": "Flexible Content & Repeater Fields for Laravel Nova.", - "keywords": [ - "Flexible", - "field", - "group", - "laravel", - "layout", - "nova", - "repeat" - ], - "support": { - "issues": "https://github.com/whitecube/nova-flexible-content/issues", - "source": "https://github.com/whitecube/nova-flexible-content/tree/v1.1.1" - }, - "funding": [ - { - "url": "https://github.com/whitecube", - "type": "github" - } - ], - "time": "2024-04-09T15:27:06+00:00" - }, { "name": "zbateson/mail-mime-parser", "version": "3.0.3", @@ -11605,13 +11591,13 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": true, "prefer-lowest": false, "platform": { "php": "^8.0", "ext-json": "*" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/workbench/app/Models/Page.php b/workbench/app/Models/Page.php index 2b21e65..2891a61 100644 --- a/workbench/app/Models/Page.php +++ b/workbench/app/Models/Page.php @@ -11,7 +11,7 @@ class Page extends Model { - use HasFlexible; +// use HasFlexible; protected $fillable = [ 'title', From 00ed76bd725066da30c791349e904d0c6c4502f2 Mon Sep 17 00:00:00 2001 From: mikaelpopowicz Date: Thu, 19 Dec 2024 13:26:54 +0000 Subject: [PATCH 2/2] build(bot): build tool assets --- dist/js/tool.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/js/tool.js b/dist/js/tool.js index 4f83560..a50dfa0 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1,15 +1,15 @@ -(function(o,oa){typeof exports=="object"&&typeof module<"u"?oa(require("vue")):typeof define=="function"&&define.amd?define(["vue"],oa):(o=typeof globalThis<"u"?globalThis:o||self,oa(o.Vue))})(this,function(o){"use strict";var oa=!1,cl={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_0e4b9239-34ca-49e6-bf37-981777bd248f",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.7.0 node/v18.20.4 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_0e4b9239-34ca-49e6-bf37-981777bd248f",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.4/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.10.2",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.1.12297006",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"598",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241015.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.8/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.2/x64",JOURNAL_STREAM:"8:19145",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.4/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.4/x64",npm_config_npm_version:"10.7.0",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"11457154462",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"06ba91f208c08f5c0d40e21a41f1da10f4f4e133",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_c31c40ab-205b-432d-9bbf-a7bb49ad664a",INVOCATION_ID:"a410064bbc5a49569fa13ba43699ccd7",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.4/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"690",GITHUB_TRIGGERING_ACTOR:"Rezrazi",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.1.12297006",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"06ba91f208c08f5c0d40e21a41f1da10f4f4e133",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"Rezrazi",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.4/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_0e4b9239-34ca-49e6-bf37-981777bd248f",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"2086576",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_0e4b9239-34ca-49e6-bf37-981777bd248f",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.4/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.1.12297006",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.1.12297006",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_0e4b9239-34ca-49e6-bf37-981777bd248f",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};let dl;const Qa=e=>dl=e,ul=Symbol();function es(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var aa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(aa||(aa={}));function Wf(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],a=[];const r=o.markRaw({install(i){Qa(r),r._a=i,i.provide(ul,r),i.config.globalProperties.$pinia=r,a.forEach(s=>n.push(s)),a=[]},use(i){return!this._a&&!oa?a.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fl=()=>{};function pl(e,t,n,a=fl){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),a())};return!n&&o.getCurrentScope()&&o.onScopeDispose(r),r}function wo(e,...t){e.slice().forEach(n=>{n(...t)})}function ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],r=e[n];es(r)&&es(a)&&e.hasOwnProperty(n)&&!o.isRef(a)&&!o.isReactive(a)?e[n]=ts(r,a):e[n]=a}return e}const Kf=Symbol();function Xf(e){return!es(e)||!e.hasOwnProperty(Kf)}const{assign:xn}=Object;function Yf(e){return!!(o.isRef(e)&&e.effect)}function Jf(e,t,n,a){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let c;function d(){!l&&cl.NODE_ENV==="production"&&(n.state.value[e]=r?r():{});const f=o.toRefs(n.state.value[e]);return xn(f,i,Object.keys(s||{}).reduce((p,h)=>(p[h]=o.markRaw(o.computed(()=>{Qa(n);const v=n._s.get(e);return s[h].call(v,v)})),p),{}))}return c=hl(e,d,t,n,a,!0),c}function hl(e,t,n={},a,r,i){let s;const l=xn({actions:{}},n),c={deep:!0};let d,f,p=o.markRaw([]),h=o.markRaw([]),v;const u=a.state.value[e];!i&&!u&&cl.NODE_ENV==="production"&&(a.state.value[e]={}),o.ref({});let m;function y(I){let D;d=f=!1,typeof I=="function"?(I(a.state.value[e]),D={type:aa.patchFunction,storeId:e,events:v}):(ts(a.state.value[e],I),D={type:aa.patchObject,payload:I,storeId:e,events:v});const A=m=Symbol();o.nextTick().then(()=>{m===A&&(d=!0)}),f=!0,wo(p,D,a.state.value[e])}const b=i?function(){const{state:D}=n,A=D?D():{};this.$patch(_=>{xn(_,A)})}:fl;function g(){s.stop(),p=[],h=[],a._s.delete(e)}function T(I,D){return function(){Qa(a);const A=Array.from(arguments),_=[],M=[];function K(H){_.push(H)}function B(H){M.push(H)}wo(h,{args:A,name:I,store:S,after:K,onError:B});let j;try{j=D.apply(this&&this.$id===e?this:S,A)}catch(H){throw wo(M,H),H}return j instanceof Promise?j.then(H=>(wo(_,H),H)).catch(H=>(wo(M,H),Promise.reject(H))):(wo(_,j),j)}}const O={_p:a,$id:e,$onAction:pl.bind(null,h),$patch:y,$reset:b,$subscribe(I,D={}){const A=pl(p,I,D.detached,()=>_()),_=s.run(()=>o.watch(()=>a.state.value[e],M=>{(D.flush==="sync"?f:d)&&I({storeId:e,type:aa.direct,events:v},M)},xn({},c,D)));return A},$dispose:g},S=o.reactive(O);a._s.set(e,S);const N=a._e.run(()=>(s=o.effectScope(),s.run(()=>t())));for(const I in N){const D=N[I];if(o.isRef(D)&&!Yf(D)||o.isReactive(D))i||(u&&Xf(D)&&(o.isRef(D)?D.value=u[I]:ts(D,u[I])),a.state.value[e][I]=D);else if(typeof D=="function"){const A=T(I,D);N[I]=A,l.actions[I]=D}}return xn(S,N),xn(o.toRaw(S),N),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:I=>{y(D=>{xn(D,I)})}}),a._p.forEach(I=>{xn(S,s.run(()=>I({store:S,app:a._a,pinia:a,options:l})))}),u&&i&&n.hydrate&&n.hydrate(S.$state,u),d=!0,f=!0,S}function ns(e,t,n){let a,r;const i=typeof t=="function";typeof e=="string"?(a=e,r=i?n:t):(r=e,a=e.id);function s(l,c){const d=o.getCurrentInstance();return l=l||d&&o.inject(ul,null),l&&Qa(l),l=dl,l._s.has(a)||(i?hl(a,t,r,l):Jf(a,r,l)),l._s.get(a)}return s.$id=a,s}function Qf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(){return e(this.$pinia)[a]},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(){const r=e(this.$pinia),i=t[a];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function Zf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[a](...r)},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[t[a]](...r)},n),{})}function qf(e){{e=o.toRaw(e);const t={};for(const n in e){const a=e[n];(o.isRef(a)||o.isReactive(a))&&(t[n]=o.toRef(e,n))}return t}}function $f(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])}function ep(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function Za(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function ml(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function os(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function tp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})])}function np(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function as(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function op(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})])}function ra(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function vl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function gl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function ap(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function sp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}function ip(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function lp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})])}function cp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})])}function dp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})])}function bl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})])}function ss(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}function yl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z","clip-rule":"evenodd"})])}function up(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"})])}function fp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z","clip-rule":"evenodd"})])}function pp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z","clip-rule":"evenodd"})])}function hp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z","clip-rule":"evenodd"})])}function mp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function vp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.5 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function El(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function gp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function bp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z","clip-rule":"evenodd"})])}function yp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z","clip-rule":"evenodd"})])}const is=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},Ep={},wp={class:"text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},xp=[o.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)];function Sp(e,t){return o.openBlock(),o.createElementBlock("svg",wp,xp)}const xo=is(Ep,[["render",Sp]]),wl=o.defineComponent({__name:"ImageLoader",props:{src:{},alt:{},isThumbnail:{type:Boolean,default:!0}},emits:["missing"],setup(e,{emit:t}){const n=e,a=t,r=o.ref(!0),i=o.ref(!1),s=o.ref();return o.onMounted(()=>{new Promise((l,c)=>{let d=new Image;d.addEventListener("load",()=>l(d)),d.addEventListener("error",f=>c(f)),d.src=n.src}).then(l=>{l.className="pointer-events-none w-full h-full",l.classList.add(n.isThumbnail?"object-cover":"object-contain"),l.draggable=!1,s.value?.appendChild(l)}).catch(()=>{i.value=!0,a("missing",!0)}).finally(()=>{r.value=!1})}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{class:"flex justify-center items-center h-full max-h-[80vh]",ref_key:"card",ref:s},[r.value?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-6 h-6"})):o.createCommentVNode("",!0)],512))}}),Op=["title"],Tp={key:0,class:"absolute z-40 inset-0 flex justify-center items-center w-full h-full"},Cp={key:1,class:"absolute inset-0 w-full h-full bg-gray-100/50 dark:bg-gray-800/50"},Np={key:2,class:"absolute inset-0 flex flex-row items-center justify-center text-sm font-bold text-gray-600 dark:text-gray-100"},kp={class:"m-auto z-20 flex h-full items-center justify-center select-none"},Ip={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-red-500"},Dp={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-600"},Ap={class:"pointer-events-none w-full h-full object-cover"},_p=["src"],Rp={key:0,class:"absolute m-auto flex items-center justify-center bg-transparent"},Pp={key:3,class:"absolute right-1 top-1"},Bp=["title"],Mp={key:1,class:"text-sm text-red-500 font-semibold text-left break-all"},Fp={class:"gap-x-0.5 inline-flex flex-wrap items-center text-xs pointer-events-none block font-medium text-gray-500 text-left break-all"},Lp={key:0},jp={key:1,class:"ml-0.5"},Vp={key:2,class:"absolute top-1 right-1"},ls=o.defineComponent({__name:"File",props:{file:{},isUploading:{type:Boolean},isUploaded:{type:Boolean},uploadRatio:{},selected:{type:Boolean,default:!1},onDeselect:{},singleDisk:{type:Boolean},fieldMode:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>t.file.type==="image"),a=o.computed(()=>t.file.type==="video"),r=o.computed(()=>t.file.type!=="image"&&t.file.type!=="video"),i=o.computed(()=>!t.file.exists),s=o.computed(()=>i.value?t.file.path:t.file.name);return(l,c)=>(o.openBlock(),o.createElementBlock("button",{class:"relative cursor-pointer group focus-visible:outline-none flex flex-col items-start",title:s.value},[o.createElementVNode("div",{class:o.normalizeClass(["relative block aspect-square w-full h-full overflow-hidden rounded-lg hover:shadow-md hover:opacity-75 border border-gray-200/50 dark:border-gray-700/50 text-left","group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-black dark:group-focus-visible:outline-white",l.selected?"outline outline-2 outline-blue-500 group-focus-visible:outline-blue-500":""])},[l.isUploading?(o.openBlock(),o.createElementBlock("div",Tp,[l.isUploaded===null?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-16 h-16"})):l.isUploaded===!1?(o.openBlock(),o.createBlock(o.unref(El),{key:1,class:"w-16 h-16 text-red-500"})):l.isUploaded===!0?(o.openBlock(),o.createBlock(o.unref(yl),{key:2,class:"w-16 h-16 text-green-500"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),l.isUploading?(o.openBlock(),o.createElementBlock("div",Cp)):o.createCommentVNode("",!0),l.isUploading&&l.isUploaded===null?(o.openBlock(),o.createElementBlock("div",Np,[o.createElementVNode("span",null,o.toDisplayString(l.uploadRatio)+"%",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",kp,[i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("div",Ip,[o.createVNode(o.unref(gp),{class:"w-16 h-16"})])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value?(o.openBlock(),o.createElementBlock("div",Dp,[l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ra),{key:0,class:"w-16 h-16"}))])):o.createCommentVNode("",!0),n.value?(o.openBlock(),o.createBlock(wl,{key:1,src:l.file.url,alt:l.file.name},null,8,["src","alt"])):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("video",Ap,[o.createElementVNode("source",{src:l.file.url},null,8,_p),o.createTextVNode(" "+o.toDisplayString(l.__("Sorry, your browser doesn't support embedded videos.")),1)]),l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Rp,[o.createVNode(o.unref(bp),{class:"h-16 w-16 text-white/60"})]))],64)):o.createCommentVNode("",!0)],64))]),l.onDeselect?(o.openBlock(),o.createElementBlock("div",Pp,[l.onDeselect?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=d=>l.onDeselect(l.file)),class:"text-red-500 hover:text-red-600 rounded-full"},[o.createVNode(o.unref(yp),{class:"h-6 w-6"})])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2),!i.value||l.isUploading?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["pointer-events-none mt-2 block truncate font-medium text-gray-900 dark:text-gray-50 text-left w-full",l.isUploading||l.onDeselect?"text-xs":"text-sm"]),title:l.isUploading?l.file.name:s.value},o.toDisplayString(l.isUploading?l.file.name:s.value),11,Bp)):o.createCommentVNode("",!0),i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("p",Mp,o.toDisplayString(l.__("NovaFileManager.fileMissing",{path:l.file.path})),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Fp,[l.file.size?(o.openBlock(),o.createElementBlock("span",Lp,o.toDisplayString(l.file.size),1)):o.createCommentVNode("",!0),l.fieldMode&&!l.singleDisk&&l.file.disk?.length>0?(o.openBlock(),o.createElementBlock("span",jp,"· "+o.toDisplayString(l.file.disk),1)):o.createCommentVNode("",!0)]),l.selected?(o.openBlock(),o.createElementBlock("span",Vp,[o.createVNode(o.unref(yl),{class:"h-5 w-5 text-blue-500","aria-hidden":"true"})])):o.createCommentVNode("",!0)],8,Op))}});var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Hp=Math.ceil,zp=Math.max;function Gp(e,t,n,a){for(var r=-1,i=zp(Hp((t-e)/(n||1)),0),s=Array(i);i--;)s[a?i:++r]=e,e+=n;return s}var Wp=Gp;function Kp(e,t){return e===t||e!==e&&t!==t}var cs=Kp,Xp=typeof So=="object"&&So&&So.Object===Object&&So,xl=Xp,Yp=xl,Jp=typeof self=="object"&&self&&self.Object===Object&&self,Qp=Yp||Jp||Function("return this")(),Vt=Qp,Zp=Vt,qp=Zp.Symbol,sa=qp,Sl=sa,Ol=Object.prototype,$p=Ol.hasOwnProperty,eh=Ol.toString,ia=Sl?Sl.toStringTag:void 0;function th(e){var t=$p.call(e,ia),n=e[ia];try{e[ia]=void 0;var a=!0}catch{}var r=eh.call(e);return a&&(t?e[ia]=n:delete e[ia]),r}var nh=th,oh=Object.prototype,ah=oh.toString;function rh(e){return ah.call(e)}var sh=rh,Tl=sa,ih=nh,lh=sh,ch="[object Null]",dh="[object Undefined]",Cl=Tl?Tl.toStringTag:void 0;function uh(e){return e==null?e===void 0?dh:ch:Cl&&Cl in Object(e)?ih(e):lh(e)}var Oo=uh;function fh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var On=fh,ph=Oo,hh=On,mh="[object AsyncFunction]",vh="[object Function]",gh="[object GeneratorFunction]",bh="[object Proxy]";function yh(e){if(!hh(e))return!1;var t=ph(e);return t==vh||t==gh||t==mh||t==bh}var Nl=yh,Eh=9007199254740991;function wh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Eh}var kl=wh,xh=Nl,Sh=kl;function Oh(e){return e!=null&&Sh(e.length)&&!xh(e)}var ds=Oh,Th=9007199254740991,Ch=/^(?:0|[1-9]\d*)$/;function Nh(e,t){var n=typeof e;return t=t??Th,!!t&&(n=="number"||n!="symbol"&&Ch.test(e))&&e>-1&&e%1==0&&e0){var D=!1;for(var A in b.fileType){var _="."+b.fileType[A];if(I.toLowerCase().indexOf(_.toLowerCase(),I.length-_.length)!==-1){D=!0;break}}if(!D)return b.fileTypeErrorCallback(N,y++),!1}if(typeof b.minFileSize<"u"&&N.sizeb.maxFileSize)return b.maxFileSizeErrorCallback(N,y++),!1;function M(B){a.getFromUniqueIdentifier(B)?T.push(N):function(){N.uniqueIdentifier=B;var j=new h(a,N,B);a.files.push(j),g.push(j),j.container=typeof m<"u"?m.srcElement:null,window.setTimeout(function(){a.fire("fileAdded",j,m)},0)}(),S()}var K=r.generateUniqueIdentifier(N,m);K&&typeof K.then=="function"?K.then(function(B){M(B)},function(){S()}):M(K)})};function h(u,m,y){var b=this;b.opts={},b.getOpt=u.getOpt,b._prevProgress=0,b.resumableObj=u,b.file=m,b.fileName=m.fileName||m.name,b.size=m.size,b.relativePath=m.relativePath||m.webkitRelativePath||b.fileName,b.uniqueIdentifier=y,b._pause=!1,b.container="";var g=y!==void 0,T=function(O,S){switch(O){case"progress":b.resumableObj.fire("fileProgress",b,S);break;case"error":b.abort(),g=!0,b.chunks=[],b.resumableObj.fire("fileError",b,S);break;case"success":if(g)return;b.resumableObj.fire("fileProgress",b),b.isComplete()&&b.resumableObj.fire("fileSuccess",b,S);break;case"retry":b.resumableObj.fire("fileRetry",b);break}};return b.chunks=[],b.abort=function(){var O=0;r.each(b.chunks,function(S){S.status()=="uploading"&&(S.abort(),O++)}),O>0&&b.resumableObj.fire("fileProgress",b)},b.cancel=function(){var O=b.chunks;b.chunks=[],r.each(O,function(S){S.status()=="uploading"&&(S.abort(),b.resumableObj.uploadNextChunk())}),b.resumableObj.removeFile(b),b.resumableObj.fire("fileProgress",b)},b.retry=function(){b.bootstrap();var O=!1;b.resumableObj.on("chunkingComplete",function(){O||b.resumableObj.upload(),O=!0})},b.bootstrap=function(){b.abort(),g=!1,b.chunks=[],b._prevProgress=0;for(var O=b.getOpt("forceChunkSize")?Math.ceil:Math.floor,S=Math.max(O(b.file.size/b.getOpt("chunkSize")),1),N=0;N.99999?1:O,O=Math.max(b._prevProgress,O),b._prevProgress=O,O},b.isUploading=function(){var O=!1;return r.each(b.chunks,function(S){if(S.status()=="uploading")return O=!0,!1}),O},b.isComplete=function(){var O=!1;return r.each(b.chunks,function(S){var N=S.status();if(N=="pending"||N=="uploading"||S.preprocessState===1)return O=!0,!1}),!O},b.pause=function(O){typeof O>"u"?b._pause=!b._pause:b._pause=O},b.isPaused=function(){return b._pause},b.resumableObj.fire("chunkingStart",b),b.bootstrap(),this}function v(u,m,y,b){var g=this;g.opts={},g.getOpt=u.getOpt,g.resumableObj=u,g.fileObj=m,g.fileObjSize=m.size,g.fileObjType=m.file.type,g.offset=y,g.callback=b,g.lastProgressCallback=new Date,g.tested=!1,g.retries=0,g.pendingRetry=!1,g.preprocessState=0;var T=g.getOpt("chunkSize");return g.loaded=0,g.startByte=g.offset*T,g.endByte=Math.min(g.fileObjSize,(g.offset+1)*T),g.fileObjSize-g.endByteg.getOpt("throttleProgressCallbacks")*1e3&&(g.callback("progress"),g.lastProgressCallback=new Date),g.loaded=Q.loaded||0},!1),g.loaded=0,g.pendingRetry=!1,g.callback("progress");var S=function(Q){var ne=g.status();if(ne=="success"||ne=="error")g.callback(ne,g.message()),g.resumableObj.uploadNextChunk();else{g.callback("retry",g.message()),g.abort(),g.retries++;var we=g.getOpt("chunkRetryInterval");we!==void 0?(g.pendingRetry=!0,setTimeout(g.send,we)):g.send()}};g.xhr.addEventListener("load",S,!1),g.xhr.addEventListener("error",S,!1),g.xhr.addEventListener("timeout",S,!1);var N=[["chunkNumberParameterName",g.offset+1],["chunkSizeParameterName",g.getOpt("chunkSize")],["currentChunkSizeParameterName",g.endByte-g.startByte],["totalSizeParameterName",g.fileObjSize],["typeParameterName",g.fileObjType],["identifierParameterName",g.fileObj.uniqueIdentifier],["fileNameParameterName",g.fileObj.fileName],["relativePathParameterName",g.fileObj.relativePath],["totalChunksParameterName",g.fileObj.chunks.length]].filter(function(Q){return g.getOpt(Q[0])}).reduce(function(Q,ne){return Q[g.getOpt(ne[0])]=ne[1],Q},{}),I=g.getOpt("query");typeof I=="function"&&(I=I(g.fileObj,g)),r.each(I,function(Q,ne){N[Q]=ne});var D=g.fileObj.file.slice?"slice":g.fileObj.file.mozSlice?"mozSlice":g.fileObj.file.webkitSlice?"webkitSlice":"slice",A=g.fileObj.file[D](g.startByte,g.endByte,g.getOpt("setChunkTypeFromFile")?g.fileObj.file.type:""),_=null,M=[],K=g.getOpt("parameterNamespace");if(g.getOpt("method")==="octet")_=A,r.each(N,function(Q,ne){M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))});else if(_=new FormData,r.each(N,function(Q,ne){_.append(K+Q,ne),M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))}),g.getOpt("chunkFormat")=="blob")_.append(K+g.getOpt("fileParameterName"),A,g.fileObj.fileName);else if(g.getOpt("chunkFormat")=="base64"){var B=new FileReader;B.onload=function(Q){_.append(K+g.getOpt("fileParameterName"),B.result),g.xhr.send(_)},B.readAsDataURL(A)}var j=r.getTarget("upload",M),H=g.getOpt("uploadMethod");g.xhr.open(H,j),g.getOpt("method")==="octet"&&g.xhr.setRequestHeader("Content-Type","application/octet-stream"),g.xhr.timeout=g.getOpt("xhrTimeout"),g.xhr.withCredentials=g.getOpt("withCredentials");var W=g.getOpt("headers");typeof W=="function"&&(W=W(g.fileObj,g)),r.each(W,function(Q,ne){g.xhr.setRequestHeader(Q,ne)}),g.getOpt("chunkFormat")=="blob"&&g.xhr.send(_)},g.abort=function(){g.xhr&&g.xhr.abort(),g.xhr=null},g.status=function(){return g.pendingRetry?"uploading":g.xhr?g.xhr.readyState<4?"uploading":g.xhr.status==200||g.xhr.status==201?"success":r.contains(g.getOpt("permanentErrors"),g.xhr.status)||g.retries>=g.getOpt("maxChunkRetries")?"error":(g.abort(),"pending"):"pending"},g.message=function(){return g.xhr?g.xhr.responseText:""},g.progress=function(O){typeof O>"u"&&(O=!1);var S=O?(g.endByte-g.startByte)/g.fileObjSize:1;if(g.pendingRetry)return 0;(!g.xhr||!g.xhr.status)&&(S*=.95);var N=g.status();switch(N){case"success":case"error":return 1*S;case"pending":return 0*S;default:return g.loaded/(g.endByte-g.startByte)*S}},this}return a.uploadNextChunk=function(){var u=!1;if(a.getOpt("prioritizeFirstAndLastChunk")&&(r.each(a.files,function(y){if(y.chunks.length&&y.chunks[0].status()=="pending"&&y.chunks[0].preprocessState===0)return y.chunks[0].send(),u=!0,!1;if(y.chunks.length>1&&y.chunks[y.chunks.length-1].status()=="pending"&&y.chunks[y.chunks.length-1].preprocessState===0)return y.chunks[y.chunks.length-1].send(),u=!0,!1}),u)||(r.each(a.files,function(y){if(y.isPaused()===!1&&r.each(y.chunks,function(b){if(b.status()=="pending"&&b.preprocessState===0)return b.send(),u=!0,!1}),u)return!1}),u))return!0;var m=!1;return r.each(a.files,function(y){if(!y.isComplete())return m=!0,!1}),m||a.fire("complete"),!1},a.assignBrowse=function(u,m){typeof u.length>"u"&&(u=[u]),r.each(u,function(y){var b;y.tagName==="INPUT"&&y.type==="file"?b=y:(b=document.createElement("input"),b.setAttribute("type","file"),b.style.display="none",y.addEventListener("click",function(){b.style.opacity=0,b.style.display="block",b.focus(),b.click(),b.style.display="none"},!1),y.appendChild(b));var g=a.getOpt("maxFiles");typeof g>"u"||g!=1?b.setAttribute("multiple","multiple"):b.removeAttribute("multiple"),m?b.setAttribute("webkitdirectory","webkitdirectory"):b.removeAttribute("webkitdirectory");var T=a.getOpt("fileType");typeof T<"u"&&T.length>=1?b.setAttribute("accept",T.map(function(O){return"."+O}).join(",")):b.removeAttribute("accept"),b.addEventListener("change",function(O){p(O.target.files,O);var S=a.getOpt("clearInput");S&&(O.target.value="")},!1)})},a.assignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.addEventListener("dragover",s,!1),m.addEventListener("dragenter",s,!1),m.addEventListener("drop",i,!1)})},a.unAssignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.removeEventListener("dragover",s),m.removeEventListener("dragenter",s),m.removeEventListener("drop",i)})},a.isUploading=function(){var u=!1;return r.each(a.files,function(m){if(m.isUploading())return u=!0,!1}),u},a.upload=function(){if(!a.isUploading()){a.fire("uploadStart");for(var u=1;u<=a.getOpt("simultaneousUploads");u++)a.uploadNextChunk()}},a.pause=function(){r.each(a.files,function(u){u.abort()}),a.fire("pause")},a.cancel=function(){a.fire("beforeCancel");for(var u=a.files.length-1;u>=0;u--)a.files[u].cancel();a.fire("cancel")},a.progress=function(){var u=0,m=0;return r.each(a.files,function(y){u+=y.progress()*y.size,m+=y.size}),m>0?u/m:0},a.addFile=function(u,m){p([u],m)},a.addFiles=function(u,m){p(u,m)},a.removeFile=function(u){for(var m=a.files.length-1;m>=0;m--)a.files[m]===u&&a.files.splice(m,1)},a.getFromUniqueIdentifier=function(u){var m=!1;return r.each(a.files,function(y){y.uniqueIdentifier==u&&(m=y)}),m},a.getSize=function(){var u=0;return r.each(a.files,function(m){u+=m.size}),u},a.handleDropEvent=function(u){i(u)},a.handleChangeEvent=function(u){p(u.target.files,u),u.target.value=""},a.updateQuery=function(u){a.opts.query=u},this};e.exports=t})()})(Pl);var dm=Pl.exports;const um=Sn(dm),la="queue",ps="preview",fm="upload",Tn="upload-crop",hs="browser",pm="folder",hm="KeyK",ms={folders:"#",files:">",help:"?"},mm=["setDisk","setPath","setPerPage","setPage","setSearch","upload","renameFile","deleteFiles","unzipFile","createFolder","renameFolder","deleteFolder"],Qt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILE:"deleteFile",UNZIP_FILE:"unzipFile"},Ut={CREATE_FOLDER:"createFolder",DELETE_FILES:"deleteFiles",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",RENAME_FOLDER:"renameFolder",UNZIP_FILE:"unzipFile"},ln={CREATE_FOLDER:"/folders/create",DELETE_FILE:"/files/delete",DELETE_FOLDER:"/folders/delete",DISKS:"/disks",DOWNLOAD_FILE:"/files/download",RENAME_FILE:"/files/rename",RENAME_FOLDER:"/folders/rename",UNZIP_FILE:"/files/unzip",UPLOAD:"/nova-vendor/nova-file-manager/files/upload"};async function To({operation:e,endpoint:t,data:n,modal:a,callback:r}){const i=Re(),s=i.post,l=i.setError,c=i.resetError,d=i.closeModal;try{i.loadingOperation=e;const f=await s({path:t,data:n});c(),window.Nova.success(f.data.message),r&&r(f),a&&d({name:a})}catch(f){i.loadingOperation=void 0;const p=f.response?.data;window.Nova.error(p?.message||"An error occurred"),l({attribute:e,bag:p})}}function Bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:vm}=Object.prototype,{getPrototypeOf:vs}=Object,$a=(e=>t=>{const n=vm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>$a(t)===e),er=e=>t=>typeof t===e,{isArray:Co}=Array,ca=er("undefined");function gm(e){return e!==null&&!ca(e)&&e.constructor!==null&&!ca(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ml=Zt("ArrayBuffer");function bm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ml(e.buffer),t}const ym=er("string"),It=er("function"),Fl=er("number"),tr=e=>e!==null&&typeof e=="object",Em=e=>e===!0||e===!1,nr=e=>{if($a(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wm=Zt("Date"),xm=Zt("File"),Sm=Zt("Blob"),Om=Zt("FileList"),Tm=e=>tr(e)&&It(e.pipe),Cm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=$a(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Nm=Zt("URLSearchParams"),km=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function da(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),Co(e))for(a=0,r=e.length;a0;)if(r=n[a],t===r.toLowerCase())return r;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vl=e=>!ca(e)&&e!==jl;function gs(){const{caseless:e}=Vl(this)&&this||{},t={},n=(a,r)=>{const i=e&&Ll(t,r)||r;nr(t[i])&&nr(a)?t[i]=gs(t[i],a):nr(a)?t[i]=gs({},a):Co(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a(da(t,(r,i)=>{n&&It(r)?e[i]=Bl(r,n):e[i]=r},{allOwnKeys:a}),e),Dm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_m=(e,t,n,a)=>{let r,i,s;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Pm=e=>{if(!e)return null;if(Co(e))return e;let t=e.length;if(!Fl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Mm=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Fm=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Lm=Zt("HTMLFormElement"),jm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),Ul=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vm=Zt("RegExp"),Hl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};da(n,(r,i)=>{let s;(s=t(r,i,e))!==!1&&(a[i]=s||r)}),Object.defineProperties(e,a)},Um=e=>{Hl(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(It(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hm=(e,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return Co(e)?a(e):a(String(e).split(t)),n},zm=()=>{},Gm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bs="abcdefghijklmnopqrstuvwxyz",zl="0123456789",Gl={DIGIT:zl,ALPHA:bs,ALPHA_DIGIT:bs+bs.toUpperCase()+zl},Wm=(e=16,t=Gl.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function Km(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xm=e=>{const t=new Array(10),n=(a,r)=>{if(tr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=Co(a)?[]:{};return da(a,(s,l)=>{const c=n(s,r+1);!ca(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(e,0)},Ym=Zt("AsyncFunction"),X={isArray:Co,isArrayBuffer:Ml,isBuffer:gm,isFormData:Cm,isArrayBufferView:bm,isString:ym,isNumber:Fl,isBoolean:Em,isObject:tr,isPlainObject:nr,isUndefined:ca,isDate:wm,isFile:xm,isBlob:Sm,isRegExp:Vm,isFunction:It,isStream:Tm,isURLSearchParams:Nm,isTypedArray:Bm,isFileList:Om,forEach:da,merge:gs,extend:Im,trim:km,stripBOM:Dm,inherits:Am,toFlatObject:_m,kindOf:$a,kindOfTest:Zt,endsWith:Rm,toArray:Pm,forEachEntry:Mm,matchAll:Fm,isHTMLForm:Lm,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Um,toObjectSet:Hm,toCamelCase:jm,noop:zm,toFiniteNumber:Gm,findKey:Ll,global:jl,isContextDefined:Vl,ALPHABET:Gl,generateString:Wm,isSpecCompliantForm:Km,toJSONObject:Xm,isAsyncFn:Ym,isThenable:e=>e&&(tr(e)||It(e))&&It(e.then)&&It(e.catch)};function Ce(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}X.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wl=Ce.prototype,Kl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kl[e]={value:e}}),Object.defineProperties(Ce,Kl),Object.defineProperty(Wl,"isAxiosError",{value:!0}),Ce.from=(e,t,n,a,r,i)=>{const s=Object.create(Wl);return X.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Jm=null;function ys(e){return X.isPlainObject(e)||X.isArray(e)}function Xl(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Yl(e,t,n){return e?e.concat(t).map(function(r,i){return r=Xl(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Qm(e){return X.isArray(e)&&!e.some(ys)}const Zm=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function or(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!X.isUndefined(y[m])});const a=n.metaTokens,r=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(r))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(X.isDate(u))return u.toISOString();if(!c&&X.isBlob(u))throw new Ce("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(u)||X.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,m,y){let b=u;if(u&&!y&&typeof u=="object"){if(X.endsWith(m,"{}"))m=a?m:m.slice(0,-2),u=JSON.stringify(u);else if(X.isArray(u)&&Qm(u)||(X.isFileList(u)||X.endsWith(m,"[]"))&&(b=X.toArray(u)))return m=Xl(m),b.forEach(function(T,O){!(X.isUndefined(T)||T===null)&&t.append(s===!0?Yl([m],O,i):s===null?m:m+"[]",d(T))}),!1}return ys(u)?!0:(t.append(Yl(y,m,i),d(u)),!1)}const p=[],h=Object.assign(Zm,{defaultVisitor:f,convertValue:d,isVisitable:ys});function v(u,m){if(!X.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),X.forEach(u,function(b,g){(!(X.isUndefined(b)||b===null)&&r.call(t,b,X.isString(g)?g.trim():g,m,h))===!0&&v(b,m?m.concat(g):[g])}),p.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Jl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Es(e,t){this._pairs=[],e&&or(e,this,t)}const Ql=Es.prototype;Ql.append=function(t,n){this._pairs.push([t,n])},Ql.toString=function(t){const n=t?function(a){return t.call(this,a,Jl)}:Jl;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zl(e,t,n){if(!t)return e;const a=n&&n.encode||qm,r=n&&n.serialize;let i;if(r?i=r(t,n):i=X.isURLSearchParams(t)?t.toString():new Es(t,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ql{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(a){a!==null&&t(a)})}}const $l={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$m={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Es,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ec=typeof window<"u"&&typeof document<"u",ev=(e=>ec&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),tv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ec,hasStandardBrowserEnv:ev,hasStandardBrowserWebWorkerEnv:tv},Symbol.toStringTag,{value:"Module"})),...$m};function nv(e,t){return or(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return qt.isNode&&X.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ov(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function av(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a=n.length;return s=!s&&X.isArray(r)?r.length:s,c?(X.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!X.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&X.isArray(r[s])&&(r[s]=av(r[s])),!l)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(a,r)=>{t(ov(a),r,n,0)}),n}return null}function rv(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(0,JSON.stringify)(e)}const ua={transitional:$l,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return r?JSON.stringify(tc(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nv(t,this.formSerializer).toString();if((l=X.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return or(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),rv(t)):t}],transformResponse:[function(t){const n=this.transitional||ua.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&X.isString(t)&&(a&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});const sv=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=e=>{const t={};let n,a,r;return e&&e.split(` -`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),a=s.substring(r+1).trim(),!(!n||t[n]&&sv[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},nc=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function ar(e){return e===!1||e==null?e:X.isArray(e)?e.map(ar):String(e)}function lv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const cv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ws(e,t,n,a,r){if(X.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!X.isString(t)){if(X.isString(a))return t.indexOf(a)!==-1;if(X.isRegExp(a))return a.test(t)}}function dv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function uv(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(r,i,s){return this[a].call(this,t,r,i,s)},configurable:!0})})}class Dt{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(l,c,d){const f=fa(c);if(!f)throw new Error("header name must be a non-empty string");const p=X.findKey(r,f);(!p||r[p]===void 0||d===!0||d===void 0&&r[p]!==!1)&&(r[p||c]=ar(l))}const s=(l,c)=>X.forEach(l,(d,f)=>i(d,f,c));return X.isPlainObject(t)||t instanceof this.constructor?s(t,n):X.isString(t)&&(t=t.trim())&&!cv(t)?s(iv(t),n):t!=null&&i(n,t,a),this}get(t,n){if(t=fa(t),t){const a=X.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return lv(r);if(X.isFunction(n))return n.call(this,r,a);if(X.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fa(t),t){const a=X.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||ws(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(s){if(s=fa(s),s){const l=X.findKey(a,s);l&&(!n||ws(a,a[l],l,n))&&(delete a[l],r=!0)}}return X.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||ws(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return X.forEach(this,(r,i)=>{const s=X.findKey(a,i);if(s){n[s]=ar(r),delete n[i];return}const l=t?dv(i):String(i).trim();l!==i&&delete n[i],n[l]=ar(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&X.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[nc]=this[nc]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=fa(s);a[l]||(uv(r,s),a[l]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}}Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Dt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}}),X.freezeMethods(Dt);function xs(e,t){const n=this||ua,a=t||n,r=Dt.from(a.headers);let i=a.data;return X.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function oc(e){return!!(e&&e.__CANCEL__)}function pa(e,t,n){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(pa,Ce,{__CANCEL__:!0});function fv(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ce("Request failed with status code "+n.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const pv=qt.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),X.isString(a)&&s.push("path="+a),X.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!hv(t)?mv(e,t):t}const vv=qt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(s){const l=X.isString(s)?r(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}();function gv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bv(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=a[i];s||(s=d),n[r]=c,a[r]=d;let p=i,h=0;for(;p!==r;)h+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),d-s{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-n,c=a(l),d=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const Ss={http:Jm,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){let r=e.data;const i=Dt.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let f;if(X.isFormData(r)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...y].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+y))}const h=ac(e.baseURL,e.url);p.open(e.method.toUpperCase(),Zl(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function v(){if(!p)return;const m=Dt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:e,request:p};fv(function(T){n(T),d()},function(T){a(T),d()},b),p=null}if("onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(v)},p.onabort=function(){p&&(a(new Ce("Request aborted",Ce.ECONNABORTED,e,p)),p=null)},p.onerror=function(){a(new Ce("Network Error",Ce.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||$l;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),a(new Ce(y,b.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,p)),p=null},qt.hasStandardBrowserEnv&&(l&&X.isFunction(l)&&(l=l(e)),l||l!==!1&&vv(h))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&pv.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}r===void 0&&i.setContentType(null),"setRequestHeader"in p&&X.forEach(i.toJSON(),function(y,b){p.setRequestHeader(b,y)}),X.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),s&&s!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{p&&(a(!m||m.type?new pa(null,e,p):m),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const u=gv(h);if(u&&qt.protocols.indexOf(u)===-1){a(new Ce("Unsupported protocol "+u+":",Ce.ERR_BAD_REQUEST,e));return}p.send(r||null)})}};X.forEach(Ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sc=e=>`- ${e}`,yv=e=>X.isFunction(e)||e===null||e===!1,ic={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +(function(o,oa){typeof exports=="object"&&typeof module<"u"?oa(require("vue")):typeof define=="function"&&define.amd?define(["vue"],oa):(o=typeof globalThis<"u"?globalThis:o||self,oa(o.Vue))})(this,function(o){"use strict";var oa=!1,cl={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_23756a7e-f9fd-4ac3-a152-275052b3cd54",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_23756a7e-f9fd-4ac3-a152-275052b3cd54",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.11.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"nova-5",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"607",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241215.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19765",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12413614315",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"e2264fa0a08e17c684153918f39eeabfffc7fd95",GITHUB_BASE_REF:"main",ImageOS:"ubuntu22",STATS_BLT:"true",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/pull/454/merge",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_12789af6-03d4-4b51-8352-6445748ce4c4",INVOCATION_ID:"4a3710bc054842b9b094c009f50d3a14",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"702",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 3",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"454/merge",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"e2264fa0a08e17c684153918f39eeabfffc7fd95",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/pull/454/merge",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_23756a7e-f9fd-4ac3-a152-275052b3cd54",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"pull_request",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_23756a7e-f9fd-4ac3-a152-275052b3cd54",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_23756a7e-f9fd-4ac3-a152-275052b3cd54",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};let dl;const Qa=e=>dl=e,ul=Symbol();function es(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var aa;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(aa||(aa={}));function Wf(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],a=[];const r=o.markRaw({install(i){Qa(r),r._a=i,i.provide(ul,r),i.config.globalProperties.$pinia=r,a.forEach(s=>n.push(s)),a=[]},use(i){return!this._a&&!oa?a.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fl=()=>{};function pl(e,t,n,a=fl){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),a())};return!n&&o.getCurrentScope()&&o.onScopeDispose(r),r}function wo(e,...t){e.slice().forEach(n=>{n(...t)})}function ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,a)=>e.set(a,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],r=e[n];es(r)&&es(a)&&e.hasOwnProperty(n)&&!o.isRef(a)&&!o.isReactive(a)?e[n]=ts(r,a):e[n]=a}return e}const Kf=Symbol();function Xf(e){return!es(e)||!e.hasOwnProperty(Kf)}const{assign:xn}=Object;function Yf(e){return!!(o.isRef(e)&&e.effect)}function Jf(e,t,n,a){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let c;function d(){!l&&cl.NODE_ENV==="production"&&(n.state.value[e]=r?r():{});const f=o.toRefs(n.state.value[e]);return xn(f,i,Object.keys(s||{}).reduce((p,h)=>(p[h]=o.markRaw(o.computed(()=>{Qa(n);const v=n._s.get(e);return s[h].call(v,v)})),p),{}))}return c=hl(e,d,t,n,a,!0),c}function hl(e,t,n={},a,r,i){let s;const l=xn({actions:{}},n),c={deep:!0};let d,f,p=o.markRaw([]),h=o.markRaw([]),v;const u=a.state.value[e];!i&&!u&&cl.NODE_ENV==="production"&&(a.state.value[e]={}),o.ref({});let m;function y(I){let _;d=f=!1,typeof I=="function"?(I(a.state.value[e]),_={type:aa.patchFunction,storeId:e,events:v}):(ts(a.state.value[e],I),_={type:aa.patchObject,payload:I,storeId:e,events:v});const A=m=Symbol();o.nextTick().then(()=>{m===A&&(d=!0)}),f=!0,wo(p,_,a.state.value[e])}const b=i?function(){const{state:_}=n,A=_?_():{};this.$patch(D=>{xn(D,A)})}:fl;function g(){s.stop(),p=[],h=[],a._s.delete(e)}function T(I,_){return function(){Qa(a);const A=Array.from(arguments),D=[],M=[];function K(H){D.push(H)}function B(H){M.push(H)}wo(h,{args:A,name:I,store:S,after:K,onError:B});let j;try{j=_.apply(this&&this.$id===e?this:S,A)}catch(H){throw wo(M,H),H}return j instanceof Promise?j.then(H=>(wo(D,H),H)).catch(H=>(wo(M,H),Promise.reject(H))):(wo(D,j),j)}}const O={_p:a,$id:e,$onAction:pl.bind(null,h),$patch:y,$reset:b,$subscribe(I,_={}){const A=pl(p,I,_.detached,()=>D()),D=s.run(()=>o.watch(()=>a.state.value[e],M=>{(_.flush==="sync"?f:d)&&I({storeId:e,type:aa.direct,events:v},M)},xn({},c,_)));return A},$dispose:g},S=o.reactive(O);a._s.set(e,S);const N=a._e.run(()=>(s=o.effectScope(),s.run(()=>t())));for(const I in N){const _=N[I];if(o.isRef(_)&&!Yf(_)||o.isReactive(_))i||(u&&Xf(_)&&(o.isRef(_)?_.value=u[I]:ts(_,u[I])),a.state.value[e][I]=_);else if(typeof _=="function"){const A=T(I,_);N[I]=A,l.actions[I]=_}}return xn(S,N),xn(o.toRaw(S),N),Object.defineProperty(S,"$state",{get:()=>a.state.value[e],set:I=>{y(_=>{xn(_,I)})}}),a._p.forEach(I=>{xn(S,s.run(()=>I({store:S,app:a._a,pinia:a,options:l})))}),u&&i&&n.hydrate&&n.hydrate(S.$state,u),d=!0,f=!0,S}function ns(e,t,n){let a,r;const i=typeof t=="function";typeof e=="string"?(a=e,r=i?n:t):(r=e,a=e.id);function s(l,c){const d=o.getCurrentInstance();return l=l||d&&o.inject(ul,null),l&&Qa(l),l=dl,l._s.has(a)||(i?hl(a,t,r,l):Jf(a,r,l)),l._s.get(a)}return s.$id=a,s}function Qf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(){return e(this.$pinia)[a]},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(){const r=e(this.$pinia),i=t[a];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function Zf(e,t){return Array.isArray(t)?t.reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[a](...r)},n),{}):Object.keys(t).reduce((n,a)=>(n[a]=function(...r){return e(this.$pinia)[t[a]](...r)},n),{})}function qf(e){{e=o.toRaw(e);const t={};for(const n in e){const a=e[n];(o.isRef(a)||o.isReactive(a))&&(t[n]=o.toRef(e,n))}return t}}function $f(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])}function ep(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function Za(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function ml(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function os(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function tp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})])}function np(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function as(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0l3 3m-3-3l-3 3M6.75 19.5a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}function op(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})])}function ra(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function vl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})])}function gl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function ap(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})])}function rp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function sp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}function ip(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function lp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})])}function cp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})])}function dp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"})])}function bl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})])}function ss(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}function yl(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z","clip-rule":"evenodd"})])}function up(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z","clip-rule":"evenodd"})])}function fp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z","clip-rule":"evenodd"})])}function pp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z","clip-rule":"evenodd"})])}function hp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z","clip-rule":"evenodd"})])}function mp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function vp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.5 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm0 6a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z","clip-rule":"evenodd"})])}function El(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function gp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"})])}function bp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.348c1.295.712 1.295 2.573 0 3.285L7.28 19.991c-1.25.687-2.779-.217-2.779-1.643V5.653z","clip-rule":"evenodd"})])}function yp(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[o.createElementVNode("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z","clip-rule":"evenodd"})])}const is=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},Ep={},wp={class:"text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",fill:"none",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},xp=[o.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),o.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)];function Sp(e,t){return o.openBlock(),o.createElementBlock("svg",wp,xp)}const xo=is(Ep,[["render",Sp]]),wl=o.defineComponent({__name:"ImageLoader",props:{src:{},alt:{},isThumbnail:{type:Boolean,default:!0}},emits:["missing"],setup(e,{emit:t}){const n=e,a=t,r=o.ref(!0),i=o.ref(!1),s=o.ref();return o.onMounted(()=>{new Promise((l,c)=>{let d=new Image;d.addEventListener("load",()=>l(d)),d.addEventListener("error",f=>c(f)),d.src=n.src}).then(l=>{l.className="pointer-events-none w-full h-full",l.classList.add(n.isThumbnail?"object-cover":"object-contain"),l.draggable=!1,s.value?.appendChild(l)}).catch(()=>{i.value=!0,a("missing",!0)}).finally(()=>{r.value=!1})}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{class:"flex justify-center items-center h-full max-h-[80vh]",ref_key:"card",ref:s},[r.value?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-6 h-6"})):o.createCommentVNode("",!0)],512))}}),Op=["title"],Tp={key:0,class:"absolute z-40 inset-0 flex justify-center items-center w-full h-full"},Cp={key:1,class:"absolute inset-0 w-full h-full bg-gray-100/50 dark:bg-gray-800/50"},Np={key:2,class:"absolute inset-0 flex flex-row items-center justify-center text-sm font-bold text-gray-600 dark:text-gray-100"},kp={class:"m-auto z-20 flex h-full items-center justify-center select-none"},Ip={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-red-500"},_p={key:0,class:"m-auto flex h-full w-full items-center justify-center bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-600"},Ap={class:"pointer-events-none w-full h-full object-cover"},Dp=["src"],Rp={key:0,class:"absolute m-auto flex items-center justify-center bg-transparent"},Pp={key:3,class:"absolute right-1 top-1"},Bp=["title"],Mp={key:1,class:"text-sm text-red-500 font-semibold text-left break-all"},Fp={class:"gap-x-0.5 inline-flex flex-wrap items-center text-xs pointer-events-none block font-medium text-gray-500 text-left break-all"},Lp={key:0},jp={key:1,class:"ml-0.5"},Vp={key:2,class:"absolute top-1 right-1"},ls=o.defineComponent({__name:"File",props:{file:{},isUploading:{type:Boolean},isUploaded:{type:Boolean},uploadRatio:{},selected:{type:Boolean,default:!1},onDeselect:{},singleDisk:{type:Boolean},fieldMode:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>t.file.type==="image"),a=o.computed(()=>t.file.type==="video"),r=o.computed(()=>t.file.type!=="image"&&t.file.type!=="video"),i=o.computed(()=>!t.file.exists),s=o.computed(()=>i.value?t.file.path:t.file.name);return(l,c)=>(o.openBlock(),o.createElementBlock("button",{class:"relative cursor-pointer group focus-visible:outline-none flex flex-col items-start",title:s.value},[o.createElementVNode("div",{class:o.normalizeClass(["relative block aspect-square w-full h-full overflow-hidden rounded-lg hover:shadow-md hover:opacity-75 border border-gray-200/50 dark:border-gray-700/50 text-left","group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-black dark:group-focus-visible:outline-white",l.selected?"outline outline-2 outline-blue-500 group-focus-visible:outline-blue-500":""])},[l.isUploading?(o.openBlock(),o.createElementBlock("div",Tp,[l.isUploaded===null?(o.openBlock(),o.createBlock(xo,{key:0,class:"w-16 h-16"})):l.isUploaded===!1?(o.openBlock(),o.createBlock(o.unref(El),{key:1,class:"w-16 h-16 text-red-500"})):l.isUploaded===!0?(o.openBlock(),o.createBlock(o.unref(yl),{key:2,class:"w-16 h-16 text-green-500"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),l.isUploading?(o.openBlock(),o.createElementBlock("div",Cp)):o.createCommentVNode("",!0),l.isUploading&&l.isUploaded===null?(o.openBlock(),o.createElementBlock("div",Np,[o.createElementVNode("span",null,o.toDisplayString(l.uploadRatio)+"%",1)])):o.createCommentVNode("",!0),o.createElementVNode("div",kp,[i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("div",Ip,[o.createVNode(o.unref(gp),{class:"w-16 h-16"})])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[r.value?(o.openBlock(),o.createElementBlock("div",_p,[l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ra),{key:0,class:"w-16 h-16"}))])):o.createCommentVNode("",!0),n.value?(o.openBlock(),o.createBlock(wl,{key:1,src:l.file.url,alt:l.file.name},null,8,["src","alt"])):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("video",Ap,[o.createElementVNode("source",{src:l.file.url},null,8,Dp),o.createTextVNode(" "+o.toDisplayString(l.__("Sorry, your browser doesn't support embedded videos.")),1)]),l.isUploading?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Rp,[o.createVNode(o.unref(bp),{class:"h-16 w-16 text-white/60"})]))],64)):o.createCommentVNode("",!0)],64))]),l.onDeselect?(o.openBlock(),o.createElementBlock("div",Pp,[l.onDeselect?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=d=>l.onDeselect(l.file)),class:"text-red-500 hover:text-red-600 rounded-full"},[o.createVNode(o.unref(yp),{class:"h-6 w-6"})])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2),!i.value||l.isUploading?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["pointer-events-none mt-2 block truncate font-medium text-gray-900 dark:text-gray-50 text-left w-full",l.isUploading||l.onDeselect?"text-xs":"text-sm"]),title:l.isUploading?l.file.name:s.value},o.toDisplayString(l.isUploading?l.file.name:s.value),11,Bp)):o.createCommentVNode("",!0),i.value&&!l.isUploading?(o.openBlock(),o.createElementBlock("p",Mp,o.toDisplayString(l.__("NovaFileManager.fileMissing",{path:l.file.path})),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Fp,[l.file.size?(o.openBlock(),o.createElementBlock("span",Lp,o.toDisplayString(l.file.size),1)):o.createCommentVNode("",!0),l.fieldMode&&!l.singleDisk&&l.file.disk?.length>0?(o.openBlock(),o.createElementBlock("span",jp,"· "+o.toDisplayString(l.file.disk),1)):o.createCommentVNode("",!0)]),l.selected?(o.openBlock(),o.createElementBlock("span",Vp,[o.createVNode(o.unref(yl),{class:"h-5 w-5 text-blue-500","aria-hidden":"true"})])):o.createCommentVNode("",!0)],8,Op))}});var So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Hp=Math.ceil,zp=Math.max;function Gp(e,t,n,a){for(var r=-1,i=zp(Hp((t-e)/(n||1)),0),s=Array(i);i--;)s[a?i:++r]=e,e+=n;return s}var Wp=Gp;function Kp(e,t){return e===t||e!==e&&t!==t}var cs=Kp,Xp=typeof So=="object"&&So&&So.Object===Object&&So,xl=Xp,Yp=xl,Jp=typeof self=="object"&&self&&self.Object===Object&&self,Qp=Yp||Jp||Function("return this")(),Vt=Qp,Zp=Vt,qp=Zp.Symbol,sa=qp,Sl=sa,Ol=Object.prototype,$p=Ol.hasOwnProperty,eh=Ol.toString,ia=Sl?Sl.toStringTag:void 0;function th(e){var t=$p.call(e,ia),n=e[ia];try{e[ia]=void 0;var a=!0}catch{}var r=eh.call(e);return a&&(t?e[ia]=n:delete e[ia]),r}var nh=th,oh=Object.prototype,ah=oh.toString;function rh(e){return ah.call(e)}var sh=rh,Tl=sa,ih=nh,lh=sh,ch="[object Null]",dh="[object Undefined]",Cl=Tl?Tl.toStringTag:void 0;function uh(e){return e==null?e===void 0?dh:ch:Cl&&Cl in Object(e)?ih(e):lh(e)}var Oo=uh;function fh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var On=fh,ph=Oo,hh=On,mh="[object AsyncFunction]",vh="[object Function]",gh="[object GeneratorFunction]",bh="[object Proxy]";function yh(e){if(!hh(e))return!1;var t=ph(e);return t==vh||t==gh||t==mh||t==bh}var Nl=yh,Eh=9007199254740991;function wh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Eh}var kl=wh,xh=Nl,Sh=kl;function Oh(e){return e!=null&&Sh(e.length)&&!xh(e)}var ds=Oh,Th=9007199254740991,Ch=/^(?:0|[1-9]\d*)$/;function Nh(e,t){var n=typeof e;return t=t??Th,!!t&&(n=="number"||n!="symbol"&&Ch.test(e))&&e>-1&&e%1==0&&e0){var _=!1;for(var A in b.fileType){var D="."+b.fileType[A];if(I.toLowerCase().indexOf(D.toLowerCase(),I.length-D.length)!==-1){_=!0;break}}if(!_)return b.fileTypeErrorCallback(N,y++),!1}if(typeof b.minFileSize<"u"&&N.sizeb.maxFileSize)return b.maxFileSizeErrorCallback(N,y++),!1;function M(B){a.getFromUniqueIdentifier(B)?T.push(N):function(){N.uniqueIdentifier=B;var j=new h(a,N,B);a.files.push(j),g.push(j),j.container=typeof m<"u"?m.srcElement:null,window.setTimeout(function(){a.fire("fileAdded",j,m)},0)}(),S()}var K=r.generateUniqueIdentifier(N,m);K&&typeof K.then=="function"?K.then(function(B){M(B)},function(){S()}):M(K)})};function h(u,m,y){var b=this;b.opts={},b.getOpt=u.getOpt,b._prevProgress=0,b.resumableObj=u,b.file=m,b.fileName=m.fileName||m.name,b.size=m.size,b.relativePath=m.relativePath||m.webkitRelativePath||b.fileName,b.uniqueIdentifier=y,b._pause=!1,b.container="";var g=y!==void 0,T=function(O,S){switch(O){case"progress":b.resumableObj.fire("fileProgress",b,S);break;case"error":b.abort(),g=!0,b.chunks=[],b.resumableObj.fire("fileError",b,S);break;case"success":if(g)return;b.resumableObj.fire("fileProgress",b),b.isComplete()&&b.resumableObj.fire("fileSuccess",b,S);break;case"retry":b.resumableObj.fire("fileRetry",b);break}};return b.chunks=[],b.abort=function(){var O=0;r.each(b.chunks,function(S){S.status()=="uploading"&&(S.abort(),O++)}),O>0&&b.resumableObj.fire("fileProgress",b)},b.cancel=function(){var O=b.chunks;b.chunks=[],r.each(O,function(S){S.status()=="uploading"&&(S.abort(),b.resumableObj.uploadNextChunk())}),b.resumableObj.removeFile(b),b.resumableObj.fire("fileProgress",b)},b.retry=function(){b.bootstrap();var O=!1;b.resumableObj.on("chunkingComplete",function(){O||b.resumableObj.upload(),O=!0})},b.bootstrap=function(){b.abort(),g=!1,b.chunks=[],b._prevProgress=0;for(var O=b.getOpt("forceChunkSize")?Math.ceil:Math.floor,S=Math.max(O(b.file.size/b.getOpt("chunkSize")),1),N=0;N.99999?1:O,O=Math.max(b._prevProgress,O),b._prevProgress=O,O},b.isUploading=function(){var O=!1;return r.each(b.chunks,function(S){if(S.status()=="uploading")return O=!0,!1}),O},b.isComplete=function(){var O=!1;return r.each(b.chunks,function(S){var N=S.status();if(N=="pending"||N=="uploading"||S.preprocessState===1)return O=!0,!1}),!O},b.pause=function(O){typeof O>"u"?b._pause=!b._pause:b._pause=O},b.isPaused=function(){return b._pause},b.resumableObj.fire("chunkingStart",b),b.bootstrap(),this}function v(u,m,y,b){var g=this;g.opts={},g.getOpt=u.getOpt,g.resumableObj=u,g.fileObj=m,g.fileObjSize=m.size,g.fileObjType=m.file.type,g.offset=y,g.callback=b,g.lastProgressCallback=new Date,g.tested=!1,g.retries=0,g.pendingRetry=!1,g.preprocessState=0;var T=g.getOpt("chunkSize");return g.loaded=0,g.startByte=g.offset*T,g.endByte=Math.min(g.fileObjSize,(g.offset+1)*T),g.fileObjSize-g.endByteg.getOpt("throttleProgressCallbacks")*1e3&&(g.callback("progress"),g.lastProgressCallback=new Date),g.loaded=Q.loaded||0},!1),g.loaded=0,g.pendingRetry=!1,g.callback("progress");var S=function(Q){var ne=g.status();if(ne=="success"||ne=="error")g.callback(ne,g.message()),g.resumableObj.uploadNextChunk();else{g.callback("retry",g.message()),g.abort(),g.retries++;var we=g.getOpt("chunkRetryInterval");we!==void 0?(g.pendingRetry=!0,setTimeout(g.send,we)):g.send()}};g.xhr.addEventListener("load",S,!1),g.xhr.addEventListener("error",S,!1),g.xhr.addEventListener("timeout",S,!1);var N=[["chunkNumberParameterName",g.offset+1],["chunkSizeParameterName",g.getOpt("chunkSize")],["currentChunkSizeParameterName",g.endByte-g.startByte],["totalSizeParameterName",g.fileObjSize],["typeParameterName",g.fileObjType],["identifierParameterName",g.fileObj.uniqueIdentifier],["fileNameParameterName",g.fileObj.fileName],["relativePathParameterName",g.fileObj.relativePath],["totalChunksParameterName",g.fileObj.chunks.length]].filter(function(Q){return g.getOpt(Q[0])}).reduce(function(Q,ne){return Q[g.getOpt(ne[0])]=ne[1],Q},{}),I=g.getOpt("query");typeof I=="function"&&(I=I(g.fileObj,g)),r.each(I,function(Q,ne){N[Q]=ne});var _=g.fileObj.file.slice?"slice":g.fileObj.file.mozSlice?"mozSlice":g.fileObj.file.webkitSlice?"webkitSlice":"slice",A=g.fileObj.file[_](g.startByte,g.endByte,g.getOpt("setChunkTypeFromFile")?g.fileObj.file.type:""),D=null,M=[],K=g.getOpt("parameterNamespace");if(g.getOpt("method")==="octet")D=A,r.each(N,function(Q,ne){M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))});else if(D=new FormData,r.each(N,function(Q,ne){D.append(K+Q,ne),M.push([encodeURIComponent(K+Q),encodeURIComponent(ne)].join("="))}),g.getOpt("chunkFormat")=="blob")D.append(K+g.getOpt("fileParameterName"),A,g.fileObj.fileName);else if(g.getOpt("chunkFormat")=="base64"){var B=new FileReader;B.onload=function(Q){D.append(K+g.getOpt("fileParameterName"),B.result),g.xhr.send(D)},B.readAsDataURL(A)}var j=r.getTarget("upload",M),H=g.getOpt("uploadMethod");g.xhr.open(H,j),g.getOpt("method")==="octet"&&g.xhr.setRequestHeader("Content-Type","application/octet-stream"),g.xhr.timeout=g.getOpt("xhrTimeout"),g.xhr.withCredentials=g.getOpt("withCredentials");var W=g.getOpt("headers");typeof W=="function"&&(W=W(g.fileObj,g)),r.each(W,function(Q,ne){g.xhr.setRequestHeader(Q,ne)}),g.getOpt("chunkFormat")=="blob"&&g.xhr.send(D)},g.abort=function(){g.xhr&&g.xhr.abort(),g.xhr=null},g.status=function(){return g.pendingRetry?"uploading":g.xhr?g.xhr.readyState<4?"uploading":g.xhr.status==200||g.xhr.status==201?"success":r.contains(g.getOpt("permanentErrors"),g.xhr.status)||g.retries>=g.getOpt("maxChunkRetries")?"error":(g.abort(),"pending"):"pending"},g.message=function(){return g.xhr?g.xhr.responseText:""},g.progress=function(O){typeof O>"u"&&(O=!1);var S=O?(g.endByte-g.startByte)/g.fileObjSize:1;if(g.pendingRetry)return 0;(!g.xhr||!g.xhr.status)&&(S*=.95);var N=g.status();switch(N){case"success":case"error":return 1*S;case"pending":return 0*S;default:return g.loaded/(g.endByte-g.startByte)*S}},this}return a.uploadNextChunk=function(){var u=!1;if(a.getOpt("prioritizeFirstAndLastChunk")&&(r.each(a.files,function(y){if(y.chunks.length&&y.chunks[0].status()=="pending"&&y.chunks[0].preprocessState===0)return y.chunks[0].send(),u=!0,!1;if(y.chunks.length>1&&y.chunks[y.chunks.length-1].status()=="pending"&&y.chunks[y.chunks.length-1].preprocessState===0)return y.chunks[y.chunks.length-1].send(),u=!0,!1}),u)||(r.each(a.files,function(y){if(y.isPaused()===!1&&r.each(y.chunks,function(b){if(b.status()=="pending"&&b.preprocessState===0)return b.send(),u=!0,!1}),u)return!1}),u))return!0;var m=!1;return r.each(a.files,function(y){if(!y.isComplete())return m=!0,!1}),m||a.fire("complete"),!1},a.assignBrowse=function(u,m){typeof u.length>"u"&&(u=[u]),r.each(u,function(y){var b;y.tagName==="INPUT"&&y.type==="file"?b=y:(b=document.createElement("input"),b.setAttribute("type","file"),b.style.display="none",y.addEventListener("click",function(){b.style.opacity=0,b.style.display="block",b.focus(),b.click(),b.style.display="none"},!1),y.appendChild(b));var g=a.getOpt("maxFiles");typeof g>"u"||g!=1?b.setAttribute("multiple","multiple"):b.removeAttribute("multiple"),m?b.setAttribute("webkitdirectory","webkitdirectory"):b.removeAttribute("webkitdirectory");var T=a.getOpt("fileType");typeof T<"u"&&T.length>=1?b.setAttribute("accept",T.map(function(O){return"."+O}).join(",")):b.removeAttribute("accept"),b.addEventListener("change",function(O){p(O.target.files,O);var S=a.getOpt("clearInput");S&&(O.target.value="")},!1)})},a.assignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.addEventListener("dragover",s,!1),m.addEventListener("dragenter",s,!1),m.addEventListener("drop",i,!1)})},a.unAssignDrop=function(u){typeof u.length>"u"&&(u=[u]),r.each(u,function(m){m.removeEventListener("dragover",s),m.removeEventListener("dragenter",s),m.removeEventListener("drop",i)})},a.isUploading=function(){var u=!1;return r.each(a.files,function(m){if(m.isUploading())return u=!0,!1}),u},a.upload=function(){if(!a.isUploading()){a.fire("uploadStart");for(var u=1;u<=a.getOpt("simultaneousUploads");u++)a.uploadNextChunk()}},a.pause=function(){r.each(a.files,function(u){u.abort()}),a.fire("pause")},a.cancel=function(){a.fire("beforeCancel");for(var u=a.files.length-1;u>=0;u--)a.files[u].cancel();a.fire("cancel")},a.progress=function(){var u=0,m=0;return r.each(a.files,function(y){u+=y.progress()*y.size,m+=y.size}),m>0?u/m:0},a.addFile=function(u,m){p([u],m)},a.addFiles=function(u,m){p(u,m)},a.removeFile=function(u){for(var m=a.files.length-1;m>=0;m--)a.files[m]===u&&a.files.splice(m,1)},a.getFromUniqueIdentifier=function(u){var m=!1;return r.each(a.files,function(y){y.uniqueIdentifier==u&&(m=y)}),m},a.getSize=function(){var u=0;return r.each(a.files,function(m){u+=m.size}),u},a.handleDropEvent=function(u){i(u)},a.handleChangeEvent=function(u){p(u.target.files,u),u.target.value=""},a.updateQuery=function(u){a.opts.query=u},this};e.exports=t})()})(Pl);var dm=Pl.exports;const um=Sn(dm),la="queue",ps="preview",fm="upload",Tn="upload-crop",hs="browser",pm="folder",hm="KeyK",ms={folders:"#",files:">",help:"?"},mm=["setDisk","setPath","setPerPage","setPage","setSearch","upload","renameFile","deleteFiles","unzipFile","createFolder","renameFolder","deleteFolder"],Qt={CREATE_FOLDER:"createFolder",RENAME_FOLDER:"renameFolder",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",DELETE_FILE:"deleteFile",UNZIP_FILE:"unzipFile"},Ut={CREATE_FOLDER:"createFolder",DELETE_FILES:"deleteFiles",DELETE_FOLDER:"deleteFolder",RENAME_FILE:"renameFile",RENAME_FOLDER:"renameFolder",UNZIP_FILE:"unzipFile"},ln={CREATE_FOLDER:"/folders/create",DELETE_FILE:"/files/delete",DELETE_FOLDER:"/folders/delete",DISKS:"/disks",DOWNLOAD_FILE:"/files/download",RENAME_FILE:"/files/rename",RENAME_FOLDER:"/folders/rename",UNZIP_FILE:"/files/unzip",UPLOAD:"/nova-vendor/nova-file-manager/files/upload"};async function To({operation:e,endpoint:t,data:n,modal:a,callback:r}){const i=Re(),s=i.post,l=i.setError,c=i.resetError,d=i.closeModal;try{i.loadingOperation=e;const f=await s({path:t,data:n});c(),window.Nova.success(f.data.message),r&&r(f),a&&d({name:a})}catch(f){i.loadingOperation=void 0;const p=f.response?.data;window.Nova.error(p?.message||"An error occurred"),l({attribute:e,bag:p})}}function Bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:vm}=Object.prototype,{getPrototypeOf:vs}=Object,$a=(e=>t=>{const n=vm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>$a(t)===e),er=e=>t=>typeof t===e,{isArray:Co}=Array,ca=er("undefined");function gm(e){return e!==null&&!ca(e)&&e.constructor!==null&&!ca(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ml=Zt("ArrayBuffer");function bm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ml(e.buffer),t}const ym=er("string"),It=er("function"),Fl=er("number"),tr=e=>e!==null&&typeof e=="object",Em=e=>e===!0||e===!1,nr=e=>{if($a(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wm=Zt("Date"),xm=Zt("File"),Sm=Zt("Blob"),Om=Zt("FileList"),Tm=e=>tr(e)&&It(e.pipe),Cm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=$a(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Nm=Zt("URLSearchParams"),km=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function da(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),Co(e))for(a=0,r=e.length;a0;)if(r=n[a],t===r.toLowerCase())return r;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vl=e=>!ca(e)&&e!==jl;function gs(){const{caseless:e}=Vl(this)&&this||{},t={},n=(a,r)=>{const i=e&&Ll(t,r)||r;nr(t[i])&&nr(a)?t[i]=gs(t[i],a):nr(a)?t[i]=gs({},a):Co(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a(da(t,(r,i)=>{n&&It(r)?e[i]=Bl(r,n):e[i]=r},{allOwnKeys:a}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dm=(e,t,n,a)=>{let r,i,s;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],(!a||a(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Pm=e=>{if(!e)return null;if(Co(e))return e;let t=e.length;if(!Fl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),Mm=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Fm=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Lm=Zt("HTMLFormElement"),jm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),Ul=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vm=Zt("RegExp"),Hl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};da(n,(r,i)=>{let s;(s=t(r,i,e))!==!1&&(a[i]=s||r)}),Object.defineProperties(e,a)},Um=e=>{Hl(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(It(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hm=(e,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return Co(e)?a(e):a(String(e).split(t)),n},zm=()=>{},Gm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),bs="abcdefghijklmnopqrstuvwxyz",zl="0123456789",Gl={DIGIT:zl,ALPHA:bs,ALPHA_DIGIT:bs+bs.toUpperCase()+zl},Wm=(e=16,t=Gl.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function Km(e){return!!(e&&It(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xm=e=>{const t=new Array(10),n=(a,r)=>{if(tr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=Co(a)?[]:{};return da(a,(s,l)=>{const c=n(s,r+1);!ca(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(e,0)},Ym=Zt("AsyncFunction"),X={isArray:Co,isArrayBuffer:Ml,isBuffer:gm,isFormData:Cm,isArrayBufferView:bm,isString:ym,isNumber:Fl,isBoolean:Em,isObject:tr,isPlainObject:nr,isUndefined:ca,isDate:wm,isFile:xm,isBlob:Sm,isRegExp:Vm,isFunction:It,isStream:Tm,isURLSearchParams:Nm,isTypedArray:Bm,isFileList:Om,forEach:da,merge:gs,extend:Im,trim:km,stripBOM:_m,inherits:Am,toFlatObject:Dm,kindOf:$a,kindOfTest:Zt,endsWith:Rm,toArray:Pm,forEachEntry:Mm,matchAll:Fm,isHTMLForm:Lm,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Um,toObjectSet:Hm,toCamelCase:jm,noop:zm,toFiniteNumber:Gm,findKey:Ll,global:jl,isContextDefined:Vl,ALPHABET:Gl,generateString:Wm,isSpecCompliantForm:Km,toJSONObject:Xm,isAsyncFn:Ym,isThenable:e=>e&&(tr(e)||It(e))&&It(e.then)&&It(e.catch)};function Ce(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}X.inherits(Ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wl=Ce.prototype,Kl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kl[e]={value:e}}),Object.defineProperties(Ce,Kl),Object.defineProperty(Wl,"isAxiosError",{value:!0}),Ce.from=(e,t,n,a,r,i)=>{const s=Object.create(Wl);return X.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ce.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Jm=null;function ys(e){return X.isPlainObject(e)||X.isArray(e)}function Xl(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Yl(e,t,n){return e?e.concat(t).map(function(r,i){return r=Xl(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Qm(e){return X.isArray(e)&&!e.some(ys)}const Zm=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function or(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!X.isUndefined(y[m])});const a=n.metaTokens,r=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(r))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(X.isDate(u))return u.toISOString();if(!c&&X.isBlob(u))throw new Ce("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(u)||X.isTypedArray(u)?c&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,m,y){let b=u;if(u&&!y&&typeof u=="object"){if(X.endsWith(m,"{}"))m=a?m:m.slice(0,-2),u=JSON.stringify(u);else if(X.isArray(u)&&Qm(u)||(X.isFileList(u)||X.endsWith(m,"[]"))&&(b=X.toArray(u)))return m=Xl(m),b.forEach(function(T,O){!(X.isUndefined(T)||T===null)&&t.append(s===!0?Yl([m],O,i):s===null?m:m+"[]",d(T))}),!1}return ys(u)?!0:(t.append(Yl(y,m,i),d(u)),!1)}const p=[],h=Object.assign(Zm,{defaultVisitor:f,convertValue:d,isVisitable:ys});function v(u,m){if(!X.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),X.forEach(u,function(b,g){(!(X.isUndefined(b)||b===null)&&r.call(t,b,X.isString(g)?g.trim():g,m,h))===!0&&v(b,m?m.concat(g):[g])}),p.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Jl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Es(e,t){this._pairs=[],e&&or(e,this,t)}const Ql=Es.prototype;Ql.append=function(t,n){this._pairs.push([t,n])},Ql.toString=function(t){const n=t?function(a){return t.call(this,a,Jl)}:Jl;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zl(e,t,n){if(!t)return e;const a=n&&n.encode||qm,r=n&&n.serialize;let i;if(r?i=r(t,n):i=X.isURLSearchParams(t)?t.toString():new Es(t,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ql{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(a){a!==null&&t(a)})}}const $l={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$m={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Es,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ec=typeof window<"u"&&typeof document<"u",ev=(e=>ec&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),tv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ec,hasStandardBrowserEnv:ev,hasStandardBrowserWebWorkerEnv:tv},Symbol.toStringTag,{value:"Module"})),...$m};function nv(e,t){return or(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return qt.isNode&&X.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ov(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function av(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a=n.length;return s=!s&&X.isArray(r)?r.length:s,c?(X.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!X.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&X.isArray(r[s])&&(r[s]=av(r[s])),!l)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(a,r)=>{t(ov(a),r,n,0)}),n}return null}function rv(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(0,JSON.stringify)(e)}const ua={transitional:$l,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return r?JSON.stringify(tc(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nv(t,this.formSerializer).toString();if((l=X.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return or(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),rv(t)):t}],transformResponse:[function(t){const n=this.transitional||ua.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&X.isString(t)&&(a&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ce.from(l,Ce.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});const sv=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iv=e=>{const t={};let n,a,r;return e&&e.split(` +`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),a=s.substring(r+1).trim(),!(!n||t[n]&&sv[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},nc=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function ar(e){return e===!1||e==null?e:X.isArray(e)?e.map(ar):String(e)}function lv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const cv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ws(e,t,n,a,r){if(X.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!X.isString(t)){if(X.isString(a))return t.indexOf(a)!==-1;if(X.isRegExp(a))return a.test(t)}}function dv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function uv(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(r,i,s){return this[a].call(this,t,r,i,s)},configurable:!0})})}class _t{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(l,c,d){const f=fa(c);if(!f)throw new Error("header name must be a non-empty string");const p=X.findKey(r,f);(!p||r[p]===void 0||d===!0||d===void 0&&r[p]!==!1)&&(r[p||c]=ar(l))}const s=(l,c)=>X.forEach(l,(d,f)=>i(d,f,c));return X.isPlainObject(t)||t instanceof this.constructor?s(t,n):X.isString(t)&&(t=t.trim())&&!cv(t)?s(iv(t),n):t!=null&&i(n,t,a),this}get(t,n){if(t=fa(t),t){const a=X.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return lv(r);if(X.isFunction(n))return n.call(this,r,a);if(X.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fa(t),t){const a=X.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||ws(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(s){if(s=fa(s),s){const l=X.findKey(a,s);l&&(!n||ws(a,a[l],l,n))&&(delete a[l],r=!0)}}return X.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||ws(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return X.forEach(this,(r,i)=>{const s=X.findKey(a,i);if(s){n[s]=ar(r),delete n[i];return}const l=t?dv(i):String(i).trim();l!==i&&delete n[i],n[l]=ar(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&X.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[nc]=this[nc]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=fa(s);a[l]||(uv(r,s),a[l]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(_t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}}),X.freezeMethods(_t);function xs(e,t){const n=this||ua,a=t||n,r=_t.from(a.headers);let i=a.data;return X.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function oc(e){return!!(e&&e.__CANCEL__)}function pa(e,t,n){Ce.call(this,e??"canceled",Ce.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(pa,Ce,{__CANCEL__:!0});function fv(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ce("Request failed with status code "+n.status,[Ce.ERR_BAD_REQUEST,Ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const pv=qt.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),X.isString(a)&&s.push("path="+a),X.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!hv(t)?mv(e,t):t}const vv=qt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(s){const l=X.isString(s)?r(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}();function gv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function bv(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=a[i];s||(s=d),n[r]=c,a[r]=d;let p=i,h=0;for(;p!==r;)h+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),d-s{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-n,c=a(l),d=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:r};f[t?"download":"upload"]=!0,e(f)}}const Ss={http:Jm,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){let r=e.data;const i=_t.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let f;if(X.isFormData(r)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...y].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+y))}const h=ac(e.baseURL,e.url);p.open(e.method.toUpperCase(),Zl(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function v(){if(!p)return;const m=_t.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:e,request:p};fv(function(T){n(T),d()},function(T){a(T),d()},b),p=null}if("onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(v)},p.onabort=function(){p&&(a(new Ce("Request aborted",Ce.ECONNABORTED,e,p)),p=null)},p.onerror=function(){a(new Ce("Network Error",Ce.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||$l;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),a(new Ce(y,b.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,p)),p=null},qt.hasStandardBrowserEnv&&(l&&X.isFunction(l)&&(l=l(e)),l||l!==!1&&vv(h))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&pv.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}r===void 0&&i.setContentType(null),"setRequestHeader"in p&&X.forEach(i.toJSON(),function(y,b){p.setRequestHeader(b,y)}),X.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),s&&s!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{p&&(a(!m||m.type?new pa(null,e,p):m),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const u=gv(h);if(u&&qt.protocols.indexOf(u)===-1){a(new Ce("Unsupported protocol "+u+":",Ce.ERR_BAD_REQUEST,e));return}p.send(r||null)})}};X.forEach(Ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sc=e=>`- ${e}`,yv=e=>X.isFunction(e)||e===null||e===!1,ic={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(sc).join(` -`):" "+sc(i[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Ss};function Os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pa(null,e)}function lc(e){return Os(e),e.headers=Dt.from(e.headers),e.data=xs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ic.getAdapter(e.adapter||ua.adapter)(e).then(function(a){return Os(e),a.data=xs.call(e,e.transformResponse,a),a.headers=Dt.from(a.headers),a},function(a){return oc(a)||(Os(e),a&&a.response&&(a.response.data=xs.call(e,e.transformResponse,a.response),a.response.headers=Dt.from(a.response.headers))),Promise.reject(a)})}const cc=e=>e instanceof Dt?e.toJSON():e;function No(e,t){t=t||{};const n={};function a(d,f,p){return X.isPlainObject(d)&&X.isPlainObject(f)?X.merge.call({caseless:p},d,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(d,f,p){if(X.isUndefined(f)){if(!X.isUndefined(d))return a(void 0,d,p)}else return a(d,f,p)}function i(d,f){if(!X.isUndefined(f))return a(void 0,f)}function s(d,f){if(X.isUndefined(f)){if(!X.isUndefined(d))return a(void 0,d)}else return a(void 0,f)}function l(d,f,p){if(p in t)return a(d,f);if(p in e)return a(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,f)=>r(cc(d),cc(f),!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=c[f]||r,h=p(e[f],t[f],f);X.isUndefined(h)&&p!==l||(n[f]=h)}),n}const dc="1.6.7",Ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ts[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const uc={};Ts.transitional=function(t,n,a){function r(i,s){return"[Axios v"+dc+"] Transitional option '"+i+"'"+s+(a?". "+a:"")}return(i,s,l)=>{if(t===!1)throw new Ce(r(s," has been removed"+(n?" in "+n:"")),Ce.ERR_DEPRECATED);return n&&!uc[s]&&(uc[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Ev(e,t,n){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new Ce("option "+i+" must be "+c,Ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ce("Unknown option "+i,Ce.ERR_BAD_OPTION)}}const Cs={assertOptions:Ev,validators:Ts},Cn=Cs.validators;class Xn{constructor(t){this.defaults=t,this.interceptors={request:new ql,response:new ql}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=` -`+i):a.stack=i}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=No(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&Cs.assertOptions(a,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),r!=null&&(X.isFunction(r)?n.paramsSerializer={serialize:r}:Cs.assertOptions(r,{encode:Cn.function,serialize:Cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=Dt.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let f,p=0,h;if(!c){const u=[lc.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),h=u.length,f=Promise.resolve(n);p{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{a.subscribe(l),i=l}).then(r);return s.cancel=function(){a.unsubscribe(i)},s},t(function(i,s,l){a.reason||(a.reason=new pa(i,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ns(function(r){t=r}),cancel:t}}}function wv(e){return function(n){return e.apply(null,n)}}function xv(e){return X.isObject(e)&&e.isAxiosError===!0}const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ks).forEach(([e,t])=>{ks[t]=e});function fc(e){const t=new Xn(e),n=Bl(Xn.prototype.request,t);return X.extend(n,Xn.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return fc(No(e,r))},n}const We=fc(ua);We.Axios=Xn,We.CanceledError=pa,We.CancelToken=Ns,We.isCancel=oc,We.VERSION=dc,We.toFormData=or,We.AxiosError=Ce,We.Cancel=We.CanceledError,We.all=function(t){return Promise.all(t)},We.spread=wv,We.isAxiosError=xv,We.mergeConfig=No,We.AxiosHeaders=Dt,We.formToJSON=e=>tc(X.isHTMLForm(e)?new FormData(e):e),We.getAdapter=ic.getAdapter,We.HttpStatusCode=ks,We.default=We;function Sv(e){return e==null}var Ov=Sv;const Tv=Sn(Ov);function pc(){return document.head.querySelector('meta[name="csrf-token"]')?.content??!1}function hc(){const e=We.create();return e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",e.defaults.headers.common["X-CSRF-TOKEN"]=pc(),e.interceptors.response.use(t=>t,t=>{if(We.isCancel(t))return Promise.reject(t);const n=t.response,{status:a,data:{redirect:r}}=n;if(a>=500&&window.Nova.$emit("error",t.response.data.message),a===401){if(!Tv(r)){location.href=r;return}window.Nova.redirectToLogin()}return a===403&&window.Nova.visit("/403"),a===419&&window.Nova.$emit("token-expired"),Promise.reject(t)}),e}function Cv(e){return function(t){return e?.[t]}}var Nv=Cv,kv=Nv,Iv={"&":"&","<":"<",">":">",'"':""","'":"'"},Dv=kv(Iv),Av=Dv;function _v(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n"']/g,zv=RegExp(wc.source);function Gv(e){return e=Hv(e),e&&zv.test(e)?e.replace(wc,Uv):e}var Wv=Gv;const Kv=Sn(Wv);function Nn(e,t){if(e==null)return e;let n=t?.escape?Kv(e):e;return n=n.trim().replace(/ /g," ").replace(/\/{2,}/g,"/"),n}const Re=ns("nova-file-manager/browser",{state:()=>({path:void 0,disk:void 0,disks:void 0,page:void 0,search:void 0,perPage:10,perPageOptions:fs(10,60,10),view:"grid",modals:[],callback:()=>{},files:void 0,folders:void 0,breadcrumbs:void 0,pagination:void 0,error:void 0,selection:void 0,preview:void 0,limit:void 0,wrapper:void 0,queue:[],multiple:void 0,ready:!1,isField:!1,isFetchingDisks:!1,isFetchingData:!1,isUploading:!1,loadingOperation:void 0,dark:void 0,tour:!1,resource:void 0,resourceId:void 0,attribute:void 0,singleDisk:!1,flexibleGroup:[],fieldInit:void 0,permissions:{folder:{create:!0,rename:!0,delete:!0},file:{upload:!0,rename:!0,edit:!0,delete:!0,unzip:!0}},chunkSize:50*1024*1024,usePintura:!1,pinturaOptions:{},cropperOptions:{}}),actions:{init(){this.ready||(this.syncDarkMode(),this.loadFromLocalStorage(),this.loadFromQueryString(),this.ready=!0)},syncDarkMode(){this.dark===void 0&&(this.dark=document.documentElement.classList.contains("dark")),window.Nova.$on("nova-theme-switched",({theme:e})=>{this.dark=e==="dark"})},loadFromLocalStorage(){if(this.isField)return;["perPage","view","disk"].forEach(t=>{const n=window?.localStorage.getItem(`nova-file-manager/${t}`);n&&n.length&&this.$patch({[t]:n})})},loadFromQueryString(){if(this.isField)return;const e=Object.fromEntries(new URLSearchParams(window?.location.search).entries());for(const[t,n]of Object.entries(e))["path","disk","page","perPage"].includes(t)&&this.$patch({[t]:n});window.location.href.includes("?")||(this.path="/")},saveToLocalStorage({values:e}){if(!(this.isField||!e))for(const[t,n]of Object.entries(e))n&&window?.localStorage.setItem(`nova-file-manager/${t}`,n.toString())},selectFile({file:e}){if(!this.selection){this.selection=[e];return}this.selection.push(e)},deselectFile({file:e}){this.selection=this.selection?.filter(t=>t.id!==e.id)},setSelection({files:e}){this.selection=e},clearSelection(){this.setSelection({files:void 0})},toggleSelection({file:e}){if(this.isSelected(e)){this.deselectFile({file:e});return}this.multiple||this.clearSelection(),this.selectFile({file:e})},openModal({name:e}){this.modals.unshift(e)},closeModal({name:e}){e===ps&&(this.preview=void 0),this.modals=this.modals.filter(t=>t!==e),this.resetError(),this.fixPortal()},setError({attribute:e,bag:t}){this.error={attribute:e,bag:t}},resetError(){this.error=void 0},queueFile({file:e}){this.queue.push({id:e.name,ratio:0,status:null,file:e,isImage:e.type.includes("image")??!1})},clearQueue(){this.queue=[]},updateQueue({id:e,ratio:t=100,status:n=null}){this.queue=this.queue.map(r=>r.id===e?{...r,status:n,ratio:t}:r),this.queue.reduce((r,i)=>r&&i.ratio===100,!0)&&this.queue.length&&setTimeout(async()=>{this.closeModal({name:fm}),this.closeModal({name:la}),this.clearQueue(),this.isUploading=!1,await this.data()},1e3)},fixPortal(){this.modals.length||this.preview||setTimeout(()=>{document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right")},200)},setQueryString({parameters:e}){if(this.isField)return;const t=new URLSearchParams(window.location.search),n=window.Nova.app.config.globalProperties.$inertia.page;for(const[a,r]of Object.entries(e)){const i=r?.toString();if(!i){t.delete(a);continue}i?.length>0&&t.set(a,i)}if(n.url!==`${window.location.pathname}?${t}`){n.url=`${window.location.pathname}?${t}`;const a=t.toString().length>0?"?":"";window.history.pushState(n,"",`${window.location.pathname}${a}${t}`)}},reset(){["page","search","path"].forEach(t=>{this.$patch({[t]:null})})},async setPath({path:e}){this.reset(),this.path=e,this.setQueryString({parameters:{page:null,search:null,path:e}})},async setDisk({disk:e}){this.reset(),this.disk=e,this.setQueryString({parameters:{disk:e}}),this.saveToLocalStorage({values:{disk:e,page:null,search:null,path:null}})},async setPerPage({perPage:e}){this.perPage=e,this.page=1,this.setQueryString({parameters:{perPage:e}}),this.saveToLocalStorage({values:{perPage:e}})},async setPage({page:e}){this.page=e,this.setQueryString({parameters:{page:e}})},setView({view:e}){this.view=e,this.saveToLocalStorage({values:{view:e}})},setSearch({search:e}){this.search=e,this.setQueryString({parameters:{search:e}})},setPreview({preview:e}){this.preview=e},async deleteSelectedFiles(){await this.deleteFiles({paths:this.selection?.map(e=>e.path)??[]})},async data(){this.isFetchingData=!0;const{data:e}=await this.get({params:this.payload({path:this.path,page:this.page,perPage:this.perPage,search:this.search})});this.disk=e.disk,this.folders=e.folders,this.breadcrumbs=e.breadcrumbs,this.files=e.files,this.pagination=e.pagination,this.isFetchingData=!1},async getDisks(){this.isFetchingDisks=!0;const{data:e}=await this.get({path:ln.DISKS});this.disks=e,this.isFetchingDisks=!1},async createFolder({path:e}){await To({operation:Qt.CREATE_FOLDER,modal:Ut.CREATE_FOLDER,endpoint:ln.CREATE_FOLDER,data:this.payload({path:Nn(`${this.path??""}/${Nn(e)}`,{escape:!1})})})},async renameFolder({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FOLDER,modal:`${Ut.RENAME_FOLDER}-${e}`,endpoint:ln.RENAME_FOLDER,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFolder({id:e,path:t}){await To({operation:Qt.DELETE_FOLDER,modal:`${Ut.DELETE_FOLDER}-${e}`,endpoint:ln.DELETE_FOLDER,data:this.payload({path:t})})},upload({files:e}){this.isUploading=!0;const t=new um({permanentErrors:[400,404,409,415,419,422,500,501],chunkSize:this.chunkSize,maxChunkRetries:5,chunkRetryInterval:1e3,simultaneousUploads:1,testChunks:!1,target:this.url(ln.UPLOAD),query:this.payload({path:this.path??"/"}),headers:{Accept:"application/json","X-CSRF-TOKEN":pc()}});e.forEach(n=>{t.addFile(n),this.queueFile({file:n})}),t.on("fileAdded",()=>t.upload()),t.on("fileSuccess",n=>{this.updateQueue({id:n.fileName,status:!0})}),t.on("fileProgress",n=>{this.updateQueue({id:n.fileName,ratio:Math.floor(n.progress(!1)*100)})}),t.on("fileError",(n,a)=>{this.updateQueue({id:n.fileName,status:!1}),window.Nova.error(JSON.parse(a).message)})},async renameFile({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FILE,modal:`${Ut.RENAME_FILE}-${e}`,endpoint:ln.RENAME_FILE,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFiles({paths:e}){e.length!==0&&await To({operation:Qt.DELETE_FILE,modal:Ut.DELETE_FILES,endpoint:ln.DELETE_FILE,data:this.payload({paths:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async unzipFile({path:e}){await To({operation:Qt.UNZIP_FILE,endpoint:ln.UNZIP_FILE,data:this.payload({path:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},downloadUrl(e){return this.url(`/nova-vendor/nova-file-manager/${ln.DOWNLOAD_FILE}?disk=${e.disk}&path=${e.path}`)},async get({path:e,params:t,options:n={}}){return await hc().get(this.url(`/nova-vendor/nova-file-manager${e??""}`),{params:t,...n})},async post({path:e,data:t}){return await hc().post(this.url(`/nova-vendor/nova-file-manager${e??""}`),t)},payload(e){let t={...e,attribute:this.attribute,resource:this.resource,fieldMode:this.isField};if(this.component?.length&&["Nova.Create","Nova.Update"].includes(this.component)){let n;switch(this.component){case"Nova.Create":n="create";break;case"Nova.Update":n="update";break}t={...t,editing:!0,editMode:n}}return this.wrapper?.length&&(t={...t,wrapper:this.wrapper}),this.resourceId&&(t={...t,resourceId:this.resourceId}),this.singleDisk||(t={...t,disk:this.disk}),this.isField&&this.flexibleGroup?.length&&(t={...t,flexible:this.flexibleGroup.join(".")}),t},url(e){const t=this.isField?`/${this.resource}`:"";return`${e}${t}`.replace("//","/")},openBrowser({initialFiles:e,multiple:t,limit:n,wrapper:a,resource:r,resourceId:i,attribute:s,singleDisk:l,permissions:c,flexibleGroup:d,callback:f,usePintura:p,pinturaOptions:h,cropperOptions:v,paginationOptions:u,component:m}){this.isField=!0,this.multiple=t,this.limit=n,this.wrapper=a,this.resource=r,this.resourceId=i,this.attribute=s,this.singleDisk=l,this.flexibleGroup=d,this.callback=f,this.usePintura=p,this.pinturaOptions=h,this.cropperOptions=v,this.perPageOptions=u??this.perPageOptions,this.error=void 0,this.permissions=c,this.disk=void 0,this.component=m,this.openModal({name:hs}),this.setSelection({files:[...e]})},closeBrowser(){this.isField=!1,this.multiple=void 0,this.limit=void 0,this.wrapper=void 0,this.resource=void 0,this.resourceId=void 0,this.attribute=void 0,this.singleDisk=!1,this.flexibleGroup=[],this.callback=void 0,this.usePintura=!1,this.pinturaOptions={},this.cropperOptions={},this.perPage=10,this.perPageOptions=fs(10,60,10),this.error=void 0,this.permissions=void 0,this.disk=void 0,this.setSelection({files:[]}),this.closeModal({name:hs})},confirm(){this.callback&&this.callback(this.selection),this.closeBrowser()},prepareTool({singleDisk:e,permissions:t,tour:n,usePintura:a,pinturaOptions:r,cropperOptions:i,paginationOptions:s}){this.init(),this.clearSelection(),this.limit=void 0,this.isField=!1,this.multiple=!0,this.singleDisk=e,this.permissions=t,this.tour=n,this.usePintura=a,this.pinturaOptions=r,this.cropperOptions=i,this.perPageOptions=s??this.perPageOptions,this.error=void 0}},getters:{isOpen(){return e=>e===ps?!!this.preview:this.modals.includes(e)},isSelected(){return e=>!!this.selection?.find(t=>t.id===e.id)},isBrowserOpen(e){return e.modals.includes(hs)}}}),xc=o.defineComponent({__name:"FieldCard",props:{file:{},detail:{type:Boolean,default:!1},field:{},onDeselect:{}},setup(e){const t=Re(),n=e,a=o.computed(()=>t.singleDisk),r=s=>t.preview=s,i=s=>{n.detail&&s.exists&&r(s)};return(s,l)=>(o.openBlock(),o.createBlock(ls,{file:s.file,selected:!1,"on-deselect":s.onDeselect,"single-disk":a.value,"field-mode":!0,onClick:l[0]||(l[0]=o.withModifiers(c=>i(s.file),["prevent","stop"]))},null,8,["file","on-deselect","single-disk"]))}});function ko(e,t,n){let a=n.initialDeps??[],r;return()=>{var i,s,l,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const f=e();if(!(f.length!==a.length||f.some((v,u)=>a[u]!==v)))return r;a=f;let h;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now()),r=t(...f),n.key&&((l=n.debug)!=null&&l.call(n))){const v=Math.round((Date.now()-d)*100)/100,u=Math.round((Date.now()-h)*100)/100,m=u/16,y=(b,g)=>{for(b=String(b);b.lengthe instanceof _t?e.toJSON():e;function No(e,t){t=t||{};const n={};function a(d,f,p){return X.isPlainObject(d)&&X.isPlainObject(f)?X.merge.call({caseless:p},d,f):X.isPlainObject(f)?X.merge({},f):X.isArray(f)?f.slice():f}function r(d,f,p){if(X.isUndefined(f)){if(!X.isUndefined(d))return a(void 0,d,p)}else return a(d,f,p)}function i(d,f){if(!X.isUndefined(f))return a(void 0,f)}function s(d,f){if(X.isUndefined(f)){if(!X.isUndefined(d))return a(void 0,d)}else return a(void 0,f)}function l(d,f,p){if(p in t)return a(d,f);if(p in e)return a(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,f)=>r(cc(d),cc(f),!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=c[f]||r,h=p(e[f],t[f],f);X.isUndefined(h)&&p!==l||(n[f]=h)}),n}const dc="1.6.7",Ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ts[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const uc={};Ts.transitional=function(t,n,a){function r(i,s){return"[Axios v"+dc+"] Transitional option '"+i+"'"+s+(a?". "+a:"")}return(i,s,l)=>{if(t===!1)throw new Ce(r(s," has been removed"+(n?" in "+n:"")),Ce.ERR_DEPRECATED);return n&&!uc[s]&&(uc[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Ev(e,t,n){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new Ce("option "+i+" must be "+c,Ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ce("Unknown option "+i,Ce.ERR_BAD_OPTION)}}const Cs={assertOptions:Ev,validators:Ts},Cn=Cs.validators;class Xn{constructor(t){this.defaults=t,this.interceptors={request:new ql,response:new ql}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=` +`+i):a.stack=i}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=No(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&Cs.assertOptions(a,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),r!=null&&(X.isFunction(r)?n.paramsSerializer={serialize:r}:Cs.assertOptions(r,{encode:Cn.function,serialize:Cn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=_t.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let f,p=0,h;if(!c){const u=[lc.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),h=u.length,f=Promise.resolve(n);p{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{a.subscribe(l),i=l}).then(r);return s.cancel=function(){a.unsubscribe(i)},s},t(function(i,s,l){a.reason||(a.reason=new pa(i,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ns(function(r){t=r}),cancel:t}}}function wv(e){return function(n){return e.apply(null,n)}}function xv(e){return X.isObject(e)&&e.isAxiosError===!0}const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ks).forEach(([e,t])=>{ks[t]=e});function fc(e){const t=new Xn(e),n=Bl(Xn.prototype.request,t);return X.extend(n,Xn.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return fc(No(e,r))},n}const We=fc(ua);We.Axios=Xn,We.CanceledError=pa,We.CancelToken=Ns,We.isCancel=oc,We.VERSION=dc,We.toFormData=or,We.AxiosError=Ce,We.Cancel=We.CanceledError,We.all=function(t){return Promise.all(t)},We.spread=wv,We.isAxiosError=xv,We.mergeConfig=No,We.AxiosHeaders=_t,We.formToJSON=e=>tc(X.isHTMLForm(e)?new FormData(e):e),We.getAdapter=ic.getAdapter,We.HttpStatusCode=ks,We.default=We;function Sv(e){return e==null}var Ov=Sv;const Tv=Sn(Ov);function pc(){return document.head.querySelector('meta[name="csrf-token"]')?.content??!1}function hc(){const e=We.create();return e.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",e.defaults.headers.common["X-CSRF-TOKEN"]=pc(),e.interceptors.response.use(t=>t,t=>{if(We.isCancel(t))return Promise.reject(t);const n=t.response,{status:a,data:{redirect:r}}=n;if(a>=500&&window.Nova.$emit("error",t.response.data.message),a===401){if(!Tv(r)){location.href=r;return}window.Nova.redirectToLogin()}return a===403&&window.Nova.visit("/403"),a===419&&window.Nova.$emit("token-expired"),Promise.reject(t)}),e}function Cv(e){return function(t){return e?.[t]}}var Nv=Cv,kv=Nv,Iv={"&":"&","<":"<",">":">",'"':""","'":"'"},_v=kv(Iv),Av=_v;function Dv(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n"']/g,zv=RegExp(wc.source);function Gv(e){return e=Hv(e),e&&zv.test(e)?e.replace(wc,Uv):e}var Wv=Gv;const Kv=Sn(Wv);function Nn(e,t){if(e==null)return e;let n=t?.escape?Kv(e):e;return n=n.trim().replace(/ /g," ").replace(/\/{2,}/g,"/"),n}const Re=ns("nova-file-manager/browser",{state:()=>({path:void 0,disk:void 0,disks:void 0,page:void 0,search:void 0,perPage:10,perPageOptions:fs(10,60,10),view:"grid",modals:[],callback:()=>{},files:void 0,folders:void 0,breadcrumbs:void 0,pagination:void 0,error:void 0,selection:void 0,preview:void 0,limit:void 0,wrapper:void 0,queue:[],multiple:void 0,ready:!1,isField:!1,isFetchingDisks:!1,isFetchingData:!1,isUploading:!1,loadingOperation:void 0,dark:void 0,tour:!1,resource:void 0,resourceId:void 0,attribute:void 0,singleDisk:!1,flexibleGroup:[],fieldInit:void 0,permissions:{folder:{create:!0,rename:!0,delete:!0},file:{upload:!0,rename:!0,edit:!0,delete:!0,unzip:!0}},chunkSize:50*1024*1024,usePintura:!1,pinturaOptions:{},cropperOptions:{}}),actions:{init(){this.ready||(this.syncDarkMode(),this.loadFromLocalStorage(),this.loadFromQueryString(),this.ready=!0)},syncDarkMode(){this.dark===void 0&&(this.dark=document.documentElement.classList.contains("dark")),window.Nova.$on("nova-theme-switched",({theme:e})=>{this.dark=e==="dark"})},loadFromLocalStorage(){if(this.isField)return;["perPage","view","disk"].forEach(t=>{const n=window?.localStorage.getItem(`nova-file-manager/${t}`);n&&n.length&&this.$patch({[t]:n})})},loadFromQueryString(){if(this.isField)return;const e=Object.fromEntries(new URLSearchParams(window?.location.search).entries());for(const[t,n]of Object.entries(e))["path","disk","page","perPage"].includes(t)&&this.$patch({[t]:n});window.location.href.includes("?")||(this.path="/")},saveToLocalStorage({values:e}){if(!(this.isField||!e))for(const[t,n]of Object.entries(e))n&&window?.localStorage.setItem(`nova-file-manager/${t}`,n.toString())},selectFile({file:e}){if(!this.selection){this.selection=[e];return}this.selection.push(e)},deselectFile({file:e}){this.selection=this.selection?.filter(t=>t.id!==e.id)},setSelection({files:e}){this.selection=e},clearSelection(){this.setSelection({files:void 0})},toggleSelection({file:e}){if(this.isSelected(e)){this.deselectFile({file:e});return}this.multiple||this.clearSelection(),this.selectFile({file:e})},openModal({name:e}){this.modals.unshift(e)},closeModal({name:e}){e===ps&&(this.preview=void 0),this.modals=this.modals.filter(t=>t!==e),this.resetError(),this.fixPortal()},setError({attribute:e,bag:t}){this.error={attribute:e,bag:t}},resetError(){this.error=void 0},queueFile({file:e}){this.queue.push({id:e.name,ratio:0,status:null,file:e,isImage:e.type.includes("image")??!1})},clearQueue(){this.queue=[]},updateQueue({id:e,ratio:t=100,status:n=null}){this.queue=this.queue.map(r=>r.id===e?{...r,status:n,ratio:t}:r),this.queue.reduce((r,i)=>r&&i.ratio===100,!0)&&this.queue.length&&setTimeout(async()=>{this.closeModal({name:fm}),this.closeModal({name:la}),this.clearQueue(),this.isUploading=!1,await this.data()},1e3)},fixPortal(){this.modals.length||this.preview||setTimeout(()=>{document.documentElement.style.removeProperty("overflow"),document.documentElement.style.removeProperty("padding-right")},200)},setQueryString({parameters:e}){if(this.isField)return;const t=new URLSearchParams(window.location.search),n=window.Nova.app.config.globalProperties.$inertia.page;for(const[a,r]of Object.entries(e)){const i=r?.toString();if(!i){t.delete(a);continue}i?.length>0&&t.set(a,i)}if(n.url!==`${window.location.pathname}?${t}`){n.url=`${window.location.pathname}?${t}`;const a=t.toString().length>0?"?":"";window.history.pushState(n,"",`${window.location.pathname}${a}${t}`)}},reset(){["page","search","path"].forEach(t=>{this.$patch({[t]:null})})},async setPath({path:e}){this.reset(),this.path=e,this.setQueryString({parameters:{page:null,search:null,path:e}})},async setDisk({disk:e}){this.reset(),this.disk=e,this.setQueryString({parameters:{disk:e}}),this.saveToLocalStorage({values:{disk:e,page:null,search:null,path:null}})},async setPerPage({perPage:e}){this.perPage=e,this.page=1,this.setQueryString({parameters:{perPage:e}}),this.saveToLocalStorage({values:{perPage:e}})},async setPage({page:e}){this.page=e,this.setQueryString({parameters:{page:e}})},setView({view:e}){this.view=e,this.saveToLocalStorage({values:{view:e}})},setSearch({search:e}){this.search=e,this.setQueryString({parameters:{search:e}})},setPreview({preview:e}){this.preview=e},async deleteSelectedFiles(){await this.deleteFiles({paths:this.selection?.map(e=>e.path)??[]})},async data(){this.isFetchingData=!0;const{data:e}=await this.get({params:this.payload({path:this.path,page:this.page,perPage:this.perPage,search:this.search})});this.disk=e.disk,this.folders=e.folders,this.breadcrumbs=e.breadcrumbs,this.files=e.files,this.pagination=e.pagination,this.isFetchingData=!1},async getDisks(){this.isFetchingDisks=!0;const{data:e}=await this.get({path:ln.DISKS});this.disks=e,this.isFetchingDisks=!1},async createFolder({path:e}){await To({operation:Qt.CREATE_FOLDER,modal:Ut.CREATE_FOLDER,endpoint:ln.CREATE_FOLDER,data:this.payload({path:Nn(`${this.path??""}/${Nn(e)}`,{escape:!1})})})},async renameFolder({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FOLDER,modal:`${Ut.RENAME_FOLDER}-${e}`,endpoint:ln.RENAME_FOLDER,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFolder({id:e,path:t}){await To({operation:Qt.DELETE_FOLDER,modal:`${Ut.DELETE_FOLDER}-${e}`,endpoint:ln.DELETE_FOLDER,data:this.payload({path:t})})},upload({files:e}){this.isUploading=!0;const t=new um({permanentErrors:[400,404,409,415,419,422,500,501],chunkSize:this.chunkSize,maxChunkRetries:5,chunkRetryInterval:1e3,simultaneousUploads:1,testChunks:!1,target:this.url(ln.UPLOAD),query:this.payload({path:this.path??"/"}),headers:{Accept:"application/json","X-CSRF-TOKEN":pc()}});e.forEach(n=>{t.addFile(n),this.queueFile({file:n})}),t.on("fileAdded",()=>t.upload()),t.on("fileSuccess",n=>{this.updateQueue({id:n.fileName,status:!0})}),t.on("fileProgress",n=>{this.updateQueue({id:n.fileName,ratio:Math.floor(n.progress(!1)*100)})}),t.on("fileError",(n,a)=>{this.updateQueue({id:n.fileName,status:!1}),window.Nova.error(JSON.parse(a).message)})},async renameFile({id:e,from:t,to:n}){await To({operation:Qt.RENAME_FILE,modal:`${Ut.RENAME_FILE}-${e}`,endpoint:ln.RENAME_FILE,data:this.payload({path:this.path,from:Nn(t,{escape:!1}),to:Nn(`${this.path??""}/${Nn(n)}`,{escape:!1})})})},async deleteFiles({paths:e}){e.length!==0&&await To({operation:Qt.DELETE_FILE,modal:Ut.DELETE_FILES,endpoint:ln.DELETE_FILE,data:this.payload({paths:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},async unzipFile({path:e}){await To({operation:Qt.UNZIP_FILE,endpoint:ln.UNZIP_FILE,data:this.payload({path:e}),callback:()=>{this.preview=void 0,this.clearSelection()}})},downloadUrl(e){return this.url(`/nova-vendor/nova-file-manager/${ln.DOWNLOAD_FILE}?disk=${e.disk}&path=${e.path}`)},async get({path:e,params:t,options:n={}}){return await hc().get(this.url(`/nova-vendor/nova-file-manager${e??""}`),{params:t,...n})},async post({path:e,data:t}){return await hc().post(this.url(`/nova-vendor/nova-file-manager${e??""}`),t)},payload(e){let t={...e,attribute:this.attribute,resource:this.resource,fieldMode:this.isField};if(this.component?.length&&["Nova.Create","Nova.Update"].includes(this.component)){let n;switch(this.component){case"Nova.Create":n="create";break;case"Nova.Update":n="update";break}t={...t,editing:!0,editMode:n}}return this.wrapper?.length&&(t={...t,wrapper:this.wrapper}),this.resourceId&&(t={...t,resourceId:this.resourceId}),this.singleDisk||(t={...t,disk:this.disk}),this.isField&&this.flexibleGroup?.length&&(t={...t,flexible:this.flexibleGroup.join(".")}),t},url(e){const t=this.isField?`/${this.resource}`:"";return`${e}${t}`.replace("//","/")},openBrowser({initialFiles:e,multiple:t,limit:n,wrapper:a,resource:r,resourceId:i,attribute:s,singleDisk:l,permissions:c,flexibleGroup:d,callback:f,usePintura:p,pinturaOptions:h,cropperOptions:v,paginationOptions:u,component:m}){this.isField=!0,this.multiple=t,this.limit=n,this.wrapper=a,this.resource=r,this.resourceId=i,this.attribute=s,this.singleDisk=l,this.flexibleGroup=d,this.callback=f,this.usePintura=p,this.pinturaOptions=h,this.cropperOptions=v,this.perPageOptions=u??this.perPageOptions,this.error=void 0,this.permissions=c,this.disk=void 0,this.component=m,this.openModal({name:hs}),this.setSelection({files:[...e]})},closeBrowser(){this.isField=!1,this.multiple=void 0,this.limit=void 0,this.wrapper=void 0,this.resource=void 0,this.resourceId=void 0,this.attribute=void 0,this.singleDisk=!1,this.flexibleGroup=[],this.callback=void 0,this.usePintura=!1,this.pinturaOptions={},this.cropperOptions={},this.perPage=10,this.perPageOptions=fs(10,60,10),this.error=void 0,this.permissions=void 0,this.disk=void 0,this.setSelection({files:[]}),this.closeModal({name:hs})},confirm(){this.callback&&this.callback(this.selection),this.closeBrowser()},prepareTool({singleDisk:e,permissions:t,tour:n,usePintura:a,pinturaOptions:r,cropperOptions:i,paginationOptions:s}){this.init(),this.clearSelection(),this.limit=void 0,this.isField=!1,this.multiple=!0,this.singleDisk=e,this.permissions=t,this.tour=n,this.usePintura=a,this.pinturaOptions=r,this.cropperOptions=i,this.perPageOptions=s??this.perPageOptions,this.error=void 0}},getters:{isOpen(){return e=>e===ps?!!this.preview:this.modals.includes(e)},isSelected(){return e=>!!this.selection?.find(t=>t.id===e.id)},isBrowserOpen(e){return e.modals.includes(hs)}}}),xc=o.defineComponent({__name:"FieldCard",props:{file:{},detail:{type:Boolean,default:!1},field:{},onDeselect:{}},setup(e){const t=Re(),n=e,a=o.computed(()=>t.singleDisk),r=s=>t.preview=s,i=s=>{n.detail&&s.exists&&r(s)};return(s,l)=>(o.openBlock(),o.createBlock(ls,{file:s.file,selected:!1,"on-deselect":s.onDeselect,"single-disk":a.value,"field-mode":!0,onClick:l[0]||(l[0]=o.withModifiers(c=>i(s.file),["prevent","stop"]))},null,8,["file","on-deselect","single-disk"]))}});function ko(e,t,n){let a=n.initialDeps??[],r;return()=>{var i,s,l,c;let d;n.key&&((i=n.debug)!=null&&i.call(n))&&(d=Date.now());const f=e();if(!(f.length!==a.length||f.some((v,u)=>a[u]!==v)))return r;a=f;let h;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(h=Date.now()),r=t(...f),n.key&&((l=n.debug)!=null&&l.call(n))){const v=Math.round((Date.now()-d)*100)/100,u=Math.round((Date.now()-h)*100)/100,m=u/16,y=(b,g)=>{for(b=String(b);b.lengthMath.abs(e-t)<1;var ha={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_0e4b9239-34ca-49e6-bf37-981777bd248f",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.7.0 node/v18.20.4 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_0e4b9239-34ca-49e6-bf37-981777bd248f",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.4/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.10.2",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.1.12297006",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"598",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241015.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.8/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.2/x64",JOURNAL_STREAM:"8:19145",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.4/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.4/x64",npm_config_npm_version:"10.7.0",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"11457154462",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"06ba91f208c08f5c0d40e21a41f1da10f4f4e133",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_c31c40ab-205b-432d-9bbf-a7bb49ad664a",INVOCATION_ID:"a410064bbc5a49569fa13ba43699ccd7",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.4/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"690",GITHUB_TRIGGERING_ACTOR:"Rezrazi",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 4",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.1.12297006",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"06ba91f208c08f5c0d40e21a41f1da10f4f4e133",GITHUB_RUN_ATTEMPT:"1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"Rezrazi",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.4/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_0e4b9239-34ca-49e6-bf37-981777bd248f",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"2086576",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_0e4b9239-34ca-49e6-bf37-981777bd248f",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.4/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.1.12297006",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.1.12297006",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_0e4b9239-34ca-49e6-bf37-981777bd248f",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};const Yv=e=>e,Jv=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Qv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=i=>{const{width:s,height:l}=i;t({width:Math.round(s),height:Math.round(l)})};if(a(n.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const r=new ResizeObserver(i=>{const s=i[0];if(s?.borderBoxSize){const l=s.borderBoxSize[0];if(l){a({width:l.inlineSize,height:l.blockSize});return}}a(n.getBoundingClientRect())});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},Zv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return a(),n.addEventListener("scroll",a,{passive:!0}),()=>{n.removeEventListener("scroll",a)}},qv=(e,t,n)=>{if(t?.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$v=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const s=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:s,behavior:n})};class eg{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(typeof ResizeObserver<"u"?n=new ResizeObserver(r=>{r.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yv,rangeExtractor:Jv,onChange:()=>{},measureElement:qv,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const n=this.options.getScrollElement();this.scrollElement!==n&&(this.cleanup(),this.scrollElement=n,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,a=>{this.scrollAdjustments=0,this.scrollOffset!==a&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,a,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let s=a-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const c=i.get(l.lane);if(c==null||l.end>c.end?i.set(l.lane,l):l.ends.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurements=ko(()=>[this.memoOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i},s)=>{const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let d=l;dthis.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,a,r)=>this.range=n.length>0&&a>0?tg({measurements:n,outerSize:a,scrollOffset:r}):null,{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=ko(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,r,i)=>a===null?[]:n({...a,overscan:r,count:i}),{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.measurementsCache[this.indexFromElement(n)];if(!r||!n.isConnected){this.measureElementCache.forEach((l,c)=>{l===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(r.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(r.key,n));const s=this.options.measureElement(n,a,this);this.resizeItem(r,s)},this.resizeItem=(n,a)=>{const r=this.itemSizeCache.get(n.key)??n.size,i=a-r;i!==0&&(n.start{n&&this._measureElement(n,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,s=n.length;ithis.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();return Is(a[Sc(0,a.length-1,r=>Is(a[r]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const r=this.getSize();a==="auto"&&(n<=this.scrollOffset?a="start":n>=this.scrollOffset+r?a="end":a="start"),a==="start"?n=n:a==="end"?n=n-r:a==="center"&&(n=n-r/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=Is(this.getMeasurements()[n]);if(a==="auto")if(r.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)a="end";else if(r.start<=this.scrollOffset+this.options.scrollPaddingStart)a="start";else return[this.scrollOffset,a];const i=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a),a]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,s]=this.getOffsetForIndex(n,a);this._scrollToOffset(i,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,s);Xv(c,this.scrollOffset)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;return a.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()}}const Sc=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(ia)t=r-1;else return r}return e>0?e-1:0};function tg({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,i=Sc(0,a,l=>e[l].start,n);let s=i;for(;so.unref(e).getScrollElement(),r=>{r&&t._willUpdate()},{immediate:!0}),o.watch(()=>o.unref(e),r=>{t.setOptions({...r,onChange:(i,s)=>{var l;o.triggerRef(n),(l=r.onChange)==null||l.call(r,i,s)}}),t._willUpdate(),o.triggerRef(n)},{immediate:!0}),o.onScopeDispose(a),n}function og(e){return ng(o.computed(()=>({observeElementRect:Qv,observeElementOffset:Zv,scrollToFn:$v,...o.unref(e)})))}function ag(e,t,n){let a=o.ref(n?.value),r=o.computed(()=>e.value!==void 0);return[o.computed(()=>r.value?e.value:a.value),function(i){return r.value||(a.value=i),t?.(i)}]}function Ds(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kn(){let e=[],t={addEventListener(n,a,r,i){return n.addEventListener(a,r,i),t.add(()=>n.removeEventListener(a,r,i))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return Ds(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,r){let i=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:r}),this.add(()=>{Object.assign(n.style,{[a]:i})})},group(n){let a=kn();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function rg(){let e=kn();return o.onUnmounted(()=>e.dispose()),e}function sg(){let e=rg();return t=>{e.dispose(),e.nextFrame(t)}}let ig=Symbol("headlessui.useid"),lg=0;function dt(){return o.inject(ig,()=>`${++lg}`)()}function ae(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function tt(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,tt),a}var cg=Object.defineProperty,dg=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t,n)=>(dg(e,typeof t!="symbol"?t+"":t,n),n);let ug=class{constructor(){Oc(this,"current",this.detect()),Oc(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ma=new ug;function cn(e){if(ma.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ae(e);if(t)return t.ownerDocument}return document}let As=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var $t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($t||{}),Tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tc||{}),fg=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fg||{});function Cc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(As)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var _s=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(_s||{});function Rs(e,t=0){var n;return e===((n=cn(e))==null?void 0:n.body)?!1:tt(t,{0(){return e.matches(As)},1(){let a=e;for(;a!==null;){if(a.matches(As))return!0;a=a.parentElement}return!1}})}function Nc(e){let t=cn(e);o.nextTick(()=>{t&&!Rs(t.activeElement,0)&&In(e)})}var pg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(pg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function In(e){e?.focus({preventScroll:!0})}let hg=["textarea","input"].join(",");function mg(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,hg))!=null?n:!1}function Ps(e,t=n=>n){return e.slice().sort((n,a)=>{let r=t(n),i=t(a);if(r===null||i===null)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vg(e,t){return va(Cc(),t,{relativeTo:e})}function va(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){var i;let s=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?i:document,l=Array.isArray(e)?n?Ps(e):e:Cc(e);r.length>0&&l.length>1&&(l=l.filter(u=>!r.includes(u))),a=a??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},p=0,h=l.length,v;do{if(p>=h||p+h<=0)return 0;let u=d+p;if(t&16)u=(u+h)%h;else{if(u<0)return 3;if(u>=h)return 1}v=l[u],v?.focus(f),p+=c}while(v!==s.activeElement);return t&6&&mg(v)&&v.select(),2}function kc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gg(){return/Android/gi.test(window.navigator.userAgent)}function Ic(){return kc()||gg()}function rr(e,t,n){ma.isServer||o.watchEffect(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function Dc(e,t,n){ma.isServer||o.watchEffect(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function Bs(e,t,n=o.computed(()=>!0)){function a(i,s){if(!n.value||i.defaultPrevented)return;let l=s(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let d of c){if(d===null)continue;let f=d instanceof HTMLElement?d:ae(d);if(f!=null&&f.contains(l)||i.composed&&i.composedPath().includes(f))return}return!Rs(l,_s.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=o.ref(null);rr("pointerdown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("mousedown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("click",i=>{Ic()||r.value&&(a(i,()=>r.value),r.value=null)},!0),rr("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Dc("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ac(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ms(e,t){let n=o.ref(Ac(e.value.type,e.value.as));return o.onMounted(()=>{n.value=Ac(e.value.type,e.value.as)}),o.watchEffect(()=>{var a;n.value||ae(t)&&ae(t)instanceof HTMLButtonElement&&!((a=ae(t))!=null&&a.hasAttribute("type"))&&(n.value="button")}),n}function _c(e){return[e.screenX,e.screenY]}function Rc(){let e=o.ref([-1,-1]);return{wasMoved(t){let n=_c(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=_c(t)}}}function Pc({container:e,accept:t,walk:n,enabled:a}){o.watchEffect(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let i=cn(e);if(!i)return;let s=Object.assign(c=>t(c),{acceptNode:t}),l=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)})}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),Dn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Dn||{});function Be({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var i;let s=Mc(a,n),l=Object.assign(r,{props:s});if(e||t&2&&s.static)return Fs(l);if(t&1){let c=(i=s.unmount)==null||i?0:1;return tt(c,{0(){return null},1(){return Fs({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Fs(l)}function Fs({props:e,attrs:t,slots:n,slot:a,name:r}){var i,s;let{as:l,...c}=ga(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,a),f={};if(a){let p=!1,h=[];for(let[v,u]of Object.entries(a))typeof u=="boolean"&&(p=!0),u===!0&&h.push(v);p&&(f["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=Bc(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...h]=d??[];if(!yg(p)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(m=>m.trim()).filter((m,y,b)=>b.indexOf(m)===y).sort((m,y)=>m.localeCompare(y)).map(m=>` - ${m}`).join(` + color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n?.key)}return(c=n?.onChange)==null||c.call(n,r),r}}function Is(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Xv=(e,t)=>Math.abs(e-t)<1;var ha={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_23756a7e-f9fd-4ac3-a152-275052b3cd54",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v18.20.5 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_23756a7e-f9fd-4ac3-a152-275052b3cd54",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/nova-file-manager/nova-file-manager/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"oneduo",GRADLE_HOME:"/usr/share/gradle-8.11.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"113685820",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"nova-5",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/nova-file-manager/nova-file-manager",SYSTEMD_EXEC_PID:"607",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241215.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:19765",GITHUB_WORKFLOW:"Update Assets",_:"/opt/hostedtoolcache/node/18.20.5/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12413614315",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"e2264fa0a08e17c684153918f39eeabfffc7fd95",GITHUB_BASE_REF:"main",ImageOS:"ubuntu22",STATS_BLT:"true",GITHUB_WORKFLOW_REF:"oneduo/nova-file-manager/.github/workflows/update-assets.yml@refs/pull/454/merge",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/nova-file-manager/nova-file-manager/node_modules/.bin:/home/runner/work/nova-file-manager/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/18.20.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_12789af6-03d4-4b51-8352-6445748ce4c4",INVOCATION_ID:"4a3710bc054842b9b094c009f50d3a14",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/18.20.5/x64/bin/node",npm_package_name:"nova-file-manager",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"702",GITHUB_TRIGGERING_ACTOR:"mikaelpopowicz",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 3",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"454/merge",GITHUB_REPOSITORY:"oneduo/nova-file-manager",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"505375003",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"0.8.0",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/nova-file-manager/nova-file-manager",ACCEPT_EULA:"Y",GITHUB_JOB:"update",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"e2264fa0a08e17c684153918f39eeabfffc7fd95",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/pull/454/merge",GITHUB_ACTOR:"mikaelpopowicz",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/18.20.5/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_23756a7e-f9fd-4ac3-a152-275052b3cd54",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/nova-file-manager/nova-file-manager",GITHUB_ACTOR_ID:"5689944",RUNNER_WORKSPACE:"/home/runner/work/nova-file-manager",npm_execpath:"/opt/hostedtoolcache/node/18.20.5/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"pull_request",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_23756a7e-f9fd-4ac3-a152-275052b3cd54",npm_config_global_prefix:"/opt/hostedtoolcache/node/18.20.5/x64",TAILWIND_MODE:"build",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_23756a7e-f9fd-4ac3-a152-275052b3cd54",INIT_CWD:"/home/runner/work/nova-file-manager/nova-file-manager",EDITOR:"vi",NODE_ENV:"production"};const Yv=e=>e,Jv=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Qv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=i=>{const{width:s,height:l}=i;t({width:Math.round(s),height:Math.round(l)})};if(a(n.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const r=new ResizeObserver(i=>{const s=i[0];if(s?.borderBoxSize){const l=s.borderBoxSize[0];if(l){a({width:l.inlineSize,height:l.blockSize});return}}a(n.getBoundingClientRect())});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},Zv=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return a(),n.addEventListener("scroll",a,{passive:!0}),()=>{n.removeEventListener("scroll",a)}},qv=(e,t,n)=>{if(t?.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$v=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const s=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:s,behavior:n})};class eg{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const a=()=>n||(typeof ResizeObserver<"u"?n=new ResizeObserver(r=>{r.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yv,rangeExtractor:Jv,onChange:()=>{},measureElement:qv,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const n=this.options.getScrollElement();this.scrollElement!==n&&(this.cleanup(),this.scrollElement=n,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,a=>{this.scrollAdjustments=0,this.scrollOffset!==a&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,a,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let s=a-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const c=i.get(l.lane);if(c==null||l.end>c.end?i.set(l.lane,l):l.ends.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurements=ko(()=>[this.memoOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i},s)=>{const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let d=l;dthis.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,a,r)=>this.range=n.length>0&&a>0?tg({measurements:n,outerSize:a,scrollOffset:r}):null,{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=ko(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,a,r,i)=>a===null?[]:n({...a,overscan:r,count:i}),{key:ha.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.measurementsCache[this.indexFromElement(n)];if(!r||!n.isConnected){this.measureElementCache.forEach((l,c)=>{l===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(r.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(r.key,n));const s=this.options.measureElement(n,a,this);this.resizeItem(r,s)},this.resizeItem=(n,a)=>{const r=this.itemSizeCache.get(n.key)??n.size,i=a-r;i!==0&&(n.start{n&&this._measureElement(n,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,s=n.length;ithis.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();return Is(a[Sc(0,a.length-1,r=>Is(a[r]).start,n)])},this.getOffsetForAlignment=(n,a)=>{const r=this.getSize();a==="auto"&&(n<=this.scrollOffset?a="start":n>=this.scrollOffset+r?a="end":a="start"),a==="start"?n=n:a==="end"?n=n-r:a==="center"&&(n=n-r/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=Is(this.getMeasurements()[n]);if(a==="auto")if(r.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)a="end";else if(r.start<=this.scrollOffset+this.options.scrollPaddingStart)a="start";else return[this.scrollOffset,a];const i=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a),a]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,s]=this.getOffsetForIndex(n,a);this._scrollToOffset(i,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,s);Xv(c,this.scrollOffset)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;return a.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((n=a[a.length-1])==null?void 0:n.end)??0:Math.max(...a.slice(-this.options.lanes).map(i=>i.end)),r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()}}const Sc=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(ia)t=r-1;else return r}return e>0?e-1:0};function tg({measurements:e,outerSize:t,scrollOffset:n}){const a=e.length-1,i=Sc(0,a,l=>e[l].start,n);let s=i;for(;so.unref(e).getScrollElement(),r=>{r&&t._willUpdate()},{immediate:!0}),o.watch(()=>o.unref(e),r=>{t.setOptions({...r,onChange:(i,s)=>{var l;o.triggerRef(n),(l=r.onChange)==null||l.call(r,i,s)}}),t._willUpdate(),o.triggerRef(n)},{immediate:!0}),o.onScopeDispose(a),n}function og(e){return ng(o.computed(()=>({observeElementRect:Qv,observeElementOffset:Zv,scrollToFn:$v,...o.unref(e)})))}function ag(e,t,n){let a=o.ref(n?.value),r=o.computed(()=>e.value!==void 0);return[o.computed(()=>r.value?e.value:a.value),function(i){return r.value||(a.value=i),t?.(i)}]}function _s(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kn(){let e=[],t={addEventListener(n,a,r,i){return n.addEventListener(a,r,i),t.add(()=>n.removeEventListener(a,r,i))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return _s(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,r){let i=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:r}),this.add(()=>{Object.assign(n.style,{[a]:i})})},group(n){let a=kn();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function rg(){let e=kn();return o.onUnmounted(()=>e.dispose()),e}function sg(){let e=rg();return t=>{e.dispose(),e.nextFrame(t)}}let ig=Symbol("headlessui.useid"),lg=0;function dt(){return o.inject(ig,()=>`${++lg}`)()}function ae(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function tt(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,tt),a}var cg=Object.defineProperty,dg=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t,n)=>(dg(e,typeof t!="symbol"?t+"":t,n),n);let ug=class{constructor(){Oc(this,"current",this.detect()),Oc(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ma=new ug;function cn(e){if(ma.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ae(e);if(t)return t.ownerDocument}return document}let As=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var $t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($t||{}),Tc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tc||{}),fg=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fg||{});function Cc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(As)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ds=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ds||{});function Rs(e,t=0){var n;return e===((n=cn(e))==null?void 0:n.body)?!1:tt(t,{0(){return e.matches(As)},1(){let a=e;for(;a!==null;){if(a.matches(As))return!0;a=a.parentElement}return!1}})}function Nc(e){let t=cn(e);o.nextTick(()=>{t&&!Rs(t.activeElement,0)&&In(e)})}var pg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(pg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function In(e){e?.focus({preventScroll:!0})}let hg=["textarea","input"].join(",");function mg(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,hg))!=null?n:!1}function Ps(e,t=n=>n){return e.slice().sort((n,a)=>{let r=t(n),i=t(a);if(r===null||i===null)return 0;let s=r.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vg(e,t){return va(Cc(),t,{relativeTo:e})}function va(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){var i;let s=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?i:document,l=Array.isArray(e)?n?Ps(e):e:Cc(e);r.length>0&&l.length>1&&(l=l.filter(u=>!r.includes(u))),a=a??s.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(a))-1;if(t&4)return Math.max(0,l.indexOf(a))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},p=0,h=l.length,v;do{if(p>=h||p+h<=0)return 0;let u=d+p;if(t&16)u=(u+h)%h;else{if(u<0)return 3;if(u>=h)return 1}v=l[u],v?.focus(f),p+=c}while(v!==s.activeElement);return t&6&&mg(v)&&v.select(),2}function kc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gg(){return/Android/gi.test(window.navigator.userAgent)}function Ic(){return kc()||gg()}function rr(e,t,n){ma.isServer||o.watchEffect(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function _c(e,t,n){ma.isServer||o.watchEffect(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function Bs(e,t,n=o.computed(()=>!0)){function a(i,s){if(!n.value||i.defaultPrevented)return;let l=s(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(f){return typeof f=="function"?d(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let d of c){if(d===null)continue;let f=d instanceof HTMLElement?d:ae(d);if(f!=null&&f.contains(l)||i.composed&&i.composedPath().includes(f))return}return!Rs(l,Ds.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=o.ref(null);rr("pointerdown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("mousedown",i=>{var s,l;n.value&&(r.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),rr("click",i=>{Ic()||r.value&&(a(i,()=>r.value),r.value=null)},!0),rr("touchend",i=>a(i,()=>i.target instanceof HTMLElement?i.target:null),!0),_c("blur",i=>a(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ac(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ms(e,t){let n=o.ref(Ac(e.value.type,e.value.as));return o.onMounted(()=>{n.value=Ac(e.value.type,e.value.as)}),o.watchEffect(()=>{var a;n.value||ae(t)&&ae(t)instanceof HTMLButtonElement&&!((a=ae(t))!=null&&a.hasAttribute("type"))&&(n.value="button")}),n}function Dc(e){return[e.screenX,e.screenY]}function Rc(){let e=o.ref([-1,-1]);return{wasMoved(t){let n=Dc(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=Dc(t)}}}function Pc({container:e,accept:t,walk:n,enabled:a}){o.watchEffect(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let i=cn(e);if(!i)return;let s=Object.assign(c=>t(c),{acceptNode:t}),l=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)})}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),_n=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_n||{});function Be({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var i;let s=Mc(a,n),l=Object.assign(r,{props:s});if(e||t&2&&s.static)return Fs(l);if(t&1){let c=(i=s.unmount)==null||i?0:1;return tt(c,{0(){return null},1(){return Fs({...r,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Fs(l)}function Fs({props:e,attrs:t,slots:n,slot:a,name:r}){var i,s;let{as:l,...c}=ga(e,["unmount","static"]),d=(i=n.default)==null?void 0:i.call(n,a),f={};if(a){let p=!1,h=[];for(let[v,u]of Object.entries(a))typeof u=="boolean"&&(p=!0),u===!0&&h.push(v);p&&(f["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(d=Bc(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[p,...h]=d??[];if(!yg(p)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(m=>m.trim()).filter((m,y,b)=>b.indexOf(m)===y).sort((m,y)=>m.localeCompare(y)).map(m=>` - ${m}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` `)].join(` -`));let v=Mc((s=p.props)!=null?s:{},c,f),u=o.cloneVNode(p,v,!0);for(let m in v)m.startsWith("on")&&(u.props||(u.props={}),u.props[m]=v[m]);return u}return Array.isArray(d)&&d.length===1?d[0]:d}return o.h(l,Object.assign({},c,f),{default:()=>d})}function Bc(e){return e.flatMap(t=>t.type===o.Fragment?Bc(t.children):[t])}function Mc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let s=n[a];for(let l of s){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ga(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function yg(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ba=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ba||{});let sr=o.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var a;let{features:r,...i}=e,s={"aria-hidden":(r&2)===2?!0:(a=i["aria-hidden"])!=null?a:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Be({ourProps:s,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fc=Symbol("Context");var Ve=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ve||{});function Eg(){return Io()!==null}function Io(){return o.inject(Fc,null)}function ir(e){o.provide(Fc,e)}var Oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Oe||{}),Lc=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Lc||{});function wg(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let dn=[];wg(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&dn[0]!==t.target&&(dn.unshift(t.target),dn=dn.filter(n=>n!=null&&n.isConnected),dn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xg(e){throw new Error("Unexpected object: "+e)}var Ae=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ae||{});function Ls(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=r+1;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 4:{for(let i=0;i(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tg||{}),Cg=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cg||{}),Ng=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ng||{});let Hc=Symbol("ComboboxContext");function Jn(e){let t=o.inject(Hc,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}let zc=Symbol("VirtualContext"),kg=o.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=Jn("VirtualProvider"),a=o.computed(()=>{let l=ae(n.optionsRef);if(!l)return{start:0,end:0};let c=window.getComputedStyle(l);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),r=og(o.computed(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ae(n.optionsRef)},overscan:12}))),i=o.computed(()=>{var l;return(l=n.virtual.value)==null?void 0:l.options}),s=o.ref(0);return o.watch([i],()=>{s.value+=1}),o.provide(zc,n.virtual.value?r:null),()=>[o.h("div",{style:{position:"relative",width:"100%",height:`${r.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Sg.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&r.value.scrollToIndex(n.activeOptionIndex.value)}}},r.value.getVirtualItems().map(l=>o.cloneVNode(t.default({option:n.virtual.value.options[l.index],open:n.comboboxState.value===0})[0],{key:`${s.value}-${l.index}`,"data-index":l.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),Ig=o.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let r=o.ref(1),i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),d=o.ref({static:!1,hold:!1}),f=o.ref([]),p=o.ref(null),h=o.ref(2),v=o.ref(!1);function u(_=M=>M){let M=p.value!==null?f.value[p.value]:null,K=_(f.value.slice()),B=K.length>0&&K[0].dataRef.order.value!==null?K.sort((H,W)=>H.dataRef.order.value-W.dataRef.order.value):Ps(K,H=>ae(H.dataRef.domRef)),j=M?B.indexOf(M):null;return j===-1&&(j=null),{options:B,activeOptionIndex:j}}let m=o.computed(()=>e.multiple?1:0),y=o.computed(()=>e.nullable),[b,g]=ag(o.computed(()=>e.modelValue),_=>a("update:modelValue",_),o.computed(()=>e.defaultValue)),T=o.computed(()=>b.value===void 0?tt(m.value,{1:[],0:void 0}):b.value),O=null,S=null;function N(_){return tt(m.value,{0(){return g?.(_)},1:()=>{let M=o.toRaw(D.value.value).slice(),K=o.toRaw(_),B=M.findIndex(j=>D.compare(K,o.toRaw(j)));return B===-1?M.push(K):M.splice(B,1),g?.(M)}})}let I=o.computed(()=>{});o.watch([I],([_],[M])=>{if(D.virtual.value&&_&&M&&p.value!==null){let K=_.indexOf(M[p.value]);K!==-1?p.value=K:p.value=null}});let D={comboboxState:r,value:T,mode:m,compare(_,M){if(typeof e.by=="string"){let K=e.by;return _?.[K]===M?.[K]}return e.by===null?Og(_,M):e.by(_,M)},calculateIndex(_){return D.virtual.value?e.by===null?D.virtual.value.options.indexOf(_):D.virtual.value.options.findIndex(M=>D.compare(M,_)):f.value.findIndex(M=>D.compare(M.dataRef.value,_))},defaultValue:o.computed(()=>e.defaultValue),nullable:y,immediate:o.computed(()=>!1),virtual:o.computed(()=>null),inputRef:s,labelRef:i,buttonRef:l,optionsRef:c,disabled:o.computed(()=>e.disabled),options:f,change(_){g(_)},activeOptionIndex:o.computed(()=>{if(v.value&&p.value===null&&(D.virtual.value?D.virtual.value.options.length>0:f.value.length>0)){if(D.virtual.value){let M=D.virtual.value.options.findIndex(K=>{var B;return!((B=D.virtual.value)!=null&&B.disabled(K))});if(M!==-1)return M}let _=f.value.findIndex(M=>!M.dataRef.disabled);if(_!==-1)return _}return p.value}),activationTrigger:h,optionsPropsRef:d,closeCombobox(){v.value=!1,!e.disabled&&r.value!==1&&(r.value=1,p.value=null)},openCombobox(){if(v.value=!0,!e.disabled&&r.value!==0){if(D.value.value){let _=D.calculateIndex(D.value.value);_!==-1&&(p.value=_)}r.value=0}},setActivationTrigger(_){h.value=_},goToOption(_,M,K){v.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&r.value===1)return;if(D.virtual.value){p.value=_===Ae.Specific?M:Ls({focus:_},{resolveItems:()=>D.virtual.value.options,resolveActiveIndex:()=>{var H,W;return(W=(H=D.activeOptionIndex.value)!=null?H:D.virtual.value.options.findIndex(Q=>{var ne;return!((ne=D.virtual.value)!=null&&ne.disabled(Q))}))!=null?W:null},resolveDisabled:H=>D.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=K??2;return}let B=u();if(B.activeOptionIndex===null){let H=B.options.findIndex(W=>!W.dataRef.disabled);H!==-1&&(B.activeOptionIndex=H)}let j=_===Ae.Specific?M:Ls({focus:_},{resolveItems:()=>B.options,resolveActiveIndex:()=>B.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});p.value=j,h.value=K??2,f.value=B.options})},selectOption(_){let M=f.value.find(B=>B.id===_);if(!M)return;let{dataRef:K}=M;N(K.value)},selectActiveOption(){if(D.activeOptionIndex.value!==null){if(D.virtual.value)N(D.virtual.value.options[D.activeOptionIndex.value]);else{let{dataRef:_}=f.value[D.activeOptionIndex.value];N(_.value)}D.goToOption(Ae.Specific,D.activeOptionIndex.value)}},registerOption(_,M){let K=o.reactive({id:_,dataRef:M});if(D.virtual.value){f.value.push(K);return}S&&cancelAnimationFrame(S);let B=u(j=>(j.push(K),j));p.value===null&&D.isSelected(M.value.value)&&(B.activeOptionIndex=B.options.indexOf(K)),f.value=B.options,p.value=B.activeOptionIndex,h.value=2,B.options.some(j=>!ae(j.dataRef.domRef))&&(S=requestAnimationFrame(()=>{let j=u();f.value=j.options,p.value=j.activeOptionIndex}))},unregisterOption(_,M){if(O!==null&&cancelAnimationFrame(O),M&&(v.value=!0),D.virtual.value){f.value=f.value.filter(B=>B.id!==_);return}let K=u(B=>{let j=B.findIndex(H=>H.id===_);return j!==-1&&B.splice(j,1),B});f.value=K.options,p.value=K.activeOptionIndex,h.value=2},isSelected(_){return tt(m.value,{0:()=>D.compare(o.toRaw(D.value.value),o.toRaw(_)),1:()=>o.toRaw(D.value.value).some(M=>D.compare(o.toRaw(M),o.toRaw(_)))})},isActive(_){return p.value===D.calculateIndex(_)}};Bs([s,l,c],()=>D.closeCombobox(),o.computed(()=>r.value===0)),o.provide(Hc,D),ir(o.computed(()=>tt(r.value,{0:Ve.Open,1:Ve.Closed})));let A=o.computed(()=>{var _;return(_=ae(s))==null?void 0:_.closest("form")});return o.onMounted(()=>{o.watch([A],()=>{if(!A.value||e.defaultValue===void 0)return;function _(){D.change(e.defaultValue)}return A.value.addEventListener("reset",_),()=>{var M;(M=A.value)==null||M.removeEventListener("reset",_)}},{immediate:!0})}),()=>{var _,M,K;let{name:B,disabled:j,form:H,...W}=e,Q={open:r.value===0,disabled:j,activeIndex:D.activeOptionIndex.value,activeOption:D.activeOptionIndex.value===null?null:D.virtual.value?D.virtual.value.options[(_=D.activeOptionIndex.value)!=null?_:0]:(K=(M=D.options.value[D.activeOptionIndex.value])==null?void 0:M.dataRef.value)!=null?K:null,value:T.value};return o.h(o.Fragment,[...B!=null&&T.value!=null?jc({[B]:T.value}).map(([ne,we])=>o.h(sr,bg({features:ba.Hidden,key:ne,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:j,name:ne,value:we}))):[],Be({theirProps:{...n,...ga(W,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Q,slots:t,attrs:n,name:"Combobox"})])}}});o.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-combobox-label-${dt()}`,i=Jn("ComboboxLabel");function s(){var l;(l=ae(i.inputRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:r,ref:i.labelRef,onClick:s};return Be({ourProps:d,theirProps:c,slot:l,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-button-${dt()}`,s=Jn("ComboboxButton");a({el:s.buttonRef,$el:s.buttonRef});function l(f){s.disabled.value||(s.comboboxState.value===0?s.closeCombobox():(f.preventDefault(),s.openCombobox()),o.nextTick(()=>{var p;return(p=ae(s.inputRef))==null?void 0:p.focus({preventScroll:!0})}))}function c(f){switch(f.key){case Oe.ArrowDown:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&s.openCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.ArrowUp:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&(s.openCombobox(),o.nextTick(()=>{s.value.value||s.goToOption(Ae.Last)})),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.Escape:if(s.comboboxState.value!==0)return;f.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&f.stopPropagation(),s.closeCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return}}let d=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var f,p;let h={open:s.comboboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...v}=e,u={ref:s.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(f=ae(s.optionsRef))==null?void 0:f.id,"aria-expanded":s.comboboxState.value===0,"aria-labelledby":s.labelRef.value?[(p=ae(s.labelRef))==null?void 0:p.id,i].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:c,onClick:l};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}});let Dg=o.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i;let s=(i=e.id)!=null?i:`headlessui-combobox-input-${dt()}`,l=Jn("ComboboxInput"),c=o.computed(()=>cn(ae(l.inputRef))),d={value:!1};r({el:l.inputRef,$el:l.inputRef});function f(){l.change(null);let S=ae(l.optionsRef);S&&(S.scrollTop=0),l.goToOption(Ae.Nothing)}let p=o.computed(()=>{var S;let N=l.value.value;return ae(l.inputRef)?typeof e.displayValue<"u"&&N!==void 0?(S=e.displayValue(N))!=null?S:"":typeof N=="string"?N:"":""});o.onMounted(()=>{o.watch([p,l.comboboxState,c],([S,N],[I,D])=>{if(d.value)return;let A=ae(l.inputRef);A&&((D===0&&N===1||S!==I)&&(A.value=S),requestAnimationFrame(()=>{var _;if(d.value||!A||((_=c.value)==null?void 0:_.activeElement)!==A)return;let{selectionStart:M,selectionEnd:K}=A;Math.abs((K??0)-(M??0))===0&&M===0&&A.setSelectionRange(A.value.length,A.value.length)}))},{immediate:!0}),o.watch([l.comboboxState],([S],[N])=>{if(S===0&&N===1){if(d.value)return;let I=ae(l.inputRef);if(!I)return;let D=I.value,{selectionStart:A,selectionEnd:_,selectionDirection:M}=I;I.value="",I.value=D,M!==null?I.setSelectionRange(A,_,M):I.setSelectionRange(A,_)}})});let h=o.ref(!1);function v(){h.value=!0}function u(){kn().nextFrame(()=>{h.value=!1})}let m=sg();function y(S){switch(d.value=!0,m(()=>{d.value=!1}),S.key){case Oe.Enter:if(d.value=!1,l.comboboxState.value!==0||h.value)return;if(S.preventDefault(),S.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case Oe.ArrowDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Next),1:()=>l.openCombobox()});case Oe.ArrowUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Previous),1:()=>{l.openCombobox(),o.nextTick(()=>{l.value.value||l.goToOption(Ae.Last)})}});case Oe.Home:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.PageUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.End:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.PageDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.Escape:if(d.value=!1,l.comboboxState.value!==0)return;S.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&S.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&f(),l.closeCombobox();break;case Oe.Tab:if(d.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function b(S){t("change",S),l.nullable.value&&l.mode.value===0&&S.target.value===""&&f(),l.openCombobox()}function g(S){var N,I,D;let A=(N=S.relatedTarget)!=null?N:dn.find(_=>_!==S.currentTarget);if(d.value=!1,!((I=ae(l.optionsRef))!=null&&I.contains(A))&&!((D=ae(l.buttonRef))!=null&&D.contains(A))&&l.comboboxState.value===0)return S.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?f():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function T(S){var N,I,D;let A=(N=S.relatedTarget)!=null?N:dn.find(_=>_!==S.currentTarget);(I=ae(l.buttonRef))!=null&&I.contains(A)||(D=ae(l.optionsRef))!=null&&D.contains(A)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),kn().nextFrame(()=>{l.setActivationTrigger(1)}))}let O=o.computed(()=>{var S,N,I,D;return(D=(I=(N=e.defaultValue)!=null?N:l.defaultValue.value!==void 0?(S=e.displayValue)==null?void 0:S.call(e,l.defaultValue.value):null)!=null?I:l.defaultValue.value)!=null?D:""});return()=>{var S,N,I,D,A,_,M;let K={open:l.comboboxState.value===0},{displayValue:B,onChange:j,...H}=e,W={"aria-controls":(S=l.optionsRef.value)==null?void 0:S.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(N=l.options.value.find(Q=>!l.virtual.value.disabled(Q.dataRef.value)&&l.compare(Q.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:N.id:(I=l.options.value[l.activeOptionIndex.value])==null?void 0:I.id,"aria-labelledby":(_=(D=ae(l.labelRef))==null?void 0:D.id)!=null?_:(A=ae(l.buttonRef))==null?void 0:A.id,"aria-autocomplete":"list",id:s,onCompositionstart:v,onCompositionend:u,onKeydown:y,onInput:b,onFocus:T,onBlur:g,role:"combobox",type:(M=n.type)!=null?M:"text",tabIndex:0,ref:l.inputRef,defaultValue:O.value,disabled:l.disabled.value===!0?!0:void 0};return Be({ourProps:W,theirProps:H,slot:K,attrs:n,slots:a,features:At.RenderStrategy|At.Static,name:"ComboboxInput"})}}}),Ag=o.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let r=Jn("ComboboxOptions"),i=`headlessui-combobox-options-${dt()}`;a({el:r.optionsRef,$el:r.optionsRef}),o.watchEffect(()=>{r.optionsPropsRef.value.static=e.static}),o.watchEffect(()=>{r.optionsPropsRef.value.hold=e.hold});let s=Io(),l=o.computed(()=>s!==null?(s.value&Ve.Open)===Ve.Open:r.comboboxState.value===0);Pc({container:o.computed(()=>ae(r.optionsRef)),enabled:o.computed(()=>r.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,f,p;let h={open:r.comboboxState.value===0},v={"aria-labelledby":(p=(d=ae(r.labelRef))==null?void 0:d.id)!=null?p:(f=ae(r.buttonRef))==null?void 0:f.id,id:i,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0,onMousedown:c},u=ga(e,["hold"]);return Be({ourProps:v,theirProps:u,slot:h,attrs:t,slots:r.virtual.value&&r.comboboxState.value===0?{...n,default:()=>[o.h(kg,{},n.default)]}:n,features:At.RenderStrategy|At.Static,visible:l.value,name:"ComboboxOptions"})}}}),Gc=o.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:a}){let r=Jn("ComboboxOption"),i=`headlessui-combobox-option-${dt()}`,s=o.ref(null),l=o.computed(()=>e.disabled);a({el:s,$el:s});let c=o.computed(()=>{var g;return r.virtual.value?r.activeOptionIndex.value===r.calculateIndex(e.value):r.activeOptionIndex.value===null?!1:((g=r.options.value[r.activeOptionIndex.value])==null?void 0:g.id)===i}),d=o.computed(()=>r.isSelected(e.value)),f=o.inject(zc,null),p=o.computed(()=>({disabled:e.disabled,value:e.value,domRef:s,order:o.computed(()=>e.order)}));o.onMounted(()=>r.registerOption(i,p)),o.onUnmounted(()=>r.unregisterOption(i,c.value)),o.watchEffect(()=>{let g=ae(s);g&&f?.value.measureElement(g)}),o.watchEffect(()=>{r.comboboxState.value===0&&c.value&&(r.virtual.value||r.activationTrigger.value!==0&&o.nextTick(()=>{var g,T;return(T=(g=ae(s))==null?void 0:g.scrollIntoView)==null?void 0:T.call(g,{block:"nearest"})}))});function h(g){g.preventDefault(),g.button===Lc.Left&&(l.value||(r.selectOption(i),Ic()||requestAnimationFrame(()=>{var T;return(T=ae(r.inputRef))==null?void 0:T.focus({preventScroll:!0})}),r.mode.value===0&&r.closeCombobox()))}function v(){var g;if(e.disabled||(g=r.virtual.value)!=null&&g.disabled(e.value))return r.goToOption(Ae.Nothing);let T=r.calculateIndex(e.value);r.goToOption(Ae.Specific,T)}let u=Rc();function m(g){u.update(g)}function y(g){var T;if(!u.wasMoved(g)||e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value)return;let O=r.calculateIndex(e.value);r.goToOption(Ae.Specific,O,0)}function b(g){var T;u.wasMoved(g)&&(e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value&&(r.optionsPropsRef.value.hold||r.goToOption(Ae.Nothing)))}return()=>{let{disabled:g}=e,T={active:c.value,selected:d.value,disabled:g},O={id:i,ref:s,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:h,onFocus:v,onPointerenter:m,onMouseenter:m,onPointermove:y,onMousemove:y,onPointerleave:b,onMouseleave:b},S=ga(e,["order","value"]);return Be({ourProps:O,theirProps:S,slot:T,attrs:n,slots:t,name:"ComboboxOption"})}}});function Wc(e,t,n,a){ma.isServer||o.watchEffect(r=>{e=e??window,e.addEventListener(t,n,a),r(()=>e.removeEventListener(t,n,a))})}var ya=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ya||{});function _g(){let e=o.ref(0);return Dc("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Kc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=ae(n);a instanceof HTMLElement&&t.add(a)}return t}var Xc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Xc||{});let Ea=Object.assign(o.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:o.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let r=o.ref(null);a({el:r,$el:r});let i=o.computed(()=>cn(r)),s=o.ref(!1);o.onMounted(()=>s.value=!0),o.onUnmounted(()=>s.value=!1),Pg({ownerDocument:i},o.computed(()=>s.value&&!!(e.features&16)));let l=Bg({ownerDocument:i,container:r,initialFocus:o.computed(()=>e.initialFocus)},o.computed(()=>s.value&&!!(e.features&2)));Mg({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},o.computed(()=>s.value&&!!(e.features&8)));let c=_g();function d(v){let u=ae(r);u&&(m=>m())(()=>{tt(c.value,{[ya.Forwards]:()=>{va(u,$t.First,{skipElements:[v.relatedTarget]})},[ya.Backwards]:()=>{va(u,$t.Last,{skipElements:[v.relatedTarget]})}})})}let f=o.ref(!1);function p(v){v.key==="Tab"&&(f.value=!0,requestAnimationFrame(()=>{f.value=!1}))}function h(v){if(!s.value)return;let u=Kc(e.containers);ae(r)instanceof HTMLElement&&u.add(ae(r));let m=v.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(Yc(u,m)||(f.value?va(ae(r),tt(c.value,{[ya.Forwards]:()=>$t.Next,[ya.Backwards]:()=>$t.Previous})|$t.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&In(v.target)))}return()=>{let v={},u={ref:r,onKeydown:p,onFocusout:h},{features:m,initialFocus:y,containers:b,...g}=e;return o.h(o.Fragment,[!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable}),Be({ourProps:u,theirProps:{...t,...g},slot:v,attrs:t,slots:n,name:"FocusTrap"}),!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable})])}}}),{features:Xc});function Rg(e){let t=o.ref(dn.slice());return o.watch([e],([n],[a])=>{a===!0&&n===!1?Ds(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=dn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function Pg({ownerDocument:e},t){let n=Rg(t);o.onMounted(()=>{o.watchEffect(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&In(n())},{flush:"post"})}),o.onUnmounted(()=>{t.value&&In(n())})}function Bg({ownerDocument:e,container:t,initialFocus:n},a){let r=o.ref(null),i=o.ref(!1);return o.onMounted(()=>i.value=!0),o.onUnmounted(()=>i.value=!1),o.onMounted(()=>{o.watch([t,n,a],(s,l)=>{if(s.every((d,f)=>l?.[f]===d)||!a.value)return;let c=ae(t);c&&Ds(()=>{var d,f;if(!i.value)return;let p=ae(n),h=(d=e.value)==null?void 0:d.activeElement;if(p){if(p===h){r.value=h;return}}else if(c.contains(h)){r.value=h;return}p?In(p):va(c,$t.First|$t.NoScroll)===Tc.Error&&console.warn("There are no focusable elements inside the "),r.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),r}function Mg({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){var i;Wc((i=e.value)==null?void 0:i.defaultView,"focus",s=>{if(!r.value)return;let l=Kc(n);ae(t)instanceof HTMLElement&&l.add(ae(t));let c=a.value;if(!c)return;let d=s.target;d&&d instanceof HTMLElement?Yc(l,d)?(a.value=d,In(d)):(s.preventDefault(),s.stopPropagation(),In(c)):In(a.value)},!0)}function Yc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fg(e){let t=o.shallowRef(e.getSnapshot());return o.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lg(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...i){let s=t[r].call(n,...i);s&&(n=s,a.forEach(l=>l()))}}}function jg(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,i=e-r;n.style(a,"paddingRight",`${i}px`)}}}function Vg(){return kc()?{before({doc:e,d:t,meta:n}){function a(r){return n.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=kn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),f=e.querySelector(d);f&&!a(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(a(l.target)){let c=l.target;for(;c.parentElement&&a(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(a(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;i!==c&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Ug(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Hg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Qn=Lg(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:kn(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:Hg(n)},r=[Vg(),jg(),Ug()];r.forEach(({before:i})=>i?.(a)),r.forEach(({after:i})=>i?.(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Qn.subscribe(()=>{let e=Qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!a||!r&&a)&&Qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Qn.dispatch("TEARDOWN",n)}});function zg(e,t,n){let a=Fg(Qn),r=o.computed(()=>{let i=e.value?a.value.get(e.value):void 0;return i?i.count>0:!1});return o.watch([e,t],([i,s],[l],c)=>{if(!i||!s)return;Qn.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Qn.dispatch("POP",l??i,n),d=!0)})},{immediate:!0}),r}let js=new Map,wa=new Map;function Jc(e,t=o.ref(!0)){o.watchEffect(n=>{var a;if(!t.value)return;let r=ae(e);if(!r)return;n(function(){var s;if(!r)return;let l=(s=wa.get(r))!=null?s:1;if(l===1?wa.delete(r):wa.set(r,l-1),l!==1)return;let c=js.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,js.delete(r))});let i=(a=wa.get(r))!=null?a:0;wa.set(r,i+1),i===0&&(js.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Gg({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=o.ref(null),r=cn(a);function i(){var s,l,c;let d=[];for(let f of e)f!==null&&(f instanceof HTMLElement?d.push(f):"value"in f&&f.value instanceof HTMLElement&&d.push(f.value));if(t!=null&&t.value)for(let f of t.value)d.push(f);for(let f of(s=r?.querySelectorAll("html > *, body > *"))!=null?s:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(ae(a))||f.contains((c=(l=ae(a))==null?void 0:l.getRootNode())==null?void 0:c.host)||d.some(p=>f.contains(p))||d.push(f));return d}return{resolveContainers:i,contains(s){return i().some(l=>l.contains(s))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:o.h(sr,{features:ba.Hidden,ref:a})}}}let Qc=Symbol("ForcePortalRootContext");function Wg(){return o.inject(Qc,!1)}let Vs=o.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return o.provide(Qc,e.force),()=>{let{force:a,...r}=e;return Be({theirProps:r,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Zc=Symbol("StackContext");var Us=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Us||{});function Kg(){return o.inject(Zc,()=>{})}function Xg({type:e,enabled:t,element:n,onUpdate:a}){let r=Kg();function i(...s){a?.(...s),r(...s)}o.onMounted(()=>{o.watch(t,(s,l)=>{s?i(0,e,n):l===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),o.onUnmounted(()=>{t.value&&i(1,e,n)}),o.provide(Zc,i)}let qc=Symbol("DescriptionContext");function Yg(){let e=o.inject(qc,null);if(e===null)throw new Error("Missing parent");return e}function Jg({slot:e=o.ref({}),name:t="Description",props:n={}}={}){let a=o.ref([]);function r(i){return a.value.push(i),()=>{let s=a.value.indexOf(i);s!==-1&&a.value.splice(s,1)}}return o.provide(qc,{register:r,slot:e,name:t,props:n}),o.computed(()=>a.value.length>0?a.value.join(" "):void 0)}o.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-description-${dt()}`,i=Yg();return o.onMounted(()=>o.onUnmounted(i.register(r))),()=>{let{name:s="Description",slot:l=o.ref({}),props:c={}}=i,{...d}=e,f={...Object.entries(c).reduce((p,[h,v])=>Object.assign(p,{[h]:o.unref(v)}),{}),id:r};return Be({ourProps:f,theirProps:d,slot:l.value,attrs:t,slots:n,name:s})}}});function Qg(e){let t=cn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}const Hs=new WeakMap;function Zg(e){var t;return(t=Hs.get(e))!=null?t:0}function $c(e,t){let n=t(Zg(e));return n<=0?Hs.delete(e):Hs.set(e,n),n}let ed=o.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=o.ref(null),r=o.computed(()=>cn(a)),i=Wg(),s=o.inject(td,null),l=o.ref(i===!0||s==null?Qg(a.value):s.resolveTarget());l.value&&$c(l.value,h=>h+1);let c=o.ref(!1);o.onMounted(()=>{c.value=!0}),o.watchEffect(()=>{i||s!=null&&(l.value=s.resolveTarget())});let d=o.inject(zs,null),f=!1,p=o.getCurrentInstance();return o.watch(a,()=>{if(f||!d)return;let h=ae(a);h&&(o.onUnmounted(d.register(h),p),f=!0)}),o.onUnmounted(()=>{var h,v;let u=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!u||l.value!==u||$c(l.value,m=>m-1)||l.value.children.length>0||(v=l.value.parentElement)==null||v.removeChild(l.value)}),()=>{if(!c.value||l.value===null)return null;let h={ref:a,"data-headlessui-portal":""};return o.h(o.Teleport,{to:l.value},Be({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),zs=Symbol("PortalParentContext");function qg(){let e=o.inject(zs,null),t=o.ref([]);function n(i){return t.value.push(i),e&&e.register(i),()=>a(i)}function a(i){let s=t.value.indexOf(i);s!==-1&&t.value.splice(s,1),e&&e.unregister(i)}let r={register:n,unregister:a,portals:t};return[t,o.defineComponent({name:"PortalWrapper",setup(i,{slots:s}){return o.provide(zs,r),()=>{var l;return(l=s.default)==null?void 0:l.call(s)}}})]}let td=Symbol("PortalGroupContext"),$g=o.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=o.reactive({resolveTarget(){return e.target}});return o.provide(td,a),()=>{let{target:r,...i}=e;return Be({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var eb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eb||{});let Gs=Symbol("DialogContext");function xa(e){let t=o.inject(Gs,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xa),n}return t}let lr="DC8F892D-2EBD-447C-A4C8-A03058436FF4",cr=o.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:lr},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i,s;let l=(i=e.id)!=null?i:`headlessui-dialog-${dt()}`,c=o.ref(!1);o.onMounted(()=>{c.value=!0});let d=!1,f=o.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${f}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),p=o.ref(0),h=Io(),v=o.computed(()=>e.open===lr&&h!==null?(h.value&Ve.Open)===Ve.Open:e.open),u=o.ref(null),m=o.computed(()=>cn(u));if(r({el:u,$el:u}),!(e.open!==lr||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof v.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value===lr?void 0:e.open}`);let y=o.computed(()=>c.value&&v.value?0:1),b=o.computed(()=>y.value===0),g=o.computed(()=>p.value>1),T=o.inject(Gs,null)!==null,[O,S]=qg(),{resolveContainers:N,mainTreeNodeRef:I,MainTreeNode:D}=Gg({portals:O,defaultContainers:[o.computed(()=>{var se;return(se=Q.panelRef.value)!=null?se:u.value})]}),A=o.computed(()=>g.value?"parent":"leaf"),_=o.computed(()=>h!==null?(h.value&Ve.Closing)===Ve.Closing:!1),M=o.computed(()=>T||_.value?!1:b.value),K=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("body > *"))!=null?fe:[]).find(Se=>Se.id==="headlessui-portal-root"?!1:Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(K,M);let B=o.computed(()=>g.value?!0:b.value),j=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("[data-headlessui-portal]"))!=null?fe:[]).find(Se=>Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(j,B),Xg({type:"Dialog",enabled:o.computed(()=>y.value===0),element:u,onUpdate:(se,fe)=>{if(fe==="Dialog")return tt(se,{[Us.Add]:()=>p.value+=1,[Us.Remove]:()=>p.value-=1})}});let H=Jg({name:"DialogDescription",slot:o.computed(()=>({open:v.value}))}),W=o.ref(null),Q={titleId:W,panelRef:o.ref(null),dialogState:y,setTitleId(se){W.value!==se&&(W.value=se)},close(){t("close",!1)}};o.provide(Gs,Q);let ne=o.computed(()=>!(!b.value||g.value));Bs(N,(se,fe)=>{se.preventDefault(),Q.close(),o.nextTick(()=>fe?.focus())},ne);let we=o.computed(()=>!(g.value||y.value!==0));Wc((s=m.value)==null?void 0:s.defaultView,"keydown",se=>{we.value&&(se.defaultPrevented||se.key===Oe.Escape&&(se.preventDefault(),se.stopPropagation(),Q.close()))});let Ze=o.computed(()=>!(_.value||y.value!==0||T));return zg(m,Ze,se=>{var fe;return{containers:[...(fe=se.containers)!=null?fe:[],N]}}),o.watchEffect(se=>{if(y.value!==0)return;let fe=ae(u);if(!fe)return;let ye=new ResizeObserver(Se=>{for(let Pe of Se){let ke=Pe.target.getBoundingClientRect();ke.x===0&&ke.y===0&&ke.width===0&&ke.height===0&&Q.close()}});ye.observe(fe),se(()=>ye.disconnect())}),()=>{let{open:se,initialFocus:fe,...ye}=e,Se={...n,ref:u,id:l,role:f.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":W.value,"aria-describedby":H.value},Pe={open:y.value===0};return o.h(Vs,{force:!0},()=>[o.h(ed,()=>o.h($g,{target:u.value},()=>o.h(Vs,{force:!1},()=>o.h(Ea,{initialFocus:fe,containers:N,features:b.value?tt(A.value,{parent:Ea.features.RestoreFocus,leaf:Ea.features.All&~Ea.features.FocusLock}):Ea.features.None},()=>o.h(S,{},()=>Be({ourProps:Se,theirProps:{...ye,...n},slot:Pe,attrs:n,slots:a,visible:y.value===0,features:At.RenderStrategy|At.Static,name:"Dialog"})))))),o.h(D)])}}});o.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-overlay-${dt()}`,i=xa("DialogOverlay");function s(l){l.target===l.currentTarget&&(l.preventDefault(),l.stopPropagation(),i.close())}return()=>{let{...l}=e;return Be({ourProps:{id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),o.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-backdrop-${dt()}`,s=xa("DialogBackdrop"),l=o.ref(null);return a({el:l,$el:l}),o.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let{...c}=e,d={id:i,ref:l,"aria-hidden":!0};return o.h(Vs,{force:!0},()=>o.h(ed,()=>Be({ourProps:d,theirProps:{...t,...c},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let un=o.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${dt()}`,s=xa("DialogPanel");a({el:s.panelRef,$el:s.panelRef});function l(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:s.panelRef,onClick:l};return Be({ourProps:d,theirProps:c,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),nd=o.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-title-${dt()}`,i=xa("DialogTitle");return o.onMounted(()=>{i.setTitleId(r),o.onUnmounted(()=>i.setTitleId(null))}),()=>{let{...s}=e;return Be({ourProps:{id:r},theirProps:s,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var tb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tb||{});let od=Symbol("DisclosureContext");function Ws(e){let t=o.inject(od,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ws),n}return t}let ad=Symbol("DisclosurePanelContext");function nb(){return o.inject(ad,null)}let rd=o.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let a=o.ref(e.defaultOpen?0:1),r=o.ref(null),i=o.ref(null),s={buttonId:o.ref(`headlessui-disclosure-button-${dt()}`),panelId:o.ref(`headlessui-disclosure-panel-${dt()}`),disclosureState:a,panel:r,button:i,toggleDisclosure(){a.value=tt(a.value,{0:1,1:0})},closeDisclosure(){a.value!==1&&(a.value=1)},close(l){s.closeDisclosure();let c=l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?ae(l):ae(s.button):ae(s.button);c?.focus()}};return o.provide(od,s),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let{defaultOpen:l,...c}=e,d={open:a.value===0,close:s.close};return Be({theirProps:c,ourProps:{},slot:d,slots:t,attrs:n,name:"Disclosure"})}}}),sd=o.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosureButton"),i=nb(),s=o.computed(()=>i===null?!1:i.value===r.panelId.value);o.onMounted(()=>{s.value||e.id!==null&&(r.buttonId.value=e.id)}),o.onUnmounted(()=>{s.value||(r.buttonId.value=null)});let l=o.ref(null);a({el:l,$el:l}),s.value||o.watchEffect(()=>{r.button.value=l.value});let c=Ms(o.computed(()=>({as:e.as,type:t.type})),l);function d(){var h;e.disabled||(s.value?(r.toggleDisclosure(),(h=ae(r.button))==null||h.focus()):r.toggleDisclosure())}function f(h){var v;if(!e.disabled)if(s.value)switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure(),(v=ae(r.button))==null||v.focus();break}else switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure();break}}function p(h){switch(h.key){case Oe.Space:h.preventDefault();break}}return()=>{var h;let v={open:r.disclosureState.value===0},{id:u,...m}=e,y=s.value?{ref:l,type:c.value,onClick:d,onKeydown:f}:{id:(h=r.buttonId.value)!=null?h:u,ref:l,type:c.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":r.disclosureState.value===0||ae(r.panel)?r.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p};return Be({ourProps:y,theirProps:m,slot:v,attrs:t,slots:n,name:"DisclosureButton"})}}}),id=o.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosurePanel");o.onMounted(()=>{e.id!==null&&(r.panelId.value=e.id)}),o.onUnmounted(()=>{r.panelId.value=null}),a({el:r.panel,$el:r.panel}),o.provide(ad,r.panelId);let i=Io(),s=o.computed(()=>i!==null?(i.value&Ve.Open)===Ve.Open:r.disclosureState.value===0);return()=>{var l;let c={open:r.disclosureState.value===0,close:r.close},{id:d,...f}=e,p={id:(l=r.panelId.value)!=null?l:d,ref:r.panel};return Be({ourProps:p,theirProps:f,slot:c,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:s.value,name:"DisclosurePanel"})}}}),ld=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function cd(e){var t,n;let a=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return a;let i=!1;for(let l of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let s=i?(n=r.innerText)!=null?n:"":a;return ld.test(s)&&(s=s.replace(ld,"")),s}function ob(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let a=n.split(" ").map(r=>{let i=document.getElementById(r);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():cd(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return cd(e).trim()}function ab(e){let t=o.ref(""),n=o.ref("");return()=>{let a=ae(e);if(!a)return"";let r=a.innerText;if(t.value===r)return n.value;let i=ob(a).trim().toLowerCase();return t.value=r,n.value=i,i}}var rb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rb||{}),sb=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sb||{});function ib(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let dd=Symbol("MenuContext");function dr(e){let t=o.inject(dd,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dr),n}return t}let Ks=o.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let a=o.ref(1),r=o.ref(null),i=o.ref(null),s=o.ref([]),l=o.ref(""),c=o.ref(null),d=o.ref(1);function f(h=v=>v){let v=c.value!==null?s.value[c.value]:null,u=Ps(h(s.value.slice()),y=>ae(y.dataRef.domRef)),m=v?u.indexOf(v):null;return m===-1&&(m=null),{items:u,activeItemIndex:m}}let p={menuState:a,buttonRef:r,itemsRef:i,items:s,searchQuery:l,activeItemIndex:c,activationTrigger:d,closeMenu:()=>{a.value=1,c.value=null},openMenu:()=>a.value=0,goToItem(h,v,u){let m=f(),y=Ls(h===Ae.Specific?{focus:Ae.Specific,id:v}:{focus:h},{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});l.value="",c.value=y,d.value=u??1,s.value=m.items},search(h){let v=l.value!==""?0:1;l.value+=h.toLowerCase();let u=(c.value!==null?s.value.slice(c.value+v).concat(s.value.slice(0,c.value+v)):s.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),m=u?s.value.indexOf(u):-1;m===-1||m===c.value||(c.value=m,d.value=1)},clearSearch(){l.value=""},registerItem(h,v){let u=f(m=>[...m,{id:h,dataRef:v}]);s.value=u.items,c.value=u.activeItemIndex,d.value=1},unregisterItem(h){let v=f(u=>{let m=u.findIndex(y=>y.id===h);return m!==-1&&u.splice(m,1),u});s.value=v.items,c.value=v.activeItemIndex,d.value=1}};return Bs([r,i],(h,v)=>{var u;p.closeMenu(),Rs(v,_s.Loose)||(h.preventDefault(),(u=ae(r))==null||u.focus())},o.computed(()=>a.value===0)),o.provide(dd,p),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let h={open:a.value===0,close:p.closeMenu};return Be({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Xs=o.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-button-${dt()}`,s=dr("MenuButton");a({el:s.buttonRef,$el:s.buttonRef});function l(p){switch(p.key){case Oe.Space:case Oe.Enter:case Oe.ArrowDown:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.First)});break;case Oe.ArrowUp:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.Last)});break}}function c(p){switch(p.key){case Oe.Space:p.preventDefault();break}}function d(p){e.disabled||(s.menuState.value===0?(s.closeMenu(),o.nextTick(()=>{var h;return(h=ae(s.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(p.preventDefault(),s.openMenu(),ib(()=>{var h;return(h=ae(s.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let f=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var p;let h={open:s.menuState.value===0},{...v}=e,u={ref:s.buttonRef,id:i,type:f.value,"aria-haspopup":"menu","aria-controls":(p=ae(s.itemsRef))==null?void 0:p.id,"aria-expanded":s.menuState.value===0,onKeydown:l,onKeyup:c,onClick:d};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Ys=o.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-items-${dt()}`,s=dr("MenuItems"),l=o.ref(null);a({el:s.itemsRef,$el:s.itemsRef}),Pc({container:o.computed(()=>ae(s.itemsRef)),enabled:o.computed(()=>s.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function c(h){var v;switch(l.value&&clearTimeout(l.value),h.key){case Oe.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Oe.Enter:if(h.preventDefault(),h.stopPropagation(),s.activeItemIndex.value!==null){let u=s.items.value[s.activeItemIndex.value];(v=ae(u.dataRef.domRef))==null||v.click()}s.closeMenu(),Nc(ae(s.buttonRef));break;case Oe.ArrowDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Next);case Oe.ArrowUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Previous);case Oe.Home:case Oe.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.First);case Oe.End:case Oe.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Last);case Oe.Escape:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>{var u;return(u=ae(s.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case Oe.Tab:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>vg(ae(s.buttonRef),h.shiftKey?$t.Previous:$t.Next));break;default:h.key.length===1&&(s.search(h.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}function d(h){switch(h.key){case Oe.Space:h.preventDefault();break}}let f=Io(),p=o.computed(()=>f!==null?(f.value&Ve.Open)===Ve.Open:s.menuState.value===0);return()=>{var h,v;let u={open:s.menuState.value===0},{...m}=e,y={"aria-activedescendant":s.activeItemIndex.value===null||(h=s.items.value[s.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(v=ae(s.buttonRef))==null?void 0:v.id,id:i,onKeydown:c,onKeyup:d,role:"menu",tabIndex:0,ref:s.itemsRef};return Be({ourProps:y,theirProps:m,slot:u,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:p.value,name:"MenuItems"})}}}),Sa=o.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-item-${dt()}`,s=dr("MenuItem"),l=o.ref(null);a({el:l,$el:l});let c=o.computed(()=>s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===i:!1),d=ab(l),f=o.computed(()=>({disabled:e.disabled,get textValue(){return d()},domRef:l}));o.onMounted(()=>s.registerItem(i,f)),o.onUnmounted(()=>s.unregisterItem(i)),o.watchEffect(()=>{s.menuState.value===0&&c.value&&s.activationTrigger.value!==0&&o.nextTick(()=>{var b,g;return(g=(b=ae(l))==null?void 0:b.scrollIntoView)==null?void 0:g.call(b,{block:"nearest"})})});function p(b){if(e.disabled)return b.preventDefault();s.closeMenu(),Nc(ae(s.buttonRef))}function h(){if(e.disabled)return s.goToItem(Ae.Nothing);s.goToItem(Ae.Specific,i)}let v=Rc();function u(b){v.update(b)}function m(b){v.wasMoved(b)&&(e.disabled||c.value||s.goToItem(Ae.Specific,i,0))}function y(b){v.wasMoved(b)&&(e.disabled||c.value&&s.goToItem(Ae.Nothing))}return()=>{let{disabled:b,...g}=e,T={active:c.value,disabled:b,close:s.closeMenu};return Be({ourProps:{id:i,ref:l,role:"menuitem",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,onClick:p,onFocus:h,onPointerenter:u,onMouseenter:u,onPointermove:m,onMousemove:m,onPointerleave:y,onMouseleave:y},theirProps:{...n,...g},slot:T,attrs:n,slots:t,name:"MenuItem"})}}});function lb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Js(e,...t){e&&t.length>0&&e.classList.add(...t)}function ur(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Qs=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Qs||{});function cb(e,t){let n=kn();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[i,s]=[a,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,f)=>f-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ud(e,t,n,a,r,i){let s=kn(),l=i!==void 0?lb(i):()=>{};return ur(e,...r),Js(e,...t,...n),s.nextFrame(()=>{ur(e,...n),Js(e,...a),s.add(cb(e,c=>(ur(e,...a,...t),Js(e,...r),l(c))))}),s.add(()=>ur(e,...t,...n,...a,...r)),s.add(()=>l("cancelled")),s.dispose}function Zn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Zs=Symbol("TransitionContext");var db=(e=>(e.Visible="visible",e.Hidden="hidden",e))(db||{});function ub(){return o.inject(Zs,null)!==null}function fb(){let e=o.inject(Zs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function pb(){let e=o.inject(qs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let qs=Symbol("NestingContext");function fr(e){return"children"in e?fr(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function fd(e){let t=o.ref([]),n=o.ref(!1);o.onMounted(()=>n.value=!0),o.onUnmounted(()=>n.value=!1);function a(i,s=Dn.Hidden){let l=t.value.findIndex(({id:c})=>c===i);l!==-1&&(tt(s,{[Dn.Unmount](){t.value.splice(l,1)},[Dn.Hidden](){t.value[l].state="hidden"}}),!fr(t)&&n.value&&e?.())}function r(i){let s=t.value.find(({id:l})=>l===i);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:i,state:"visible"}),()=>a(i,Dn.Unmount)}return{children:t,register:r,unregister:a}}let pd=At.RenderStrategy,An=o.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let i=o.ref(0);function s(){i.value|=Ve.Opening,t("beforeEnter")}function l(){i.value&=~Ve.Opening,t("afterEnter")}function c(){i.value|=Ve.Closing,t("beforeLeave")}function d(){i.value&=~Ve.Closing,t("afterLeave")}if(!ub()&&Eg())return()=>o.h(Oa,{...e,onBeforeEnter:s,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},a);let f=o.ref(null),p=o.computed(()=>e.unmount?Dn.Unmount:Dn.Hidden);r({el:f,$el:f});let{show:h,appear:v}=fb(),{register:u,unregister:m}=pb(),y=o.ref(h.value?"visible":"hidden"),b={value:!0},g=dt(),T={value:!1},O=fd(()=>{!T.value&&y.value!=="hidden"&&(y.value="hidden",m(g),d())});o.onMounted(()=>{let B=u(g);o.onUnmounted(B)}),o.watchEffect(()=>{if(p.value===Dn.Hidden&&g){if(h.value&&y.value!=="visible"){y.value="visible";return}tt(y.value,{hidden:()=>m(g),visible:()=>u(g)})}});let S=Zn(e.enter),N=Zn(e.enterFrom),I=Zn(e.enterTo),D=Zn(e.entered),A=Zn(e.leave),_=Zn(e.leaveFrom),M=Zn(e.leaveTo);o.onMounted(()=>{o.watchEffect(()=>{if(y.value==="visible"){let B=ae(f);if(B instanceof Comment&&B.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function K(B){let j=b.value&&!v.value,H=ae(f);!H||!(H instanceof HTMLElement)||j||(T.value=!0,h.value&&s(),h.value||c(),B(h.value?ud(H,S,N,I,D,W=>{T.value=!1,W===Qs.Finished&&l()}):ud(H,A,_,M,D,W=>{T.value=!1,W===Qs.Finished&&(fr(O)||(y.value="hidden",m(g),d()))})))}return o.onMounted(()=>{o.watch([h],(B,j,H)=>{K(H),b.value=!1},{immediate:!0})}),o.provide(qs,O),ir(o.computed(()=>tt(y.value,{visible:Ve.Open,hidden:Ve.Closed})|i.value)),()=>{let{appear:B,show:j,enter:H,enterFrom:W,enterTo:Q,entered:ne,leave:we,leaveFrom:Ze,leaveTo:se,...fe}=e,ye={ref:f},Se={...fe,...v.value&&h.value&&ma.isServer?{class:o.normalizeClass([n.class,fe.class,...S,...N])}:{}};return Be({theirProps:Se,ourProps:ye,slot:{},slots:a,attrs:n,features:pd,visible:y.value==="visible",name:"TransitionChild"})}}}),hb=An,Oa=o.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let r=Io(),i=o.computed(()=>e.show===null&&r!==null?(r.value&Ve.Open)===Ve.Open:e.show);o.watchEffect(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let s=o.ref(i.value?"visible":"hidden"),l=fd(()=>{s.value="hidden"}),c=o.ref(!0),d={show:i,appear:o.computed(()=>e.appear||!c.value)};return o.onMounted(()=>{o.watchEffect(()=>{c.value=!1,i.value?s.value="visible":fr(l)||(s.value="hidden")})}),o.provide(qs,l),o.provide(Zs,d),()=>{let f=ga(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),p={unmount:e.unmount};return Be({ourProps:{...p,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[o.h(hb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...p,...f},a.default)]},attrs:{},features:pd,visible:s.value==="visible",name:"Transition"})}}});const mb={},vb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gb=[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o.createElementVNode("path",{d:"M8 5v10a1 1 0 0 0 1 1h10"},null,-1),o.createElementVNode("path",{d:"M5 8h10a1 1 0 0 1 1 1v10"},null,-1)];function bb(e,t){return o.openBlock(),o.createElementBlock("svg",vb,gb)}const hd=is(mb,[["render",bb]]),it=o.defineComponent({__name:"IconButton",props:{variant:{default:"secondary"},type:{default:"button"},asAnchor:{type:Boolean,default:!1},download:{}},setup(e){const t={primary:"bg-blue-500 text-white focus:outline-blue-500",secondary:"bg-gray-300 dark:bg-gray-700 text-gray-800 dark:text-gray-200 focus:outline-blue-500",danger:"bg-red-500 text-white focus:outline-red-500",success:"bg-green-500 text-white focus:outline-green-500",transparent:"bg-transparent text-gray-800 dark:text-gray-100"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.asAnchor?"a":"button"),{class:o.normalizeClass(`inline-flex items-center rounded-full border-0 p-2 shadow-sm focus:outline-none focus:ring-1 hover:opacity-75 disabled:opacity-25 ${a.value}`),type:r.asAnchor?void 0:r.type??"button",download:r.download??null},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["class","type","download"]))}}),yb=o.createElementVNode("div",{class:"fixed inset-0 bg-gray-800/20 backdrop-blur-sm transition-opacity"},null,-1),Eb={class:"flex items-end sm:items-center justify-center min-h-full p-0 md:p-4"},Do=o.defineComponent({__name:"BaseModal",props:{name:{},initialFocusRef:{}},setup(e){const t=e;o.onBeforeUnmount(()=>{r.value&&i()});const n=Re(),a=o.computed(()=>n.dark),r=o.computed(()=>n.isOpen(t.name)),i=()=>{n.closeModal({name:t.name})};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Oa),{show:r.value,as:"template",class:"nova-file-manager"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{as:"div",class:"relative z-[60]",style:{"z-index":"999"},onClose:i,"initial-focus":s.initialFocusRef},{default:o.withCtx(()=>[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o.withCtx(()=>[yb]),_:1}),o.createElementVNode("div",{class:o.normalizeClass([{dark:a.value},"fixed z-10 inset-0 overflow-y-auto"])},[o.createElementVNode("div",Eb,[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{close:i,isOpen:r.value,dark:a.value})]),_:3})])],2)]),_:3},8,["initial-focus"])]),_:3},8,["show"]))}});var md={},vd={exports:{}};/*! +`));let v=Mc((s=p.props)!=null?s:{},c,f),u=o.cloneVNode(p,v,!0);for(let m in v)m.startsWith("on")&&(u.props||(u.props={}),u.props[m]=v[m]);return u}return Array.isArray(d)&&d.length===1?d[0]:d}return o.h(l,Object.assign({},c,f),{default:()=>d})}function Bc(e){return e.flatMap(t=>t.type===o.Fragment?Bc(t.children):[t])}function Mc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...i){let s=n[a];for(let l of s){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ga(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function yg(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ba=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ba||{});let sr=o.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var a;let{features:r,...i}=e,s={"aria-hidden":(r&2)===2?!0:(a=i["aria-hidden"])!=null?a:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Be({ourProps:s,theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fc=Symbol("Context");var Ve=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ve||{});function Eg(){return Io()!==null}function Io(){return o.inject(Fc,null)}function ir(e){o.provide(Fc,e)}var Oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Oe||{}),Lc=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Lc||{});function wg(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let dn=[];wg(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&dn[0]!==t.target&&(dn.unshift(t.target),dn=dn.filter(n=>n!=null&&n.isConnected),dn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xg(e){throw new Error("Unexpected object: "+e)}var Ae=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ae||{});function Ls(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 2:{for(let i=r+1;i=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return a}case 4:{for(let i=0;i(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tg||{}),Cg=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cg||{}),Ng=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ng||{});let Hc=Symbol("ComboboxContext");function Jn(e){let t=o.inject(Hc,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jn),n}return t}let zc=Symbol("VirtualContext"),kg=o.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=Jn("VirtualProvider"),a=o.computed(()=>{let l=ae(n.optionsRef);if(!l)return{start:0,end:0};let c=window.getComputedStyle(l);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),r=og(o.computed(()=>({scrollPaddingStart:a.value.start,scrollPaddingEnd:a.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ae(n.optionsRef)},overscan:12}))),i=o.computed(()=>{var l;return(l=n.virtual.value)==null?void 0:l.options}),s=o.ref(0);return o.watch([i],()=>{s.value+=1}),o.provide(zc,n.virtual.value?r:null),()=>[o.h("div",{style:{position:"relative",width:"100%",height:`${r.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&Sg.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&r.value.scrollToIndex(n.activeOptionIndex.value)}}},r.value.getVirtualItems().map(l=>o.cloneVNode(t.default({option:n.virtual.value.options[l.index],open:n.comboboxState.value===0})[0],{key:`${s.value}-${l.index}`,"data-index":l.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),Ig=o.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let r=o.ref(1),i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),d=o.ref({static:!1,hold:!1}),f=o.ref([]),p=o.ref(null),h=o.ref(2),v=o.ref(!1);function u(D=M=>M){let M=p.value!==null?f.value[p.value]:null,K=D(f.value.slice()),B=K.length>0&&K[0].dataRef.order.value!==null?K.sort((H,W)=>H.dataRef.order.value-W.dataRef.order.value):Ps(K,H=>ae(H.dataRef.domRef)),j=M?B.indexOf(M):null;return j===-1&&(j=null),{options:B,activeOptionIndex:j}}let m=o.computed(()=>e.multiple?1:0),y=o.computed(()=>e.nullable),[b,g]=ag(o.computed(()=>e.modelValue),D=>a("update:modelValue",D),o.computed(()=>e.defaultValue)),T=o.computed(()=>b.value===void 0?tt(m.value,{1:[],0:void 0}):b.value),O=null,S=null;function N(D){return tt(m.value,{0(){return g?.(D)},1:()=>{let M=o.toRaw(_.value.value).slice(),K=o.toRaw(D),B=M.findIndex(j=>_.compare(K,o.toRaw(j)));return B===-1?M.push(K):M.splice(B,1),g?.(M)}})}let I=o.computed(()=>{});o.watch([I],([D],[M])=>{if(_.virtual.value&&D&&M&&p.value!==null){let K=D.indexOf(M[p.value]);K!==-1?p.value=K:p.value=null}});let _={comboboxState:r,value:T,mode:m,compare(D,M){if(typeof e.by=="string"){let K=e.by;return D?.[K]===M?.[K]}return e.by===null?Og(D,M):e.by(D,M)},calculateIndex(D){return _.virtual.value?e.by===null?_.virtual.value.options.indexOf(D):_.virtual.value.options.findIndex(M=>_.compare(M,D)):f.value.findIndex(M=>_.compare(M.dataRef.value,D))},defaultValue:o.computed(()=>e.defaultValue),nullable:y,immediate:o.computed(()=>!1),virtual:o.computed(()=>null),inputRef:s,labelRef:i,buttonRef:l,optionsRef:c,disabled:o.computed(()=>e.disabled),options:f,change(D){g(D)},activeOptionIndex:o.computed(()=>{if(v.value&&p.value===null&&(_.virtual.value?_.virtual.value.options.length>0:f.value.length>0)){if(_.virtual.value){let M=_.virtual.value.options.findIndex(K=>{var B;return!((B=_.virtual.value)!=null&&B.disabled(K))});if(M!==-1)return M}let D=f.value.findIndex(M=>!M.dataRef.disabled);if(D!==-1)return D}return p.value}),activationTrigger:h,optionsPropsRef:d,closeCombobox(){v.value=!1,!e.disabled&&r.value!==1&&(r.value=1,p.value=null)},openCombobox(){if(v.value=!0,!e.disabled&&r.value!==0){if(_.value.value){let D=_.calculateIndex(_.value.value);D!==-1&&(p.value=D)}r.value=0}},setActivationTrigger(D){h.value=D},goToOption(D,M,K){v.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&r.value===1)return;if(_.virtual.value){p.value=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>_.virtual.value.options,resolveActiveIndex:()=>{var H,W;return(W=(H=_.activeOptionIndex.value)!=null?H:_.virtual.value.options.findIndex(Q=>{var ne;return!((ne=_.virtual.value)!=null&&ne.disabled(Q))}))!=null?W:null},resolveDisabled:H=>_.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=K??2;return}let B=u();if(B.activeOptionIndex===null){let H=B.options.findIndex(W=>!W.dataRef.disabled);H!==-1&&(B.activeOptionIndex=H)}let j=D===Ae.Specific?M:Ls({focus:D},{resolveItems:()=>B.options,resolveActiveIndex:()=>B.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});p.value=j,h.value=K??2,f.value=B.options})},selectOption(D){let M=f.value.find(B=>B.id===D);if(!M)return;let{dataRef:K}=M;N(K.value)},selectActiveOption(){if(_.activeOptionIndex.value!==null){if(_.virtual.value)N(_.virtual.value.options[_.activeOptionIndex.value]);else{let{dataRef:D}=f.value[_.activeOptionIndex.value];N(D.value)}_.goToOption(Ae.Specific,_.activeOptionIndex.value)}},registerOption(D,M){let K=o.reactive({id:D,dataRef:M});if(_.virtual.value){f.value.push(K);return}S&&cancelAnimationFrame(S);let B=u(j=>(j.push(K),j));p.value===null&&_.isSelected(M.value.value)&&(B.activeOptionIndex=B.options.indexOf(K)),f.value=B.options,p.value=B.activeOptionIndex,h.value=2,B.options.some(j=>!ae(j.dataRef.domRef))&&(S=requestAnimationFrame(()=>{let j=u();f.value=j.options,p.value=j.activeOptionIndex}))},unregisterOption(D,M){if(O!==null&&cancelAnimationFrame(O),M&&(v.value=!0),_.virtual.value){f.value=f.value.filter(B=>B.id!==D);return}let K=u(B=>{let j=B.findIndex(H=>H.id===D);return j!==-1&&B.splice(j,1),B});f.value=K.options,p.value=K.activeOptionIndex,h.value=2},isSelected(D){return tt(m.value,{0:()=>_.compare(o.toRaw(_.value.value),o.toRaw(D)),1:()=>o.toRaw(_.value.value).some(M=>_.compare(o.toRaw(M),o.toRaw(D)))})},isActive(D){return p.value===_.calculateIndex(D)}};Bs([s,l,c],()=>_.closeCombobox(),o.computed(()=>r.value===0)),o.provide(Hc,_),ir(o.computed(()=>tt(r.value,{0:Ve.Open,1:Ve.Closed})));let A=o.computed(()=>{var D;return(D=ae(s))==null?void 0:D.closest("form")});return o.onMounted(()=>{o.watch([A],()=>{if(!A.value||e.defaultValue===void 0)return;function D(){_.change(e.defaultValue)}return A.value.addEventListener("reset",D),()=>{var M;(M=A.value)==null||M.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,M,K;let{name:B,disabled:j,form:H,...W}=e,Q={open:r.value===0,disabled:j,activeIndex:_.activeOptionIndex.value,activeOption:_.activeOptionIndex.value===null?null:_.virtual.value?_.virtual.value.options[(D=_.activeOptionIndex.value)!=null?D:0]:(K=(M=_.options.value[_.activeOptionIndex.value])==null?void 0:M.dataRef.value)!=null?K:null,value:T.value};return o.h(o.Fragment,[...B!=null&&T.value!=null?jc({[B]:T.value}).map(([ne,we])=>o.h(sr,bg({features:ba.Hidden,key:ne,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:j,name:ne,value:we}))):[],Be({theirProps:{...n,...ga(W,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Q,slots:t,attrs:n,name:"Combobox"})])}}});o.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-combobox-label-${dt()}`,i=Jn("ComboboxLabel");function s(){var l;(l=ae(i.inputRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.comboboxState.value===0,disabled:i.disabled.value},{...c}=e,d={id:r,ref:i.labelRef,onClick:s};return Be({ourProps:d,theirProps:c,slot:l,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-button-${dt()}`,s=Jn("ComboboxButton");a({el:s.buttonRef,$el:s.buttonRef});function l(f){s.disabled.value||(s.comboboxState.value===0?s.closeCombobox():(f.preventDefault(),s.openCombobox()),o.nextTick(()=>{var p;return(p=ae(s.inputRef))==null?void 0:p.focus({preventScroll:!0})}))}function c(f){switch(f.key){case Oe.ArrowDown:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&s.openCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.ArrowUp:f.preventDefault(),f.stopPropagation(),s.comboboxState.value===1&&(s.openCombobox(),o.nextTick(()=>{s.value.value||s.goToOption(Ae.Last)})),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return;case Oe.Escape:if(s.comboboxState.value!==0)return;f.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&f.stopPropagation(),s.closeCombobox(),o.nextTick(()=>{var p;return(p=s.inputRef.value)==null?void 0:p.focus({preventScroll:!0})});return}}let d=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var f,p;let h={open:s.comboboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...v}=e,u={ref:s.buttonRef,id:i,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(f=ae(s.optionsRef))==null?void 0:f.id,"aria-expanded":s.comboboxState.value===0,"aria-labelledby":s.labelRef.value?[(p=ae(s.labelRef))==null?void 0:p.id,i].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:c,onClick:l};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}});let _g=o.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i;let s=(i=e.id)!=null?i:`headlessui-combobox-input-${dt()}`,l=Jn("ComboboxInput"),c=o.computed(()=>cn(ae(l.inputRef))),d={value:!1};r({el:l.inputRef,$el:l.inputRef});function f(){l.change(null);let S=ae(l.optionsRef);S&&(S.scrollTop=0),l.goToOption(Ae.Nothing)}let p=o.computed(()=>{var S;let N=l.value.value;return ae(l.inputRef)?typeof e.displayValue<"u"&&N!==void 0?(S=e.displayValue(N))!=null?S:"":typeof N=="string"?N:"":""});o.onMounted(()=>{o.watch([p,l.comboboxState,c],([S,N],[I,_])=>{if(d.value)return;let A=ae(l.inputRef);A&&((_===0&&N===1||S!==I)&&(A.value=S),requestAnimationFrame(()=>{var D;if(d.value||!A||((D=c.value)==null?void 0:D.activeElement)!==A)return;let{selectionStart:M,selectionEnd:K}=A;Math.abs((K??0)-(M??0))===0&&M===0&&A.setSelectionRange(A.value.length,A.value.length)}))},{immediate:!0}),o.watch([l.comboboxState],([S],[N])=>{if(S===0&&N===1){if(d.value)return;let I=ae(l.inputRef);if(!I)return;let _=I.value,{selectionStart:A,selectionEnd:D,selectionDirection:M}=I;I.value="",I.value=_,M!==null?I.setSelectionRange(A,D,M):I.setSelectionRange(A,D)}})});let h=o.ref(!1);function v(){h.value=!0}function u(){kn().nextFrame(()=>{h.value=!1})}let m=sg();function y(S){switch(d.value=!0,m(()=>{d.value=!1}),S.key){case Oe.Enter:if(d.value=!1,l.comboboxState.value!==0||h.value)return;if(S.preventDefault(),S.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case Oe.ArrowDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Next),1:()=>l.openCombobox()});case Oe.ArrowUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),tt(l.comboboxState.value,{0:()=>l.goToOption(Ae.Previous),1:()=>{l.openCombobox(),o.nextTick(()=>{l.value.value||l.goToOption(Ae.Last)})}});case Oe.Home:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.PageUp:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.First);case Oe.End:if(S.shiftKey)break;return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.PageDown:return d.value=!1,S.preventDefault(),S.stopPropagation(),l.goToOption(Ae.Last);case Oe.Escape:if(d.value=!1,l.comboboxState.value!==0)return;S.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&S.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&f(),l.closeCombobox();break;case Oe.Tab:if(d.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function b(S){t("change",S),l.nullable.value&&l.mode.value===0&&S.target.value===""&&f(),l.openCombobox()}function g(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);if(d.value=!1,!((I=ae(l.optionsRef))!=null&&I.contains(A))&&!((_=ae(l.buttonRef))!=null&&_.contains(A))&&l.comboboxState.value===0)return S.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?f():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function T(S){var N,I,_;let A=(N=S.relatedTarget)!=null?N:dn.find(D=>D!==S.currentTarget);(I=ae(l.buttonRef))!=null&&I.contains(A)||(_=ae(l.optionsRef))!=null&&_.contains(A)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),kn().nextFrame(()=>{l.setActivationTrigger(1)}))}let O=o.computed(()=>{var S,N,I,_;return(_=(I=(N=e.defaultValue)!=null?N:l.defaultValue.value!==void 0?(S=e.displayValue)==null?void 0:S.call(e,l.defaultValue.value):null)!=null?I:l.defaultValue.value)!=null?_:""});return()=>{var S,N,I,_,A,D,M;let K={open:l.comboboxState.value===0},{displayValue:B,onChange:j,...H}=e,W={"aria-controls":(S=l.optionsRef.value)==null?void 0:S.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(N=l.options.value.find(Q=>!l.virtual.value.disabled(Q.dataRef.value)&&l.compare(Q.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:N.id:(I=l.options.value[l.activeOptionIndex.value])==null?void 0:I.id,"aria-labelledby":(D=(_=ae(l.labelRef))==null?void 0:_.id)!=null?D:(A=ae(l.buttonRef))==null?void 0:A.id,"aria-autocomplete":"list",id:s,onCompositionstart:v,onCompositionend:u,onKeydown:y,onInput:b,onFocus:T,onBlur:g,role:"combobox",type:(M=n.type)!=null?M:"text",tabIndex:0,ref:l.inputRef,defaultValue:O.value,disabled:l.disabled.value===!0?!0:void 0};return Be({ourProps:W,theirProps:H,slot:K,attrs:n,slots:a,features:At.RenderStrategy|At.Static,name:"ComboboxInput"})}}}),Ag=o.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let r=Jn("ComboboxOptions"),i=`headlessui-combobox-options-${dt()}`;a({el:r.optionsRef,$el:r.optionsRef}),o.watchEffect(()=>{r.optionsPropsRef.value.static=e.static}),o.watchEffect(()=>{r.optionsPropsRef.value.hold=e.hold});let s=Io(),l=o.computed(()=>s!==null?(s.value&Ve.Open)===Ve.Open:r.comboboxState.value===0);Pc({container:o.computed(()=>ae(r.optionsRef)),enabled:o.computed(()=>r.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,f,p;let h={open:r.comboboxState.value===0},v={"aria-labelledby":(p=(d=ae(r.labelRef))==null?void 0:d.id)!=null?p:(f=ae(r.buttonRef))==null?void 0:f.id,id:i,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0,onMousedown:c},u=ga(e,["hold"]);return Be({ourProps:v,theirProps:u,slot:h,attrs:t,slots:r.virtual.value&&r.comboboxState.value===0?{...n,default:()=>[o.h(kg,{},n.default)]}:n,features:At.RenderStrategy|At.Static,visible:l.value,name:"ComboboxOptions"})}}}),Gc=o.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:a}){let r=Jn("ComboboxOption"),i=`headlessui-combobox-option-${dt()}`,s=o.ref(null),l=o.computed(()=>e.disabled);a({el:s,$el:s});let c=o.computed(()=>{var g;return r.virtual.value?r.activeOptionIndex.value===r.calculateIndex(e.value):r.activeOptionIndex.value===null?!1:((g=r.options.value[r.activeOptionIndex.value])==null?void 0:g.id)===i}),d=o.computed(()=>r.isSelected(e.value)),f=o.inject(zc,null),p=o.computed(()=>({disabled:e.disabled,value:e.value,domRef:s,order:o.computed(()=>e.order)}));o.onMounted(()=>r.registerOption(i,p)),o.onUnmounted(()=>r.unregisterOption(i,c.value)),o.watchEffect(()=>{let g=ae(s);g&&f?.value.measureElement(g)}),o.watchEffect(()=>{r.comboboxState.value===0&&c.value&&(r.virtual.value||r.activationTrigger.value!==0&&o.nextTick(()=>{var g,T;return(T=(g=ae(s))==null?void 0:g.scrollIntoView)==null?void 0:T.call(g,{block:"nearest"})}))});function h(g){g.preventDefault(),g.button===Lc.Left&&(l.value||(r.selectOption(i),Ic()||requestAnimationFrame(()=>{var T;return(T=ae(r.inputRef))==null?void 0:T.focus({preventScroll:!0})}),r.mode.value===0&&r.closeCombobox()))}function v(){var g;if(e.disabled||(g=r.virtual.value)!=null&&g.disabled(e.value))return r.goToOption(Ae.Nothing);let T=r.calculateIndex(e.value);r.goToOption(Ae.Specific,T)}let u=Rc();function m(g){u.update(g)}function y(g){var T;if(!u.wasMoved(g)||e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value)return;let O=r.calculateIndex(e.value);r.goToOption(Ae.Specific,O,0)}function b(g){var T;u.wasMoved(g)&&(e.disabled||(T=r.virtual.value)!=null&&T.disabled(e.value)||c.value&&(r.optionsPropsRef.value.hold||r.goToOption(Ae.Nothing)))}return()=>{let{disabled:g}=e,T={active:c.value,selected:d.value,disabled:g},O={id:i,ref:s,role:"option",tabIndex:g===!0?void 0:-1,"aria-disabled":g===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:h,onFocus:v,onPointerenter:m,onMouseenter:m,onPointermove:y,onMousemove:y,onPointerleave:b,onMouseleave:b},S=ga(e,["order","value"]);return Be({ourProps:O,theirProps:S,slot:T,attrs:n,slots:t,name:"ComboboxOption"})}}});function Wc(e,t,n,a){ma.isServer||o.watchEffect(r=>{e=e??window,e.addEventListener(t,n,a),r(()=>e.removeEventListener(t,n,a))})}var ya=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ya||{});function Dg(){let e=o.ref(0);return _c("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Kc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=ae(n);a instanceof HTMLElement&&t.add(a)}return t}var Xc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Xc||{});let Ea=Object.assign(o.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:o.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let r=o.ref(null);a({el:r,$el:r});let i=o.computed(()=>cn(r)),s=o.ref(!1);o.onMounted(()=>s.value=!0),o.onUnmounted(()=>s.value=!1),Pg({ownerDocument:i},o.computed(()=>s.value&&!!(e.features&16)));let l=Bg({ownerDocument:i,container:r,initialFocus:o.computed(()=>e.initialFocus)},o.computed(()=>s.value&&!!(e.features&2)));Mg({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},o.computed(()=>s.value&&!!(e.features&8)));let c=Dg();function d(v){let u=ae(r);u&&(m=>m())(()=>{tt(c.value,{[ya.Forwards]:()=>{va(u,$t.First,{skipElements:[v.relatedTarget]})},[ya.Backwards]:()=>{va(u,$t.Last,{skipElements:[v.relatedTarget]})}})})}let f=o.ref(!1);function p(v){v.key==="Tab"&&(f.value=!0,requestAnimationFrame(()=>{f.value=!1}))}function h(v){if(!s.value)return;let u=Kc(e.containers);ae(r)instanceof HTMLElement&&u.add(ae(r));let m=v.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(Yc(u,m)||(f.value?va(ae(r),tt(c.value,{[ya.Forwards]:()=>$t.Next,[ya.Backwards]:()=>$t.Previous})|$t.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&In(v.target)))}return()=>{let v={},u={ref:r,onKeydown:p,onFocusout:h},{features:m,initialFocus:y,containers:b,...g}=e;return o.h(o.Fragment,[!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable}),Be({ourProps:u,theirProps:{...t,...g},slot:v,attrs:t,slots:n,name:"FocusTrap"}),!!(m&4)&&o.h(sr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ba.Focusable})])}}}),{features:Xc});function Rg(e){let t=o.ref(dn.slice());return o.watch([e],([n],[a])=>{a===!0&&n===!1?_s(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=dn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function Pg({ownerDocument:e},t){let n=Rg(t);o.onMounted(()=>{o.watchEffect(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&In(n())},{flush:"post"})}),o.onUnmounted(()=>{t.value&&In(n())})}function Bg({ownerDocument:e,container:t,initialFocus:n},a){let r=o.ref(null),i=o.ref(!1);return o.onMounted(()=>i.value=!0),o.onUnmounted(()=>i.value=!1),o.onMounted(()=>{o.watch([t,n,a],(s,l)=>{if(s.every((d,f)=>l?.[f]===d)||!a.value)return;let c=ae(t);c&&_s(()=>{var d,f;if(!i.value)return;let p=ae(n),h=(d=e.value)==null?void 0:d.activeElement;if(p){if(p===h){r.value=h;return}}else if(c.contains(h)){r.value=h;return}p?In(p):va(c,$t.First|$t.NoScroll)===Tc.Error&&console.warn("There are no focusable elements inside the "),r.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),r}function Mg({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){var i;Wc((i=e.value)==null?void 0:i.defaultView,"focus",s=>{if(!r.value)return;let l=Kc(n);ae(t)instanceof HTMLElement&&l.add(ae(t));let c=a.value;if(!c)return;let d=s.target;d&&d instanceof HTMLElement?Yc(l,d)?(a.value=d,In(d)):(s.preventDefault(),s.stopPropagation(),In(c)):In(a.value)},!0)}function Yc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fg(e){let t=o.shallowRef(e.getSnapshot());return o.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lg(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...i){let s=t[r].call(n,...i);s&&(n=s,a.forEach(l=>l()))}}}function jg(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,i=e-r;n.style(a,"paddingRight",`${i}px`)}}}function Vg(){return kc()?{before({doc:e,d:t,meta:n}){function a(r){return n.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=kn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,s=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let c=l.target.closest("a");if(!c)return;let{hash:d}=new URL(c.href),f=e.querySelector(d);f&&!a(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(a(l.target)){let c=l.target;for(;c.parentElement&&a(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(a(l.target)){let c=l.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let c=(l=window.scrollY)!=null?l:window.pageYOffset;i!==c&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Ug(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Hg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Qn=Lg(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:kn(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:Hg(n)},r=[Vg(),jg(),Ug()];r.forEach(({before:i})=>i?.(a)),r.forEach(({after:i})=>i?.(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Qn.subscribe(()=>{let e=Qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!a||!r&&a)&&Qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Qn.dispatch("TEARDOWN",n)}});function zg(e,t,n){let a=Fg(Qn),r=o.computed(()=>{let i=e.value?a.value.get(e.value):void 0;return i?i.count>0:!1});return o.watch([e,t],([i,s],[l],c)=>{if(!i||!s)return;Qn.dispatch("PUSH",i,n);let d=!1;c(()=>{d||(Qn.dispatch("POP",l??i,n),d=!0)})},{immediate:!0}),r}let js=new Map,wa=new Map;function Jc(e,t=o.ref(!0)){o.watchEffect(n=>{var a;if(!t.value)return;let r=ae(e);if(!r)return;n(function(){var s;if(!r)return;let l=(s=wa.get(r))!=null?s:1;if(l===1?wa.delete(r):wa.set(r,l-1),l!==1)return;let c=js.get(r);c&&(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,js.delete(r))});let i=(a=wa.get(r))!=null?a:0;wa.set(r,i+1),i===0&&(js.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Gg({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=o.ref(null),r=cn(a);function i(){var s,l,c;let d=[];for(let f of e)f!==null&&(f instanceof HTMLElement?d.push(f):"value"in f&&f.value instanceof HTMLElement&&d.push(f.value));if(t!=null&&t.value)for(let f of t.value)d.push(f);for(let f of(s=r?.querySelectorAll("html > *, body > *"))!=null?s:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(ae(a))||f.contains((c=(l=ae(a))==null?void 0:l.getRootNode())==null?void 0:c.host)||d.some(p=>f.contains(p))||d.push(f));return d}return{resolveContainers:i,contains(s){return i().some(l=>l.contains(s))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:o.h(sr,{features:ba.Hidden,ref:a})}}}let Qc=Symbol("ForcePortalRootContext");function Wg(){return o.inject(Qc,!1)}let Vs=o.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return o.provide(Qc,e.force),()=>{let{force:a,...r}=e;return Be({theirProps:r,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Zc=Symbol("StackContext");var Us=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Us||{});function Kg(){return o.inject(Zc,()=>{})}function Xg({type:e,enabled:t,element:n,onUpdate:a}){let r=Kg();function i(...s){a?.(...s),r(...s)}o.onMounted(()=>{o.watch(t,(s,l)=>{s?i(0,e,n):l===!0&&i(1,e,n)},{immediate:!0,flush:"sync"})}),o.onUnmounted(()=>{t.value&&i(1,e,n)}),o.provide(Zc,i)}let qc=Symbol("DescriptionContext");function Yg(){let e=o.inject(qc,null);if(e===null)throw new Error("Missing parent");return e}function Jg({slot:e=o.ref({}),name:t="Description",props:n={}}={}){let a=o.ref([]);function r(i){return a.value.push(i),()=>{let s=a.value.indexOf(i);s!==-1&&a.value.splice(s,1)}}return o.provide(qc,{register:r,slot:e,name:t,props:n}),o.computed(()=>a.value.length>0?a.value.join(" "):void 0)}o.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-description-${dt()}`,i=Yg();return o.onMounted(()=>o.onUnmounted(i.register(r))),()=>{let{name:s="Description",slot:l=o.ref({}),props:c={}}=i,{...d}=e,f={...Object.entries(c).reduce((p,[h,v])=>Object.assign(p,{[h]:o.unref(v)}),{}),id:r};return Be({ourProps:f,theirProps:d,slot:l.value,attrs:t,slots:n,name:s})}}});function Qg(e){let t=cn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}const Hs=new WeakMap;function Zg(e){var t;return(t=Hs.get(e))!=null?t:0}function $c(e,t){let n=t(Zg(e));return n<=0?Hs.delete(e):Hs.set(e,n),n}let ed=o.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=o.ref(null),r=o.computed(()=>cn(a)),i=Wg(),s=o.inject(td,null),l=o.ref(i===!0||s==null?Qg(a.value):s.resolveTarget());l.value&&$c(l.value,h=>h+1);let c=o.ref(!1);o.onMounted(()=>{c.value=!0}),o.watchEffect(()=>{i||s!=null&&(l.value=s.resolveTarget())});let d=o.inject(zs,null),f=!1,p=o.getCurrentInstance();return o.watch(a,()=>{if(f||!d)return;let h=ae(a);h&&(o.onUnmounted(d.register(h),p),f=!0)}),o.onUnmounted(()=>{var h,v;let u=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!u||l.value!==u||$c(l.value,m=>m-1)||l.value.children.length>0||(v=l.value.parentElement)==null||v.removeChild(l.value)}),()=>{if(!c.value||l.value===null)return null;let h={ref:a,"data-headlessui-portal":""};return o.h(o.Teleport,{to:l.value},Be({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),zs=Symbol("PortalParentContext");function qg(){let e=o.inject(zs,null),t=o.ref([]);function n(i){return t.value.push(i),e&&e.register(i),()=>a(i)}function a(i){let s=t.value.indexOf(i);s!==-1&&t.value.splice(s,1),e&&e.unregister(i)}let r={register:n,unregister:a,portals:t};return[t,o.defineComponent({name:"PortalWrapper",setup(i,{slots:s}){return o.provide(zs,r),()=>{var l;return(l=s.default)==null?void 0:l.call(s)}}})]}let td=Symbol("PortalGroupContext"),$g=o.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=o.reactive({resolveTarget(){return e.target}});return o.provide(td,a),()=>{let{target:r,...i}=e;return Be({theirProps:i,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var eb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eb||{});let Gs=Symbol("DialogContext");function xa(e){let t=o.inject(Gs,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xa),n}return t}let lr="DC8F892D-2EBD-447C-A4C8-A03058436FF4",cr=o.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:lr},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var i,s;let l=(i=e.id)!=null?i:`headlessui-dialog-${dt()}`,c=o.ref(!1);o.onMounted(()=>{c.value=!0});let d=!1,f=o.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${f}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),p=o.ref(0),h=Io(),v=o.computed(()=>e.open===lr&&h!==null?(h.value&Ve.Open)===Ve.Open:e.open),u=o.ref(null),m=o.computed(()=>cn(u));if(r({el:u,$el:u}),!(e.open!==lr||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof v.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value===lr?void 0:e.open}`);let y=o.computed(()=>c.value&&v.value?0:1),b=o.computed(()=>y.value===0),g=o.computed(()=>p.value>1),T=o.inject(Gs,null)!==null,[O,S]=qg(),{resolveContainers:N,mainTreeNodeRef:I,MainTreeNode:_}=Gg({portals:O,defaultContainers:[o.computed(()=>{var se;return(se=Q.panelRef.value)!=null?se:u.value})]}),A=o.computed(()=>g.value?"parent":"leaf"),D=o.computed(()=>h!==null?(h.value&Ve.Closing)===Ve.Closing:!1),M=o.computed(()=>T||D.value?!1:b.value),K=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("body > *"))!=null?fe:[]).find(Se=>Se.id==="headlessui-portal-root"?!1:Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(K,M);let B=o.computed(()=>g.value?!0:b.value),j=o.computed(()=>{var se,fe,ye;return(ye=Array.from((fe=(se=m.value)==null?void 0:se.querySelectorAll("[data-headlessui-portal]"))!=null?fe:[]).find(Se=>Se.contains(ae(I))&&Se instanceof HTMLElement))!=null?ye:null});Jc(j,B),Xg({type:"Dialog",enabled:o.computed(()=>y.value===0),element:u,onUpdate:(se,fe)=>{if(fe==="Dialog")return tt(se,{[Us.Add]:()=>p.value+=1,[Us.Remove]:()=>p.value-=1})}});let H=Jg({name:"DialogDescription",slot:o.computed(()=>({open:v.value}))}),W=o.ref(null),Q={titleId:W,panelRef:o.ref(null),dialogState:y,setTitleId(se){W.value!==se&&(W.value=se)},close(){t("close",!1)}};o.provide(Gs,Q);let ne=o.computed(()=>!(!b.value||g.value));Bs(N,(se,fe)=>{se.preventDefault(),Q.close(),o.nextTick(()=>fe?.focus())},ne);let we=o.computed(()=>!(g.value||y.value!==0));Wc((s=m.value)==null?void 0:s.defaultView,"keydown",se=>{we.value&&(se.defaultPrevented||se.key===Oe.Escape&&(se.preventDefault(),se.stopPropagation(),Q.close()))});let Ze=o.computed(()=>!(D.value||y.value!==0||T));return zg(m,Ze,se=>{var fe;return{containers:[...(fe=se.containers)!=null?fe:[],N]}}),o.watchEffect(se=>{if(y.value!==0)return;let fe=ae(u);if(!fe)return;let ye=new ResizeObserver(Se=>{for(let Pe of Se){let ke=Pe.target.getBoundingClientRect();ke.x===0&&ke.y===0&&ke.width===0&&ke.height===0&&Q.close()}});ye.observe(fe),se(()=>ye.disconnect())}),()=>{let{open:se,initialFocus:fe,...ye}=e,Se={...n,ref:u,id:l,role:f.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":W.value,"aria-describedby":H.value},Pe={open:y.value===0};return o.h(Vs,{force:!0},()=>[o.h(ed,()=>o.h($g,{target:u.value},()=>o.h(Vs,{force:!1},()=>o.h(Ea,{initialFocus:fe,containers:N,features:b.value?tt(A.value,{parent:Ea.features.RestoreFocus,leaf:Ea.features.All&~Ea.features.FocusLock}):Ea.features.None},()=>o.h(S,{},()=>Be({ourProps:Se,theirProps:{...ye,...n},slot:Pe,attrs:n,slots:a,visible:y.value===0,features:At.RenderStrategy|At.Static,name:"Dialog"})))))),o.h(_)])}}});o.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-overlay-${dt()}`,i=xa("DialogOverlay");function s(l){l.target===l.currentTarget&&(l.preventDefault(),l.stopPropagation(),i.close())}return()=>{let{...l}=e;return Be({ourProps:{id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),o.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-backdrop-${dt()}`,s=xa("DialogBackdrop"),l=o.ref(null);return a({el:l,$el:l}),o.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A component is being used, but a component is missing.")}),()=>{let{...c}=e,d={id:i,ref:l,"aria-hidden":!0};return o.h(Vs,{force:!0},()=>o.h(ed,()=>Be({ourProps:d,theirProps:{...t,...c},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let un=o.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${dt()}`,s=xa("DialogPanel");a({el:s.panelRef,$el:s.panelRef});function l(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:i,ref:s.panelRef,onClick:l};return Be({ourProps:d,theirProps:c,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),nd=o.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var a;let r=(a=e.id)!=null?a:`headlessui-dialog-title-${dt()}`,i=xa("DialogTitle");return o.onMounted(()=>{i.setTitleId(r),o.onUnmounted(()=>i.setTitleId(null))}),()=>{let{...s}=e;return Be({ourProps:{id:r},theirProps:s,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var tb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tb||{});let od=Symbol("DisclosureContext");function Ws(e){let t=o.inject(od,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ws),n}return t}let ad=Symbol("DisclosurePanelContext");function nb(){return o.inject(ad,null)}let rd=o.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let a=o.ref(e.defaultOpen?0:1),r=o.ref(null),i=o.ref(null),s={buttonId:o.ref(`headlessui-disclosure-button-${dt()}`),panelId:o.ref(`headlessui-disclosure-panel-${dt()}`),disclosureState:a,panel:r,button:i,toggleDisclosure(){a.value=tt(a.value,{0:1,1:0})},closeDisclosure(){a.value!==1&&(a.value=1)},close(l){s.closeDisclosure();let c=l?l instanceof HTMLElement?l:l.value instanceof HTMLElement?ae(l):ae(s.button):ae(s.button);c?.focus()}};return o.provide(od,s),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let{defaultOpen:l,...c}=e,d={open:a.value===0,close:s.close};return Be({theirProps:c,ourProps:{},slot:d,slots:t,attrs:n,name:"Disclosure"})}}}),sd=o.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosureButton"),i=nb(),s=o.computed(()=>i===null?!1:i.value===r.panelId.value);o.onMounted(()=>{s.value||e.id!==null&&(r.buttonId.value=e.id)}),o.onUnmounted(()=>{s.value||(r.buttonId.value=null)});let l=o.ref(null);a({el:l,$el:l}),s.value||o.watchEffect(()=>{r.button.value=l.value});let c=Ms(o.computed(()=>({as:e.as,type:t.type})),l);function d(){var h;e.disabled||(s.value?(r.toggleDisclosure(),(h=ae(r.button))==null||h.focus()):r.toggleDisclosure())}function f(h){var v;if(!e.disabled)if(s.value)switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure(),(v=ae(r.button))==null||v.focus();break}else switch(h.key){case Oe.Space:case Oe.Enter:h.preventDefault(),h.stopPropagation(),r.toggleDisclosure();break}}function p(h){switch(h.key){case Oe.Space:h.preventDefault();break}}return()=>{var h;let v={open:r.disclosureState.value===0},{id:u,...m}=e,y=s.value?{ref:l,type:c.value,onClick:d,onKeydown:f}:{id:(h=r.buttonId.value)!=null?h:u,ref:l,type:c.value,"aria-expanded":r.disclosureState.value===0,"aria-controls":r.disclosureState.value===0||ae(r.panel)?r.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p};return Be({ourProps:y,theirProps:m,slot:v,attrs:t,slots:n,name:"DisclosureButton"})}}}),id=o.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let r=Ws("DisclosurePanel");o.onMounted(()=>{e.id!==null&&(r.panelId.value=e.id)}),o.onUnmounted(()=>{r.panelId.value=null}),a({el:r.panel,$el:r.panel}),o.provide(ad,r.panelId);let i=Io(),s=o.computed(()=>i!==null?(i.value&Ve.Open)===Ve.Open:r.disclosureState.value===0);return()=>{var l;let c={open:r.disclosureState.value===0,close:r.close},{id:d,...f}=e,p={id:(l=r.panelId.value)!=null?l:d,ref:r.panel};return Be({ourProps:p,theirProps:f,slot:c,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:s.value,name:"DisclosurePanel"})}}}),ld=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function cd(e){var t,n;let a=(t=e.innerText)!=null?t:"",r=e.cloneNode(!0);if(!(r instanceof HTMLElement))return a;let i=!1;for(let l of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let s=i?(n=r.innerText)!=null?n:"":a;return ld.test(s)&&(s=s.replace(ld,"")),s}function ob(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let a=n.split(" ").map(r=>{let i=document.getElementById(r);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():cd(i).trim()}return null}).filter(Boolean);if(a.length>0)return a.join(", ")}return cd(e).trim()}function ab(e){let t=o.ref(""),n=o.ref("");return()=>{let a=ae(e);if(!a)return"";let r=a.innerText;if(t.value===r)return n.value;let i=ob(a).trim().toLowerCase();return t.value=r,n.value=i,i}}var rb=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rb||{}),sb=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sb||{});function ib(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let dd=Symbol("MenuContext");function dr(e){let t=o.inject(dd,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dr),n}return t}let Ks=o.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let a=o.ref(1),r=o.ref(null),i=o.ref(null),s=o.ref([]),l=o.ref(""),c=o.ref(null),d=o.ref(1);function f(h=v=>v){let v=c.value!==null?s.value[c.value]:null,u=Ps(h(s.value.slice()),y=>ae(y.dataRef.domRef)),m=v?u.indexOf(v):null;return m===-1&&(m=null),{items:u,activeItemIndex:m}}let p={menuState:a,buttonRef:r,itemsRef:i,items:s,searchQuery:l,activeItemIndex:c,activationTrigger:d,closeMenu:()=>{a.value=1,c.value=null},openMenu:()=>a.value=0,goToItem(h,v,u){let m=f(),y=Ls(h===Ae.Specific?{focus:Ae.Specific,id:v}:{focus:h},{resolveItems:()=>m.items,resolveActiveIndex:()=>m.activeItemIndex,resolveId:b=>b.id,resolveDisabled:b=>b.dataRef.disabled});l.value="",c.value=y,d.value=u??1,s.value=m.items},search(h){let v=l.value!==""?0:1;l.value+=h.toLowerCase();let u=(c.value!==null?s.value.slice(c.value+v).concat(s.value.slice(0,c.value+v)):s.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),m=u?s.value.indexOf(u):-1;m===-1||m===c.value||(c.value=m,d.value=1)},clearSearch(){l.value=""},registerItem(h,v){let u=f(m=>[...m,{id:h,dataRef:v}]);s.value=u.items,c.value=u.activeItemIndex,d.value=1},unregisterItem(h){let v=f(u=>{let m=u.findIndex(y=>y.id===h);return m!==-1&&u.splice(m,1),u});s.value=v.items,c.value=v.activeItemIndex,d.value=1}};return Bs([r,i],(h,v)=>{var u;p.closeMenu(),Rs(v,Ds.Loose)||(h.preventDefault(),(u=ae(r))==null||u.focus())},o.computed(()=>a.value===0)),o.provide(dd,p),ir(o.computed(()=>tt(a.value,{0:Ve.Open,1:Ve.Closed}))),()=>{let h={open:a.value===0,close:p.closeMenu};return Be({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Xs=o.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-button-${dt()}`,s=dr("MenuButton");a({el:s.buttonRef,$el:s.buttonRef});function l(p){switch(p.key){case Oe.Space:case Oe.Enter:case Oe.ArrowDown:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.First)});break;case Oe.ArrowUp:p.preventDefault(),p.stopPropagation(),s.openMenu(),o.nextTick(()=>{var h;(h=ae(s.itemsRef))==null||h.focus({preventScroll:!0}),s.goToItem(Ae.Last)});break}}function c(p){switch(p.key){case Oe.Space:p.preventDefault();break}}function d(p){e.disabled||(s.menuState.value===0?(s.closeMenu(),o.nextTick(()=>{var h;return(h=ae(s.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(p.preventDefault(),s.openMenu(),ib(()=>{var h;return(h=ae(s.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let f=Ms(o.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var p;let h={open:s.menuState.value===0},{...v}=e,u={ref:s.buttonRef,id:i,type:f.value,"aria-haspopup":"menu","aria-controls":(p=ae(s.itemsRef))==null?void 0:p.id,"aria-expanded":s.menuState.value===0,onKeydown:l,onKeyup:c,onClick:d};return Be({ourProps:u,theirProps:v,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Ys=o.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-items-${dt()}`,s=dr("MenuItems"),l=o.ref(null);a({el:s.itemsRef,$el:s.itemsRef}),Pc({container:o.computed(()=>ae(s.itemsRef)),enabled:o.computed(()=>s.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function c(h){var v;switch(l.value&&clearTimeout(l.value),h.key){case Oe.Space:if(s.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),s.search(h.key);case Oe.Enter:if(h.preventDefault(),h.stopPropagation(),s.activeItemIndex.value!==null){let u=s.items.value[s.activeItemIndex.value];(v=ae(u.dataRef.domRef))==null||v.click()}s.closeMenu(),Nc(ae(s.buttonRef));break;case Oe.ArrowDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Next);case Oe.ArrowUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Previous);case Oe.Home:case Oe.PageUp:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.First);case Oe.End:case Oe.PageDown:return h.preventDefault(),h.stopPropagation(),s.goToItem(Ae.Last);case Oe.Escape:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>{var u;return(u=ae(s.buttonRef))==null?void 0:u.focus({preventScroll:!0})});break;case Oe.Tab:h.preventDefault(),h.stopPropagation(),s.closeMenu(),o.nextTick(()=>vg(ae(s.buttonRef),h.shiftKey?$t.Previous:$t.Next));break;default:h.key.length===1&&(s.search(h.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}function d(h){switch(h.key){case Oe.Space:h.preventDefault();break}}let f=Io(),p=o.computed(()=>f!==null?(f.value&Ve.Open)===Ve.Open:s.menuState.value===0);return()=>{var h,v;let u={open:s.menuState.value===0},{...m}=e,y={"aria-activedescendant":s.activeItemIndex.value===null||(h=s.items.value[s.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(v=ae(s.buttonRef))==null?void 0:v.id,id:i,onKeydown:c,onKeyup:d,role:"menu",tabIndex:0,ref:s.itemsRef};return Be({ourProps:y,theirProps:m,slot:u,attrs:t,slots:n,features:At.RenderStrategy|At.Static,visible:p.value,name:"MenuItems"})}}}),Sa=o.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:a}){var r;let i=(r=e.id)!=null?r:`headlessui-menu-item-${dt()}`,s=dr("MenuItem"),l=o.ref(null);a({el:l,$el:l});let c=o.computed(()=>s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===i:!1),d=ab(l),f=o.computed(()=>({disabled:e.disabled,get textValue(){return d()},domRef:l}));o.onMounted(()=>s.registerItem(i,f)),o.onUnmounted(()=>s.unregisterItem(i)),o.watchEffect(()=>{s.menuState.value===0&&c.value&&s.activationTrigger.value!==0&&o.nextTick(()=>{var b,g;return(g=(b=ae(l))==null?void 0:b.scrollIntoView)==null?void 0:g.call(b,{block:"nearest"})})});function p(b){if(e.disabled)return b.preventDefault();s.closeMenu(),Nc(ae(s.buttonRef))}function h(){if(e.disabled)return s.goToItem(Ae.Nothing);s.goToItem(Ae.Specific,i)}let v=Rc();function u(b){v.update(b)}function m(b){v.wasMoved(b)&&(e.disabled||c.value||s.goToItem(Ae.Specific,i,0))}function y(b){v.wasMoved(b)&&(e.disabled||c.value&&s.goToItem(Ae.Nothing))}return()=>{let{disabled:b,...g}=e,T={active:c.value,disabled:b,close:s.closeMenu};return Be({ourProps:{id:i,ref:l,role:"menuitem",tabIndex:b===!0?void 0:-1,"aria-disabled":b===!0?!0:void 0,onClick:p,onFocus:h,onPointerenter:u,onMouseenter:u,onPointermove:m,onMousemove:m,onPointerleave:y,onMouseleave:y},theirProps:{...n,...g},slot:T,attrs:n,slots:t,name:"MenuItem"})}}});function lb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Js(e,...t){e&&t.length>0&&e.classList.add(...t)}function ur(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Qs=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Qs||{});function cb(e,t){let n=kn();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[i,s]=[a,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,f)=>f-d);return c});return i!==0?n.setTimeout(()=>t("finished"),i+s):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ud(e,t,n,a,r,i){let s=kn(),l=i!==void 0?lb(i):()=>{};return ur(e,...r),Js(e,...t,...n),s.nextFrame(()=>{ur(e,...n),Js(e,...a),s.add(cb(e,c=>(ur(e,...a,...t),Js(e,...r),l(c))))}),s.add(()=>ur(e,...t,...n,...a,...r)),s.add(()=>l("cancelled")),s.dispose}function Zn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Zs=Symbol("TransitionContext");var db=(e=>(e.Visible="visible",e.Hidden="hidden",e))(db||{});function ub(){return o.inject(Zs,null)!==null}function fb(){let e=o.inject(Zs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function pb(){let e=o.inject(qs,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let qs=Symbol("NestingContext");function fr(e){return"children"in e?fr(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function fd(e){let t=o.ref([]),n=o.ref(!1);o.onMounted(()=>n.value=!0),o.onUnmounted(()=>n.value=!1);function a(i,s=_n.Hidden){let l=t.value.findIndex(({id:c})=>c===i);l!==-1&&(tt(s,{[_n.Unmount](){t.value.splice(l,1)},[_n.Hidden](){t.value[l].state="hidden"}}),!fr(t)&&n.value&&e?.())}function r(i){let s=t.value.find(({id:l})=>l===i);return s?s.state!=="visible"&&(s.state="visible"):t.value.push({id:i,state:"visible"}),()=>a(i,_n.Unmount)}return{children:t,register:r,unregister:a}}let pd=At.RenderStrategy,An=o.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let i=o.ref(0);function s(){i.value|=Ve.Opening,t("beforeEnter")}function l(){i.value&=~Ve.Opening,t("afterEnter")}function c(){i.value|=Ve.Closing,t("beforeLeave")}function d(){i.value&=~Ve.Closing,t("afterLeave")}if(!ub()&&Eg())return()=>o.h(Oa,{...e,onBeforeEnter:s,onAfterEnter:l,onBeforeLeave:c,onAfterLeave:d},a);let f=o.ref(null),p=o.computed(()=>e.unmount?_n.Unmount:_n.Hidden);r({el:f,$el:f});let{show:h,appear:v}=fb(),{register:u,unregister:m}=pb(),y=o.ref(h.value?"visible":"hidden"),b={value:!0},g=dt(),T={value:!1},O=fd(()=>{!T.value&&y.value!=="hidden"&&(y.value="hidden",m(g),d())});o.onMounted(()=>{let B=u(g);o.onUnmounted(B)}),o.watchEffect(()=>{if(p.value===_n.Hidden&&g){if(h.value&&y.value!=="visible"){y.value="visible";return}tt(y.value,{hidden:()=>m(g),visible:()=>u(g)})}});let S=Zn(e.enter),N=Zn(e.enterFrom),I=Zn(e.enterTo),_=Zn(e.entered),A=Zn(e.leave),D=Zn(e.leaveFrom),M=Zn(e.leaveTo);o.onMounted(()=>{o.watchEffect(()=>{if(y.value==="visible"){let B=ae(f);if(B instanceof Comment&&B.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function K(B){let j=b.value&&!v.value,H=ae(f);!H||!(H instanceof HTMLElement)||j||(T.value=!0,h.value&&s(),h.value||c(),B(h.value?ud(H,S,N,I,_,W=>{T.value=!1,W===Qs.Finished&&l()}):ud(H,A,D,M,_,W=>{T.value=!1,W===Qs.Finished&&(fr(O)||(y.value="hidden",m(g),d()))})))}return o.onMounted(()=>{o.watch([h],(B,j,H)=>{K(H),b.value=!1},{immediate:!0})}),o.provide(qs,O),ir(o.computed(()=>tt(y.value,{visible:Ve.Open,hidden:Ve.Closed})|i.value)),()=>{let{appear:B,show:j,enter:H,enterFrom:W,enterTo:Q,entered:ne,leave:we,leaveFrom:Ze,leaveTo:se,...fe}=e,ye={ref:f},Se={...fe,...v.value&&h.value&&ma.isServer?{class:o.normalizeClass([n.class,fe.class,...S,...N])}:{}};return Be({theirProps:Se,ourProps:ye,slot:{},slots:a,attrs:n,features:pd,visible:y.value==="visible",name:"TransitionChild"})}}}),hb=An,Oa=o.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let r=Io(),i=o.computed(()=>e.show===null&&r!==null?(r.value&Ve.Open)===Ve.Open:e.show);o.watchEffect(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let s=o.ref(i.value?"visible":"hidden"),l=fd(()=>{s.value="hidden"}),c=o.ref(!0),d={show:i,appear:o.computed(()=>e.appear||!c.value)};return o.onMounted(()=>{o.watchEffect(()=>{c.value=!1,i.value?s.value="visible":fr(l)||(s.value="hidden")})}),o.provide(qs,l),o.provide(Zs,d),()=>{let f=ga(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),p={unmount:e.unmount};return Be({ourProps:{...p,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[o.h(hb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...p,...f},a.default)]},attrs:{},features:pd,visible:s.value==="visible",name:"Transition"})}}});const mb={},vb={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},gb=[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),o.createElementVNode("path",{d:"M8 5v10a1 1 0 0 0 1 1h10"},null,-1),o.createElementVNode("path",{d:"M5 8h10a1 1 0 0 1 1 1v10"},null,-1)];function bb(e,t){return o.openBlock(),o.createElementBlock("svg",vb,gb)}const hd=is(mb,[["render",bb]]),it=o.defineComponent({__name:"IconButton",props:{variant:{default:"secondary"},type:{default:"button"},asAnchor:{type:Boolean,default:!1},download:{}},setup(e){const t={primary:"bg-blue-500 text-white focus:outline-blue-500",secondary:"bg-gray-300 dark:bg-gray-700 text-gray-800 dark:text-gray-200 focus:outline-blue-500",danger:"bg-red-500 text-white focus:outline-red-500",success:"bg-green-500 text-white focus:outline-green-500",transparent:"bg-transparent text-gray-800 dark:text-gray-100"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.asAnchor?"a":"button"),{class:o.normalizeClass(`inline-flex items-center rounded-full border-0 p-2 shadow-sm focus:outline-none focus:ring-1 hover:opacity-75 disabled:opacity-25 ${a.value}`),type:r.asAnchor?void 0:r.type??"button",download:r.download??null},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["class","type","download"]))}}),yb=o.createElementVNode("div",{class:"fixed inset-0 bg-gray-800/20 backdrop-blur-sm transition-opacity"},null,-1),Eb={class:"flex items-end sm:items-center justify-center min-h-full p-0 md:p-4"},_o=o.defineComponent({__name:"BaseModal",props:{name:{},initialFocusRef:{}},setup(e){const t=e;o.onBeforeUnmount(()=>{r.value&&i()});const n=Re(),a=o.computed(()=>n.dark),r=o.computed(()=>n.isOpen(t.name)),i=()=>{n.closeModal({name:t.name})};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Oa),{show:r.value,as:"template",class:"nova-file-manager"},{default:o.withCtx(()=>[o.createVNode(o.unref(cr),{as:"div",class:"relative z-[60]",style:{"z-index":"999"},onClose:i,"initial-focus":s.initialFocusRef},{default:o.withCtx(()=>[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o.withCtx(()=>[yb]),_:1}),o.createElementVNode("div",{class:o.normalizeClass([{dark:a.value},"fixed z-10 inset-0 overflow-y-auto"])},[o.createElementVNode("div",Eb,[o.createVNode(o.unref(An),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{close:i,isOpen:r.value,dark:a.value})]),_:3})])],2)]),_:3},8,["initial-focus"])]),_:3},8,["show"]))}});var md={},vd={exports:{}};/*! * Cropper.js v1.5.12 * https://fengyuanchen.github.io/cropperjs * @@ -18,13 +18,13 @@ * * Date: 2021-06-12T08:00:17.411Z */(function(e,t){(function(n,a){e.exports=a()})(So,function(){function n(C,E){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(C);E&&(w=w.filter(function(P){return Object.getOwnPropertyDescriptor(C,P).enumerable})),x.push.apply(x,w)}return x}function a(C){for(var E=1;EC.length)&&(E=C.length);for(var x=0,w=new Array(E);x
',Z=Number.isNaN||y.isNaN;function J(C){return typeof C=="number"&&!Z(C)}var de=function(E){return E>0&&E<1/0};function pe(C){return typeof C>"u"}function ve(C){return r(C)==="object"&&C!==null}var Xe=Object.prototype.hasOwnProperty;function le(C){if(!ve(C))return!1;try{var E=C.constructor,x=E.prototype;return E&&x&&Xe.call(x,"isPrototypeOf")}catch{return!1}}function oe(C){return typeof C=="function"}var ce=Array.prototype.slice;function Ee(C){return Array.from?Array.from(C):ce.call(C)}function ie(C,E){return C&&oe(E)&&(Array.isArray(C)||J(C.length)?Ee(C).forEach(function(x,w){E.call(C,x,w,C)}):ve(C)&&Object.keys(C).forEach(function(x){E.call(C,C[x],x,C)})),C}var ge=Object.assign||function(E){for(var x=arguments.length,w=new Array(x>1?x-1:0),P=1;P0&&w.forEach(function(k){ve(k)&&Object.keys(k).forEach(function(R){E[R]=k[R]})}),E},Xa=/\.\d*(?:0|9){12}\d*$/;function Hn(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Xa.test(C)?Math.round(C*E)/E:C}var ea=/^width|height|left|top|marginLeft|marginTop$/;function zn(C,E){var x=C.style;ie(E,function(w,P){ea.test(P)&&J(w)&&(w="".concat(w,"px")),x[P]=w})}function uA(C,E){return C.classList?C.classList.contains(E):C.className.indexOf(E)>-1}function lt(C,E){if(E){if(J(C.length)){ie(C,function(w){lt(w,E)});return}if(C.classList){C.classList.add(E);return}var x=C.className.trim();x?x.indexOf(E)<0&&(C.className="".concat(x," ").concat(E)):C.className=E}}function rn(C,E){if(E){if(J(C.length)){ie(C,function(x){rn(x,E)});return}if(C.classList){C.classList.remove(E);return}C.className.indexOf(E)>=0&&(C.className=C.className.replace(E,""))}}function ta(C,E,x){if(E){if(J(C.length)){ie(C,function(w){ta(w,E,x)});return}x?lt(C,E):rn(C,E)}}var fA=/([a-z\d])([A-Z])/g;function al(C){return C.replace(fA,"$1-$2").toLowerCase()}function rl(C,E){return ve(C[E])?C[E]:C.dataset?C.dataset[E]:C.getAttribute("data-".concat(al(E)))}function Ya(C,E,x){ve(x)?C[E]=x:C.dataset?C.dataset[E]=x:C.setAttribute("data-".concat(al(E)),x)}function pA(C,E){if(ve(C[E]))try{delete C[E]}catch{C[E]=void 0}else if(C.dataset)try{delete C.dataset[E]}catch{C.dataset[E]=void 0}else C.removeAttribute("data-".concat(al(E)))}var Pf=/\s\s*/,Bf=function(){var C=!1;if(m){var E=!1,x=function(){},w=Object.defineProperty({},"once",{get:function(){return C=!0,E},set:function(k){E=k}});y.addEventListener("test",x,w),y.removeEventListener("test",x,w)}return C}();function Jt(C,E,x){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},P=x;E.trim().split(Pf).forEach(function(k){if(!Bf){var R=C.listeners;R&&R[k]&&R[k][x]&&(P=R[k][x],delete R[k][x],Object.keys(R[k]).length===0&&delete R[k],Object.keys(R).length===0&&delete C.listeners)}C.removeEventListener(k,P,w)})}function Lt(C,E,x){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},P=x;E.trim().split(Pf).forEach(function(k){if(w.once&&!Bf){var R=C.listeners,U=R===void 0?{}:R;P=function(){delete U[k][x],C.removeEventListener(k,P,w);for(var Y=arguments.length,z=new Array(Y),G=0;GMath.abs(x)&&(x=q)})}),x}function qr(C,E){var x=C.pageX,w=C.pageY,P={endX:x,endY:w};return E?P:a({startX:x,startY:w},P)}function vA(C){var E=0,x=0,w=0;return ie(C,function(P){var k=P.startX,R=P.startY;E+=k,x+=R,w+=1}),E/=w,x/=w,{pageX:E,pageY:x}}function Gn(C){var E=C.aspectRatio,x=C.height,w=C.width,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",k=de(w),R=de(x);if(k&&R){var U=x*E;P==="contain"&&U>w||P==="cover"&&U90?{width:$,height:U}:{width:U,height:$}}function bA(C,E,x,w){var P=E.aspectRatio,k=E.naturalWidth,R=E.naturalHeight,U=E.rotate,$=U===void 0?0:U,Y=E.scaleX,z=Y===void 0?1:Y,G=E.scaleY,q=G===void 0?1:G,Ne=x.aspectRatio,Te=x.naturalWidth,Ge=x.naturalHeight,Ie=w.fillColor,rt=Ie===void 0?"transparent":Ie,ct=w.imageSmoothingEnabled,et=ct===void 0?!0:ct,En=w.imageSmoothingQuality,kt=En===void 0?"low":En,ee=w.maxWidth,De=ee===void 0?1/0:ee,st=w.maxHeight,jt=st===void 0?1/0:st,wn=w.minWidth,bo=wn===void 0?0:wn,yo=w.minHeight,Wn=yo===void 0?0:yo,sn=document.createElement("canvas"),wt=sn.getContext("2d"),Eo=Gn({aspectRatio:Ne,width:De,height:jt}),$r=Gn({aspectRatio:Ne,width:bo,height:Wn},"cover"),il=Math.min(Eo.width,Math.max($r.width,Te)),ll=Math.min(Eo.height,Math.max($r.height,Ge)),Uf=Gn({aspectRatio:P,width:De,height:jt}),Hf=Gn({aspectRatio:P,width:bo,height:Wn},"cover"),zf=Math.min(Uf.width,Math.max(Hf.width,k)),Gf=Math.min(Uf.height,Math.max(Hf.height,R)),_A=[-zf/2,-Gf/2,zf,Gf];return sn.width=Hn(il),sn.height=Hn(ll),wt.fillStyle=rt,wt.fillRect(0,0,il,ll),wt.save(),wt.translate(il/2,ll/2),wt.rotate($*Math.PI/180),wt.scale(z,q),wt.imageSmoothingEnabled=et,wt.imageSmoothingQuality=kt,wt.drawImage.apply(wt,[C].concat(d(_A.map(function(RA){return Math.floor(Hn(RA))})))),wt.restore(),sn}var jf=String.fromCharCode;function yA(C,E,x){var w="";x+=E;for(var P=E;P0;)x.push(jf.apply(null,Ee(P.subarray(0,w)))),P=P.subarray(w);return"data:".concat(E,";base64,").concat(btoa(x.join("")))}function SA(C){var E=new DataView(C),x;try{var w,P,k;if(E.getUint8(0)===255&&E.getUint8(1)===216)for(var R=E.byteLength,U=2;U+1=8&&(k=Y+G)}}}if(k){var q=E.getUint16(k,w),Ne,Te;for(Te=0;Te=0?k:Un),height:Math.max(w.offsetHeight,R>=0?R:L)};this.containerData=U,zn(P,{width:U.width,height:U.height}),lt(E,ne),rn(P,ne)},initCanvas:function(){var E=this.containerData,x=this.imageData,w=this.options.viewMode,P=Math.abs(x.rotate)%180===90,k=P?x.naturalHeight:x.naturalWidth,R=P?x.naturalWidth:x.naturalHeight,U=k/R,$=E.width,Y=E.height;E.height*U>E.width?w===3?$=E.height*U:Y=E.width/U:w===3?Y=E.width/U:$=E.height*U;var z={aspectRatio:U,naturalWidth:k,naturalHeight:R,width:$,height:Y};this.canvasData=z,this.limited=w===1||w===2,this.limitCanvas(!0,!0),z.width=Math.min(Math.max(z.width,z.minWidth),z.maxWidth),z.height=Math.min(Math.max(z.height,z.minHeight),z.maxHeight),z.left=(E.width-z.width)/2,z.top=(E.height-z.height)/2,z.oldLeft=z.left,z.oldTop=z.top,this.initialCanvasData=ge({},z)},limitCanvas:function(E,x){var w=this.options,P=this.containerData,k=this.canvasData,R=this.cropBoxData,U=w.viewMode,$=k.aspectRatio,Y=this.cropped&&R;if(E){var z=Number(w.minCanvasWidth)||0,G=Number(w.minCanvasHeight)||0;U>1?(z=Math.max(z,P.width),G=Math.max(G,P.height),U===3&&(G*$>z?z=G*$:G=z/$)):U>0&&(z?z=Math.max(z,Y?R.width:0):G?G=Math.max(G,Y?R.height:0):Y&&(z=R.width,G=R.height,G*$>z?z=G*$:G=z/$));var q=Gn({aspectRatio:$,width:z,height:G});z=q.width,G=q.height,k.minWidth=z,k.minHeight=G,k.maxWidth=1/0,k.maxHeight=1/0}if(x)if(U>(Y?0:1)){var Ne=P.width-k.width,Te=P.height-k.height;k.minLeft=Math.min(0,Ne),k.minTop=Math.min(0,Te),k.maxLeft=Math.max(0,Ne),k.maxTop=Math.max(0,Te),Y&&this.limited&&(k.minLeft=Math.min(R.left,R.left+(R.width-k.width)),k.minTop=Math.min(R.top,R.top+(R.height-k.height)),k.maxLeft=R.left,k.maxTop=R.top,U===2&&(k.width>=P.width&&(k.minLeft=Math.min(0,Ne),k.maxLeft=Math.max(0,Ne)),k.height>=P.height&&(k.minTop=Math.min(0,Te),k.maxTop=Math.max(0,Te))))}else k.minLeft=-k.width,k.minTop=-k.height,k.maxLeft=P.width,k.maxTop=P.height},renderCanvas:function(E,x){var w=this.canvasData,P=this.imageData;if(x){var k=gA({width:P.naturalWidth*Math.abs(P.scaleX||1),height:P.naturalHeight*Math.abs(P.scaleY||1),degree:P.rotate||0}),R=k.width,U=k.height,$=w.width*(R/w.naturalWidth),Y=w.height*(U/w.naturalHeight);w.left-=($-w.width)/2,w.top-=(Y-w.height)/2,w.width=$,w.height=Y,w.aspectRatio=R/U,w.naturalWidth=R,w.naturalHeight=U,this.limitCanvas(!0,!1)}(w.width>w.maxWidth||w.widthw.maxHeight||w.heightx.width?k.height=k.width/w:k.width=k.height*w),this.cropBoxData=k,this.limitCropBox(!0,!0),k.width=Math.min(Math.max(k.width,k.minWidth),k.maxWidth),k.height=Math.min(Math.max(k.height,k.minHeight),k.maxHeight),k.width=Math.max(k.minWidth,k.width*P),k.height=Math.max(k.minHeight,k.height*P),k.left=x.left+(x.width-k.width)/2,k.top=x.top+(x.height-k.height)/2,k.oldLeft=k.left,k.oldTop=k.top,this.initialCropBoxData=ge({},k)},limitCropBox:function(E,x){var w=this.options,P=this.containerData,k=this.canvasData,R=this.cropBoxData,U=this.limited,$=w.aspectRatio;if(E){var Y=Number(w.minCropBoxWidth)||0,z=Number(w.minCropBoxHeight)||0,G=U?Math.min(P.width,k.width,k.width+k.left,P.width-k.left):P.width,q=U?Math.min(P.height,k.height,k.height+k.top,P.height-k.top):P.height;Y=Math.min(Y,P.width),z=Math.min(z,P.height),$&&(Y&&z?z*$>Y?z=Y/$:Y=z*$:Y?z=Y/$:z&&(Y=z*$),q*$>G?q=G/$:G=q*$),R.minWidth=Math.min(Y,G),R.minHeight=Math.min(z,q),R.maxWidth=G,R.maxHeight=q}x&&(U?(R.minLeft=Math.max(0,k.left),R.minTop=Math.max(0,k.top),R.maxLeft=Math.min(P.width,k.left+k.width)-R.width,R.maxTop=Math.min(P.height,k.top+k.height)-R.height):(R.minLeft=0,R.minTop=0,R.maxLeft=P.width-R.width,R.maxTop=P.height-R.height))},renderCropBox:function(){var E=this.options,x=this.containerData,w=this.cropBoxData;(w.width>w.maxWidth||w.widthw.maxHeight||w.height=x.width&&w.height>=x.height?N:O),zn(this.cropBox,ge({width:w.width,height:w.height},Ja({translateX:w.left,translateY:w.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),na(this.element,ft,this.getData())}},CA={initPreview:function(){var E=this.element,x=this.crossOrigin,w=this.options.preview,P=x?this.crossOriginUrl:this.url,k=E.alt||"The image to preview",R=document.createElement("img");if(x&&(R.crossOrigin=x),R.src=P,R.alt=k,this.viewBox.appendChild(R),this.viewBoxImage=R,!!w){var U=w;typeof w=="string"?U=E.ownerDocument.querySelectorAll(w):w.querySelector&&(U=[w]),this.previews=U,ie(U,function($){var Y=document.createElement("img");Ya($,Se,{width:$.offsetWidth,height:$.offsetHeight,html:$.innerHTML}),x&&(Y.crossOrigin=x),Y.src=P,Y.alt=k,Y.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',$.innerHTML="",$.appendChild(Y)})}},resetPreview:function(){ie(this.previews,function(E){var x=rl(E,Se);zn(E,{width:x.width,height:x.height}),E.innerHTML=x.html,pA(E,Se)})},preview:function(){var E=this.imageData,x=this.canvasData,w=this.cropBoxData,P=w.width,k=w.height,R=E.width,U=E.height,$=w.left-x.left-E.left,Y=w.top-x.top-E.top;!this.cropped||this.disabled||(zn(this.viewBoxImage,ge({width:R,height:U},Ja(ge({translateX:-$,translateY:-Y},E)))),ie(this.previews,function(z){var G=rl(z,Se),q=G.width,Ne=G.height,Te=q,Ge=Ne,Ie=1;P&&(Ie=q/P,Ge=k*Ie),k&&Ge>Ne&&(Ie=Ne/k,Te=P*Ie,Ge=Ne),zn(z,{width:Te,height:Ge}),zn(z.getElementsByTagName("img")[0],ge({width:R*Ie,height:U*Ie},Ja(ge({translateX:-$*Ie,translateY:-Y*Ie},E))))}))}},NA={bind:function(){var E=this.element,x=this.options,w=this.cropper;oe(x.cropstart)&&Lt(E,Kt,x.cropstart),oe(x.cropmove)&&Lt(E,Ft,x.cropmove),oe(x.cropend)&&Lt(E,nt,x.cropend),oe(x.crop)&&Lt(E,ft,x.crop),oe(x.zoom)&&Lt(E,an,x.zoom),Lt(w,Ct,this.onCropStart=this.cropStart.bind(this)),x.zoomable&&x.zoomOnWheel&&Lt(w,Yt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),x.toggleDragModeOnDblclick&&Lt(w,Xt,this.onDblclick=this.dblclick.bind(this)),Lt(E.ownerDocument,Nt,this.onCropMove=this.cropMove.bind(this)),Lt(E.ownerDocument,po,this.onCropEnd=this.cropEnd.bind(this)),x.responsive&&Lt(window,Et,this.onResize=this.resize.bind(this))},unbind:function(){var E=this.element,x=this.options,w=this.cropper;oe(x.cropstart)&&Jt(E,Kt,x.cropstart),oe(x.cropmove)&&Jt(E,Ft,x.cropmove),oe(x.cropend)&&Jt(E,nt,x.cropend),oe(x.crop)&&Jt(E,ft,x.crop),oe(x.zoom)&&Jt(E,an,x.zoom),Jt(w,Ct,this.onCropStart),x.zoomable&&x.zoomOnWheel&&Jt(w,Yt,this.onWheel,{passive:!1,capture:!0}),x.toggleDragModeOnDblclick&&Jt(w,Xt,this.onDblclick),Jt(E.ownerDocument,Nt,this.onCropMove),Jt(E.ownerDocument,po,this.onCropEnd),x.responsive&&Jt(window,Et,this.onResize)}},kA={resize:function(){if(!this.disabled){var E=this.options,x=this.container,w=this.containerData,P=x.offsetWidth/w.width,k=x.offsetHeight/w.height,R=Math.abs(P-1)>Math.abs(k-1)?P:k;if(R!==1){var U,$;E.restore&&(U=this.getCanvasData(),$=this.getCropBoxData()),this.render(),E.restore&&(this.setCanvasData(ie(U,function(Y,z){U[z]=Y*R})),this.setCropBoxData(ie($,function(Y,z){$[z]=Y*R})))}}},dblclick:function(){this.disabled||this.options.dragMode===je||this.setDragMode(uA(this.dragBox,W)?ke:Pe)},wheel:function(E){var x=this,w=Number(this.options.wheelZoomRatio)||.1,P=1;this.disabled||(E.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){x.wheeling=!1},50),E.deltaY?P=E.deltaY>0?1:-1:E.wheelDelta?P=-E.wheelDelta/120:E.detail&&(P=E.detail>0?1:-1),this.zoom(-P*w,E)))},cropStart:function(E){var x=E.buttons,w=E.button;if(!(this.disabled||(E.type==="mousedown"||E.type==="pointerdown"&&E.pointerType==="mouse")&&(J(x)&&x!==1||J(w)&&w!==0||E.ctrlKey))){var P=this.options,k=this.pointers,R;E.changedTouches?ie(E.changedTouches,function(U){k[U.identifier]=qr(U)}):k[E.pointerId||0]=qr(E),Object.keys(k).length>1&&P.zoomable&&P.zoomOnTouch?R=I:R=rl(E.target,ye),ho.test(R)&&na(this.element,Kt,{originalEvent:E,action:R})!==!1&&(E.preventDefault(),this.action=R,this.cropping=!1,R===S&&(this.cropping=!0,lt(this.dragBox,se)))}},cropMove:function(E){var x=this.action;if(!(this.disabled||!x)){var w=this.pointers;E.preventDefault(),na(this.element,Ft,{originalEvent:E,action:x})!==!1&&(E.changedTouches?ie(E.changedTouches,function(P){ge(w[P.identifier]||{},qr(P,!0))}):ge(w[E.pointerId||0]||{},qr(E,!0)),this.change(E))}},cropEnd:function(E){if(!this.disabled){var x=this.action,w=this.pointers;E.changedTouches?ie(E.changedTouches,function(P){delete w[P.identifier]}):delete w[E.pointerId||0],x&&(E.preventDefault(),Object.keys(w).length||(this.action=""),this.cropping&&(this.cropping=!1,ta(this.dragBox,se,this.cropped&&this.options.modal)),na(this.element,nt,{originalEvent:E,action:x}))}}},IA={change:function(E){var x=this.options,w=this.canvasData,P=this.containerData,k=this.cropBoxData,R=this.pointers,U=this.action,$=x.aspectRatio,Y=k.left,z=k.top,G=k.width,q=k.height,Ne=Y+G,Te=z+q,Ge=0,Ie=0,rt=P.width,ct=P.height,et=!0,En;!$&&E.shiftKey&&($=G&&q?G/q:1),this.limited&&(Ge=k.minLeft,Ie=k.minTop,rt=Ge+Math.min(P.width,w.width,w.left+w.width),ct=Ie+Math.min(P.height,w.height,w.top+w.height));var kt=R[Object.keys(R)[0]],ee={x:kt.endX-kt.startX,y:kt.endY-kt.startY},De=function(jt){switch(jt){case D:Ne+ee.x>rt&&(ee.x=rt-Ne);break;case A:Y+ee.xct&&(ee.y=ct-Te);break}};switch(U){case O:Y+=ee.x,z+=ee.y;break;case D:if(ee.x>=0&&(Ne>=rt||$&&(z<=Ie||Te>=ct))){et=!1;break}De(D),G+=ee.x,G<0&&(U=A,G=-G,Y-=G),$&&(q=G/$,z+=(k.height-q)/2);break;case M:if(ee.y<=0&&(z<=Ie||$&&(Y<=Ge||Ne>=rt))){et=!1;break}De(M),q-=ee.y,z+=ee.y,q<0&&(U=_,q=-q,z-=q),$&&(G=q*$,Y+=(k.width-G)/2);break;case A:if(ee.x<=0&&(Y<=Ge||$&&(z<=Ie||Te>=ct))){et=!1;break}De(A),G-=ee.x,Y+=ee.x,G<0&&(U=D,G=-G,Y-=G),$&&(q=G/$,z+=(k.height-q)/2);break;case _:if(ee.y>=0&&(Te>=ct||$&&(Y<=Ge||Ne>=rt))){et=!1;break}De(_),q+=ee.y,q<0&&(U=M,q=-q,z-=q),$&&(G=q*$,Y+=(k.width-G)/2);break;case K:if($){if(ee.y<=0&&(z<=Ie||Ne>=rt)){et=!1;break}De(M),q-=ee.y,z+=ee.y,G=q*$}else De(M),De(D),ee.x>=0?NeIe&&(q-=ee.y,z+=ee.y):(q-=ee.y,z+=ee.y);G<0&&q<0?(U=H,q=-q,G=-G,z-=q,Y-=G):G<0?(U=B,G=-G,Y-=G):q<0&&(U=j,q=-q,z-=q);break;case B:if($){if(ee.y<=0&&(z<=Ie||Y<=Ge)){et=!1;break}De(M),q-=ee.y,z+=ee.y,G=q*$,Y+=k.width-G}else De(M),De(A),ee.x<=0?Y>Ge?(G-=ee.x,Y+=ee.x):ee.y<=0&&z<=Ie&&(et=!1):(G-=ee.x,Y+=ee.x),ee.y<=0?z>Ie&&(q-=ee.y,z+=ee.y):(q-=ee.y,z+=ee.y);G<0&&q<0?(U=j,q=-q,G=-G,z-=q,Y-=G):G<0?(U=K,G=-G,Y-=G):q<0&&(U=H,q=-q,z-=q);break;case H:if($){if(ee.x<=0&&(Y<=Ge||Te>=ct)){et=!1;break}De(A),G-=ee.x,Y+=ee.x,q=G/$}else De(_),De(A),ee.x<=0?Y>Ge?(G-=ee.x,Y+=ee.x):ee.y>=0&&Te>=ct&&(et=!1):(G-=ee.x,Y+=ee.x),ee.y>=0?Te=0&&(Ne>=rt||Te>=ct)){et=!1;break}De(D),G+=ee.x,q=G/$}else De(_),De(D),ee.x>=0?Ne=0&&Te>=ct&&(et=!1):G+=ee.x,ee.y>=0?Te0?U=ee.y>0?j:K:ee.x<0&&(Y-=G,U=ee.y>0?H:B),ee.y<0&&(z-=q),this.cropped||(rn(this.cropBox,ne),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}et&&(k.width=G,k.height=q,k.left=Y,k.top=z,this.action=U,this.renderCropBox()),ie(R,function(st){st.startX=st.endX,st.startY=st.endY})}},DA={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&<(this.dragBox,se),rn(this.cropBox,ne),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=ge({},this.initialImageData),this.canvasData=ge({},this.initialCanvasData),this.cropBoxData=ge({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(ge(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),rn(this.dragBox,se),lt(this.cropBox,ne)),this},replace:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&E&&(this.isImg&&(this.element.src=E),x?(this.url=E,this.image.src=E,this.ready&&(this.viewBoxImage.src=E,ie(this.previews,function(w){w.getElementsByTagName("img")[0].src=E}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(E))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,rn(this.cropper,Q)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,lt(this.cropper,Q)),this},destroy:function(){var E=this.element;return E[T]?(E[T]=void 0,this.isImg&&this.replaced&&(E.src=this.originalUrl),this.uncreate(),this):this},move:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.canvasData,P=w.left,k=w.top;return this.moveTo(pe(E)?E:P+Number(E),pe(x)?x:k+Number(x))},moveTo:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.canvasData,P=!1;return E=Number(E),x=Number(x),this.ready&&!this.disabled&&this.options.movable&&(J(E)&&(w.left=E,P=!0),J(x)&&(w.top=x,P=!0),P&&this.renderCanvas(!0)),this},zoom:function(E,x){var w=this.canvasData;return E=Number(E),E<0?E=1/(1-E):E=1+E,this.zoomTo(w.width*E/w.naturalWidth,null,x)},zoomTo:function(E,x,w){var P=this.options,k=this.canvasData,R=k.width,U=k.height,$=k.naturalWidth,Y=k.naturalHeight;if(E=Number(E),E>=0&&this.ready&&!this.disabled&&P.zoomable){var z=$*E,G=Y*E;if(na(this.element,an,{ratio:E,oldRatio:R/$,originalEvent:w})===!1)return this;if(w){var q=this.pointers,Ne=Mf(this.cropper),Te=q&&Object.keys(q).length?vA(q):{pageX:w.pageX,pageY:w.pageY};k.left-=(z-R)*((Te.pageX-Ne.left-k.left)/R),k.top-=(G-U)*((Te.pageY-Ne.top-k.top)/U)}else le(x)&&J(x.x)&&J(x.y)?(k.left-=(z-R)*((x.x-k.left)/R),k.top-=(G-U)*((x.y-k.top)/U)):(k.left-=(z-R)/2,k.top-=(G-U)/2);k.width=z,k.height=G,this.renderCanvas(!0)}return this},rotate:function(E){return this.rotateTo((this.imageData.rotate||0)+Number(E))},rotateTo:function(E){return E=Number(E),J(E)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=E%360,this.renderCanvas(!0,!0)),this},scaleX:function(E){var x=this.imageData.scaleY;return this.scale(E,J(x)?x:1)},scaleY:function(E){var x=this.imageData.scaleX;return this.scale(J(x)?x:1,E)},scale:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.imageData,P=!1;return E=Number(E),x=Number(x),this.ready&&!this.disabled&&this.options.scalable&&(J(E)&&(w.scaleX=E,P=!0),J(x)&&(w.scaleY=x,P=!0),P&&this.renderCanvas(!0,!0)),this},getData:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=this.options,w=this.imageData,P=this.canvasData,k=this.cropBoxData,R;if(this.ready&&this.cropped){R={x:k.left-P.left,y:k.top-P.top,width:k.width,height:k.height};var U=w.width/w.naturalWidth;if(ie(R,function(z,G){R[G]=z/U}),E){var $=Math.round(R.y+R.height),Y=Math.round(R.x+R.width);R.x=Math.round(R.x),R.y=Math.round(R.y),R.width=Y-R.x,R.height=$-R.y}}else R={x:0,y:0,width:0,height:0};return x.rotatable&&(R.rotate=w.rotate||0),x.scalable&&(R.scaleX=w.scaleX||1,R.scaleY=w.scaleY||1),R},setData:function(E){var x=this.options,w=this.imageData,P=this.canvasData,k={};if(this.ready&&!this.disabled&&le(E)){var R=!1;x.rotatable&&J(E.rotate)&&E.rotate!==w.rotate&&(w.rotate=E.rotate,R=!0),x.scalable&&(J(E.scaleX)&&E.scaleX!==w.scaleX&&(w.scaleX=E.scaleX,R=!0),J(E.scaleY)&&E.scaleY!==w.scaleY&&(w.scaleY=E.scaleY,R=!0)),R&&this.renderCanvas(!0,!0);var U=w.width/w.naturalWidth;J(E.x)&&(k.left=E.x*U+P.left),J(E.y)&&(k.top=E.y*U+P.top),J(E.width)&&(k.width=E.width*U),J(E.height)&&(k.height=E.height*U),this.setCropBoxData(k)}return this},getContainerData:function(){return this.ready?ge({},this.containerData):{}},getImageData:function(){return this.sized?ge({},this.imageData):{}},getCanvasData:function(){var E=this.canvasData,x={};return this.ready&&ie(["left","top","width","height","naturalWidth","naturalHeight"],function(w){x[w]=E[w]}),x},setCanvasData:function(E){var x=this.canvasData,w=x.aspectRatio;return this.ready&&!this.disabled&&le(E)&&(J(E.left)&&(x.left=E.left),J(E.top)&&(x.top=E.top),J(E.width)?(x.width=E.width,x.height=E.width/w):J(E.height)&&(x.height=E.height,x.width=E.height*w),this.renderCanvas(!0)),this},getCropBoxData:function(){var E=this.cropBoxData,x;return this.ready&&this.cropped&&(x={left:E.left,top:E.top,width:E.width,height:E.height}),x||{}},setCropBoxData:function(E){var x=this.cropBoxData,w=this.options.aspectRatio,P,k;return this.ready&&this.cropped&&!this.disabled&&le(E)&&(J(E.left)&&(x.left=E.left),J(E.top)&&(x.top=E.top),J(E.width)&&E.width!==x.width&&(P=!0,x.width=E.width),J(E.height)&&E.height!==x.height&&(k=!0,x.height=E.height),w&&(P?x.height=x.width/w:k&&(x.width=x.height*w)),this.renderCropBox()),this},getCroppedCanvas:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var x=this.canvasData,w=bA(this.image,this.imageData,x,E);if(!this.cropped)return w;var P=this.getData(),k=P.x,R=P.y,U=P.width,$=P.height,Y=w.width/Math.floor(x.naturalWidth);Y!==1&&(k*=Y,R*=Y,U*=Y,$*=Y);var z=U/$,G=Gn({aspectRatio:z,width:E.maxWidth||1/0,height:E.maxHeight||1/0}),q=Gn({aspectRatio:z,width:E.minWidth||0,height:E.minHeight||0},"cover"),Ne=Gn({aspectRatio:z,width:E.width||(Y!==1?w.width:U),height:E.height||(Y!==1?w.height:$)}),Te=Ne.width,Ge=Ne.height;Te=Math.min(G.width,Math.max(q.width,Te)),Ge=Math.min(G.height,Math.max(q.height,Ge));var Ie=document.createElement("canvas"),rt=Ie.getContext("2d");Ie.width=Hn(Te),Ie.height=Hn(Ge),rt.fillStyle=E.fillColor||"transparent",rt.fillRect(0,0,Te,Ge);var ct=E.imageSmoothingEnabled,et=ct===void 0?!0:ct,En=E.imageSmoothingQuality;rt.imageSmoothingEnabled=et,En&&(rt.imageSmoothingQuality=En);var kt=w.width,ee=w.height,De=k,st=R,jt,wn,bo,yo,Wn,sn;De<=-U||De>kt?(De=0,jt=0,bo=0,Wn=0):De<=0?(bo=-De,De=0,jt=Math.min(kt,U+De),Wn=jt):De<=kt&&(bo=0,jt=Math.min(U,kt-De),Wn=jt),jt<=0||st<=-$||st>ee?(st=0,wn=0,yo=0,sn=0):st<=0?(yo=-st,st=0,wn=Math.min(ee,$+st),sn=wn):st<=ee&&(yo=0,wn=Math.min($,ee-st),sn=wn);var wt=[De,st,jt,wn];if(Wn>0&&sn>0){var Eo=Te/U;wt.push(bo*Eo,yo*Eo,Wn*Eo,sn*Eo)}return rt.drawImage.apply(rt,[w].concat(d(wt.map(function($r){return Math.floor(Hn($r))})))),Ie},setAspectRatio:function(E){var x=this.options;return!this.disabled&&!pe(E)&&(x.aspectRatio=Math.max(0,E)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(E){var x=this.options,w=this.dragBox,P=this.face;if(this.ready&&!this.disabled){var k=E===Pe,R=x.movable&&E===ke;E=k||R?E:je,x.dragMode=E,Ya(w,ye,E),ta(w,W,k),ta(w,fe,R),x.cropBoxMovable||(Ya(P,ye,E),ta(P,W,k),ta(P,fe,R))}return this}},AA=y.Cropper,Vf=function(){function C(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i(this,C),!E||!go.test(E.tagName))throw new Error("The first argument is required and must be an or element.");this.element=E,this.options=ge({},F,le(x)&&x),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return l(C,[{key:"init",value:function(){var x=this.element,w=x.tagName.toLowerCase(),P;if(!x[T]){if(x[T]=this,w==="img"){if(this.isImg=!0,P=x.getAttribute("src")||"",this.originalUrl=P,!P)return;P=x.src}else w==="canvas"&&window.HTMLCanvasElement&&(P=x.toDataURL());this.load(P)}}},{key:"load",value:function(x){var w=this;if(x){this.url=x,this.imageData={};var P=this.element,k=this.options;if(!k.rotatable&&!k.scalable&&(k.checkOrientation=!1),!k.checkOrientation||!window.ArrayBuffer){this.clone();return}if(mo.test(x)){vo.test(x)?this.read(wA(x)):this.clone();return}var R=new XMLHttpRequest,U=this.clone.bind(this);this.reloading=!0,this.xhr=R,R.onabort=U,R.onerror=U,R.ontimeout=U,R.onprogress=function(){R.getResponseHeader("content-type")!==Vn&&R.abort()},R.onload=function(){w.read(R.response)},R.onloadend=function(){w.reloading=!1,w.xhr=null},k.checkCrossOrigin&&Ff(x)&&P.crossOrigin&&(x=Lf(x)),R.open("GET",x,!0),R.responseType="arraybuffer",R.withCredentials=P.crossOrigin==="use-credentials",R.send()}}},{key:"read",value:function(x){var w=this.options,P=this.imageData,k=SA(x),R=0,U=1,$=1;if(k>1){this.url=xA(x,Vn);var Y=OA(k);R=Y.rotate,U=Y.scaleX,$=Y.scaleY}w.rotatable&&(P.rotate=R),w.scalable&&(P.scaleX=U,P.scaleY=$),this.clone()}},{key:"clone",value:function(){var x=this.element,w=this.url,P=x.crossOrigin,k=w;this.options.checkCrossOrigin&&Ff(w)&&(P||(P="anonymous"),k=Lf(w)),this.crossOrigin=P,this.crossOriginUrl=k;var R=document.createElement("img");P&&(R.crossOrigin=P),R.src=k||w,R.alt=x.alt||"The image to crop",this.image=R,R.onload=this.start.bind(this),R.onerror=this.stop.bind(this),lt(R,we),x.parentNode.insertBefore(R,x.nextSibling)}},{key:"start",value:function(){var x=this,w=this.image;w.onload=null,w.onerror=null,this.sizing=!0;var P=y.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(y.navigator.userAgent),k=function(Y,z){ge(x.imageData,{naturalWidth:Y,naturalHeight:z,aspectRatio:Y/z}),x.initialImageData=ge({},x.imageData),x.sizing=!1,x.sized=!0,x.build()};if(w.naturalWidth&&!P){k(w.naturalWidth,w.naturalHeight);return}var R=document.createElement("img"),U=document.body||document.documentElement;this.sizingImage=R,R.onload=function(){k(R.width,R.height),P||U.removeChild(R)},R.src=w.src,P||(R.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",U.appendChild(R))}},{key:"stop",value:function(){var x=this.image;x.onload=null,x.onerror=null,x.parentNode.removeChild(x),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var x=this.element,w=this.options,P=this.image,k=x.parentNode,R=document.createElement("div");R.innerHTML=V;var U=R.querySelector(".".concat(T,"-container")),$=U.querySelector(".".concat(T,"-canvas")),Y=U.querySelector(".".concat(T,"-drag-box")),z=U.querySelector(".".concat(T,"-crop-box")),G=z.querySelector(".".concat(T,"-face"));this.container=k,this.cropper=U,this.canvas=$,this.dragBox=Y,this.cropBox=z,this.viewBox=U.querySelector(".".concat(T,"-view-box")),this.face=G,$.appendChild(P),lt(x,ne),k.insertBefore(U,x.nextSibling),this.isImg||rn(P,we),this.initPreview(),this.bind(),w.initialAspectRatio=Math.max(0,w.initialAspectRatio)||NaN,w.aspectRatio=Math.max(0,w.aspectRatio)||NaN,w.viewMode=Math.max(0,Math.min(3,Math.round(w.viewMode)))||0,lt(z,ne),w.guides||lt(z.getElementsByClassName("".concat(T,"-dashed")),ne),w.center||lt(z.getElementsByClassName("".concat(T,"-center")),ne),w.background&<(U,"".concat(T,"-bg")),w.highlight||lt(G,Ze),w.cropBoxMovable&&(lt(G,fe),Ya(G,ye,O)),w.cropBoxResizable||(lt(z.getElementsByClassName("".concat(T,"-line")),ne),lt(z.getElementsByClassName("".concat(T,"-point")),ne)),this.render(),this.ready=!0,this.setDragMode(w.dragMode),w.autoCrop&&this.crop(),this.setData(w.data),oe(w.ready)&&Lt(x,$o,w.ready,{once:!0}),na(x,$o)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),rn(this.element,ne))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=AA,C}},{key:"setDefaults",value:function(x){ge(F,le(x)&&x)}}]),C}();return ge(Vf.prototype,TA,CA,NA,kA,IA,DA),Vf})})(vd);var wb=vd.exports;Object.defineProperty(md,"__esModule",{value:!0});var gd=o,xb=wb,Sb=Ob(xb);function Ob(e){return e&&e.__esModule?e:{default:e}}function Tb(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}var Cb=typeof window>"u"?[String,Array]:[String,Array,Element,NodeList],Nb=md.default={render:function(){var t=this.crossorigin||void 0;return(0,gd.h)("div",{style:this.containerStyle},[(0,gd.h)("img",{ref:"img",src:this.src,alt:this.alt||"image",style:[{"max-width":"100%"},this.imgStyle],crossorigin:t})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,initialAspectRatio:Number,aspectRatio:Number,data:Object,preview:Cb,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},crossorigin:{type:String},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props;t.containerStyle,t.src,t.alt,t.imgStyle;var n=Tb(t,["containerStyle","src","alt","imgStyle"]),a={};for(var r in n)this[r]!==void 0&&(a[r]=this[r]);this.cropper=new Sb.default(this.$refs.img,a)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.cropper.replace(t,n)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,n){return this.cropper.move(t,n)},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return this.cropper.moveTo(t,n)},relativeZoom:function(t,n){return this.cropper.zoom(t,n)},zoomTo:function(t,n){return this.cropper.zoomTo(t,n)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return this.cropper.scale(t,n)},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}};const _t=o.defineComponent({__name:"Button",props:{variant:{default:"secondary"},type:{default:"button"},href:{},loading:{type:Boolean,default:!1}},setup(e){const t={primary:"bg-blue-500 dark:bg-blue-600/50 focus:outline-blue-500",secondary:"bg-gray-600 dark:bg-gray-600/50 focus:outline-gray-600",success:"bg-green-500 dark:bg-green-600/50 focus:outline-green-500",warning:"bg-orange-400 dark:bg-orange-600/50 focus:outline-orange-400",danger:"bg-red-500 dark:bg-red-600/50 focus:outline-red-500",transparent:"bg-transparent"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.href?"a":"button"),{class:o.normalizeClass(["inline-flex items-center py-2 px-4 border-0 uppercase rounded-md shadow-sm text-xs font-medium text-white hover:shadow-md hover:opacity-75 disabled:opacity-50 focus:outline-none focus:ring-1",a.value]),href:r.href,type:r.type},{default:o.withCtx(()=>[r.loading?(o.openBlock(),o.createBlock(xo,{key:0,class:"mr-2 w-3 h-3"})):o.createCommentVNode("",!0),o.renderSlot(r.$slots,"default")]),_:3},8,["class","href","type"]))}}),kb={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Ib={class:"sm:flex sm:items-start"},Db={class:"text-left w-full space-y-6"},Ab={class:"mt-2 w-full space-y-6"},_b={class:"mt-5 sm:mt-4 px-4 sm:px-6 pb-4 sm:flex sm:flex-row-reverse sm:gap-x-2 space-y-3 sm:space-y-0"},pr=o.defineComponent({__name:"InputModal",props:{name:{},title:{},onSubmit:{type:Function}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Do,{as:"template",class:"nova-file-manager",name:t.name},{default:o.withCtx(({close:a})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-200 dark:bg-gray-900 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg w-full"},{default:o.withCtx(()=>[o.createElementVNode("form",{name:"input-modal",onSubmit:n[0]||(n[0]=o.withModifiers((...r)=>t.onSubmit&&t.onSubmit(...r),["prevent"]))},[o.createElementVNode("div",kb,[o.createElementVNode("div",Ib,[o.createElementVNode("div",Db,[o.createVNode(o.unref(nd),{as:"h3",class:"text-lg leading-6 font-medium text-gray-700 dark:text-gray-200"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.title),1)]),_:1}),o.createElementVNode("div",Ab,[o.renderSlot(t.$slots,"inputs")])])])]),o.createElementVNode("div",_b,[o.renderSlot(t.$slots,"submitButton"),o.renderSlot(t.$slots,"cancelButton",{close:a})])],32)]),_:2},1024)]),_:3},8,["name"]))}}),Rb={class:"rounded-md overflow-auto"},Pb={class:"relative rounded-md text-center overflow-hidden w-full"},Bb=o.createElementVNode("div",{class:"absolute inset-0 opacity-50 bg-stripes bg-stripes-gray-400"},null,-1),Mb=["src","alt"],Fb={class:"w-full border rounded-md space-y-2 px-3 py-2 bg-gray-100 dark:bg-gray-900 shadow-sm focus-within:ring-1 focus-within:ring-blue-600 focus-within:border-blue-600 border-gray-400 dark:border-gray-700"},Lb={class:"block text-xs font-medium text-gray-700 dark:text-gray-200",for:"name"},jb=["placeholder"],Vb={class:"mt-2 text-xs text-gray-400",id:"name-description"},bd=o.defineComponent({__name:"UploadCropModal",props:{file:{},name:{},onSubmit:{type:Function},destFile:{},destName:{}},setup(e){const t=e,n=Re(),a=o.ref(null);o.onMounted(()=>{a.value=t.destName??""});const r=o.computed(()=>URL.createObjectURL(t.destFile)),i=l=>n.closeModal({name:l}),s=()=>a.value&&t.onSubmit(a.value);return(l,c)=>(o.openBlock(),o.createBlock(pr,{name:l.name,"on-submit":s,title:l.__("NovaFileManager.uploadCropTitle")},{inputs:o.withCtx(()=>[o.createElementVNode("div",Rb,[o.createElementVNode("div",Pb,[Bb,o.createElementVNode("img",{class:"relative z-10 object-contain h-48 w-full",src:r.value,alt:l.name},null,8,Mb)])]),o.createElementVNode("div",null,[o.createElementVNode("div",Fb,[o.createElementVNode("label",Lb,o.toDisplayString(l.__("Name")),1),o.withDirectives(o.createElementVNode("input",{id:"name","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),placeholder:l.__("NovaFileManager.actions.uploadCrop"),class:"block w-full border-0 p-0 bg-gray-100 dark:bg-gray-900 placeholder-gray-400 sm:text-sm text-black dark:text-white focus:outline-none focus:ring-0",name:"name",type:"text"},null,8,jb),[[o.vModelText,a.value]])]),o.createElementVNode("p",Vb,o.toDisplayString(l.__("NovaFileManager.edit.originalName",{name:l.file.name})),1)])]),submitButton:o.withCtx(()=>[o.createVNode(_t,{disabled:!a.value,class:"w-full sm:w-auto",type:"submit",variant:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.__("NovaFileManager.actions.upload")),1)]),_:1},8,["disabled"])]),cancelButton:o.withCtx(()=>[o.createVNode(_t,{class:"w-full sm:w-auto",type:"reset",variant:"secondary",onClick:c[1]||(c[1]=d=>i(l.name))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.__("Cancel")),1)]),_:1})]),_:1},8,["name","title"]))}}),Ub={class:"w-full flex flex-col flex-col-reverse gap-2 md:flex-row justify-between items-start"},Hb={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},zb={class:"flex flex-row gap-2 justify-end flex-shrink-0"},Gb={class:"h-full max-h-[70vh]"},Wb=o.defineComponent({__name:"CropImageModal",props:{file:{},name:{},onConfirm:{type:Function}},setup(e){const t=e,n=Re(),a=o.ref(),r=o.ref(null),i=o.ref(),s=o.computed(()=>n.isOpen(Tn)),l=o.computed(()=>n.cropperOptions),c=o.computed(()=>({height:"100%",minHeight:"60vh"})),d=o.computed(()=>{const u=r.value?.getData(),m=`${Math.round(u.width)}_${Math.round(u.height)}_${Math.round(u.x)}_${Math.round(u.y)}`;return t.file?.name.replace(t.file?.extension,`${m}.${t.file?.extension}`)}),f=u=>n.openModal({name:u}),p=u=>n.closeModal({name:u}),h=()=>{r.value?.getCroppedCanvas().toBlob(u=>{u&&(i.value=new File([u],t.file.name,{type:t.file.mime}),f(Tn))})},v=u=>{if(!i.value)return;const m=new File([i.value],u,{type:t.file.mime});p(Tn),p(t.name),t.onConfirm(m)};return(u,m)=>(o.openBlock(),o.createBlock(Do,{as:"template",class:"nova-file-manager",name:u.name},{default:o.withCtx(({close:y})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4 h-[80vh] max-h-[80vh]"},{default:o.withCtx(()=>[o.createElementVNode("div",Ub,[o.createElementVNode("h2",Hb,o.toDisplayString(u.__("NovaFileManager.actions.cropImage",{image:u.file.name})),1),o.createElementVNode("div",zb,[o.createVNode(it,{ref_key:"buttonRef",ref:a,title:u.__("NovaFileManager.actions.close"),onClick:o.withModifiers(y,["prevent","stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:2},1032,["title","onClick"]),o.createVNode(it,{variant:"success",onClick:h},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})])]),o.createElementVNode("div",Gb,[o.createVNode(o.unref(Nb),o.mergeProps({ref_key:"cropper",ref:r,containerStyle:c.value,src:u.file.url,alt:u.file.name},l.value),null,16,["containerStyle","src","alt"])]),s.value?(o.openBlock(),o.createBlock(bd,{key:0,file:u.file,name:o.unref(Tn),"on-submit":v,"dest-file":i.value,"dest-name":d.value},null,8,["file","name","dest-file","dest-name"])):o.createCommentVNode("",!0)]),_:2},1024)]),_:1},8,["name"]))}});var Kb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=yd[t.format]||yd.default;window.clipboardData.setData(p,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),s.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),a=Jb("message"in t?t.message:Yb),window.prompt(a,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),l&&document.body.removeChild(l),r()}return c}var Zb=Qb;const qb=Sn(Zb);function Ed(){return{copy:t=>{qb(t)}}}function hr(e){const t=Re(),{error:n}=qf(t);return{message:o.computed(()=>n?.value?.bag?.message),invalid:o.computed(()=>n?.value?.attribute===e),errors:o.computed(()=>n?.value?.bag?.errors)}}function $b(){return{__:(t,n)=>{let a=window.Nova.config("translations")[t]?window.Nova.config("translations")[t]:t;return Object.entries(n??{}).forEach(([r,i])=>{if(i===null){console.error(`Translation '${a}' for key '${r}' contains a null replacement.`);return}i=String(i);const s=[`:${r}`,`:${r.toUpperCase()}`,`:${r.charAt(0).toUpperCase()}${r.slice(1)}`],l=[i,i.toUpperCase(),i.charAt(0).toUpperCase()+i.slice(1)];for(let c=s.length-1;c>=0;c--)a=a.replace(s[c],l[c])}),a}}}function Ta(){const e=Re(),t=o.computed(()=>e.permissions?.folder.create),n=o.computed(()=>e.permissions?.file.edit),a=o.computed(()=>e.permissions?.file.delete),r=o.computed(()=>e.permissions?.folder.delete),i=o.computed(()=>e.permissions?.file.download),s=o.computed(()=>e.permissions?.file.rename),l=o.computed(()=>e.permissions?.folder.rename),c=o.computed(()=>e.permissions?.file.unzip),d=o.computed(()=>e.permissions?.file.upload);return{showCreateFolder:t,showCropImage:n,showDeleteFile:a,showDeleteFolder:r,showDownloadFile:i,showRenameFile:s,showRenameFolder:l,showUnzipFile:c,showUploadFile:d}}function wd(){const e=Re(),t=o.computed(()=>e.usePintura),n=o.computed(()=>e.pinturaOptions);return{usePinturaEditor:t,pinturaOptions:n}}const ey={class:"sm:flex sm:items-start"},ty={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},ny={class:"mt-2"},oy={class:"text-sm text-gray-500 dark:text-gray-400"},ay={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse sm:gap-x-2 space-y-3 sm:space-y-0"},xd=o.defineComponent({__name:"ConfirmModal",props:{name:{},attribute:{},title:{},content:{},icon:{},variant:{default:"danger"}},setup(e){const t={danger:{iconBackground:"bg-red-100 dark:bg-red-800/30",iconColor:"text-red-600 dark:text-red-500"}},n=e,{invalid:a,errors:r}=hr(n.attribute),i=o.computed(()=>n.variant?t[n.variant].iconColor:""),s=o.computed(()=>n.variant?t[n.variant].iconBackground:"");return(l,c)=>(o.openBlock(),o.createBlock(Do,{as:"template",class:"nova-file-manager",name:l.name},{default:o.withCtx(({close:d})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full sm:p-6"},{default:o.withCtx(()=>[o.createElementVNode("div",ey,[o.createElementVNode("div",{class:o.normalizeClass(`${s.value} mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10`)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(l.icon),{class:o.normalizeClass(`${i.value} h-6 w-6`),"aria-hidden":"true"},null,8,["class"]))],2),o.createElementVNode("div",ty,[o.createVNode(o.unref(nd),{as:"h3",class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-100"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.title),1)]),_:1}),o.createElementVNode("div",ny,[o.createElementVNode("p",oy,o.toDisplayString(l.content),1)]),o.unref(a)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(r),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:`confirm_modal_error_${p}`,class:"mt-2 text-sm text-red-600"},o.toDisplayString(f),1))),128)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",ay,[o.renderSlot(l.$slots,"confirmButton"),o.renderSlot(l.$slots,"cancelButton",{close:d})])]),_:2},1024)]),_:3},8,["name"]))}}),Sd=o.defineComponent({__name:"DeleteFileModal",props:{isOpen:{type:Boolean,default:!1},name:{},onConfirm:{},count:{}},setup(e){const t=o.computed(()=>vl);return(n,a)=>(o.openBlock(),o.createBlock(xd,{content:n.__("NovaFileManager.deleteFileContent"),icon:t.value,"is-open":n.isOpen,name:n.name,title:n.__("NovaFileManager.deleteFileTitle",{count:n.count}),variant:"danger",attribute:"deleteFile"},{confirmButton:o.withCtx(()=>[o.createVNode(_t,{class:"w-full sm:w-auto",type:"button",variant:"danger",onClick:n.onConfirm},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.__("Delete")),1)]),_:1},8,["onClick"])]),cancelButton:o.withCtx(({close:r})=>[o.createVNode(_t,{class:"w-full sm:w-auto",type:"button",variant:"secondary",onClick:r},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.__("Cancel")),1)]),_:2},1032,["onClick"])]),_:1},8,["content","icon","is-open","name","title"]))}}),ry={class:"w-full flex flex-col flex-col-reverse gap-2 md:flex-row justify-between items-start"},sy={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},iy={class:"flex flex-row gap-2 justify-end flex-shrink-0"},ly={key:0,class:"h-full max-h-[70vh] flex flex-col items-center justify-center space-y-4"},cy={class:"text-red-500 text-xl"},dy=o.defineComponent({__name:"EditImageModal",props:{file:{},name:{},onConfirm:{type:Function}},setup(e){const t=e,n=Re(),a=o.ref(),r=o.ref(),i=o.ref(),s=o.computed(()=>n.isOpen(Tn)),l=o.ref(),c=o.ref(),{pinturaOptions:d}=wd();o.watchEffect(()=>{if(l.value&&!c.value)try{const{appendDefaultEditor:u,editorOptions:m}=window.novaFileManagerEditor;c.value=u(l.value,{...m,...d.value,src:t.file.url,enableButtonExport:!1}),c.value&&c.value.on("loaderror",({error:y})=>window.Nova.error(y.message))}catch(u){r.value=!0,console.error(u)}});const f=u=>n.openModal({name:u}),p=u=>n.closeModal({name:u}),h=()=>{c.value?.processImage().then(({dest:u})=>{i.value=u,f(Tn)})},v=u=>{if(!i.value)return;const m=new File([i.value],u,{type:t.file.mime});p(Tn),p(t.name),t.onConfirm(m)};return(u,m)=>(o.openBlock(),o.createBlock(Do,{as:"template",class:"nova-file-manager",name:u.name},{default:o.withCtx(({close:y})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4 h-[80vh] max-h-[80vh]"},{default:o.withCtx(()=>[o.createElementVNode("div",ry,[o.createElementVNode("h2",sy,o.toDisplayString(u.__("NovaFileManager.actions.editImage",{image:u.file.name})),1),o.createElementVNode("div",iy,[o.createVNode(it,{ref_key:"buttonRef",ref:a,title:u.__("NovaFileManager.actions.close"),onClick:o.withModifiers(y,["prevent","stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:2},1032,["title","onClick"]),o.createVNode(it,{variant:"success",onClick:h},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})])]),r.value?(o.openBlock(),o.createElementBlock("div",ly,[o.createVNode(o.unref(El),{class:"w-16 h-16 text-red-500"}),o.createElementVNode("p",cy,o.toDisplayString(u.__("NovaFileManager.pintura.loadingError")),1)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"h-full max-h-[70vh]",ref_key:"editorRef",ref:l},null,512)),s.value?(o.openBlock(),o.createBlock(bd,{key:2,file:u.file,name:o.unref(Tn),"on-submit":v,"dest-file":i.value},null,8,["file","name","dest-file"])):o.createCommentVNode("",!0)]),_:2},1024)]),_:1},8,["name"]))}}),uy={class:"block text-xs font-medium text-gray-700 dark:text-gray-200",for:"name"},fy=["placeholder"],py=o.defineComponent({__name:"RenameFileModal",props:{name:{},onSubmit:{type:Function},from:{}},setup(e){const t=e,{invalid:n,errors:a}=hr(Qt.RENAME_FILE),r=o.ref(null);o.onMounted(()=>r.value=t.from);const i=()=>r.value&&t.onSubmit(r.value);return(s,l)=>(o.openBlock(),o.createBlock(pr,{name:s.name,"on-submit":i,title:s.__("NovaFileManager.renameFileTitle")},{inputs:o.withCtx(()=>[o.createElementVNode("div",null,[o.createElementVNode("div",{class:o.normalizeClass(["w-full border rounded-md space-y-2 px-3 py-2 bg-gray-100 dark:bg-gray-900 shadow-sm focus-within:ring-1 focus-within:ring-blue-600 focus-within:border-blue-600",o.unref(n)?"border-red-400 dark:border-red-700":"border-gray-400 dark:border-gray-700"])},[o.createElementVNode("label",uy,o.toDisplayString(s.__("Name")),1),o.withDirectives(o.createElementVNode("input",{id:"name","onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),placeholder:s.__("Name"),class:"block w-full border-0 p-0 bg-gray-100 dark:bg-gray-900 placeholder-gray-400 sm:text-sm text-black dark:text-white focus:outline-none focus:ring-0",name:"name",type:"text"},null,8,fy),[[o.vModelText,r.value]])],2),o.unref(n)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(a),(c,d)=>(o.openBlock(),o.createElementBlock("p",{key:`rename_file_modal_error_${d}`,class:"mt-2 text-sm text-red-600"},o.toDisplayString(c),1))),128)):o.createCommentVNode("",!0)])]),submitButton:o.withCtx(()=>[o.createVNode(_t,{disabled:r.value===s.from,class:"w-full sm:w-auto",type:"submit",variant:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.__("Submit")),1)]),_:1},8,["disabled"])]),cancelButton:o.withCtx(({close:c})=>[o.createVNode(_t,{class:"w-full sm:w-auto",type:"button",variant:"secondary",onClick:c},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.__("Cancel")),1)]),_:2},1032,["onClick"])]),_:1},8,["name","title"]))}}),hy={class:"w-full flex flex-col flex-col-reverse gap-y-2 md:flex-row justify-between items-start"},my={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},vy={class:"flex flex-row gap-2 justify-end flex-shrink-0"},gy={class:"overflow-hidden flex flex-col md:flex-row gap-4 w-full"},by={class:"block relative w-full md:w-4/6 overflow-hidden rounded-lg bg-gray-500/10 flex items-center justify-center"},yy={key:1,class:"w-full max-w-screen max-h-[80vh] relative",controls:"controls"},Ey=["src"],wy=["src"],xy={class:"w-full md:w-2/6"},Sy={class:"font-medium text-gray-800 dark:text-gray-100"},Oy={class:"mt-2 divide-y divide-gray-200 dark:divide-gray-800/40 border-t border-b border-gray-300 dark:border-gray-800/70"},Ty={class:"flex justify-between py-3 text-sm font-medium"},Cy={class:"text-gray-500"},Ny={class:"text-gray-400 dark:text-gray-600"},ky={class:"flex justify-between py-3 text-sm font-medium"},Iy={class:"text-gray-500"},Dy={class:"text-gray-400 dark:text-gray-600"},Ay={class:"flex justify-between py-3 text-sm font-medium"},_y={class:"text-gray-500"},Ry={class:"text-gray-400 dark:text-gray-600"},Py={class:"text-gray-500"},By={class:"text-gray-400 dark:text-gray-600"},$s=o.defineComponent({__name:"PreviewModal",props:{file:{},readOnly:{type:Boolean,default:!1}},setup(e){const t=e,n=Re(),{copy:a}=Ed(),{showCropImage:r,showDeleteFile:i,showDownloadFile:s,showRenameFile:l,showUnzipFile:c}=Ta(),{usePinturaEditor:d}=wd(),f=o.ref(),p=o.computed(()=>n.isOpen(`crop-image-${t.file?.id}`)),h=o.computed(()=>n.isOpen(`edit-image-${t.file?.id}`)),v=o.computed(()=>n.isField),u=o.computed(()=>n.downloadUrl(t.file)),m=I=>n.openModal({name:I}),y=I=>n.renameFile({id:t.file.id,from:t.file.path,to:I}),b=()=>n.deleteFiles({paths:[t.file.path]}),g=I=>n.unzipFile({path:I}),T=()=>{n.selectFile({file:t.file}),n.confirm()},O=()=>{n.preview=void 0,n.fixPortal()},S=I=>{O(),m(la),n.upload({files:[I]})},N=I=>{a(I.url),window.Nova.success("OK!")};return(I,D)=>(o.openBlock(),o.createBlock(Do,{as:"template",class:"nova-file-manager",name:o.unref(ps),"initial-focus-ref":f.value},{default:o.withCtx(()=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4"},{default:o.withCtx(()=>[o.createElementVNode("div",hy,[o.createElementVNode("h2",my,o.toDisplayString(I.file?.name),1),o.createElementVNode("div",vy,[!I.readOnly&&o.unref(i)?(o.openBlock(),o.createBlock(it,{key:0,variant:"danger",onClick:D[0]||(D[0]=A=>m(`${o.unref(Ut).DELETE_FILES}-${I.file?.id}`)),title:I.__("NovaFileManager.actions.delete")},{default:o.withCtx(()=>[o.createVNode(o.unref(bl),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(r)&&!o.unref(d)&&I.file?.type==="image"?(o.openBlock(),o.createBlock(it,{key:1,variant:"secondary",onClick:D[1]||(D[1]=A=>m(`crop-image-${I.file?.id}`)),title:I.__("NovaFileManager.actions.cropImage",{image:I.file?.name})},{default:o.withCtx(()=>[o.createVNode(hd,{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(r)&&o.unref(d)&&I.file?.type==="image"?(o.openBlock(),o.createBlock(it,{key:2,variant:"secondary",onClick:D[2]||(D[2]=A=>m(`edit-image-${I.file?.id}`)),title:I.__("NovaFileManager.actions.editImage",{image:I.file?.name})},{default:o.withCtx(()=>[o.createVNode(hd,{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(c)&&I.file?.type==="zip"?(o.openBlock(),o.createBlock(it,{key:3,variant:"secondary",onClick:D[3]||(D[3]=A=>g(I.file.path)),title:I.__("NovaFileManager.actions.unzip")},{default:o.withCtx(()=>[o.createVNode(o.unref($f),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),o.createVNode(it,{onClick:D[4]||(D[4]=A=>N(I.file)),variant:"secondary",title:I.__("NovaFileManager.actions.copy")},{default:o.withCtx(()=>[o.createVNode(o.unref(tp),{class:"w-5 h-5"})]),_:1},8,["title"]),o.unref(s)?(o.openBlock(),o.createBlock(it,{key:4,"as-anchor":!0,download:I.file?.name,href:u.value,variant:"secondary",title:I.__("NovaFileManager.actions.download")},{default:o.withCtx(()=>[o.createVNode(o.unref(np),{class:"w-5 h-5"})]),_:1},8,["download","href","title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(l)?(o.openBlock(),o.createBlock(it,{key:5,variant:"secondary",onClick:D[5]||(D[5]=A=>m(`rename-file-${I.file?.id}`)),title:I.__("NovaFileManager.actions.rename")},{default:o.withCtx(()=>[o.createVNode(o.unref(lp),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),o.createVNode(it,{ref_key:"buttonRef",ref:f,onClick:O,title:I.__("NovaFileManager.actions.close")},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:1},8,["title"]),v.value?(o.openBlock(),o.createBlock(it,{key:6,variant:"success",onClick:T},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",gy,[o.createElementVNode("div",by,[I.file?.type==="image"?(o.openBlock(),o.createBlock(wl,{key:0,src:I.file.url,"is-thumbnail":!1,"full-width":!1,class:"relative",alt:I.file.name},null,8,["src","alt"])):I.file?.type==="video"?(o.openBlock(),o.createElementBlock("video",yy,[o.createElementVNode("source",{src:I.file?.url},null,8,Ey),o.createTextVNode(" Sorry, your browser doesn't support embedded videos. ")])):I.file?.type==="pdf"?(o.openBlock(),o.createElementBlock("embed",{key:2,src:I.file?.url,type:"application/pdf",class:"w-full max-w-screen h-[80vh]"},null,8,wy)):(o.openBlock(),o.createBlock(o.unref(ra),{key:3,class:"h-40 w-40 text-gray-500 m-12"}))]),o.createElementVNode("div",xy,[o.createElementVNode("div",null,[o.createElementVNode("h3",Sy,o.toDisplayString(I.__("NovaFileManager.preview.information")),1),o.createElementVNode("dl",Oy,[o.createElementVNode("div",Ty,[o.createElementVNode("dt",Cy,o.toDisplayString(I.__("NovaFileManager.meta.size")),1),o.createElementVNode("dd",Ny,o.toDisplayString(I.file?.size),1)]),o.createElementVNode("div",ky,[o.createElementVNode("dt",Iy,o.toDisplayString(I.__("NovaFileManager.meta.mime")),1),o.createElementVNode("dd",Dy,o.toDisplayString(I.file?.mime),1)]),o.createElementVNode("div",Ay,[o.createElementVNode("dt",_y,o.toDisplayString(I.__("NovaFileManager.meta.lastModifiedAt")),1),o.createElementVNode("dd",Ry,o.toDisplayString(I.file?.lastModifiedAt),1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.file?.meta,(A,_)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[A?(o.openBlock(),o.createElementBlock("div",{key:_,class:"flex justify-between py-3 text-sm font-medium"},[o.createElementVNode("dt",Py,o.toDisplayString(I.__(`NovaFileManager.meta.${_}`)),1),o.createElementVNode("dd",By,o.toDisplayString(A),1)])):o.createCommentVNode("",!0)],64))),256))])])])]),o.unref(i)?(o.openBlock(),o.createBlock(Sd,{key:0,name:`${o.unref(Ut).DELETE_FILES}-${I.file?.id}`,"on-confirm":b},null,8,["name"])):o.createCommentVNode("",!0),o.unref(r)&&p.value?(o.openBlock(),o.createBlock(Wb,{key:1,name:`crop-image-${I.file?.id}`,file:I.file,"on-confirm":S},null,8,["name","file"])):o.createCommentVNode("",!0),o.unref(r)&&h.value?(o.openBlock(),o.createBlock(dy,{key:2,name:`edit-image-${I.file?.id}`,file:I.file,"on-confirm":S},null,8,["name","file"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(py,{key:3,name:`rename-file-${I.file?.id}`,from:I.file?.name,"on-submit":y},null,8,["name","from"])):o.createCommentVNode("",!0)]),_:1})]),_:1},8,["name","initial-focus-ref"]))}}),My={class:"nova-file-manager"},Fy={class:"grid grid-cols-2 md:grid-cols-4 gap-2 mb-2 w-full",role:"group"},Ly=o.defineComponent({__name:"DetailField",props:{field:{},index:{}},setup(e){const t=o.ref(void 0),n=Re(),{copy:a}=Ed(),r=o.computed(()=>n.dark),i=o.computed(()=>n.preview),s=l=>{t.value=l,a(l.url),setTimeout(()=>{t.value=void 0},1e3)};return o.onMounted(()=>n.syncDarkMode()),(l,c)=>{const d=o.resolveComponent("PanelItem");return o.openBlock(),o.createBlock(d,{field:l.field,index:l.index},o.createSlots({_:2},[l.field.value?{name:"value",fn:o.withCtx(()=>[o.createElementVNode("div",My,[o.createElementVNode("div",{class:o.normalizeClass({dark:r.value})},[o.createElementVNode("ul",Fy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.field.value,f=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:f.id},[o.createVNode(xc,{field:l.field,file:f,attribute:l.field.attribute,detail:!0,"on-copy":s},null,8,["field","file","attribute"]),i.value&&i.value.id===f.id?(o.openBlock(),o.createBlock($s,{key:0,file:f,"read-only":!0},null,8,["file"])):o.createCommentVNode("",!0)],64))),128))])],2)])]),key:"0"}:void 0]),1032,["field","index"])}}});var Od={exports:{}};/**! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=typeof window<"u"&&typeof window.document<"u",y=m?window:{},b=m&&y.document.documentElement?"ontouchstart"in y.document.documentElement:!1,g=m?"PointerEvent"in y:!1,T="cropper",O="all",S="crop",N="move",I="zoom",_="e",A="w",D="s",M="n",K="ne",B="nw",j="se",H="sw",W="".concat(T,"-crop"),Q="".concat(T,"-disabled"),ne="".concat(T,"-hidden"),we="".concat(T,"-hide"),Ze="".concat(T,"-invisible"),se="".concat(T,"-modal"),fe="".concat(T,"-move"),ye="".concat(T,"Action"),Se="".concat(T,"Preview"),Pe="crop",ke="move",je="none",ft="crop",nt="cropend",Ft="cropmove",Kt="cropstart",Xt="dblclick",ot=b?"touchstart":"mousedown",at=b?"touchmove":"mousemove",yn=b?"touchend touchcancel":"mouseup",Ct=g?"pointerdown":ot,Nt=g?"pointermove":at,po=g?"pointerup pointercancel":yn,$o="ready",Et="resize",Yt="wheel",an="zoom",Vn="image/jpeg",ho=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,mo=/^data:/,vo=/^data:image\/jpeg;base64,/,go=/^img|canvas$/i,Un=200,L=100,F={viewMode:0,dragMode:Pe,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Un,minContainerHeight:L,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},V='
',Z=Number.isNaN||y.isNaN;function J(C){return typeof C=="number"&&!Z(C)}var de=function(E){return E>0&&E<1/0};function pe(C){return typeof C>"u"}function ve(C){return r(C)==="object"&&C!==null}var Xe=Object.prototype.hasOwnProperty;function le(C){if(!ve(C))return!1;try{var E=C.constructor,x=E.prototype;return E&&x&&Xe.call(x,"isPrototypeOf")}catch{return!1}}function oe(C){return typeof C=="function"}var ce=Array.prototype.slice;function Ee(C){return Array.from?Array.from(C):ce.call(C)}function ie(C,E){return C&&oe(E)&&(Array.isArray(C)||J(C.length)?Ee(C).forEach(function(x,w){E.call(C,x,w,C)}):ve(C)&&Object.keys(C).forEach(function(x){E.call(C,C[x],x,C)})),C}var ge=Object.assign||function(E){for(var x=arguments.length,w=new Array(x>1?x-1:0),P=1;P0&&w.forEach(function(k){ve(k)&&Object.keys(k).forEach(function(R){E[R]=k[R]})}),E},Xa=/\.\d*(?:0|9){12}\d*$/;function Hn(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Xa.test(C)?Math.round(C*E)/E:C}var ea=/^width|height|left|top|marginLeft|marginTop$/;function zn(C,E){var x=C.style;ie(E,function(w,P){ea.test(P)&&J(w)&&(w="".concat(w,"px")),x[P]=w})}function uA(C,E){return C.classList?C.classList.contains(E):C.className.indexOf(E)>-1}function lt(C,E){if(E){if(J(C.length)){ie(C,function(w){lt(w,E)});return}if(C.classList){C.classList.add(E);return}var x=C.className.trim();x?x.indexOf(E)<0&&(C.className="".concat(x," ").concat(E)):C.className=E}}function rn(C,E){if(E){if(J(C.length)){ie(C,function(x){rn(x,E)});return}if(C.classList){C.classList.remove(E);return}C.className.indexOf(E)>=0&&(C.className=C.className.replace(E,""))}}function ta(C,E,x){if(E){if(J(C.length)){ie(C,function(w){ta(w,E,x)});return}x?lt(C,E):rn(C,E)}}var fA=/([a-z\d])([A-Z])/g;function al(C){return C.replace(fA,"$1-$2").toLowerCase()}function rl(C,E){return ve(C[E])?C[E]:C.dataset?C.dataset[E]:C.getAttribute("data-".concat(al(E)))}function Ya(C,E,x){ve(x)?C[E]=x:C.dataset?C.dataset[E]=x:C.setAttribute("data-".concat(al(E)),x)}function pA(C,E){if(ve(C[E]))try{delete C[E]}catch{C[E]=void 0}else if(C.dataset)try{delete C.dataset[E]}catch{C.dataset[E]=void 0}else C.removeAttribute("data-".concat(al(E)))}var Pf=/\s\s*/,Bf=function(){var C=!1;if(m){var E=!1,x=function(){},w=Object.defineProperty({},"once",{get:function(){return C=!0,E},set:function(k){E=k}});y.addEventListener("test",x,w),y.removeEventListener("test",x,w)}return C}();function Jt(C,E,x){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},P=x;E.trim().split(Pf).forEach(function(k){if(!Bf){var R=C.listeners;R&&R[k]&&R[k][x]&&(P=R[k][x],delete R[k][x],Object.keys(R[k]).length===0&&delete R[k],Object.keys(R).length===0&&delete C.listeners)}C.removeEventListener(k,P,w)})}function Lt(C,E,x){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},P=x;E.trim().split(Pf).forEach(function(k){if(w.once&&!Bf){var R=C.listeners,U=R===void 0?{}:R;P=function(){delete U[k][x],C.removeEventListener(k,P,w);for(var Y=arguments.length,z=new Array(Y),G=0;GMath.abs(x)&&(x=q)})}),x}function qr(C,E){var x=C.pageX,w=C.pageY,P={endX:x,endY:w};return E?P:a({startX:x,startY:w},P)}function vA(C){var E=0,x=0,w=0;return ie(C,function(P){var k=P.startX,R=P.startY;E+=k,x+=R,w+=1}),E/=w,x/=w,{pageX:E,pageY:x}}function Gn(C){var E=C.aspectRatio,x=C.height,w=C.width,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",k=de(w),R=de(x);if(k&&R){var U=x*E;P==="contain"&&U>w||P==="cover"&&U90?{width:$,height:U}:{width:U,height:$}}function bA(C,E,x,w){var P=E.aspectRatio,k=E.naturalWidth,R=E.naturalHeight,U=E.rotate,$=U===void 0?0:U,Y=E.scaleX,z=Y===void 0?1:Y,G=E.scaleY,q=G===void 0?1:G,Ne=x.aspectRatio,Te=x.naturalWidth,Ge=x.naturalHeight,Ie=w.fillColor,rt=Ie===void 0?"transparent":Ie,ct=w.imageSmoothingEnabled,et=ct===void 0?!0:ct,En=w.imageSmoothingQuality,kt=En===void 0?"low":En,ee=w.maxWidth,_e=ee===void 0?1/0:ee,st=w.maxHeight,jt=st===void 0?1/0:st,wn=w.minWidth,bo=wn===void 0?0:wn,yo=w.minHeight,Wn=yo===void 0?0:yo,sn=document.createElement("canvas"),wt=sn.getContext("2d"),Eo=Gn({aspectRatio:Ne,width:_e,height:jt}),$r=Gn({aspectRatio:Ne,width:bo,height:Wn},"cover"),il=Math.min(Eo.width,Math.max($r.width,Te)),ll=Math.min(Eo.height,Math.max($r.height,Ge)),Uf=Gn({aspectRatio:P,width:_e,height:jt}),Hf=Gn({aspectRatio:P,width:bo,height:Wn},"cover"),zf=Math.min(Uf.width,Math.max(Hf.width,k)),Gf=Math.min(Uf.height,Math.max(Hf.height,R)),DA=[-zf/2,-Gf/2,zf,Gf];return sn.width=Hn(il),sn.height=Hn(ll),wt.fillStyle=rt,wt.fillRect(0,0,il,ll),wt.save(),wt.translate(il/2,ll/2),wt.rotate($*Math.PI/180),wt.scale(z,q),wt.imageSmoothingEnabled=et,wt.imageSmoothingQuality=kt,wt.drawImage.apply(wt,[C].concat(d(DA.map(function(RA){return Math.floor(Hn(RA))})))),wt.restore(),sn}var jf=String.fromCharCode;function yA(C,E,x){var w="";x+=E;for(var P=E;P0;)x.push(jf.apply(null,Ee(P.subarray(0,w)))),P=P.subarray(w);return"data:".concat(E,";base64,").concat(btoa(x.join("")))}function SA(C){var E=new DataView(C),x;try{var w,P,k;if(E.getUint8(0)===255&&E.getUint8(1)===216)for(var R=E.byteLength,U=2;U+1=8&&(k=Y+G)}}}if(k){var q=E.getUint16(k,w),Ne,Te;for(Te=0;Te=0?k:Un),height:Math.max(w.offsetHeight,R>=0?R:L)};this.containerData=U,zn(P,{width:U.width,height:U.height}),lt(E,ne),rn(P,ne)},initCanvas:function(){var E=this.containerData,x=this.imageData,w=this.options.viewMode,P=Math.abs(x.rotate)%180===90,k=P?x.naturalHeight:x.naturalWidth,R=P?x.naturalWidth:x.naturalHeight,U=k/R,$=E.width,Y=E.height;E.height*U>E.width?w===3?$=E.height*U:Y=E.width/U:w===3?Y=E.width/U:$=E.height*U;var z={aspectRatio:U,naturalWidth:k,naturalHeight:R,width:$,height:Y};this.canvasData=z,this.limited=w===1||w===2,this.limitCanvas(!0,!0),z.width=Math.min(Math.max(z.width,z.minWidth),z.maxWidth),z.height=Math.min(Math.max(z.height,z.minHeight),z.maxHeight),z.left=(E.width-z.width)/2,z.top=(E.height-z.height)/2,z.oldLeft=z.left,z.oldTop=z.top,this.initialCanvasData=ge({},z)},limitCanvas:function(E,x){var w=this.options,P=this.containerData,k=this.canvasData,R=this.cropBoxData,U=w.viewMode,$=k.aspectRatio,Y=this.cropped&&R;if(E){var z=Number(w.minCanvasWidth)||0,G=Number(w.minCanvasHeight)||0;U>1?(z=Math.max(z,P.width),G=Math.max(G,P.height),U===3&&(G*$>z?z=G*$:G=z/$)):U>0&&(z?z=Math.max(z,Y?R.width:0):G?G=Math.max(G,Y?R.height:0):Y&&(z=R.width,G=R.height,G*$>z?z=G*$:G=z/$));var q=Gn({aspectRatio:$,width:z,height:G});z=q.width,G=q.height,k.minWidth=z,k.minHeight=G,k.maxWidth=1/0,k.maxHeight=1/0}if(x)if(U>(Y?0:1)){var Ne=P.width-k.width,Te=P.height-k.height;k.minLeft=Math.min(0,Ne),k.minTop=Math.min(0,Te),k.maxLeft=Math.max(0,Ne),k.maxTop=Math.max(0,Te),Y&&this.limited&&(k.minLeft=Math.min(R.left,R.left+(R.width-k.width)),k.minTop=Math.min(R.top,R.top+(R.height-k.height)),k.maxLeft=R.left,k.maxTop=R.top,U===2&&(k.width>=P.width&&(k.minLeft=Math.min(0,Ne),k.maxLeft=Math.max(0,Ne)),k.height>=P.height&&(k.minTop=Math.min(0,Te),k.maxTop=Math.max(0,Te))))}else k.minLeft=-k.width,k.minTop=-k.height,k.maxLeft=P.width,k.maxTop=P.height},renderCanvas:function(E,x){var w=this.canvasData,P=this.imageData;if(x){var k=gA({width:P.naturalWidth*Math.abs(P.scaleX||1),height:P.naturalHeight*Math.abs(P.scaleY||1),degree:P.rotate||0}),R=k.width,U=k.height,$=w.width*(R/w.naturalWidth),Y=w.height*(U/w.naturalHeight);w.left-=($-w.width)/2,w.top-=(Y-w.height)/2,w.width=$,w.height=Y,w.aspectRatio=R/U,w.naturalWidth=R,w.naturalHeight=U,this.limitCanvas(!0,!1)}(w.width>w.maxWidth||w.widthw.maxHeight||w.heightx.width?k.height=k.width/w:k.width=k.height*w),this.cropBoxData=k,this.limitCropBox(!0,!0),k.width=Math.min(Math.max(k.width,k.minWidth),k.maxWidth),k.height=Math.min(Math.max(k.height,k.minHeight),k.maxHeight),k.width=Math.max(k.minWidth,k.width*P),k.height=Math.max(k.minHeight,k.height*P),k.left=x.left+(x.width-k.width)/2,k.top=x.top+(x.height-k.height)/2,k.oldLeft=k.left,k.oldTop=k.top,this.initialCropBoxData=ge({},k)},limitCropBox:function(E,x){var w=this.options,P=this.containerData,k=this.canvasData,R=this.cropBoxData,U=this.limited,$=w.aspectRatio;if(E){var Y=Number(w.minCropBoxWidth)||0,z=Number(w.minCropBoxHeight)||0,G=U?Math.min(P.width,k.width,k.width+k.left,P.width-k.left):P.width,q=U?Math.min(P.height,k.height,k.height+k.top,P.height-k.top):P.height;Y=Math.min(Y,P.width),z=Math.min(z,P.height),$&&(Y&&z?z*$>Y?z=Y/$:Y=z*$:Y?z=Y/$:z&&(Y=z*$),q*$>G?q=G/$:G=q*$),R.minWidth=Math.min(Y,G),R.minHeight=Math.min(z,q),R.maxWidth=G,R.maxHeight=q}x&&(U?(R.minLeft=Math.max(0,k.left),R.minTop=Math.max(0,k.top),R.maxLeft=Math.min(P.width,k.left+k.width)-R.width,R.maxTop=Math.min(P.height,k.top+k.height)-R.height):(R.minLeft=0,R.minTop=0,R.maxLeft=P.width-R.width,R.maxTop=P.height-R.height))},renderCropBox:function(){var E=this.options,x=this.containerData,w=this.cropBoxData;(w.width>w.maxWidth||w.widthw.maxHeight||w.height=x.width&&w.height>=x.height?N:O),zn(this.cropBox,ge({width:w.width,height:w.height},Ja({translateX:w.left,translateY:w.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),na(this.element,ft,this.getData())}},CA={initPreview:function(){var E=this.element,x=this.crossOrigin,w=this.options.preview,P=x?this.crossOriginUrl:this.url,k=E.alt||"The image to preview",R=document.createElement("img");if(x&&(R.crossOrigin=x),R.src=P,R.alt=k,this.viewBox.appendChild(R),this.viewBoxImage=R,!!w){var U=w;typeof w=="string"?U=E.ownerDocument.querySelectorAll(w):w.querySelector&&(U=[w]),this.previews=U,ie(U,function($){var Y=document.createElement("img");Ya($,Se,{width:$.offsetWidth,height:$.offsetHeight,html:$.innerHTML}),x&&(Y.crossOrigin=x),Y.src=P,Y.alt=k,Y.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',$.innerHTML="",$.appendChild(Y)})}},resetPreview:function(){ie(this.previews,function(E){var x=rl(E,Se);zn(E,{width:x.width,height:x.height}),E.innerHTML=x.html,pA(E,Se)})},preview:function(){var E=this.imageData,x=this.canvasData,w=this.cropBoxData,P=w.width,k=w.height,R=E.width,U=E.height,$=w.left-x.left-E.left,Y=w.top-x.top-E.top;!this.cropped||this.disabled||(zn(this.viewBoxImage,ge({width:R,height:U},Ja(ge({translateX:-$,translateY:-Y},E)))),ie(this.previews,function(z){var G=rl(z,Se),q=G.width,Ne=G.height,Te=q,Ge=Ne,Ie=1;P&&(Ie=q/P,Ge=k*Ie),k&&Ge>Ne&&(Ie=Ne/k,Te=P*Ie,Ge=Ne),zn(z,{width:Te,height:Ge}),zn(z.getElementsByTagName("img")[0],ge({width:R*Ie,height:U*Ie},Ja(ge({translateX:-$*Ie,translateY:-Y*Ie},E))))}))}},NA={bind:function(){var E=this.element,x=this.options,w=this.cropper;oe(x.cropstart)&&Lt(E,Kt,x.cropstart),oe(x.cropmove)&&Lt(E,Ft,x.cropmove),oe(x.cropend)&&Lt(E,nt,x.cropend),oe(x.crop)&&Lt(E,ft,x.crop),oe(x.zoom)&&Lt(E,an,x.zoom),Lt(w,Ct,this.onCropStart=this.cropStart.bind(this)),x.zoomable&&x.zoomOnWheel&&Lt(w,Yt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),x.toggleDragModeOnDblclick&&Lt(w,Xt,this.onDblclick=this.dblclick.bind(this)),Lt(E.ownerDocument,Nt,this.onCropMove=this.cropMove.bind(this)),Lt(E.ownerDocument,po,this.onCropEnd=this.cropEnd.bind(this)),x.responsive&&Lt(window,Et,this.onResize=this.resize.bind(this))},unbind:function(){var E=this.element,x=this.options,w=this.cropper;oe(x.cropstart)&&Jt(E,Kt,x.cropstart),oe(x.cropmove)&&Jt(E,Ft,x.cropmove),oe(x.cropend)&&Jt(E,nt,x.cropend),oe(x.crop)&&Jt(E,ft,x.crop),oe(x.zoom)&&Jt(E,an,x.zoom),Jt(w,Ct,this.onCropStart),x.zoomable&&x.zoomOnWheel&&Jt(w,Yt,this.onWheel,{passive:!1,capture:!0}),x.toggleDragModeOnDblclick&&Jt(w,Xt,this.onDblclick),Jt(E.ownerDocument,Nt,this.onCropMove),Jt(E.ownerDocument,po,this.onCropEnd),x.responsive&&Jt(window,Et,this.onResize)}},kA={resize:function(){if(!this.disabled){var E=this.options,x=this.container,w=this.containerData,P=x.offsetWidth/w.width,k=x.offsetHeight/w.height,R=Math.abs(P-1)>Math.abs(k-1)?P:k;if(R!==1){var U,$;E.restore&&(U=this.getCanvasData(),$=this.getCropBoxData()),this.render(),E.restore&&(this.setCanvasData(ie(U,function(Y,z){U[z]=Y*R})),this.setCropBoxData(ie($,function(Y,z){$[z]=Y*R})))}}},dblclick:function(){this.disabled||this.options.dragMode===je||this.setDragMode(uA(this.dragBox,W)?ke:Pe)},wheel:function(E){var x=this,w=Number(this.options.wheelZoomRatio)||.1,P=1;this.disabled||(E.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){x.wheeling=!1},50),E.deltaY?P=E.deltaY>0?1:-1:E.wheelDelta?P=-E.wheelDelta/120:E.detail&&(P=E.detail>0?1:-1),this.zoom(-P*w,E)))},cropStart:function(E){var x=E.buttons,w=E.button;if(!(this.disabled||(E.type==="mousedown"||E.type==="pointerdown"&&E.pointerType==="mouse")&&(J(x)&&x!==1||J(w)&&w!==0||E.ctrlKey))){var P=this.options,k=this.pointers,R;E.changedTouches?ie(E.changedTouches,function(U){k[U.identifier]=qr(U)}):k[E.pointerId||0]=qr(E),Object.keys(k).length>1&&P.zoomable&&P.zoomOnTouch?R=I:R=rl(E.target,ye),ho.test(R)&&na(this.element,Kt,{originalEvent:E,action:R})!==!1&&(E.preventDefault(),this.action=R,this.cropping=!1,R===S&&(this.cropping=!0,lt(this.dragBox,se)))}},cropMove:function(E){var x=this.action;if(!(this.disabled||!x)){var w=this.pointers;E.preventDefault(),na(this.element,Ft,{originalEvent:E,action:x})!==!1&&(E.changedTouches?ie(E.changedTouches,function(P){ge(w[P.identifier]||{},qr(P,!0))}):ge(w[E.pointerId||0]||{},qr(E,!0)),this.change(E))}},cropEnd:function(E){if(!this.disabled){var x=this.action,w=this.pointers;E.changedTouches?ie(E.changedTouches,function(P){delete w[P.identifier]}):delete w[E.pointerId||0],x&&(E.preventDefault(),Object.keys(w).length||(this.action=""),this.cropping&&(this.cropping=!1,ta(this.dragBox,se,this.cropped&&this.options.modal)),na(this.element,nt,{originalEvent:E,action:x}))}}},IA={change:function(E){var x=this.options,w=this.canvasData,P=this.containerData,k=this.cropBoxData,R=this.pointers,U=this.action,$=x.aspectRatio,Y=k.left,z=k.top,G=k.width,q=k.height,Ne=Y+G,Te=z+q,Ge=0,Ie=0,rt=P.width,ct=P.height,et=!0,En;!$&&E.shiftKey&&($=G&&q?G/q:1),this.limited&&(Ge=k.minLeft,Ie=k.minTop,rt=Ge+Math.min(P.width,w.width,w.left+w.width),ct=Ie+Math.min(P.height,w.height,w.top+w.height));var kt=R[Object.keys(R)[0]],ee={x:kt.endX-kt.startX,y:kt.endY-kt.startY},_e=function(jt){switch(jt){case _:Ne+ee.x>rt&&(ee.x=rt-Ne);break;case A:Y+ee.xct&&(ee.y=ct-Te);break}};switch(U){case O:Y+=ee.x,z+=ee.y;break;case _:if(ee.x>=0&&(Ne>=rt||$&&(z<=Ie||Te>=ct))){et=!1;break}_e(_),G+=ee.x,G<0&&(U=A,G=-G,Y-=G),$&&(q=G/$,z+=(k.height-q)/2);break;case M:if(ee.y<=0&&(z<=Ie||$&&(Y<=Ge||Ne>=rt))){et=!1;break}_e(M),q-=ee.y,z+=ee.y,q<0&&(U=D,q=-q,z-=q),$&&(G=q*$,Y+=(k.width-G)/2);break;case A:if(ee.x<=0&&(Y<=Ge||$&&(z<=Ie||Te>=ct))){et=!1;break}_e(A),G-=ee.x,Y+=ee.x,G<0&&(U=_,G=-G,Y-=G),$&&(q=G/$,z+=(k.height-q)/2);break;case D:if(ee.y>=0&&(Te>=ct||$&&(Y<=Ge||Ne>=rt))){et=!1;break}_e(D),q+=ee.y,q<0&&(U=M,q=-q,z-=q),$&&(G=q*$,Y+=(k.width-G)/2);break;case K:if($){if(ee.y<=0&&(z<=Ie||Ne>=rt)){et=!1;break}_e(M),q-=ee.y,z+=ee.y,G=q*$}else _e(M),_e(_),ee.x>=0?NeIe&&(q-=ee.y,z+=ee.y):(q-=ee.y,z+=ee.y);G<0&&q<0?(U=H,q=-q,G=-G,z-=q,Y-=G):G<0?(U=B,G=-G,Y-=G):q<0&&(U=j,q=-q,z-=q);break;case B:if($){if(ee.y<=0&&(z<=Ie||Y<=Ge)){et=!1;break}_e(M),q-=ee.y,z+=ee.y,G=q*$,Y+=k.width-G}else _e(M),_e(A),ee.x<=0?Y>Ge?(G-=ee.x,Y+=ee.x):ee.y<=0&&z<=Ie&&(et=!1):(G-=ee.x,Y+=ee.x),ee.y<=0?z>Ie&&(q-=ee.y,z+=ee.y):(q-=ee.y,z+=ee.y);G<0&&q<0?(U=j,q=-q,G=-G,z-=q,Y-=G):G<0?(U=K,G=-G,Y-=G):q<0&&(U=H,q=-q,z-=q);break;case H:if($){if(ee.x<=0&&(Y<=Ge||Te>=ct)){et=!1;break}_e(A),G-=ee.x,Y+=ee.x,q=G/$}else _e(D),_e(A),ee.x<=0?Y>Ge?(G-=ee.x,Y+=ee.x):ee.y>=0&&Te>=ct&&(et=!1):(G-=ee.x,Y+=ee.x),ee.y>=0?Te=0&&(Ne>=rt||Te>=ct)){et=!1;break}_e(_),G+=ee.x,q=G/$}else _e(D),_e(_),ee.x>=0?Ne=0&&Te>=ct&&(et=!1):G+=ee.x,ee.y>=0?Te0?U=ee.y>0?j:K:ee.x<0&&(Y-=G,U=ee.y>0?H:B),ee.y<0&&(z-=q),this.cropped||(rn(this.cropBox,ne),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}et&&(k.width=G,k.height=q,k.left=Y,k.top=z,this.action=U,this.renderCropBox()),ie(R,function(st){st.startX=st.endX,st.startY=st.endY})}},_A={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&<(this.dragBox,se),rn(this.cropBox,ne),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=ge({},this.initialImageData),this.canvasData=ge({},this.initialCanvasData),this.cropBoxData=ge({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(ge(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),rn(this.dragBox,se),lt(this.cropBox,ne)),this},replace:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&E&&(this.isImg&&(this.element.src=E),x?(this.url=E,this.image.src=E,this.ready&&(this.viewBoxImage.src=E,ie(this.previews,function(w){w.getElementsByTagName("img")[0].src=E}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(E))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,rn(this.cropper,Q)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,lt(this.cropper,Q)),this},destroy:function(){var E=this.element;return E[T]?(E[T]=void 0,this.isImg&&this.replaced&&(E.src=this.originalUrl),this.uncreate(),this):this},move:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.canvasData,P=w.left,k=w.top;return this.moveTo(pe(E)?E:P+Number(E),pe(x)?x:k+Number(x))},moveTo:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.canvasData,P=!1;return E=Number(E),x=Number(x),this.ready&&!this.disabled&&this.options.movable&&(J(E)&&(w.left=E,P=!0),J(x)&&(w.top=x,P=!0),P&&this.renderCanvas(!0)),this},zoom:function(E,x){var w=this.canvasData;return E=Number(E),E<0?E=1/(1-E):E=1+E,this.zoomTo(w.width*E/w.naturalWidth,null,x)},zoomTo:function(E,x,w){var P=this.options,k=this.canvasData,R=k.width,U=k.height,$=k.naturalWidth,Y=k.naturalHeight;if(E=Number(E),E>=0&&this.ready&&!this.disabled&&P.zoomable){var z=$*E,G=Y*E;if(na(this.element,an,{ratio:E,oldRatio:R/$,originalEvent:w})===!1)return this;if(w){var q=this.pointers,Ne=Mf(this.cropper),Te=q&&Object.keys(q).length?vA(q):{pageX:w.pageX,pageY:w.pageY};k.left-=(z-R)*((Te.pageX-Ne.left-k.left)/R),k.top-=(G-U)*((Te.pageY-Ne.top-k.top)/U)}else le(x)&&J(x.x)&&J(x.y)?(k.left-=(z-R)*((x.x-k.left)/R),k.top-=(G-U)*((x.y-k.top)/U)):(k.left-=(z-R)/2,k.top-=(G-U)/2);k.width=z,k.height=G,this.renderCanvas(!0)}return this},rotate:function(E){return this.rotateTo((this.imageData.rotate||0)+Number(E))},rotateTo:function(E){return E=Number(E),J(E)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=E%360,this.renderCanvas(!0,!0)),this},scaleX:function(E){var x=this.imageData.scaleY;return this.scale(E,J(x)?x:1)},scaleY:function(E){var x=this.imageData.scaleX;return this.scale(J(x)?x:1,E)},scale:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=this.imageData,P=!1;return E=Number(E),x=Number(x),this.ready&&!this.disabled&&this.options.scalable&&(J(E)&&(w.scaleX=E,P=!0),J(x)&&(w.scaleY=x,P=!0),P&&this.renderCanvas(!0,!0)),this},getData:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=this.options,w=this.imageData,P=this.canvasData,k=this.cropBoxData,R;if(this.ready&&this.cropped){R={x:k.left-P.left,y:k.top-P.top,width:k.width,height:k.height};var U=w.width/w.naturalWidth;if(ie(R,function(z,G){R[G]=z/U}),E){var $=Math.round(R.y+R.height),Y=Math.round(R.x+R.width);R.x=Math.round(R.x),R.y=Math.round(R.y),R.width=Y-R.x,R.height=$-R.y}}else R={x:0,y:0,width:0,height:0};return x.rotatable&&(R.rotate=w.rotate||0),x.scalable&&(R.scaleX=w.scaleX||1,R.scaleY=w.scaleY||1),R},setData:function(E){var x=this.options,w=this.imageData,P=this.canvasData,k={};if(this.ready&&!this.disabled&&le(E)){var R=!1;x.rotatable&&J(E.rotate)&&E.rotate!==w.rotate&&(w.rotate=E.rotate,R=!0),x.scalable&&(J(E.scaleX)&&E.scaleX!==w.scaleX&&(w.scaleX=E.scaleX,R=!0),J(E.scaleY)&&E.scaleY!==w.scaleY&&(w.scaleY=E.scaleY,R=!0)),R&&this.renderCanvas(!0,!0);var U=w.width/w.naturalWidth;J(E.x)&&(k.left=E.x*U+P.left),J(E.y)&&(k.top=E.y*U+P.top),J(E.width)&&(k.width=E.width*U),J(E.height)&&(k.height=E.height*U),this.setCropBoxData(k)}return this},getContainerData:function(){return this.ready?ge({},this.containerData):{}},getImageData:function(){return this.sized?ge({},this.imageData):{}},getCanvasData:function(){var E=this.canvasData,x={};return this.ready&&ie(["left","top","width","height","naturalWidth","naturalHeight"],function(w){x[w]=E[w]}),x},setCanvasData:function(E){var x=this.canvasData,w=x.aspectRatio;return this.ready&&!this.disabled&&le(E)&&(J(E.left)&&(x.left=E.left),J(E.top)&&(x.top=E.top),J(E.width)?(x.width=E.width,x.height=E.width/w):J(E.height)&&(x.height=E.height,x.width=E.height*w),this.renderCanvas(!0)),this},getCropBoxData:function(){var E=this.cropBoxData,x;return this.ready&&this.cropped&&(x={left:E.left,top:E.top,width:E.width,height:E.height}),x||{}},setCropBoxData:function(E){var x=this.cropBoxData,w=this.options.aspectRatio,P,k;return this.ready&&this.cropped&&!this.disabled&&le(E)&&(J(E.left)&&(x.left=E.left),J(E.top)&&(x.top=E.top),J(E.width)&&E.width!==x.width&&(P=!0,x.width=E.width),J(E.height)&&E.height!==x.height&&(k=!0,x.height=E.height),w&&(P?x.height=x.width/w:k&&(x.width=x.height*w)),this.renderCropBox()),this},getCroppedCanvas:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var x=this.canvasData,w=bA(this.image,this.imageData,x,E);if(!this.cropped)return w;var P=this.getData(),k=P.x,R=P.y,U=P.width,$=P.height,Y=w.width/Math.floor(x.naturalWidth);Y!==1&&(k*=Y,R*=Y,U*=Y,$*=Y);var z=U/$,G=Gn({aspectRatio:z,width:E.maxWidth||1/0,height:E.maxHeight||1/0}),q=Gn({aspectRatio:z,width:E.minWidth||0,height:E.minHeight||0},"cover"),Ne=Gn({aspectRatio:z,width:E.width||(Y!==1?w.width:U),height:E.height||(Y!==1?w.height:$)}),Te=Ne.width,Ge=Ne.height;Te=Math.min(G.width,Math.max(q.width,Te)),Ge=Math.min(G.height,Math.max(q.height,Ge));var Ie=document.createElement("canvas"),rt=Ie.getContext("2d");Ie.width=Hn(Te),Ie.height=Hn(Ge),rt.fillStyle=E.fillColor||"transparent",rt.fillRect(0,0,Te,Ge);var ct=E.imageSmoothingEnabled,et=ct===void 0?!0:ct,En=E.imageSmoothingQuality;rt.imageSmoothingEnabled=et,En&&(rt.imageSmoothingQuality=En);var kt=w.width,ee=w.height,_e=k,st=R,jt,wn,bo,yo,Wn,sn;_e<=-U||_e>kt?(_e=0,jt=0,bo=0,Wn=0):_e<=0?(bo=-_e,_e=0,jt=Math.min(kt,U+_e),Wn=jt):_e<=kt&&(bo=0,jt=Math.min(U,kt-_e),Wn=jt),jt<=0||st<=-$||st>ee?(st=0,wn=0,yo=0,sn=0):st<=0?(yo=-st,st=0,wn=Math.min(ee,$+st),sn=wn):st<=ee&&(yo=0,wn=Math.min($,ee-st),sn=wn);var wt=[_e,st,jt,wn];if(Wn>0&&sn>0){var Eo=Te/U;wt.push(bo*Eo,yo*Eo,Wn*Eo,sn*Eo)}return rt.drawImage.apply(rt,[w].concat(d(wt.map(function($r){return Math.floor(Hn($r))})))),Ie},setAspectRatio:function(E){var x=this.options;return!this.disabled&&!pe(E)&&(x.aspectRatio=Math.max(0,E)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(E){var x=this.options,w=this.dragBox,P=this.face;if(this.ready&&!this.disabled){var k=E===Pe,R=x.movable&&E===ke;E=k||R?E:je,x.dragMode=E,Ya(w,ye,E),ta(w,W,k),ta(w,fe,R),x.cropBoxMovable||(Ya(P,ye,E),ta(P,W,k),ta(P,fe,R))}return this}},AA=y.Cropper,Vf=function(){function C(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i(this,C),!E||!go.test(E.tagName))throw new Error("The first argument is required and must be an or element.");this.element=E,this.options=ge({},F,le(x)&&x),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return l(C,[{key:"init",value:function(){var x=this.element,w=x.tagName.toLowerCase(),P;if(!x[T]){if(x[T]=this,w==="img"){if(this.isImg=!0,P=x.getAttribute("src")||"",this.originalUrl=P,!P)return;P=x.src}else w==="canvas"&&window.HTMLCanvasElement&&(P=x.toDataURL());this.load(P)}}},{key:"load",value:function(x){var w=this;if(x){this.url=x,this.imageData={};var P=this.element,k=this.options;if(!k.rotatable&&!k.scalable&&(k.checkOrientation=!1),!k.checkOrientation||!window.ArrayBuffer){this.clone();return}if(mo.test(x)){vo.test(x)?this.read(wA(x)):this.clone();return}var R=new XMLHttpRequest,U=this.clone.bind(this);this.reloading=!0,this.xhr=R,R.onabort=U,R.onerror=U,R.ontimeout=U,R.onprogress=function(){R.getResponseHeader("content-type")!==Vn&&R.abort()},R.onload=function(){w.read(R.response)},R.onloadend=function(){w.reloading=!1,w.xhr=null},k.checkCrossOrigin&&Ff(x)&&P.crossOrigin&&(x=Lf(x)),R.open("GET",x,!0),R.responseType="arraybuffer",R.withCredentials=P.crossOrigin==="use-credentials",R.send()}}},{key:"read",value:function(x){var w=this.options,P=this.imageData,k=SA(x),R=0,U=1,$=1;if(k>1){this.url=xA(x,Vn);var Y=OA(k);R=Y.rotate,U=Y.scaleX,$=Y.scaleY}w.rotatable&&(P.rotate=R),w.scalable&&(P.scaleX=U,P.scaleY=$),this.clone()}},{key:"clone",value:function(){var x=this.element,w=this.url,P=x.crossOrigin,k=w;this.options.checkCrossOrigin&&Ff(w)&&(P||(P="anonymous"),k=Lf(w)),this.crossOrigin=P,this.crossOriginUrl=k;var R=document.createElement("img");P&&(R.crossOrigin=P),R.src=k||w,R.alt=x.alt||"The image to crop",this.image=R,R.onload=this.start.bind(this),R.onerror=this.stop.bind(this),lt(R,we),x.parentNode.insertBefore(R,x.nextSibling)}},{key:"start",value:function(){var x=this,w=this.image;w.onload=null,w.onerror=null,this.sizing=!0;var P=y.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(y.navigator.userAgent),k=function(Y,z){ge(x.imageData,{naturalWidth:Y,naturalHeight:z,aspectRatio:Y/z}),x.initialImageData=ge({},x.imageData),x.sizing=!1,x.sized=!0,x.build()};if(w.naturalWidth&&!P){k(w.naturalWidth,w.naturalHeight);return}var R=document.createElement("img"),U=document.body||document.documentElement;this.sizingImage=R,R.onload=function(){k(R.width,R.height),P||U.removeChild(R)},R.src=w.src,P||(R.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",U.appendChild(R))}},{key:"stop",value:function(){var x=this.image;x.onload=null,x.onerror=null,x.parentNode.removeChild(x),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var x=this.element,w=this.options,P=this.image,k=x.parentNode,R=document.createElement("div");R.innerHTML=V;var U=R.querySelector(".".concat(T,"-container")),$=U.querySelector(".".concat(T,"-canvas")),Y=U.querySelector(".".concat(T,"-drag-box")),z=U.querySelector(".".concat(T,"-crop-box")),G=z.querySelector(".".concat(T,"-face"));this.container=k,this.cropper=U,this.canvas=$,this.dragBox=Y,this.cropBox=z,this.viewBox=U.querySelector(".".concat(T,"-view-box")),this.face=G,$.appendChild(P),lt(x,ne),k.insertBefore(U,x.nextSibling),this.isImg||rn(P,we),this.initPreview(),this.bind(),w.initialAspectRatio=Math.max(0,w.initialAspectRatio)||NaN,w.aspectRatio=Math.max(0,w.aspectRatio)||NaN,w.viewMode=Math.max(0,Math.min(3,Math.round(w.viewMode)))||0,lt(z,ne),w.guides||lt(z.getElementsByClassName("".concat(T,"-dashed")),ne),w.center||lt(z.getElementsByClassName("".concat(T,"-center")),ne),w.background&<(U,"".concat(T,"-bg")),w.highlight||lt(G,Ze),w.cropBoxMovable&&(lt(G,fe),Ya(G,ye,O)),w.cropBoxResizable||(lt(z.getElementsByClassName("".concat(T,"-line")),ne),lt(z.getElementsByClassName("".concat(T,"-point")),ne)),this.render(),this.ready=!0,this.setDragMode(w.dragMode),w.autoCrop&&this.crop(),this.setData(w.data),oe(w.ready)&&Lt(x,$o,w.ready,{once:!0}),na(x,$o)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),rn(this.element,ne))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=AA,C}},{key:"setDefaults",value:function(x){ge(F,le(x)&&x)}}]),C}();return ge(Vf.prototype,TA,CA,NA,kA,IA,_A),Vf})})(vd);var wb=vd.exports;Object.defineProperty(md,"__esModule",{value:!0});var gd=o,xb=wb,Sb=Ob(xb);function Ob(e){return e&&e.__esModule?e:{default:e}}function Tb(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}var Cb=typeof window>"u"?[String,Array]:[String,Array,Element,NodeList],Nb=md.default={render:function(){var t=this.crossorigin||void 0;return(0,gd.h)("div",{style:this.containerStyle},[(0,gd.h)("img",{ref:"img",src:this.src,alt:this.alt||"image",style:[{"max-width":"100%"},this.imgStyle],crossorigin:t})])},props:{containerStyle:Object,src:{type:String,default:""},alt:String,imgStyle:Object,viewMode:Number,dragMode:String,initialAspectRatio:Number,aspectRatio:Number,data:Object,preview:Cb,responsive:{type:Boolean,default:!0},restore:{type:Boolean,default:!0},checkCrossOrigin:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},crossorigin:{type:String},modal:{type:Boolean,default:!0},guides:{type:Boolean,default:!0},center:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},background:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!0},autoCropArea:Number,movable:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},scalable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},zoomOnTouch:{type:Boolean,default:!0},zoomOnWheel:{type:Boolean,default:!0},wheelZoomRatio:Number,cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},toggleDragModeOnDblclick:{type:Boolean,default:!0},minCanvasWidth:Number,minCanvasHeight:Number,minCropBoxWidth:Number,minCropBoxHeight:Number,minContainerWidth:Number,minContainerHeight:Number,ready:Function,cropstart:Function,cropmove:Function,cropend:Function,crop:Function,zoom:Function},mounted:function(){var t=this.$options.props;t.containerStyle,t.src,t.alt,t.imgStyle;var n=Tb(t,["containerStyle","src","alt","imgStyle"]),a={};for(var r in n)this[r]!==void 0&&(a[r]=this[r]);this.cropper=new Sb.default(this.$refs.img,a)},methods:{reset:function(){return this.cropper.reset()},clear:function(){return this.cropper.clear()},initCrop:function(){return this.cropper.crop()},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.cropper.replace(t,n)},enable:function(){return this.cropper.enable()},disable:function(){return this.cropper.disable()},destroy:function(){return this.cropper.destroy()},move:function(t,n){return this.cropper.move(t,n)},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return this.cropper.moveTo(t,n)},relativeZoom:function(t,n){return this.cropper.zoom(t,n)},zoomTo:function(t,n){return this.cropper.zoomTo(t,n)},rotate:function(t){return this.cropper.rotate(t)},rotateTo:function(t){return this.cropper.rotateTo(t)},scaleX:function(t){return this.cropper.scaleX(t)},scaleY:function(t){return this.cropper.scaleY(t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return this.cropper.scale(t,n)},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.cropper.getData(t)},setData:function(t){return this.cropper.setData(t)},getContainerData:function(){return this.cropper.getContainerData()},getImageData:function(){return this.cropper.getImageData()},getCanvasData:function(){return this.cropper.getCanvasData()},setCanvasData:function(t){return this.cropper.setCanvasData(t)},getCropBoxData:function(){return this.cropper.getCropBoxData()},setCropBoxData:function(t){return this.cropper.setCropBoxData(t)},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.cropper.getCroppedCanvas(t)},setAspectRatio:function(t){return this.cropper.setAspectRatio(t)},setDragMode:function(t){return this.cropper.setDragMode(t)}}};const Dt=o.defineComponent({__name:"Button",props:{variant:{default:"secondary"},type:{default:"button"},href:{},loading:{type:Boolean,default:!1}},setup(e){const t={primary:"bg-blue-500 dark:bg-blue-600/50 focus:outline-blue-500",secondary:"bg-gray-600 dark:bg-gray-600/50 focus:outline-gray-600",success:"bg-green-500 dark:bg-green-600/50 focus:outline-green-500",warning:"bg-orange-400 dark:bg-orange-600/50 focus:outline-orange-400",danger:"bg-red-500 dark:bg-red-600/50 focus:outline-red-500",transparent:"bg-transparent"},n=e,a=o.computed(()=>t[n.variant]);return(r,i)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.href?"a":"button"),{class:o.normalizeClass(["inline-flex items-center py-2 px-4 border-0 uppercase rounded-md shadow-sm text-xs font-medium text-white hover:shadow-md hover:opacity-75 disabled:opacity-50 focus:outline-none focus:ring-1",a.value]),href:r.href,type:r.type},{default:o.withCtx(()=>[r.loading?(o.openBlock(),o.createBlock(xo,{key:0,class:"mr-2 w-3 h-3"})):o.createCommentVNode("",!0),o.renderSlot(r.$slots,"default")]),_:3},8,["class","href","type"]))}}),kb={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Ib={class:"sm:flex sm:items-start"},_b={class:"text-left w-full space-y-6"},Ab={class:"mt-2 w-full space-y-6"},Db={class:"mt-5 sm:mt-4 px-4 sm:px-6 pb-4 sm:flex sm:flex-row-reverse sm:gap-x-2 space-y-3 sm:space-y-0"},pr=o.defineComponent({__name:"InputModal",props:{name:{},title:{},onSubmit:{type:Function}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(_o,{as:"template",class:"nova-file-manager",name:t.name},{default:o.withCtx(({close:a})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-200 dark:bg-gray-900 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg w-full"},{default:o.withCtx(()=>[o.createElementVNode("form",{name:"input-modal",onSubmit:n[0]||(n[0]=o.withModifiers((...r)=>t.onSubmit&&t.onSubmit(...r),["prevent"]))},[o.createElementVNode("div",kb,[o.createElementVNode("div",Ib,[o.createElementVNode("div",_b,[o.createVNode(o.unref(nd),{as:"h3",class:"text-lg leading-6 font-medium text-gray-700 dark:text-gray-200"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.title),1)]),_:1}),o.createElementVNode("div",Ab,[o.renderSlot(t.$slots,"inputs")])])])]),o.createElementVNode("div",Db,[o.renderSlot(t.$slots,"submitButton"),o.renderSlot(t.$slots,"cancelButton",{close:a})])],32)]),_:2},1024)]),_:3},8,["name"]))}}),Rb={class:"rounded-md overflow-auto"},Pb={class:"relative rounded-md text-center overflow-hidden w-full"},Bb=o.createElementVNode("div",{class:"absolute inset-0 opacity-50 bg-stripes bg-stripes-gray-400"},null,-1),Mb=["src","alt"],Fb={class:"w-full border rounded-md space-y-2 px-3 py-2 bg-gray-100 dark:bg-gray-900 shadow-sm focus-within:ring-1 focus-within:ring-blue-600 focus-within:border-blue-600 border-gray-400 dark:border-gray-700"},Lb={class:"block text-xs font-medium text-gray-700 dark:text-gray-200",for:"name"},jb=["placeholder"],Vb={class:"mt-2 text-xs text-gray-400",id:"name-description"},bd=o.defineComponent({__name:"UploadCropModal",props:{file:{},name:{},onSubmit:{type:Function},destFile:{},destName:{}},setup(e){const t=e,n=Re(),a=o.ref(null);o.onMounted(()=>{a.value=t.destName??""});const r=o.computed(()=>URL.createObjectURL(t.destFile)),i=l=>n.closeModal({name:l}),s=()=>a.value&&t.onSubmit(a.value);return(l,c)=>(o.openBlock(),o.createBlock(pr,{name:l.name,"on-submit":s,title:l.__("NovaFileManager.uploadCropTitle")},{inputs:o.withCtx(()=>[o.createElementVNode("div",Rb,[o.createElementVNode("div",Pb,[Bb,o.createElementVNode("img",{class:"relative z-10 object-contain h-48 w-full",src:r.value,alt:l.name},null,8,Mb)])]),o.createElementVNode("div",null,[o.createElementVNode("div",Fb,[o.createElementVNode("label",Lb,o.toDisplayString(l.__("Name")),1),o.withDirectives(o.createElementVNode("input",{id:"name","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),placeholder:l.__("NovaFileManager.actions.uploadCrop"),class:"block w-full border-0 p-0 bg-gray-100 dark:bg-gray-900 placeholder-gray-400 sm:text-sm text-black dark:text-white focus:outline-none focus:ring-0",name:"name",type:"text"},null,8,jb),[[o.vModelText,a.value]])]),o.createElementVNode("p",Vb,o.toDisplayString(l.__("NovaFileManager.edit.originalName",{name:l.file.name})),1)])]),submitButton:o.withCtx(()=>[o.createVNode(Dt,{disabled:!a.value,class:"w-full sm:w-auto",type:"submit",variant:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.__("NovaFileManager.actions.upload")),1)]),_:1},8,["disabled"])]),cancelButton:o.withCtx(()=>[o.createVNode(Dt,{class:"w-full sm:w-auto",type:"reset",variant:"secondary",onClick:c[1]||(c[1]=d=>i(l.name))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.__("Cancel")),1)]),_:1})]),_:1},8,["name","title"]))}}),Ub={class:"w-full flex flex-col flex-col-reverse gap-2 md:flex-row justify-between items-start"},Hb={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},zb={class:"flex flex-row gap-2 justify-end flex-shrink-0"},Gb={class:"h-full max-h-[70vh]"},Wb=o.defineComponent({__name:"CropImageModal",props:{file:{},name:{},onConfirm:{type:Function}},setup(e){const t=e,n=Re(),a=o.ref(),r=o.ref(null),i=o.ref(),s=o.computed(()=>n.isOpen(Tn)),l=o.computed(()=>n.cropperOptions),c=o.computed(()=>({height:"100%",minHeight:"60vh"})),d=o.computed(()=>{const u=r.value?.getData(),m=`${Math.round(u.width)}_${Math.round(u.height)}_${Math.round(u.x)}_${Math.round(u.y)}`;return t.file?.name.replace(t.file?.extension,`${m}.${t.file?.extension}`)}),f=u=>n.openModal({name:u}),p=u=>n.closeModal({name:u}),h=()=>{r.value?.getCroppedCanvas().toBlob(u=>{u&&(i.value=new File([u],t.file.name,{type:t.file.mime}),f(Tn))})},v=u=>{if(!i.value)return;const m=new File([i.value],u,{type:t.file.mime});p(Tn),p(t.name),t.onConfirm(m)};return(u,m)=>(o.openBlock(),o.createBlock(_o,{as:"template",class:"nova-file-manager",name:u.name},{default:o.withCtx(({close:y})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4 h-[80vh] max-h-[80vh]"},{default:o.withCtx(()=>[o.createElementVNode("div",Ub,[o.createElementVNode("h2",Hb,o.toDisplayString(u.__("NovaFileManager.actions.cropImage",{image:u.file.name})),1),o.createElementVNode("div",zb,[o.createVNode(it,{ref_key:"buttonRef",ref:a,title:u.__("NovaFileManager.actions.close"),onClick:o.withModifiers(y,["prevent","stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:2},1032,["title","onClick"]),o.createVNode(it,{variant:"success",onClick:h},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})])]),o.createElementVNode("div",Gb,[o.createVNode(o.unref(Nb),o.mergeProps({ref_key:"cropper",ref:r,containerStyle:c.value,src:u.file.url,alt:u.file.name},l.value),null,16,["containerStyle","src","alt"])]),s.value?(o.openBlock(),o.createBlock(bd,{key:0,file:u.file,name:o.unref(Tn),"on-submit":v,"dest-file":i.value,"dest-name":d.value},null,8,["file","name","dest-file","dest-name"])):o.createCommentVNode("",!0)]),_:2},1024)]),_:1},8,["name"]))}});var Kb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=yd[t.format]||yd.default;window.clipboardData.setData(p,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),s.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),a=Jb("message"in t?t.message:Yb),window.prompt(a,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),l&&document.body.removeChild(l),r()}return c}var Zb=Qb;const qb=Sn(Zb);function Ed(){return{copy:t=>{qb(t)}}}function hr(e){const t=Re(),{error:n}=qf(t);return{message:o.computed(()=>n?.value?.bag?.message),invalid:o.computed(()=>n?.value?.attribute===e),errors:o.computed(()=>n?.value?.bag?.errors)}}function $b(){return{__:(t,n)=>{let a=window.Nova.config("translations")[t]?window.Nova.config("translations")[t]:t;return Object.entries(n??{}).forEach(([r,i])=>{if(i===null){console.error(`Translation '${a}' for key '${r}' contains a null replacement.`);return}i=String(i);const s=[`:${r}`,`:${r.toUpperCase()}`,`:${r.charAt(0).toUpperCase()}${r.slice(1)}`],l=[i,i.toUpperCase(),i.charAt(0).toUpperCase()+i.slice(1)];for(let c=s.length-1;c>=0;c--)a=a.replace(s[c],l[c])}),a}}}function Ta(){const e=Re(),t=o.computed(()=>e.permissions?.folder.create),n=o.computed(()=>e.permissions?.file.edit),a=o.computed(()=>e.permissions?.file.delete),r=o.computed(()=>e.permissions?.folder.delete),i=o.computed(()=>e.permissions?.file.download),s=o.computed(()=>e.permissions?.file.rename),l=o.computed(()=>e.permissions?.folder.rename),c=o.computed(()=>e.permissions?.file.unzip),d=o.computed(()=>e.permissions?.file.upload);return{showCreateFolder:t,showCropImage:n,showDeleteFile:a,showDeleteFolder:r,showDownloadFile:i,showRenameFile:s,showRenameFolder:l,showUnzipFile:c,showUploadFile:d}}function wd(){const e=Re(),t=o.computed(()=>e.usePintura),n=o.computed(()=>e.pinturaOptions);return{usePinturaEditor:t,pinturaOptions:n}}const ey={class:"sm:flex sm:items-start"},ty={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},ny={class:"mt-2"},oy={class:"text-sm text-gray-500 dark:text-gray-400"},ay={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse sm:gap-x-2 space-y-3 sm:space-y-0"},xd=o.defineComponent({__name:"ConfirmModal",props:{name:{},attribute:{},title:{},content:{},icon:{},variant:{default:"danger"}},setup(e){const t={danger:{iconBackground:"bg-red-100 dark:bg-red-800/30",iconColor:"text-red-600 dark:text-red-500"}},n=e,{invalid:a,errors:r}=hr(n.attribute),i=o.computed(()=>n.variant?t[n.variant].iconColor:""),s=o.computed(()=>n.variant?t[n.variant].iconBackground:"");return(l,c)=>(o.openBlock(),o.createBlock(_o,{as:"template",class:"nova-file-manager",name:l.name},{default:o.withCtx(({close:d})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full sm:p-6"},{default:o.withCtx(()=>[o.createElementVNode("div",ey,[o.createElementVNode("div",{class:o.normalizeClass(`${s.value} mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10`)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(l.icon),{class:o.normalizeClass(`${i.value} h-6 w-6`),"aria-hidden":"true"},null,8,["class"]))],2),o.createElementVNode("div",ty,[o.createVNode(o.unref(nd),{as:"h3",class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-100"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.title),1)]),_:1}),o.createElementVNode("div",ny,[o.createElementVNode("p",oy,o.toDisplayString(l.content),1)]),o.unref(a)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(r),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:`confirm_modal_error_${p}`,class:"mt-2 text-sm text-red-600"},o.toDisplayString(f),1))),128)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",ay,[o.renderSlot(l.$slots,"confirmButton"),o.renderSlot(l.$slots,"cancelButton",{close:d})])]),_:2},1024)]),_:3},8,["name"]))}}),Sd=o.defineComponent({__name:"DeleteFileModal",props:{isOpen:{type:Boolean,default:!1},name:{},onConfirm:{},count:{}},setup(e){const t=o.computed(()=>vl);return(n,a)=>(o.openBlock(),o.createBlock(xd,{content:n.__("NovaFileManager.deleteFileContent"),icon:t.value,"is-open":n.isOpen,name:n.name,title:n.__("NovaFileManager.deleteFileTitle",{count:n.count}),variant:"danger",attribute:"deleteFile"},{confirmButton:o.withCtx(()=>[o.createVNode(Dt,{class:"w-full sm:w-auto",type:"button",variant:"danger",onClick:n.onConfirm},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.__("Delete")),1)]),_:1},8,["onClick"])]),cancelButton:o.withCtx(({close:r})=>[o.createVNode(Dt,{class:"w-full sm:w-auto",type:"button",variant:"secondary",onClick:r},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.__("Cancel")),1)]),_:2},1032,["onClick"])]),_:1},8,["content","icon","is-open","name","title"]))}}),ry={class:"w-full flex flex-col flex-col-reverse gap-2 md:flex-row justify-between items-start"},sy={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},iy={class:"flex flex-row gap-2 justify-end flex-shrink-0"},ly={key:0,class:"h-full max-h-[70vh] flex flex-col items-center justify-center space-y-4"},cy={class:"text-red-500 text-xl"},dy=o.defineComponent({__name:"EditImageModal",props:{file:{},name:{},onConfirm:{type:Function}},setup(e){const t=e,n=Re(),a=o.ref(),r=o.ref(),i=o.ref(),s=o.computed(()=>n.isOpen(Tn)),l=o.ref(),c=o.ref(),{pinturaOptions:d}=wd();o.watchEffect(()=>{if(l.value&&!c.value)try{const{appendDefaultEditor:u,editorOptions:m}=window.novaFileManagerEditor;c.value=u(l.value,{...m,...d.value,src:t.file.url,enableButtonExport:!1}),c.value&&c.value.on("loaderror",({error:y})=>window.Nova.error(y.message))}catch(u){r.value=!0,console.error(u)}});const f=u=>n.openModal({name:u}),p=u=>n.closeModal({name:u}),h=()=>{c.value?.processImage().then(({dest:u})=>{i.value=u,f(Tn)})},v=u=>{if(!i.value)return;const m=new File([i.value],u,{type:t.file.mime});p(Tn),p(t.name),t.onConfirm(m)};return(u,m)=>(o.openBlock(),o.createBlock(_o,{as:"template",class:"nova-file-manager",name:u.name},{default:o.withCtx(({close:y})=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4 h-[80vh] max-h-[80vh]"},{default:o.withCtx(()=>[o.createElementVNode("div",ry,[o.createElementVNode("h2",sy,o.toDisplayString(u.__("NovaFileManager.actions.editImage",{image:u.file.name})),1),o.createElementVNode("div",iy,[o.createVNode(it,{ref_key:"buttonRef",ref:a,title:u.__("NovaFileManager.actions.close"),onClick:o.withModifiers(y,["prevent","stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:2},1032,["title","onClick"]),o.createVNode(it,{variant:"success",onClick:h},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})])]),r.value?(o.openBlock(),o.createElementBlock("div",ly,[o.createVNode(o.unref(El),{class:"w-16 h-16 text-red-500"}),o.createElementVNode("p",cy,o.toDisplayString(u.__("NovaFileManager.pintura.loadingError")),1)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"h-full max-h-[70vh]",ref_key:"editorRef",ref:l},null,512)),s.value?(o.openBlock(),o.createBlock(bd,{key:2,file:u.file,name:o.unref(Tn),"on-submit":v,"dest-file":i.value},null,8,["file","name","dest-file"])):o.createCommentVNode("",!0)]),_:2},1024)]),_:1},8,["name"]))}}),uy={class:"block text-xs font-medium text-gray-700 dark:text-gray-200",for:"name"},fy=["placeholder"],py=o.defineComponent({__name:"RenameFileModal",props:{name:{},onSubmit:{type:Function},from:{}},setup(e){const t=e,{invalid:n,errors:a}=hr(Qt.RENAME_FILE),r=o.ref(null);o.onMounted(()=>r.value=t.from);const i=()=>r.value&&t.onSubmit(r.value);return(s,l)=>(o.openBlock(),o.createBlock(pr,{name:s.name,"on-submit":i,title:s.__("NovaFileManager.renameFileTitle")},{inputs:o.withCtx(()=>[o.createElementVNode("div",null,[o.createElementVNode("div",{class:o.normalizeClass(["w-full border rounded-md space-y-2 px-3 py-2 bg-gray-100 dark:bg-gray-900 shadow-sm focus-within:ring-1 focus-within:ring-blue-600 focus-within:border-blue-600",o.unref(n)?"border-red-400 dark:border-red-700":"border-gray-400 dark:border-gray-700"])},[o.createElementVNode("label",uy,o.toDisplayString(s.__("Name")),1),o.withDirectives(o.createElementVNode("input",{id:"name","onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),placeholder:s.__("Name"),class:"block w-full border-0 p-0 bg-gray-100 dark:bg-gray-900 placeholder-gray-400 sm:text-sm text-black dark:text-white focus:outline-none focus:ring-0",name:"name",type:"text"},null,8,fy),[[o.vModelText,r.value]])],2),o.unref(n)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(a),(c,d)=>(o.openBlock(),o.createElementBlock("p",{key:`rename_file_modal_error_${d}`,class:"mt-2 text-sm text-red-600"},o.toDisplayString(c),1))),128)):o.createCommentVNode("",!0)])]),submitButton:o.withCtx(()=>[o.createVNode(Dt,{disabled:r.value===s.from,class:"w-full sm:w-auto",type:"submit",variant:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.__("Submit")),1)]),_:1},8,["disabled"])]),cancelButton:o.withCtx(({close:c})=>[o.createVNode(Dt,{class:"w-full sm:w-auto",type:"button",variant:"secondary",onClick:c},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.__("Cancel")),1)]),_:2},1032,["onClick"])]),_:1},8,["name","title"]))}}),hy={class:"w-full flex flex-col flex-col-reverse gap-y-2 md:flex-row justify-between items-start"},my={class:"text-lg font-medium text-gray-900 dark:text-gray-400 break-all w-full"},vy={class:"flex flex-row gap-2 justify-end flex-shrink-0"},gy={class:"overflow-hidden flex flex-col md:flex-row gap-4 w-full"},by={class:"block relative w-full md:w-4/6 overflow-hidden rounded-lg bg-gray-500/10 flex items-center justify-center"},yy={key:1,class:"w-full max-w-screen max-h-[80vh] relative",controls:"controls"},Ey=["src"],wy=["src"],xy={class:"w-full md:w-2/6"},Sy={class:"font-medium text-gray-800 dark:text-gray-100"},Oy={class:"mt-2 divide-y divide-gray-200 dark:divide-gray-800/40 border-t border-b border-gray-300 dark:border-gray-800/70"},Ty={class:"flex justify-between py-3 text-sm font-medium"},Cy={class:"text-gray-500"},Ny={class:"text-gray-400 dark:text-gray-600"},ky={class:"flex justify-between py-3 text-sm font-medium"},Iy={class:"text-gray-500"},_y={class:"text-gray-400 dark:text-gray-600"},Ay={class:"flex justify-between py-3 text-sm font-medium"},Dy={class:"text-gray-500"},Ry={class:"text-gray-400 dark:text-gray-600"},Py={class:"text-gray-500"},By={class:"text-gray-400 dark:text-gray-600"},$s=o.defineComponent({__name:"PreviewModal",props:{file:{},readOnly:{type:Boolean,default:!1}},setup(e){const t=e,n=Re(),{copy:a}=Ed(),{showCropImage:r,showDeleteFile:i,showDownloadFile:s,showRenameFile:l,showUnzipFile:c}=Ta(),{usePinturaEditor:d}=wd(),f=o.ref(),p=o.computed(()=>n.isOpen(`crop-image-${t.file?.id}`)),h=o.computed(()=>n.isOpen(`edit-image-${t.file?.id}`)),v=o.computed(()=>n.isField),u=o.computed(()=>n.downloadUrl(t.file)),m=I=>n.openModal({name:I}),y=I=>n.renameFile({id:t.file.id,from:t.file.path,to:I}),b=()=>n.deleteFiles({paths:[t.file.path]}),g=I=>n.unzipFile({path:I}),T=()=>{n.selectFile({file:t.file}),n.confirm()},O=()=>{n.preview=void 0,n.fixPortal()},S=I=>{O(),m(la),n.upload({files:[I]})},N=I=>{a(I.url),window.Nova.success("OK!")};return(I,_)=>(o.openBlock(),o.createBlock(_o,{as:"template",class:"nova-file-manager",name:o.unref(ps),"initial-focus-ref":f.value},{default:o.withCtx(()=>[o.createVNode(o.unref(un),{class:"relative bg-gray-100 dark:bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all w-full max-w-7xl p-4 flex flex-col gap-4"},{default:o.withCtx(()=>[o.createElementVNode("div",hy,[o.createElementVNode("h2",my,o.toDisplayString(I.file?.name),1),o.createElementVNode("div",vy,[!I.readOnly&&o.unref(i)?(o.openBlock(),o.createBlock(it,{key:0,variant:"danger",onClick:_[0]||(_[0]=A=>m(`${o.unref(Ut).DELETE_FILES}-${I.file?.id}`)),title:I.__("NovaFileManager.actions.delete")},{default:o.withCtx(()=>[o.createVNode(o.unref(bl),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(r)&&!o.unref(d)&&I.file?.type==="image"?(o.openBlock(),o.createBlock(it,{key:1,variant:"secondary",onClick:_[1]||(_[1]=A=>m(`crop-image-${I.file?.id}`)),title:I.__("NovaFileManager.actions.cropImage",{image:I.file?.name})},{default:o.withCtx(()=>[o.createVNode(hd,{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(r)&&o.unref(d)&&I.file?.type==="image"?(o.openBlock(),o.createBlock(it,{key:2,variant:"secondary",onClick:_[2]||(_[2]=A=>m(`edit-image-${I.file?.id}`)),title:I.__("NovaFileManager.actions.editImage",{image:I.file?.name})},{default:o.withCtx(()=>[o.createVNode(hd,{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(c)&&I.file?.type==="zip"?(o.openBlock(),o.createBlock(it,{key:3,variant:"secondary",onClick:_[3]||(_[3]=A=>g(I.file.path)),title:I.__("NovaFileManager.actions.unzip")},{default:o.withCtx(()=>[o.createVNode(o.unref($f),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),o.createVNode(it,{onClick:_[4]||(_[4]=A=>N(I.file)),variant:"secondary",title:I.__("NovaFileManager.actions.copy")},{default:o.withCtx(()=>[o.createVNode(o.unref(tp),{class:"w-5 h-5"})]),_:1},8,["title"]),o.unref(s)?(o.openBlock(),o.createBlock(it,{key:4,"as-anchor":!0,download:I.file?.name,href:u.value,variant:"secondary",title:I.__("NovaFileManager.actions.download")},{default:o.withCtx(()=>[o.createVNode(o.unref(np),{class:"w-5 h-5"})]),_:1},8,["download","href","title"])):o.createCommentVNode("",!0),!I.readOnly&&o.unref(l)?(o.openBlock(),o.createBlock(it,{key:5,variant:"secondary",onClick:_[5]||(_[5]=A=>m(`rename-file-${I.file?.id}`)),title:I.__("NovaFileManager.actions.rename")},{default:o.withCtx(()=>[o.createVNode(o.unref(lp),{class:"w-5 h-5"})]),_:1},8,["title"])):o.createCommentVNode("",!0),o.createVNode(it,{ref_key:"buttonRef",ref:f,onClick:O,title:I.__("NovaFileManager.actions.close")},{default:o.withCtx(()=>[o.createVNode(o.unref(ss),{class:"w-5 h-5"})]),_:1},8,["title"]),v.value?(o.openBlock(),o.createBlock(it,{key:6,variant:"success",onClick:T},{default:o.withCtx(()=>[o.createVNode(o.unref(Za),{class:"h-5 w-5"})]),_:1})):o.createCommentVNode("",!0)])]),o.createElementVNode("div",gy,[o.createElementVNode("div",by,[I.file?.type==="image"?(o.openBlock(),o.createBlock(wl,{key:0,src:I.file.url,"is-thumbnail":!1,"full-width":!1,class:"relative",alt:I.file.name},null,8,["src","alt"])):I.file?.type==="video"?(o.openBlock(),o.createElementBlock("video",yy,[o.createElementVNode("source",{src:I.file?.url},null,8,Ey),o.createTextVNode(" Sorry, your browser doesn't support embedded videos. ")])):I.file?.type==="pdf"?(o.openBlock(),o.createElementBlock("embed",{key:2,src:I.file?.url,type:"application/pdf",class:"w-full max-w-screen h-[80vh]"},null,8,wy)):(o.openBlock(),o.createBlock(o.unref(ra),{key:3,class:"h-40 w-40 text-gray-500 m-12"}))]),o.createElementVNode("div",xy,[o.createElementVNode("div",null,[o.createElementVNode("h3",Sy,o.toDisplayString(I.__("NovaFileManager.preview.information")),1),o.createElementVNode("dl",Oy,[o.createElementVNode("div",Ty,[o.createElementVNode("dt",Cy,o.toDisplayString(I.__("NovaFileManager.meta.size")),1),o.createElementVNode("dd",Ny,o.toDisplayString(I.file?.size),1)]),o.createElementVNode("div",ky,[o.createElementVNode("dt",Iy,o.toDisplayString(I.__("NovaFileManager.meta.mime")),1),o.createElementVNode("dd",_y,o.toDisplayString(I.file?.mime),1)]),o.createElementVNode("div",Ay,[o.createElementVNode("dt",Dy,o.toDisplayString(I.__("NovaFileManager.meta.lastModifiedAt")),1),o.createElementVNode("dd",Ry,o.toDisplayString(I.file?.lastModifiedAt),1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.file?.meta,(A,D)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[A?(o.openBlock(),o.createElementBlock("div",{key:D,class:"flex justify-between py-3 text-sm font-medium"},[o.createElementVNode("dt",Py,o.toDisplayString(I.__(`NovaFileManager.meta.${D}`)),1),o.createElementVNode("dd",By,o.toDisplayString(A),1)])):o.createCommentVNode("",!0)],64))),256))])])])]),o.unref(i)?(o.openBlock(),o.createBlock(Sd,{key:0,name:`${o.unref(Ut).DELETE_FILES}-${I.file?.id}`,"on-confirm":b},null,8,["name"])):o.createCommentVNode("",!0),o.unref(r)&&p.value?(o.openBlock(),o.createBlock(Wb,{key:1,name:`crop-image-${I.file?.id}`,file:I.file,"on-confirm":S},null,8,["name","file"])):o.createCommentVNode("",!0),o.unref(r)&&h.value?(o.openBlock(),o.createBlock(dy,{key:2,name:`edit-image-${I.file?.id}`,file:I.file,"on-confirm":S},null,8,["name","file"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(py,{key:3,name:`rename-file-${I.file?.id}`,from:I.file?.name,"on-submit":y},null,8,["name","from"])):o.createCommentVNode("",!0)]),_:1})]),_:1},8,["name","initial-focus-ref"]))}}),My={class:"nova-file-manager"},Fy={class:"grid grid-cols-2 md:grid-cols-4 gap-2 mb-2 w-full",role:"group"},Ly=o.defineComponent({__name:"DetailField",props:{field:{},index:{}},setup(e){const t=o.ref(void 0),n=Re(),{copy:a}=Ed(),r=o.computed(()=>n.dark),i=o.computed(()=>n.preview),s=l=>{t.value=l,a(l.url),setTimeout(()=>{t.value=void 0},1e3)};return o.onMounted(()=>n.syncDarkMode()),(l,c)=>{const d=o.resolveComponent("PanelItem");return o.openBlock(),o.createBlock(d,{field:l.field,index:l.index},o.createSlots({_:2},[l.field.value?{name:"value",fn:o.withCtx(()=>[o.createElementVNode("div",My,[o.createElementVNode("div",{class:o.normalizeClass({dark:r.value})},[o.createElementVNode("ul",Fy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.field.value,f=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:f.id},[o.createVNode(xc,{field:l.field,file:f,attribute:l.field.attribute,detail:!0,"on-copy":s},null,8,["field","file","attribute"]),i.value&&i.value.id===f.id?(o.openBlock(),o.createBlock($s,{key:0,file:f,"read-only":!0},null,8,["file"])):o.createCommentVNode("",!0)],64))),128))])],2)])]),key:"0"}:void 0]),1032,["field","index"])}}});var Od={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT */function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function en(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function Uy(e,t){if(e==null)return{};var n=Vy(e,t),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Hy(e){return zy(e)||Gy(e)||Wy(e)||Ky()}function zy(e){if(Array.isArray(e))return ei(e)}function Gy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wy(e,t){if(e){if(typeof e=="string")return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ei(e,t)}}function ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Jy(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ht(e,t,n,a){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&vr(e,t):vr(e,t))||a&&e===n)return e;if(e===n)break}while(e=Jy(e))}return null}var Id=/\s+/g;function Ke(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(Id," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(Id," ")}}function re(e,t,n){var a=e&&e.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=n+(typeof n=="string"?"":"px")}}function qn(e,t){var n="";if(typeof e=="string")n=e;else do{var a=re(e,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Dd(e,t,n){if(e){var a=e.getElementsByTagName(t),r=0,i=a.length;if(n)for(;r=i,!s)return a;if(a===tn())break;a=_n(a,!1)}return!1}function Ao(e,t,n,a){for(var r=0,i=0,s=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=a.evt,i=Uy(a,n1);Ia.pluginEvent.bind(ue)(t,n,en({dragEl:te,parentEl:Je,ghostEl:me,rootEl:ze,nextEl:$n,lastDownEl:gr,cloneEl:Qe,cloneHidden:Rn,dragStarted:_a,putSortable:ut,activeSortable:ue.active,originalEvent:r,oldIndex:Ro,oldDraggableIndex:Aa,newIndex:xt,newDraggableIndex:Pn,hideGhostForTarget:Hd,unhideGhostForTarget:zd,cloneNowHidden:function(){Rn=!0},cloneNowShown:function(){Rn=!1},dispatchSortableEvent:function(l){gt({sortable:n,name:l,originalEvent:r})}},i))};function gt(e){Da(en({putSortable:ut,cloneEl:Qe,targetEl:te,rootEl:ze,oldIndex:Ro,oldDraggableIndex:Aa,newIndex:xt,newDraggableIndex:Pn},e))}var te,Je,me,ze,$n,gr,Qe,Rn,Ro,xt,Aa,Pn,br,ut,Po=!1,yr=!1,Er=[],eo,zt,si,ii,Md,Fd,_a,Bo,Ra,Pa=!1,wr=!1,xr,ht,li=[],ci=!1,Sr=[],Or=typeof document<"u",Tr=Nd,Ld=Ca||pn?"cssFloat":"float",o1=Or&&!Yy&&!Nd&&"draggable"in document.createElement("div"),jd=function(){if(Or){if(pn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Vd=function(t,n){var a=re(t),r=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=Ao(t,0,n),s=Ao(t,1,n),l=i&&re(i),c=s&&re(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+He(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+He(s).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===p)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&a[Ld]==="none"||s&&a[Ld]==="none"&&d+f>r)?"vertical":"horizontal"},a1=function(t,n,a){var r=a?t.left:t.top,i=a?t.right:t.bottom,s=a?t.width:t.height,l=a?n.left:n.top,c=a?n.right:n.bottom,d=a?n.width:n.height;return r===l||i===c||r+s/2===l+d/2},r1=function(t,n){var a;return Er.some(function(r){var i=r[pt].options.emptyInsertThreshold;if(!(!i||ti(r))){var s=He(r),l=t>=s.left-i&&t<=s.right+i,c=n>=s.top-i&&n<=s.bottom+i;if(l&&c)return a=r}}),a},Ud=function(t){function n(i,s){return function(l,c,d,f){var p=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(i==null&&(s||p))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(l,c,d,f),s)(l,c,d,f);var h=(s?l:c).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var a={},r=t.group;(!r||mr(r)!="object")&&(r={name:r}),a.name=r.name,a.checkPull=n(r.pull,!0),a.checkPut=n(r.put),a.revertClone=r.revertClone,t.group=a},Hd=function(){!jd&&me&&re(me,"display","none")},zd=function(){!jd&&me&&re(me,"display","")};Or&&document.addEventListener("click",function(e){if(yr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),yr=!1,!1},!0);var to=function(t){if(te){t=t.touches?t.touches[0]:t;var n=r1(t.clientX,t.clientY);if(n){var a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]=t[r]);a.target=a.rootEl=n,a.preventDefault=void 0,a.stopPropagation=void 0,n[pt]._onDragOver(a)}}},s1=function(t){te&&te.parentNode[pt]._isOutsideThisEl(t.target)};function ue(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Rt({},t),e[pt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Vd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ue.supportPointer!==!1&&"PointerEvent"in window&&!Na,emptyInsertThreshold:5};Ia.initializePlugins(this,e,n);for(var a in n)!(a in t)&&(t[a]=n[a]);Ud(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:o1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?xe(e,"pointerdown",this._onTapStart):(xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),Er.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Rt(this,$y())}ue.prototype={constructor:ue,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Bo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,te):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,a=this.el,r=this.options,i=r.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,f=r.filter;if(h1(a),!te&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Na&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Ht(c,r.draggable,a,!1),!(c&&c.animated)&&gr!==c)){if(Ro=Ye(c),Aa=Ye(c,r.draggable),typeof f=="function"){if(f.call(this,t,c,this)){gt({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:a,fromEl:a}),bt("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(p){if(p=Ht(d,p.trim(),a,!1),p)return gt({sortable:n,rootEl:p,name:"filter",targetEl:c,fromEl:a,toEl:a}),bt("filter",n,{evt:t}),!0}),f)){i&&t.cancelable&&t.preventDefault();return}r.handle&&!Ht(d,r.handle,a,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,a){var r=this,i=r.el,s=r.options,l=i.ownerDocument,c;if(a&&!te&&a.parentNode===i){var d=He(a);if(ze=i,te=a,Je=te.parentNode,$n=te.nextSibling,gr=a,br=s.group,ue.dragged=te,eo={target:te,clientX:(n||t).clientX,clientY:(n||t).clientY},Md=eo.clientX-d.left,Fd=eo.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,te.style["will-change"]="all",c=function(){if(bt("delayEnded",r,{evt:t}),ue.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Cd&&r.nativeDraggable&&(te.draggable=!0),r._triggerDragStart(t,n),gt({sortable:r,name:"choose",originalEvent:t}),Ke(te,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){Dd(te,f.trim(),di)}),xe(l,"dragover",to),xe(l,"mousemove",to),xe(l,"touchmove",to),xe(l,"mouseup",r._onDrop),xe(l,"touchend",r._onDrop),xe(l,"touchcancel",r._onDrop),Cd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,te.draggable=!0),bt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ca||pn))){if(ue.eventCanceled){this._onDrop();return}xe(l,"mouseup",r._disableDelayedDrag),xe(l,"touchend",r._disableDelayedDrag),xe(l,"touchcancel",r._disableDelayedDrag),xe(l,"mousemove",r._delayedDragTouchMoveHandler),xe(l,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&xe(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){te&&di(te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;be(t,"mouseup",this._disableDelayedDrag),be(t,"touchend",this._disableDelayedDrag),be(t,"touchcancel",this._disableDelayedDrag),be(t,"mousemove",this._delayedDragTouchMoveHandler),be(t,"touchmove",this._delayedDragTouchMoveHandler),be(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?xe(document,"pointermove",this._onTouchMove):n?xe(document,"touchmove",this._onTouchMove):xe(document,"mousemove",this._onTouchMove):(xe(te,"dragend",this),xe(ze,"dragstart",this._onDragStart));try{document.selection?Nr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Po=!1,ze&&te){bt("dragStarted",this,{evt:n}),this.nativeDraggable&&xe(document,"dragover",s1);var a=this.options;!t&&Ke(te,a.dragClass,!1),Ke(te,a.ghostClass,!0),ue.active=this,t&&this._appendGhost(),gt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(zt){this._lastX=zt.clientX,this._lastY=zt.clientY,Hd();for(var t=document.elementFromPoint(zt.clientX,zt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(zt.clientX,zt.clientY),t!==n);)n=t;if(te.parentNode[pt]._isOutsideThisEl(t),n)do{if(n[pt]){var a=void 0;if(a=n[pt]._onDragOver({clientX:zt.clientX,clientY:zt.clientY,target:t,rootEl:n}),a&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);zd()}},_onTouchMove:function(t){if(eo){var n=this.options,a=n.fallbackTolerance,r=n.fallbackOffset,i=t.touches?t.touches[0]:t,s=me&&qn(me,!0),l=me&&s&&s.a,c=me&&s&&s.d,d=Tr&&ht&&_d(ht),f=(i.clientX-eo.clientX+r.x)/(l||1)+(d?d[0]-li[0]:0)/(l||1),p=(i.clientY-eo.clientY+r.y)/(c||1)+(d?d[1]-li[1]:0)/(c||1);if(!ue.active&&!Po){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(gt({rootEl:Je,name:"add",toEl:Je,fromEl:ze,originalEvent:t}),gt({sortable:this,name:"remove",toEl:Je,originalEvent:t}),gt({rootEl:Je,name:"sort",toEl:Je,fromEl:ze,originalEvent:t}),gt({sortable:this,name:"sort",toEl:Je,originalEvent:t})),ut&&ut.save()):xt!==Ro&&xt>=0&&(gt({sortable:this,name:"update",toEl:Je,originalEvent:t}),gt({sortable:this,name:"sort",toEl:Je,originalEvent:t})),ue.active&&((xt==null||xt===-1)&&(xt=Ro,Pn=Aa),gt({sortable:this,name:"end",toEl:Je,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){bt("nulling",this),ze=te=Je=me=$n=Qe=gr=Rn=eo=zt=_a=xt=Pn=Ro=Aa=Bo=Ra=ut=br=ue.dragged=ue.ghost=ue.clone=ue.active=null,Sr.forEach(function(t){t.checked=!0}),Sr.length=si=ii=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":te&&(this._onDragOver(t),i1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,a=this.el.children,r=0,i=a.length,s=this.options;ra.right+r||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+r}function u1(e,t,n,a,r,i,s,l){var c=a?e.clientY:e.clientX,d=a?n.height:n.width,f=a?n.top:n.left,p=a?n.bottom:n.right,h=!1;if(!s){if(l&&xrf+d*i/2:cp-xr)return-Ra}else if(c>f+d*(1-r)/2&&cp-d*i/2)?c>f+d/2?1:-1:0}function f1(e){return Ye(te)1&&(he.forEach(function(l){i.addAnimationState({target:l,rect:yt?He(l):s}),ai(l),l.fromRect=s,a.removeAnimationState(l)}),yt=!1,y1(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(n){var a=n.sortable,r=n.isOwner,i=n.insertion,s=n.activeSortable,l=n.parentEl,c=n.putSortable,d=this.options;if(i){if(r&&s._hideClone(),La=!1,d.animation&&he.length>1&&(yt||!r&&!s.options.sort&&!c)){var f=He(Me,!1,!0,!0);he.forEach(function(h){h!==Me&&(Bd(h,f),l.appendChild(h))}),yt=!0}if(!r)if(yt||Ar(),he.length>1){var p=Dr;s._showClone(a),s.options.animation&&!Dr&&p&&St.forEach(function(h){s.addAnimationState({target:h,rect:ja}),h.fromRect=ja,h.thisAnimationDuration=null})}else s._showClone(a)}},dragOverAnimationCapture:function(n){var a=n.dragRect,r=n.isOwner,i=n.activeSortable;if(he.forEach(function(l){l.thisAnimationDuration=null}),i.options.animation&&!r&&i.multiDrag.isMultiDrag){ja=Rt({},a);var s=qn(Me,!0);ja.top-=s.f,ja.left-=s.e}},dragOverAnimationComplete:function(){yt&&(yt=!1,Ar())},drop:function(n){var a=n.originalEvent,r=n.rootEl,i=n.parentEl,s=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,d=n.putSortable,f=d||this.sortable;if(a){var p=this.options,h=i.children;if(!Mo)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ke(Me,p.selectedClass,!~he.indexOf(Me)),~he.indexOf(Me))he.splice(he.indexOf(Me),1),Fa=null,Da({sortable:s,rootEl:r,name:"deselect",targetEl:Me,originalEvt:a});else{if(he.push(Me),Da({sortable:s,rootEl:r,name:"select",targetEl:Me,originalEvt:a}),a.shiftKey&&Fa&&s.el.contains(Fa)){var v=Ye(Fa),u=Ye(Me);if(~v&&~u&&v!==u){var m,y;for(u>v?(y=v,m=u):(y=u,m=v+1);y1){var b=He(Me),g=Ye(Me,":not(."+this.options.selectedClass+")");if(!La&&p.animation&&(Me.thisAnimationDuration=null),f.captureAnimationState(),!La&&(p.animation&&(Me.fromRect=b,he.forEach(function(O){if(O.thisAnimationDuration=null,O!==Me){var S=yt?He(O):b;O.fromRect=S,f.addAnimationState({target:O,rect:S})}})),Ar(),he.forEach(function(O){h[g]?i.insertBefore(O,h[g]):i.appendChild(O),g++}),c===Ye(Me))){var T=!1;he.forEach(function(O){if(O.sortableIndex!==Ye(O)){T=!0;return}}),T&&l("update")}he.forEach(function(O){ai(O)}),f.animateAll()}Gt=f}(r===i||d&&d.lastPutMode!=="clone")&&St.forEach(function(O){O.parentNode&&O.parentNode.removeChild(O)})}},nullingGlobal:function(){this.isMultiDrag=Mo=!1,St.length=0},destroyGlobal:function(){this._deselectMultiDrag(),be(document,"pointerup",this._deselectMultiDrag),be(document,"mouseup",this._deselectMultiDrag),be(document,"touchend",this._deselectMultiDrag),be(document,"keydown",this._checkKeyDown),be(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Mo<"u"&&Mo)&&Gt===this.sortable&&!(n&&Ht(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;he.length;){var a=he[0];Ke(a,this.options.selectedClass,!1),he.shift(),Da({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:a,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Rt(e,{pluginName:"multiDrag",utils:{select:function(n){var a=n.parentNode[pt];!a||!a.options.multiDrag||~he.indexOf(n)||(Gt&&Gt!==a&&(Gt.multiDrag._deselectMultiDrag(),Gt=a),Ke(n,a.options.selectedClass,!0),he.push(n))},deselect:function(n){var a=n.parentNode[pt],r=he.indexOf(n);!a||!a.options.multiDrag||!~r||(Ke(n,a.options.selectedClass,!1),he.splice(r,1))}},eventProperties:function(){var n=this,a=[],r=[];return he.forEach(function(i){a.push({multiDragElement:i,index:i.sortableIndex});var s;yt&&i!==Me?s=-1:yt?s=Ye(i,":not(."+n.options.selectedClass+")"):s=Ye(i),r.push({multiDragElement:i,index:s})}),{items:Hy(he),clones:[].concat(St),oldIndicies:a,newIndicies:r}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function y1(e,t){he.forEach(function(n,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function Kd(e,t){St.forEach(function(n,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function Ar(){he.forEach(function(e){e!==Me&&e.parentNode&&e.parentNode.removeChild(e)})}ue.mount(new m1),ue.mount(bi,gi);const E1=Up(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:b1,Sortable:ue,Swap:v1,default:ue},Symbol.toStringTag,{value:"Module"})));(function(e,t){(function(a,r){e.exports=r(o,E1)})(typeof self<"u"?self:So,function(n,a){return function(r){var i={};function s(l){if(i[l])return i[l].exports;var c=i[l]={i:l,l:!1,exports:{}};return r[l].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=r,s.c=i,s.d=function(l,c,d){s.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:d})},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},s.t=function(l,c){if(c&1&&(l=s(l)),c&8||c&4&&typeof l=="object"&&l&&l.__esModule)return l;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:l}),c&2&&typeof l!="string")for(var f in l)s.d(d,f,function(p){return l[p]}.bind(null,f));return d},s.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return s.d(c,"a",c),c},s.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},s.p="",s(s.s="fb15")}({"00ee":function(r,i,s){var l=s("b622"),c=l("toStringTag"),d={};d[c]="z",r.exports=String(d)==="[object z]"},"0366":function(r,i,s){var l=s("1c0b");r.exports=function(c,d,f){if(l(c),d===void 0)return c;switch(f){case 0:return function(){return c.call(d)};case 1:return function(p){return c.call(d,p)};case 2:return function(p,h){return c.call(d,p,h)};case 3:return function(p,h,v){return c.call(d,p,h,v)}}return function(){return c.apply(d,arguments)}}},"057f":function(r,i,s){var l=s("fc6a"),c=s("241c").f,d={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(h){try{return c(h)}catch{return f.slice()}};r.exports.f=function(v){return f&&d.call(v)=="[object Window]"?p(v):c(l(v))}},"06cf":function(r,i,s){var l=s("83ab"),c=s("d1e7"),d=s("5c6c"),f=s("fc6a"),p=s("c04e"),h=s("5135"),v=s("0cfb"),u=Object.getOwnPropertyDescriptor;i.f=l?u:function(y,b){if(y=f(y),b=p(b,!0),v)try{return u(y,b)}catch{}if(h(y,b))return d(!c.f.call(y,b),y[b])}},"0cfb":function(r,i,s){var l=s("83ab"),c=s("d039"),d=s("cc12");r.exports=!l&&!c(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(r,i,s){var l=s("23e7"),c=s("d58f").left,d=s("a640"),f=s("ae40"),p=d("reduce"),h=f("reduce",{1:0});l({target:"Array",proto:!0,forced:!p||!h},{reduce:function(u){return c(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(r,i,s){var l=s("c6b6"),c=s("9263");r.exports=function(d,f){var p=d.exec;if(typeof p=="function"){var h=p.call(d,f);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(l(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(d,f)}},"159b":function(r,i,s){var l=s("da84"),c=s("fdbc"),d=s("17c2"),f=s("9112");for(var p in c){var h=l[p],v=h&&h.prototype;if(v&&v.forEach!==d)try{f(v,"forEach",d)}catch{v.forEach=d}}},"17c2":function(r,i,s){var l=s("b727").forEach,c=s("a640"),d=s("ae40"),f=c("forEach"),p=d("forEach");r.exports=!f||!p?function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(r,i,s){var l=s("d066");r.exports=l("document","documentElement")},"1c0b":function(r,i){r.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(r,i,s){var l=s("b622"),c=l("iterator"),d=!1;try{var f=0,p={next:function(){return{done:!!f++}},return:function(){d=!0}};p[c]=function(){return this},Array.from(p,function(){throw 2})}catch{}r.exports=function(h,v){if(!v&&!d)return!1;var u=!1;try{var m={};m[c]=function(){return{next:function(){return{done:u=!0}}}},h(m)}catch{}return u}},"1d80":function(r,i){r.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(r,i,s){var l=s("d039"),c=s("b622"),d=s("2d00"),f=c("species");r.exports=function(p){return d>=51||!l(function(){var h=[],v=h.constructor={};return v[f]=function(){return{foo:1}},h[p](Boolean).foo!==1})}},"23cb":function(r,i,s){var l=s("a691"),c=Math.max,d=Math.min;r.exports=function(f,p){var h=l(f);return h<0?c(h+p,0):d(h,p)}},"23e7":function(r,i,s){var l=s("da84"),c=s("06cf").f,d=s("9112"),f=s("6eeb"),p=s("ce4e"),h=s("e893"),v=s("94ca");r.exports=function(u,m){var y=u.target,b=u.global,g=u.stat,T,O,S,N,I,D;if(b?O=l:g?O=l[y]||p(y,{}):O=(l[y]||{}).prototype,O)for(S in m){if(I=m[S],u.noTargetGet?(D=c(O,S),N=D&&D.value):N=O[S],T=v(b?S:y+(g?".":"#")+S,u.forced),!T&&N!==void 0){if(typeof I==typeof N)continue;h(I,N)}(u.sham||N&&N.sham)&&d(I,"sham",!0),f(O,S,I,u)}}},"241c":function(r,i,s){var l=s("ca84"),c=s("7839"),d=c.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(p){return l(p,d)}},"25f0":function(r,i,s){var l=s("6eeb"),c=s("825a"),d=s("d039"),f=s("ad6d"),p="toString",h=RegExp.prototype,v=h[p],u=d(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),m=v.name!=p;(u||m)&&l(RegExp.prototype,p,function(){var b=c(this),g=String(b.source),T=b.flags,O=String(T===void 0&&b instanceof RegExp&&!("flags"in h)?f.call(b):T);return"/"+g+"/"+O},{unsafe:!0})},"2ca0":function(r,i,s){var l=s("23e7"),c=s("06cf").f,d=s("50c4"),f=s("5a34"),p=s("1d80"),h=s("ab13"),v=s("c430"),u="".startsWith,m=Math.min,y=h("startsWith"),b=!v&&!y&&!!function(){var g=c(String.prototype,"startsWith");return g&&!g.writable}();l({target:"String",proto:!0,forced:!b&&!y},{startsWith:function(T){var O=String(p(this));f(T);var S=d(m(arguments.length>1?arguments[1]:void 0,O.length)),N=String(T);return u?u.call(O,N,S):O.slice(S,S+N.length)===N}})},"2d00":function(r,i,s){var l=s("da84"),c=s("342f"),d=l.process,f=d&&d.versions,p=f&&f.v8,h,v;p?(h=p.split("."),v=h[0]+h[1]):c&&(h=c.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=c.match(/Chrome\/(\d+)/),h&&(v=h[1]))),r.exports=v&&+v},"342f":function(r,i,s){var l=s("d066");r.exports=l("navigator","userAgent")||""},"35a1":function(r,i,s){var l=s("f5df"),c=s("3f8c"),d=s("b622"),f=d("iterator");r.exports=function(p){if(p!=null)return p[f]||p["@@iterator"]||c[l(p)]}},"37e8":function(r,i,s){var l=s("83ab"),c=s("9bf2"),d=s("825a"),f=s("df75");r.exports=l?Object.defineProperties:function(h,v){d(h);for(var u=f(v),m=u.length,y=0,b;m>y;)c.f(h,b=u[y++],v[b]);return h}},"3bbe":function(r,i,s){var l=s("861d");r.exports=function(c){if(!l(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(r,i,s){var l=s("6547").charAt,c=s("69f3"),d=s("7dd0"),f="String Iterator",p=c.set,h=c.getterFor(f);d(String,"String",function(v){p(this,{type:f,string:String(v),index:0})},function(){var u=h(this),m=u.string,y=u.index,b;return y>=m.length?{value:void 0,done:!0}:(b=l(m,y),u.index+=b.length,{value:b,done:!1})})},"3f8c":function(r,i){r.exports={}},4160:function(r,i,s){var l=s("23e7"),c=s("17c2");l({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},"428f":function(r,i,s){var l=s("da84");r.exports=l},"44ad":function(r,i,s){var l=s("d039"),c=s("c6b6"),d="".split;r.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return c(f)=="String"?d.call(f,""):Object(f)}:Object},"44d2":function(r,i,s){var l=s("b622"),c=s("7c73"),d=s("9bf2"),f=l("unscopables"),p=Array.prototype;p[f]==null&&d.f(p,f,{configurable:!0,value:c(null)}),r.exports=function(h){p[f][h]=!0}},"44e7":function(r,i,s){var l=s("861d"),c=s("c6b6"),d=s("b622"),f=d("match");r.exports=function(p){var h;return l(p)&&((h=p[f])!==void 0?!!h:c(p)=="RegExp")}},4930:function(r,i,s){var l=s("d039");r.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},"4d64":function(r,i,s){var l=s("fc6a"),c=s("50c4"),d=s("23cb"),f=function(p){return function(h,v,u){var m=l(h),y=c(m.length),b=d(u,y),g;if(p&&v!=v){for(;y>b;)if(g=m[b++],g!=g)return!0}else for(;y>b;b++)if((p||b in m)&&m[b]===v)return p||b||0;return!p&&-1}};r.exports={includes:f(!0),indexOf:f(!1)}},"4de4":function(r,i,s){var l=s("23e7"),c=s("b727").filter,d=s("1dde"),f=s("ae40"),p=d("filter"),h=f("filter");l({target:"Array",proto:!0,forced:!p||!h},{filter:function(u){return c(this,u,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(r,i,s){var l=s("0366"),c=s("7b0b"),d=s("9bdd"),f=s("e95a"),p=s("50c4"),h=s("8418"),v=s("35a1");r.exports=function(m){var y=c(m),b=typeof this=="function"?this:Array,g=arguments.length,T=g>1?arguments[1]:void 0,O=T!==void 0,S=v(y),N=0,I,D,A,_,M,K;if(O&&(T=l(T,g>2?arguments[2]:void 0,2)),S!=null&&!(b==Array&&f(S)))for(_=S.call(y),M=_.next,D=new b;!(A=M.call(_)).done;N++)K=O?d(_,T,[A.value,N],!0):A.value,h(D,N,K);else for(I=p(y.length),D=new b(I);I>N;N++)K=O?T(y[N],N):y[N],h(D,N,K);return D.length=N,D}},"4fad":function(r,i,s){var l=s("23e7"),c=s("6f53").entries;l({target:"Object",stat:!0},{entries:function(f){return c(f)}})},"50c4":function(r,i,s){var l=s("a691"),c=Math.min;r.exports=function(d){return d>0?c(l(d),9007199254740991):0}},5135:function(r,i){var s={}.hasOwnProperty;r.exports=function(l,c){return s.call(l,c)}},5319:function(r,i,s){var l=s("d784"),c=s("825a"),d=s("7b0b"),f=s("50c4"),p=s("a691"),h=s("1d80"),v=s("8aa5"),u=s("14c3"),m=Math.max,y=Math.min,b=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,T=/\$([$&'`]|\d\d?)/g,O=function(S){return S===void 0?S:String(S)};l("replace",2,function(S,N,I,D){var A=D.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_=D.REPLACE_KEEPS_$0,M=A?"$":"$0";return[function(j,H){var W=h(this),Q=j?.[S];return Q!==void 0?Q.call(j,W,H):N.call(String(W),j,H)},function(B,j){if(!A&&_||typeof j=="string"&&j.indexOf(M)===-1){var H=I(N,B,this,j);if(H.done)return H.value}var W=c(B),Q=String(this),ne=typeof j=="function";ne||(j=String(j));var we=W.global;if(we){var Ze=W.unicode;W.lastIndex=0}for(var se=[];;){var fe=u(W,Q);if(fe===null||(se.push(fe),!we))break;var ye=String(fe[0]);ye===""&&(W.lastIndex=v(Q,f(W.lastIndex),Ze))}for(var Se="",Pe=0,ke=0;ke=Pe&&(Se+=Q.slice(Pe,ft)+ot,Pe=ft+je.length)}return Se+Q.slice(Pe)}];function K(B,j,H,W,Q,ne){var we=H+B.length,Ze=W.length,se=T;return Q!==void 0&&(Q=d(Q),se=g),N.call(ne,se,function(fe,ye){var Se;switch(ye.charAt(0)){case"$":return"$";case"&":return B;case"`":return j.slice(0,H);case"'":return j.slice(we);case"<":Se=Q[ye.slice(1,-1)];break;default:var Pe=+ye;if(Pe===0)return fe;if(Pe>Ze){var ke=b(Pe/10);return ke===0?fe:ke<=Ze?W[ke-1]===void 0?ye.charAt(1):W[ke-1]+ye.charAt(1):fe}Se=W[Pe-1]}return Se===void 0?"":Se})}})},5692:function(r,i,s){var l=s("c430"),c=s("c6cd");(r.exports=function(d,f){return c[d]||(c[d]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(r,i,s){var l=s("d066"),c=s("241c"),d=s("7418"),f=s("825a");r.exports=l("Reflect","ownKeys")||function(h){var v=c.f(f(h)),u=d.f;return u?v.concat(u(h)):v}},"5a34":function(r,i,s){var l=s("44e7");r.exports=function(c){if(l(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(r,i){r.exports=function(s,l){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:l}}},"5db7":function(r,i,s){var l=s("23e7"),c=s("a2bf"),d=s("7b0b"),f=s("50c4"),p=s("1c0b"),h=s("65f0");l({target:"Array",proto:!0},{flatMap:function(u){var m=d(this),y=f(m.length),b;return p(u),b=h(m,0),b.length=c(b,m,m,y,0,1,u,arguments.length>1?arguments[1]:void 0),b}})},6547:function(r,i,s){var l=s("a691"),c=s("1d80"),d=function(f){return function(p,h){var v=String(c(p)),u=l(h),m=v.length,y,b;return u<0||u>=m?f?"":void 0:(y=v.charCodeAt(u),y<55296||y>56319||u+1===m||(b=v.charCodeAt(u+1))<56320||b>57343?f?v.charAt(u):y:f?v.slice(u,u+2):(y-55296<<10)+(b-56320)+65536)}};r.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(r,i,s){var l=s("861d"),c=s("e8b5"),d=s("b622"),f=d("species");r.exports=function(p,h){var v;return c(p)&&(v=p.constructor,typeof v=="function"&&(v===Array||c(v.prototype))?v=void 0:l(v)&&(v=v[f],v===null&&(v=void 0))),new(v===void 0?Array:v)(h===0?0:h)}},"69f3":function(r,i,s){var l=s("7f9a"),c=s("da84"),d=s("861d"),f=s("9112"),p=s("5135"),h=s("f772"),v=s("d012"),u=c.WeakMap,m,y,b,g=function(A){return b(A)?y(A):m(A,{})},T=function(A){return function(_){var M;if(!d(_)||(M=y(_)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return M}};if(l){var O=new u,S=O.get,N=O.has,I=O.set;m=function(A,_){return I.call(O,A,_),_},y=function(A){return S.call(O,A)||{}},b=function(A){return N.call(O,A)}}else{var D=h("state");v[D]=!0,m=function(A,_){return f(A,D,_),_},y=function(A){return p(A,D)?A[D]:{}},b=function(A){return p(A,D)}}r.exports={set:m,get:y,has:b,enforce:g,getterFor:T}},"6eeb":function(r,i,s){var l=s("da84"),c=s("9112"),d=s("5135"),f=s("ce4e"),p=s("8925"),h=s("69f3"),v=h.get,u=h.enforce,m=String(String).split("String");(r.exports=function(y,b,g,T){var O=T?!!T.unsafe:!1,S=T?!!T.enumerable:!1,N=T?!!T.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!d(g,"name")&&c(g,"name",b),u(g).source=m.join(typeof b=="string"?b:"")),y===l){S?y[b]=g:f(b,g);return}else O?!N&&y[b]&&(S=!0):delete y[b];S?y[b]=g:c(y,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||p(this)})},"6f53":function(r,i,s){var l=s("83ab"),c=s("df75"),d=s("fc6a"),f=s("d1e7").f,p=function(h){return function(v){for(var u=d(v),m=c(u),y=m.length,b=0,g=[],T;y>b;)T=m[b++],(!l||f.call(u,T))&&g.push(h?[T,u[T]]:u[T]);return g}};r.exports={entries:p(!0),values:p(!1)}},"73d9":function(r,i,s){var l=s("44d2");l("flatMap")},7418:function(r,i){i.f=Object.getOwnPropertySymbols},"746f":function(r,i,s){var l=s("428f"),c=s("5135"),d=s("e538"),f=s("9bf2").f;r.exports=function(p){var h=l.Symbol||(l.Symbol={});c(h,p)||f(h,p,{value:d.f(p)})}},7839:function(r,i){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(r,i,s){var l=s("1d80");r.exports=function(c){return Object(l(c))}},"7c73":function(r,i,s){var l=s("825a"),c=s("37e8"),d=s("7839"),f=s("d012"),p=s("1be4"),h=s("cc12"),v=s("f772"),u=">",m="<",y="prototype",b="script",g=v("IE_PROTO"),T=function(){},O=function(A){return m+b+u+A+m+"/"+b+u},S=function(A){A.write(O("")),A.close();var _=A.parentWindow.Object;return A=null,_},N=function(){var A=h("iframe"),_="java"+b+":",M;return A.style.display="none",p.appendChild(A),A.src=String(_),M=A.contentWindow.document,M.open(),M.write(O("document.F=Object")),M.close(),M.F},I,D=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch{}D=I?S(I):N();for(var A=d.length;A--;)delete D[y][d[A]];return D()};f[g]=!0,r.exports=Object.create||function(_,M){var K;return _!==null?(T[y]=l(_),K=new T,T[y]=null,K[g]=_):K=D(),M===void 0?K:c(K,M)}},"7dd0":function(r,i,s){var l=s("23e7"),c=s("9ed3"),d=s("e163"),f=s("d2bb"),p=s("d44e"),h=s("9112"),v=s("6eeb"),u=s("b622"),m=s("c430"),y=s("3f8c"),b=s("ae93"),g=b.IteratorPrototype,T=b.BUGGY_SAFARI_ITERATORS,O=u("iterator"),S="keys",N="values",I="entries",D=function(){return this};r.exports=function(A,_,M,K,B,j,H){c(M,_,K);var W=function(ke){if(ke===B&&se)return se;if(!T&&ke in we)return we[ke];switch(ke){case S:return function(){return new M(this,ke)};case N:return function(){return new M(this,ke)};case I:return function(){return new M(this,ke)}}return function(){return new M(this)}},Q=_+" Iterator",ne=!1,we=A.prototype,Ze=we[O]||we["@@iterator"]||B&&we[B],se=!T&&Ze||W(B),fe=_=="Array"&&we.entries||Ze,ye,Se,Pe;if(fe&&(ye=d(fe.call(new A)),g!==Object.prototype&&ye.next&&(!m&&d(ye)!==g&&(f?f(ye,g):typeof ye[O]!="function"&&h(ye,O,D)),p(ye,Q,!0,!0),m&&(y[Q]=D))),B==N&&Ze&&Ze.name!==N&&(ne=!0,se=function(){return Ze.call(this)}),(!m||H)&&we[O]!==se&&h(we,O,se),y[_]=se,B)if(Se={values:W(N),keys:j?se:W(S),entries:W(I)},H)for(Pe in Se)(T||ne||!(Pe in we))&&v(we,Pe,Se[Pe]);else l({target:_,proto:!0,forced:T||ne},Se);return Se}},"7f9a":function(r,i,s){var l=s("da84"),c=s("8925"),d=l.WeakMap;r.exports=typeof d=="function"&&/native code/.test(c(d))},"825a":function(r,i,s){var l=s("861d");r.exports=function(c){if(!l(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(r,i,s){var l=s("d039");r.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(r,i,s){var l=s("c04e"),c=s("9bf2"),d=s("5c6c");r.exports=function(f,p,h){var v=l(p);v in f?c.f(f,v,d(0,h)):f[v]=h}},"861d":function(r,i){r.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(r,i,s){var l,c,d;(function(f,p){c=[],l=p,d=typeof l=="function"?l.apply(i,c):l,d!==void 0&&(r.exports=d)})(typeof self<"u"?self:this,function(){function f(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(I){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,u=h.exec(I.stack)||v.exec(I.stack),m=u&&u[1]||!1,y=u&&u[2]||!1,b=document.location.href.replace(document.location.hash,""),g,T,O,S=document.getElementsByTagName("script");m===b&&(g=document.documentElement.outerHTML,T=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*