diff --git a/src/Cli/Laravel/composer.json b/src/Cli/Laravel/composer.json index 573a2496..2712c437 100644 --- a/src/Cli/Laravel/composer.json +++ b/src/Cli/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-cli": "^1.15", - "php-flasher/flasher-laravel": "^1.15" + "php-flasher/flasher-cli": "^1.15.1", + "php-flasher/flasher-laravel": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Cli/Prime/composer.json b/src/Cli/Prime/composer.json index c0aeb0f3..849e9d25 100644 --- a/src/Cli/Prime/composer.json +++ b/src/Cli/Prime/composer.json @@ -38,7 +38,7 @@ "require": { "php": ">=5.3", "ext-mbstring": "*", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Cli/Symfony/composer.json b/src/Cli/Symfony/composer.json index 787bf994..dc0b9de8 100644 --- a/src/Cli/Symfony/composer.json +++ b/src/Cli/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-cli": "^1.15", - "php-flasher/flasher-symfony": "^1.15" + "php-flasher/flasher-cli": "^1.15.1", + "php-flasher/flasher-symfony": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Laravel/Resources/config.php b/src/Laravel/Resources/config.php index 3c468211..a3e05a48 100644 --- a/src/Laravel/Resources/config.php +++ b/src/Laravel/Resources/config.php @@ -50,7 +50,7 @@ return array( | field of this option. */ 'root_script' => array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ), @@ -70,7 +70,7 @@ return array( | the stylesheet file in the 'local' field of this option. */ 'styles' => array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css', 'local' => '/vendor/flasher/flasher.min.css', ), diff --git a/src/Laravel/composer.json b/src/Laravel/composer.json index c7987c85..77dcd2d3 100644 --- a/src/Laravel/composer.json +++ b/src/Laravel/composer.json @@ -38,7 +38,7 @@ "require": { "php": ">=5.3", "illuminate/support": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Laravel/Resources/config.php b/src/Noty/Laravel/Resources/config.php index 0b23b5d7..469c87a4 100644 --- a/src/Noty/Laravel/Resources/config.php +++ b/src/Noty/Laravel/Resources/config.php @@ -8,7 +8,7 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js', ), 'local' => array( '/vendor/flasher/flasher-noty.min.js', @@ -16,7 +16,7 @@ return array( ), 'styles' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css', ), 'local' => array( '/vendor/flasher/flasher-noty.min.css', diff --git a/src/Noty/Laravel/composer.json b/src/Noty/Laravel/composer.json index 10fc602b..ffd82b8d 100644 --- a/src/Noty/Laravel/composer.json +++ b/src/Noty/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.15", - "php-flasher/flasher-noty": "^1.15" + "php-flasher/flasher-laravel": "^1.15.1", + "php-flasher/flasher-noty": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Prime/NotyPlugin.php b/src/Noty/Prime/NotyPlugin.php index 9b601b12..1948e95d 100644 --- a/src/Noty/Prime/NotyPlugin.php +++ b/src/Noty/Prime/NotyPlugin.php @@ -18,7 +18,7 @@ class NotyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js', ), 'local' => array( '/vendor/flasher/flasher-noty.min.js', @@ -33,7 +33,7 @@ class NotyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css', ), 'local' => array( '/vendor/flasher/flasher-noty.min.css', diff --git a/src/Noty/Prime/composer.json b/src/Noty/Prime/composer.json index 2f911cac..879c3bf4 100644 --- a/src/Noty/Prime/composer.json +++ b/src/Noty/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Noty/Symfony/Resources/config/config.yaml b/src/Noty/Symfony/Resources/config/config.yaml index 2aa17aae..80939ebf 100644 --- a/src/Noty/Symfony/Resources/config/config.yaml +++ b/src/Noty/Symfony/Resources/config/config.yaml @@ -1,12 +1,12 @@ flasher_noty: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js' local: - '/vendor/flasher/flasher-noty.min.js' styles: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css' local: - '/vendor/flasher/flasher-noty.min.css' diff --git a/src/Noty/Symfony/composer.json b/src/Noty/Symfony/composer.json index 134a4003..f02ecfb3 100644 --- a/src/Noty/Symfony/composer.json +++ b/src/Noty/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-noty": "^1.15", - "php-flasher/flasher-symfony": "^1.15" + "php-flasher/flasher-noty": "^1.15.1", + "php-flasher/flasher-symfony": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Laravel/Resources/config.php b/src/Notyf/Laravel/Resources/config.php index a8555ede..cc26e6a2 100644 --- a/src/Notyf/Laravel/Resources/config.php +++ b/src/Notyf/Laravel/Resources/config.php @@ -8,7 +8,7 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.js', @@ -16,7 +16,7 @@ return array( ), 'styles' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.css', diff --git a/src/Notyf/Laravel/composer.json b/src/Notyf/Laravel/composer.json index 671b77be..7e74398e 100644 --- a/src/Notyf/Laravel/composer.json +++ b/src/Notyf/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.15", - "php-flasher/flasher-notyf": "^1.15" + "php-flasher/flasher-laravel": "^1.15.1", + "php-flasher/flasher-notyf": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Prime/NotyfPlugin.php b/src/Notyf/Prime/NotyfPlugin.php index 4fb80abb..86382b07 100644 --- a/src/Notyf/Prime/NotyfPlugin.php +++ b/src/Notyf/Prime/NotyfPlugin.php @@ -18,7 +18,7 @@ class NotyfPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.js', @@ -33,7 +33,7 @@ class NotyfPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css', ), 'local' => array( '/vendor/flasher/flasher-notyf.min.css', diff --git a/src/Notyf/Prime/composer.json b/src/Notyf/Prime/composer.json index b250b716..5e110147 100644 --- a/src/Notyf/Prime/composer.json +++ b/src/Notyf/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Notyf/Symfony/Resources/config/config.yaml b/src/Notyf/Symfony/Resources/config/config.yaml index ff7d23bc..8c660230 100644 --- a/src/Notyf/Symfony/Resources/config/config.yaml +++ b/src/Notyf/Symfony/Resources/config/config.yaml @@ -1,11 +1,11 @@ flasher_notyf: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js' local: - '/vendor/flasher/flasher-notyf.min.js' styles: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css' local: - '/vendor/flasher/flasher-notyf.min.css' diff --git a/src/Notyf/Symfony/composer.json b/src/Notyf/Symfony/composer.json index 95cda4e4..8a22ef4e 100644 --- a/src/Notyf/Symfony/composer.json +++ b/src/Notyf/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-notyf": "^1.15", - "php-flasher/flasher-symfony": "^1.15" + "php-flasher/flasher-notyf": "^1.15.1", + "php-flasher/flasher-symfony": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Laravel/Resources/config.php b/src/Pnotify/Laravel/Resources/config.php index 1d6ed5eb..7dde9ea5 100644 --- a/src/Pnotify/Laravel/Resources/config.php +++ b/src/Pnotify/Laravel/Resources/config.php @@ -8,7 +8,7 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.js', @@ -16,7 +16,7 @@ return array( ), 'styles' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.css', diff --git a/src/Pnotify/Laravel/composer.json b/src/Pnotify/Laravel/composer.json index 8ebbd1d5..b03664bd 100644 --- a/src/Pnotify/Laravel/composer.json +++ b/src/Pnotify/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.15", - "php-flasher/flasher-pnotify": "^1.15" + "php-flasher/flasher-laravel": "^1.15.1", + "php-flasher/flasher-pnotify": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Prime/PnotifyPlugin.php b/src/Pnotify/Prime/PnotifyPlugin.php index 78093066..d339521e 100644 --- a/src/Pnotify/Prime/PnotifyPlugin.php +++ b/src/Pnotify/Prime/PnotifyPlugin.php @@ -18,7 +18,7 @@ class PnotifyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.js', @@ -33,7 +33,7 @@ class PnotifyPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css', ), 'local' => array( '/vendor/flasher/flasher-pnotify.min.css', diff --git a/src/Pnotify/Prime/composer.json b/src/Pnotify/Prime/composer.json index 51b21d84..2024b7b4 100644 --- a/src/Pnotify/Prime/composer.json +++ b/src/Pnotify/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Pnotify/Symfony/Resources/config/config.yaml b/src/Pnotify/Symfony/Resources/config/config.yaml index d199c49b..657fb037 100644 --- a/src/Pnotify/Symfony/Resources/config/config.yaml +++ b/src/Pnotify/Symfony/Resources/config/config.yaml @@ -1,12 +1,12 @@ flasher_pnotify: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js' local: - '/vendor/flasher/flasher-pnotify.min.js' styles: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css' local: - '/vendor/flasher/flasher-pnotify.min.css' diff --git a/src/Pnotify/Symfony/composer.json b/src/Pnotify/Symfony/composer.json index 278ab7ee..84ccdd89 100644 --- a/src/Pnotify/Symfony/composer.json +++ b/src/Pnotify/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-pnotify": "^1.15", - "php-flasher/flasher-symfony": "^1.15" + "php-flasher/flasher-pnotify": "^1.15.1", + "php-flasher/flasher-symfony": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Prime/Plugin/FlasherPlugin.php b/src/Prime/Plugin/FlasherPlugin.php index 07467ae0..012dcc9b 100644 --- a/src/Prime/Plugin/FlasherPlugin.php +++ b/src/Prime/Plugin/FlasherPlugin.php @@ -45,7 +45,7 @@ final class FlasherPlugin extends Plugin public function getRootScript() { return array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ); } @@ -67,7 +67,7 @@ final class FlasherPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css', ), 'local' => array( '/vendor/flasher/flasher.min.css', @@ -106,6 +106,8 @@ final class FlasherPlugin extends Plugin return array_merge(array( 'default' => $this->getDefault(), 'root_script' => $this->getRootScript(), + 'scripts' => array(), + 'styles' => $this->getStyles(), 'options' => array(), 'use_cdn' => true, 'auto_translate' => true, diff --git a/src/Prime/Resources/assets/flasher.min.js b/src/Prime/Resources/assets/flasher.min.js index d6434521..95fb52fb 100644 --- a/src/Prime/Resources/assets/flasher.min.js +++ b/src/Prime/Resources/assets/flasher.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flasher=e()}(this,(function(){"use strict";function t(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r
'+(null!==(e=n.title)&&void 0!==e?e:n.type)+''+n.message+'
'}}),n})); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flasher=e()}(this,(function(){"use strict";function t(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r
'+(null!==(e=n.title)&&void 0!==e?e:n.type)+''+n.message+'
'}}),n})); diff --git a/src/SweetAlert/Laravel/Resources/config.php b/src/SweetAlert/Laravel/Resources/config.php index 23ce54b5..3b4e4c9b 100644 --- a/src/SweetAlert/Laravel/Resources/config.php +++ b/src/SweetAlert/Laravel/Resources/config.php @@ -8,7 +8,7 @@ return array( 'scripts' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.js', @@ -16,7 +16,7 @@ return array( ), 'styles' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.css', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.css', diff --git a/src/SweetAlert/Laravel/composer.json b/src/SweetAlert/Laravel/composer.json index a045a022..be6da7af 100644 --- a/src/SweetAlert/Laravel/composer.json +++ b/src/SweetAlert/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.15", - "php-flasher/flasher-sweetalert": "^1.15" + "php-flasher/flasher-laravel": "^1.15.1", + "php-flasher/flasher-sweetalert": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js index 13054486..d03368d6 100644 --- a/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js +++ b/src/SweetAlert/Prime/Resources/assets/flasher-sweetalert.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@flasher/flasher")):"function"==typeof define&&define.amd?define(["@flasher/flasher"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).flasher=e.flasher||{},e.flasher.sweetalert=t(e.flasher))}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]{t.previousActiveElement instanceof HTMLElement?(t.previousActiveElement.focus(),t.previousActiveElement=null):document.body&&document.body.focus()},o=o=>new Promise((i=>{if(!o)return i();const s=window.scrollX,r=window.scrollY;t.restoreFocusTimeout=setTimeout((()=>{n(),i()}),e),window.scrollTo(s,r)}));var i={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),a=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},d=e=>{console.error(`${l} ${e}`)},p=[],m=e=>{p.includes(e)||(p.push(e),u(e))},h=(e,t)=>{m(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},f=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,b=e=>g(e)?e.toPromise():Promise.resolve(e),y=e=>e&&Promise.resolve(e)===e,w=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=w();return t?t.querySelector(e):null},C=e=>v(`.${e}`),A=()=>C(r.popup),k=()=>C(r.icon),x=()=>C(r["icon-content"]),B=()=>C(r.title),P=()=>C(r["html-container"]),E=()=>C(r.image),$=()=>C(r["progress-steps"]),T=()=>C(r["validation-message"]),L=()=>v(`.${r.actions} .${r.confirm}`),S=()=>v(`.${r.actions} .${r.cancel}`),O=()=>v(`.${r.actions} .${r.deny}`),j=()=>C(r["input-label"]),M=()=>v(`.${r.loader}`),I=()=>C(r.actions),H=()=>C(r.footer),q=()=>C(r["timer-progress-bar"]),D=()=>C(r.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',N=()=>{const e=A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),o=parseInt(t.getAttribute("tabindex"));return n>o?1:n"-1"!==e.getAttribute("tabindex")));return[...new Set(t.concat(o))].filter((e=>se(e)))},F=()=>z(document.body,r.shown)&&!z(document.body,r["toast-shown"])&&!z(document.body,r["no-backdrop"]),_=()=>A()&&z(A(),r.toast),R=()=>A().hasAttribute("data-loading"),U=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html");Array.from(n.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(n.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},z=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t{Array.from(e.classList).forEach((n=>{Object.values(r).includes(n)||Object.values(a).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))},K=(e,t,n)=>{if(W(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return void u(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof t.customClass[n]}"`);Q(e,t.customClass[n])}},Y=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},Z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},J=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},Q=(e,t)=>{J(e,t,!0)},X=(e,t)=>{J(e,t,!1)},G=(e,t)=>{const n=Array.from(e.children);for(let e=0;e{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?`${n}px`:n:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ne=e=>{e&&(e.style.display="none")},oe=(e,t,n,o)=>{const i=e.querySelector(t);i&&(i.style[n]=o)},ie=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ne(e)},se=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),re=()=>!se(L())&&!se(O())&&!se(S()),ae=e=>!!(e.scrollHeight>e.clientHeight),le=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=q();se(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},ue=()=>{const e=q(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},de=()=>"undefined"==typeof window||"undefined"==typeof document,pe=`\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n`.replace(/(^|\n)\s*/g,""),me=()=>{const e=w();return!!e&&(e.remove(),X([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)},he=()=>{t.currentInstance.resetValidationMessage()},fe=()=>{const e=A(),t=G(e,r.input),n=G(e,r.file),o=e.querySelector(`.${r.range} input`),i=e.querySelector(`.${r.range} output`),s=G(e,r.select),a=e.querySelector(`.${r.checkbox} input`),l=G(e,r.textarea);t.oninput=he,n.onchange=he,s.onchange=he,a.onchange=he,l.oninput=he,o.oninput=()=>{he(),i.value=o.value},o.onchange=()=>{he(),i.value=o.value}},ge=e=>"string"==typeof e?document.querySelector(e):e,be=e=>{const t=A();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},ye=e=>{"rtl"===window.getComputedStyle(e).direction&&Q(w(),r.rtl)},we=e=>{const t=me();if(de())return void d("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=r.container,t&&Q(n,r["no-transition"]),U(n,pe);const o=ge(e.target);o.appendChild(n),be(e),ye(o),fe()},ve=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ce(e,t):e&&U(t,e)},Ce=(e,t)=>{e.jquery?Ae(t,e):U(t,e.toString())},Ae=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=(()=>{if(de())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),xe=(e,t)=>{const n=I(),o=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(n):ne(n),K(n,t,"actions"),Be(n,o,t),U(o,t.loaderHtml),K(o,t,"loader")};function Be(e,t,n){const o=L(),i=O(),s=S();Ee(o,"confirm",n),Ee(i,"deny",n),Ee(s,"cancel",n),Pe(o,i,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,o),e.insertBefore(i,o)):(e.insertBefore(s,t),e.insertBefore(i,t),e.insertBefore(o,t)))}function Pe(e,t,n,o){o.buttonsStyling?(Q([e,t,n],r.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,Q(e,r["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,Q(t,r["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,Q(n,r["default-outline"]))):X([e,t,n],r.styled)}function Ee(e,t,n){ie(e,n[`show${c(t)}Button`],"inline-block"),U(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=r[t],K(e,n,`${t}Button`),Q(e,n[`${t}ButtonClass`])}const $e=(e,t)=>{const n=D();U(n,t.closeButtonHtml),K(n,t,"closeButton"),ie(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)},Te=(e,t)=>{const n=w();n&&(Le(n,t.backdrop),Se(n,t.position),Oe(n,t.grow),K(n,t,"container"))};function Le(e,t){"string"==typeof t?e.style.background=t:t||Q([document.documentElement,document.body],r["no-backdrop"])}function Se(e,t){t in r?Q(e,r[t]):(u('The "position" parameter is not valid, defaulting to "center"'),Q(e,r.center))}function Oe(e,t){if(t&&"string"==typeof t){const n=`grow-${t}`;n in r&&Q(e,r[n])}}const je=["input","file","range","select","radio","checkbox","textarea"],Me=(e,t)=>{const n=A(),o=i.innerParams.get(e),s=!o||t.input!==o.input;je.forEach((e=>{const o=G(n,r[e]);qe(e,t.inputAttributes),o.className=r[e],s&&ne(o)})),t.input&&(s&&Ie(t),De(t))},Ie=e=>{if(!Re[e.input])return void d(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Fe(e.input),n=Re[e.input](t,e);te(t),e.inputAutoFocus&&setTimeout((()=>{Z(n)}))},He=e=>{for(let t=0;t{const n=Y(A(),e);if(n){He(n);for(const e in t)n.setAttribute(e,t[e])}},De=e=>{const t=Fe(e.input);"object"==typeof e.customClass&&Q(t,e.customClass.input)},Ve=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Ne=(e,t,n)=>{if(n.inputLabel){e.id=r.input;const o=document.createElement("label"),i=r["input-label"];o.setAttribute("for",e.id),o.className=i,"object"==typeof n.customClass&&Q(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Fe=e=>G(A(),r[e]||r.input),_e=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:y(t)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Re={};Re.text=Re.email=Re.password=Re.number=Re.tel=Re.url=(e,t)=>(_e(e,t.inputValue),Ne(e,e,t),Ve(e,t),e.type=t.input,e),Re.file=(e,t)=>(Ne(e,e,t),Ve(e,t),e),Re.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return _e(n,t.inputValue),n.type=t.input,_e(o,t.inputValue),Ne(n,e,t),e},Re.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");U(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ne(e,e,t),e},Re.radio=e=>(e.textContent="",e),Re.checkbox=(e,t)=>{const n=Y(A(),"checkbox");n.value="1",n.id=r.checkbox,n.checked=Boolean(t.inputValue);const o=e.querySelector("span");return U(o,t.inputPlaceholder),n},Re.textarea=(e,t)=>{_e(e,t.inputValue),Ve(e,t),Ne(e,e,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(A()).width);new MutationObserver((()=>{const o=e.offsetWidth+n(e);A().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ue=(e,t)=>{const n=P();K(n,t,"htmlContainer"),t.html?(ve(t.html,n),te(n,"block")):t.text?(n.textContent=t.text,te(n,"block")):ne(n),Me(e,t)},ze=(e,t)=>{const n=H();n&&(ie(n,t.footer),t.footer&&ve(t.footer,n),K(n,t,"footer"))},We=(e,t)=>{const n=i.innerParams.get(e),o=k();if(n&&t.icon===n.icon)return Qe(o,t),void Ke(o,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ne(o);te(o),Qe(o,t),Ke(o,t),Q(o,t.showClass.icon)}else ne(o)},Ke=(e,t)=>{for(const n in a)t.icon!==n&&X(e,a[n]);Q(e,a[t.icon]),Xe(e,t),Ye(),K(e,t,"icon")},Ye=()=>{const e=A(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e\n \n
    \n
    \n',Je='\n \n \n \n \n',Qe=(e,t)=>{let n,o=e.innerHTML;t.iconHtml?n=Ge(t.iconHtml):"success"===t.icon?(n=Ze,o=o.replace(/ style=".*?"/g,"")):n="error"===t.icon?Je:Ge({question:"?",warning:"!",info:"i"}[t.icon]),o.trim()!==n.trim()&&U(e,n)},Xe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},Ge=e=>`
    ${e}
    `,et=(e,t)=>{const n=E();n&&(t.imageUrl?(te(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),ee(n,"width",t.imageWidth),ee(n,"height",t.imageHeight),n.className=r.image,K(n,t,"image")):ne(n))},tt=(e,t)=>{const n=w(),o=A();if(n&&o){if(t.toast){ee(n,"width",t.width),o.style.width="100%";const e=M();e&&o.insertBefore(e,k())}else ee(o,"width",t.width);ee(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),ne(T()),nt(o,t)}},nt=(e,t)=>{const n=t.showClass||{};e.className=`${r.popup} ${se(e)?n.popup:""}`,t.toast?(Q([document.documentElement,document.body],r["toast-shown"]),Q(e,r.toast)):Q(e,r.modal),K(e,t,"popup"),"string"==typeof t.customClass&&Q(e,t.customClass),t.icon&&Q(e,r[`icon-${t.icon}`])},ot=(e,t)=>{const n=$();if(!n)return;const{progressSteps:o,currentProgressStep:i}=t;o&&0!==o.length&&void 0!==i?(te(n),n.textContent="",i>=o.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach(((e,s)=>{const a=it(e);if(n.appendChild(a),s===i&&Q(a,r["active-progress-step"]),s!==o.length-1){const e=st(t);n.appendChild(e)}}))):ne(n)},it=e=>{const t=document.createElement("li");return Q(t,r["progress-step"]),U(t,e),t},st=e=>{const t=document.createElement("li");return Q(t,r["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},rt=(e,t)=>{const n=B();n&&(ie(n,t.title||t.titleText,"block"),t.title&&ve(t.title,n),t.titleText&&(n.innerText=t.titleText),K(n,t,"title"))},at=(e,t)=>{tt(e,t),Te(e,t),ot(e,t),We(e,t),et(e,t),rt(e,t),$e(e,t),Ue(e,t),xe(e,t),ze(e,t),"function"==typeof t.didRender&&t.didRender(A())},lt=()=>se(A()),ct=()=>L()&&L().click(),ut=()=>O()&&O().click(),dt=()=>S()&&S().click(),pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),mt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ht=(e,t,n,o)=>{mt(t),n.toast||(t.keydownHandler=t=>yt(e,t,o),t.keydownTarget=n.keydownListenerCapture?window:A(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},ft=(e,t)=>{const n=N();if(n.length)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();A().focus()},gt=["ArrowRight","ArrowDown"],bt=["ArrowLeft","ArrowUp"],yt=(e,t,n)=>{const o=i.innerParams.get(e);o&&(t.isComposing||229===t.keyCode||(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?wt(e,t,o):"Tab"===t.key?vt(t):[...gt,...bt].includes(t.key)?Ct(t.key):"Escape"===t.key&&At(t,o,n)))},wt=(e,t,n)=>{if(f(n.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ct(),t.preventDefault()}},vt=e=>{const t=e.target,n=N();let o=-1;for(let e=0;e{const t=[L(),O(),S()];if(document.activeElement instanceof HTMLElement&&!t.includes(document.activeElement))return;const n=gt.includes(e)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;for(let e=0;e{f(t.allowEscapeKey)&&(e.preventDefault(),n(pt.esc))};var kt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xt=()=>{Array.from(document.body.children).forEach((e=>{e===w()||e.contains(w())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))},Bt=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Pt=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!z(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",Q(document.body,r.iosfix),$t(),Et()}},Et=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;A().scrollHeight>window.innerHeight-e&&(w().style.paddingBottom=`${e}px`)}},$t=()=>{const e=w();let t;e.ontouchstart=e=>{t=Tt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Tt=e=>{const t=e.target,n=w();return!(Lt(e)||St(e)||t!==n&&(ae(n)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||ae(P())&&P().contains(t)))},Lt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,St=e=>e.touches&&e.touches.length>1,Ot=()=>{if(z(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},jt=()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let Mt=null;const It=()=>{null===Mt&&document.body.scrollHeight>window.innerHeight&&(Mt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Mt+jt()}px`)},Ht=()=>{null!==Mt&&(document.body.style.paddingRight=`${Mt}px`,Mt=null)};function qt(e,n,i,s){_()?Wt(e,s):(o(i).then((()=>Wt(e,s))),mt(t)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),F()&&(Ht(),Ot(),Bt()),Dt()}function Dt(){X([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function Vt(e){e=Rt(e);const t=kt.swalPromiseResolve.get(this),n=Nt(this);this.isAwaitingPromise?e.isDismissed||(_t(this),t(e)):n&&t(e)}const Nt=e=>{const t=A();if(!t)return!1;const n=i.innerParams.get(e);if(!n||z(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),Q(t,n.hideClass.popup);const o=w();return X(o,n.showClass.backdrop),Q(o,n.hideClass.backdrop),Ut(e,t,n),!0};function Ft(e){const t=kt.swalPromiseReject.get(this);_t(this),t&&t(e)}const _t=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,i.innerParams.get(e)||e._destroy())},Rt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,n)=>{const o=w(),i=ke&&le(t);"function"==typeof n.willClose&&n.willClose(t),i?zt(e,t,o,n.returnFocus,n.didClose):qt(e,o,n.returnFocus,n.didClose)},zt=(e,n,o,i,s)=>{t.swalCloseEventFinishedCallback=qt.bind(null,e,o,i,s),n.addEventListener(ke,(function(e){e.target===n&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback)}))},Wt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Kt=e=>{let t=A();t||new zo,t=A();const n=M();_()?ne(k()):Yt(t,e),te(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Yt=(e,t)=>{const n=I(),o=M();!t&&se(L())&&(t=L()),te(n),t&&(ne(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),Q([e,n],r.loading)},Zt=(e,t)=>{"select"===t.input||"radio"===t.input?en(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(g(t.inputValue)||y(t.inputValue))&&(Kt(L()),tn(e,t))},Jt=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Qt(n);case"radio":return Xt(n);case"file":return Gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Qt=e=>e.checked?1:0,Xt=e=>e.checked?e.value:null,Gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,en=(e,t)=>{const n=A(),o=e=>{nn[t.input](n,on(e),t)};g(t.inputOptions)||y(t.inputOptions)?(Kt(L()),b(t.inputOptions).then((t=>{e.hideLoading(),o(t)}))):"object"==typeof t.inputOptions?o(t.inputOptions):d("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},tn=(e,t)=>{const n=e.getInput();ne(n),b(t.inputValue).then((o=>{n.value="number"===t.input?`${parseFloat(o)||0}`:`${o}`,te(n),n.focus(),e.hideLoading()})).catch((t=>{d(`Error in inputValue promise: ${t}`),n.value="",te(n),n.focus(),e.hideLoading()}))},nn={select:(e,t,n)=>{const o=G(e,r.select),i=(e,t,o)=>{const i=document.createElement("option");i.value=o,U(i,t),i.selected=sn(o,n.inputValue),e.appendChild(i)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,o.appendChild(e),n.forEach((t=>i(e,t[1],t[0])))}else i(o,n,t)})),o.focus()},radio:(e,t,n)=>{const o=G(e,r.radio);t.forEach((e=>{const t=e[0],i=e[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=r.radio,s.value=t,sn(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");U(l,i),l.className=r.label,a.appendChild(s),a.appendChild(l),o.appendChild(a)}));const i=o.querySelectorAll("input");i.length&&i[0].focus()}},on=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let o=e;"object"==typeof o&&(o=on(o)),t.push([n,o])})):Object.keys(e).forEach((n=>{let o=e[n];"object"==typeof o&&(o=on(o)),t.push([n,o])})),t},sn=(e,t)=>t&&t.toString()===e.toString(),rn=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.input?cn(e,"confirm"):hn(e,!0)},an=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?cn(e,"deny"):dn(e,!1)},ln=(e,t)=>{e.disableButtons(),t(pt.cancel)},cn=(e,t)=>{const n=i.innerParams.get(e);if(!n.input)return void d(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const o=Jt(e,n);n.inputValidator?un(e,o,t):e.getInput().checkValidity()?"deny"===t?dn(e,o):hn(e,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},un=(e,t,n)=>{const o=i.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>b(o.inputValidator(t,o.validationMessage)))).then((o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?dn(e,t):hn(e,t)}))},dn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnDeny&&Kt(O()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),_t(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>mn(e||void 0,t)))):e.close({isDenied:!0,value:t})},pn=(e,t)=>{e.close({isConfirmed:!0,value:t})},mn=(e,t)=>{e.rejectPromise(t)},hn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Kt(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preConfirm(t,n.validationMessage)))).then((n=>{se(T())||!1===n?(e.hideLoading(),_t(e)):pn(e,void 0===n?t:n)})).catch((t=>mn(e||void 0,t)))):pn(e,t)};function fn(){const e=i.innerParams.get(this);if(!e)return;const t=i.domCache.get(this);ne(t.loader),_()?e.icon&&te(k()):gn(t),X([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const gn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):re()&&ne(e.actions)};function bn(){const e=i.innerParams.get(this),t=i.domCache.get(this);return t?Y(t.popup,e.input):null}function yn(e,t,n){const o=i.domCache.get(e);t.forEach((e=>{o[e].disabled=n}))}function wn(e,t){if(e)if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;eObject.prototype.hasOwnProperty.call(Pn,e),Sn=e=>-1!==En.indexOf(e),On=e=>$n[e],jn=e=>{Ln(e)||u(`Unknown parameter "${e}"`)},Mn=e=>{Tn.includes(e)&&u(`The parameter "${e}" is incompatible with toasts`)},In=e=>{const t=On(e);t&&h(e,t)},Hn=e=>{!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)jn(t),e.toast&&Mn(t),In(t)};function qn(e){const t=A(),n=i.innerParams.get(this);if(!t||z(t,n.hideClass.popup))return void u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Dn(e),s=Object.assign({},n,o);at(this,s),i.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Dn=e=>{const t={};return Object.keys(e).forEach((n=>{Sn(n)?t[n]=e[n]:u(`Invalid parameter to update: ${n}`)})),t};function Vn(){const e=i.domCache.get(this),n=i.innerParams.get(this);n?(e.popup&&t.swalCloseEventFinishedCallback&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),Nn(this)):Fn(this)}const Nn=e=>{Fn(e),delete e.params,delete t.keydownHandler,delete t.keydownTarget,delete t.currentInstance},Fn=e=>{e.isAwaitingPromise?(_n(i,e),e.isAwaitingPromise=!0):(_n(kt,e),_n(i,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},_n=(e,t)=>{for(const n in e)e[n].delete(t)};var Rn=Object.freeze({__proto__:null,_destroy:Vn,close:Vt,closeModal:Vt,closePopup:Vt,closeToast:Vt,disableButtons:Cn,disableInput:kn,disableLoading:fn,enableButtons:vn,enableInput:An,getInput:bn,handleAwaitingPromise:_t,hideLoading:fn,rejectPromise:Ft,resetValidationMessage:Bn,showValidationMessage:xn,update:qn});const Un=(e,t,n)=>{i.innerParams.get(e).toast?zn(e,t,n):(Yn(t),Zn(t),Jn(e,t,n))},zn=(e,t,n)=>{t.popup.onclick=()=>{const t=i.innerParams.get(e);t&&(Wn(t)||t.timer||t.input)||n(pt.close)}},Wn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Kn=!1;const Yn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Kn=!0)}}},Zn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Kn=!0)}}},Jn=(e,t,n)=>{t.container.onclick=o=>{const s=i.innerParams.get(e);Kn?Kn=!1:o.target===t.container&&f(s.allowOutsideClick)&&n(pt.backdrop)}},Qn=e=>"object"==typeof e&&e.jquery,Xn=e=>e instanceof Element||Qn(e),Gn=e=>{const t={};return"object"!=typeof e[0]||Xn(e[0])?["title","html","icon"].forEach(((n,o)=>{const i=e[o];"string"==typeof i||Xn(i)?t[n]=i:void 0!==i&&d(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)})):Object.assign(t,e[0]),t};function eo(){const e=this;for(var t=arguments.length,n=new Array(t),o=0;ot.timeout&&t.timeout.getTimerLeft(),oo=()=>{if(t.timeout)return ue(),t.timeout.stop()},io=()=>{if(t.timeout){const e=t.timeout.start();return ce(e),e}},so=()=>{const e=t.timeout;return e&&(e.running?oo():io())},ro=e=>{if(t.timeout){const n=t.timeout.increase(e);return ce(n,!0),n}},ao=()=>t.timeout&&t.timeout.isRunning();let lo=!1;const co={};function uo(){co[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,lo||(document.body.addEventListener("click",po),lo=!0)}const po=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in co){const n=t.getAttribute(e);if(n)return void co[e].fire({template:n})}};var mo=Object.freeze({__proto__:null,argsToParams:Gn,bindClickHandler:uo,clickCancel:dt,clickConfirm:ct,clickDeny:ut,enableLoading:Kt,fire:eo,getActions:I,getCancelButton:S,getCloseButton:D,getConfirmButton:L,getContainer:w,getDenyButton:O,getFocusableElements:N,getFooter:H,getHtmlContainer:P,getIcon:k,getIconContent:x,getImage:E,getInputLabel:j,getLoader:M,getPopup:A,getProgressSteps:$,getTimerLeft:no,getTimerProgressBar:q,getTitle:B,getValidationMessage:T,increaseTimer:ro,isDeprecatedParameter:On,isLoading:R,isTimerRunning:ao,isUpdatableParameter:Sn,isValidParameter:Ln,isVisible:lt,mixin:to,resumeTimer:io,showLoading:Kt,stopTimer:oo,toggleTimer:so});class ho{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const fo=["swal-title","swal-html","swal-footer"],go=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return xo(n),Object.assign(bo(n),yo(n),wo(n),vo(n),Co(n),Ao(n),ko(n,fo))},bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Bo(e,["name","value"]);const n=e.getAttribute("name"),o=e.getAttribute("value");"boolean"==typeof Pn[n]?t[n]="false"!==o:"object"==typeof Pn[n]?t[n]=JSON.parse(o):t[n]=o})),t},yo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),o=e.getAttribute("value");t[n]=new Function(`return ${o}`)()})),t},wo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Bo(e,["type","color","aria-label"]);const n=e.getAttribute("type");t[`${n}ButtonText`]=e.innerHTML,t[`show${c(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},vo=e=>{const t={},n=e.querySelector("swal-image");return n&&(Bo(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Co=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Bo(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ao=e=>{const t={},n=e.querySelector("swal-input");n&&(Bo(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach((e=>{Bo(e,["value"]);const n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},ko=(e,t)=>{const n={};for(const o in t){const i=t[o],s=e.querySelector(i);s&&(Bo(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},xo=e=>{const t=fo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||u(`Unrecognized element <${n}>`)}))},Bo=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&u([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},Po=10,Eo=e=>{const n=w(),o=A();"function"==typeof e.willOpen&&e.willOpen(o);const i=window.getComputedStyle(document.body).overflowY;So(n,o,e),setTimeout((()=>{To(n,o)}),Po),F()&&(Lo(n,e.scrollbarPadding,i),xt()),_()||t.previousActiveElement||(t.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(n,r["no-transition"])},$o=e=>{const t=A();if(e.target!==t)return;const n=w();t.removeEventListener(ke,$o),n.style.overflowY="auto"},To=(e,t)=>{ke&&le(t)?(e.style.overflowY="hidden",t.addEventListener(ke,$o)):e.style.overflowY="auto"},Lo=(e,t,n)=>{Pt(),t&&"hidden"!==n&&It(),setTimeout((()=>{e.scrollTop=0}))},So=(e,t,n)=>{Q(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{Q(t,n.showClass.popup),t.style.removeProperty("opacity")}),Po),Q([document.documentElement,document.body],r.shown),n.heightAuto&&n.backdrop&&!n.toast&&Q([document.documentElement,document.body],r["height-auto"])};var Oo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function jo(e){e.inputValidator||Object.keys(Oo).forEach((t=>{e.input===t&&(e.inputValidator=Oo[t])}))}function Mo(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Io(e){jo(e),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Mo(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
    ")),we(e)}let Ho;class qo{constructor(){if("undefined"==typeof window)return;Ho=this;for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};Hn(Object.assign({},n,e)),t.currentInstance&&(t.currentInstance._destroy(),F()&&Bt()),t.currentInstance=Ho;const o=Vo(e,n);Io(o),Object.freeze(o),t.timeout&&(t.timeout.stop(),delete t.timeout),clearTimeout(t.restoreFocusTimeout);const s=No(Ho);return at(Ho,o),i.innerParams.set(Ho,o),Do(Ho,s,o)}then(e){return i.promise.get(this).then(e)}finally(e){return i.promise.get(this).finally(e)}}const Do=(e,n,o)=>new Promise(((i,s)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t})};kt.swalPromiseResolve.set(e,i),kt.swalPromiseReject.set(e,s),n.confirmButton.onclick=()=>{rn(e)},n.denyButton.onclick=()=>{an(e)},n.cancelButton.onclick=()=>{ln(e,r)},n.closeButton.onclick=()=>{r(pt.close)},Un(e,n,r),ht(e,t,o,r),Zt(e,o),Eo(o),Fo(t,o,r),_o(n,o),setTimeout((()=>{n.container.scrollTop=0}))})),Vo=(e,t)=>{const n=go(e),o=Object.assign({},Pn,t,n,e);return o.showClass=Object.assign({},Pn.showClass,o.showClass),o.hideClass=Object.assign({},Pn.hideClass,o.hideClass),o},No=e=>{const t={popup:A(),container:w(),actions:I(),confirmButton:L(),denyButton:O(),cancelButton:S(),loader:M(),closeButton:D(),validationMessage:T(),progressSteps:$()};return i.domCache.set(e,t),t},Fo=(e,t,n)=>{const o=q();ne(o),t.timer&&(e.timeout=new ho((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(o),K(o,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},_o=(e,t)=>{t.toast||(f(t.allowEnterKey)?Ro(e,t)||ft(-1,1):Uo())},Ro=(e,t)=>t.focusDeny&&se(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&se(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!se(e.confirmButton)||(e.confirmButton.focus(),0)),Uo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}qo.prototype.disableButtons=Cn,qo.prototype.enableButtons=vn,qo.prototype.getInput=bn,qo.prototype.disableInput=kn,qo.prototype.enableInput=An,qo.prototype.hideLoading=fn,qo.prototype.disableLoading=fn,qo.prototype.showValidationMessage=xn,qo.prototype.resetValidationMessage=Bn,qo.prototype.close=Vt,qo.prototype.closePopup=Vt,qo.prototype.closeModal=Vt,qo.prototype.closeToast=Vt,qo.prototype.rejectPromise=Ft,qo.prototype.update=qn,qo.prototype._destroy=Vn,Object.assign(qo,mo),Object.keys(Rn).forEach((e=>{qo[e]=function(){return Ho&&Ho[e]?Ho[e](...arguments):null}})),qo.DismissReason=pt,qo.version="11.7.10";const zo=qo;return zo.default=zo,zo}(),void 0!==i&&i.Sweetalert2&&(i.swal=i.sweetAlert=i.Swal=i.SweetAlert=i.Sweetalert2)}(r);var a=s(r.exports),l=new(function(){function e(){this.queue=[]}return e.prototype.success=function(e,t,n){this.flash("success",e,t,n)},e.prototype.info=function(e,t,n){this.flash("info",e,t,n)},e.prototype.warning=function(e,t,n){this.flash("warning",e,t,n)},e.prototype.error=function(e,t,n){this.flash("error",e,t,n)},e.prototype.flash=function(e,t,n,o){var i=this.createNotification(e,t,n,o);this.renderOptions({}),this.render({notification:i})},e.prototype.createNotification=function(e,t,n,o){if("object"==typeof e&&(e=(o=e).type),"object"==typeof t&&(t=(o=t).message),"object"==typeof n&&(n=(o=n).title),void 0===t)throw new Error("message option is required");return{type:e||"info",message:t,title:n,options:o}},e.prototype.render=function(e){var n,o=e.notification,i=o.options;return o.type=o.type||"info",i=t(t({},i),{icon:(null==i?void 0:i.icon)||o.type,text:(null==i?void 0:i.text)||o.message}),null===(n=this.swalToastr)||void 0===n?void 0:n.fire(i).then((function(t){window.dispatchEvent(new CustomEvent("flasher:sweetalert:promise",{detail:{promise:t,envelope:e}}))}))},e.prototype.renderOptions=function(e){this.swalToastr=this.swalToastr||a.mixin(t({timer:e.timer||5e3,timerProgressBar:e.timerProgressBar||!0},e)),document.addEventListener("turbo:before-cache",(function(){var e;a.isVisible()&&(null===(e=a.getPopup())||void 0===e||e.style.setProperty("animation-duration","0ms"),a.close())}))},e.prototype.addEnvelope=function(e){var t;null===(t=this.queue)||void 0===t||t.push(e)},e.prototype.resetQueue=function(){this.queue=[]},e.prototype.renderQueue=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e0&&i[i.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]{t.previousActiveElement instanceof HTMLElement?(t.previousActiveElement.focus(),t.previousActiveElement=null):document.body&&document.body.focus()},o=o=>new Promise((i=>{if(!o)return i();const s=window.scrollX,r=window.scrollY;t.restoreFocusTimeout=setTimeout((()=>{n(),i()}),e),window.scrollTo(s,r)}));var i={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const s="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),a=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),u=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},d=e=>{console.error(`${l} ${e}`)},p=[],m=e=>{p.includes(e)||(p.push(e),u(e))},h=(e,t)=>{m(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},f=e=>"function"==typeof e?e():e,g=e=>e&&"function"==typeof e.toPromise,b=e=>g(e)?e.toPromise():Promise.resolve(e),y=e=>e&&Promise.resolve(e)===e,w=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=w();return t?t.querySelector(e):null},C=e=>v(`.${e}`),A=()=>C(r.popup),k=()=>C(r.icon),x=()=>C(r["icon-content"]),B=()=>C(r.title),P=()=>C(r["html-container"]),E=()=>C(r.image),$=()=>C(r["progress-steps"]),T=()=>C(r["validation-message"]),L=()=>v(`.${r.actions} .${r.confirm}`),S=()=>v(`.${r.actions} .${r.cancel}`),O=()=>v(`.${r.actions} .${r.deny}`),j=()=>C(r["input-label"]),M=()=>v(`.${r.loader}`),I=()=>C(r.actions),H=()=>C(r.footer),q=()=>C(r["timer-progress-bar"]),D=()=>C(r.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',N=()=>{const e=A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),o=parseInt(t.getAttribute("tabindex"));return n>o?1:n"-1"!==e.getAttribute("tabindex")));return[...new Set(t.concat(o))].filter((e=>se(e)))},F=()=>z(document.body,r.shown)&&!z(document.body,r["toast-shown"])&&!z(document.body,r["no-backdrop"]),_=()=>A()&&z(A(),r.toast),R=()=>A().hasAttribute("data-loading"),U=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html");Array.from(n.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(n.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},z=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t{Array.from(e.classList).forEach((n=>{Object.values(r).includes(n)||Object.values(a).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))},K=(e,t,n)=>{if(W(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return void u(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof t.customClass[n]}"`);Q(e,t.customClass[n])}},Y=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},Z=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},J=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},Q=(e,t)=>{J(e,t,!0)},X=(e,t)=>{J(e,t,!1)},G=(e,t)=>{const n=Array.from(e.children);for(let e=0;e{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?`${n}px`:n:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ne=e=>{e&&(e.style.display="none")},oe=(e,t,n,o)=>{const i=e.querySelector(t);i&&(i.style[n]=o)},ie=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ne(e)},se=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),re=()=>!se(L())&&!se(O())&&!se(S()),ae=e=>!!(e.scrollHeight>e.clientHeight),le=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=q();se(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"}),10))},ue=()=>{const e=q(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},de=()=>"undefined"==typeof window||"undefined"==typeof document,pe=`\n
    \n \n
      \n
      \n \n

      \n
      \n \n \n
      \n \n \n
      \n \n
      \n \n \n
      \n
      \n
      \n \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n`.replace(/(^|\n)\s*/g,""),me=()=>{const e=w();return!!e&&(e.remove(),X([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)},he=()=>{t.currentInstance.resetValidationMessage()},fe=()=>{const e=A(),t=G(e,r.input),n=G(e,r.file),o=e.querySelector(`.${r.range} input`),i=e.querySelector(`.${r.range} output`),s=G(e,r.select),a=e.querySelector(`.${r.checkbox} input`),l=G(e,r.textarea);t.oninput=he,n.onchange=he,s.onchange=he,a.onchange=he,l.oninput=he,o.oninput=()=>{he(),i.value=o.value},o.onchange=()=>{he(),i.value=o.value}},ge=e=>"string"==typeof e?document.querySelector(e):e,be=e=>{const t=A();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},ye=e=>{"rtl"===window.getComputedStyle(e).direction&&Q(w(),r.rtl)},we=e=>{const t=me();if(de())return void d("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=r.container,t&&Q(n,r["no-transition"]),U(n,pe);const o=ge(e.target);o.appendChild(n),be(e),ye(o),fe()},ve=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Ce(e,t):e&&U(t,e)},Ce=(e,t)=>{e.jquery?Ae(t,e):U(t,e.toString())},Ae=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=(()=>{if(de())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),xe=(e,t)=>{const n=I(),o=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(n):ne(n),K(n,t,"actions"),Be(n,o,t),U(o,t.loaderHtml),K(o,t,"loader")};function Be(e,t,n){const o=L(),i=O(),s=S();Ee(o,"confirm",n),Ee(i,"deny",n),Ee(s,"cancel",n),Pe(o,i,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,o),e.insertBefore(i,o)):(e.insertBefore(s,t),e.insertBefore(i,t),e.insertBefore(o,t)))}function Pe(e,t,n,o){o.buttonsStyling?(Q([e,t,n],r.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,Q(e,r["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,Q(t,r["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,Q(n,r["default-outline"]))):X([e,t,n],r.styled)}function Ee(e,t,n){ie(e,n[`show${c(t)}Button`],"inline-block"),U(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=r[t],K(e,n,`${t}Button`),Q(e,n[`${t}ButtonClass`])}const $e=(e,t)=>{const n=D();n&&(U(n,t.closeButtonHtml||""),K(n,t,"closeButton"),ie(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Te=(e,t)=>{const n=w();n&&(Le(n,t.backdrop),Se(n,t.position),Oe(n,t.grow),K(n,t,"container"))};function Le(e,t){"string"==typeof t?e.style.background=t:t||Q([document.documentElement,document.body],r["no-backdrop"])}function Se(e,t){t in r?Q(e,r[t]):(u('The "position" parameter is not valid, defaulting to "center"'),Q(e,r.center))}function Oe(e,t){if(t&&"string"==typeof t){const n=`grow-${t}`;n in r&&Q(e,r[n])}}const je=["input","file","range","select","radio","checkbox","textarea"],Me=(e,t)=>{const n=A(),o=i.innerParams.get(e),s=!o||t.input!==o.input;je.forEach((e=>{const o=G(n,r[e]);qe(e,t.inputAttributes),o.className=r[e],s&&ne(o)})),t.input&&(s&&Ie(t),De(t))},Ie=e=>{if(!Re[e.input])return void d(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Fe(e.input),n=Re[e.input](t,e);te(t),e.inputAutoFocus&&setTimeout((()=>{Z(n)}))},He=e=>{for(let t=0;t{const n=Y(A(),e);if(n){He(n);for(const e in t)n.setAttribute(e,t[e])}},De=e=>{const t=Fe(e.input);"object"==typeof e.customClass&&Q(t,e.customClass.input)},Ve=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Ne=(e,t,n)=>{if(n.inputLabel){e.id=r.input;const o=document.createElement("label"),i=r["input-label"];o.setAttribute("for",e.id),o.className=i,"object"==typeof n.customClass&&Q(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Fe=e=>G(A(),r[e]||r.input),_e=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:y(t)||u(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Re={};Re.text=Re.email=Re.password=Re.number=Re.tel=Re.url=(e,t)=>(_e(e,t.inputValue),Ne(e,e,t),Ve(e,t),e.type=t.input,e),Re.file=(e,t)=>(Ne(e,e,t),Ve(e,t),e),Re.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return _e(n,t.inputValue),n.type=t.input,_e(o,t.inputValue),Ne(n,e,t),e},Re.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");U(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ne(e,e,t),e},Re.radio=e=>(e.textContent="",e),Re.checkbox=(e,t)=>{const n=Y(A(),"checkbox");n.value="1",n.id=r.checkbox,n.checked=Boolean(t.inputValue);const o=e.querySelector("span");return U(o,t.inputPlaceholder),n},Re.textarea=(e,t)=>{_e(e,t.inputValue),Ve(e,t),Ne(e,e,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(A()).width);new MutationObserver((()=>{const o=e.offsetWidth+n(e);A().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ue=(e,t)=>{const n=P();n&&(K(n,t,"htmlContainer"),t.html?(ve(t.html,n),te(n,"block")):t.text?(n.textContent=t.text,te(n,"block")):ne(n),Me(e,t))},ze=(e,t)=>{const n=H();n&&(ie(n,t.footer),t.footer&&ve(t.footer,n),K(n,t,"footer"))},We=(e,t)=>{const n=i.innerParams.get(e),o=k();if(n&&t.icon===n.icon)return Qe(o,t),void Ke(o,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(a).indexOf(t.icon))return d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ne(o);te(o),Qe(o,t),Ke(o,t),Q(o,t.showClass.icon)}else ne(o)},Ke=(e,t)=>{for(const n in a)t.icon!==n&&X(e,a[n]);Q(e,a[t.icon]),Xe(e,t),Ye(),K(e,t,"icon")},Ye=()=>{const e=A(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e\n \n
      \n
      \n',Je='\n \n \n \n \n',Qe=(e,t)=>{let n,o=e.innerHTML;t.iconHtml?n=Ge(t.iconHtml):"success"===t.icon?(n=Ze,o=o.replace(/ style=".*?"/g,"")):n="error"===t.icon?Je:Ge({question:"?",warning:"!",info:"i"}[t.icon]),o.trim()!==n.trim()&&U(e,n)},Xe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},Ge=e=>`
      ${e}
      `,et=(e,t)=>{const n=E();n&&(t.imageUrl?(te(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),ee(n,"width",t.imageWidth),ee(n,"height",t.imageHeight),n.className=r.image,K(n,t,"image")):ne(n))},tt=(e,t)=>{const n=w(),o=A();if(n&&o){if(t.toast){ee(n,"width",t.width),o.style.width="100%";const e=M();e&&o.insertBefore(e,k())}else ee(o,"width",t.width);ee(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),ne(T()),nt(o,t)}},nt=(e,t)=>{const n=t.showClass||{};e.className=`${r.popup} ${se(e)?n.popup:""}`,t.toast?(Q([document.documentElement,document.body],r["toast-shown"]),Q(e,r.toast)):Q(e,r.modal),K(e,t,"popup"),"string"==typeof t.customClass&&Q(e,t.customClass),t.icon&&Q(e,r[`icon-${t.icon}`])},ot=(e,t)=>{const n=$();if(!n)return;const{progressSteps:o,currentProgressStep:i}=t;o&&0!==o.length&&void 0!==i?(te(n),n.textContent="",i>=o.length&&u("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach(((e,s)=>{const a=it(e);if(n.appendChild(a),s===i&&Q(a,r["active-progress-step"]),s!==o.length-1){const e=st(t);n.appendChild(e)}}))):ne(n)},it=e=>{const t=document.createElement("li");return Q(t,r["progress-step"]),U(t,e),t},st=e=>{const t=document.createElement("li");return Q(t,r["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},rt=(e,t)=>{const n=B();n&&(ie(n,t.title||t.titleText,"block"),t.title&&ve(t.title,n),t.titleText&&(n.innerText=t.titleText),K(n,t,"title"))},at=(e,t)=>{tt(e,t),Te(e,t),ot(e,t),We(e,t),et(e,t),rt(e,t),$e(e,t),Ue(e,t),xe(e,t),ze(e,t),"function"==typeof t.didRender&&t.didRender(A())},lt=()=>se(A()),ct=()=>L()&&L().click(),ut=()=>O()&&O().click(),dt=()=>S()&&S().click(),pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),mt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},ht=(e,t,n,o)=>{mt(t),n.toast||(t.keydownHandler=t=>yt(e,t,o),t.keydownTarget=n.keydownListenerCapture?window:A(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},ft=(e,t)=>{const n=N();if(n.length)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();A().focus()},gt=["ArrowRight","ArrowDown"],bt=["ArrowLeft","ArrowUp"],yt=(e,t,n)=>{const o=i.innerParams.get(e);o&&(t.isComposing||229===t.keyCode||(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?wt(e,t,o):"Tab"===t.key?vt(t):[...gt,...bt].includes(t.key)?Ct(t.key):"Escape"===t.key&&At(t,o,n)))},wt=(e,t,n)=>{if(f(n.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ct(),t.preventDefault()}},vt=e=>{const t=e.target,n=N();let o=-1;for(let e=0;e{const t=[L(),O(),S()];if(document.activeElement instanceof HTMLElement&&!t.includes(document.activeElement))return;const n=gt.includes(e)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;for(let e=0;e{f(t.allowEscapeKey)&&(e.preventDefault(),n(pt.esc))};var kt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xt=()=>{Array.from(document.body.children).forEach((e=>{e===w()||e.contains(w())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))},Bt=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Pt=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!z(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",Q(document.body,r.iosfix),$t(),Et()}},Et=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;A().scrollHeight>window.innerHeight-e&&(w().style.paddingBottom=`${e}px`)}},$t=()=>{const e=w();let t;e.ontouchstart=e=>{t=Tt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Tt=e=>{const t=e.target,n=w();return!(Lt(e)||St(e)||t!==n&&(ae(n)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||ae(P())&&P().contains(t)))},Lt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,St=e=>e.touches&&e.touches.length>1,Ot=()=>{if(z(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},jt=()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let Mt=null;const It=()=>{null===Mt&&document.body.scrollHeight>window.innerHeight&&(Mt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Mt+jt()}px`)},Ht=()=>{null!==Mt&&(document.body.style.paddingRight=`${Mt}px`,Mt=null)};function qt(e,n,i,s){_()?Wt(e,s):(o(i).then((()=>Wt(e,s))),mt(t)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),F()&&(Ht(),Ot(),Bt()),Dt()}function Dt(){X([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function Vt(e){e=Rt(e);const t=kt.swalPromiseResolve.get(this),n=Nt(this);this.isAwaitingPromise?e.isDismissed||(_t(this),t(e)):n&&t(e)}const Nt=e=>{const t=A();if(!t)return!1;const n=i.innerParams.get(e);if(!n||z(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),Q(t,n.hideClass.popup);const o=w();return X(o,n.showClass.backdrop),Q(o,n.hideClass.backdrop),Ut(e,t,n),!0};function Ft(e){const t=kt.swalPromiseReject.get(this);_t(this),t&&t(e)}const _t=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,i.innerParams.get(e)||e._destroy())},Rt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,n)=>{const o=w(),i=ke&&le(t);"function"==typeof n.willClose&&n.willClose(t),i?zt(e,t,o,n.returnFocus,n.didClose):qt(e,o,n.returnFocus,n.didClose)},zt=(e,n,o,i,s)=>{t.swalCloseEventFinishedCallback=qt.bind(null,e,o,i,s),n.addEventListener(ke,(function(e){e.target===n&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback)}))},Wt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Kt=e=>{let t=A();t||new zo,t=A();const n=M();_()?ne(k()):Yt(t,e),te(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Yt=(e,t)=>{const n=I(),o=M();!t&&se(L())&&(t=L()),te(n),t&&(ne(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),Q([e,n],r.loading)},Zt=(e,t)=>{"select"===t.input||"radio"===t.input?en(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(g(t.inputValue)||y(t.inputValue))&&(Kt(L()),tn(e,t))},Jt=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Qt(n);case"radio":return Xt(n);case"file":return Gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Qt=e=>e.checked?1:0,Xt=e=>e.checked?e.value:null,Gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,en=(e,t)=>{const n=A(),o=e=>{nn[t.input](n,on(e),t)};g(t.inputOptions)||y(t.inputOptions)?(Kt(L()),b(t.inputOptions).then((t=>{e.hideLoading(),o(t)}))):"object"==typeof t.inputOptions?o(t.inputOptions):d("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},tn=(e,t)=>{const n=e.getInput();ne(n),b(t.inputValue).then((o=>{n.value="number"===t.input?`${parseFloat(o)||0}`:`${o}`,te(n),n.focus(),e.hideLoading()})).catch((t=>{d(`Error in inputValue promise: ${t}`),n.value="",te(n),n.focus(),e.hideLoading()}))},nn={select:(e,t,n)=>{const o=G(e,r.select),i=(e,t,o)=>{const i=document.createElement("option");i.value=o,U(i,t),i.selected=sn(o,n.inputValue),e.appendChild(i)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,o.appendChild(e),n.forEach((t=>i(e,t[1],t[0])))}else i(o,n,t)})),o.focus()},radio:(e,t,n)=>{const o=G(e,r.radio);t.forEach((e=>{const t=e[0],i=e[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=r.radio,s.value=t,sn(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");U(l,i),l.className=r.label,a.appendChild(s),a.appendChild(l),o.appendChild(a)}));const i=o.querySelectorAll("input");i.length&&i[0].focus()}},on=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let o=e;"object"==typeof o&&(o=on(o)),t.push([n,o])})):Object.keys(e).forEach((n=>{let o=e[n];"object"==typeof o&&(o=on(o)),t.push([n,o])})),t},sn=(e,t)=>t&&t.toString()===e.toString(),rn=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.input?cn(e,"confirm"):hn(e,!0)},an=e=>{const t=i.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?cn(e,"deny"):dn(e,!1)},ln=(e,t)=>{e.disableButtons(),t(pt.cancel)},cn=(e,t)=>{const n=i.innerParams.get(e);if(!n.input)return void d(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const o=Jt(e,n);n.inputValidator?un(e,o,t):e.getInput().checkValidity()?"deny"===t?dn(e,o):hn(e,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},un=(e,t,n)=>{const o=i.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>b(o.inputValidator(t,o.validationMessage)))).then((o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?dn(e,t):hn(e,t)}))},dn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnDeny&&Kt(O()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),_t(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((t=>mn(e||void 0,t)))):e.close({isDenied:!0,value:t})},pn=(e,t)=>{e.close({isConfirmed:!0,value:t})},mn=(e,t)=>{e.rejectPromise(t)},hn=(e,t)=>{const n=i.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Kt(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>b(n.preConfirm(t,n.validationMessage)))).then((n=>{se(T())||!1===n?(e.hideLoading(),_t(e)):pn(e,void 0===n?t:n)})).catch((t=>mn(e||void 0,t)))):pn(e,t)};function fn(){const e=i.innerParams.get(this);if(!e)return;const t=i.domCache.get(this);ne(t.loader),_()?e.icon&&te(k()):gn(t),X([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const gn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):re()&&ne(e.actions)};function bn(){const e=i.innerParams.get(this),t=i.domCache.get(this);return t?Y(t.popup,e.input):null}function yn(e,t,n){const o=i.domCache.get(e);t.forEach((e=>{o[e].disabled=n}))}function wn(e,t){if(e)if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;eObject.prototype.hasOwnProperty.call(Pn,e),Sn=e=>-1!==En.indexOf(e),On=e=>$n[e],jn=e=>{Ln(e)||u(`Unknown parameter "${e}"`)},Mn=e=>{Tn.includes(e)&&u(`The parameter "${e}" is incompatible with toasts`)},In=e=>{const t=On(e);t&&h(e,t)},Hn=e=>{!1===e.backdrop&&e.allowOutsideClick&&u('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)jn(t),e.toast&&Mn(t),In(t)};function qn(e){const t=A(),n=i.innerParams.get(this);if(!t||z(t,n.hideClass.popup))return void u("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Dn(e),s=Object.assign({},n,o);at(this,s),i.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Dn=e=>{const t={};return Object.keys(e).forEach((n=>{Sn(n)?t[n]=e[n]:u(`Invalid parameter to update: ${n}`)})),t};function Vn(){const e=i.domCache.get(this),n=i.innerParams.get(this);n?(e.popup&&t.swalCloseEventFinishedCallback&&(t.swalCloseEventFinishedCallback(),delete t.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),Nn(this)):Fn(this)}const Nn=e=>{Fn(e),delete e.params,delete t.keydownHandler,delete t.keydownTarget,delete t.currentInstance},Fn=e=>{e.isAwaitingPromise?(_n(i,e),e.isAwaitingPromise=!0):(_n(kt,e),_n(i,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},_n=(e,t)=>{for(const n in e)e[n].delete(t)};var Rn=Object.freeze({__proto__:null,_destroy:Vn,close:Vt,closeModal:Vt,closePopup:Vt,closeToast:Vt,disableButtons:Cn,disableInput:kn,disableLoading:fn,enableButtons:vn,enableInput:An,getInput:bn,handleAwaitingPromise:_t,hideLoading:fn,rejectPromise:Ft,resetValidationMessage:Bn,showValidationMessage:xn,update:qn});const Un=(e,t,n)=>{i.innerParams.get(e).toast?zn(e,t,n):(Yn(t),Zn(t),Jn(e,t,n))},zn=(e,t,n)=>{t.popup.onclick=()=>{const t=i.innerParams.get(e);t&&(Wn(t)||t.timer||t.input)||n(pt.close)}},Wn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Kn=!1;const Yn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Kn=!0)}}},Zn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Kn=!0)}}},Jn=(e,t,n)=>{t.container.onclick=o=>{const s=i.innerParams.get(e);Kn?Kn=!1:o.target===t.container&&f(s.allowOutsideClick)&&n(pt.backdrop)}},Qn=e=>"object"==typeof e&&e.jquery,Xn=e=>e instanceof Element||Qn(e),Gn=e=>{const t={};return"object"!=typeof e[0]||Xn(e[0])?["title","html","icon"].forEach(((n,o)=>{const i=e[o];"string"==typeof i||Xn(i)?t[n]=i:void 0!==i&&d(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)})):Object.assign(t,e[0]),t};function eo(){const e=this;for(var t=arguments.length,n=new Array(t),o=0;ot.timeout&&t.timeout.getTimerLeft(),oo=()=>{if(t.timeout)return ue(),t.timeout.stop()},io=()=>{if(t.timeout){const e=t.timeout.start();return ce(e),e}},so=()=>{const e=t.timeout;return e&&(e.running?oo():io())},ro=e=>{if(t.timeout){const n=t.timeout.increase(e);return ce(n,!0),n}},ao=()=>t.timeout&&t.timeout.isRunning();let lo=!1;const co={};function uo(){co[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,lo||(document.body.addEventListener("click",po),lo=!0)}const po=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in co){const n=t.getAttribute(e);if(n)return void co[e].fire({template:n})}};var mo=Object.freeze({__proto__:null,argsToParams:Gn,bindClickHandler:uo,clickCancel:dt,clickConfirm:ct,clickDeny:ut,enableLoading:Kt,fire:eo,getActions:I,getCancelButton:S,getCloseButton:D,getConfirmButton:L,getContainer:w,getDenyButton:O,getFocusableElements:N,getFooter:H,getHtmlContainer:P,getIcon:k,getIconContent:x,getImage:E,getInputLabel:j,getLoader:M,getPopup:A,getProgressSteps:$,getTimerLeft:no,getTimerProgressBar:q,getTitle:B,getValidationMessage:T,increaseTimer:ro,isDeprecatedParameter:On,isLoading:R,isTimerRunning:ao,isUpdatableParameter:Sn,isValidParameter:Ln,isVisible:lt,mixin:to,resumeTimer:io,showLoading:Kt,stopTimer:oo,toggleTimer:so});class ho{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const fo=["swal-title","swal-html","swal-footer"],go=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return xo(n),Object.assign(bo(n),yo(n),wo(n),vo(n),Co(n),Ao(n),ko(n,fo))},bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Bo(e,["name","value"]);const n=e.getAttribute("name"),o=e.getAttribute("value");"boolean"==typeof Pn[n]?t[n]="false"!==o:"object"==typeof Pn[n]?t[n]=JSON.parse(o):t[n]=o})),t},yo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),o=e.getAttribute("value");t[n]=new Function(`return ${o}`)()})),t},wo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Bo(e,["type","color","aria-label"]);const n=e.getAttribute("type");t[`${n}ButtonText`]=e.innerHTML,t[`show${c(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},vo=e=>{const t={},n=e.querySelector("swal-image");return n&&(Bo(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Co=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Bo(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ao=e=>{const t={},n=e.querySelector("swal-input");n&&(Bo(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach((e=>{Bo(e,["value"]);const n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},ko=(e,t)=>{const n={};for(const o in t){const i=t[o],s=e.querySelector(i);s&&(Bo(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},xo=e=>{const t=fo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||u(`Unrecognized element <${n}>`)}))},Bo=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&u([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},Po=10,Eo=e=>{const n=w(),o=A();"function"==typeof e.willOpen&&e.willOpen(o);const i=window.getComputedStyle(document.body).overflowY;So(n,o,e),setTimeout((()=>{To(n,o)}),Po),F()&&(Lo(n,e.scrollbarPadding,i),xt()),_()||t.previousActiveElement||(t.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(n,r["no-transition"])},$o=e=>{const t=A();if(e.target!==t)return;const n=w();t.removeEventListener(ke,$o),n.style.overflowY="auto"},To=(e,t)=>{ke&&le(t)?(e.style.overflowY="hidden",t.addEventListener(ke,$o)):e.style.overflowY="auto"},Lo=(e,t,n)=>{Pt(),t&&"hidden"!==n&&It(),setTimeout((()=>{e.scrollTop=0}))},So=(e,t,n)=>{Q(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{Q(t,n.showClass.popup),t.style.removeProperty("opacity")}),Po),Q([document.documentElement,document.body],r.shown),n.heightAuto&&n.backdrop&&!n.toast&&Q([document.documentElement,document.body],r["height-auto"])};var Oo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function jo(e){e.inputValidator||Object.keys(Oo).forEach((t=>{e.input===t&&(e.inputValidator=Oo[t])}))}function Mo(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(u('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Io(e){jo(e),e.showLoaderOnConfirm&&!e.preConfirm&&u("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Mo(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
      ")),we(e)}let Ho;class qo{constructor(){if("undefined"==typeof window)return;Ho=this;for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};Hn(Object.assign({},n,e)),t.currentInstance&&(t.currentInstance._destroy(),F()&&Bt()),t.currentInstance=Ho;const o=Vo(e,n);Io(o),Object.freeze(o),t.timeout&&(t.timeout.stop(),delete t.timeout),clearTimeout(t.restoreFocusTimeout);const s=No(Ho);return at(Ho,o),i.innerParams.set(Ho,o),Do(Ho,s,o)}then(e){return i.promise.get(this).then(e)}finally(e){return i.promise.get(this).finally(e)}}const Do=(e,n,o)=>new Promise(((i,s)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t})};kt.swalPromiseResolve.set(e,i),kt.swalPromiseReject.set(e,s),n.confirmButton.onclick=()=>{rn(e)},n.denyButton.onclick=()=>{an(e)},n.cancelButton.onclick=()=>{ln(e,r)},n.closeButton.onclick=()=>{r(pt.close)},Un(e,n,r),ht(e,t,o,r),Zt(e,o),Eo(o),Fo(t,o,r),_o(n,o),setTimeout((()=>{n.container.scrollTop=0}))})),Vo=(e,t)=>{const n=go(e),o=Object.assign({},Pn,t,n,e);return o.showClass=Object.assign({},Pn.showClass,o.showClass),o.hideClass=Object.assign({},Pn.hideClass,o.hideClass),o},No=e=>{const t={popup:A(),container:w(),actions:I(),confirmButton:L(),denyButton:O(),cancelButton:S(),loader:M(),closeButton:D(),validationMessage:T(),progressSteps:$()};return i.domCache.set(e,t),t},Fo=(e,t,n)=>{const o=q();ne(o),t.timer&&(e.timeout=new ho((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(o),K(o,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},_o=(e,t)=>{t.toast||(f(t.allowEnterKey)?Ro(e,t)||ft(-1,1):Uo())},Ro=(e,t)=>t.focusDeny&&se(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&se(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!se(e.confirmButton)||(e.confirmButton.focus(),0)),Uo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}qo.prototype.disableButtons=Cn,qo.prototype.enableButtons=vn,qo.prototype.getInput=bn,qo.prototype.disableInput=kn,qo.prototype.enableInput=An,qo.prototype.hideLoading=fn,qo.prototype.disableLoading=fn,qo.prototype.showValidationMessage=xn,qo.prototype.resetValidationMessage=Bn,qo.prototype.close=Vt,qo.prototype.closePopup=Vt,qo.prototype.closeModal=Vt,qo.prototype.closeToast=Vt,qo.prototype.rejectPromise=Ft,qo.prototype.update=qn,qo.prototype._destroy=Vn,Object.assign(qo,mo),Object.keys(Rn).forEach((e=>{qo[e]=function(){return Ho&&Ho[e]?Ho[e](...arguments):null}})),qo.DismissReason=pt,qo.version="11.7.11";const zo=qo;return zo.default=zo,zo}(),void 0!==i&&i.Sweetalert2&&(i.swal=i.sweetAlert=i.Swal=i.SweetAlert=i.Sweetalert2)}(r);var a=s(r.exports),l=new(function(){function e(){this.queue=[]}return e.prototype.success=function(e,t,n){this.flash("success",e,t,n)},e.prototype.info=function(e,t,n){this.flash("info",e,t,n)},e.prototype.warning=function(e,t,n){this.flash("warning",e,t,n)},e.prototype.error=function(e,t,n){this.flash("error",e,t,n)},e.prototype.flash=function(e,t,n,o){var i=this.createNotification(e,t,n,o);this.renderOptions({}),this.render({notification:i})},e.prototype.createNotification=function(e,t,n,o){if("object"==typeof e&&(e=(o=e).type),"object"==typeof t&&(t=(o=t).message),"object"==typeof n&&(n=(o=n).title),void 0===t)throw new Error("message option is required");return{type:e||"info",message:t,title:n,options:o}},e.prototype.render=function(e){var n,o=e.notification,i=o.options;return o.type=o.type||"info",i=t(t({},i),{icon:(null==i?void 0:i.icon)||o.type,text:(null==i?void 0:i.text)||o.message}),null===(n=this.swalToastr)||void 0===n?void 0:n.fire(i).then((function(t){window.dispatchEvent(new CustomEvent("flasher:sweetalert:promise",{detail:{promise:t,envelope:e}}))}))},e.prototype.renderOptions=function(e){this.swalToastr=this.swalToastr||a.mixin(t({timer:e.timer||5e3,timerProgressBar:e.timerProgressBar||!0},e)),document.addEventListener("turbo:before-cache",(function(){var e;a.isVisible()&&(null===(e=a.getPopup())||void 0===e||e.style.setProperty("animation-duration","0ms"),a.close())}))},e.prototype.addEnvelope=function(e){var t;null===(t=this.queue)||void 0===t||t.push(e)},e.prototype.resetQueue=function(){this.queue=[]},e.prototype.renderQueue=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.js', @@ -38,7 +38,7 @@ class SweetAlertPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.css', ), 'local' => array( '/vendor/flasher/flasher-sweetalert.min.css', diff --git a/src/SweetAlert/Prime/composer.json b/src/SweetAlert/Prime/composer.json index 812463ea..4b1ee846 100644 --- a/src/SweetAlert/Prime/composer.json +++ b/src/SweetAlert/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/SweetAlert/Symfony/Resources/config/config.yaml b/src/SweetAlert/Symfony/Resources/config/config.yaml index 6b81e9d2..27214bf9 100644 --- a/src/SweetAlert/Symfony/Resources/config/config.yaml +++ b/src/SweetAlert/Symfony/Resources/config/config.yaml @@ -1,6 +1,6 @@ flasher_sweetalert: scripts: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js' local: - '/vendor/flasher/flasher-sweetalert.min.js' diff --git a/src/SweetAlert/Symfony/composer.json b/src/SweetAlert/Symfony/composer.json index 20e58fc7..b6169c9f 100644 --- a/src/SweetAlert/Symfony/composer.json +++ b/src/SweetAlert/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-sweetalert": "^1.15", - "php-flasher/flasher-symfony": "^1.15" + "php-flasher/flasher-sweetalert": "^1.15.1", + "php-flasher/flasher-symfony": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Symfony/DependencyInjection/Configuration.php b/src/Symfony/DependencyInjection/Configuration.php index 6a485fff..91f85d69 100644 --- a/src/Symfony/DependencyInjection/Configuration.php +++ b/src/Symfony/DependencyInjection/Configuration.php @@ -47,6 +47,7 @@ final class Configuration implements ConfigurationInterface ->end() ->arrayNode('styles') ->prototype('variable')->end() + ->defaultValue($plugin->getStyles()) ->end() ->arrayNode('options') ->prototype('scalar')->end() diff --git a/src/Symfony/Resources/config/config.yaml b/src/Symfony/Resources/config/config.yaml index bbed19c6..d395db42 100644 --- a/src/Symfony/Resources/config/config.yaml +++ b/src/Symfony/Resources/config/config.yaml @@ -41,7 +41,7 @@ flasher: # field of this option. # root_script: - cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js' + cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js' local: '/vendor/flasher/flasher.min.js' # -------------------------------------------------------------------------- @@ -59,7 +59,7 @@ flasher: # the stylesheet file in the 'local' field of this option. # styles: - cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css' + cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css' local: '/vendor/flasher/flasher.min.css' # -------------------------------------------------------------------------- diff --git a/src/Symfony/composer.json b/src/Symfony/composer.json index 8f752a0e..d42a2490 100644 --- a/src/Symfony/composer.json +++ b/src/Symfony/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15", + "php-flasher/flasher": "^1.15.1", "symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0", diff --git a/src/Toastr/Laravel/Resources/config.php b/src/Toastr/Laravel/Resources/config.php index da476f4a..76e0f090 100644 --- a/src/Toastr/Laravel/Resources/config.php +++ b/src/Toastr/Laravel/Resources/config.php @@ -9,7 +9,7 @@ return array( 'scripts' => array( 'cdn' => array( 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js', - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js', ), 'local' => array( '/vendor/flasher/jquery.min.js', @@ -18,7 +18,7 @@ return array( ), 'styles' => array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css', ), 'local' => array( '/vendor/flasher/flasher-toastr.min.css', diff --git a/src/Toastr/Laravel/composer.json b/src/Toastr/Laravel/composer.json index 990a4fc0..e4df6c4b 100644 --- a/src/Toastr/Laravel/composer.json +++ b/src/Toastr/Laravel/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-laravel": "^1.15", - "php-flasher/flasher-toastr": "^1.15" + "php-flasher/flasher-laravel": "^1.15.1", + "php-flasher/flasher-toastr": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Toastr/Prime/ToastrPlugin.php b/src/Toastr/Prime/ToastrPlugin.php index c52196d3..8153b133 100644 --- a/src/Toastr/Prime/ToastrPlugin.php +++ b/src/Toastr/Prime/ToastrPlugin.php @@ -19,7 +19,7 @@ class ToastrPlugin extends Plugin return array( 'cdn' => array( 'https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js', - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js', ), 'local' => array( '/vendor/flasher/jquery.min.js', @@ -35,7 +35,7 @@ class ToastrPlugin extends Plugin { return array( 'cdn' => array( - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css', + 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css', ), 'local' => array( '/vendor/flasher/flasher-toastr.min.css', diff --git a/src/Toastr/Prime/composer.json b/src/Toastr/Prime/composer.json index ef7fe0c4..49f39fab 100644 --- a/src/Toastr/Prime/composer.json +++ b/src/Toastr/Prime/composer.json @@ -37,7 +37,7 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher": "^1.15" + "php-flasher/flasher": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/src/Toastr/Symfony/Resources/config/config.yaml b/src/Toastr/Symfony/Resources/config/config.yaml index 8b35edd5..dcc230cd 100644 --- a/src/Toastr/Symfony/Resources/config/config.yaml +++ b/src/Toastr/Symfony/Resources/config/config.yaml @@ -2,13 +2,13 @@ flasher_toastr: scripts: cdn: - 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js' - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js' local: - '/vendor/flasher/jquery.min.js' - '/vendor/flasher/flasher-toastr.min.js' styles: cdn: - - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css' + - 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css' local: - '/vendor/flasher/flasher-toastr.min.css' diff --git a/src/Toastr/Symfony/composer.json b/src/Toastr/Symfony/composer.json index 0215ad97..0c23be39 100644 --- a/src/Toastr/Symfony/composer.json +++ b/src/Toastr/Symfony/composer.json @@ -37,8 +37,8 @@ "homepage": "https://php-flasher.io", "require": { "php": ">=5.3", - "php-flasher/flasher-symfony": "^1.15", - "php-flasher/flasher-toastr": "^1.15" + "php-flasher/flasher-symfony": "^1.15.1", + "php-flasher/flasher-toastr": "^1.15.1" }, "minimum-stability": "stable", "prefer-stable": true, diff --git a/tests/Prime/Plugin/FlasherPluginTest.php b/tests/Prime/Plugin/FlasherPluginTest.php index 1d7167ae..a3b8bf20 100644 --- a/tests/Prime/Plugin/FlasherPluginTest.php +++ b/tests/Prime/Plugin/FlasherPluginTest.php @@ -46,7 +46,7 @@ class FlasherPluginTest extends TestCase { $plugin = new FlasherPlugin(); $rootScript = array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ); @@ -60,7 +60,7 @@ class FlasherPluginTest extends TestCase { $plugin = new FlasherPlugin(); $scripts = array( - 'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js'), + 'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js'), 'local' => array('/vendor/flasher/flasher.min.js'), ); @@ -103,9 +103,14 @@ class FlasherPluginTest extends TestCase $config = array( 'default' => 'flasher', 'root_script' => array( - 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js', + 'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js', 'local' => '/vendor/flasher/flasher.min.js', ), + 'scripts' => array(), + 'styles' => array( + 'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css'), + 'local' => array('/vendor/flasher/flasher.min.css'), + ), 'options' => array(), 'use_cdn' => true, 'auto_translate' => true,