diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
new file mode 100644
index 00000000..26c58025
--- /dev/null
+++ b/.github/workflows/continuous-integration.yml
@@ -0,0 +1,11 @@
+name: "Continuous Integration"
+
+on:
+  pull_request:
+  push:
+    branches:
+    tags:
+
+jobs:
+  ci:
+    uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x
diff --git a/.github/workflows/cs-tests.yml b/.github/workflows/cs-tests.yml
deleted file mode 100644
index 55806c6b..00000000
--- a/.github/workflows/cs-tests.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-on:
-  - push
-
-name: Run phpcs checks
-
-jobs:
-  mutation:
-    name: PHP ${{ matrix.php }}-${{ matrix.os }}
-
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os:
-          - ubuntu-latest
-
-        php:
-          - "8.2"
-          - "8.3"
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
-
-      - name: Install PHP
-        uses: shivammathur/setup-php@v2
-        with:
-          php-version: "${{ matrix.php }}"
-          tools: composer:v2, cs2pr
-          coverage: none
-
-      - name: Determine composer cache directory
-        run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
-
-      - name: Cache dependencies installed with composer
-        uses: actions/cache@v4
-        with:
-          path: ${{ env.COMPOSER_CACHE_DIR }}
-          key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
-          restore-keys: |
-            php${{ matrix.php }}-composer-
-
-      - name: Install dependencies with composer
-        run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
-
-      - name: Run phpcs checks
-        run: vendor/bin/phpcs
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
deleted file mode 100644
index 4e84eca4..00000000
--- a/.github/workflows/run-tests.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-on:
-  - push
-
-name: Run PHPUnit tests
-
-jobs:
-  mutation:
-    name: PHP ${{ matrix.php }}-${{ matrix.os }}
-
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os:
-          - ubuntu-latest
-
-        php:
-          - "8.2"
-          - "8.3"
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
-
-      - name: Install PHP
-        uses: shivammathur/setup-php@v2
-        with:
-          php-version: "${{ matrix.php }}"
-          tools: composer:v2, cs2pr
-          coverage: none
-
-      - name: Determine composer cache directory
-        run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
-
-      - name: Cache dependencies installed with composer
-        uses: actions/cache@v4
-        with:
-          path: ${{ env.COMPOSER_CACHE_DIR }}
-          key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
-          restore-keys: |
-            php${{ matrix.php }}-composer-
-
-      - name: Install dependencies with composer
-        run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
-
-      - name: Setup project
-        run: |
-          mv config/autoload/local.php.dist config/autoload/local.php
-          mv config/autoload/mail.local.php.dist config/autoload/mail.local.php
-          mv config/autoload/local.test.php.dist config/autoload/local.test.php
-
-      - name: Run unit tests
-        run: vendor/bin/phpunit --testsuite=UnitTests --testdox --colors=always
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
deleted file mode 100644
index 16d3bfce..00000000
--- a/.github/workflows/static-analysis.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-on:
-  - push
-
-name: static analysis
-
-jobs:
-  mutation:
-    name: PHP ${{ matrix.php }}-${{ matrix.os }}
-
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      matrix:
-        os:
-          - ubuntu-latest
-
-        php:
-          - "8.2"
-          - "8.3"
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
-
-      - name: Install PHP
-        uses: shivammathur/setup-php@v2
-        with:
-          php-version: "${{ matrix.php }}"
-          tools: composer:v2, cs2pr
-          coverage: none
-
-      - name: Determine composer cache directory
-        run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
-
-      - name: Cache dependencies installed with composer
-        uses: actions/cache@v4
-        with:
-          path: ${{ env.COMPOSER_CACHE_DIR }}
-          key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
-          restore-keys: |
-            php${{ matrix.php }}-composer-
-      - name: Install dependencies with composer
-        run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
-
-      - name: Static analysis
-        run: vendor/bin/psalm --no-cache --output-format=github --show-info=false --threads=4 --php-version="${{ matrix.php }}"
diff --git a/.laminas-ci/pre-run.sh b/.laminas-ci/pre-run.sh
new file mode 100755
index 00000000..4a356038
--- /dev/null
+++ b/.laminas-ci/pre-run.sh
@@ -0,0 +1,15 @@
+JOB=$3
+PHP_VERSION=$4
+COMMAND=$(echo "${JOB}" | jq -r '.command')
+
+echo "Running pre-run $COMMAND"
+
+if [[ ${COMMAND} =~ phpunit ]];then
+
+  apt-get install php"${PHP_VERSION}"-sqlite3
+
+  cp config/autoload/local.php.dist config/autoload/local.php
+  cp config/autoload/mail.local.php.dist config/autoload/mail.local.php
+  cp config/autoload/local.test.php.dist config/autoload/local.test.php
+
+fi
diff --git a/README.md b/README.md
index 60824c65..11f2054d 100644
--- a/README.md
+++ b/README.md
@@ -2,33 +2,28 @@
 
 Dotkernel web starter package suitable for frontend applications.
 
-
 ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/frontend)
 ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/frontend/4.2.0)
 
 [![GitHub issues](https://img.shields.io/github/issues/dotkernel/frontend)](https://github.com/dotkernel/frontend/issues)
 [![GitHub forks](https://img.shields.io/github/forks/dotkernel/frontend)](https://github.com/dotkernel/frontend/network)
 [![GitHub stars](https://img.shields.io/github/stars/dotkernel/frontend)](https://github.com/dotkernel/frontend/stargazers)
-[![GitHub license](https://img.shields.io/github/license/dotkernel/frontend)](https://github.com/dotkernel/frontend/blob/4.0/LICENSE.md)
-
+[![GitHub license](https://img.shields.io/github/license/dotkernel/frontend)](https://github.com/dotkernel/frontend/blob/5.0/LICENSE.md)
 
-[![Build Static](https://github.com/dotkernel/frontend/actions/workflows/static-analysis.yml/badge.svg?branch=4.0)](https://github.com/dotkernel/frontend/actions/workflows/static-analysis.yml)
-[![Build Static](https://github.com/dotkernel/frontend/actions/workflows/run-tests.yml/badge.svg?branch=4.0)](https://github.com/dotkernel/frontend/actions/workflows/run-tests.yml)
+[![Continuous Integration](https://github.com/dotkernel/frontend/actions/workflows/continuous-integration.yml/badge.svg?branch=5.0)](https://github.com/dotkernel/frontend/actions/workflows/continuous-integration.yml)
 [![codecov](https://codecov.io/gh/dotkernel/frontend/graph/badge.svg?token=BQS43UWAM4)](https://codecov.io/gh/dotkernel/frontend)
 [![Qodana](https://github.com/dotkernel/frontend/actions/workflows/qodana_code_quality.yml/badge.svg)](https://github.com/dotkernel/frontend/actions/workflows/qodana_code_quality.yml)
 
 [![SymfonyInsight](https://insight.symfony.com/projects/a28dac55-3366-4020-9a49-53f6fcbeda4e/big.svg)](https://insight.symfony.com/projects/a28dac55-3366-4020-9a49-53f6fcbeda4e)
 
-# Installing DotKernel `frontend`
+## Installing DotKernel `frontend`
 
 - [Installing DotKernel `frontend`](#installing-dotkernel-frontend)
-    - [Installation](#installation)
-        - [Composer](#composer)
-    - [Choose a destination path for DotKernel `frontend` installation](#choose-a-destination-path-for-dotkernel-frontend-installation)
-    - [Installing the `frontend` Composer package](#installing-the-frontend-composer-package)
-        - [Installing DotKernel Frontend](#installing-dotkernel-frontend)
+    - [Composer](#composer)
+    - [Choose a destination path for DotKernel `frontend` installation](#choosing-an-installation-path-for-dotkernel-frontend)
+    - [Installing DotKernel Frontend](#installing-dotkernel-frontend)
     - [Configuration - First Run](#configuration---first-run)
-    - [Testing (Running)](#testing-running)
+    - [Testing (Running)](#running-the-application)
 
 ## Tools
 
@@ -45,7 +40,7 @@ Installation instructions:
 
 > If you have never used composer before make sure you read the [`Composer Basic Usage`](https://getcomposer.org/doc/01-basic-usage.md) section in Composer's documentation
 
-## Choosing an installation path for DotKernel `frontend` 
+## Choosing an installation path for DotKernel `frontend`
 
 Example:
 
@@ -56,10 +51,11 @@ Example:
 
 After choosing the path for DotKernel (`dk` will be used for the remainder of this example) it must be installed. There are two installation methods.
 
-#### Note
+### Note
+
 The installation uses the PHP extension `ext-intl` that may not be enabled by default in your web server. If the installation returns a similar error to the below, check the `extension=intl` extension in your `php.ini`.
 
-```bash
+```shell
 Your requirements could not be resolved to an installable set of packages.
 
 Problem 1
@@ -68,14 +64,17 @@ Problem 1
 
 To enable an extension, remove the semicolon (;) in front of it.
 
-#### I. Installing DotKernel `frontend` using composer 
+#### I. Installing DotKernel `frontend` using composer
 
 #### NOTE
-> please use the below CLI commands in terminal, do NOT use the PhpStorm buttons 
+
+> please use the below CLI commands in terminal, do NOT use the PhpStorm buttons
 
 The advantage of using this command is that it runs through the whole installation process. Run the following command:
 
-    composer create-project dotkernel/frontend -s dev dk
+```shell
+composer create-project dotkernel/frontend -s dev dk
+```
 
 The above command downloads the `frontend` package, then downloads and installs the `dependencies`.
 
@@ -102,11 +101,15 @@ Type `y` here, and hit `enter`
 
 This method requires more manual input, but it ensures that the default branch is installed, even if it is not released. Run the following command:
 
-    git clone https://github.com/dotkernel/frontend.git .
+```shell
+git clone https://github.com/dotkernel/frontend.git .
+```
 
 The dependencies have to be installed separately, by running this command:
 
-    composer install
+```shell
+composer install
+```
 
 Just like for `II Installing DotKernel frontend using composer` (see above), the setup asks for configuration settings regarding injections (type `0` and hit `enter`) and a confirmation to use this setting for other packages (type `y` and hit `enter`)
 
@@ -116,14 +119,16 @@ Just like for `II Installing DotKernel frontend using composer` (see above), the
 - Edit `config/autoload/local.php` according to your dev machine and fill in the `database` configuration
 
 ## Configuration - Mail
- 
+
 If you want your application to send mails on registration, contact... please provide valid credentials to the following keys in `config/autoload/mail.local.php`
 
 Under `message_options` key:
+
 - `from` - email address from whom users will receive emails (required)
 - `from_name` - organization name from whom users will receive emails (optional)
 
 Under `smtp_options` key:
+
 - `host` - hostname or IP address of the mail server (required)
 - `connection_config` - please complete the `username` and `password` keys (required)
 
@@ -143,68 +148,88 @@ Update the `recaptcha` array in `config/autoload/local.php` with the `siteKey` a
 Note: you need to whitelist `localhost` in the reCAPTCHA settings page during development.
 **When in production do not forget to either remove `localhost` from the reCAPTCHA whitelist, or have a separate reCAPTCHA**
 
-
 ## Migrations
 
 Out of the box, we use Doctrine Migrations like detailed below to populate the database. An example file is included in `/data/doctrine/migrations`. To generate a new migration file, use this command:
 
-```bash
+```shell
 php vendor/bin/doctrine-migrations migrations:generate
 ```
+
 It creates a PHP file like this one `/data/doctrine/migrations/Version20220606131835.php` that can then be edited in the IDE. You can add new queries to be executed when the migration is run (in `public function up`) and optionally queries that undo those changes (in `public function down`).
 
-Here is an example you can add in `public function up` 
-```bash
+Here is an example you can add in `public function up`
+
+```shell
 $this->addSql('ALTER TABLE users ADD test VARCHAR(255) NOT NULL');
 ```
+
 and its opposite in `public function down`
-```bash
+
+```shell
 $this->addSql('ALTER TABLE users DROP test');
 ```
 
 Running the migrations is done with this command
-```bash
+
+```shell
 php vendor/bin/doctrine-migrations migrate
 ```
+
 Note: if you have already run the phinx migrations, you may get this message
-```bash
+
+```shell
 WARNING! You have x previously executed migrations in the database that are not registered migrations.
   {migration list}
 Are you sure you wish to continue? (y/n)
 ```
+
 After submitting `y`, you will get this confirmation message.
-```bash
+
+```shell
 WARNING! You are about to execute a database migration that could result in schema changes and data loss. Are you sure you wish to continue? (y/n)
 ```
+
 Again, submit `y` to run all of the migrations in chronological order. Each migration will be logged in the `migrations` table to prevent running the same migration more than once, which is often not desirable.
 
 You can opt to run a single migration
-```bash
+
+```shell
 php vendor/bin/doctrine-migrations migrations:execute --up 20220606131835
 ```
+
 and you can revert its changes with
-```bash
+
+```shell
 php vendor/bin/doctrine-migrations migrations:execute --down 20220606131835
 ```
-This will also remove the log for that migration in the database, allowing the migration to run again with `php vendor/bin/doctrine-migrations migrate`. 
+
+This will also remove the log for that migration in the database, allowing the migration to run again with `php vendor/bin/doctrine-migrations migrate`.
 Note the `20220606131835` is taken from the migration filename, e.g. `Version20220606131835.php`
 
 ## Seeding the database (Fixtures)
+
 Seeding the database is done with the help of our custom package ``dotkernel/dot-data-fixtures`` built on top of doctrine/data-fixtures. See below on how to use our CLI command for listing and executing Doctrine data fixtures.
 
 An example of a fixtures class is ``data/doctrine/fixtures/RoleLoader.php``
 
 To list all the available fixtures, by order of execution, run:
 
-    php bin/doctrine fixtures:list
+```shell
+php bin/doctrine fixtures:list
+```
 
 To execute all fixtures, run:
 
-    php bin/doctrine fixtures:execute
+```shell
+php bin/doctrine fixtures:execute
+```
 
 To execute a specific fixtures, run:
 
-    php bin/doctrine fixtures:execute --class=RoleLoader
+```shell
+php bin/doctrine fixtures:execute --class=RoleLoader
+```
 
 Fixtures can and should be ordered to ensure database consistency, more on ordering fixtures can be found here :
 https://www.doctrine-project.org/projects/doctrine-data-fixtures/en/latest/how-to/fixture-ordering.html#fixture-ordering
@@ -213,9 +238,15 @@ https://www.doctrine-project.org/projects/doctrine-data-fixtures/en/latest/how-t
 
 - If you use `composer create-project`, the project will go into development mode automatically after installing. The development mode status can be checked and toggled by using these composer commands
 
-```bash
+```shell
 composer development-status
+```
+
+```shell
 composer development-enable
+```
+
+```shell
 composer development-disable
 ```
 
@@ -243,23 +274,27 @@ These are the email templates provided on a fresh installation, all present in t
 ## NPM Commands
 
 To install dependencies into the `node_modules` directory run this command.
-```bash
+
+```shell
 npm install
-``` 
+```
+
 - If `npm install` fails, this could be caused by user permissions of npm. Recommendation is to install npm through `Node Version Manager`.
 
 The watch command compiles the components then watches the files and recompiles when one of them changes.
 
-```bash
+```shell
 npm run watch
 ```  
 
-After all updates are done, this command compiles the assets locally, minifies them and makes them ready for production. 
+After all updates are done, this command compiles the assets locally, minifies them and makes them ready for production.
 
-```bash
+```shell
 npm run prod
 ```
+
 ## Authorization Guards
+
 The packages responsible for restricting access to certain parts of the application are [dot-rbac-guard](https://github.com/dotkernel/dot-rbac-guard) and [dot-rbac](https://github.com/dotkernel/dot-rbac). These packages work together to create an infrastructure that is customizable and diversified to manage user access to the platform by specifying the type of role the user has.
 
 The `authorization.global.php` file provides multiple configurations specifying multiple roles as well as the types of permissions to which these roles have access.
@@ -316,37 +351,44 @@ The `authorization-guards.global.php` file provides configuration to restrict ac
 
 The `local.php.dist` file provides an example for working with multiple languages. The `translator` variable can be expanded to other languages using [Poedit](https://poedit.net/) which can edit `.po` files like the example in `data/language/da_DK/LC_MESSAGES/messages.po`. The compiled file will have the extension `.mo`
 
-To apply the translations 
+To apply the translations
+
 - the twig templates need either `{% trans 'translateText' %}` or `{{ translateText|trans }}`
 - then the js file needs `translateText("translateText")`
 
 **NOTE:**
 In order to have a proper behaviour of language selector , you need the language pack installed at Operating System level.
 
-`dnf install glibc-all-langpacks`
-
-Then restart PHP-FPM. 
+```shell
+dnf install glibc-all-langpacks
+```
 
+Then restart PHP-FPM.
 
 ## Running the application
+
 We recommend running your applications in WSL:
-* make sure you have [WSL](https://github.com/dotkernel/development/blob/main/wsl/README.md) installed on your system
-* currently we provide 2 distro implementations: [AlmaLinux9](https://github.com/dotkernel/development/blob/main/wsl/os/almalinux9/README.md) and [Ubuntu20](https://github.com/dotkernel/development/blob/main/wsl/os/ubuntu20/README.md)
-* install the application in a virtualhost as recommended by the chosen distro
-* set `$baseUrl` in **config/autoload/local.php** to the address of the virtualhost
-* run the application by opening the virtualhost address in your browser
 
-You should see the `DotKernel Frontend` welcome page.
+- make sure you have [WSL](https://github.com/dotkernel/development/blob/main/wsl/README.md) installed on your system
+- currently we provide 2 distro implementations: [AlmaLinux9](https://github.com/dotkernel/development/blob/main/wsl/os/almalinux9/README.md) and [Ubuntu20](https://github.com/dotkernel/development/blob/main/wsl/os/ubuntu20/README.md)
+- install the application in a virtualhost as recommended by the chosen distro
+- set `$baseUrl` in **config/autoload/local.php** to the address of the virtualhost
+- run the application by opening the virtualhost address in your browser
 
+You should see the `DotKernel Frontend` welcome page.
 
 **NOTE:**
-- If you are getting exceptions or errors regarding some missing services, try running the following command:
 
+- If you are getting exceptions or errors regarding some missing services, try running the following command:
 
-    sudo php bin/clear-config-cache.php
+```shell
+sudo php bin/clear-config-cache.php
+```
 
 > If `config-cache.php` is present that config will be loaded regardless of the `ConfigAggregator::ENABLE_CACHE` in `config/autoload/mezzio.global.php`
+
 - **Development only**: `session.cookie_secure` does not work locally so make sure you modify your `local.php`, as per the following:
+
 ```php
 # other code
 
@@ -357,4 +399,5 @@ return [
     ],
 ];
 ```
+
 Do not change this in `local.php.dist` as well because this value should remain `true` on production.
diff --git a/composer.json b/composer.json
index 281a8f10..b8295924 100644
--- a/composer.json
+++ b/composer.json
@@ -47,7 +47,7 @@
         "ext-curl": "*",
         "ext-gettext": "*",
         "ext-json": "*",
-        "dotkernel/dot-annotated-services": "^4.1.6",
+        "dotkernel/dot-dependency-injection": "^1.0.0",
         "dotkernel/dot-authorization": "^3.4.1",
         "dotkernel/dot-controller": "^3.4.3",
         "dotkernel/dot-data-fixtures": "^1.1.3",
diff --git a/config/config.php b/config/config.php
index e60695fb..e6e298ff 100644
--- a/config/config.php
+++ b/config/config.php
@@ -38,7 +38,7 @@ class_exists(\Mezzio\Swoole\ConfigProvider::class)
     \Laminas\Form\ConfigProvider::class,
     \Dot\Log\ConfigProvider::class,
     \Dot\ErrorHandler\ConfigProvider::class,
-    \Dot\AnnotatedServices\ConfigProvider::class,
+    \Dot\DependencyInjection\ConfigProvider::class,
     \Dot\Twig\ConfigProvider::class,
     \Dot\FlashMessenger\ConfigProvider::class,
     \Dot\Rbac\ConfigProvider::class,
diff --git a/public/js/app.js b/public/js/app.js
index 0d45ade1..bd26176d 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -1,23 +1,23 @@
-(()=>{var e={927:()=>{$(document).ready((function(){let e={previewTemplates:{image:'<div class="file-preview-frame krajee-default kv-preview-thumb" id="{previewId}" data-fileindex="{fileindex}" data-template="{template}">\n   <div class="kv-file-content" style="width: 100%;">       <img src="{data}" class="kv-preview-data file-preview-image" title="{caption}" alt="{caption}"            style="height: auto; width: auto; max-width: 100%; max-height: 100%;">\n   </div>\n</div>\n'},layoutTemplates:{footer:""},showRemove:!1,showUpload:!1,showCancel:!1,initialPreviewShowDelete:!1,dropZoneEnabled:!1,required:!1,showClose:!1,browseClass:"btn btn-default",browseLabel:"Browse",removeClass:"btn btn-default",uploadClass:"btn btn-default",allowedFileTypes:["image"],showUploadedThumbs:!1,maxFileSize:1e4,maxFilePreviewSize:1e4},t=$(".img-input"),i=t.data("url"),n=t.data("preview");e.uploadUrl=i,e.defaultPreviewContent='<div class="file-preview-frame krajee-default kv-preview-thumb">\n   <div class="kv-file-content" style="width: 100%;">       <img src="'+n+'" class="kv-preview-data file-preview-image"           style="height: auto; width: auto; max-width: 100%; max-height: 100%;">\n   </div>\n</div>\n',t.fileinput(e);let r=document.querySelector(".kv-fileinput-caption");r.style.height="86px",r.style.marginTop="33px",t.on("fileuploaded",(function(e,t,i,n){$(this).fileinput("reset"),$(".file-preview-frame").find("img").attr("src",t.response.imageUrl)})),t.on("change",(function(){$(".img-input").fileinput("upload")}))}))},132:()=>{$(document).ready((function(){$(".open-button").on("click",(function(e){e.preventDefault();let t=$("#contact-form-container");$.ajax({type:"GET",url:"/contact/form"}).done((function(e){t.replaceWith(e),document.getElementById("contact-form-yb-frontend").style.display="block"})).fail((function(e){e.status,window.toastr.error(translateText("Something went wrong! Please try again!"))}))})),$(".cancel").on("click",(function(){document.getElementById("contact-form-yb-frontend").style.display="none"})),$("#send-expert-contact-form").on("click",(function(e){e.preventDefault();let t=$("#contact_form");$.ajax({type:"POST",url:"/contact/save-contact-message",data:$(t).serialize()}).done((function(e){"success"===e.message.type?($('input[name="email"]').val(""),$('input[name="name"]').val(""),$('textarea[name="message"]').val(""),document.getElementById("contact-form-yb-frontend").style.display="none",window.toastr.success(translateText(e.message.text))):window.toastr.error(translateText(e.message.text))})).fail((function(e){switch(e.status){case 422:let t=JSON.parse(translateText(e.responseText));window.toastr.error(t);break;case 401:let i=JSON.parse(translateText(e.responseText));redirectTo(i.redirect);break;default:window.toastr.error(translateText("Unexpected error. Please try again!"))}}))}))})),window.validateContactUsForm=function(){event.preventDefault(),$(".contactUsFormErrors").hide();var e=!0;if(!$(".g-recaptcha")[0].dataset.sitekey)return e=!1,$("#contactUsErrors").show(),$("#recaptchaSiteKeyEmpty").show(),!1;""==$("#contact_form #name").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyName").show()),""==$("#contact_form #email").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyEmail").show()),""==$("#contact_form #message").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyText").show()),1==e&&grecaptcha.execute()},window.submitContactUsForm=function(){$("#contact_form").submit()}},692:()=>{$(document).ready((function(){$(document).on("click",".language-container .language-active",(function(){$(".language-list").slideToggle("fast")})),$(document).on("click",".language-container .language",(function(){let e=$(this),t=$(this).data("language-key"),i=e.find("img").attr("src");$(".language-container .language-active").find("img").attr("src",i),$(".language-list").slideToggle("fast"),$(".language-list .language").removeClass("active"),$.post("/language/change",{languageKey:t}).done((function(){e.addClass("active"),location.reload()}))}))}))},629:()=>{$(document).ready((function(){$(".collapse-menu").on("click",(function(){$(".profile-action-menu").slideToggle()}))}))},838:(e,t,i)=>{var n,r,o;
+(()=>{var e={927:()=>{$(document).ready((function(){let e={previewTemplates:{image:'<div class="file-preview-frame krajee-default kv-preview-thumb" id="{previewId}" data-fileindex="{fileindex}" data-template="{template}">\n   <div class="kv-file-content" style="width: 100%;">       <img src="{data}" class="kv-preview-data file-preview-image" title="{caption}" alt="{caption}"            style="height: auto; width: auto; max-width: 100%; max-height: 100%;">\n   </div>\n</div>\n'},layoutTemplates:{footer:""},showRemove:!1,showUpload:!1,showCancel:!1,initialPreviewShowDelete:!1,dropZoneEnabled:!1,required:!1,showClose:!1,browseClass:"btn btn-default",browseLabel:"Browse",removeClass:"btn btn-default",uploadClass:"btn btn-default",allowedFileTypes:["image"],showUploadedThumbs:!1,maxFileSize:1e4,maxFilePreviewSize:1e4},t=$(".img-input"),i=t.data("url"),n=t.data("preview");e.uploadUrl=i,e.defaultPreviewContent='<div class="file-preview-frame krajee-default kv-preview-thumb">\n   <div class="kv-file-content" style="width: 100%;">       <img src="'+n+'" class="kv-preview-data file-preview-image"           style="height: auto; width: auto; max-width: 100%; max-height: 100%;">\n   </div>\n</div>\n',t.fileinput(e);let r=document.querySelector(".kv-fileinput-caption");r.style.height="86px",r.style.marginTop="33px",t.on("fileuploaded",(function(e,t,i,n){$(this).fileinput("reset"),$(".file-preview-frame").find("img").attr("src",t.response.imageUrl)})),t.on("change",(function(){$(".img-input").fileinput("upload")}))}))},132:()=>{$(document).ready((function(){$(".open-button").on("click",(function(e){e.preventDefault();let t=$("#contact-form-container");$.ajax({type:"GET",url:"/contact/form"}).done((function(e){t.replaceWith(e),document.getElementById("contact-form-yb-frontend").style.display="block"})).fail((function(e){e.status,window.toastr.error(translateText("Something went wrong! Please try again!"))}))})),$(".cancel").on("click",(function(){document.getElementById("contact-form-yb-frontend").style.display="none"})),$("#send-expert-contact-form").on("click",(function(e){e.preventDefault();let t=$("#contact_form");$.ajax({type:"POST",url:"/contact/save-contact-message",data:$(t).serialize()}).done((function(e){"success"===e.message.type?($('input[name="email"]').val(""),$('input[name="name"]').val(""),$('textarea[name="message"]').val(""),document.getElementById("contact-form-yb-frontend").style.display="none",window.toastr.success(translateText(e.message.text))):window.toastr.error(translateText(e.message.text))})).fail((function(e){switch(e.status){case 422:let t=JSON.parse(translateText(e.responseText));window.toastr.error(t);break;case 401:let i=JSON.parse(translateText(e.responseText));redirectTo(i.redirect);break;default:window.toastr.error(translateText("Unexpected error. Please try again!"))}}))}))})),window.validateContactUsForm=function(){event.preventDefault(),$(".contactUsFormErrors").hide();var e=!0;if(!$(".g-recaptcha")[0].dataset.sitekey)return e=!1,$("#contactUsErrors").show(),$("#recaptchaSiteKeyEmpty").show(),!1;""==$("#contact_form #name").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyName").show()),""==$("#contact_form #email").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyEmail").show()),""==$("#contact_form #message").val()&&(e=!1,$("#contactUsErrors").show(),$("#contactUsEmptyText").show()),1==e&&grecaptcha.execute()},window.submitContactUsForm=function(){$("#contact_form").submit()}},692:()=>{$(document).ready((function(){$(document).on("click",".language-container .language-active",(function(){$(".language-list").slideToggle("fast")})),$(document).on("click",".language-container .language",(function(){let e=$(this),t=$(this).data("language-key"),i=e.find("img").attr("src");$(".language-container .language-active").find("img").attr("src",i),$(".language-list").slideToggle("fast"),$(".language-list .language").removeClass("active"),$.post("/language/change",{languageKey:t}).done((function(){e.addClass("active"),location.reload()}))}))}))},629:()=>{$(document).ready((function(){$(".collapse-menu").on("click",(function(){$(".profile-action-menu").slideToggle()}))}))},838:(e,t,n)=>{var r,o,s;
 /*!
- * bootstrap-fileinput v5.5.2
+ * bootstrap-fileinput v5.5.4
  * http://plugins.krajee.com/file-input
  *
  * Author: Kartik Visweswaran
- * Copyright: 2014 - 2022, Kartik Visweswaran, Krajee.com
+ * Copyright: 2014 - 2024, Kartik Visweswaran, Krajee.com
  *
  * Licensed under the BSD-3-Clause
  * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
- */!function(s){"use strict";r=[i(616)],n=function(e){e.fn.fileinputLocales={},e.fn.fileinputThemes={},e.fn.fileinputBsVersion||(e.fn.fileinputBsVersion=window.bootstrap&&window.bootstrap.Alert&&window.bootstrap.Alert.VERSION||window.Alert&&window.Alert.VERSION||"3.x.x");String.prototype.setTokens=function(e){var t,i,n=this.toString();for(t in e)e.hasOwnProperty(t)&&(i=new RegExp("{"+t+"}","g"),n=n.replace(i,e[t]));return n},Array.prototype.flatMap||(Array.prototype.flatMap=function(e){return[].concat(this.map(e))});var t,i;t={FRAMES:".kv-preview-thumb",SORT_CSS:"file-sortable",INIT_FLAG:"init-",SCRIPT_SRC:document&&document.currentScript&&document.currentScript.src||null,OBJECT_PARAMS:'<param name="controller" value="true" />\n<param name="allowFullScreen" value="true" />\n<param name="allowScriptAccess" value="always" />\n<param name="autoPlay" value="false" />\n<param name="autoStart" value="false" />\n<param name="quality" value="high" />\n',DEFAULT_PREVIEW:'<div class="file-preview-other">\n<span class="{previewFileIconClass}">{previewFileIcon}</span>\n</div>',MODAL_ID:"kvFileinputModal",MODAL_EVENTS:["show","shown","hide","hidden","loaded"],logMessages:{ajaxError:"{status}: {error}. Error Details: {text}.",badDroppedFiles:"Error scanning dropped files!",badExifParser:"Error loading the piexif.js library. {details}",badInputType:'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.',exifWarning:'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded the "piexif.js" library correctly on your page before the "fileinput.js" script.',invalidChunkSize:'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.',invalidThumb:'Invalid thumb frame with id: "{id}".',noResumableSupport:"The browser does not support resumable or chunk uploads.",noUploadUrl:'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.',retryStatus:"Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.",chunkQueueError:"Could not push task to ajax pool for chunk index # {index}.",resumableMaxRetriesReached:"Maximum resumable ajax retries ({n}) reached.",resumableRetryError:"Could not retry the resumable request (try # {n})... aborting.",resumableAborting:"Aborting / cancelling the resumable request.",resumableRequestError:"Error processing resumable request. {msg}"},objUrl:window.URL||window.webkitURL,getZoomPlaceholder:function(){var e,i=t.SCRIPT_SRC,n="?kvTemp__2873389129__=";return i?(e=i.substring(0,i.lastIndexOf("/"))).substring(0,e.lastIndexOf("/")+1)+"img/loading.gif"+n:n},isBs:function(t){var i=e.trim((e.fn.fileinputBsVersion||"")+"");return t=parseInt(t,10),i?t===parseInt(i.charAt(0),10):4===t},defaultButtonCss:function(e){return"btn-default btn-"+(e?"":"outline-")+"secondary"},now:function(){return(new Date).getTime()},round:function(e){return e=parseFloat(e),isNaN(e)?0:Math.floor(Math.round(e))},getArray:function(e){var t,i=[],n=e&&e.length||0;for(t=0;t<n;t++)i.push(e[t]);return i},getFileRelativePath:function(e){return String(e.newPath||e.relativePath||e.webkitRelativePath||t.getFileName(e)||null)},getFileId:function(e,i){var n=t.getFileRelativePath(e);return"function"==typeof i?i(e):e&&n?e.size+"_"+encodeURIComponent(n).replace(/%/g,"_"):null},getFrameSelector:function(e,t){return'[id="'+e+'"]'+(t=t||"")},getZoomSelector:function(e,i){return t.getFrameSelector("zoom-"+e,i)},getFrameElement:function(e,i,n){return e.find(t.getFrameSelector(i,n))},getZoomElement:function(e,i,n){return e.find(t.getZoomSelector(i,n))},getElapsed:function(i){var n=i,r="",o={},s={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};return t.getObjectKeys(s).forEach((function(e){o[e]=Math.floor(n/s[e]),n-=o[e]*s[e]})),e.each(o,(function(e,t){t>0&&(r+=(r?" ":"")+t+e.substring(0,1))})),r},debounce:function(e,t){var i;return function(){var n=arguments,r=this;clearTimeout(i),i=setTimeout((function(){e.apply(r,n)}),t)}},stopEvent:function(e){e.stopPropagation(),e.preventDefault()},getFileName:function(e){return e&&(e.fileName||e.name)||""},createObjectURL:function(e){return t.objUrl&&t.objUrl.createObjectURL&&e?t.objUrl.createObjectURL(e):""},revokeObjectURL:function(e){t.objUrl&&t.objUrl.revokeObjectURL&&e&&t.objUrl.revokeObjectURL(e)},compare:function(e,t,i){return void 0!==e&&(i?e===t:e.match(t))},isIE:function(e){var t,i;return"Microsoft Internet Explorer"===navigator.appName&&(10===e?new RegExp("msie\\s"+e,"i").test(navigator.userAgent):((t=document.createElement("div")).innerHTML="\x3c!--[if IE "+e+"]> <i></i> <![endif]--\x3e",i=t.getElementsByTagName("i").length,document.body.appendChild(t),t.parentNode.removeChild(t),i))},canOrientImage:function(t){var i=e(document.createElement("img")).css({width:"1px",height:"1px"}).insertAfter(t),n=i.css("image-orientation");return i.remove(),!!n},canAssignFilesToInput:function(){var e=document.createElement("input");try{return e.type="file",e.files=null,!0}catch(e){return!1}},getDragDropFolders:function(e){var t,i,n=e?e.length:0,r=0;if(n>0&&e[0].webkitGetAsEntry())for(t=0;t<n;t++)(i=e[t].webkitGetAsEntry())&&i.isDirectory&&r++;return r},initModal:function(t){var i=e("body");i.length&&t.appendTo(i)},isFunction:function(e){return"function"==typeof e},isEmpty:function(i,n){return null==i||""===i||(t.isString(i)&&n?""===e.trim(i):t.isArray(i)?0===i.length:!(!e.isPlainObject(i)||!e.isEmptyObject(i)))},isArray:function(e){return Array.isArray(e)||"[object Array]"===Object.prototype.toString.call(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},ifSet:function(e,t,i){return i=i||"",t&&"object"==typeof t&&e in t?t[e]:i},cleanArray:function(e){return e instanceof Array||(e=[]),e.filter((function(e){return null!=e}))},spliceArray:function(t,i,n){var r,o,s=0,a=[];if(!(t instanceof Array))return[];for(o=e.extend(!0,[],t),n&&o.reverse(),r=0;r<o.length;r++)r!==i&&(a[s]=o[r],s++);return n&&a.reverse(),a},getNum:function(e,t){return t=t||0,"number"==typeof e?e:("string"==typeof e&&(e=parseFloat(e)),isNaN(e)?t:e)},hasFileAPISupport:function(){return!(!window.File||!window.FileReader)},hasDragDropSupport:function(){var e=document.createElement("div");return!t.isIE(9)&&(void 0!==e.draggable||void 0!==e.ondragstart&&void 0!==e.ondrop)},hasFileUploadSupport:function(){return t.hasFileAPISupport()&&window.FormData},hasBlobSupport:function(){try{return!!window.Blob&&Boolean(new Blob)}catch(e){return!1}},hasArrayBufferViewSupport:function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}},hasResumableUploadSupport:function(){return t.hasFileUploadSupport()&&t.hasBlobSupport()&&t.hasArrayBufferViewSupport()&&(!!Blob.prototype.webkitSlice||!!Blob.prototype.mozSlice||!!Blob.prototype.slice||!1)},dataURI2Blob:function(e){var i,n,r,o,s,a,l=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,c=t.hasBlobSupport();if(!((c||l)&&window.atob&&window.ArrayBuffer&&window.Uint8Array))return null;for(i=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURIComponent(e.split(",")[1]),n=new ArrayBuffer(i.length),r=new Uint8Array(n),o=0;o<i.length;o+=1)r[o]=i.charCodeAt(o);return s=e.split(",")[0].split(":")[1].split(";")[0],c?new Blob([t.hasArrayBufferViewSupport()?r:n],{type:s}):((a=new l).append(n),a.getBlob(s))},arrayBuffer2String:function(e){if(window.TextDecoder)return new TextDecoder("utf-8").decode(e);var t,i,n,r,o=Array.prototype.slice.apply(new Uint8Array(e)),s="",a=0;for(t=o.length;a<t;)switch((i=o[a++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(i);break;case 12:case 13:n=o[a++],s+=String.fromCharCode((31&i)<<6|63&n);break;case 14:n=o[a++],r=o[a++],s+=String.fromCharCode((15&i)<<12|(63&n)<<6|(63&r)<<0)}return s},isHtml:function(e){var t=document.createElement("div");t.innerHTML=e;for(var i=t.childNodes,n=i.length;n--;)if(1===i[n].nodeType)return!0;return!1},isPdf:function(e){return!t.isEmpty(e)&&(0!==(e=e.toString().trim().replace(/\n/g," ")).length&&void 0)},isSvg:function(e){return!t.isEmpty(e)&&(0!==(e=e.toString().trim().replace(/\n/g," ")).length&&(e.match(/^\s*<\?xml/i)&&(e.match(/<!DOCTYPE svg/i)||e.match(/<svg/i))))},getMimeType:function(e,t,i){var n=e||"";switch(n){case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":return"image/jpeg";case"89504e47":return"image/png";case"47494638":return"image/gif";case"49492a00":return"image/tiff";case"52494646":return"image/webp";case"41433130":return"image/vnd.dwg";case"66747970":return"video/3gp";case"4f676753":return"video/ogg";case"1a45dfa3":return"video/mkv";case"000001ba":case"000001b3":return"video/mpeg";case"3026b275":return"video/wmv";case"25504446":return"application/pdf";case"25215053":return"application/ps";case"504b0304":case"504b0506":case"504b0508":return"application/zip";case"377abcaf":return"application/7z";case"75737461":return"application/tar";case"7801730d":return"application/dmg";default:switch(n.substring(0,6)){case"435753":return"application/x-shockwave-flash";case"494433":return"audio/mp3";case"425a68":return"application/bzip";default:switch(n.substring(0,4)){case"424d":return"image/bmp";case"fffb":return"audio/mp3";case"4d5a":return"application/exe";case"1f9d":case"1fa0":return"application/zip";case"1f8b":return"application/gzip";default:return t&&!t.match(/[^\u0000-\u007f]/)?"application/text-plain":i}}}},addCss:function(e,t){e.removeClass(t).addClass(t)},getElement:function(i,n,r){return t.isEmpty(i)||t.isEmpty(i[n])?r:e(i[n])},createElement:function(t,i){return i=i||"div",e(e.parseHTML("<"+i+">"+t+"</"+i+">"))},uniqId:function(){return((new Date).getTime()+Math.floor(Math.random()*Math.pow(10,15))).toString(36)},cspBuffer:{CSP_ATTRIB:"data-csp-01928735",domElementsStyles:{},stash:function(i){var n=this,r=e.parseHTML("<div>"+i+"</div>"),o=e(r);return o.find("[style]").each((function(i,r){var o=e(r),s=o[0].style,a=t.uniqId(),l={};s&&s.length&&(e(s).each((function(){l[this]=s[this]})),n.domElementsStyles[a]=l,o.removeAttr("style").attr(n.CSP_ATTRIB,a))})),o.filter("*").removeAttr("style"),(Object.values?Object.values(r):Object.keys(r).map((function(e){return r[e]}))).flatMap((function(e){return e.innerHTML})).join("")},apply:function(t){var i=this;e(t).find("["+i.CSP_ATTRIB+"]").each((function(t,n){var r=e(n),o=r.attr(i.CSP_ATTRIB),s=i.domElementsStyles[o];s&&r.css(s),r.removeAttr(i.CSP_ATTRIB)})),i.domElementsStyles={}}},setHtml:function(e,i){var n=t.cspBuffer;return e.html(n.stash(i)),n.apply(e),e},htmlEncode:function(e,t){return void 0===e?t||null:e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")},replaceTags:function(t,i){var n=t;return i?(e.each(i,(function(e,t){"function"==typeof t&&(t=t()),n=n.split(e).join(t)})),n):n},cleanMemory:function(e){var i=e.is("img")?e.attr("src"):e.find("source").attr("src");t.revokeObjectURL(i)},findFileName:function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),e.split(e.substring(t,t+1)).pop()},checkFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},toggleFullScreen:function(e){var i=document,n=i.documentElement,r=t.checkFullScreen();n&&e&&!r?n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r&&(i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen())},moveArray:function(t,i,n,r){var o=e.extend(!0,[],t);if(r&&o.reverse(),n>=o.length)for(var s=n-o.length;1+s--;)o.push(void 0);return o.splice(n,0,o.splice(i,1)[0]),r&&o.reverse(),o},closeButton:function(e){return'<button type="button" class="'+(e=(t.isBs(5)?"btn-close":"close")+(e?" "+e:""))+'" aria-label="Close">\n'+(t.isBs(5)?"":'  <span aria-hidden="true">&times;</span>\n')+"</button>"},getRotation:function(e){switch(e){case 2:return"rotateY(180deg)";case 3:return"rotate(180deg)";case 4:return"rotate(180deg) rotateY(180deg)";case 5:return"rotate(270deg) rotateY(180deg)";case 6:return"rotate(90deg)";case 7:return"rotate(90deg) rotateY(180deg)";case 8:return"rotate(270deg)";default:return""}},setTransform:function(e,t){e&&(e.style.transform=t,e.style.webkitTransform=t,e.style["-moz-transform"]=t,e.style["-ms-transform"]=t,e.style["-o-transform"]=t)},getObjectKeys:function(t){var i=[];return t&&e.each(t,(function(e){i.push(e)})),i},getObjectSize:function(e){return t.getObjectKeys(e).length},whenAll:function(i){var n,r,o,s,a,l,c=[].slice,u=1===arguments.length&&t.isArray(i)?i:c.call(arguments),d=e.Deferred(),h=0,p=u.length,f=p;for(o=s=a=Array(p),l=function(e,t,i){return function(){i!==u&&h++,d.notifyWith(t[e]=this,i[e]=c.call(arguments)),--f||d[(h?"reject":"resolve")+"With"](t,i)}},n=0;n<p;n++)(r=u[n])&&e.isFunction(r.promise)?r.promise().done(l(n,a,u)).fail(l(n,o,s)):(d.notifyWith(this,r),--f);return f||d.resolveWith(a,u),d.promise()}},(i=function(i,n){var r=this;r.$element=e(i),r.$parent=r.$element.parent(),r._validate()&&(r.isPreviewable=t.hasFileAPISupport(),r.isIE9=t.isIE(9),r.isIE10=t.isIE(10),(r.isPreviewable||r.isIE9)&&(r._init(n),r._listen()),r.$element.removeClass("file-loading"))}).prototype={constructor:i,_cleanup:function(){var e=this;e.reader=null,e.clearFileStack(),e.fileBatchCompleted=!0,e.isError=!1,e.isDuplicateError=!1,e.isPersistentError=!1,e.cancelling=!1,e.paused=!1,e.lastProgress=0,e._initAjax()},_isAborted:function(){var e=this;return e.cancelling||e.paused},_initAjax:function(){var i=this,n=i.taskManager={pool:{},addPool:function(e){return n.pool[e]=new n.TasksPool(e)},getPool:function(e){return n.pool[e]},addTask:function(e,t){return new n.Task(e,t)},TasksPool:function(i){var r=this;r.id=i,r.cancelled=!1,r.cancelledDeferrer=e.Deferred(),r.tasks={},r.addTask=function(e,t){return r.tasks[e]=new n.Task(e,t)},r.size=function(){return t.getObjectSize(r.tasks)},r.run=function(i){var n,o,s,a=0,l=!1,c=t.getObjectKeys(r.tasks).map((function(e){return r.tasks[e]})),u=[],d=e.Deferred();if(r.cancelled)return r.cancelledDeferrer.resolve(),d.reject();if(!i){var h=t.getObjectKeys(r.tasks).map((function(e){return r.tasks[e].deferred}));return t.whenAll(h).done((function(){var e=t.getArray(arguments);r.cancelled?(d.reject.apply(null,e),r.cancelledDeferrer.resolve()):(d.resolve.apply(null,e),r.cancelledDeferrer.reject())})).fail((function(){var e=t.getArray(arguments);d.reject.apply(null,e),r.cancelled?r.cancelledDeferrer.resolve():r.cancelledDeferrer.reject()})),e.each(r.tasks,(function(e){(n=r.tasks[e]).run()})),d}for(o=function(t){e.when(t.deferred).fail((function(){l=!0,s.apply(null,arguments)})).always(s)},s=function(){var e=t.getArray(arguments);if(d.notify(e),u.push(e),r.cancelled)return d.reject.apply(null,u),void r.cancelledDeferrer.resolve();u.length===r.size()&&(l?d.reject.apply(null,u):d.resolve.apply(null,u)),c.length&&(n=c.shift(),o(n),n.run())};c.length&&a++<i;)n=c.shift(),o(n),n.run();return d},r.cancel=function(){return r.cancelled=!0,r.cancelledDeferrer}},Task:function(i,n){var r=this;r.id=i,r.deferred=e.Deferred(),r.logic=n,r.context=null,r.run=function(){var e=t.getArray(arguments);return e.unshift(r.deferred),n.apply(r.context,e),r.deferred},r.runWithContext=function(e){return r.context=e,r.run()}}};i.ajaxQueue=[],i.ajaxRequests=[],i.ajaxPool=null,i.ajaxAborted=!1},_init:function(i,n){var r,o,s,a,l=this,c=l.$element;l.options=i,l.zoomPlaceholder=t.getZoomPlaceholder(),l.canOrientImage=t.canOrientImage(c),e.each(i,(function(e,i){switch(e){case"minFileCount":case"maxFileCount":case"maxTotalFileCount":case"minFileSize":case"maxFileSize":case"maxFilePreviewSize":case"resizeQuality":case"resizeIfSizeMoreThan":case"progressUploadThreshold":case"initialPreviewCount":case"zoomModalHeight":case"minImageHeight":case"maxImageHeight":case"minImageWidth":case"maxImageWidth":case"bytesToKB":l[e]=t.getNum(i);break;default:l[e]=i}})),(!l.bytesToKB||l.bytesToKB<=0)&&(l.bytesToKB=1024),void 0===l.errorCloseButton&&(l.errorCloseButton=t.closeButton("kv-error-close"+(t.isBs(5)?"  float-end":""))),l.maxTotalFileCount>0&&l.maxTotalFileCount<l.maxFileCount&&(l.maxTotalFileCount=l.maxFileCount),l.rtl&&(a=l.previewZoomButtonIcons.prev,l.previewZoomButtonIcons.prev=l.previewZoomButtonIcons.next,l.previewZoomButtonIcons.next=a),!isNaN(l.maxAjaxThreads)&&l.maxAjaxThreads<l.resumableUploadOptions.maxThreads&&(l.resumableUploadOptions.maxThreads=l.maxAjaxThreads),l._initFileManager(),"function"==typeof l.autoOrientImage&&(l.autoOrientImage=l.autoOrientImage()),"function"==typeof l.autoOrientImageInitial&&(l.autoOrientImageInitial=l.autoOrientImageInitial()),n||l._cleanup(),l.duplicateErrors=[],l.$form=c.closest("form"),l._initTemplateDefaults(),l.uploadFileAttr=t.isEmpty(c.attr("name"))?"file_data":c.attr("name"),s=l._getLayoutTemplate("progress"),l.progressTemplate=s.replace("{class}",l.progressClass),l.progressInfoTemplate=s.replace("{class}",l.progressInfoClass),l.progressPauseTemplate=s.replace("{class}",l.progressPauseClass),l.progressCompleteTemplate=s.replace("{class}",l.progressCompleteClass),l.progressErrorTemplate=s.replace("{class}",l.progressErrorClass),l.isDisabled=c.attr("disabled")||c.attr("readonly"),l.isDisabled&&c.attr("disabled",!0),l.isClickable=l.browseOnZoneClick&&l.showPreview&&(l.dropZoneEnabled||!t.isEmpty(l.defaultPreviewContent)),l.isAjaxUpload=t.hasFileUploadSupport()&&!t.isEmpty(l.uploadUrl),l.dropZoneEnabled=t.hasDragDropSupport()&&l.dropZoneEnabled,l.isAjaxUpload||(l.dropZoneEnabled=l.dropZoneEnabled&&t.canAssignFilesToInput()),l.slug="function"==typeof i.slugCallback?i.slugCallback:l._slugDefault,l.mainTemplate=l.showCaption?l._getLayoutTemplate("main1"):l._getLayoutTemplate("main2"),l.captionTemplate=l._getLayoutTemplate("caption"),l.previewGenericTemplate=l._getPreviewTemplate("generic"),!l.imageCanvas&&l.resizeImage&&(l.maxImageWidth||l.maxImageHeight)&&(l.imageCanvas=document.createElement("canvas"),l.imageCanvasContext=l.imageCanvas.getContext("2d")),t.isEmpty(c.attr("id"))&&c.attr("id",t.uniqId()),l.namespace=".fileinput_"+c.attr("id").replace(/-/g,"_"),void 0===l.$container?l.$container=l._createContainer():l._refreshContainer(),o=l.$container,l.$dropZone=o.find(".file-drop-zone"),l.$progress=o.find(".kv-upload-progress"),l.$btnUpload=o.find(".fileinput-upload"),l.$captionContainer=t.getElement(i,"elCaptionContainer",o.find(".file-caption")),l.$caption=t.getElement(i,"elCaptionText",o.find(".file-caption-name")),t.isEmpty(l.msgPlaceholder)||(r=c.attr("multiple")?l.filePlural:l.fileSingle,l.$caption.attr("placeholder",l.msgPlaceholder.replace("{files}",r))),l.$captionIcon=l.$captionContainer.find(".file-caption-icon"),l.$previewContainer=t.getElement(i,"elPreviewContainer",o.find(".file-preview")),l.$preview=t.getElement(i,"elPreviewImage",o.find(".file-preview-thumbnails")),l.$previewStatus=t.getElement(i,"elPreviewStatus",o.find(".file-preview-status")),l.$errorContainer=t.getElement(i,"elErrorContainer",l.$previewContainer.find(".kv-fileinput-error")),l._validateDisabled(),t.isEmpty(l.msgErrorClass)||t.addCss(l.$errorContainer,l.msgErrorClass),n?l._errorsExist()||l.$errorContainer.hide():(l._resetErrors(),l.$errorContainer.hide(),l.previewInitId="thumb-"+c.attr("id"),l._initPreviewCache(),l._initPreview(!0),l._initPreviewActions(),l.$parent.hasClass("file-loading")&&(l.$container.insertBefore(l.$parent),l.$parent.remove())),l._setFileDropZoneTitle(),c.attr("disabled")&&l.disable(),l._initZoom(),l.hideThumbnailContent&&t.addCss(l.$preview,"hide-content")},_initFileManager:function(){var i=this;i.uploadStartTime=t.now(),i.fileManager={stack:{},filesProcessed:[],errors:[],loadedImages:{},totalImages:0,totalFiles:null,totalSize:null,uploadedSize:0,stats:{},bpsLog:[],bps:0,initStats:function(e){var n={started:t.now()};e?i.fileManager.stats[e]=n:i.fileManager.stats=n},getUploadStats:function(e,n,r){var o,s=i.fileManager,a=e?s.stats[e]&&s.stats[e].started||t.now():i.uploadStartTime,l=(t.now()-a)/1e3,c=Math.ceil(l?n/l:0),u=r-n,d=s.bpsLog.length?i.bitrateUpdateDelay:0;return setTimeout((function(){var e,t,i,n=0,r=0;for(s.bpsLog.push(c),s.bpsLog.sort((function(e,t){return e-t})),i=(t=s.bpsLog.length)>10?t-10:Math.ceil(t/2),e=t;e>i;e--)r=parseFloat(s.bpsLog[e]),n++;s.bps=64*(n>0?r/n:0)}),d),o={fileId:e,started:a,elapsed:l,loaded:n,total:r,bps:s.bps,bitrate:i._getSize(s.bps,!1,i.bitRateUnits),pendingBytes:u},e?s.stats[e]=o:s.stats=o,o},exists:function(t){return-1!==e.inArray(t,i.fileManager.getIdList())},count:function(){return i.fileManager.getIdList().length},total:function(){var e=i.fileManager;return e.totalFiles||(e.totalFiles=e.count()),e.totalFiles},getTotalSize:function(){var t=i.fileManager;return t.totalSize||(t.totalSize=0,e.each(i.getFileStack(),(function(e,i){var n=parseFloat(i.size);t.totalSize+=isNaN(n)?0:n}))),t.totalSize},add:function(e,n){n||(n=i.fileManager.getId(e)),n&&(i.fileManager.stack[n]={file:e,name:t.getFileName(e),relativePath:t.getFileRelativePath(e),size:e.size,nameFmt:i._getFileName(e,""),sizeFmt:i._getSize(e.size)})},remove:function(e){var t=i._getThumbFileId(e);i.fileManager.removeFile(t)},removeFile:function(e){var t=i.fileManager;e&&(delete t.stack[e],delete t.loadedImages[e])},move:function(t,n){var r={},o=i.fileManager.stack;(t||n)&&t!==n&&(e.each(o,(function(e,i){e!==t&&(r[e]=i),e===n&&(r[t]=o[t])})),i.fileManager.stack=r)},list:function(){var t=[];return e.each(i.getFileStack(),(function(e,i){i&&i.file&&t.push(i.file)})),t},isPending:function(t){return-1===e.inArray(t,i.fileManager.filesProcessed)&&i.fileManager.exists(t)},isProcessed:function(){var t=!0,n=i.fileManager;return e.each(i.getFileStack(),(function(e){n.isPending(e)&&(t=!1)})),t},clear:function(){var e=i.fileManager;i.isDuplicateError=!1,i.isPersistentError=!1,e.totalFiles=null,e.totalSize=null,e.uploadedSize=0,e.stack={},e.errors=[],e.filesProcessed=[],e.stats={},e.bpsLog=[],e.bps=0,e.clearImages()},clearImages:function(){i.fileManager.loadedImages={},i.fileManager.totalImages=0},addImage:function(e,t){i.fileManager.loadedImages[e]=t},removeImage:function(e){delete i.fileManager.loadedImages[e]},getImageIdList:function(){return t.getObjectKeys(i.fileManager.loadedImages)},getImageCount:function(){return i.fileManager.getImageIdList().length},getId:function(e){return i._getFileId(e)},getIndex:function(e){return i.fileManager.getIdList().indexOf(e)},getThumb:function(t){var n=null;return i._getThumbs().each((function(){var r=e(this);i._getThumbFileId(r)===t&&(n=r)})),n},getThumbIndex:function(e){var t=i._getThumbFileId(e);return i.fileManager.getIndex(t)},getIdList:function(){return t.getObjectKeys(i.fileManager.stack)},getFile:function(e){return i.fileManager.stack[e]||null},getFileName:function(e,t){var n=i.fileManager.getFile(e);return n?t?n.nameFmt||"":n.name||"":""},getFirstFile:function(){var e=i.fileManager.getIdList(),t=e&&e.length?e[0]:null;return i.fileManager.getFile(t)},setFile:function(e,t){i.fileManager.getFile(e)?i.fileManager.stack[e].file=t:i.fileManager.add(t,e)},setProcessed:function(e){i.fileManager.filesProcessed.push(e)},getProgress:function(){var e=i.fileManager.total(),t=i.fileManager.filesProcessed.length;return e?Math.ceil(t/e*100):0},setProgress:function(e,t){var n=i.fileManager.getFile(e);!isNaN(t)&&n&&(n.progress=t)}}},_setUploadData:function(i,n){var r=this;e.each(n,(function(e,n){var o=r.uploadParamNames[e]||e;t.isArray(n)?i.append(o,n[0],n[1]):i.append(o,n)}))},_initResumableUpload:function(){var i,n=this,r=n.resumableUploadOptions,o=t.logMessages,s=n.fileManager;if(n.enableResumableUpload)if(!1!==r.fallback&&"function"!=typeof r.fallback&&(r.fallback=function(e){e._log(o.noResumableSupport),e.enableResumableUpload=!1}),t.hasResumableUploadSupport()||!1===r.fallback){if(!n.uploadUrl&&n.enableResumableUpload)return n._log(o.noUploadUrl),void(n.enableResumableUpload=!1);if(r.chunkSize=parseFloat(r.chunkSize),r.chunkSize<=0||isNaN(r.chunkSize))return n._log(o.invalidChunkSize,{chunkSize:r.chunkSize}),void(n.enableResumableUpload=!1);(i=n.resumableManager={init:function(e,t,o){i.logs=[],i.stack=[],i.error="",i.id=e,i.file=t.file,i.fileName=t.name,i.fileIndex=o,i.completed=!1,i.lastProgress=0,n.showPreview&&(i.$thumb=s.getThumb(e)||null,i.$progress=i.$btnDelete=null,i.$thumb&&i.$thumb.length&&(i.$progress=i.$thumb.find(".file-thumb-progress"),i.$btnDelete=i.$thumb.find(".kv-file-remove"))),i.chunkSize=r.chunkSize*n.bytesToKB,i.chunkCount=i.getTotalChunks()},setAjaxError:function(e,t,s,a){e.responseJSON&&e.responseJSON.error&&(s=e.responseJSON.error.toString()),a||(i.error=s),r.showErrorLog&&n._log(o.ajaxError,{status:e.status,error:s,text:e.responseText||""})},reset:function(){i.stack=[],i.chunksProcessed={}},setProcessed:function(t){var o,a,l=i.id,c=i.$thumb,u=i.$progress,d=c&&c.length,h={id:d?c.attr("id"):"",index:s.getIndex(l),fileId:l},p=n.resumableUploadOptions.skipErrorsAndProceed;i.completed=!0,i.lastProgress=0,d&&c.removeClass("file-uploading"),"success"===t?(s.uploadedSize+=i.file.size,n.showPreview&&(n._setProgress(101,u),n._setThumbStatus(c,"Success"),n._initUploadSuccess(i.chunksProcessed[l].data,c)),s.removeFile(l),delete i.chunksProcessed[l],n._raise("fileuploaded",[h.id,h.index,h.fileId]),s.isProcessed()&&n._setProgress(101)):"cancel"!==t&&(n.showPreview&&(n._setThumbStatus(c,"Error"),n._setPreviewError(c,!0),n._setProgress(101,u,n.msgProgressError),n._setProgress(101,n.$progress,n.msgProgressError),n.cancelling=!p),n.$errorContainer.find('li[data-file-id="'+h.fileId+'"]').length||(a={file:i.fileName,max:r.maxRetries,error:i.error},o=n.msgResumableUploadRetriesExceeded.setTokens(a),e.extend(h,a),n._showFileError(o,h,"filemaxretries"),p&&(s.removeFile(l),delete i.chunksProcessed[l],s.isProcessed()&&n._setProgress(101)))),s.isProcessed()&&i.reset()},check:function(){e.each(i.logs,(function(e,t){if(!t)return!1,!1}))},processedResumables:function(){var e,t=i.logs,n=0;if(!t||!t.length)return 0;for(e=0;e<t.length;e++)!0===t[e]&&n++;return n},getUploadedSize:function(){var e=i.processedResumables()*i.chunkSize;return e>i.file.size?i.file.size:e},getTotalChunks:function(){var e=parseFloat(i.chunkSize);return!isNaN(e)&&e>0?Math.ceil(i.file.size/e):0},getProgress:function(){var e=i.processedResumables(),t=i.chunkCount;return 0===t?0:Math.ceil(e/t*100)},checkAborted:function(e){n._isAborted()&&(clearInterval(e),n.unlock())},upload:function(){var e,r=s.getIdList(),o="new";e=setInterval((function(){var a;if(i.checkAborted(e),"new"===o&&(n.lock(),o="processing",a=r.shift(),s.initStats(a),s.stack[a]&&(i.init(a,s.stack[a],s.getIndex(a)),i.processUpload())),!s.isPending(a)&&i.completed&&(o="new"),s.isProcessed()){var l=n.$preview.find(".file-preview-initial");l.length&&(t.addCss(l,t.SORT_CSS),n._initSortable()),clearInterval(e),n._clearFileInput(),n.unlock(),setTimeout((function(){var e=n.previewCache.data;e&&(n.initialPreview=e.content,n.initialPreviewConfig=e.config,n.initialPreviewThumbTags=e.tags),n._raise("filebatchuploadcomplete",[n.initialPreview,n.initialPreviewConfig,n.initialPreviewThumbTags,n._getExtraData()])}),n.processDelay)}}),n.processDelay)},uploadResumable:function(){var e,t,o=n.taskManager,s=i.chunkCount;for(t=o.addPool(i.id),e=0;e<s;e++)i.logs[e]=!(!i.chunksProcessed[i.id]||!i.chunksProcessed[i.id][e]),i.logs[e]||i.pushAjax(e,0);t.run(r.maxThreads).done((function(){i.setProcessed("success")})).fail((function(){i.setProcessed(t.cancelled?"cancel":"error")}))},processUpload:function(){var o,a,l,c,u,d,h,p=i.id;r.testUrl?(o=new FormData,a=s.stack[p],n._setUploadData(o,{fileId:p,fileName:a.fileName,fileSize:a.size,fileRelativePath:a.relativePath,chunkSize:i.chunkSize,chunkCount:i.chunkCount}),l=function(e){h=n._getOutData(o,e),n._raise("filetestbeforesend",[p,s,i,h])},c=function(r,a,l){h=n._getOutData(o,l,r);var c=n.uploadParamNames.chunksUploaded||"chunksUploaded",u=[p,s,i,h];r[c]&&t.isArray(r[c])?(i.chunksProcessed[p]||(i.chunksProcessed[p]={}),e.each(r[c],(function(e,t){i.logs[t]=!0,i.chunksProcessed[p][t]=!0})),i.chunksProcessed[p].data=r,n._raise("filetestsuccess",u)):n._raise("filetesterror",u),i.uploadResumable()},u=function(e,t,r){h=n._getOutData(o,e),n._raise("filetestajaxerror",[p,s,i,h]),i.setAjaxError(e,t,r,!0),i.uploadResumable()},d=function(){n._raise("filetestcomplete",[p,s,i,n._getOutData(o)])},n._ajaxSubmit(l,c,d,u,o,p,i.fileIndex,r.testUrl)):i.uploadResumable()},pushAjax:function(e,t){var r=n.taskManager.getPool(i.id);r.addTask(r.size()+1,(function(e){var t,r=i.stack.shift();t=r[0],i.chunksProcessed[i.id]&&i.chunksProcessed[i.id][t]?n._log(o.chunkQueueError,{index:t}):i.sendAjax(t,r[1],e)})),i.stack.push([e,t])},sendAjax:function(e,a,l){var c,u=i.chunkSize,d=i.id,h=i.file,p=i.$thumb,f=t.logMessages,m=i.$btnDelete,g=function(e,t){t&&(e=e.setTokens(t)),e=f.resumableRequestError.setTokens({msg:e}),n._log(e),l.reject(e)};if(!i.chunksProcessed[d]||!i.chunksProcessed[d][e]){if(a>r.maxRetries)return g(f.resumableMaxRetriesReached,{n:r.maxRetries}),void i.setProcessed("error");var v,_,b,y,w,x,C=h[h.slice?"slice":h.mozSlice?"mozSlice":h.webkitSlice?"webkitSlice":"slice"](u*e,u*(e+1));v=new FormData,c=s.stack[d],n._setUploadData(v,{chunkCount:i.chunkCount,chunkIndex:e,chunkSize:u,chunkSizeStart:u*e,fileBlob:[C,i.fileName],fileId:d,fileName:i.fileName,fileRelativePath:c.relativePath,fileSize:h.size,retryCount:a}),i.$progress&&i.$progress.length&&i.$progress.show(),b=function(r){_=n._getOutData(v,r),n.showPreview&&(p.hasClass("file-preview-success")||(n._setThumbStatus(p,"Loading"),t.addCss(p,"file-uploading")),m.attr("disabled",!0)),n._raise("filechunkbeforesend",[d,e,a,s,i,_])},y=function(t,c,u){if(n._isAborted())g(f.resumableAborting);else{_=n._getOutData(v,u,t);var h=n.uploadParamNames.chunkIndex||"chunkIndex",p=[d,e,a,s,i,_];t.error?(r.showErrorLog&&n._log(o.retryStatus,{retry:a+1,filename:i.fileName,chunk:e}),n._raise("filechunkerror",p),i.pushAjax(e,a+1),i.error=t.error,g(t.error)):(i.logs[t[h]]=!0,i.chunksProcessed[d]||(i.chunksProcessed[d]={}),i.chunksProcessed[d][t[h]]=!0,i.chunksProcessed[d].data=t,l.resolve.call(null,t),n._raise("filechunksuccess",p),i.check())}},w=function(t,r,o){n._isAborted()?g(f.resumableAborting):(_=n._getOutData(v,t),i.setAjaxError(t,r,o),n._raise("filechunkajaxerror",[d,e,a,s,i,_]),i.pushAjax(e,a+1),g(f.resumableRetryError,{n:a-1}))},x=function(){n._isAborted()||n._raise("filechunkcomplete",[d,e,a,s,i,n._getOutData(v)])},n._ajaxSubmit(b,y,x,w,v,d,i.fileIndex)}}}).reset()}else r.fallback(n)},_initTemplateDefaults:function(){var i,n,r,o,s,a,l,c,u,d,h,p,f,m,g,v,_,b,y,w,x,C,T,k,E,S,A,P,I,D,F,L,M,O,j,$,z,N,R,U,B,H,q,W,V=this,Z=function(e,i){return'<object class="kv-preview-data file-preview-'+e+'" title="{caption}" data="{data}" type="'+i+'"'+N+">\n"+t.DEFAULT_PREVIEW+"\n</object>\n"},K="btn btn-sm btn-kv "+t.defaultButtonCss();i='{preview}\n<div class="kv-upload-progress kv-hidden"></div><div class="clearfix"></div>\n<div class="file-caption {class}">\n  <div class="input-group {inputGroupClass}">\n      {caption}\n<span class="file-caption-icon"></span>\n'+(t.isBs(5)?"":'<div class="input-group-btn input-group-append">\n')+"      {remove}\n      {cancel}\n      {pause}\n      {upload}\n      {browse}\n"+(t.isBs(5)?"":"    </div>\n")+"  </div>",n='{preview}\n<div class="kv-upload-progress kv-hidden"></div>\n<div class="clearfix"></div>\n<span class="{class}">{remove}\n{cancel}\n{upload}\n{browse}\n</span>',r='<div class="file-preview {class}">\n  {close}  <div class="{dropClass} clearfix">\n    <div class="file-preview-thumbnails clearfix">\n    </div>\n    <div class="file-preview-status text-center text-success"></div>\n    <div class="kv-fileinput-error"></div>\n  </div>\n</div>',s=t.closeButton("fileinput-remove"),o='<i class="bi-file-earmark-arrow-up"></i>',a='<input readonly class="file-caption-name form-control {class}">\n',l='<button type="{type}" title="{title}" class="{css}" {status} {tabIndexConfig}>{icon} {label}</button>',c='<a href="{href}" title="{title}" class="{css}" {status} {tabIndexConfig}>{icon} {label}</a>',u='<div class="{css}" {status} {tabIndexConfig}>{icon} {label}</div>',q=t.MODAL_ID+"Label",d='<div id="'+t.MODAL_ID+'" class="file-zoom-dialog modal fade" aria-labelledby="'+q+'" {tabIndexConfig}></div>',h='<div class="modal-dialog modal-lg{rtl}" role="document">\n  <div class="modal-content">\n    <div class="modal-header kv-zoom-header">\n      <h6 class="modal-title kv-zoom-title" id="'+q+'"><span class="kv-zoom-caption"></span> <span class="kv-zoom-size"></span></h6>\n      <div class="kv-zoom-actions">{rotate}{toggleheader}{fullscreen}{borderless}{close}</div>\n    </div>\n    <div class="floating-buttons"></div>\n    <div class="kv-zoom-body file-zoom-content {zoomFrameClass}"></div>\n{prev} {next}\n    <div class="kv-zoom-description"></div>\n  </div>\n</div>\n',W='<button type="button" class="kv-desc-hide" aria-label="Close">{closeIcon}</button>',p='<div class="progress">\n    <div class="{class}" role="progressbar" aria-valuenow="{percent}" aria-valuemin="0" aria-valuemax="100" style="width:{percent}%;">\n        {status}\n     </div>\n</div>{stats}',H='<div class="text-primary file-upload-stats"><span class="pending-time">{pendingTime}</span> <span class="upload-speed">{uploadSpeed}</span></div>',f=" <samp>({sizeText})</samp>",m='<div class="file-thumbnail-footer">\n    <div class="file-footer-caption" title="{caption}">\n        <div class="file-caption-info">{caption}</div>\n        <div class="file-size-info">{size}</div>\n    </div>\n    {progress}\n{indicator}\n{actions}\n</div>',g='<div class="file-actions">\n    <div class="file-footer-buttons">\n        {rotate} {download} {upload} {delete} {zoom} {other}    </div>\n</div>\n{drag}\n<div class="clearfix"></div>',v='<button type="button" class="kv-file-remove {removeClass}" title="{removeTitle}" {dataUrl}{dataKey}>{removeIcon}</button>\n',_='<button type="button" class="kv-file-upload {uploadClass}" title="{uploadTitle}">{uploadIcon}</button>',B='<button type="button" class="kv-file-rotate {rotateClass}" title="{rotateTitle}">{rotateIcon}</button>',b='<a class="kv-file-download {downloadClass}" title="{downloadTitle}" href="{downloadUrl}" download="{caption}" target="_blank">{downloadIcon}</a>',y='<button type="button" class="kv-file-zoom {zoomClass}" title="{zoomTitle}">{zoomIcon}</button>',w='<span class="file-drag-handle {dragClass}" title="{dragTitle}">{dragIcon}</span>',x='<div class="file-upload-indicator" title="{indicatorTitle}">{indicator}</div>',T=(C='<div class="file-preview-frame {frameClass}" id="{previewId}" data-fileindex="{fileindex}" data-fileid="{fileid}" data-filename="{filename}" data-template="{template}" data-zoom="{zoomData}"')+'><div class="kv-file-content">\n',k=C+' title="{caption}"><div class="kv-file-content">\n',E="</div>{footer}\n{zoomCache}</div>\n",S="{content}\n",N=" {style}",A=Z("html","text/html"),I=Z("text","text/plain;charset=UTF-8"),$=Z("pdf","application/pdf"),P='<img src="{data}" class="file-preview-image kv-preview-data" title="{title}" alt="{alt}"'+N+">\n",D='<iframe class="kv-preview-data file-preview-office" src="https://view.officeapps.live.com/op/embed.aspx?src={data}"'+N+"></iframe>",F='<iframe class="kv-preview-data file-preview-gdocs" src="https://docs.google.com/gview?url={data}&embedded=true"'+N+"></iframe>",L='<video class="kv-preview-data file-preview-video" controls'+N+'>\n<source src="{data}" type="{type}">\n'+t.DEFAULT_PREVIEW+"\n</video>\n",M='\x3c!--suppress ALL --\x3e<audio class="kv-preview-data file-preview-audio" controls'+N+'>\n<source src="{data}" type="{type}">\n'+t.DEFAULT_PREVIEW+"\n</audio>\n",O='<embed class="kv-preview-data file-preview-flash" src="{data}" type="application/x-shockwave-flash"'+N+">\n",j='<object class="kv-preview-data file-preview-object file-object {typeCss}" data="{data}" type="{type}"'+N+'>\n<param name="movie" value="{caption}" />\n'+t.OBJECT_PARAMS+" "+t.DEFAULT_PREVIEW+"\n</object>\n",z='<div class="kv-preview-data file-preview-other-frame"'+N+">\n"+t.DEFAULT_PREVIEW+"\n</div>\n",R='<div class="kv-zoom-cache">{zoomContent}</div>',U={width:"100%",height:"100%","min-height":"480px"},V._isPdfRendered()&&($=V.pdfRendererTemplate.replace("{renderer}",V._encodeURI(V.pdfRendererUrl))),V.defaults={layoutTemplates:{main1:i,main2:n,preview:r,close:s,fileIcon:o,caption:a,modalMain:d,modal:h,descriptionClose:W,progress:p,stats:H,size:f,footer:m,indicator:x,actions:g,actionDelete:v,actionRotate:B,actionUpload:_,actionDownload:b,actionZoom:y,actionDrag:w,btnDefault:l,btnLink:c,btnBrowse:u,zoomCache:R},previewMarkupTags:{tagBefore1:T,tagBefore2:k,tagAfter:E},previewContentTemplates:{generic:S,html:A,image:P,text:I,office:D,gdocs:F,video:L,audio:M,flash:O,object:j,pdf:$,other:z},allowedPreviewTypes:["image","html","text","video","audio","flash","pdf","object"],previewTemplates:{},previewSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"213px",height:"160px"},text:{width:"213px",height:"160px"},office:{width:"213px",height:"160px"},gdocs:{width:"213px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"100%",height:"30px"},flash:{width:"213px",height:"160px"},object:{width:"213px",height:"160px"},pdf:{width:"100%",height:"160px",position:"relative"},other:{width:"213px",height:"160px"}},previewSettingsSmall:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"100%",height:"160px"},text:{width:"100%",height:"160px"},office:{width:"100%",height:"160px"},gdocs:{width:"100%",height:"160px"},video:{width:"100%",height:"auto"},audio:{width:"100%",height:"30px"},flash:{width:"100%",height:"auto"},object:{width:"100%",height:"auto"},pdf:{width:"100%",height:"160px"},other:{width:"100%",height:"160px"}},previewZoomSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:U,text:U,office:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},gdocs:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},video:{width:"auto",height:"100%","max-width":"100%"},audio:{width:"100%",height:"30px"},flash:{width:"auto",height:"480px"},object:{width:"auto",height:"100%","max-width":"100%","min-height":"480px"},pdf:U,other:{width:"auto",height:"100%","min-height":"480px"}},mimeTypeAliases:{"video/quicktime":"video/mp4"},fileTypeSettings:{image:function(e,i){return t.compare(e,"image.*")&&!t.compare(e,/(tiff?|wmf)$/i)||t.compare(i,/\.(gif|png|jpe?g)$/i)},html:function(e,i){return t.compare(e,"text/html")||t.compare(i,/\.(htm|html)$/i)},office:function(e,i){return t.compare(e,/(word|excel|powerpoint|office)$/i)||t.compare(i,/\.(docx?|xlsx?|pptx?|pps|potx?)$/i)},gdocs:function(e,i){return t.compare(e,/(word|excel|powerpoint|office|iwork-pages|tiff?)$/i)||t.compare(i,/\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i)},text:function(e,i){return t.compare(e,"text.*")||t.compare(i,/\.(xml|javascript)$/i)||t.compare(i,/\.(txt|md|nfo|ini|json|php|js|css)$/i)},video:function(e,i){return t.compare(e,"video.*")&&(t.compare(e,/(ogg|mp4|mp?g|mov|webm|3gp)$/i)||t.compare(i,/\.(og?|mp4|webm|mp?g|mov|3gp)$/i))},audio:function(e,i){return t.compare(e,"audio.*")&&(t.compare(i,/(ogg|mp3|mp?g|wav)$/i)||t.compare(i,/\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,i){return t.compare(e,"application/x-shockwave-flash",!0)||t.compare(i,/\.(swf)$/i)},pdf:function(e,i){return t.compare(e,"application/pdf",!0)||t.compare(i,/\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},fileActionSettings:{showRemove:!0,showUpload:!0,showDownload:!0,showZoom:!0,showDrag:!0,showRotate:!0,removeIcon:'<i class="bi-trash"></i>',removeClass:K,removeErrorClass:"btn btn-sm btn-kv btn-danger",removeTitle:"Remove file",uploadIcon:'<i class="bi-upload"></i>',uploadClass:K,uploadTitle:"Upload file",uploadRetryIcon:'<i class="bi-cloud-arrow-up-fill"></i>',uploadRetryTitle:"Retry upload",downloadIcon:'<i class="bi-download"></i>',downloadClass:K,downloadTitle:"Download file",rotateIcon:'<i class="bi-arrow-clockwise"></i>',rotateClass:K,rotateTitle:"Rotate 90 deg. clockwise",zoomIcon:'<i class="bi-zoom-in"></i>',zoomClass:K,zoomTitle:"View Details",dragIcon:'<i class="bi-arrows-move"></i>',dragClass:"text-primary",dragTitle:"Move / Rearrange",dragSettings:{},indicatorNew:'<i class="bi-plus-lg text-warning"></i>',indicatorSuccess:'<i class="bi-check-lg text-success"></i>',indicatorError:'<i class="bi-exclamation-lg text-danger"></i>',indicatorLoading:'<i class="bi-hourglass-bottom text-muted"></i>',indicatorPaused:'<i class="bi-pause-fill text-primary"></i>',indicatorNewTitle:"Not uploaded yet",indicatorSuccessTitle:"Uploaded",indicatorErrorTitle:"Upload Error",indicatorLoadingTitle:"Uploading &hellip;",indicatorPausedTitle:"Upload Paused"}},e.each(V.defaults,(function(t,i){"allowedPreviewTypes"!==t?V[t]=e.extend(!0,{},i,V[t]):void 0===V.allowedPreviewTypes&&(V.allowedPreviewTypes=i)})),V._initPreviewTemplates()},_initPreviewTemplates:function(){var i,n=this,r=n.previewMarkupTags,o=r.tagAfter;e.each(n.previewContentTemplates,(function(e,s){t.isEmpty(n.previewTemplates[e])&&(i=r.tagBefore2,"generic"!==e&&"image"!==e||(i=r.tagBefore1),n._isPdfRendered()&&"pdf"===e&&(i=i.replace("kv-file-content","kv-file-content kv-pdf-rendered")),n.previewTemplates[e]=i+s+o)}))},_initPreviewCache:function(){var i=this;i.previewCache={data:{},init:function(){var e=i.initialPreview;e.length>0&&!t.isArray(e)&&(e=e.split(i.initialPreviewDelimiter)),i.previewCache.data={content:e,config:i.initialPreviewConfig,tags:i.initialPreviewThumbTags}},count:function(e){return i.previewCache.data&&i.previewCache.data.content?e?i.previewCache.data.content.filter((function(e){return null!==e})).length:i.previewCache.data.content.length:0},get:function(e,n){var r,o,s,a,l,c,u,d=t.INIT_FLAG+e,h=i.previewCache.data,p=h.config[e],f=h.content[e],m=t.ifSet("previewAsData",p,i.initialPreviewAsData),g=p?{title:p.title||null,alt:p.alt||null}:{title:null,alt:null},v=function(e,n,r,o,s,a,l,c){var u=" file-preview-initial "+t.SORT_CSS+(l?" "+l:""),d=i.previewInitId+"-"+a,h=p&&p.fileId||d;return i._generatePreviewTemplate(e,n,r,o,d,h,!1,null,null,u,s,a,c,g,p&&p.zoomData||n)};return f&&f.length?(n=void 0===n||n,s=t.ifSet("type",p,i.initialPreviewFileType||"generic"),l=t.ifSet("filename",p,t.ifSet("caption",p)),c=t.ifSet("filetype",p,s),a=i.previewCache.footer(e,n,p&&p.size||null),u=t.ifSet("frameClass",p),r=m?v(s,f,l,c,a,d,u):v("generic",f,l,c,a,d,u,s).setTokens({content:h.content[e]}),h.tags.length&&h.tags[e]&&(r=t.replaceTags(r,h.tags[e])),t.isEmpty(p)||t.isEmpty(p.frameAttr)||((o=t.createElement(r)).find(".file-preview-initial").attr(p.frameAttr),r=o.html(),o.remove()),r):""},clean:function(e){e.content=t.cleanArray(e.content),e.config=t.cleanArray(e.config),e.tags=t.cleanArray(e.tags),i.previewCache.data=e},add:function(e,n,r,o){var s,a=i.previewCache.data;return e&&e.length?(s=e.length-1,t.isArray(e)||(e=e.split(i.initialPreviewDelimiter)),o&&a.content?(s=a.content.push(e[0])-1,a.config[s]=n,a.tags[s]=r):(a.content=e,a.config=n,a.tags=r),i.previewCache.clean(a),s):0},set:function(e,n,r,o){var s,a=i.previewCache.data;if(e&&e.length&&(t.isArray(e)||(e=e.split(i.initialPreviewDelimiter)),e.filter((function(e){return null!==e})).length)){if(void 0===a.content&&(a.content=[]),void 0===a.config&&(a.config=[]),void 0===a.tags&&(a.tags=[]),o){for(s=0;s<e.length;s++)e[s]&&a.content.push(e[s]);for(s=0;s<n.length;s++)n[s]&&a.config.push(n[s]);for(s=0;s<r.length;s++)r[s]&&a.tags.push(r[s])}else a.content=e,a.config=n,a.tags=r;i.previewCache.clean(a)}},unset:function(n){var r=i.previewCache.count(),o=i.reversePreviewOrder;if(r){if(1===r)return i.previewCache.data.content=[],i.previewCache.data.config=[],i.previewCache.data.tags=[],i.initialPreview=[],i.initialPreviewConfig=[],void(i.initialPreviewThumbTags=[]);i.previewCache.data.content=t.spliceArray(i.previewCache.data.content,n,o),i.previewCache.data.config=t.spliceArray(i.previewCache.data.config,n,o),i.previewCache.data.tags=t.spliceArray(i.previewCache.data.tags,n,o);var s=e.extend(!0,{},i.previewCache.data);i.previewCache.clean(s)}},out:function(){var e,t,n="",r=i.previewCache.count();if(0===r)return{content:"",caption:""};for(e=0;e<r;e++)t=i.previewCache.get(e),n=i.reversePreviewOrder?t+n:n+t;return{content:n,caption:i._getMsgSelected(r)}},footer:function(e,n,r){var o=i.previewCache.data||{};if(t.isEmpty(o.content))return"";(t.isEmpty(o.config)||t.isEmpty(o.config[e]))&&(o.config[e]={}),n=void 0===n||n;var s,a=o.config[e],l=t.ifSet("caption",a),c=t.ifSet("width",a,"auto"),u=t.ifSet("url",a,!1),d=t.ifSet("key",a,null),h=t.ifSet("fileId",a,null),p=i.fileActionSettings,f=i.initialPreviewShowDelete||!1,m=i.initialPreviewDownloadUrl?i.initialPreviewDownloadUrl+"?key="+d+(h?"&fileId="+h:""):"",g=a.downloadUrl||m,v=a.filename||a.caption||"",_=!!g,b=t.ifSet("showRemove",a,f),y=t.ifSet("showRotate",a,t.ifSet("showRotate",p,!0)),w=t.ifSet("showDownload",a,t.ifSet("showDownload",p,_)),x=t.ifSet("showZoom",a,t.ifSet("showZoom",p,!0)),C=t.ifSet("showDrag",a,t.ifSet("showDrag",p,!0)),T=!1===u&&n;return w=w&&!1!==a.downloadUrl&&!!g,s=i._renderFileActions(a,!1,w,b,y,x,C,T,u,d,!0,g,v),i._getLayoutTemplate("footer").setTokens({progress:i._renderThumbProgress(),actions:s,caption:l,size:i._getSize(r),width:c,indicator:""})}},i.previewCache.init()},_isPdfRendered:function(){var e=this,t=e.usePdfRenderer;return("function"==typeof t?t():!!t)&&e.pdfRendererUrl},_handler:function(e,t,i){var n=this.namespace,r=t.split(" ").join(n+" ")+n;e&&e.length&&e.off(r).on(r,i)},_encodeURI:function(e){return this.encodeUrl?encodeURI(e):e},_log:function(e,t){var i=this,n=i.$element.attr("id");i.showConsoleLogs&&(n&&(e='"'+n+'": '+e),e="bootstrap-fileinput: "+e,"object"==typeof t&&(e=e.setTokens(t)),window.console&&void 0!==window.console.log?window.console.log(e):window.alert(e))},_validate:function(){var e=this,i="file"===e.$element.attr("type");return i||e._log(t.logMessages.badInputType),i},_errorsExist:function(){var i,n=this;return!!n.$errorContainer.find("li").length||((i=t.createElement(n.$errorContainer.html())).find(".kv-error-close").remove(),i.find("ul").remove(),!!e.trim(i.text()).length)},_errorHandler:function(e,t){var i=this,n=e.target.error,r=function(e){i._showError(e.replace("{name}",t))};n.code===n.NOT_FOUND_ERR?r(i.msgFileNotFound):n.code===n.SECURITY_ERR?r(i.msgFileSecured):n.code===n.NOT_READABLE_ERR?r(i.msgFileNotReadable):n.code===n.ABORT_ERR?r(i.msgFilePreviewAborted):r(i.msgFilePreviewError)},_addError:function(e){var i=this,n=i.$errorContainer;e&&n.length&&(t.setHtml(n,i.errorCloseButton+e),i._handler(n.find(".kv-error-close"),"click",(function(){setTimeout((function(){i.showPreview&&!i.getFrames().length&&i.clear(),n.fadeOut("slow")}),i.processDelay)})))},_setValidationError:function(e){var i=this;e=(e?e+" ":"")+"has-error",i.$container.removeClass(e).addClass("has-error"),t.addCss(i.$caption,"is-invalid")},_resetErrors:function(e){var t=this,i=t.$errorContainer,n=t.resumableUploadOptions.retainErrorHistory;t.isPersistentError||t.enableResumableUpload&&n&&!t.clearInput||(t.clearInput=!1,t.isError=!1,t.$container.removeClass("has-error"),t.$caption.removeClass("is-invalid is-valid file-processing"),i.html(""),e?i.fadeOut("slow"):i.hide())},_showFolderError:function(e){var t,i=this,n=i.$errorContainer;e&&(i.isAjaxUpload||i._clearFileInput(),t=i.msgFoldersNotAllowed.replace("{n}",e),i._addError(t),i._setValidationError(),n.fadeIn(i.fadeDelay),i._raise("filefoldererror",[e,t]))},showUserError:function(e,t,i){var n,r=this;r.uploadInitiated&&(t&&t.fileId?(i||r.$errorContainer.find('[data-file-id="'+t.fileId+'"]').remove(),(n=r.fileManager.getFileName(t.fileId))&&(e="<b>"+n+":</b> "+e)):i||r.$errorContainer.html(""),r._showFileError(e,t,"fileusererror"))},_showFileError:function(e,t,i){var n=this,r=n.$errorContainer,o=i||"fileuploaderror",s=t&&t.fileId||"",a=t&&t.id?'<li data-thumb-id="'+t.id+'" data-file-id="'+s+'">'+e+"</li>":"<li>"+e+"</li>";return 0===r.find("ul").length?n._addError("<ul>"+a+"</ul>"):r.find("ul").append(a),r.fadeIn(n.fadeDelay),n._raise(o,[t,e]),n._setValidationError("file-input-new"),!0},_showError:function(e,t,i){var n=this,r=n.$errorContainer,o=i||"fileerror";return(t=t||{}).reader=n.reader,n._addError(e),r.fadeIn(n.fadeDelay),n._raise(o,[t,e]),n.isAjaxUpload||n._clearFileInput(),n._setValidationError("file-input-new"),n.$btnUpload.attr("disabled",!0),!0},_noFilesError:function(e){var t=this,i=t.minFileCount>1?t.filePlural:t.fileSingle,n=t.msgFilesTooLess.replace("{n}",t.minFileCount).replace("{files}",i),r=t.$errorContainer;n="<li>"+n+"</li>",0===r.find("ul").length?t._addError("<ul>"+n+"</ul>"):r.find("ul").append(n),t.isError=!0,t._updateFileDetails(0),r.fadeIn(t.fadeDelay),t._raise("fileerror",[e,n]),t._clearFileInput(),t._setValidationError()},_parseError:function(t,i,n,r){var o,s,a,l=this,c=e.trim(n+"");return a=(s=i.responseJSON&&i.responseJSON.error?i.responseJSON.error.toString():"")||i.responseText,l.cancelling&&l.msgUploadAborted&&(c=l.msgUploadAborted),l.showAjaxErrorDetails&&a&&(s?c=e.trim(s+""):(o=(a=e.trim(a.replace(/\n\s*\n/g,"\n"))).length?"<pre>"+a+"</pre>":"",c+=c?o:a)),c||(c=l.msgAjaxError.replace("{operation}",t)),l.cancelling=!1,r?"<b>"+r+": </b>"+c:c},_parseFileType:function(e,i){var n,r,o,s=this,a=s.allowedPreviewTypes||[];if("application/text-plain"===e)return"text";for(o=0;o<a.length;o++)if(r=a[o],n=(0,s.fileTypeSettings[r])(e,i)?r:"",!t.isEmpty(n))return n;return"other"},_getPreviewIcon:function(t){var i,n=this,r=null;return t&&t.indexOf(".")>-1&&(i=t.split(".").pop(),n.previewFileIconSettings&&(r=n.previewFileIconSettings[i]||n.previewFileIconSettings[i.toLowerCase()]||null),n.previewFileExtSettings&&e.each(n.previewFileExtSettings,(function(e,t){n.previewFileIconSettings[e]&&t(i)&&(r=n.previewFileIconSettings[e])}))),r||n.previewFileIcon},_parseFilePreviewIcon:function(e,t){var i=this,n=i._getPreviewIcon(t),r=e;return r.indexOf("{previewFileIcon}")>-1&&(r=r.setTokens({previewFileIconClass:i.previewFileIconClass,previewFileIcon:n})),r},_raise:function(t,i){var n=this,r=e.Event(t);void 0!==i?n.$element.trigger(r,i):n.$element.trigger(r);var o=r.result,s=!1===o;if(r.isDefaultPrevented()||s)return!1;if("filebatchpreupload"===r.type&&(o||s))return n.ajaxAborted=o,!1;switch(t){case"filebatchuploadcomplete":case"filebatchuploadsuccess":case"fileuploaded":case"fileclear":case"filecleared":case"filereset":case"fileerror":case"filefoldererror":case"filecustomerror":case"filesuccessremove":break;default:n.ajaxAborted||(n.ajaxAborted=o)}return!0},_listenFullScreen:function(e){var t,i,n=this,r=n.$modal;r&&r.length&&(t=r&&r.find(".btn-kv-fullscreen"),i=r&&r.find(".btn-kv-borderless"),t.length&&i.length&&(t.removeClass("active").attr("aria-pressed","false"),i.removeClass("active").attr("aria-pressed","false"),e?t.addClass("active").attr("aria-pressed","true"):i.addClass("active").attr("aria-pressed","true"),r.hasClass("file-zoom-fullscreen")||e?n._maximizeZoomDialog():i.removeClass("active").attr("aria-pressed","false")))},_listen:function(){var i,n=this,r=n.$element,o=n.$form,s=n.$container;n._handler(r,"click",(function(e){n._initFileSelected(),r.hasClass("file-no-browse")&&(r.data("zoneClicked")?r.data("zoneClicked",!1):e.preventDefault())})),n._handler(r,"change",e.proxy(n._change,n)),n._handler(n.$caption,"paste",e.proxy(n.paste,n)),n.showBrowse&&(n._handler(n.$btnFile,"click",e.proxy(n._browse,n)),n._handler(n.$btnFile,"keypress",(function(e){13===(e.keyCode||e.which)&&(r.trigger("click"),n._browse(e))}))),n._handler(s.find(".fileinput-remove:not([disabled])"),"click",e.proxy(n.clear,n)),n._handler(s.find(".fileinput-cancel"),"click",e.proxy(n.cancel,n)),n._handler(s.find(".fileinput-pause"),"click",e.proxy(n.pause,n)),n._initDragDrop(),n._handler(o,"reset",e.proxy(n.clear,n)),n.isAjaxUpload||n._handler(o,"submit",e.proxy(n._submitForm,n)),n._handler(n.$container.find(".fileinput-upload"),"click",e.proxy(n._uploadClick,n)),n._handler(e(window),"resize",(function(){n._listenFullScreen(screen.width===window.innerWidth&&screen.height===window.innerHeight)})),i="webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",n._handler(e(document),i,(function(){n._listenFullScreen(t.checkFullScreen())})),n.$caption.on("focus",(function(){n.$captionContainer.focus()})),n._autoFitContent(),n._initClickable(),n._refreshPreview()},_autoFitContent:function(){var t,i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=this,r=i<400?n.previewSettingsSmall||n.defaults.previewSettingsSmall:n.previewSettings||n.defaults.previewSettings;e.each(r,(function(e,i){t=".file-preview-frame .file-preview-"+e,n.$preview.find(t+".kv-preview-data,"+t+" .kv-preview-data").css(i)}))},_scanDroppedItems:function(e,i,n){n=n||"";var r,o,s,a=this,l=function(e){a._log(t.logMessages.badDroppedFiles),a._log(e)};e.isFile?e.file((function(e){n&&(e.newPath=n+e.name),i.push(e)}),l):e.isDirectory&&(o=e.createReader(),(s=function(){o.readEntries((function(t){if(t&&t.length>0){for(r=0;r<t.length;r++)a._scanDroppedItems(t[r],i,n+e.name+"/");s()}return null}),l)})())},_initDragDrop:function(){var t=this,i=t.$dropZone;t.dropZoneEnabled&&t.showPreview&&(t._handler(i,"dragenter dragover",e.proxy(t._zoneDragEnter,t)),t._handler(i,"dragleave",e.proxy(t._zoneDragLeave,t)),t._handler(i,"drop",e.proxy(t._zoneDrop,t)),t._handler(e(document),"dragenter dragover drop",t._zoneDragDropInit))},_zoneDragDropInit:function(e){e.stopPropagation(),e.preventDefault()},_zoneDragEnter:function(i){var n=this,r=i.originalEvent.dataTransfer,o=e.inArray("Files",r.types)>-1;if(n._zoneDragDropInit(i),n.isDisabled||!o)return r.effectAllowed="none",void(r.dropEffect="none");r.dropEffect="copy",n._raise("fileDragEnter",{sourceEvent:i,files:r.types.Files})&&t.addCss(n.$dropZone,"file-highlighted")},_zoneDragLeave:function(e){var t=this;t._zoneDragDropInit(e),t.isDisabled||t._raise("fileDragLeave",{sourceEvent:e})&&t.$dropZone.removeClass("file-highlighted")},_dropFiles:function(e,t){var i=this,n=i.$element;i.isAjaxUpload?i._change(e,t):(i.changeTriggered=!0,n.get(0).files=t,setTimeout((function(){i.changeTriggered=!1,n.trigger("change"+i.namespace)}),i.processDelay)),i.$dropZone.removeClass("file-highlighted")},_zoneDrop:function(e){var i,n=this,r=(n.$element,e.originalEvent.dataTransfer),o=r.files,s=r.items,a=t.getDragDropFolders(s);if(e.preventDefault(),!n.isDisabled&&!t.isEmpty(o)&&n._raise("fileDragDrop",{sourceEvent:e,files:o}))if(a>0){if(!n.isAjaxUpload)return void n._showFolderError(a);for(o=[],i=0;i<s.length;i++){var l=s[i].webkitGetAsEntry();l&&n._scanDroppedItems(l,o)}setTimeout((function(){n._dropFiles(e,o)}),500)}else n._dropFiles(e,o)},_uploadClick:function(e){var i,n=this,r=n.$container.find(".fileinput-upload"),o=!r.hasClass("disabled")&&t.isEmpty(r.attr("disabled"));e&&e.isDefaultPrevented()||(n.isAjaxUpload?(e.preventDefault(),o&&n.upload()):o&&"submit"!==r.attr("type")&&(e.preventDefault(),(i=r.closest("form")).length&&i.trigger("submit")))},_submitForm:function(){var e=this;return e._isFileSelectionValid()&&!e._abort({})},_clearPreview:function(){var t=this;(t.showUploadedThumbs?t.getFrames(":not(.file-preview-success)"):t.getFrames()).each((function(){e(this).remove()})),t.getFrames().length&&t.showPreview||t._resetUpload(),t._validateDefaultPreview()},_initSortable:function(){var i,n,r,o,s=this,a=s.$preview,l="."+t.SORT_CSS,c=e("body"),u=e("html"),d=s.reversePreviewOrder,h=window.Sortable;h&&0!==a.find(l).length&&(n=c.length?c:u.length?u:s.$container,i={handle:".drag-handle-init",dataIdAttr:"data-fileid",animation:600,draggable:l,scroll:!1,forceFallback:!0,onChoose:r=function(){n.addClass("file-grabbing")},onStart:r,onUnchoose:o=function(){n.removeClass("file-grabbing")},onEnd:o,onSort:function(i){var n,r=i.oldIndex,o=i.newIndex,a=0,l=s.initialPreviewConfig.length,c=l>0&&o>=l,u=e(i.item);c&&(o=l-1),s.initialPreview=t.moveArray(s.initialPreview,r,o,d),s.initialPreviewConfig=t.moveArray(s.initialPreviewConfig,r,o,d),s.previewCache.init(),s.getFrames(".file-preview-initial").each((function(){e(this).attr("data-fileindex",t.INIT_FLAG+a),a++})),c&&(n=s.getFrames(":not(.file-preview-initial):first")).length&&u.slideUp((function(){u.insertBefore(n).slideDown()})),s._raise("filesorted",{previewId:u.attr("id"),oldIndex:r,newIndex:o,stack:s.initialPreviewConfig})}},e.extend(!0,i,s.fileActionSettings.dragSettings),s.sortable&&s.sortable.destroy(),s.sortable=h.create(a[0],i))},_setPreviewContent:function(e){var i=this;t.setHtml(i.$preview,e),i._autoFitContent()},_initPreviewImageOrientations:function(){var t=this,i=0,n=t.canOrientImage;(t.autoOrientImageInitial||n)&&t.getFrames(".file-preview-initial").each((function(){var r,o,s,a=e(this),l=t.initialPreviewConfig[i];l&&l.exif&&l.exif.Orientation&&(s=a.attr("id"),r=a.find(">.kv-file-content img"),o=t._getZoom(s," >.kv-file-content img"),n?r.css("image-orientation",t.autoOrientImageInitial?"from-image":"none"):t.setImageOrientation(r,o,l.exif.Orientation,a)),i++}))},_initPreview:function(e){var i,n=this,r=n.initialCaption||"";if(!n.previewCache.count(!0))return n._clearPreview(),void(e?n._setCaption(r):n._initCaption());i=n.previewCache.out(),r=e&&n.initialCaption?n.initialCaption:i.caption,n._setPreviewContent(i.content),n._setInitThumbAttr(),n._setCaption(r),n._initSortable(),t.isEmpty(i.content)||n.$container.removeClass("file-input-new"),n._initPreviewImageOrientations()},_getZoomButton:function(e){var i=this,n=i.previewZoomButtonIcons[e],r=i.previewZoomButtonClasses[e],o=' title="'+(i.previewZoomButtonTitles[e]||"")+'" ',s=t.isBs(5)?"bs-":"",a=o+("close"===e?" data-"+s+'dismiss="modal" aria-hidden="true"':"");return"fullscreen"!==e&&"borderless"!==e&&"toggleheader"!==e||(a+=' data-toggle="button" aria-pressed="false" autocomplete="off"'),'<button type="button" class="'+r+" btn-kv-"+e+'"'+a+">"+n+"</button>"},_getModalContent:function(){var e=this;return e._getLayoutTemplate("modal").setTokens({rtl:e.rtl?" kv-rtl":"",zoomFrameClass:e.frameClass,prev:e._getZoomButton("prev"),next:e._getZoomButton("next"),rotate:e._getZoomButton("rotate"),toggleheader:e._getZoomButton("toggleheader"),fullscreen:e._getZoomButton("fullscreen"),borderless:e._getZoomButton("borderless"),close:e._getZoomButton("close")})},_listenModalEvent:function(e){var i=this,n=i.$modal,r=function(e){return{sourceEvent:e,previewId:n.data("previewId"),modal:n}};n.on(e+".bs.modal",(function(o){if("bs.modal"===o.namespace){var s=n.find(".btn-fullscreen"),a=n.find(".btn-borderless");n.data("fileinputPluginId")===i.$element.attr("id")&&i._raise("filezoom"+e,r(o)),"shown"===e&&(i._handleRotation(n,n.find(".file-zoom-detail"),n.data("angle")),a.removeClass("active").attr("aria-pressed","false"),s.removeClass("active").attr("aria-pressed","false"),n.hasClass("file-zoom-fullscreen")&&(i._maximizeZoomDialog(),t.checkFullScreen()?s.addClass("active").attr("aria-pressed","true"):a.addClass("active").attr("aria-pressed","true")))}}))},_initZoom:function(){var i,n=this,r=n._getLayoutTemplate("modalMain"),o="#"+t.MODAL_ID;r=n._setTabIndex("modal",r),n.showPreview&&(n.$modal=e(o),n.$modal&&n.$modal.length||(i=t.createElement(t.cspBuffer.stash(r)).insertAfter(n.$container),n.$modal=e(o).insertBefore(i),t.cspBuffer.apply(n.$modal),i.remove()),t.initModal(n.$modal),n.$modal.html(t.cspBuffer.stash(n._getModalContent())),t.cspBuffer.apply(n.$modal),e.each(t.MODAL_EVENTS,(function(e,t){n._listenModalEvent(t)})))},_initZoomButtons:function(){var t,i,n=this,r=n.$modal,o=r.data("previewId")||"",s=n.getFrames().toArray(),a=s.length,l=r.find(".btn-kv-prev"),c=r.find(".btn-kv-next");r.find(".btn-kv-rotate");if(s.length<2)return l.hide(),void c.hide();l.show(),c.show(),a&&(t=e(s[0]),i=e(s[a-1]),l.removeAttr("disabled"),c.removeAttr("disabled"),n.reversePreviewOrder&&([l,c]=[c,l]),t.length&&t.attr("id")===o&&l.attr("disabled",!0),i.length&&i.attr("id")===o&&c.attr("disabled",!0))},_maximizeZoomDialog:function(){var t=this.$modal,i=t.find(".modal-header:visible"),n=t.find(".modal-footer:visible"),r=t.find(".kv-zoom-body"),o=e(window).height();t.addClass("file-zoom-fullscreen"),i&&i.length&&(o-=i.outerHeight(!0)),n&&n.length&&(o-=n.outerHeight(!0)),r&&r.length&&(o-=r.outerHeight(!0)-r.height()),t.find(".kv-zoom-body").height(o)},_resizeZoomDialog:function(e){var i=this,n=i.$modal,r=n.find(".btn-kv-fullscreen"),o=n.find(".btn-kv-borderless");if(n.hasClass("file-zoom-fullscreen"))t.toggleFullScreen(!1),e?r.hasClass("active")||(n.removeClass("file-zoom-fullscreen"),i._resizeZoomDialog(!0),o.hasClass("active")&&o.removeClass("active").attr("aria-pressed","false")):r.hasClass("active")?r.removeClass("active").attr("aria-pressed","false"):(n.removeClass("file-zoom-fullscreen"),i.$modal.find(".kv-zoom-body").css("height",i.zoomModalHeight));else{if(!e)return void i._maximizeZoomDialog();t.toggleFullScreen(!0)}n.focus()},_setZoomContent:function(i,n){var r,o,s,a,l,c,u,d,h,p,f,m,g=this,v=i.attr("id"),_=g._getZoom(v),b=g.$modal,y=b.find(".btn-kv-fullscreen"),w=b.find(".btn-kv-borderless"),x=b.find(".btn-kv-toggleheader"),C=i.data("zoom");C&&(C=decodeURIComponent(C),m=_.html().replace(g.zoomPlaceholder,"").setTokens({zoomData:C}),_.html(m),i.data("zoom",""),_.attr("data-zoom",C)),o=_.attr("data-template")||"generic",s=(r=_.find(".kv-file-content")).length?r.html():"",p=i.data("caption")||g.msgZoomModalHeading,f=i.data("size")||"",d=i.data("description")||"",b.find(".kv-zoom-caption").attr("title",p).html(p),b.find(".kv-zoom-size").html(f),h=b.find(".kv-zoom-description").hide(),d&&(g.showDescriptionClose&&(d=g._getLayoutTemplate("descriptionClose").setTokens({closeIcon:g.previewZoomButtonIcons.close})+"</button>"+d),h.show().html(d),g.showDescriptionClose&&g._handler(b.find(".kv-desc-hide"),"click",(function(){e(this).parent().fadeOut("fast",(function(){b.focus()}))}))),a=b.find(".kv-zoom-body"),b.removeClass("kv-single-content"),n?(u=a.addClass("file-thumb-loading").clone().insertAfter(a),t.setHtml(a,s).hide(),u.fadeOut("fast",(function(){a.fadeIn("fast",(function(){a.removeClass("file-thumb-loading")})),u.remove()}))):t.setHtml(a,s),(c=g.previewZoomSettings[o])&&(l=a.find(".kv-preview-data"),t.addCss(l,"file-zoom-detail"),e.each(c,(function(e,t){l.css(e,t),(l.attr("width")&&"width"===e||l.attr("height")&&"height"===e)&&l.removeAttr(e)}))),b.data("previewId",v),g._handler(b.find(".btn-kv-prev"),"click",(function(){g._zoomSlideShow("prev",v)})),g._handler(b.find(".btn-kv-next"),"click",(function(){g._zoomSlideShow("next",v)})),g._handler(y,"click",(function(){g._resizeZoomDialog(!0)})),g._handler(w,"click",(function(){g._resizeZoomDialog(!1)})),g._handler(x,"click",(function(){var e,t=b.find(".modal-header"),i=b.find(".floating-buttons"),n=t.find(".kv-zoom-actions"),r=function(e){var i=g.$modal.find(".kv-zoom-body"),n=g.zoomModalHeight;b.hasClass("file-zoom-fullscreen")&&(n=i.outerHeight(!0),e||(n-=t.outerHeight(!0))),i.css("height",e?n+e:n)};t.is(":visible")?(e=t.outerHeight(!0),t.slideUp("slow",(function(){n.find(".btn").appendTo(i),r(e)}))):(i.find(".btn").appendTo(n),t.slideDown("slow",(function(){r()}))),b.focus()})),g._handler(b,"keydown",(function(t){var i,n,r=t.which||t.keyCode,o=g.processDelay+1,s=e(this).find(".btn-kv-prev"),a=e(this).find(".btn-kv-next"),l=e(this).data("previewId");[i,n]=g.rtl?[39,37]:[37,39],e.each({prev:[s,i],next:[a,n]},(function(e,t){var i=t[0],n=t[1];r===n&&i.length&&(b.focus(),i.attr("disabled")||(i.blur(),setTimeout((function(){i.focus(),g._zoomSlideShow(e,l),setTimeout((function(){i.attr("disabled")&&b.focus()}),o)}),o)))}))}))},_showModal:function(e){var i,n,r=this,o=r.$modal;e&&e.length&&(t.initModal(o),t.setHtml(o,r._getModalContent()),r._setZoomContent(e),o.removeClass("rotatable"),o.data({backdrop:!1,fileinputPluginId:r.$element.attr("id")}),o.find(".kv-zoom-body").css("height",r.zoomModalHeight),(i=e.find(".kv-file-content > :first-child")).length&&(n=i.css("transform"))&&o.find(".file-zoom-detail").css("transform",n),e.hasClass("rotatable")&&o.addClass("rotatable"),e.data("angle")&&o.data("angle",e.data("angle")),e.data("angle")||0,o.modal("show"),r._initZoomButtons(),r._initRotateZoom(e,i))},_zoomPreview:function(e){var i,n=this;if(!e.length)throw"Cannot zoom to detailed preview!";i=e.closest(t.FRAMES),n._showModal(i)},_zoomSlideShow:function(t,i){var n,r,o,s,a,l,c=this,u=c.$modal,d=u.find(".kv-zoom-actions .btn-kv-"+t),h=c.getFrames().toArray(),p=[],f=h.length;if(c.reversePreviewOrder&&(t="prev"===t?"next":"prev"),!d.attr("disabled")){for(r=0;r<f;r++)(o=e(h[r]))&&o.length&&o.find(".kv-file-zoom:visible").length&&p.push(h[r]);for(f=p.length,r=0;r<f;r++)if(e(p[r]).attr("id")===i){s="prev"===t?r-1:r+1;break}s<0||s>=f||!p[s]||((n=e(p[s])).length&&c._setZoomContent(n,t),c._initZoomButtons(),n.length&&n.hasClass("rotatable")?(a=n.data("angle")||0,u.addClass("rotatable").data("angle",a),l=n.find(".kv-file-content > :first-child"),c._initRotateZoom(n,l)):u.removeClass("rotatable").removeData("angle"),c._raise("filezoom"+t,{previewId:i,modal:c.$modal}))}},_initZoomButton:function(){var t=this;t.$preview.find(".kv-file-zoom").each((function(){var i=e(this);t._handler(i,"click",(function(){t._zoomPreview(i)}))}))},_inputFileCount:function(){return this.$element[0].files.length},_refreshPreview:function(){var t,i=this;(i._inputFileCount()||i.isAjaxUpload)&&i.showPreview&&i.isPreviewable&&(i.isAjaxUpload&&i.fileManager.count()>0?(t=e.extend(!0,[],i.getFileList()),i.fileManager.clear(),i._clearFileInput()):t=i.$element[0].files,t&&t.length&&i.readFiles(t))},_clearObjects:function(t){t.find("video audio").each((function(){this.pause(),e(this).remove()})),t.find("img object div").each((function(){e(this).remove()}))},_clearFileInput:function(){var t,i,n,r=this,o=r.$element;r._inputFileCount()&&(t=o.closest("form"),i=e(document.createElement("form")),n=e(document.createElement("div")),o.before(n),t.length?t.after(i):n.after(i),i.append(o).trigger("reset"),n.before(o).remove(),i.remove())},_resetUpload:function(){var e=this;e.uploadInitiated=!1,e.uploadStartTime=t.now(),e.uploadCache=[],e.$btnUpload.removeAttr("disabled"),e._setProgress(0),e._hideProgress(),e._resetErrors(!1),e._initAjax(),e.fileManager.clearImages(),e._resetCanvas(),e.overwriteInitial&&(e.initialPreview=[],e.initialPreviewConfig=[],e.initialPreviewThumbTags=[],e.previewCache.data={content:[],config:[],tags:[]})},_resetCanvas:function(){var e=this;e.imageCanvas&&e.imageCanvasContext&&e.imageCanvasContext.clearRect(0,0,e.imageCanvas.width,e.imageCanvas.height)},_hasInitialPreview:function(){var e=this;return!e.overwriteInitial&&e.previewCache.count(!0)},_resetPreview:function(){var i,n,r,o=this,s=o.showUploadedThumbs,a=!o.removeFromPreviewOnError,l=(s||a)&&o.isDuplicateError;o.previewCache.count(!0)?(i=o.previewCache.out(),l&&(r=t.createElement("").insertAfter(o.$container),o.getFrames().each((function(){var t=e(this);(s&&t.hasClass("file-preview-success")||a&&t.hasClass("file-preview-error"))&&r.append(t)}))),o._setPreviewContent(i.content),o._setInitThumbAttr(),n=o.initialCaption?o.initialCaption:i.caption,o._setCaption(n),l&&(r.contents().appendTo(o.$preview),r.remove())):(o._clearPreview(),o._initCaption()),o.showPreview&&(o._initZoom(),o._initSortable()),o.isDuplicateError=!1},_clearDefaultPreview:function(){this.$preview.find(".file-default-preview").remove()},_validateDefaultPreview:function(){var e=this;e.showPreview&&!t.isEmpty(e.defaultPreviewContent)&&(e._setPreviewContent('<div class="file-default-preview">'+e.defaultPreviewContent+"</div>"),e.$container.removeClass("file-input-new"),e._initClickable())},_resetPreviewThumbs:function(e){var t,i=this;if(e)return i._clearPreview(),void i.clearFileStack();i._hasInitialPreview()?(t=i.previewCache.out(),i._setPreviewContent(t.content),i._setInitThumbAttr(),i._setCaption(t.caption),i._initPreviewActions()):i._clearPreview()},_getLayoutTemplate:function(e){var i=this,n=i.layoutTemplates[e];return t.isEmpty(i.customLayoutTags)?n:t.replaceTags(n,i.customLayoutTags)},_getPreviewTemplate:function(e){var i=this,n=i.previewTemplates,r=n[e]||n.other;return t.isEmpty(i.customPreviewTags)?r:t.replaceTags(r,i.customPreviewTags)},_getOutData:function(e,t,i,n){var r=this;return t=t||{},i=i||{},{formdata:e,files:n=n||r.fileManager.list(),filenames:r.filenames,filescount:r.getFilesCount(),extra:r._getExtraData(),response:i,reader:r.reader,jqXHR:t}},_getMsgSelected:function(e,t){var i=this,n=1===e?i.fileSingle:i.filePlural;return e>0?i.msgSelected.replace("{n}",e).replace("{files}",n):t?i.msgProcessing:i.msgNoFilesSelected},_getFrame:function(e,i){var n=this,r=t.getFrameElement(n.$preview,e);return!n.showPreview||i||r.length||n._log(t.logMessages.invalidThumb,{id:e}),r},_getZoom:function(e,i){var n=this,r=t.getZoomElement(n.$preview,e,i);return n.showPreview&&!r.length&&n._log(t.logMessages.invalidThumb,{id:e}),r},_getThumbs:function(e){return e=e||"",this.getFrames(":not(.file-preview-initial)"+e)},_getThumbId:function(e){return this.previewInitId+"-"+e},_getExtraData:function(e,t){var i=this,n=i.uploadExtraData;return"function"==typeof i.uploadExtraData&&(n=i.uploadExtraData(e,t)),n},_initXhr:function(e,i){var n=this,r=n.fileManager,o=function(e){var o=0,s=e.total,a=e.loaded||e.position,l=r.getUploadStats(i,a,s);e.lengthComputable&&!n.enableResumableUpload&&(o=t.round(a/s*100)),i?n._setFileUploadStats(i,o,l):n._setProgress(o,null,null,n._getStats(l)),n._raise("fileajaxprogress",[l])};return e.upload&&(n.progressDelay&&(o=t.debounce(o,n.progressDelay)),e.upload.addEventListener("progress",o,!1)),e},_initAjaxSettings:function(){var t=this;t._ajaxSettings=e.extend(!0,{},t.ajaxSettings),t._ajaxDeleteSettings=e.extend(!0,{},t.ajaxDeleteSettings)},_mergeAjaxCallback:function(e,t,i){var n,r=this,o=r._ajaxSettings,s=r.mergeAjaxCallbacks;"delete"===i&&(o=r._ajaxDeleteSettings,s=r.mergeAjaxDeleteCallbacks),n=o[e],o[e]=s&&"function"==typeof n?"before"===s?function(){n.apply(this,arguments),t.apply(this,arguments)}:function(){t.apply(this,arguments),n.apply(this,arguments)}:t},_ajaxSubmit:function(t,i,n,r,o,s,a,l){var c,u,d,h=this,p=h.taskManager;h._raise("filepreajax",[o,s,a])&&(o.append("initialPreview",JSON.stringify(h.initialPreview)),o.append("initialPreviewConfig",JSON.stringify(h.initialPreviewConfig)),o.append("initialPreviewThumbTags",JSON.stringify(h.initialPreviewThumbTags)),h._initAjaxSettings(),h._mergeAjaxCallback("beforeSend",t),h._mergeAjaxCallback("success",i),h._mergeAjaxCallback("complete",n),h._mergeAjaxCallback("error",r),"function"==typeof(l=l||h.uploadUrlThumb||h.uploadUrl)&&(l=l()),"object"==typeof(d=h._getExtraData(s,a)||{})&&e.each(d,(function(e,t){o.append(e,t)})),u={xhr:function(){var t=e.ajaxSettings.xhr();return h._initXhr(t,s)},url:h._encodeURI(l),type:"POST",dataType:"json",data:o,cache:!1,processData:!1,contentType:!1},c=e.extend(!0,{},u,h._ajaxSettings),h.ajaxQueue.push(c),p.addTask(s+"-"+a,(function(){var t,i,n=this.self;t=n.ajaxQueue.shift(),i=e.ajax(t),n.ajaxRequests.push(i)})).runWithContext({self:h}))},_mergeArray:function(e,i){var n=this,r=t.cleanArray(n[e]),o=t.cleanArray(i);n[e]=r.concat(o)},_initUploadSuccess:function(i,n,r){var o,s,a,l,c,u,d,h,p,f=this;f.showPreview&&"object"==typeof i&&!e.isEmptyObject(i)?(void 0!==i.initialPreview&&i.initialPreview.length>0&&(f.hasInitData=!0,c=i.initialPreview||[],u=i.initialPreviewConfig||[],d=i.initialPreviewThumbTags||[],o=void 0===i.append||i.append,c.length>0&&!t.isArray(c)&&(c=c.split(f.initialPreviewDelimiter)),c.length&&(f._mergeArray("initialPreview",c),f._mergeArray("initialPreviewConfig",u),f._mergeArray("initialPreviewThumbTags",d)),void 0!==n?r?(h=n.attr("id"),null!==(p=f._getUploadCacheIndex(h))&&(f.uploadCache[p]={id:h,content:c[0],config:u[0]||[],tags:d[0]||[],append:o})):(a=f.previewCache.add(c[0],u[0],d[0],o),s=f.previewCache.get(a,!1),l=t.createElement(s).hide().appendTo(n),n.fadeOut("slow",(function(){var e=l.find("> .file-preview-frame");e&&e.length&&e.insertBefore(n).fadeIn("slow").css("display:inline-block"),f._initPreviewActions(),f._clearFileInput(),n.remove(),l.remove(),f._initSortable()}))):(f.previewCache.set(c,u,d,o),f._initPreview(),f._initPreviewActions())),f._resetCaption()):f._resetCaption()},_getUploadCacheIndex:function(e){var t,i=this,n=i.uploadCache.length;for(t=0;t<n;t++)if(i.uploadCache[t].id===e)return t;return null},_initSuccessThumbs:function(){var i=this;i.showPreview&&setTimeout((function(){i._getThumbs(t.FRAMES+".file-preview-success").each((function(){var n=e(this),r=n.find(".kv-file-remove");r.removeAttr("disabled"),i._handler(r,"click",(function(){var e=n.attr("id"),r=i._raise("filesuccessremove",[e,n.attr("data-fileindex")]);t.cleanMemory(n),!1!==r&&(i.$caption.attr("title",""),n.fadeOut("slow",(function(){i.fileManager;n.remove(),i.getFrames().length||i.reset()})))}))}))}),i.processDelay)},_updateInitialPreview:function(){var t=this,i=t.uploadCache;t.showPreview&&(e.each(i,(function(e,i){t.previewCache.add(i.content,i.config,i.tags,i.append)})),t.hasInitData&&(t._initPreview(),t._initPreviewActions()))},_getThumbFileId:function(e){return this.showPreview&&void 0!==e?e.attr("data-fileid"):null},_getThumbFile:function(e){var t=this,i=t._getThumbFileId(e);return i?t.fileManager.getFile(i):null},_uploadSingle:function(i,n,r,o){var s,a,l,c,u,d,h,p,f,m,g,v,_,b=this,y=b.fileManager,w=y.count(),x=new FormData,C=b._getThumbId(n),T=w>0||!e.isEmptyObject(b.uploadExtraData),k=b.ajaxOperations.uploadThumb,E=y.getFile(n),S={id:C,index:i,fileId:n},A=b.fileManager.getFileName(n,!0),P=function(){o&&o.resolve&&o.resolve()},I=function(){o&&o.reject&&o.reject()};b.enableResumableUpload||(b.uploadInitiated=!0,b.showPreview&&(a=y.getThumb(n),h=a.find(".file-thumb-progress"),c=a.find(".kv-file-upload"),u=a.find(".kv-file-remove"),h.show()),0===w||!T||b.showPreview&&c&&c.hasClass("disabled")||b._abort(S)||(_=function(){d?y.errors.push(n):y.removeFile(n),y.setProcessed(n),y.isProcessed()&&(b.fileBatchCompleted=!0,l())},l=function(){var e;b.fileBatchCompleted&&setTimeout((function(){var i=0===y.count(),n=y.errors.length;b._updateInitialPreview(),b.unlock(i),i&&b._clearFileInput(),e=b.$preview.find(".file-preview-initial"),b.uploadAsync&&e.length&&(t.addCss(e,t.SORT_CSS),b._initSortable()),b._raise("filebatchuploadcomplete",[y.stack,b._getExtraData()]),b.retryErrorUploads&&0!==n||y.clear(),b._setProgress(101),b.ajaxAborted=!1,b.uploadInitiated=!1}),b.processDelay)},p=function(o){s=b._getOutData(x,o),y.initStats(n),b.fileBatchCompleted=!1,r||(b.ajaxAborted=!1),b.showPreview&&(a.hasClass("file-preview-success")||(b._setThumbStatus(a,"Loading"),t.addCss(a,"file-uploading")),c.attr("disabled",!0),u.attr("disabled",!0)),r||b.lock(),-1!==y.errors.indexOf(n)&&delete y.errors[n],b._raise("filepreupload",[s,C,i,b._getThumbFileId(a)]),e.extend(!0,S,s),b._abort(S)&&(o.abort(),r||(b._setThumbStatus(a,"New"),a.removeClass("file-uploading"),c.removeAttr("disabled"),u.removeAttr("disabled")),b._setProgressCancelled())},m=function(o,l,u){var p=b.showPreview&&a.attr("id")?a.attr("id"):C;s=b._getOutData(x,u,o),e.extend(!0,S,s),setTimeout((function(){t.isEmpty(o)||t.isEmpty(o.error)?(b.showPreview&&(b._setThumbStatus(a,"Success"),c.hide(),b._initUploadSuccess(o,a,r),b._setProgress(101,h)),b._raise("fileuploaded",[s,p,i,b._getThumbFileId(a)]),r?(_(),P()):b.fileManager.remove(a)):(d=!0,f=b._parseError(k,u,b.msgUploadError,b.fileManager.getFileName(n)),b._showFileError(f,S),b._setPreviewError(a,!0),b.retryErrorUploads||c.hide(),r&&(_(),P()),b._setProgress(101,b._getFrame(p).find(".file-thumb-progress"),b.msgUploadError))}),b.processDelay)},g=function(){b.showPreview&&(c.removeAttr("disabled"),u.removeAttr("disabled"),a.removeClass("file-uploading")),r?l():(b.unlock(!1),b._clearFileInput()),b._initSuccessThumbs()},v=function(t,i,o){f=b._parseError(k,t,o,b.fileManager.getFileName(n)),d=!0,setTimeout((function(){var i;r&&(_(),I()),b.fileManager.setProgress(n,100),b._setPreviewError(a,!0),b.retryErrorUploads||c.hide(),e.extend(!0,S,b._getOutData(x,t)),b._setProgress(101,b.$progress,b.msgAjaxProgressError.replace("{operation}",k)),i=b.showPreview&&a?a.find(".file-thumb-progress"):"",b._setProgress(101,i,b.msgUploadError),b._showFileError(f,S)}),b.processDelay)},b._setFileData(x,E.file,A,n),b._setUploadData(x,{fileId:n}),b._ajaxSubmit(p,m,g,v,x,n,i)))},_setFileData:function(e,t,i,n){var r=this,o=r.preProcessUpload;o&&"function"==typeof o?e.append(r.uploadFileAttr,o(n,t)):e.append(r.uploadFileAttr,t,i)},_checkBatchPreupload:function(t,i){var n=this;return!!n._raise("filebatchpreupload",[t])||(n._abort(t),i&&i.abort(),n._getThumbs().each((function(){var t=e(this),i=t.find(".kv-file-upload"),r=t.find(".kv-file-remove");t.hasClass("file-preview-loading")&&(n._setThumbStatus(t,"New"),t.removeClass("file-uploading")),i.removeAttr("disabled"),r.removeAttr("disabled")})),n._setProgressCancelled(),!1)},_uploadBatch:function(){var i,n,r,o,s,a,l=this,c=l.fileManager,u=c.total(),d={},h=u>0||!e.isEmptyObject(l.uploadExtraData),p=new FormData,f=l.ajaxOperations.uploadBatch;if(0!==u&&h&&!l._abort(d)){a=function(){l.fileManager.clear(),l._clearFileInput()},i=function(i){l.lock(),c.initStats();var n=l._getOutData(p,i);l.ajaxAborted=!1,l.showPreview&&l._getThumbs().each((function(){var i=e(this),n=i.find(".kv-file-upload"),r=i.find(".kv-file-remove");i.hasClass("file-preview-success")||(l._setThumbStatus(i,"Loading"),t.addCss(i,"file-uploading")),n.attr("disabled",!0),r.attr("disabled",!0)})),l._checkBatchPreupload(n,i)},n=function(i,n,r){var o=l._getOutData(p,r,i),c=0,u=l._getThumbs(":not(.file-preview-success)"),d=t.isEmpty(i)||t.isEmpty(i.errorkeys)?[]:i.errorkeys;t.isEmpty(i)||t.isEmpty(i.error)?(l._raise("filebatchuploadsuccess",[o]),a(),l.showPreview?(u.each((function(){var t=e(this);l._setThumbStatus(t,"Success"),t.removeClass("file-uploading"),t.find(".kv-file-upload").hide().removeAttr("disabled")})),l._initUploadSuccess(i)):l.reset(),l._setProgress(101)):(l.showPreview&&(u.each((function(){var t=e(this);t.removeClass("file-uploading"),t.find(".kv-file-upload").removeAttr("disabled"),t.find(".kv-file-remove").removeAttr("disabled"),0===d.length||-1!==e.inArray(c,d)?(l._setPreviewError(t,!0),l.retryErrorUploads||(t.find(".kv-file-upload").hide(),l.fileManager.remove(t))):(t.find(".kv-file-upload").hide(),l._setThumbStatus(t,"Success"),l.fileManager.remove(t)),t.hasClass("file-preview-error")&&!l.retryErrorUploads||c++})),l._initUploadSuccess(i)),s=l._parseError(f,r,l.msgUploadError),l._showFileError(s,o,"filebatchuploaderror"),l._setProgress(101,l.$progress,l.msgUploadError))},o=function(){l.unlock(),l._initSuccessThumbs(),l._clearFileInput(),l._raise("filebatchuploadcomplete",[l.fileManager.stack,l._getExtraData()])},r=function(t,i,n){var r=l._getOutData(p,t);s=l._parseError(f,t,n),l._showFileError(s,r,"filebatchuploaderror"),l.uploadFileCount=u-1,l.showPreview&&(l._getThumbs().each((function(){var t=e(this);t.removeClass("file-uploading"),l._getThumbFile(t)&&l._setPreviewError(t)})),l._getThumbs().removeClass("file-uploading"),l._getThumbs(" .kv-file-upload").removeAttr("disabled"),l._getThumbs(" .kv-file-delete").removeAttr("disabled"),l._setProgress(101,l.$progress,l.msgAjaxProgressError.replace("{operation}",f)))};var m=0;e.each(l.fileManager.stack,(function(e,i){t.isEmpty(i.file)||l._setFileData(p,i.file,i.nameFmt||"untitled_"+m,e),m++})),l._ajaxSubmit(i,n,o,r,p)}},_uploadExtraOnly:function(){var e,i,n,r,o,s=this,a={},l=new FormData,c=s.ajaxOperations.uploadExtra;e=function(e){s.lock();var t=s._getOutData(l,e);s._setProgress(50),a.data=t,a.xhr=e,s._checkBatchPreupload(t,e)},i=function(e,i,n){var r=s._getOutData(l,n,e);t.isEmpty(e)||t.isEmpty(e.error)?(s._raise("filebatchuploadsuccess",[r]),s._clearFileInput(),s._initUploadSuccess(e),s._setProgress(101)):(o=s._parseError(c,n,s.msgUploadError),s._showFileError(o,r,"filebatchuploaderror"))},n=function(){s.unlock(),s._clearFileInput(),s._raise("filebatchuploadcomplete",[s.fileManager.stack,s._getExtraData()])},r=function(e,t,i){var n=s._getOutData(l,e);o=s._parseError(c,e,i),a.data=n,s._showFileError(o,n,"filebatchuploaderror"),s._setProgress(101,s.$progress,s.msgAjaxProgressError.replace("{operation}",c))},s._ajaxSubmit(e,i,n,r,l)},_deleteFileIndex:function(i){var n=this,r=i.attr("data-fileindex"),o=n.reversePreviewOrder;r.substring(0,5)===t.INIT_FLAG&&(r=parseInt(r.replace(t.INIT_FLAG,"")),n.initialPreview=t.spliceArray(n.initialPreview,r,o),n.initialPreviewConfig=t.spliceArray(n.initialPreviewConfig,r,o),n.initialPreviewThumbTags=t.spliceArray(n.initialPreviewThumbTags,r,o),n.getFrames().each((function(){var i=e(this),n=i.attr("data-fileindex");n.substring(0,5)===t.INIT_FLAG&&(n=parseInt(n.replace(t.INIT_FLAG,"")))>r&&(n--,i.attr("data-fileindex",t.INIT_FLAG+n))})))},_resetCaption:function(){var e=this;setTimeout((function(){var t,i,n,r="",o=e.previewCache.count(!0),s=e.fileManager.count(),a=":not(.file-preview-success):not(.file-preview-error)",l=e.showPreview&&e.getFrames(a).length;0!==s||0!==o||l?((t=o+s)>1?r=e._getMsgSelected(t):0===s?(r="",(n=e.initialPreviewConfig[0])&&(r=n.caption||n.filename||""),r||(r=e._getMsgSelected(t))):r=(i=e.fileManager.getFirstFile())?i.nameFmt:"_",e._setCaption(r)):e.reset()}),e.processDelay)},_handleRotation:function(t,i,n){var r,o,s,a,l,c,u,d,h,p=this,f="",m=1,g=i[0],v=i.parent(),_=e("body"),b=!!_.length;b&&_.addClass("kv-overflow-hidden"),i.length&&!t.hasClass("hide-rotate")?((a=i.css("transform"))&&i.css("transform","none"),a&&i.css("transform",a),r="rotate("+(n=n||0)+"deg)",o="rotate("+(s=n%360)+"deg)",f="",90!==s&&270!==s||(m=(c=g.naturalWidth||i.outerWidth()||0)>(l=g.naturalHeight||i.outerHeight()||0)&&0!=c?(l/c).toFixed(2):1,v.length&&(d=v.height(),h=v.width(),d>m*(u=Math.min(c,h))&&(m=u>d&&0!=u?(d/u).toFixed(2):1)),1!==m&&(f=" scale("+m+")")),i.addClass("rotate-animate").css("transform",r+f),setTimeout((function(){i.removeClass("rotate-animate").css("transform",o+f),b&&_.removeClass("kv-overflow-hidden"),t.data("angle",s)}),p.fadeDelay)):b&&_.removeClass("kv-overflow-hidden")},_initRotateButton:function(){var i=this;i.getFrames(".rotatable .kv-file-rotate").each((function(){var n=e(this),r=n.closest(t.FRAMES),o=r.find(".kv-file-content > :first-child");i._handler(n,"click",(function(){var e=(r.data("angle")||0)+90;i._handleRotation(r,o,e)}))}))},_initRotateZoom:function(e,t){var i=this,n=i.$modal,r=n.find(".btn-kv-rotate"),o=e.data("angle");n.data("angle",o),r.length&&(r.off("click"),n.hasClass("rotatable")&&r.on("click",(function(){o=(n.data("angle")||0)+90,n.data("angle",o),i._handleRotation(n,n.find(".file-zoom-detail"),o),i._handleRotation(e,t,o),e.hasClass("hide-rotate")&&e.data("angle",o)})))},_initFileActions:function(){var i=this;i.showPreview&&(i._initZoomButton(),i._initRotateButton(),i.getFrames(" .kv-file-remove").each((function(){var n,r=e(this),o=r.closest(t.FRAMES),s=o.attr("id"),a=o.attr("data-fileindex");i.fileManager;i._handler(r,"click",(function(){if(!1===i._raise("filepreremove",[s,a])||!i._validateMinCount())return!1;n=o.hasClass("file-preview-error"),t.cleanMemory(o),o.fadeOut("slow",(function(){i.fileManager.remove(o),i._clearObjects(o),o.remove(),s&&n&&i.$errorContainer.find('li[data-thumb-id="'+s+'"]').fadeOut("fast",(function(){e(this).remove(),i._errorsExist()||i._resetErrors()})),i._clearFileInput(),i._resetCaption(),i._raise("fileremoved",[s,a])}))}))})),i.getFrames(" .kv-file-upload").each((function(){var n=e(this);i._handler(n,"click",(function(){var e=n.closest(t.FRAMES),r=i._getThumbFileId(e);i._hideProgress(),e.hasClass("file-preview-error")&&!i.retryErrorUploads||i._uploadSingle(i.fileManager.getIndex(r),r,!1)}))})))},_initPreviewActions:function(){var i=this,n=i.$preview,r=i.deleteExtraData||{},o=t.FRAMES+" .kv-file-remove",s=i.fileActionSettings,a=s.removeClass,l=s.removeErrorClass,c=function(){var e=i.isAjaxUpload?i.previewCache.count(!0):i._inputFileCount();i.getFrames().length||e?i._resetCaption():(i._setCaption(""),i.reset(),i.initialCaption="")};i._initZoomButton(),i._initRotateButton(),n.find(o).each((function(){var n,o,s,u,d=e(this),h=d.data("url")||i.deleteUrl,p=d.data("key"),f=i.ajaxOperations.deleteThumb;if(!t.isEmpty(h)&&void 0!==p){"function"==typeof h&&(h=h());var m,g,v,_,b,y=d.closest(t.FRAMES),w=i.previewCache.data,x=y.attr("data-fileindex");x=parseInt(x.replace(t.INIT_FLAG,"")),v=t.isEmpty(w.config)&&t.isEmpty(w.config[x])?null:w.config[x],b=t.isEmpty(v)||t.isEmpty(v.extra)?r:v.extra,_=v&&(v.filename||v.caption)||"","function"==typeof b&&(b=b()),g={id:d.attr("id"),key:p,extra:b},o=function(e){i.ajaxAborted=!1,i._raise("filepredelete",[p,e,b]),i._abort()?e.abort():(d.removeClass(l),t.addCss(y,"file-uploading"),t.addCss(d,"disabled "+a))},s=function(e,r,o){var s,u;if(!t.isEmpty(e)&&!t.isEmpty(e.error))return g.jqXHR=o,g.response=e,n=i._parseError(f,o,i.msgDeleteError,_),i._showFileError(n,g,"filedeleteerror"),y.removeClass("file-uploading"),d.removeClass("disabled "+a).addClass(l),void c();y.removeClass("file-uploading").addClass("file-deleted"),y.fadeOut("slow",(function(){x=parseInt(y.attr("data-fileindex").replace(t.INIT_FLAG,"")),i.previewCache.unset(x),i._deleteFileIndex(y),s=i.previewCache.count(!0),u=s>0?i._getMsgSelected(s):"",i._setCaption(u),i._raise("filedeleted",[p,o,b]),i._clearObjects(y),y.remove(),c()}))},u=function(e,t,n){var r=i._parseError(f,e,n,_);g.jqXHR=e,g.response={},i._showFileError(r,g,"filedeleteerror"),y.removeClass("file-uploading"),d.removeClass("disabled "+a).addClass(l),c()},i._initAjaxSettings(),i._mergeAjaxCallback("beforeSend",o,"delete"),i._mergeAjaxCallback("success",s,"delete"),i._mergeAjaxCallback("error",u,"delete"),m=e.extend(!0,{},{url:i._encodeURI(h),type:"POST",dataType:"json",data:e.extend(!0,{},{key:p},b)},i._ajaxDeleteSettings),i._handler(d,"click",(function(){if(!i._validateMinCount())return!1;i.ajaxAborted=!1,i._raise("filebeforedelete",[p,b]),i.ajaxAborted instanceof Promise?i.ajaxAborted.then((function(t){t||e.ajax(m)})):i.ajaxAborted||e.ajax(m)}))}}))},_hideFileIcon:function(){var e=this;e.overwriteInitial&&e.$captionContainer.removeClass("icon-visible")},_showFileIcon:function(){var e=this;t.addCss(e.$captionContainer,"icon-visible")},_getSize:function(t,i,n){var r,o,s=this,a=parseFloat(t),l=0,c=s.bytesToKB,u=s.fileSizeGetter,d=a;if(!e.isNumeric(t)||!e.isNumeric(a))return"";if("function"==typeof u)r=u(a);else{if(n||(n=s.sizeUnits),a>0){for(;d>=c;)d/=c,++l;n[l]||(d=a,l=0)}(o=d.toFixed(2))==d&&(o=d),r=o+" "+n[l]}return i?r:s._getLayoutTemplate("size").replace("{sizeText}",r)},_getFileType:function(e){return this.mimeTypeAliases[e]||e},_generatePreviewTemplate:function(i,n,r,o,s,a,l,c,u,d,h,p,f,m,g){var v,_,b,y,w=this,x=w.slug(r),C="",T="",k=u||r,E=k.split(".").pop().toLowerCase(),S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=x,P=x,I="type-default",D=h||w._renderFileFooter(i,x,c,"auto",l),F=-1!==e.inArray(E,w.alwaysPreviewFileExtensions),L=w.preferIconicPreview&&!F,M=w.preferIconicZoomPreview&&!F,O=L?"other":i;return(v=S<400?w.previewSettingsSmall[O]||w.defaults.previewSettingsSmall[O]:w.previewSettings[O]||w.defaults.previewSettings[O])&&e.each(v,(function(e,t){T+=e+":"+t+";"})),_=function(n,l,c,u,h){var g,v=c?"zoom-"+s:s,_=w._getPreviewTemplate(n),b=(d||"")+" "+u;return w.frameClass&&(b=w.frameClass+" "+b),c&&(b=b.replace(" "+t.SORT_CSS,"")),_=w._parseFilePreviewIcon(_,r),"object"!==i||o||e.each(w.defaults.fileTypeSettings,(function(e,t){"object"!==e&&"other"!==e&&t(r,o)&&(I="type-"+e)})),t.isEmpty(m)||(void 0!==m.title&&null!==m.title&&(A=m.title),void 0!==m.alt&&null!==m.alt&&(P=A=m.alt)),g={previewId:v,caption:x,title:A,alt:P,frameClass:b,type:w._getFileType(o),fileindex:p,fileid:a||"",filename:k,typeCss:I,footer:D,data:c&&h?w.zoomPlaceholder+"{zoomData}":l,template:f||i,style:T?'style="'+T+'"':"",zoomData:h?encodeURIComponent(h):""},c&&(g.zoomCache="",g.zoomData="{zoomData}"),_.setTokens(g)},p=p||s.slice(s.lastIndexOf("-")+1),y=w.fileActionSettings.showRotate&&-1!==e.inArray(E,w.rotatableFileExtensions),w.fileActionSettings.showZoom&&(b="kv-zoom-thumb",y&&(b+=" rotatable"+(M?" hide-rotate":"")),C=_(M?"other":i,n,!0,b,g)),C="\n"+w._getLayoutTemplate("zoomCache").replace("{zoomContent}",C),"function"==typeof w.sanitizeZoomCache&&(C=w.sanitizeZoomCache(C)),b="kv-preview-thumb",y&&(b+=" rotatable"+(L||w.hideThumbnailContent||!!w.previewFileIconSettings[E]?" hide-rotate":"")),_(L?"other":i,n,!1,b,g).setTokens({zoomCache:C})},_addToPreview:function(e,i){var n,r=this;return i=t.cspBuffer.stash(i),n=r.reversePreviewOrder?e.prepend(i):e.append(i),t.cspBuffer.apply(e),n},_previewDefault:function(e,i){var n=this,r=n.$preview;if(n.showPreview){var o,s=t.getFileName(e),a=e?e.type:"",l=e.size||0,c=n._getFileName(e,""),u=!0===i&&!n.isAjaxUpload,d=t.createObjectURL(e),h=n.fileManager.getId(e),p=n._getThumbId(h);n._clearDefaultPreview(),o=n._generatePreviewTemplate("other",d,s,a,p,h,u,l),n._addToPreview(r,o),n._setThumbAttr(p,c,l),!0===i&&n.isAjaxUpload&&n._setThumbStatus(n._getFrame(p),"Error")}},_previewFile:function(e,i,n,r,o){if(this.showPreview){var s,a=this,l=t.getFileName(i),c=o.type,u=o.name,d=a._parseFileType(c,l),h=a.$preview,p=i.size||0,f="image"===d?n.target.result:r,m=a.fileManager.getId(i),g=a._getThumbId(m);s=a._generatePreviewTemplate(d,f,l,c,g,m,!1,p,o.filename),a._clearDefaultPreview(),a._addToPreview(h,s);var v=a._getFrame(g);a._validateImageOrientation(v.find("img"),i,g,m,u,c,p,f),a._setThumbAttr(g,u,p),a._initSortable()}},_setThumbAttr:function(e,t,i,n){var r=this,o=r._getFrame(e);o.length&&(i=i&&i>0?r._getSize(i):"",o.data({caption:t,size:i,description:n||""}))},_setInitThumbAttr:function(){var e,i,n,r,o,s=this,a=s.previewCache.data,l=s.previewCache.count(!0);if(0!==l)for(var c=0;c<l;c++)e=a.config[c],o=s.previewInitId+"-"+t.INIT_FLAG+c,i=t.ifSet("caption",e,t.ifSet("filename",e)),n=t.ifSet("size",e),r=t.ifSet("description",e),s._setThumbAttr(o,i,n,r)},_slugDefault:function(e){return t.isEmpty(e,!0)?"":String(e).replace(/[\[\]\/\{}:;#%=\(\)\*\+\?\\\^\$\|<>&"']/g,"_")},_updateFileDetails:function(e){var i,n,r,o,s=this,a=s.$element,l=t.isIE(9)&&t.findFileName(a.val())||a[0].files[0]&&a[0].files[0].name;i=!l&&s.fileManager.count()>0?s.fileManager.getFirstFile().nameFmt:l?s.slug(l):"_",n=s.isAjaxUpload?s.fileManager.count():e,o=s.previewCache.count(!0)+n,r=1===n?i:s._getMsgSelected(o,!s.isAjaxUpload&&!s.isError),s.isError?(s.$previewContainer.removeClass("file-thumb-loading"),s._initCapStatus(),s.$previewStatus.html(""),s.$captionContainer.removeClass("icon-visible")):s._showFileIcon(),s._setCaption(r,s.isError),s.$container.removeClass("file-input-new file-input-ajax-new"),s._raise("fileselect",[e,i]),s.previewCache.count(!0)&&s._initPreviewActions()},_setThumbStatus:function(e,i){var n=this;if(n.showPreview){var r="indicator"+i,o=r+"Title",s="file-preview-"+i.toLowerCase(),a=e.find(".file-upload-indicator"),l=n.fileActionSettings;e.removeClass("file-preview-success file-preview-error file-preview-paused file-preview-loading"),"Success"===i&&e.find(".file-drag-handle").remove(),t.setHtml(a,l[r]),a.attr("title",l[o]),e.addClass(s),"Error"!==i||n.retryErrorUploads||e.find(".kv-file-upload").attr("disabled",!0)}},_setProgressCancelled:function(){var e=this;e._setProgress(101,e.$progress,e.msgCancelled)},_setProgress:function(e,i,n,r){var o=this;if((i=i||o.$progress).length){var s,a=Math.min(e,100),l=o.progressUploadThreshold,c=e<=100?o.progressTemplate:o.progressCompleteTemplate,u=a<100?o.progressTemplate:n?o.paused?o.progressPauseTemplate:o.progressErrorTemplate:c;e>=100&&(r=""),t.isEmpty(u)||(r=r||"",s=(s=l&&a>l&&e<=100?u.setTokens({percent:l,status:o.msgUploadThreshold}):u.setTokens({percent:a,status:e>100?o.msgUploadEnd:a+"%"})).setTokens({stats:r}),t.setHtml(i,s),n&&t.setHtml(i.find('[role="progressbar"]'),n))}},_hasFiles:function(){var e=this.$element[0];return!!(e&&e.files&&e.files.length)},_setFileDropZoneTitle:function(){var e,i=this,n=i.$container.find(".file-drop-zone"),r=i.dropZoneTitle;i.isClickable&&(e=t.isEmpty(i.$element.attr("multiple"))?i.fileSingle:i.filePlural,r+=i.dropZoneClickTitle.replace("{files}",e)),n.find("."+i.dropZoneTitleClass).remove(),!i.showPreview||0===n.length||i.fileManager.count()>0||!i.dropZoneEnabled||i.previewCache.count()>0||!i.isAjaxUpload&&i._hasFiles()||(0===n.find(t.FRAMES).length&&t.isEmpty(i.defaultPreviewContent)&&n.prepend('<div class="'+i.dropZoneTitleClass+'">'+r+"</div>"),i.$container.removeClass("file-input-new"),t.addCss(i.$container,"file-input-ajax-new"))},_getStats:function(e){var i,n,r=this;return r.showUploadStats&&e&&e.bitrate?(n=r._getLayoutTemplate("stats"),i=e.elapsed&&e.bps?r.msgPendingTime.setTokens({time:t.getElapsed(Math.ceil(e.pendingBytes/e.bps))}):r.msgCalculatingTime,n.setTokens({uploadSpeed:e.bitrate,pendingTime:i})):""},_setResumableProgress:function(e,t,i){var n=this,r=n.resumableManager,o=i?r:n,s=i?i.find(".file-thumb-progress"):null;0===o.lastProgress&&(o.lastProgress=e),e<o.lastProgress&&(e=o.lastProgress),n._setProgress(e,s,null,n._getStats(t)),o.lastProgress=e},_toggleResumableProgress:function(e,i){var n=this.$progress;n&&n.length&&t.setHtml(n,e.setTokens({percent:101,status:i,stats:""}))},_setFileUploadStats:function(i,n,r){var o=this,s=o.$progress;if(o.showPreview||s&&s.length){var a,l=o.fileManager,c=o.resumableManager,u=l.getThumb(i),d=0,h=l.getTotalSize(),p=e.extend(!0,{},r);if(o.enableResumableUpload){var f,m=r.loaded,g=c.getUploadedSize(),v=c.file.size;m+=g,f=l.uploadedSize+m,n=t.round(100*m/v),r.pendingBytes=v-g,o._setResumableProgress(n,r,u),a=Math.floor(100*f/h),p.pendingBytes=h-f,o._setResumableProgress(a,p)}else l.setProgress(i,n),s=u&&u.length?u.find(".file-thumb-progress"):null,o._setProgress(n,s,null,o._getStats(r)),e.each(l.stats,(function(e,t){d+=t.loaded})),p.pendingBytes=h-d,a=t.round(d/h*100),o._setProgress(a,null,null,o._getStats(p))}},_validateMinCount:function(){var e=this,t=e.isAjaxUpload?e.fileManager.count():e._inputFileCount();return!(e.validateInitialCount&&e.minFileCount>0&&e._getFileCount(t-1)<e.minFileCount)||(e._noFilesError({}),!1)},_getFileCount:function(e,t){var i=this;return void 0===t&&(t=i.validateInitialCount&&!i.overwriteInitial),t&&(e+=i.previewCache.count(!0)),e},_getFileId:function(e){return t.getFileId(e,this.generateFileId)},_getFileName:function(e,i){var n=this,r=t.getFileName(e);return r?n.slug(r):i},_getFileNames:function(e){return this.filenames.filter((function(t){return e?void 0!==t:null!=t}))},_setPreviewError:function(e,t){var i=this,n=i.removeFromPreviewOnError&&!i.retryErrorUploads;t&&!n||i.fileManager.remove(e),i.showPreview&&(n?e.remove():(i._setThumbStatus(e,"Error"),i._refreshUploadButton(e)))},_refreshUploadButton:function(e){var i=this,n=e.find(".kv-file-upload"),r=i.fileActionSettings,o=r.uploadIcon,s=r.uploadTitle;n.length&&(i.retryErrorUploads&&(o=r.uploadRetryIcon,s=r.uploadRetryTitle),n.attr("title",s),t.setHtml(n,o))},_isValidSize:function(e,i,n,r,o,s){var a,l,c,u=this,d=u[("Small"===e?"min":"max")+"Image"+i];return!(!t.isEmpty(d)&&n.length)||(c=n[0],l="Width"===i?c.naturalWidth||c.width:c.naturalHeight||c.height,("Small"===e?l>=d:l<=d)||(a=u["msgImage"+i+e]||'Image "{name}" has a size validation error (limit "{size}").',u._showFileError(a.setTokens({name:o,size:d,dimension:l}),s),u._setPreviewError(r),u.fileManager.remove(r),u._clearFileInput(),!1))},_getExifObj:function(e){var i,n=this,r=t.logMessages.exifWarning;if("data:image/jpeg;base64,"===e.slice(0,23)||"data:image/jpg;base64,"===e.slice(0,22)){try{i=window.piexif?window.piexif.load(e):null}catch(e){i=null,r=e&&e.message||""}return!i&&n.showExifErrorLog&&n._log(t.logMessages.badExifParser,{details:r}),i}i=null},setImageOrientation:function(i,n,r,o){var s,a,l,c=this,u=!i||!i.length,d=!n||!n.length,h=!1,p=u&&o&&"image"===o.attr("data-template");u&&d||(l="load.fileinputimageorient",p?(i=n,n=null,i.css(c.previewSettings.image),a=e(document.createElement("div")).appendTo(o.find(".kv-file-content")),s=e(document.createElement("span")).insertBefore(i),i.css("visibility","hidden").removeClass("file-zoom-detail").appendTo(a)):h=!i.is(":visible"),i.off(l).on(l,(function(){h&&(c.$preview.removeClass("hide-content"),o.find(".kv-file-content").css("visibility","hidden"));var e=i[0],l=n&&n.length?n[0]:null,u=e.offsetHeight,d=e.offsetWidth,f=t.getRotation(r);if(h&&(o.find(".kv-file-content").css("visibility","visible"),c.$preview.addClass("hide-content")),i.data("orientation",r),l&&n.data("orientation",r),r<5)return t.setTransform(e,f),void t.setTransform(l,f);var m=Math.atan(d/u),g=Math.sqrt(Math.pow(u,2)+Math.pow(d,2)),v=g?u/Math.cos(Math.PI/2+m)/g:1,_=" scale("+Math.abs(v)+")";t.setTransform(e,f+_),t.setTransform(l,f+_),p&&(i.css("visibility","visible").insertAfter(s).addClass("file-zoom-detail"),s.remove(),a.remove())})))},_validateImageOrientation:function(i,n,r,o,s,a,l,c){var u,d,h=this,p=null,f=h.autoOrientImage;if(p=h._getExifObj(c),h.canOrientImage)return i.css("image-orientation",f?"from-image":"none"),void h._validateImage(r,o,s,a,l,c,p);d=t.getZoomSelector(r," img"),(u=p?p["0th"][piexif.ImageIFD.Orientation]:null)?(h.setImageOrientation(i,e(d),u,h._getFrame(r)),h._raise("fileimageoriented",{$img:i,file:n}),h._validateImage(r,o,s,a,l,c,p)):h._validateImage(r,o,s,a,l,c,p)},_validateImage:function(e,t,i,n,r,o,s){var a,l,c,u=this,d=u.$preview,h=u._getFrame(e),p=h.attr("data-fileindex"),f=h.find("img");i=i||"Untitled",f.one("load",(function(){f.data("validated")||(f.data("validated",!0),l=h.width(),c=d.width(),l>c&&f.css("width","100%"),a={ind:p,id:e,fileId:t},setTimeout((function(){var l,c;l=u._isValidSize("Small","Width",f,h,i,a),c=u._isValidSize("Small","Height",f,h,i,a),u.resizeImage||(l=l&&u._isValidSize("Large","Width",f,h,i,a),c=c&&u._isValidSize("Large","Height",f,h,i,a)),u._raise("fileimageloaded",[e]),h.data("exif",s),l&&c&&(u.fileManager.addImage(t,{ind:p,img:f,thumb:h,pid:e,typ:n,siz:r,validated:!1,imgData:o,exifObj:s}),u._validateAllImages())}),u.processDelay))})).one("error",(function(){u._raise("fileimageloaderror",[e])}))},_validateAllImages:function(){var t,i=this,n={val:0},r=i.fileManager.getImageCount(),o=i.resizeIfSizeMoreThan;r===i.fileManager.totalImages&&(i._raise("fileimagesloaded"),i.resizeImage&&e.each(i.fileManager.loadedImages,(function(e,s){s.validated||((t=s.siz)&&t>o*i.bytesToKB&&i._getResizedImage(e,s,n,r),s.validated=!0)})))},_getResizedImage:function(i,n,r,o){var s,a,l,c,u,d,h,p,f,m=this,g=e(n.img)[0],v=g.naturalWidth,_=g.naturalHeight,b=1,y=m.maxImageWidth||v,w=m.maxImageHeight||_,x=!(!v||!_),C=m.imageCanvas,T=m.imageCanvasContext,k=n.typ,E=n.pid,S=n.ind,A=n.thumb,P=n.exifObj;if(u=function(e,t,i){m.isAjaxUpload?m._showFileError(e,t,i):m._showError(e,t,i),m._setPreviewError(A)},p={id:E,index:S,fileId:i},f=[i,E,S],(h=m.fileManager.getFile(i))&&x&&!(v<=y&&_<=w)||(x&&h&&m._raise("fileimageresized",f),r.val++,r.val===o&&m._raise("fileimagesresized"),x)){k=k||m.resizeDefaultImageType,a=v>y,l=_>w,b="width"===m.resizePreference?a?y/v:l?w/_:1:l?w/_:a?y/v:1,m._resetCanvas(),v*=b,_*=b,C.width=v,C.height=_;try{T.drawImage(g,0,0,v,_),c=C.toDataURL(k,m.resizeQuality),P&&(d=window.piexif.dump(P),c=window.piexif.insert(d,c)),s=t.dataURI2Blob(c),m.fileManager.setFile(i,s),m._raise("fileimageresized",f),r.val++,r.val===o&&m._raise("fileimagesresized",[void 0,void 0]),s instanceof Blob||u(m.msgImageResizeError,p,"fileimageresizeerror")}catch(e){r.val++,r.val===o&&m._raise("fileimagesresized",[void 0,void 0]),u(m.msgImageResizeException.replace("{errors}",e.message),p,"fileimageresizeexception")}}else u(m.msgImageResizeError,p,"fileimageresizeerror")},_showProgress:function(){var e=this;e.$progress&&e.$progress.length&&e.$progress.show()},_hideProgress:function(){var e=this;e.$progress&&e.$progress.length&&e.$progress.hide()},_initBrowse:function(e){var i=this,n=i.$element;i.showBrowse?i.$btnFile=e.find(".btn-file").append(n):(n.appendTo(e).attr("tabindex",-1),t.addCss(n,"file-no-browse"))},_initClickable:function(){var i,n,r=this;r.isClickable&&(i=r.$dropZone,r.isAjaxUpload||(n=r.$preview.find(".file-default-preview")).length&&(i=n),t.addCss(i,"clickable"),i.attr("tabindex",-1),r._handler(i,"click",(function(t){var n=e(t.target);r.$errorContainer.is(":visible")||n.parents(".file-preview-thumbnails").length&&!n.parents(".file-default-preview").length||(r.$element.data("zoneClicked",!0).trigger("click"),i.blur())})))},_initCaption:function(){var e=this,i=e.initialCaption||"";return e.overwriteInitial||t.isEmpty(i)?(e.$caption.val(""),!1):(e._setCaption(i),!0)},_setCaption:function(i,n){var r,o,s,a,l,c,u=this;if(u.$caption.length){if(u.$captionContainer.removeClass("icon-visible"),n)r=e("<div>"+u.msgValidationError+"</div>").text(),(a=u.fileManager.count())?(c=u.fileManager.getFirstFile(),l=1===a&&c?c.nameFmt:u._getMsgSelected(a)):l=u._getMsgSelected(u.msgNo),o=t.isEmpty(i)?l:i,s='<span class="'+u.msgValidationErrorClass+'">'+u.msgValidationErrorIcon+"</span>";else{if(t.isEmpty(i))return void u.$caption.attr("title","");o=r=e("<div>"+i+"</div>").text(),s=u._getLayoutTemplate("fileIcon")}u.$captionContainer.addClass("icon-visible"),u.$caption.attr("title",r).val(o),t.setHtml(u.$captionIcon,s)}},_createContainer:function(){var e=this,i={class:"file-input file-input-new"+(e.rtl?" kv-rtl":"")},n=t.createElement(t.cspBuffer.stash(e._renderMain()));return t.cspBuffer.apply(n),n.insertBefore(e.$element).attr(i),e._initBrowse(n),e.theme&&n.addClass("theme-"+e.theme),n},_refreshContainer:function(){var e=this,i=e.$container;e.$element.insertAfter(i),t.setHtml(i,e._renderMain()),e._initBrowse(i),e._validateDisabled()},_validateDisabled:function(){var e=this;e.$caption.attr({readonly:e.isDisabled})},_setTabIndex:function(e,t){var i=this.tabIndexConfig[e];return t.setTokens({tabIndexConfig:null==i?"":'tabindex="'+i+'"'})},_renderMain:function(){var e=this,t=e.dropZoneEnabled?" file-drop-zone":"file-drop-disabled",i=e.showClose?e._getLayoutTemplate("close"):"",n=e.showPreview?e._getLayoutTemplate("preview").setTokens({class:e.previewClass,dropClass:t}):"",r=e.isDisabled?e.captionClass+" file-caption-disabled":e.captionClass,o=e.captionTemplate.setTokens({class:r+" kv-fileinput-caption"});return o=e._setTabIndex("caption",o),e.mainTemplate.setTokens({class:e.mainClass+(!e.showBrowse&&e.showCaption?" no-browse":""),inputGroupClass:e.inputGroupClass,preview:n,close:i,caption:o,upload:e._renderButton("upload"),remove:e._renderButton("remove"),cancel:e._renderButton("cancel"),pause:e._renderButton("pause"),browse:e._renderButton("browse")})},_renderButton:function(e){var i=this,n=i._getLayoutTemplate("btnDefault"),r=i[e+"Class"],o=i[e+"Title"],s=i[e+"Icon"],a=i[e+"Label"],l=i.isDisabled?" disabled":"",c="button";switch(e){case"remove":if(!i.showRemove)return"";break;case"cancel":if(!i.showCancel)return"";r+=" kv-hidden";break;case"pause":if(!i.showPause)return"";r+=" kv-hidden";break;case"upload":if(!i.showUpload)return"";i.isAjaxUpload&&!i.isDisabled?n=i._getLayoutTemplate("btnLink").replace("{href}",i.uploadUrl):c="submit";break;case"browse":if(!i.showBrowse)return"";n=i._getLayoutTemplate("btnBrowse");break;default:return""}return n=i._setTabIndex(e,n),r+="browse"===e?" btn-file":" fileinput-"+e+" fileinput-"+e+"-button",t.isEmpty(a)||(a=' <span class="'+i.buttonLabelClass+'">'+a+"</span>"),n.setTokens({type:c,css:r,title:o,status:l,icon:s,label:a})},_renderThumbProgress:function(){var e=this;return'<div class="file-thumb-progress kv-hidden">'+e.progressInfoTemplate.setTokens({percent:101,status:e.msgUploadBegin,stats:""})+"</div>"},_renderFileFooter:function(e,i,n,r,o){var s,a,l=this,c=l.fileActionSettings,u=c.showRemove,d=c.showDrag,h=c.showUpload,p=c.showRotate,f=c.showZoom,m=l._getLayoutTemplate("footer"),g=l._getLayoutTemplate("indicator"),v=o?c.indicatorError:c.indicatorNew,_=o?c.indicatorErrorTitle:c.indicatorNewTitle,b=g.setTokens({indicator:v,indicatorTitle:_});return a={type:e,caption:i,size:n=l._getSize(n),width:r,progress:"",indicator:b},l.isAjaxUpload?(a.progress=l._renderThumbProgress(),a.actions=l._renderFileActions(a,h,!1,u,p,f,d,!1,!1,!1)):a.actions=l._renderFileActions(a,!1,!1,!1,!1,f,d,!1,!1,!1),s=m.setTokens(a),s=t.replaceTags(s,l.previewThumbTags)},_renderFileActions:function(e,t,i,n,r,o,s,a,l,c,u,d,h){var p=this;if(!e.type&&u&&(e.type="image"),p.enableResumableUpload?t=!1:"function"==typeof t&&(t=t(e)),"function"==typeof i&&(i=i(e)),"function"==typeof n&&(n=n(e)),"function"==typeof o&&(o=o(e)),"function"==typeof s&&(s=s(e)),"function"==typeof r&&(r=r(e)),!(t||i||n||r||o||s))return"";var f,m=!1===l?"":' data-url="'+l+'"',g="",v="",_="",b=!1===c?"":' data-key="'+c+'"',y="",w="",x="",C=p._getLayoutTemplate("actions"),T=p.fileActionSettings,k=p.otherActionButtons.setTokens({dataKey:b,key:c}),E=a?T.removeClass+" disabled":T.removeClass;return n&&(y=p._getLayoutTemplate("actionDelete").setTokens({removeClass:E,removeIcon:T.removeIcon,removeTitle:T.removeTitle,dataUrl:m,dataKey:b,key:c})),r&&(_=p._getLayoutTemplate("actionRotate").setTokens({rotateClass:T.rotateClass,rotateIcon:T.rotateIcon,rotateTitle:T.rotateTitle})),t&&(w=p._getLayoutTemplate("actionUpload").setTokens({uploadClass:T.uploadClass,uploadIcon:T.uploadIcon,uploadTitle:T.uploadTitle})),i&&(x=(x=p._getLayoutTemplate("actionDownload").setTokens({downloadClass:T.downloadClass,downloadIcon:T.downloadIcon,downloadTitle:T.downloadTitle,downloadUrl:d||p.initialPreviewDownloadUrl})).setTokens({filename:h,key:c})),o&&(g=p._getLayoutTemplate("actionZoom").setTokens({zoomClass:T.zoomClass,zoomIcon:T.zoomIcon,zoomTitle:T.zoomTitle})),s&&u&&(f="drag-handle-init "+T.dragClass,v=p._getLayoutTemplate("actionDrag").setTokens({dragClass:f,dragTitle:T.dragTitle,dragIcon:T.dragIcon})),C.setTokens({delete:y,upload:w,download:x,rotate:_,zoom:g,drag:v,other:k})},_browse:function(e){var t=this;e&&e.isDefaultPrevented()||!t._raise("filebrowse")||(t.isError&&!t.isAjaxUpload&&t.clear(),t.focusCaptionOnBrowse&&t.$captionContainer.focus())},_change:function(i){var n=this;if(e(document.body).off("focusin.fileinput focusout.fileinput"),n.changeTriggered)n._toggleLoading("hide");else{n._toggleLoading("show");var r,o,s,a,l=n.$element,c=arguments.length>1,u=n.isAjaxUpload,d=c?arguments[1]:l[0].files,h=n.fileManager.count(),p=t.isEmpty(l.attr("multiple")),f=!u&&p?1:n.maxFileCount,m=n.maxTotalFileCount,g=m>0&&m>f,v=p&&h>0,_=function(t,i,r,o){var s=e.extend(!0,{},n._getOutData(null,{},{},d),{id:r,index:o}),a={id:r,index:o,file:i,files:d};return n.isPersistentError=!0,n._toggleLoading("hide"),u?n._showFileError(t,s):n._showError(t,a)},b=function(e,t,i){var r=i?n.msgTotalFilesTooMany:n.msgFilesTooMany;r=r.replace("{m}",t).replace("{n}",e),n.isError=_(r,null,null,null),n.$captionContainer.removeClass("icon-visible"),n._setCaption("",!0),n.$container.removeClass("file-input-new file-input-ajax-new")};if(n.reader=null,n._resetUpload(),n._hideFileIcon(),n.dropZoneEnabled&&n.$container.find(".file-drop-zone ."+n.dropZoneTitleClass).remove(),u||(d=i.target&&void 0===i.target.files?i.target.value?[{name:i.target.value.replace(/^.+\\/,"")}]:[]:i.target.files||{}),r=d,t.isEmpty(r)||0===r.length)return u||n.clear(),void n._raise("fileselectnone");if(n._resetErrors(),a=r.length,s=u?n.fileManager.count()+a:a,o=n._getFileCount(s,!g&&void 0),f>0&&o>f){if(!n.autoReplace||a>f)return void b(n.autoReplace&&a>f?a:o,f);o>f&&n._resetPreviewThumbs(u)}else{if(g&&(o=n._getFileCount(s,!0),m>0&&o>m)){if(!n.autoReplace||a>f)return void b(n.autoReplace&&a>m?a:o,m,!0);o>f&&n._resetPreviewThumbs(u)}!u||v?(n._resetPreviewThumbs(!1),v&&n.clearFileStack()):!u||0!==h||n.previewCache.count(!0)&&!n.overwriteInitial||n._resetPreviewThumbs(!0)}n.autoReplace&&n._getThumbs().each((function(){var t=e(this);(t.hasClass("file-preview-success")||t.hasClass("file-preview-error"))&&t.remove()})),n.readFiles(r),n._toggleLoading("hide")}},_abort:function(t){var i,n=this;return n.ajaxAborted&&"object"==typeof n.ajaxAborted&&void 0!==n.ajaxAborted.message?((i=e.extend(!0,{},n._getOutData(null),t)).abortData=n.ajaxAborted.data||{},i.abortMessage=n.ajaxAborted.message,n._setProgress(101,n.$progress,n.msgCancelled),n._showFileError(n.ajaxAborted.message,i,"filecustomerror"),n.cancel(),n.unlock(),!0):!!n.ajaxAborted},_resetFileStack:function(){var t=this,i=0;t._getThumbs().each((function(){var n=e(this),r=n.attr("data-fileindex"),o=n.attr("id");"-1"!==r&&-1!==r&&(t._getThumbFile(n)?n.attr({"data-fileindex":"-1"}):(n.attr({"data-fileindex":i}),i++),t._getZoom(o).attr({"data-fileindex":n.attr("data-fileindex")}))}))},_isFileSelectionValid:function(e){var t=this;return e=e||0,t.required&&!t.getFilesCount()?(t.$errorContainer.html(""),t._showFileError(t.msgFileRequired),!1):!(t.minFileCount>0&&t._getFileCount(e)<t.minFileCount)||(t._noFilesError({}),!1)},_canPreview:function(e){var i=this;if(!(e&&i.showPreview&&i.$preview&&i.$preview.length))return!1;var n,r,o,s=e.name||"",a=e.type||"",l=(e.size||0)/i.bytesToKB,c=i._parseFileType(a,s),u=i.allowedPreviewTypes,d=i.allowedPreviewMimeTypes,h=i.allowedPreviewExtensions||[],p=i.disabledPreviewTypes,f=i.disabledPreviewMimeTypes,m=i.disabledPreviewExtensions||[],g=i.maxFilePreviewSize&&parseFloat(i.maxFilePreviewSize)||0,v=new RegExp("\\.("+h.join("|")+")$","i"),_=new RegExp("\\.("+m.join("|")+")$","i");return n=!u||-1!==u.indexOf(c),r=!d||-1!==d.indexOf(a),o=!h.length||t.compare(s,v),!(p&&-1!==p.indexOf(c)||f&&-1!==f.indexOf(a)||m.length&&t.compare(s,_)||g&&!isNaN(g)&&l>g)&&(n||r||o)},addToStack:function(e,t){var i=this;i.stackIsUpdating=!0,i.fileManager.add(e,t),i._refreshPreview(),i.stackIsUpdating=!1},clearFileStack:function(){var e=this;return e.fileManager.clear(),e._initResumableUpload(),e.enableResumableUpload?(null===e.showPause&&(e.showPause=!0),null===e.showCancel&&(e.showCancel=!1)):(e.showPause=!1,null===e.showCancel&&(e.showCancel=!0)),e.$element},getFileStack:function(){return this.fileManager.stack},getFileList:function(){return this.fileManager.list()},getFilesSize:function(){return this.fileManager.getTotalSize()},getFilesCount:function(e){var t=this,i=t.isAjaxUpload?t.fileManager.count():t._inputFileCount();return e&&(i+=t.previewCache.count(!0)),t._getFileCount(i)},_initCapStatus:function(e){var t=this.$caption;t.removeClass("is-valid file-processing"),e&&("processing"===e?t.addClass("file-processing"):t.addClass("is-valid"))},_toggleLoading:function(e){var t=this;t.$previewStatus.html("hide"===e?"":t.msgProcessing),t.$container.removeClass("file-thumb-loading"),t._initCapStatus("hide"===e?"":"processing"),"hide"!==e&&(t.dropZoneEnabled&&t.$container.find(".file-drop-zone ."+t.dropZoneTitleClass).remove(),t.$container.addClass("file-thumb-loading"))},_initFileSelected:function(){var t=this,i=t.$element,n=e(document.body),r="focusin.fileinput focusout.fileinput";n.length?n.off(r).on("focusout.fileinput",(function(){t._toggleLoading("show")})).on("focusin.fileinput",(function(){setTimeout((function(){i.val()||t._setFileDropZoneTitle(),n.off(r),t._toggleLoading("hide")}),2500)})):t._toggleLoading("hide")},readFiles:function(i){this.reader=new FileReader;var n,r=this,o=r.reader,s=r.$previewContainer,a=r.$previewStatus,l=r.msgLoading,c=r.msgProgress,u=r.previewInitId,d=i.length,h=r.fileTypeSettings,p=r.allowedFileTypes,f=p?p.length:0,m=r.allowedFileExtensions,g=t.isEmpty(m)?"":m.join(", "),v=function(t,o,s,a,l){var c,u=e.extend(!0,{},r._getOutData(null,{},{},i),{id:s,index:a,fileId:l}),h={id:s,index:a,fileId:l,file:o,files:i};r._previewDefault(o,!0),c=r._getFrame(s,!0),r._toggleLoading("hide"),r.isAjaxUpload?setTimeout((function(){n(a+1)}),r.processDelay):(r.unlock(),d=0),r.removeFromPreviewOnError&&c.length?c.remove():(r._initFileActions(),c.find(".kv-file-upload").remove()),r.isPersistentError=!0,r.isError=r.isAjaxUpload?r._showFileError(t,u):r._showError(t,h),r._updateFileDetails(d)};r.fileManager.clearImages(),e.each(i,(function(e,t){var i=r.fileTypeSettings.image;i&&i(t.type)&&r.fileManager.totalImages++})),(n=function(_){var b,y=r.$errorContainer,w=r.fileManager;if(_>=d)return r.unlock(),r.duplicateErrors.length&&(b="<li>"+r.duplicateErrors.join("</li><li>")+"</li>",0===y.find("ul").length?t.setHtml(y,r.errorCloseButton+"<ul>"+b+"</ul>"):y.find("ul").append(b),y.fadeIn(r.fadeDelay),r._handler(y.find(".kv-error-close"),"click",(function(){y.fadeOut(r.fadeDelay)})),r.duplicateErrors=[]),r.isAjaxUpload?(r._raise("filebatchselected",[w.stack]),0!==w.count()||r.isError||r.reset()):r._raise("filebatchselected",[i]),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void a.html("");r.lock(!0);var x,C,T,k,E,S,A,P,I,D,F,L,M,O,j,$,z=i[_],N=z&&z.size||0,R=r._getSize(N,!0),U=h.image,B=N/r.bytesToKB,H="",q=0,W="",V=!1,Z=0;if($=function(e){e=e||z,x=L=r._getFileId(z),C=u+"-"+x,F=t.createObjectURL(e),D=r._getFileName(z,"")},j=function(){var e=!!w.loadedImages[x],t=c.setTokens({index:_+1,files:d,percent:50,name:D});setTimeout((function(){a.html(t),r._updateFileDetails(d),r.getFilesCount(!0)>0&&r.getFrames(":visible")&&r.$dropZone.find("."+r.dropZoneTitleClass).remove(),n(_+1)}),r.processDelay),r._raise("fileloaded",[z,C,x,_,o])&&r.isAjaxUpload?e||w.add(z):e&&w.removeFile(x)},z){if($(),f>0)for(k=0;k<f;k++)P=p[k],I=r.msgFileTypes[P]||P,W+=0===k?I:", "+I;if(!1!==D){if(0===D.length)return E=r.msgInvalidFileName.replace("{name}",t.htmlEncode(t.getFileName(z),"[unknown]")),void v(E,z,C,_,L);if(t.isEmpty(m)||(H=new RegExp("\\.("+m.join("|")+")$","i")),r.isAjaxUpload&&w.exists(L)||r._getFrame(C,!0).length){var K={id:C,index:_,fileId:L,file:z,files:i};return E=r.msgDuplicateFile.setTokens({name:D,size:R}),void(r.isAjaxUpload?(r.stackIsUpdating||(r.duplicateErrors.push(E),r.isDuplicateError=!0,r._raise("fileduplicateerror",[z,L,D,R,C,_])),n(_+1),r._updateFileDetails(d)):(r._showError(E,K),r.unlock(),d=0,r._clearFileInput(),r.reset(),r._updateFileDetails(d)))}if(r.maxFileSize>0&&B>r.maxFileSize)return E=r.msgSizeTooLarge.setTokens({name:D,size:R,maxSize:r._getSize(r.maxFileSize*r.bytesToKB,!0)}),void v(E,z,C,_,L);if(null!==r.minFileSize&&B<=t.getNum(r.minFileSize))return E=r.msgSizeTooSmall.setTokens({name:D,size:R,minSize:r._getSize(r.minFileSize*r.bytesToKB,!0)}),void v(E,z,C,_,L);if(!t.isEmpty(p)&&t.isArray(p)){for(k=0;k<p.length;k+=1)A=p[k],q+=(O=h[A])&&"function"==typeof O&&O(z.type,t.getFileName(z))?1:0;if(0===q)return E=r.msgInvalidFileType.setTokens({name:D,types:W}),void v(E,z,C,_,L)}if(0===q&&!t.isEmpty(m)&&t.isArray(m)&&!t.isEmpty(H)&&(S=t.compare(D,H),0===(q+=t.isEmpty(S)?0:S.length)))return E=r.msgInvalidFileExtension.setTokens({name:D,extensions:g}),void v(E,z,C,_,L);if(!r._canPreview(z))return M=r._raise("filebeforeload",[z,_,o]),r.isAjaxUpload&&M&&w.add(z),r.showPreview&&M&&(s.addClass("file-thumb-loading"),r._initCapStatus("processing"),r._previewDefault(z),r._initFileActions()),void setTimeout((function(){M&&r._updateFileDetails(d),n(_+1),r._raise("fileloaded",[z,C,x,_])}),10);U(z.type,D),a.html(l.replace("{index}",_+1).replace("{files}",d)),s.addClass("file-thumb-loading"),r._initCapStatus("processing"),o.onerror=function(e){r._errorHandler(e,D)},o.onload=function(i){var n,l,c,u,d,p,f=[],m=function(e,c){if(t.isEmpty(e)&&(d=t.arrayBuffer2String(o.result),e=t.isSvg(d)?"image/svg+xml":t.getMimeType(n,d,z.type)),l={name:D,type:e||""},c&&"undefined"!=typeof File)try{var u=l.filename=D+"."+c;T=new File([z],u,{type:l.type}),$(T)}catch(e){}if(U(e,"")){var h=new FileReader;return h.onerror=function(e){r._errorHandler(e,D)},h.onload=function(e){if(r.isAjaxUpload&&!r._raise("filebeforeload",[z,_,o]))return V=!0,r._resetCaption(),o.abort(),a.html(""),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void r.enable();r._previewFile(_,z,e,F,l),r._initFileActions(),j()},void h.readAsDataURL(z)}if(r.isAjaxUpload&&!r._raise("filebeforeload",[z,_,o]))return V=!0,r._resetCaption(),o.abort(),a.html(""),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void r.enable();r._previewFile(_,z,i,F,l),r._initFileActions(),j()};if(p=z.type,l={name:D,type:p},e.each(h,(function(e,t){"object"!==e&&"other"!==e&&"function"==typeof t&&t(p,D)&&Z++})),"undefined"!=typeof FileTypeParser)c=new Uint8Array(i.target.result),(new FileTypeParser).parse(c).then((function(e){m(e&&e.mime||p,e&&e.ext||"")}));else{if(0===Z){for(c=new Uint8Array(i.target.result),k=0;k<c.length;k++)u=c[k].toString(16),f.push(u);n=f.join("").toLowerCase().substring(0,8),p=t.getMimeType(n,"","")}m(p)}},o.onprogress=function(e){if(e.lengthComputable){var t=e.loaded/e.total*100,i=Math.ceil(t);E=c.setTokens({index:_+1,files:d,percent:i,name:D}),setTimeout((function(){V||a.html(E)}),r.processDelay)}},o.readAsArrayBuffer(z)}else n(_+1)}})(0),r._updateFileDetails(d)},lock:function(e){var t=this,i=t.$container;return t._resetErrors(),t.disable(),!e&&t.showCancel&&i.find(".fileinput-cancel").show(),!e&&t.showPause&&i.find(".fileinput-pause").show(),t._initCapStatus("processing"),t._raise("filelock",[t.fileManager.stack,t._getExtraData()]),t.$element},unlock:function(e){var t=this,i=t.$container;return void 0===e&&(e=!0),t.enable(),i.removeClass("is-locked"),t.showCancel&&i.find(".fileinput-cancel").hide(),t.showPause&&i.find(".fileinput-pause").hide(),e&&t._resetFileStack(),t._initCapStatus(),t._raise("fileunlock",[t.fileManager.stack,t._getExtraData()]),t.$element},resume:function(){var e=this,t=e.fileManager,i=!1,n=e.resumableManager;return t.bpsLog=[],t.bps=0,e.enableResumableUpload?(e.paused?e._toggleResumableProgress(e.progressPauseTemplate,e.msgUploadResume):i=!0,e.paused=!1,i&&e._toggleResumableProgress(e.progressInfoTemplate,e.msgUploadBegin),setTimeout((function(){n.upload()}),e.processDelay),e.$element):e.$element},paste:function(e){var t=this,i=e.originalEvent,n=i.clipboardData&&i.clipboardData.files||null;return n&&t._dropFiles(e,n),t.$element},pause:function(){var t,i=this,n=i.resumableManager,r=i.ajaxRequests,o=r.length,s=n.getProgress(),a=i.fileActionSettings,l=i.taskManager.getPool(n.id);if(!i.enableResumableUpload)return i.$element;if(l&&l.cancel(),i._raise("fileuploadpaused",[i.fileManager,n]),o>0)for(t=0;t<o;t+=1)i.paused=!0,r[t].abort();return i.showPreview&&i._getThumbs().each((function(){var t,n=e(this),r=i._getLayoutTemplate("stats"),o=n.find(".file-upload-indicator");n.removeClass("file-uploading"),o.attr("title")===a.indicatorLoadingTitle&&(i._setThumbStatus(n,"Paused"),t=r.setTokens({pendingTime:i.msgPaused,uploadSpeed:""}),i.paused=!0,i._setProgress(s,n.find(".file-thumb-progress"),s+"%",t)),i._getThumbFile(n)||n.find(".kv-file-remove").removeClass("disabled").removeAttr("disabled")})),i._setProgress(101,i.$progress,i.msgPaused),i.$element},cancel:function(){var t,i=this,n=i.ajaxRequests,r=i.resumableManager,o=i.taskManager,s=r?o.getPool(r.id):void 0,a=n.length;if(i.enableResumableUpload&&s?(s.cancel().done((function(){i._setProgressCancelled()})),r.reset(),i._raise("fileuploadcancelled",[i.fileManager,r])):(i.ajaxPool&&i.ajaxPool.cancel(),i._raise("fileuploadcancelled",[i.fileManager])),i._initAjax(),a>0)for(t=0;t<a;t+=1)i.cancelling=!0,n[t].abort();return i._getThumbs().each((function(){var t=e(this),n=t.find(".file-thumb-progress");t.removeClass("file-uploading"),i._setProgress(0,n),n.hide(),i._getThumbFile(t)||(t.find(".kv-file-upload").removeClass("disabled").removeAttr("disabled"),t.find(".kv-file-remove").removeClass("disabled").removeAttr("disabled")),i.unlock()})),setTimeout((function(){i._setProgressCancelled()}),i.processDelay),i.$element},clear:function(){var i,n=this;if(n._raise("fileclear"))return n.clearInput=!0,n.$btnUpload.removeAttr("disabled"),n._getThumbs().find("video,audio,img").each((function(){t.cleanMemory(e(this))})),n._clearFileInput(),n._resetUpload(),n.clearFileStack(),n.isDuplicateError=!1,n.isPersistentError=!1,n._resetErrors(!0),n._hasInitialPreview()?(n._showFileIcon(),n._resetPreview(),n._initPreviewActions(),n.$container.removeClass("file-input-new")):(n._getThumbs().each((function(){n._clearObjects(e(this))})),n.isAjaxUpload&&(n.previewCache.data={}),n.$preview.html(""),i=!n.overwriteInitial&&n.initialCaption.length>0?n.initialCaption:"",n.$caption.attr("title","").val(i),t.addCss(n.$container,"file-input-new"),n._validateDefaultPreview()),0===n.$container.find(t.FRAMES).length&&(n._initCaption()||n.$captionContainer.removeClass("icon-visible")),n._hideFileIcon(),n.focusCaptionOnClear&&n.$captionContainer.focus(),n._setFileDropZoneTitle(),n._raise("filecleared"),n.$element},reset:function(){var e=this;if(e._raise("filereset"))return e.lastProgress=0,e._resetPreview(),e.$container.find(".fileinput-filename").text(""),t.addCss(e.$container,"file-input-new"),e.getFrames().length&&e.$container.removeClass("file-input-new"),e.clearFileStack(),e._setFileDropZoneTitle(),e.$element},disable:function(){var e=this,i=e.$container;return e.isDisabled=!0,e._raise("filedisabled"),e.$element.attr("disabled","disabled"),i.addClass("is-locked"),t.addCss(i.find(".btn-file"),"disabled"),i.find(".kv-fileinput-caption").addClass("file-caption-disabled"),i.find(".fileinput-remove, .fileinput-upload, .file-preview-frame button").attr("disabled",!0),e._initDragDrop(),e.$element},enable:function(){var e=this,t=e.$container;return e.isDisabled=!1,e._raise("fileenabled"),e.$element.removeAttr("disabled"),t.removeClass("is-locked"),t.find(".kv-fileinput-caption").removeClass("file-caption-disabled"),t.find(".fileinput-remove, .fileinput-upload, .file-preview-frame button").removeAttr("disabled"),t.find(".btn-file").removeClass("disabled"),e._initDragDrop(),e.$element},upload:function(){var i,n,r=this,o=r.fileManager,s=o.count(),a=r.taskManager,l=!e.isEmptyObject(r._getExtraData());if(o.bpsLog=[],o.bps=0,r.isAjaxUpload&&!r.isDisabled&&r._isFileSelectionValid(s)){if(r.lastProgress=0,r._resetUpload(),0!==s||l){if(r.cancelling=!1,r.uploadInitiated=!0,r._showProgress(),r.lock(),0===s&&l)return r._setProgress(2),void r._uploadExtraOnly();if(r.enableResumableUpload)return r.resume();if(r.uploadAsync||r.enableResumableUpload){if(n=r._getOutData(null),!r._checkBatchPreupload(n))return;r.fileBatchCompleted=!1,r.uploadCache=[],e.each(r.getFileStack(),(function(e){var t=r._getThumbId(e);r.uploadCache.push({id:t,content:null,config:null,tags:null,append:!0})})),r.$preview.find(".file-preview-initial").removeClass(t.SORT_CSS),r._initSortable()}if(r._setProgress(2),r.hasInitData=!1,r.uploadAsync){i=0;var c=r.ajaxPool=a.addPool(t.uniqId());return e.each(r.getFileStack(),(function(e){c.addTask(e+i,(function(t){r._uploadSingle(i,e,!0,t)})),i++})),void c.run(r.maxAjaxThreads).done((function(){r._log("Async upload batch completed successfully."),r._raise("filebatchuploadsuccess",[o.stack,r._getExtraData()])})).fail((function(){r._log("Async upload batch completed with errors."),r._raise("filebatchuploaderror",[o.stack,r._getExtraData()])}))}return r._uploadBatch(),r.$element}r._showFileError(r.msgUploadEmpty)}},destroy:function(){var t=this,i=t.$form,n=t.$container,r=t.$element,o=t.namespace;return e(document).off(o),e(window).off(o),i&&i.length&&i.off(o),t.isAjaxUpload&&t._clearFileInput(),t._cleanup(),t._initPreviewCache(),r.insertBefore(n).off(o).removeData(),n.off().remove(),r},refresh:function(i){var n=this,r=n.$element;return i="object"!=typeof i||t.isEmpty(i)?n.options:e.extend(!0,{},n.options,i),n._init(i,!0),n._listen(),r},zoom:function(e){var t=this,i=t._getFrame(e);t._showModal(i)},getExif:function(e){var t=this._getFrame(e);return t&&t.data("exif")||null},getFrames:function(i){var n,r=this;return i=i||"",n=r.$preview.find(t.FRAMES+i),r.reversePreviewOrder&&(n=e(n.get().reverse())),n},getPreview:function(){var e=this;return{content:e.initialPreview,config:e.initialPreviewConfig,tags:e.initialPreviewThumbTags}}},e.fn.fileinput=function(n){if(t.hasFileAPISupport()||t.isIE(9)){var r=Array.apply(null,arguments),o=[];switch(r.shift(),this.each((function(){var s,a=e(this),l=a.data("fileinput"),c="object"==typeof n&&n,u=c.theme||a.data("theme"),d={},h={},p=c.language||a.data("language")||e.fn.fileinput.defaults.language||"en";l||(u&&(h=e.fn.fileinputThemes[u]||{}),"en"===p||t.isEmpty(e.fn.fileinputLocales[p])||(d=e.fn.fileinputLocales[p]||{}),s=e.extend(!0,{},e.fn.fileinput.defaults,h,e.fn.fileinputLocales.en,d,c,a.data()),l=new i(this,s),a.data("fileinput",l)),"string"==typeof n&&o.push(l[n].apply(l,r))})),o.length){case 0:return this;case 1:return o[0];default:return o}}};var n='class="kv-preview-data file-preview-pdf" src="{renderer}?file={data}" {style}',r="btn btn-sm btn-kv "+t.defaultButtonCss(),o="btn "+t.defaultButtonCss();e.fn.fileinput.defaults={language:"en",bytesToKB:1024,showCaption:!0,showBrowse:!0,showPreview:!0,showRemove:!0,showUpload:!0,showUploadStats:!0,showCancel:null,showPause:null,showClose:!0,showUploadedThumbs:!0,showConsoleLogs:!1,browseOnZoneClick:!1,autoReplace:!1,showDescriptionClose:!0,autoOrientImage:function(){var e=window.navigator.userAgent,t=!!e.match(/WebKit/i);return!(!!e.match(/iP(od|ad|hone)/i)&&t&&!e.match(/CriOS/i))},autoOrientImageInitial:!0,showExifErrorLog:!1,required:!1,rtl:!1,hideThumbnailContent:!1,encodeUrl:!0,focusCaptionOnBrowse:!0,focusCaptionOnClear:!0,generateFileId:null,previewClass:"",captionClass:"",frameClass:"krajee-default",mainClass:"",inputGroupClass:"",mainTemplate:null,fileSizeGetter:null,initialCaption:"",initialPreview:[],initialPreviewDelimiter:"*$$*",initialPreviewAsData:!1,initialPreviewFileType:"image",initialPreviewConfig:[],initialPreviewThumbTags:[],previewThumbTags:{},initialPreviewShowDelete:!0,initialPreviewDownloadUrl:"",removeFromPreviewOnError:!1,deleteUrl:"",deleteExtraData:{},overwriteInitial:!0,sanitizeZoomCache:function(e){var i=t.createElement(e);return i.find("input,textarea,select,datalist,form,.file-thumbnail-footer").remove(),i.html()},previewZoomButtonIcons:{prev:'<i class="bi-chevron-left"></i>',next:'<i class="bi-chevron-right"></i>',rotate:'<i class="bi-arrow-clockwise"></i>',toggleheader:'<i class="bi-arrows-expand"></i>',fullscreen:'<i class="bi-arrows-fullscreen"></i>',borderless:'<i class="bi-arrows-angle-expand"></i>',close:'<i class="bi-x-lg"></i>'},previewZoomButtonClasses:{prev:"btn btn-default btn-outline-secondary btn-navigate",next:"btn btn-default btn-outline-secondary btn-navigate",rotate:r,toggleheader:r,fullscreen:r,borderless:r,close:r},previewTemplates:{},previewContentTemplates:{},preferIconicPreview:!1,preferIconicZoomPreview:!1,alwaysPreviewFileExtensions:[],rotatableFileExtensions:["jpg","jpeg","png","gif"],allowedFileTypes:null,allowedFileExtensions:null,allowedPreviewTypes:void 0,allowedPreviewMimeTypes:null,allowedPreviewExtensions:null,disabledPreviewTypes:void 0,disabledPreviewExtensions:["msi","exe","com","zip","rar","app","vb","scr"],disabledPreviewMimeTypes:null,defaultPreviewContent:null,customLayoutTags:{},customPreviewTags:{},previewFileIcon:'<i class="bi-file-earmark-fill"></i>',previewFileIconClass:"file-other-icon",previewFileIconSettings:{},previewFileExtSettings:{},buttonLabelClass:"hidden-xs",browseIcon:'<i class="bi-folder2-open"></i> ',browseClass:"btn btn-primary",removeIcon:'<i class="bi-trash"></i>',removeClass:o,cancelIcon:'<i class="bi-slash-circle"></i>',cancelClass:o,pauseIcon:'<i class="bi-pause-fill"></i>',pauseClass:o,uploadIcon:'<i class="bi-upload"></i>',uploadClass:o,uploadUrl:null,uploadUrlThumb:null,uploadAsync:!0,uploadParamNames:{chunkCount:"chunkCount",chunkIndex:"chunkIndex",chunkSize:"chunkSize",chunkSizeStart:"chunkSizeStart",chunksUploaded:"chunksUploaded",fileBlob:"fileBlob",fileId:"fileId",fileName:"fileName",fileRelativePath:"fileRelativePath",fileSize:"fileSize",retryCount:"retryCount"},maxAjaxThreads:5,fadeDelay:800,processDelay:100,bitrateUpdateDelay:500,queueDelay:10,progressDelay:0,enableResumableUpload:!1,resumableUploadOptions:{fallback:null,testUrl:null,chunkSize:2048,maxThreads:4,maxRetries:3,showErrorLog:!0,retainErrorHistory:!1,skipErrorsAndProceed:!1},uploadExtraData:{},zoomModalHeight:485,minImageWidth:null,minImageHeight:null,maxImageWidth:null,maxImageHeight:null,resizeImage:!1,resizePreference:"width",resizeQuality:.92,resizeDefaultImageType:"image/jpeg",resizeIfSizeMoreThan:0,minFileSize:-1,maxFileSize:0,maxFilePreviewSize:25600,minFileCount:0,maxFileCount:0,maxTotalFileCount:0,validateInitialCount:!1,msgValidationErrorClass:"text-danger",msgValidationErrorIcon:'<i class="bi-exclamation-circle-fill"></i> ',msgErrorClass:"file-error-message",progressThumbClass:"progress-bar progress-bar-striped active progress-bar-animated",progressClass:"progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated",progressInfoClass:"progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated",progressCompleteClass:"progress-bar bg-success progress-bar-success",progressPauseClass:"progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated",progressErrorClass:"progress-bar bg-danger progress-bar-danger",progressUploadThreshold:99,previewFileType:"image",elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,errorCloseButton:void 0,slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:"file-drop-zone-title",fileActionSettings:{},otherActionButtons:"",textEncoding:"UTF-8",preProcessUpload:null,ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0,mergeAjaxCallbacks:!1,mergeAjaxDeleteCallbacks:!1,retryErrorUploads:!0,reversePreviewOrder:!1,usePdfRenderer:function(){var e=!!window.MSInputMethodContext&&!!document.documentMode;return!!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)||e},pdfRendererUrl:"",pdfRendererTemplate:"<iframe "+n+"></iframe>",tabIndexConfig:{browse:500,remove:500,upload:500,cancel:null,pause:null,modal:-1}},e.fn.fileinputLocales.en={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"file",filePlural:"files",browseLabel:"Browse &hellip;",removeLabel:"Remove",removeTitle:"Clear all unprocessed files",cancelLabel:"Cancel",cancelTitle:"Abort ongoing upload",pauseLabel:"Pause",pauseTitle:"Pause ongoing upload",uploadLabel:"Upload",uploadTitle:"Upload selected files",msgNo:"No",msgNoFilesSelected:"No files selected",msgCancelled:"Cancelled",msgPaused:"Paused",msgPlaceholder:"Select {files} ...",msgZoomModalHeading:"Detailed Preview",msgFileRequired:"You must select a file to upload.",msgSizeTooSmall:'File "{name}" (<b>{size}</b>) is too small and must be larger than <b>{minSize}</b>.',msgSizeTooLarge:'File "{name}" (<b>{size}</b>) exceeds maximum allowed upload size of <b>{maxSize}</b>.',msgFilesTooLess:"You must select at least <b>{n}</b> {files} to upload.",msgFilesTooMany:"Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit of <b>{m}</b>.",msgTotalFilesTooMany:"You can upload a maximum of <b>{m}</b> files (<b>{n}</b> files detected).",msgFileNotFound:'File "{name}" not found!',msgFileSecured:'Security restrictions prevent reading the file "{name}".',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileName:'Invalid or unsupported characters in file name "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"The file upload was aborted",msgUploadThreshold:"Processing &hellip;",msgUploadBegin:"Initializing &hellip;",msgUploadEnd:"Done",msgUploadResume:"Resuming upload &hellip;",msgUploadEmpty:"No valid data available for upload.",msgUploadError:"Upload Error",msgDeleteError:"Delete Error",msgProgressError:"Error",msgValidationError:"Validation Error",msgLoading:"Loading file {index} of {files} &hellip;",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} {files} selected",msgProcessing:"Processing ...",msgFoldersNotAllowed:"Drag & drop files only! {n} folder(s) dropped were skipped.",msgImageWidthSmall:'Width of image file "{name}" must be at least <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageHeightSmall:'Height of image file "{name}" must be at least <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageWidthLarge:'Width of image file "{name}" cannot exceed <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageHeightLarge:'Height of image file "{name}" cannot exceed <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageResizeError:"Could not get the image dimensions to resize.",msgImageResizeException:"Error while resizing the image.<pre>{errors}</pre>",msgAjaxError:"Something went wrong with the {operation} operation. Please try again later!",msgAjaxProgressError:"{operation} failed",msgDuplicateFile:'File "{name}" of same size "{size}" has already been selected earlier. Skipping duplicate selection.',msgResumableUploadRetriesExceeded:"Upload aborted beyond <b>{max}</b> retries for file <b>{file}</b>! Error Details: <pre>{error}</pre>",msgPendingTime:"{time} remaining",msgCalculatingTime:"calculating time remaining",ajaxOperations:{deleteThumb:"file delete",uploadThumb:"file upload",uploadBatch:"batch file upload",uploadExtra:"form data upload"},dropZoneTitle:"Drag & drop files here &hellip;",dropZoneClickTitle:"<br>(or click to select {files})",previewZoomButtonTitles:{prev:"View previous file",next:"View next file",rotate:"Rotate 90 deg. clockwise",toggleheader:"Toggle header",fullscreen:"Toggle full screen",borderless:"Toggle borderless mode",close:"Close detailed preview"}},e.fn.fileinput.Constructor=i,e(document).ready((function(){var t=e("input.file[type=file]");t.length&&t.fileinput()}))},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)}()},876:(e,t,i)=>{"use strict";var n,r,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="object"===("undefined"==typeof window?"undefined":s(window));
+ */!function(){"use strict";o=[n(616)],r=function(e){e.fn.fileinputLocales={},e.fn.fileinputThemes={},e.fn.fileinputBsVersion||(e.fn.fileinputBsVersion=window.bootstrap&&window.bootstrap.Alert&&window.bootstrap.Alert.VERSION||window.Alert&&window.Alert.VERSION||"3.x.x");String.prototype.setTokens=function(e){var t,i,n=this.toString();for(t in e)e.hasOwnProperty(t)&&(i=new RegExp("{"+t+"}","g"),n=n.replace(i,e[t]));return n},Array.prototype.flatMap||(Array.prototype.flatMap=function(e){return[].concat(this.map(e))});var t,n;t={FRAMES:".kv-preview-thumb",SORT_CSS:"file-sortable",INIT_FLAG:"init-",SCRIPT_SRC:document&&document.currentScript&&document.currentScript.src||null,OBJECT_PARAMS:'<param name="controller" value="true" />\n<param name="allowFullScreen" value="true" />\n<param name="allowScriptAccess" value="always" />\n<param name="autoPlay" value="false" />\n<param name="autoStart" value="false" />\n<param name="quality" value="high" />\n',DEFAULT_PREVIEW:'<div class="file-preview-other">\n<span class="{previewFileIconClass}">{previewFileIcon}</span>\n</div>',MODAL_ID:"kvFileinputModal",MODAL_EVENTS:["show","shown","hide","hidden","loaded"],logMessages:{ajaxError:"{status}: {error}. Error Details: {text}.",badDroppedFiles:"Error scanning dropped files!",badExifParser:"Error loading the piexif.js library. {details}",badInputType:'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.',exifWarning:'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded the "piexif.js" library correctly on your page before the "fileinput.js" script.',invalidChunkSize:'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.',invalidThumb:'Invalid thumb frame with id: "{id}".',noResumableSupport:"The browser does not support resumable or chunk uploads.",noUploadUrl:'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.',retryStatus:"Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.",chunkQueueError:"Could not push task to ajax pool for chunk index # {index}.",resumableMaxRetriesReached:"Maximum resumable ajax retries ({n}) reached.",resumableRetryError:"Could not retry the resumable request (try # {n})... aborting.",resumableAborting:"Aborting / cancelling the resumable request.",resumableRequestError:"Error processing resumable request. {msg}"},objUrl:window.URL||window.webkitURL,getZoomPlaceholder:function(){var e,i=t.SCRIPT_SRC,n="?kvTemp__2873389129__=";return i?(e=i.substring(0,i.lastIndexOf("/"))).substring(0,e.lastIndexOf("/")+1)+"img/loading.gif"+n:n},defaultButtonCss:function(e){return"btn-default btn-"+(e?"":"outline-")+"secondary"},isBs:function(i){var n=t.trim((e.fn.fileinputBsVersion||"")+"");return i=parseInt(i,10),n?i===parseInt(n.charAt(0),10):4===i},isNumeric:function(e){return void 0!==e&&(!isNaN(parseFloat(e))&&isFinite(e))},trim:function(e){return void 0===e?"":e.toString().trim()},now:function(){return(new Date).getTime()},round:function(e){return e=parseFloat(e),isNaN(e)?0:Math.floor(Math.round(e))},getArray:function(e){var t,i=[],n=e&&e.length||0;for(t=0;t<n;t++)i.push(e[t]);return i},getFileRelativePath:function(e){return String(e.newPath||e.relativePath||e.webkitRelativePath||t.getFileName(e)||null)},getFileId:function(e,i){var n=t.getFileRelativePath(e);return"function"==typeof i?i(e):e&&n?e.size+"_"+encodeURIComponent(n).replace(/%/g,"_"):null},getFrameSelector:function(e,t){return'[id="'+e+'"]'+(t=t||"")},getZoomSelector:function(e,i){return t.getFrameSelector("zoom-"+e,i)},getFrameElement:function(e,i,n){return e.find(t.getFrameSelector(i,n))},getZoomElement:function(e,i,n){return e.find(t.getZoomSelector(i,n))},getElapsed:function(i){var n=i,r="",o={},s={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};return t.getObjectKeys(s).forEach((function(e){o[e]=Math.floor(n/s[e]),n-=o[e]*s[e]})),e.each(o,(function(e,t){t>0&&(r+=(r?" ":"")+t+e.substring(0,1))})),r},debounce:function(e,t){var i;return function(){var n=arguments,r=this;clearTimeout(i),i=setTimeout((function(){e.apply(r,n)}),t)}},stopEvent:function(e){e.stopPropagation(),e.preventDefault()},getFileName:function(e){return e&&(e.fileName||e.name)||""},createObjectURL:function(e){return t.objUrl&&t.objUrl.createObjectURL&&e?t.objUrl.createObjectURL(e):""},revokeObjectURL:function(e){t.objUrl&&t.objUrl.revokeObjectURL&&e&&t.objUrl.revokeObjectURL(e)},compare:function(e,t,i){return void 0!==e&&(i?e===t:e.match(t))},isIE:function(e){var t,i;return"Microsoft Internet Explorer"===navigator.appName&&(10===e?new RegExp("msie\\s"+e,"i").test(navigator.userAgent):((t=document.createElement("div")).innerHTML="\x3c!--[if IE "+e+"]> <i></i> <![endif]--\x3e",i=t.getElementsByTagName("i").length,document.body.appendChild(t),t.parentNode.removeChild(t),i))},canOrientImage:function(t){var i=e(document.createElement("img")).css({width:"1px",height:"1px"}).insertAfter(t),n=i.css("image-orientation");return i.remove(),!!n},canAssignFilesToInput:function(){var e=document.createElement("input");try{return e.type="file",e.files=null,!0}catch(e){return!1}},getDragDropFolders:function(e){var t,i,n=e?e.length:0,r=0;if(n>0&&e[0].webkitGetAsEntry())for(t=0;t<n;t++)(i=e[t].webkitGetAsEntry())&&i.isDirectory&&r++;return r},initModal:function(t){var i=e("body");i.length&&t.appendTo(i)},isFunction:function(e){return"function"==typeof e},isEmpty:function(i,n){return null==i||""===i||(t.isString(i)&&n?""===t.trim(i):t.isArray(i)?0===i.length:!(!e.isPlainObject(i)||!e.isEmptyObject(i)))},isArray:function(e){return Array.isArray(e)||"[object Array]"===Object.prototype.toString.call(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},ifSet:function(e,t,i){return i=i||"",t&&"object"==typeof t&&e in t?t[e]:i},cleanArray:function(e){return e instanceof Array||(e=[]),e.filter((function(e){return null!=e}))},spliceArray:function(t,i,n){var r,o,s=0,a=[];if(!(t instanceof Array))return[];for(o=e.extend(!0,[],t),n&&o.reverse(),r=0;r<o.length;r++)r!==i&&(a[s]=o[r],s++);return n&&a.reverse(),a},getNum:function(e,t){return t=t||0,"number"==typeof e?e:("string"==typeof e&&(e=parseFloat(e)),isNaN(e)?t:e)},hasFileAPISupport:function(){return!(!window.File||!window.FileReader)},hasDragDropSupport:function(){var e=document.createElement("div");return!t.isIE(9)&&(void 0!==e.draggable||void 0!==e.ondragstart&&void 0!==e.ondrop)},hasFileUploadSupport:function(){return t.hasFileAPISupport()&&window.FormData},hasBlobSupport:function(){try{return!!window.Blob&&Boolean(new Blob)}catch(e){return!1}},hasArrayBufferViewSupport:function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}},hasResumableUploadSupport:function(){return t.hasFileUploadSupport()&&t.hasBlobSupport()&&t.hasArrayBufferViewSupport()&&(!!Blob.prototype.webkitSlice||!!Blob.prototype.mozSlice||!!Blob.prototype.slice||!1)},dataURI2Blob:function(e){var i,n,r,o,s,a,l=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,c=t.hasBlobSupport();if(!((c||l)&&window.atob&&window.ArrayBuffer&&window.Uint8Array))return null;for(i=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURIComponent(e.split(",")[1]),n=new ArrayBuffer(i.length),r=new Uint8Array(n),o=0;o<i.length;o+=1)r[o]=i.charCodeAt(o);return s=e.split(",")[0].split(":")[1].split(";")[0],c?new Blob([t.hasArrayBufferViewSupport()?r:n],{type:s}):((a=new l).append(n),a.getBlob(s))},arrayBuffer2String:function(e){if(window.TextDecoder)return new TextDecoder("utf-8").decode(e);var t,i,n,r,o=Array.prototype.slice.apply(new Uint8Array(e)),s="",a=0;for(t=o.length;a<t;)switch((i=o[a++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(i);break;case 12:case 13:n=o[a++],s+=String.fromCharCode((31&i)<<6|63&n);break;case 14:n=o[a++],r=o[a++],s+=String.fromCharCode((15&i)<<12|(63&n)<<6|63&r)}return s},isSvg:function(e){return!t.isEmpty(e)&&(0!==(e=t.trim(e).replace(/\n/g," ")).length&&(e.match(/^\s*<\?xml/i)&&(e.match(/<!DOCTYPE svg/i)||e.match(/<svg/i))))},getMimeType:function(e,t,i){var n=e||"";switch(n){case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":return"image/jpeg";case"89504e47":return"image/png";case"47494638":return"image/gif";case"49492a00":return"image/tiff";case"52494646":return"image/webp";case"41433130":return"image/vnd.dwg";case"66747970":return"video/3gp";case"4f676753":return"video/ogg";case"1a45dfa3":return"video/mkv";case"000001ba":case"000001b3":return"video/mpeg";case"3026b275":return"video/wmv";case"25504446":return"application/pdf";case"25215053":return"application/ps";case"504b0304":case"504b0506":case"504b0508":return"application/zip";case"377abcaf":return"application/7z";case"75737461":return"application/tar";case"7801730d":return"application/dmg";default:switch(n.substring(0,6)){case"435753":return"application/x-shockwave-flash";case"494433":return"audio/mp3";case"425a68":return"application/bzip";default:switch(n.substring(0,4)){case"424d":return"image/bmp";case"fffb":return"audio/mp3";case"4d5a":return"application/exe";case"1f9d":case"1fa0":return"application/zip";case"1f8b":return"application/gzip";default:return t&&!t.match(/[^\u0000-\u007f]/)?"application/text-plain":i}}}},addCss:function(e,t){e.removeClass(t).addClass(t)},getElement:function(i,n,r){return t.isEmpty(i)||t.isEmpty(i[n])?r:e(i[n])},createDiv:function(){return e(document.createElement("div"))},createElement:function(t,i){return i=i||"div",e(e.parseHTML("<"+i+">"+t+"</"+i+">"))},uniqId:function(){return((new Date).getTime()+Math.floor(Math.random()*Math.pow(10,15))).toString(36)},cspBuffer:{CSP_ATTRIB:"data-csp-01928735",domElementsStyles:{},stash:function(i){var n=this,r=e.parseHTML("<div>"+i+"</div>"),o=e(r);return o.find("[style]").each((function(i,r){var o=e(r),s=o[0].style,a=t.uniqId(),l={};s&&s.length&&(e(s).each((function(){l[this]=s[this]})),n.domElementsStyles[a]=l,o.removeAttr("style").attr(n.CSP_ATTRIB,a))})),o.filter("*").removeAttr("style"),(Object.values?Object.values(r):Object.keys(r).map((function(e){return r[e]}))).flatMap((function(e){return e.innerHTML})).join("")},apply:function(t){var i=this;e(t).find("["+i.CSP_ATTRIB+"]").each((function(t,n){var r=e(n),o=r.attr(i.CSP_ATTRIB),s=i.domElementsStyles[o];s&&r.css(s),r.removeAttr(i.CSP_ATTRIB)})),i.domElementsStyles={}}},setHtml:function(e,i){var n=t.cspBuffer;return e.html(n.stash(i)),n.apply(e),e},htmlEncode:function(e,t){return void 0===e?t||null:e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")},replaceTags:function(t,i){var n=t;return i?(e.each(i,(function(e,t){"function"==typeof t&&(t=t()),n=n.split(e).join(t)})),n):n},cleanMemory:function(e){var i=e.is("img")?e.attr("src"):e.find("source").attr("src");t.revokeObjectURL(i)},findFileName:function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),e.split(e.substring(t,t+1)).pop()},checkFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},toggleFullScreen:function(e){var i=document,n=i.documentElement,r=t.checkFullScreen();n&&e&&!r?n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r&&(i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen())},moveArray:function(t,i,n,r){var o=e.extend(!0,[],t);if(r&&o.reverse(),n>=o.length)for(var s=n-o.length;1+s--;)o.push(void 0);return o.splice(n,0,o.splice(i,1)[0]),r&&o.reverse(),o},closeButton:function(e){return'<button type="button" class="'+(e=(t.isBs(5)?"btn-close":"close")+(e?" "+e:""))+'" aria-label="Close">\n'+(t.isBs(5)?"":'  <span aria-hidden="true">&times;</span>\n')+"</button>"},getRotation:function(e){switch(e){case 2:return"rotateY(180deg)";case 3:return"rotate(180deg)";case 4:return"rotate(180deg) rotateY(180deg)";case 5:return"rotate(270deg) rotateY(180deg)";case 6:return"rotate(90deg)";case 7:return"rotate(90deg) rotateY(180deg)";case 8:return"rotate(270deg)";default:return""}},setTransform:function(e,t){e&&(e.style.transform=t,e.style.webkitTransform=t,e.style["-moz-transform"]=t,e.style["-ms-transform"]=t,e.style["-o-transform"]=t)},getObjectKeys:function(t){var i=[];return t&&e.each(t,(function(e){i.push(e)})),i},getObjectSize:function(e){return t.getObjectKeys(e).length},whenAll:function(i){var n,r,o,s,a,l,c=[].slice,u=1===arguments.length&&t.isArray(i)?i:c.call(arguments),d=e.Deferred(),h=0,p=u.length,f=p;for(o=s=a=Array(p),l=function(e,t,i){return function(){i!==u&&h++,d.notifyWith(t[e]=this,i[e]=c.call(arguments)),--f||d[(h?"reject":"resolve")+"With"](t,i)}},n=0;n<p;n++)(r=u[n])&&t.isFunction(r.promise)?r.promise().done(l(n,a,u)).fail(l(n,o,s)):(d.notifyWith(this,r),--f);return f||d.resolveWith(a,u),d.promise()}},(n=function(i,n){var r=this;r.$element=e(i),r.$parent=r.$element.parent(),r._validate()&&(r.isPreviewable=t.hasFileAPISupport(),r.isIE9=t.isIE(9),r.isIE10=t.isIE(10),(r.isPreviewable||r.isIE9)&&(r._init(n),r._listen()),r.$element.removeClass("file-loading"))}).prototype={constructor:n,_cleanup:function(){var e=this;e.reader=null,e.clearFileStack(),e.fileBatchCompleted=!0,e.isError=!1,e.isDuplicateError=!1,e.isPersistentError=!1,e.cancelling=!1,e.paused=!1,e.lastProgress=0,e._initAjax()},_isAborted:function(){var e=this;return e.cancelling||e.paused},_initAjax:function(){var i=this,n=i.taskManager={pool:{},addPool:function(e){return n.pool[e]=new n.TasksPool(e)},getPool:function(e){return n.pool[e]},addTask:function(e,t){return new n.Task(e,t)},TasksPool:function(i){var r=this;r.id=i,r.cancelled=!1,r.cancelledDeferrer=e.Deferred(),r.tasks={},r.addTask=function(e,t){return r.tasks[e]=new n.Task(e,t)},r.size=function(){return t.getObjectSize(r.tasks)},r.run=function(i){var n,o,s,a=0,l=!1,c=t.getObjectKeys(r.tasks).map((function(e){return r.tasks[e]})),u=[],d=e.Deferred();if(r.cancelled)return r.cancelledDeferrer.resolve(),d.reject();if(!i){var h=t.getObjectKeys(r.tasks).map((function(e){return r.tasks[e].deferred}));return t.whenAll(h).done((function(){var e=t.getArray(arguments);r.cancelled?(d.reject.apply(null,e),r.cancelledDeferrer.resolve()):(d.resolve.apply(null,e),r.cancelledDeferrer.reject())})).fail((function(){var e=t.getArray(arguments);d.reject.apply(null,e),r.cancelled?r.cancelledDeferrer.resolve():r.cancelledDeferrer.reject()})),e.each(r.tasks,(function(e){(n=r.tasks[e]).run()})),d}for(o=function(t){e.when(t.deferred).fail((function(){l=!0,s.apply(null,arguments)})).always(s)},s=function(){var e=t.getArray(arguments);if(d.notify(e),u.push(e),r.cancelled)return d.reject.apply(null,u),void r.cancelledDeferrer.resolve();u.length===r.size()&&(l?d.reject.apply(null,u):d.resolve.apply(null,u)),c.length&&(n=c.shift(),o(n),n.run())};c.length&&a++<i;)n=c.shift(),o(n),n.run();return d},r.cancel=function(){return r.cancelled=!0,r.cancelledDeferrer}},Task:function(i,n){var r=this;r.id=i,r.deferred=e.Deferred(),r.logic=n,r.context=null,r.run=function(){var e=t.getArray(arguments);return e.unshift(r.deferred),n.apply(r.context,e),r.deferred},r.runWithContext=function(e){return r.context=e,r.run()}}};i.ajaxQueue=[],i.ajaxRequests=[],i.ajaxPool=null,i.ajaxAborted=!1},_init:function(i,n){var r,o,s,a,l=this,c=l.$element;l.options=i,l.zoomPlaceholder=t.getZoomPlaceholder(),l.canOrientImage=t.canOrientImage(c),e.each(i,(function(e,i){switch(e){case"minFileCount":case"maxFileCount":case"maxTotalFileCount":case"minFileSize":case"maxFileSize":case"maxMultipleFileSize":case"maxFilePreviewSize":case"resizeQuality":case"resizeIfSizeMoreThan":case"progressUploadThreshold":case"initialPreviewCount":case"zoomModalHeight":case"minImageHeight":case"maxImageHeight":case"minImageWidth":case"maxImageWidth":case"bytesToKB":l[e]=t.getNum(i);break;default:l[e]=i}})),(!l.bytesToKB||l.bytesToKB<=0)&&(l.bytesToKB=1024),void 0===l.errorCloseButton&&(l.errorCloseButton=t.closeButton("kv-error-close"+(t.isBs(5)?"  float-end":""))),l.maxTotalFileCount>0&&l.maxTotalFileCount<l.maxFileCount&&(l.maxTotalFileCount=l.maxFileCount),l.rtl&&(a=l.previewZoomButtonIcons.prev,l.previewZoomButtonIcons.prev=l.previewZoomButtonIcons.next,l.previewZoomButtonIcons.next=a),!isNaN(l.maxAjaxThreads)&&l.maxAjaxThreads<l.resumableUploadOptions.maxThreads&&(l.resumableUploadOptions.maxThreads=l.maxAjaxThreads),l._initFileManager(),"function"==typeof l.autoOrientImage&&(l.autoOrientImage=l.autoOrientImage()),"function"==typeof l.autoOrientImageInitial&&(l.autoOrientImageInitial=l.autoOrientImageInitial()),n||l._cleanup(),l.duplicateErrors=[],l.$form=c.closest("form"),l._initTemplateDefaults(),l.uploadFileAttr=t.isEmpty(c.attr("name"))?"file_data":c.attr("name"),s=l._getLayoutTemplate("progress"),l.progressTemplate=s.replace("{class}",l.progressClass),l.progressInfoTemplate=s.replace("{class}",l.progressInfoClass),l.progressPauseTemplate=s.replace("{class}",l.progressPauseClass),l.progressCompleteTemplate=s.replace("{class}",l.progressCompleteClass),l.progressErrorTemplate=s.replace("{class}",l.progressErrorClass),l.isDisabled=c.attr("disabled")||c.attr("readonly"),l.isDisabled&&c.attr("disabled",!0),l.isClickable=l.browseOnZoneClick&&l.showPreview&&(l.dropZoneEnabled||!t.isEmpty(l.defaultPreviewContent)),l.isAjaxUpload=t.hasFileUploadSupport()&&!t.isEmpty(l.uploadUrl),l.dropZoneEnabled=t.hasDragDropSupport()&&l.dropZoneEnabled,l.isAjaxUpload||(l.dropZoneEnabled=l.dropZoneEnabled&&t.canAssignFilesToInput()),l.slug="function"==typeof i.slugCallback?i.slugCallback:l._slugDefault,l.mainTemplate=l.showCaption?l._getLayoutTemplate("main1"):l._getLayoutTemplate("main2"),l.captionTemplate=l._getLayoutTemplate("caption"),l.previewGenericTemplate=l._getPreviewTemplate("generic"),!l.imageCanvas&&l.resizeImage&&(l.maxImageWidth||l.maxImageHeight)&&(l.imageCanvas=document.createElement("canvas"),l.imageCanvasContext=l.imageCanvas.getContext("2d")),t.isEmpty(c.attr("id"))&&c.attr("id",t.uniqId()),l.namespace=".fileinput_"+c.attr("id").replace(/-/g,"_"),void 0===l.$container?l.$container=l._createContainer():l._refreshContainer(),o=l.$container,l.$dropZone=o.find(".file-drop-zone"),l.$progress=o.find(".kv-upload-progress"),l.$btnUpload=o.find(".fileinput-upload"),l.$captionContainer=t.getElement(i,"elCaptionContainer",o.find(".file-caption")),l.$caption=t.getElement(i,"elCaptionText",o.find(".file-caption-name")),t.isEmpty(l.msgPlaceholder)||(r=c.attr("multiple")?l.filePlural:l.fileSingle,l.$caption.attr("placeholder",l.msgPlaceholder.replace("{files}",r))),l.$captionIcon=l.$captionContainer.find(".file-caption-icon"),l.$previewContainer=t.getElement(i,"elPreviewContainer",o.find(".file-preview")),l.$preview=t.getElement(i,"elPreviewImage",o.find(".file-preview-thumbnails")),l.$previewStatus=t.getElement(i,"elPreviewStatus",o.find(".file-preview-status")),l.$errorContainer=t.getElement(i,"elErrorContainer",l.$previewContainer.find(".kv-fileinput-error")),l._validateDisabled(),t.isEmpty(l.msgErrorClass)||t.addCss(l.$errorContainer,l.msgErrorClass),n?l._errorsExist()||l.$errorContainer.hide():(l._resetErrors(),l.$errorContainer.hide(),l.previewInitId="thumb-"+c.attr("id"),l._initPreviewCache(),l._initPreview(!0),l._initPreviewActions(),l.$parent.hasClass("file-loading")&&(l.$container.insertBefore(l.$parent),l.$parent.remove())),l._setFileDropZoneTitle(),c.attr("disabled")&&l.disable(),l._initZoom(),l.hideThumbnailContent&&t.addCss(l.$preview,"hide-content")},_initFileManager:function(){var i=this;i.uploadStartTime=t.now(),i.fileManager={stack:{},filesProcessed:[],errors:[],loadedImages:{},totalImages:0,totalFiles:null,totalSize:null,uploadedSize:0,stats:{},bpsLog:[],bps:0,initStats:function(e){var n={started:t.now()};e?i.fileManager.stats[e]=n:i.fileManager.stats=n},getUploadStats:function(e,n,r){var o,s=i.fileManager,a=e?s.stats[e]&&s.stats[e].started||t.now():i.uploadStartTime,l=(t.now()-a)/1e3,c=Math.ceil(l?n/l:0),u=r-n,d=s.bpsLog.length?i.bitrateUpdateDelay:0;return setTimeout((function(){var e,t,i,n=0,r=0;for(s.bpsLog.push(c),s.bpsLog.sort((function(e,t){return e-t})),i=(t=s.bpsLog.length)>10?t-10:Math.ceil(t/2),e=t;e>i;e--)r=parseFloat(s.bpsLog[e]),n++;s.bps=64*(n>0?r/n:0)}),d),o={fileId:e,started:a,elapsed:l,loaded:n,total:r,bps:s.bps,bitrate:i._getSize(s.bps,!1,i.bitRateUnits),pendingBytes:u},e?s.stats[e]=o:s.stats=o,o},exists:function(t){return-1!==e.inArray(t,i.fileManager.getIdList())},count:function(){return i.fileManager.getIdList().length},total:function(){var e=i.fileManager;return e.totalFiles||(e.totalFiles=e.count()),e.totalFiles},getTotalSize:function(){var t=i.fileManager;return t.totalSize||(t.totalSize=0,e.each(i.getFileStack(),(function(e,i){var n=parseFloat(i.size);t.totalSize+=isNaN(n)?0:n}))),t.totalSize},add:function(e,n){n||(n=i.fileManager.getId(e)),n&&(i.fileManager.stack[n]={file:e,name:t.getFileName(e),relativePath:t.getFileRelativePath(e),size:e.size,nameFmt:i._getFileName(e,""),sizeFmt:i._getSize(e.size)})},remove:function(e){var t=i._getThumbFileId(e);i.fileManager.removeFile(t)},removeFile:function(e){var t=i.fileManager;e&&(delete t.stack[e],delete t.loadedImages[e])},move:function(t,n){var r={},o=i.fileManager.stack;(t||n)&&t!==n&&(e.each(o,(function(e,i){e!==t&&(r[e]=i),e===n&&(r[t]=o[t])})),i.fileManager.stack=r)},list:function(){var t=[];return e.each(i.getFileStack(),(function(e,i){i&&i.file&&t.push(i.file)})),t},isPending:function(t){return-1===e.inArray(t,i.fileManager.filesProcessed)&&i.fileManager.exists(t)},isProcessed:function(){var t=!0,n=i.fileManager;return e.each(i.getFileStack(),(function(e){n.isPending(e)&&(t=!1)})),t},clear:function(){var e=i.fileManager;i.isDuplicateError=!1,i.isPersistentError=!1,e.totalFiles=null,e.totalSize=null,e.uploadedSize=0,e.stack={},e.errors=[],e.filesProcessed=[],e.stats={},e.bpsLog=[],e.bps=0,e.clearImages()},clearImages:function(){i.fileManager.loadedImages={},i.fileManager.totalImages=0},addImage:function(e,t){i.fileManager.loadedImages[e]=t},removeImage:function(e){delete i.fileManager.loadedImages[e]},getImageIdList:function(){return t.getObjectKeys(i.fileManager.loadedImages)},getImageCount:function(){return i.fileManager.getImageIdList().length},getId:function(e){return i._getFileId(e)},getIndex:function(e){return i.fileManager.getIdList().indexOf(e)},getThumb:function(t){var n=null;return i._getThumbs().each((function(){var r=e(this);i._getThumbFileId(r)===t&&(n=r)})),n},getThumbIndex:function(e){var t=i._getThumbFileId(e);return i.fileManager.getIndex(t)},getIdList:function(){return t.getObjectKeys(i.fileManager.stack)},getFile:function(e){return i.fileManager.stack[e]||null},getFileName:function(e,t){var n=i.fileManager.getFile(e);return n?t?n.nameFmt||"":n.name||"":""},getFirstFile:function(){var e=i.fileManager.getIdList(),t=e&&e.length?e[0]:null;return i.fileManager.getFile(t)},setFile:function(e,t){i.fileManager.getFile(e)?i.fileManager.stack[e].file=t:i.fileManager.add(t,e)},setProcessed:function(e){i.fileManager.filesProcessed.push(e)},getProgress:function(){var e=i.fileManager.total(),t=i.fileManager.filesProcessed.length;return e?Math.ceil(t/e*100):0},setProgress:function(e,t){var n=i.fileManager.getFile(e);!isNaN(t)&&n&&(n.progress=t)}}},_setUploadData:function(i,n){var r=this;e.each(n,(function(e,n){var o=r.uploadParamNames[e]||e;t.isArray(n)?i.append(o,n[0],n[1]):i.append(o,n)}))},_initResumableUpload:function(){var i,n=this,r=n.resumableUploadOptions,o=t.logMessages,s=n.fileManager;if(n.enableResumableUpload)if(!1!==r.fallback&&"function"!=typeof r.fallback&&(r.fallback=function(e){e._log(o.noResumableSupport),e.enableResumableUpload=!1}),t.hasResumableUploadSupport()||!1===r.fallback){if(!n.uploadUrl&&n.enableResumableUpload)return n._log(o.noUploadUrl),void(n.enableResumableUpload=!1);if(r.chunkSize=parseFloat(r.chunkSize),r.chunkSize<=0||isNaN(r.chunkSize))return n._log(o.invalidChunkSize,{chunkSize:r.chunkSize}),void(n.enableResumableUpload=!1);(i=n.resumableManager={init:function(e,t,o){i.logs=[],i.stack=[],i.error="",i.id=e,i.file=t.file,i.fileName=t.name,i.fileIndex=o,i.completed=!1,i.lastProgress=0,n.showPreview&&(i.$thumb=s.getThumb(e)||null,i.$progress=i.$btnDelete=null,i.$thumb&&i.$thumb.length&&(i.$progress=i.$thumb.find(".file-thumb-progress"),i.$btnDelete=i.$thumb.find(".kv-file-remove"))),i.chunkSize=r.chunkSize*n.bytesToKB,i.chunkCount=i.getTotalChunks()},setAjaxError:function(e,t,s,a){e.responseJSON&&e.responseJSON.error&&(s=e.responseJSON.error.toString()),a||(i.error=s),r.showErrorLog&&n._log(o.ajaxError,{status:e.status,error:s,text:e.responseText||""})},reset:function(){i.stack=[],i.chunksProcessed={}},setProcessed:function(t){var o,a,l=i.id,c=i.$thumb,u=i.$progress,d=c&&c.length,h={id:d?c.attr("id"):"",index:s.getIndex(l),fileId:l},p=n.resumableUploadOptions.skipErrorsAndProceed;i.completed=!0,i.lastProgress=0,d&&c.removeClass("file-uploading"),"success"===t?(s.uploadedSize+=i.file.size,n.showPreview&&(n._setProgress(101,u),n._setThumbStatus(c,"Success"),n._initUploadSuccess(i.chunksProcessed[l].data,c)),s.removeFile(l),delete i.chunksProcessed[l],n._raise("fileuploaded",[h.id,h.index,h.fileId]),s.isProcessed()&&n._setProgress(101)):"cancel"!==t&&(n.showPreview&&(n._setThumbStatus(c,"Error"),n._setPreviewError(c,!0),n._setProgress(101,u,n.msgProgressError),n._setProgress(101,n.$progress,n.msgProgressError),n.cancelling=!p),n.$errorContainer.find('li[data-file-id="'+h.fileId+'"]').length||(a={file:i.fileName,max:r.maxRetries,error:i.error},o=n.msgResumableUploadRetriesExceeded.setTokens(a),e.extend(h,a),n._showFileError(o,h,"filemaxretries"),p&&(s.removeFile(l),delete i.chunksProcessed[l],s.isProcessed()&&n._setProgress(101)))),s.isProcessed()&&i.reset()},check:function(){e.each(i.logs,(function(e,t){if(!t)return!1}))},processedResumables:function(){var e,t=i.logs,n=0;if(!t||!t.length)return 0;for(e=0;e<t.length;e++)!0===t[e]&&n++;return n},getUploadedSize:function(){var e=i.processedResumables()*i.chunkSize;return e>i.file.size?i.file.size:e},getTotalChunks:function(){var e=parseFloat(i.chunkSize);return!isNaN(e)&&e>0?Math.ceil(i.file.size/e):0},getProgress:function(){var e=i.processedResumables(),t=i.chunkCount;return 0===t?0:Math.ceil(e/t*100)},checkAborted:function(e){n._isAborted()&&(clearInterval(e),n.unlock())},upload:function(){var e,r=s.getIdList(),o="new";e=setInterval((function(){var a;if(i.checkAborted(e),"new"===o&&(n.lock(),o="processing",a=r.shift(),s.initStats(a),s.stack[a]&&(i.init(a,s.stack[a],s.getIndex(a)),i.processUpload())),!s.isPending(a)&&i.completed&&(o="new"),s.isProcessed()){var l=n.$preview.find(".file-preview-initial");l.length&&(t.addCss(l,t.SORT_CSS),n._initSortable()),clearInterval(e),n._clearFileInput(),n.unlock(),setTimeout((function(){var e=n.previewCache.data;e&&(n.initialPreview=e.content,n.initialPreviewConfig=e.config,n.initialPreviewThumbTags=e.tags),n._raise("filebatchuploadcomplete",[n.initialPreview,n.initialPreviewConfig,n.initialPreviewThumbTags,n._getExtraData()])}),n.processDelay)}}),n.processDelay)},uploadResumable:function(){var e,t,o=n.taskManager,s=i.chunkCount;for(t=o.addPool(i.id),e=0;e<s;e++)i.logs[e]=!(!i.chunksProcessed[i.id]||!i.chunksProcessed[i.id][e]),i.logs[e]||i.pushAjax(e,0);t.run(r.maxThreads).done((function(){i.setProcessed("success")})).fail((function(){i.setProcessed(t.cancelled?"cancel":"error")}))},processUpload:function(){var o,a,l,c,u,d,h,p=i.id;r.testUrl?(o=new FormData,a=s.stack[p],n._setUploadData(o,{fileId:p,fileName:a.fileName,fileSize:a.size,fileRelativePath:a.relativePath,chunkSize:i.chunkSize,chunkCount:i.chunkCount}),l=function(e){h=n._getOutData(o,e),n._raise("filetestbeforesend",[p,s,i,h])},c=function(r,a,l){h=n._getOutData(o,l,r);var c=n.uploadParamNames.chunksUploaded||"chunksUploaded",u=[p,s,i,h];r[c]&&t.isArray(r[c])?(i.chunksProcessed[p]||(i.chunksProcessed[p]={}),e.each(r[c],(function(e,t){i.logs[t]=!0,i.chunksProcessed[p][t]=!0})),i.chunksProcessed[p].data=r,n._raise("filetestsuccess",u)):n._raise("filetesterror",u),i.uploadResumable()},u=function(e,t,r){h=n._getOutData(o,e),n._raise("filetestajaxerror",[p,s,i,h]),i.setAjaxError(e,t,r,!0),i.uploadResumable()},d=function(){n._raise("filetestcomplete",[p,s,i,n._getOutData(o)])},n._ajaxSubmit(l,c,d,u,o,p,i.fileIndex,r.testUrl)):i.uploadResumable()},pushAjax:function(e,t){var r=n.taskManager.getPool(i.id);r.addTask(r.size()+1,(function(e){var t,r=i.stack.shift();t=r[0],i.chunksProcessed[i.id]&&i.chunksProcessed[i.id][t]?n._log(o.chunkQueueError,{index:t}):i.sendAjax(t,r[1],e)})),i.stack.push([e,t])},sendAjax:function(e,a,l){var c,u=i.chunkSize,d=i.id,h=i.file,p=i.$thumb,f=t.logMessages,m=i.$btnDelete,g=function(e,t){t&&(e=e.setTokens(t)),e=f.resumableRequestError.setTokens({msg:e}),n._log(e),l.reject(e)};if(!i.chunksProcessed[d]||!i.chunksProcessed[d][e]){if(a>r.maxRetries)return g(f.resumableMaxRetriesReached,{n:r.maxRetries}),void i.setProcessed("error");var v,_,b,y,w,x,C=h[h.slice?"slice":h.mozSlice?"mozSlice":h.webkitSlice?"webkitSlice":"slice"](u*e,u*(e+1));v=new FormData,c=s.stack[d],n._setUploadData(v,{chunkCount:i.chunkCount,chunkIndex:e,chunkSize:u,chunkSizeStart:u*e,fileBlob:[C,i.fileName],fileId:d,fileName:i.fileName,fileRelativePath:c.relativePath,fileSize:h.size,retryCount:a}),i.$progress&&i.$progress.length&&i.$progress.show(),b=function(r){_=n._getOutData(v,r),n.showPreview&&(p.hasClass("file-preview-success")||(n._setThumbStatus(p,"Loading"),t.addCss(p,"file-uploading")),m.attr("disabled",!0)),n._raise("filechunkbeforesend",[d,e,a,s,i,_])},y=function(t,c,u){if(n._isAborted())g(f.resumableAborting);else{_=n._getOutData(v,u,t);var h=n.uploadParamNames.chunkIndex||"chunkIndex",p=[d,e,a,s,i,_];t.error?(r.showErrorLog&&n._log(o.retryStatus,{retry:a+1,filename:i.fileName,chunk:e}),n._raise("filechunkerror",p),i.pushAjax(e,a+1),i.error=t.error,g(t.error)):(i.logs[t[h]]=!0,i.chunksProcessed[d]||(i.chunksProcessed[d]={}),i.chunksProcessed[d][t[h]]=!0,i.chunksProcessed[d].data=t,l.resolve.call(null,t),n._raise("filechunksuccess",p),i.check())}},w=function(t,r,o){n._isAborted()?g(f.resumableAborting):(_=n._getOutData(v,t),i.setAjaxError(t,r,o),n._raise("filechunkajaxerror",[d,e,a,s,i,_]),i.pushAjax(e,a+1),g(f.resumableRetryError,{n:a-1}))},x=function(){n._isAborted()||n._raise("filechunkcomplete",[d,e,a,s,i,n._getOutData(v)])},n._ajaxSubmit(b,y,x,w,v,d,i.fileIndex)}}}).reset()}else r.fallback(n)},_initTemplateDefaults:function(){var i,n,r,o,s,a,l,c,u,d,h,p,f,m,g,v,_,b,y,w,x,C,T,k,E,S,A,P,I,D,F,M,L,j,O,$,z,N,R,B,U,H,q,W,V=this,Z=function(e,i){return'<object class="kv-preview-data file-preview-'+e+'" title="{caption}" data="{data}" type="'+i+'"'+N+">\n"+t.DEFAULT_PREVIEW+"\n</object>\n"},K="btn btn-sm btn-kv "+t.defaultButtonCss();i='{preview}\n<div class="kv-upload-progress kv-hidden"></div><div class="clearfix"></div>\n<div class="file-caption {class}">\n  <div class="input-group {inputGroupClass}">\n      {caption}\n<span class="file-caption-icon"></span>\n'+(t.isBs(5)?"":'<div class="input-group-btn input-group-append">\n')+"      {remove}\n      {cancel}\n      {pause}\n      {upload}\n      {browse}\n"+(t.isBs(5)?"":"    </div>\n")+"  </div>",n='{preview}\n<div class="kv-upload-progress kv-hidden"></div>\n<div class="clearfix"></div>\n<span class="{class}">{remove}\n{cancel}\n{upload}\n{browse}\n</span>',r='<div class="file-preview {class}">\n  {close}  <div class="{dropClass} clearfix">\n    <div class="file-preview-thumbnails clearfix">\n    </div>\n    <div class="file-preview-status text-center text-success"></div>\n    <div class="kv-fileinput-error"></div>\n  </div>\n</div>',s=t.closeButton("fileinput-remove"),o='<i class="bi-file-earmark-arrow-up"></i>',a='<input readonly class="file-caption-name form-control {class}">\n',l='<button type="{type}" title="{title}" class="{css}" {status} {tabIndexConfig}>{icon} {label}</button>',c='<a href="{href}" title="{title}" class="{css}" {status} {tabIndexConfig}>{icon} {label}</a>',u='<div class="{css}" {status} {tabIndexConfig}>{icon} {label}</div>',q=t.MODAL_ID+"Label",d='<div id="'+t.MODAL_ID+'" class="file-zoom-dialog modal fade" aria-labelledby="'+q+'" {tabIndexConfig}></div>',h='<div class="modal-dialog modal-lg{rtl}" role="document">\n  <div class="modal-content">\n    <div class="modal-header kv-zoom-header">\n      <h6 class="modal-title kv-zoom-title" id="'+q+'"><span class="kv-zoom-caption"></span> <span class="kv-zoom-size"></span></h6>\n      <div class="kv-zoom-actions">{rotate}{toggleheader}{fullscreen}{borderless}{close}</div>\n    </div>\n    <div class="floating-buttons"></div>\n    <div class="kv-zoom-body file-zoom-content {zoomFrameClass}"></div>\n{prev} {next}\n    <div class="kv-zoom-description"></div>\n  </div>\n</div>\n',W='<button type="button" class="kv-desc-hide" aria-label="Close">{closeIcon}</button>',p='<div class="progress">\n    <div class="{class}" role="progressbar" aria-valuenow="{percent}" aria-valuemin="0" aria-valuemax="100" style="width:{percent}%;">\n        {status}\n     </div>\n</div>{stats}',H='<div class="text-primary file-upload-stats"><span class="pending-time">{pendingTime}</span> <span class="upload-speed">{uploadSpeed}</span></div>',f=" <samp>({sizeText})</samp>",m='<div class="file-thumbnail-footer">\n    <div class="file-footer-caption" title="{caption}">\n        <div class="file-caption-info">{caption}</div>\n        <div class="file-size-info">{size}</div>\n    </div>\n    {progress}\n{indicator}\n{actions}\n</div>',g='<div class="file-actions">\n    <div class="file-footer-buttons">\n        {rotate} {download} {upload} {delete} {zoom} {other}    </div>\n</div>\n{drag}\n<div class="clearfix"></div>',v='<button type="button" class="kv-file-remove {removeClass}" title="{removeTitle}" {dataUrl}{dataKey}>{removeIcon}</button>\n',_='<button type="button" class="kv-file-upload {uploadClass}" title="{uploadTitle}">{uploadIcon}</button>',U='<button type="button" class="kv-file-rotate {rotateClass}" title="{rotateTitle}">{rotateIcon}</button>',b='<a class="kv-file-download {downloadClass}" title="{downloadTitle}" href="{downloadUrl}" download="{caption}" target="_blank">{downloadIcon}</a>',y='<button type="button" class="kv-file-zoom {zoomClass}" title="{zoomTitle}">{zoomIcon}</button>',w='<span class="file-drag-handle {dragClass}" title="{dragTitle}">{dragIcon}</span>',x='<div class="file-upload-indicator" title="{indicatorTitle}">{indicator}</div>',T=(C='<div class="file-preview-frame {frameClass}" id="{previewId}" data-fileindex="{fileindex}" data-fileid="{fileid}" data-filename="{filename}" data-template="{template}" data-zoom="{zoomData}"')+'><div class="kv-file-content">\n',k=C+' title="{caption}"><div class="kv-file-content">\n',E="</div>{footer}\n{zoomCache}</div>\n",S="{content}\n",N=" {style}",A=Z("html","text/html"),I=Z("text","text/plain;charset=UTF-8"),$=Z("pdf","application/pdf"),P='<img src="{data}" class="file-preview-image kv-preview-data" title="{title}" alt="{alt}"'+N+">\n",D='<iframe class="kv-preview-data file-preview-office" src="https://view.officeapps.live.com/op/embed.aspx?src={data}"'+N+"></iframe>",F='<iframe class="kv-preview-data file-preview-gdocs" src="https://docs.google.com/gview?url={data}&embedded=true"'+N+"></iframe>",M='<video class="kv-preview-data file-preview-video" controls'+N+'>\n<source src="{data}" type="{type}">\n'+t.DEFAULT_PREVIEW+"\n</video>\n",L='\x3c!--suppress ALL --\x3e<audio class="kv-preview-data file-preview-audio" controls'+N+'>\n<source src="{data}" type="{type}">\n'+t.DEFAULT_PREVIEW+"\n</audio>\n",j='<embed class="kv-preview-data file-preview-flash" src="{data}" type="application/x-shockwave-flash"'+N+">\n",O='<object class="kv-preview-data file-preview-object file-object {typeCss}" data="{data}" type="{type}"'+N+'>\n<param name="movie" value="{caption}" />\n'+t.OBJECT_PARAMS+" "+t.DEFAULT_PREVIEW+"\n</object>\n",z='<div class="kv-preview-data file-preview-other-frame"'+N+">\n"+t.DEFAULT_PREVIEW+"\n</div>\n",R='<div class="kv-zoom-cache">{zoomContent}</div>',B={width:"100%",height:"100%","min-height":"480px"},V._isPdfRendered()&&($=V.pdfRendererTemplate.replace("{renderer}",V._encodeURI(V.pdfRendererUrl))),V.defaults={layoutTemplates:{main1:i,main2:n,preview:r,close:s,fileIcon:o,caption:a,modalMain:d,modal:h,descriptionClose:W,progress:p,stats:H,size:f,footer:m,indicator:x,actions:g,actionDelete:v,actionRotate:U,actionUpload:_,actionDownload:b,actionZoom:y,actionDrag:w,btnDefault:l,btnLink:c,btnBrowse:u,zoomCache:R},previewMarkupTags:{tagBefore1:T,tagBefore2:k,tagAfter:E},previewContentTemplates:{generic:S,html:A,image:P,text:I,office:D,gdocs:F,video:M,audio:L,flash:j,object:O,pdf:$,other:z},allowedPreviewTypes:["image","html","text","video","audio","flash","pdf","object"],previewTemplates:{},previewSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"213px",height:"160px"},text:{width:"213px",height:"160px"},office:{width:"213px",height:"160px"},gdocs:{width:"213px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"100%",height:"30px"},flash:{width:"213px",height:"160px"},object:{width:"213px",height:"160px"},pdf:{width:"100%",height:"160px",position:"relative"},other:{width:"213px",height:"160px"}},previewSettingsSmall:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"100%",height:"160px"},text:{width:"100%",height:"160px"},office:{width:"100%",height:"160px"},gdocs:{width:"100%",height:"160px"},video:{width:"100%",height:"auto"},audio:{width:"100%",height:"30px"},flash:{width:"100%",height:"auto"},object:{width:"100%",height:"auto"},pdf:{width:"100%",height:"160px"},other:{width:"100%",height:"160px"}},previewZoomSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:B,text:B,office:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},gdocs:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},video:{width:"auto",height:"100%","max-width":"100%"},audio:{width:"100%",height:"30px"},flash:{width:"auto",height:"480px"},object:{width:"auto",height:"100%","max-width":"100%","min-height":"480px"},pdf:B,other:{width:"auto",height:"100%","min-height":"480px"}},mimeTypeAliases:{"video/quicktime":"video/mp4"},fileTypeSettings:{image:function(e,i){return t.compare(e,"image.*")&&!t.compare(e,/(tiff?|wmf)$/i)||t.compare(i,/\.(gif|png|jpe?g)$/i)},html:function(e,i){return t.compare(e,"text/html")||t.compare(i,/\.(htm|html)$/i)},office:function(e,i){return t.compare(e,/(word|excel|powerpoint|office)$/i)||t.compare(i,/\.(docx?|xlsx?|pptx?|pps|potx?)$/i)},gdocs:function(e,i){return t.compare(e,/(word|excel|powerpoint|office|iwork-pages|tiff?)$/i)||t.compare(i,/\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i)},text:function(e,i){return t.compare(e,"text.*")||t.compare(i,/\.(xml|javascript)$/i)||t.compare(i,/\.(txt|md|nfo|ini|json|php|js|css)$/i)},video:function(e,i){return t.compare(e,"video.*")&&(t.compare(e,/(ogg|mp4|mp?g|mov|webm|3gp)$/i)||t.compare(i,/\.(og?|mp4|webm|mp?g|mov|3gp)$/i))},audio:function(e,i){return t.compare(e,"audio.*")&&(t.compare(i,/(ogg|mp3|mp?g|wav)$/i)||t.compare(i,/\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,i){return t.compare(e,"application/x-shockwave-flash",!0)||t.compare(i,/\.(swf)$/i)},pdf:function(e,i){return t.compare(e,"application/pdf",!0)||t.compare(i,/\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},fileActionSettings:{showRemove:!0,showUpload:!0,showDownload:!0,showZoom:!0,showDrag:!0,showRotate:!0,removeIcon:'<i class="bi-trash"></i>',removeClass:K,removeErrorClass:"btn btn-sm btn-kv btn-danger",removeTitle:"Remove file",uploadIcon:'<i class="bi-upload"></i>',uploadClass:K,uploadTitle:"Upload file",uploadRetryIcon:'<i class="bi-cloud-arrow-up-fill"></i>',uploadRetryTitle:"Retry upload",downloadIcon:'<i class="bi-download"></i>',downloadClass:K,downloadTitle:"Download file",rotateIcon:'<i class="bi-arrow-clockwise"></i>',rotateClass:K,rotateTitle:"Rotate 90 deg. clockwise",zoomIcon:'<i class="bi-zoom-in"></i>',zoomClass:K,zoomTitle:"View Details",dragIcon:'<i class="bi-arrows-move"></i>',dragClass:"text-primary",dragTitle:"Move / Rearrange",dragSettings:{},indicatorNew:'<i class="bi-plus-lg text-warning"></i>',indicatorSuccess:'<i class="bi-check-lg text-success"></i>',indicatorError:'<i class="bi-exclamation-lg text-danger"></i>',indicatorLoading:'<i class="bi-hourglass-bottom text-muted"></i>',indicatorPaused:'<i class="bi-pause-fill text-primary"></i>',indicatorNewTitle:"Not uploaded yet",indicatorSuccessTitle:"Uploaded",indicatorErrorTitle:"Upload Error",indicatorLoadingTitle:"Uploading &hellip;",indicatorPausedTitle:"Upload Paused"}},e.each(V.defaults,(function(t,i){"allowedPreviewTypes"!==t?V[t]=e.extend(!0,{},i,V[t]):void 0===V.allowedPreviewTypes&&(V.allowedPreviewTypes=i)})),V._initPreviewTemplates()},_initPreviewTemplates:function(){var i,n=this,r=n.previewMarkupTags,o=r.tagAfter;e.each(n.previewContentTemplates,(function(e,s){t.isEmpty(n.previewTemplates[e])&&(i=r.tagBefore2,"generic"!==e&&"image"!==e||(i=r.tagBefore1),n._isPdfRendered()&&"pdf"===e&&(i=i.replace("kv-file-content","kv-file-content kv-pdf-rendered")),n.previewTemplates[e]=i+s+o)}))},_initPreviewCache:function(){var i=this;i.previewCache={data:{},init:function(){var e=i.initialPreview;e.length>0&&!t.isArray(e)&&(e=e.split(i.initialPreviewDelimiter)),i.previewCache.data={content:e,config:i.initialPreviewConfig,tags:i.initialPreviewThumbTags}},count:function(e){return i.previewCache.data&&i.previewCache.data.content?e?i.previewCache.data.content.filter((function(e){return null!==e})).length:i.previewCache.data.content.length:0},get:function(e,n){var r,o,s,a,l,c,u,d=t.INIT_FLAG+e,h=i.previewCache.data,p=h.config[e],f=h.content[e],m=t.ifSet("previewAsData",p,i.initialPreviewAsData),g=p?{title:p.title||null,alt:p.alt||null}:{title:null,alt:null},v=function(e,n,r,o,s,a,l,c){var u=" file-preview-initial "+t.SORT_CSS+(l?" "+l:""),d=i.previewInitId+"-"+a,h=p&&p.fileId||d;return i._generatePreviewTemplate(e,n,r,o,d,h,!1,null,null,u,s,a,c,g,p&&p.zoomData||n)};return f&&f.length?(n=void 0===n||n,s=t.ifSet("type",p,i.initialPreviewFileType||"generic"),l=t.ifSet("filename",p,t.ifSet("caption",p)),c=t.ifSet("filetype",p,s),a=i.previewCache.footer(e,n,p&&p.size||null),u=t.ifSet("frameClass",p),r=m?v(s,f,l,c,a,d,u):v("generic",f,l,c,a,d,u,s).setTokens({content:h.content[e]}),h.tags.length&&h.tags[e]&&(r=t.replaceTags(r,h.tags[e])),t.isEmpty(p)||t.isEmpty(p.frameAttr)||(o=t.createDiv(),t.setHtml(o,r),o.find(".file-preview-initial").attr(p.frameAttr),r=o.html(),o.remove()),r):""},clean:function(e){e.content=t.cleanArray(e.content),e.config=t.cleanArray(e.config),e.tags=t.cleanArray(e.tags),i.previewCache.data=e},add:function(e,n,r,o){var s,a=i.previewCache.data;return e&&e.length?(s=e.length-1,t.isArray(e)||(e=e.split(i.initialPreviewDelimiter)),o&&a.content?(s=a.content.push(e[0])-1,a.config[s]=n,a.tags[s]=r):(a.content=e,a.config=n,a.tags=r),i.previewCache.clean(a),s):0},set:function(e,n,r,o){var s,a=i.previewCache.data;if(e&&e.length&&(t.isArray(e)||(e=e.split(i.initialPreviewDelimiter)),e.filter((function(e){return null!==e})).length)){if(void 0===a.content&&(a.content=[]),void 0===a.config&&(a.config=[]),void 0===a.tags&&(a.tags=[]),o){for(s=0;s<e.length;s++)e[s]&&a.content.push(e[s]);for(s=0;s<n.length;s++)n[s]&&a.config.push(n[s]);for(s=0;s<r.length;s++)r[s]&&a.tags.push(r[s])}else a.content=e,a.config=n,a.tags=r;i.previewCache.clean(a)}},unset:function(n){var r=i.previewCache.count(),o=i.reversePreviewOrder;if(r){if(1===r)return i.previewCache.data.content=[],i.previewCache.data.config=[],i.previewCache.data.tags=[],i.initialPreview=[],i.initialPreviewConfig=[],void(i.initialPreviewThumbTags=[]);i.previewCache.data.content=t.spliceArray(i.previewCache.data.content,n,o),i.previewCache.data.config=t.spliceArray(i.previewCache.data.config,n,o),i.previewCache.data.tags=t.spliceArray(i.previewCache.data.tags,n,o);var s=e.extend(!0,{},i.previewCache.data);i.previewCache.clean(s)}},out:function(){var e,t,n="",r=i.previewCache.count();if(0===r)return{content:"",caption:""};for(e=0;e<r;e++)t=i.previewCache.get(e),n=i.reversePreviewOrder?t+n:n+t;return{content:n,caption:i._getMsgSelected(r)}},footer:function(e,n,r){var o=i.previewCache.data||{};if(t.isEmpty(o.content))return"";(t.isEmpty(o.config)||t.isEmpty(o.config[e]))&&(o.config[e]={}),n=void 0===n||n;var s,a=o.config[e],l=t.ifSet("caption",a),c=t.ifSet("width",a,"auto"),u=t.ifSet("url",a,!1),d=t.ifSet("key",a,null),h=t.ifSet("fileId",a,null),p=i.fileActionSettings,f=i.initialPreviewShowDelete||!1,m=i.initialPreviewDownloadUrl?i.initialPreviewDownloadUrl+"?key="+d+(h?"&fileId="+h:""):"",g=a.downloadUrl||m,v=a.filename||a.caption||"",_=!!g,b=t.ifSet("showRemove",a,f),y=t.ifSet("showRotate",a,t.ifSet("showRotate",p,!0)),w=t.ifSet("showDownload",a,t.ifSet("showDownload",p,_)),x=t.ifSet("showZoom",a,t.ifSet("showZoom",p,!0)),C=t.ifSet("showDrag",a,t.ifSet("showDrag",p,!0)),T=!1===u&&n;return w=w&&!1!==a.downloadUrl&&!!g,s=i._renderFileActions(a,!1,w,b,y,x,C,T,u,d,!0,g,v),i._getLayoutTemplate("footer").setTokens({progress:i._renderThumbProgress(),actions:s,caption:l,size:i._getSize(r),width:c,indicator:""})}},i.previewCache.init()},_isPdfRendered:function(){var e=this,t=e.usePdfRenderer;return("function"==typeof t?t():!!t)&&e.pdfRendererUrl},_handler:function(e,t,i){var n=this.namespace,r=t.split(" ").join(n+" ")+n;e&&e.length&&e.off(r).on(r,i)},_encodeURI:function(e){return this.encodeUrl?encodeURI(e):e},_log:function(e,t){var i=this,n=i.$element.attr("id");i.showConsoleLogs&&(n&&(e='"'+n+'": '+e),e="bootstrap-fileinput: "+e,"object"==typeof t&&(e=e.setTokens(t)),window.console&&void 0!==window.console.log?window.console.log(e):window.alert(e))},_validate:function(){var e=this,i="file"===e.$element.attr("type");return i||e._log(t.logMessages.badInputType),i},_errorsExist:function(){var e,i=this;return!!i.$errorContainer.find("li").length||(e=t.createDiv(),t.setHtml(e,i.$errorContainer.html()),e.find(".kv-error-close").remove(),e.find("ul").remove(),!!t.trim(e.text()).length)},_errorHandler:function(e,t){var i=this,n=e.target.error,r=function(e){i._showError(e.replace("{name}",t))};n.code===n.NOT_FOUND_ERR?r(i.msgFileNotFound):n.code===n.SECURITY_ERR?r(i.msgFileSecured):n.code===n.NOT_READABLE_ERR?r(i.msgFileNotReadable):n.code===n.ABORT_ERR?r(i.msgFilePreviewAborted):r(i.msgFilePreviewError)},_addError:function(e){var i=this,n=i.$errorContainer;e&&n.length&&(t.setHtml(n,i.errorCloseButton+e),i._handler(n.find(".kv-error-close"),"click",(function(){setTimeout((function(){i.showPreview&&!i.getFrames().length&&i.clear(),n.fadeOut("slow")}),i.processDelay)})))},_setValidationError:function(e){var i=this;e=(e?e+" ":"")+"has-error",i.$container.removeClass(e).addClass("has-error"),t.addCss(i.$caption,"is-invalid")},_resetErrors:function(e){var t=this,i=t.$errorContainer,n=t.resumableUploadOptions.retainErrorHistory;t.isPersistentError||t.enableResumableUpload&&n&&!t.clearInput||(t.clearInput=!1,t.isError=!1,t.$container.removeClass("has-error"),t.$caption.removeClass("is-invalid is-valid file-processing"),i.html(""),e?i.fadeOut("slow"):i.hide())},_showFolderError:function(e){var t,i=this,n=i.$errorContainer;e&&(i.isAjaxUpload||i._clearFileInput(),t=i.msgFoldersNotAllowed.replace("{n}",e),i._addError(t),i._setValidationError(),n.fadeIn(i.fadeDelay),i._raise("filefoldererror",[e,t]))},showUserError:function(e,t,i){var n,r=this;r.uploadInitiated&&(t&&t.fileId?(i||r.$errorContainer.find('[data-file-id="'+t.fileId+'"]').remove(),(n=r.fileManager.getFileName(t.fileId))&&(e="<b>"+n+":</b> "+e)):i||r.$errorContainer.html(""),r._showFileError(e,t,"fileusererror"))},_showFileError:function(e,i,n){var r=this,o=r.$errorContainer,s=n||"fileuploaderror",a=i&&i.fileId||"",l=i&&i.id?'<li data-thumb-id="'+i.id+'" data-file-id="'+a+'">'+e+"</li>":"<li>"+e+"</li>";return 0===o.find("ul").length?r._addError("<ul>"+l+"</ul>"):(o.find("ul").append(t.cspBuffer.stash(l)),t.cspBuffer.apply(o)),o.fadeIn(r.fadeDelay),r._raise(s,[i,e]),r._setValidationError("file-input-new"),!0},_showError:function(e,t,i){var n=this,r=n.$errorContainer,o=i||"fileerror";return(t=t||{}).reader=n.reader,n._addError(e),r.fadeIn(n.fadeDelay),n._raise(o,[t,e]),n.isAjaxUpload||n._clearFileInput(),n._setValidationError("file-input-new"),n.$btnUpload.attr("disabled",!0),!0},_noFilesError:function(e){var t=this,i=t.minFileCount>1?t.filePlural:t.fileSingle,n=t.msgFilesTooLess.replace("{n}",t.minFileCount).replace("{files}",i),r=t.$errorContainer;n="<li>"+n+"</li>",0===r.find("ul").length?t._addError("<ul>"+n+"</ul>"):r.find("ul").append(n),t.isError=!0,t._updateFileDetails(0),r.fadeIn(t.fadeDelay),t._raise("fileerror",[e,n]),t._clearFileInput(),t._setValidationError()},_parseError:function(e,i,n,r){var o,s,a,l=this,c=t.trim(n+"");return a=(s=i.responseJSON&&i.responseJSON.error?i.responseJSON.error.toString():"")||i.responseText,l.cancelling&&l.msgUploadAborted&&(c=l.msgUploadAborted),l.showAjaxErrorDetails&&a&&(s?c=t.trim(s+""):(o=(a=t.trim(a.replace(/\n\s*\n/g,"\n"))).length?"<pre>"+a+"</pre>":"",c+=c?o:a)),c||(c=l.msgAjaxError.replace("{operation}",e)),l.cancelling=!1,r?"<b>"+r+": </b>"+c:c},_parseFileType:function(e,i){var n,r,o,s=this,a=s.allowedPreviewTypes||[];if("application/text-plain"===e)return"text";for(o=0;o<a.length;o++)if(r=a[o],n=(0,s.fileTypeSettings[r])(e,i)?r:"",!t.isEmpty(n))return n;return"other"},_getPreviewIcon:function(t){var i,n=this,r=null;return t&&t.indexOf(".")>-1&&(i=t.split(".").pop(),n.previewFileIconSettings&&(r=n.previewFileIconSettings[i]||n.previewFileIconSettings[i.toLowerCase()]||null),n.previewFileExtSettings&&e.each(n.previewFileExtSettings,(function(e,t){n.previewFileIconSettings[e]&&t(i)&&(r=n.previewFileIconSettings[e])}))),r||n.previewFileIcon},_parseFilePreviewIcon:function(e,t){var i=this,n=i._getPreviewIcon(t),r=e;return r.indexOf("{previewFileIcon}")>-1&&(r=r.setTokens({previewFileIconClass:i.previewFileIconClass,previewFileIcon:n})),r},_raise:function(t,i){var n=this,r=e.Event(t);void 0!==i?n.$element.trigger(r,i):n.$element.trigger(r);var o=r.result,s=!1===o;if(r.isDefaultPrevented()||s)return!1;if("filebatchpreupload"===r.type&&(o||s))return n.ajaxAborted=o,!1;switch(t){case"filebatchuploadcomplete":case"filebatchuploadsuccess":case"fileuploaded":case"fileclear":case"filecleared":case"filereset":case"fileerror":case"filefoldererror":case"filecustomerror":case"filesuccessremove":break;default:n.ajaxAborted||(n.ajaxAborted=o)}return!0},_listenFullScreen:function(e){var t,i,n=this,r=n.$modal;r&&r.length&&(t=r&&r.find(".btn-kv-fullscreen"),i=r&&r.find(".btn-kv-borderless"),t.length&&i.length&&(t.removeClass("active").attr("aria-pressed","false"),i.removeClass("active").attr("aria-pressed","false"),e?t.addClass("active").attr("aria-pressed","true"):i.addClass("active").attr("aria-pressed","true"),r.hasClass("file-zoom-fullscreen")||e?n._maximizeZoomDialog():i.removeClass("active").attr("aria-pressed","false")))},_listen:function(){var i,n=this,r=n.$element,o=n.$form,s=n.$container;n._handler(r,"click",(function(e){n._initFileSelected(),r.hasClass("file-no-browse")&&(r.data("zoneClicked")?r.data("zoneClicked",!1):e.preventDefault())})),n._handler(r,"change",e.proxy(n._change,n)),n._handler(n.$caption,"paste",e.proxy(n.paste,n)),n.showBrowse&&(n._handler(n.$btnFile,"click",e.proxy(n._browse,n)),n._handler(n.$btnFile,"keypress",(function(e){13===(e.keyCode||e.which)&&(r.trigger("click"),n._browse(e))}))),n._handler(s.find(".fileinput-remove:not([disabled])"),"click",e.proxy(n.clear,n)),n._handler(s.find(".fileinput-cancel"),"click",e.proxy(n.cancel,n)),n._handler(s.find(".fileinput-pause"),"click",e.proxy(n.pause,n)),n._initDragDrop(),n._handler(o,"reset",e.proxy(n.clear,n)),n.isAjaxUpload||n._handler(o,"submit",e.proxy(n._submitForm,n)),n._handler(n.$container.find(".fileinput-upload"),"click",e.proxy(n._uploadClick,n)),n._handler(e(window),"resize",(function(){n._listenFullScreen(screen.width===window.innerWidth&&screen.height===window.innerHeight)})),i="webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",n._handler(e(document),i,(function(){n._listenFullScreen(t.checkFullScreen())})),n.$caption.on("focus",(function(){n.$captionContainer.focus()})),n._autoFitContent(),n._initClickable(),n._refreshPreview()},_autoFitContent:function(){var t,i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=this,r=i<400?n.previewSettingsSmall||n.defaults.previewSettingsSmall:n.previewSettings||n.defaults.previewSettings;e.each(r,(function(e,i){t=".file-preview-frame .file-preview-"+e,n.$preview.find(t+".kv-preview-data,"+t+" .kv-preview-data").css(i)}))},_scanDroppedItems:function(e,i,n){n=n||"";var r,o,s,a=this,l=function(e){a._log(t.logMessages.badDroppedFiles),a._log(e)};e.isFile?e.file((function(e){n&&(e.newPath=n+e.name),i.push(e)}),l):e.isDirectory&&(o=e.createReader(),(s=function(){o.readEntries((function(t){if(t&&t.length>0){for(r=0;r<t.length;r++)a._scanDroppedItems(t[r],i,n+e.name+"/");s()}return null}),l)})())},_initDragDrop:function(){var t=this,i=t.$dropZone;t.dropZoneEnabled&&t.showPreview&&(t._handler(i,"dragenter dragover",e.proxy(t._zoneDragEnter,t)),t._handler(i,"dragleave",e.proxy(t._zoneDragLeave,t)),t._handler(i,"drop",e.proxy(t._zoneDrop,t)),t._handler(e(document),"dragenter dragover drop",t._zoneDragDropInit))},_zoneDragDropInit:function(e){e.stopPropagation(),e.preventDefault()},_zoneDragEnter:function(i){var n=this,r=i.originalEvent.dataTransfer,o=e.inArray("Files",r.types)>-1;if(n._zoneDragDropInit(i),n.isDisabled||!o)return r.effectAllowed="none",void(r.dropEffect="none");r.dropEffect="copy",n._raise("fileDragEnter",{sourceEvent:i,files:r.types.Files})&&t.addCss(n.$dropZone,"file-highlighted")},_zoneDragLeave:function(e){var t=this;t._zoneDragDropInit(e),t.isDisabled||t._raise("fileDragLeave",{sourceEvent:e})&&t.$dropZone.removeClass("file-highlighted")},_dropFiles:function(e,t){var i=this,n=i.$element;i.isAjaxUpload?i._change(e,t):(i.changeTriggered=!0,n.get(0).files=t,setTimeout((function(){i.changeTriggered=!1,n.trigger("change"+i.namespace)}),i.processDelay)),i.$dropZone.removeClass("file-highlighted")},_addFilesFromSystem:function(e,n,r){var o=this,s=n.files,a=n.items,l=t.getDragDropFolders(a);if(e.preventDefault(),o.isDisabled||t.isEmpty(s)||!s.length)console.log("No valid copied files found in clipboard for pasting.");else if(o._raise(r,{sourceEvent:e,files:s}))if(l>0){if(!o.isAjaxUpload)return void o._showFolderError(l);for(s=[],i=0;i<a.length;i++){var c=a[i].webkitGetAsEntry();c&&o._scanDroppedItems(c,s)}setTimeout((function(){o._dropFiles(e,s)}),500)}else o._dropFiles(e,s)},_zoneDrop:function(e){var t=this,i=(t.$element,e.originalEvent.dataTransfer);t._addFilesFromSystem(e,i,"fileDragDrop")},_uploadClick:function(e){var i,n=this,r=n.$container.find(".fileinput-upload"),o=!r.hasClass("disabled")&&t.isEmpty(r.attr("disabled"));e&&e.isDefaultPrevented()||(n.isAjaxUpload?(e.preventDefault(),o&&n.upload()):o&&"submit"!==r.attr("type")&&(e.preventDefault(),(i=r.closest("form")).length&&i.trigger("submit")))},_submitForm:function(){var e=this;return e._isFileSelectionValid()&&!e._abort({})},_clearPreview:function(){var t=this;(t.showUploadedThumbs?t.getFrames(":not(.file-preview-success)"):t.getFrames()).each((function(){e(this).remove()})),t.getFrames().length&&t.showPreview||t._resetUpload(),t._validateDefaultPreview()},_initSortable:function(){var i,n,r,o,s=this,a=s.$preview,l="."+t.SORT_CSS,c=e("body"),u=e("html"),d=s.reversePreviewOrder,h=window.Sortable;h&&0!==a.find(l).length&&(n=c.length?c:u.length?u:s.$container,i={handle:".drag-handle-init",dataIdAttr:"data-fileid",animation:600,draggable:l,scroll:!1,forceFallback:!0,onChoose:r=function(){n.addClass("file-grabbing")},onStart:r,onUnchoose:o=function(){n.removeClass("file-grabbing")},onEnd:o,onSort:function(i){var n,r=i.oldIndex,o=i.newIndex,a=0,l=s.initialPreviewConfig.length,c=l>0&&o>=l,u=e(i.item);c&&(o=l-1),s.initialPreview=t.moveArray(s.initialPreview,r,o,d),s.initialPreviewConfig=t.moveArray(s.initialPreviewConfig,r,o,d),s.previewCache.init(),s.getFrames(".file-preview-initial").each((function(){e(this).attr("data-fileindex",t.INIT_FLAG+a),a++})),c&&(n=s.getFrames(":not(.file-preview-initial):first")).length&&u.slideUp((function(){u.insertBefore(n).slideDown()})),s._raise("filesorted",{previewId:u.attr("id"),oldIndex:r,newIndex:o,stack:s.initialPreviewConfig})}},e.extend(!0,i,s.fileActionSettings.dragSettings),s.sortable&&s.sortable.destroy(),s.sortable=h.create(a[0],i))},_setPreviewContent:function(e){var i=this;t.setHtml(i.$preview,e),i._autoFitContent()},_initPreviewImageOrientations:function(){var t=this,i=0,n=t.canOrientImage;(t.autoOrientImageInitial||n)&&t.getFrames(".file-preview-initial").each((function(){var r,o,s,a=e(this),l=t.initialPreviewConfig[i];l&&l.exif&&l.exif.Orientation&&(s=a.attr("id"),r=a.find(">.kv-file-content img"),o=t._getZoom(s," >.kv-file-content img"),n?r.css("image-orientation",t.autoOrientImageInitial?"from-image":"none"):t.setImageOrientation(r,o,l.exif.Orientation,a)),i++}))},_initPreview:function(e){var i,n=this,r=n.initialCaption||"";if(!n.previewCache.count(!0))return n._clearPreview(),void(e?n._setCaption(r):n._initCaption());i=n.previewCache.out(),r=e&&n.initialCaption?n.initialCaption:i.caption,n._setPreviewContent(i.content),n._setInitThumbAttr(),n._setCaption(r),n._initSortable(),t.isEmpty(i.content)||n.$container.removeClass("file-input-new"),n._initPreviewImageOrientations()},_getZoomButton:function(e){var i=this,n=i.previewZoomButtonIcons[e],r=i.previewZoomButtonClasses[e],o=' title="'+(i.previewZoomButtonTitles[e]||"")+'" ',s=t.isBs(5)?"bs-":"",a=o+("close"===e?" data-"+s+'dismiss="modal" aria-hidden="true"':"");return"fullscreen"!==e&&"borderless"!==e&&"toggleheader"!==e||(a+=' data-toggle="button" aria-pressed="false"'),'<button type="button" class="'+r+" btn-kv-"+e+'"'+a+">"+n+"</button>"},_getModalContent:function(){var e=this;return e._getLayoutTemplate("modal").setTokens({rtl:e.rtl?" kv-rtl":"",zoomFrameClass:e.frameClass,prev:e._getZoomButton("prev"),next:e._getZoomButton("next"),rotate:e._getZoomButton("rotate"),toggleheader:e._getZoomButton("toggleheader"),fullscreen:e._getZoomButton("fullscreen"),borderless:e._getZoomButton("borderless"),close:e._getZoomButton("close")})},_listenModalEvent:function(e){var i=this,n=i.$modal,r=function(e){return{sourceEvent:e,previewId:n.data("previewId"),modal:n}};n.on(e+".bs.modal",(function(o){if("bs.modal"===o.namespace){var s=n.find(".btn-fullscreen"),a=n.find(".btn-borderless");n.data("fileinputPluginId")===i.$element.attr("id")&&i._raise("filezoom"+e,r(o)),"shown"===e&&(i._handleRotation(n,n.find(".file-zoom-detail"),n.data("angle")),a.removeClass("active").attr("aria-pressed","false"),s.removeClass("active").attr("aria-pressed","false"),n.hasClass("file-zoom-fullscreen")&&(i._maximizeZoomDialog(),t.checkFullScreen()?s.addClass("active").attr("aria-pressed","true"):a.addClass("active").attr("aria-pressed","true")))}}))},_initZoom:function(){var i,n=this,r=n._getLayoutTemplate("modalMain"),o="#"+t.MODAL_ID;r=n._setTabIndex("modal",r),n.showPreview&&(n.$modal=e(o),n.$modal&&n.$modal.length||(i=t.createElement(t.cspBuffer.stash(r)).insertAfter(n.$container),n.$modal=e(o).insertBefore(i),t.cspBuffer.apply(n.$modal),i.remove()),t.initModal(n.$modal),n.$modal.html(t.cspBuffer.stash(n._getModalContent())),t.cspBuffer.apply(n.$modal),e.each(t.MODAL_EVENTS,(function(e,t){n._listenModalEvent(t)})))},_initZoomButtons:function(){var t,i,n=this,r=n.$modal,o=r.data("previewId")||"",s=n.getFrames().toArray(),a=s.length,l=r.find(".btn-kv-prev"),c=r.find(".btn-kv-next");r.find(".btn-kv-rotate");if(s.length<2)return l.hide(),void c.hide();l.show(),c.show(),a&&(t=e(s[0]),i=e(s[a-1]),l.removeAttr("disabled"),c.removeAttr("disabled"),n.reversePreviewOrder&&([l,c]=[c,l]),t.length&&t.attr("id")===o&&l.attr("disabled",!0),i.length&&i.attr("id")===o&&c.attr("disabled",!0))},_maximizeZoomDialog:function(){var t=this.$modal,i=t.find(".modal-header:visible"),n=t.find(".modal-footer:visible"),r=t.find(".kv-zoom-body"),o=e(window).height();t.addClass("file-zoom-fullscreen"),i&&i.length&&(o-=i.outerHeight(!0)),n&&n.length&&(o-=n.outerHeight(!0)),r&&r.length&&(o-=r.outerHeight(!0)-r.height()),t.find(".kv-zoom-body").height(o)},_resizeZoomDialog:function(e){var i=this,n=i.$modal,r=n.find(".btn-kv-fullscreen"),o=n.find(".btn-kv-borderless");if(n.hasClass("file-zoom-fullscreen"))t.toggleFullScreen(!1),e?r.hasClass("active")||(n.removeClass("file-zoom-fullscreen"),i._resizeZoomDialog(!0),o.hasClass("active")&&o.removeClass("active").attr("aria-pressed","false")):r.hasClass("active")?r.removeClass("active").attr("aria-pressed","false"):(n.removeClass("file-zoom-fullscreen"),i.$modal.find(".kv-zoom-body").css("height",i.zoomModalHeight));else{if(!e)return void i._maximizeZoomDialog();t.toggleFullScreen(!0)}n.focus()},_setZoomContent:function(i,n){var r,o,s,a,l,c,u,d,h,p,f,m,g=this,v=i.attr("id"),_=g._getZoom(v),b=g.$modal,y=b.find(".btn-kv-fullscreen"),w=b.find(".btn-kv-borderless"),x=b.find(".btn-kv-toggleheader"),C=i.data("zoom");C&&(C=decodeURIComponent(C),m=_.html().replace(g.zoomPlaceholder,"").setTokens({zoomData:C}),t.setHtml(_,m),i.data("zoom",""),_.attr("data-zoom",C)),o=_.attr("data-template")||"generic",s=(r=_.find(".kv-file-content")).length?r.html():"",p=i.data("caption")||g.msgZoomModalHeading,f=i.data("size")||"",d=i.data("description")||"",t.setHtml(b.find(".kv-zoom-caption").attr("title",p),p),t.setHtml(b.find(".kv-zoom-size"),f),h=b.find(".kv-zoom-description").hide(),d&&(g.showDescriptionClose&&(d=g._getLayoutTemplate("descriptionClose").setTokens({closeIcon:g.previewZoomButtonIcons.close})+"</button>"+d),t.setHtml(h,d).show(),g.showDescriptionClose&&g._handler(b.find(".kv-desc-hide"),"click",(function(){e(this).parent().fadeOut("fast",(function(){b.focus()}))}))),a=b.find(".kv-zoom-body"),b.removeClass("kv-single-content"),n?(u=a.addClass("file-thumb-loading").clone().insertAfter(a),t.setHtml(a,s).hide(),u.fadeOut("fast",(function(){a.fadeIn("fast",(function(){a.removeClass("file-thumb-loading")})),u.remove()}))):t.setHtml(a,s),(c=g.previewZoomSettings[o])&&(l=a.find(".kv-preview-data"),t.addCss(l,"file-zoom-detail"),e.each(c,(function(e,t){l.css(e,t),(l.attr("width")&&"width"===e||l.attr("height")&&"height"===e)&&l.removeAttr(e)}))),b.data("previewId",v),g._handler(b.find(".btn-kv-prev"),"click",(function(){g._zoomSlideShow("prev",v)})),g._handler(b.find(".btn-kv-next"),"click",(function(){g._zoomSlideShow("next",v)})),g._handler(y,"click",(function(){g._resizeZoomDialog(!0)})),g._handler(w,"click",(function(){g._resizeZoomDialog(!1)})),g._handler(x,"click",(function(){var e,t=b.find(".modal-header"),i=b.find(".floating-buttons"),n=t.find(".kv-zoom-actions"),r=function(e){var i=g.$modal.find(".kv-zoom-body"),n=g.zoomModalHeight;b.hasClass("file-zoom-fullscreen")&&(n=i.outerHeight(!0),e||(n-=t.outerHeight(!0))),i.css("height",e?n+e:n)};t.is(":visible")?(e=t.outerHeight(!0),t.slideUp("slow",(function(){n.find(".btn").appendTo(i),r(e)}))):(i.find(".btn").appendTo(n),t.slideDown("slow",(function(){r()}))),b.focus()})),g._handler(b,"keydown",(function(t){var i,n,r=t.which||t.keyCode,o=g.processDelay+1,s=e(this).find(".btn-kv-prev"),a=e(this).find(".btn-kv-next"),l=e(this).data("previewId");[i,n]=g.rtl?[39,37]:[37,39],e.each({prev:[s,i],next:[a,n]},(function(e,t){var i=t[0],n=t[1];r===n&&i.length&&(b.focus(),i.attr("disabled")||(i.blur(),setTimeout((function(){i.focus(),g._zoomSlideShow(e,l),setTimeout((function(){i.attr("disabled")&&b.focus()}),o)}),o)))}))}))},_showModal:function(e){var i,n,r=this,o=r.$modal;e&&e.length&&(t.initModal(o),t.setHtml(o,r._getModalContent()),r._setZoomContent(e),o.removeClass("rotatable"),o.data({backdrop:!1,fileinputPluginId:r.$element.attr("id")}),o.find(".kv-zoom-body").css("height",r.zoomModalHeight),(i=e.find(".kv-file-content > :first-child")).length&&(n=i.css("transform"))&&o.find(".file-zoom-detail").css("transform",n),e.hasClass("rotatable")&&o.addClass("rotatable"),e.data("angle")&&o.data("angle",e.data("angle")),e.data("angle")||0,o.modal("show"),r._initZoomButtons(),r._initRotateZoom(e,i))},_zoomPreview:function(e){var i,n=this;if(!e.length)throw"Cannot zoom to detailed preview!";i=e.closest(t.FRAMES),n._showModal(i)},_zoomSlideShow:function(t,i){var n,r,o,s,a,l,c=this,u=c.$modal,d=u.find(".kv-zoom-actions .btn-kv-"+t),h=c.getFrames().toArray(),p=[],f=h.length;if(c.reversePreviewOrder&&(t="prev"===t?"next":"prev"),!d.attr("disabled")){for(r=0;r<f;r++)(o=e(h[r]))&&o.length&&o.find(".kv-file-zoom:visible").length&&p.push(h[r]);for(f=p.length,r=0;r<f;r++)if(e(p[r]).attr("id")===i){s="prev"===t?r-1:r+1;break}s<0||s>=f||!p[s]||((n=e(p[s])).length&&c._setZoomContent(n,t),c._initZoomButtons(),n.length&&n.hasClass("rotatable")?(a=n.data("angle")||0,u.addClass("rotatable").data("angle",a),l=n.find(".kv-file-content > :first-child"),c._initRotateZoom(n,l)):u.removeClass("rotatable").removeData("angle"),c._raise("filezoom"+t,{previewId:i,modal:c.$modal}))}},_initZoomButton:function(){var t=this;t.$preview.find(".kv-file-zoom").each((function(){var i=e(this);t._handler(i,"click",(function(){t._zoomPreview(i)}))}))},_inputFileCount:function(){return this.$element[0].files.length},_refreshPreview:function(){var t,i=this;(i._inputFileCount()||i.isAjaxUpload)&&i.showPreview&&i.isPreviewable&&(i.isAjaxUpload&&i.fileManager.count()>0?(t=e.extend(!0,[],i.getFileList()),i.fileManager.clear(),i._clearFileInput()):t=i.$element[0].files,t&&t.length&&i.readFiles(t))},_clearObjects:function(t){t.find("video audio").each((function(){this.pause(),e(this).remove()})),t.find("img object div").each((function(){e(this).remove()}))},_clearFileInput:function(){var t,i,n,r=this,o=r.$element;r._inputFileCount()&&(t=o.closest("form"),i=e(document.createElement("form")),n=e(document.createElement("div")),o.before(n),t.length?t.after(i):n.after(i),i.append(o).trigger("reset"),n.before(o).remove(),i.remove())},_resetUpload:function(){var e=this;e.uploadInitiated=!1,e.uploadStartTime=t.now(),e.uploadCache=[],e.$btnUpload.removeAttr("disabled"),e._setProgress(0),e._hideProgress(),e._resetErrors(!1),e._initAjax(),e.fileManager.clearImages(),e._resetCanvas(),e.overwriteInitial&&(e.initialPreview=[],e.initialPreviewConfig=[],e.initialPreviewThumbTags=[],e.previewCache.data={content:[],config:[],tags:[]})},_resetCanvas:function(){var e=this;e.imageCanvas&&e.imageCanvasContext&&e.imageCanvasContext.clearRect(0,0,e.imageCanvas.width,e.imageCanvas.height)},_hasInitialPreview:function(){var e=this;return!e.overwriteInitial&&e.previewCache.count(!0)},_resetPreview:function(){var i,n,r,o=this,s=o.showUploadedThumbs,a=!o.removeFromPreviewOnError,l=(s||a)&&o.isDuplicateError;o.previewCache.count(!0)?(i=o.previewCache.out(),l&&(r=t.createDiv().insertAfter(o.$container),o.getFrames().each((function(){var t=e(this);(s&&t.hasClass("file-preview-success")||a&&t.hasClass("file-preview-error"))&&r.append(t)}))),o._setPreviewContent(i.content),o._setInitThumbAttr(),n=o.initialCaption?o.initialCaption:i.caption,o._setCaption(n),l&&(r.contents().appendTo(o.$preview),r.remove())):(o._clearPreview(),o._initCaption()),o.showPreview&&(o._initZoom(),o._initSortable()),o.isDuplicateError=!1},_clearDefaultPreview:function(){this.$preview.find(".file-default-preview").remove()},_validateDefaultPreview:function(){var e=this;e.showPreview&&!t.isEmpty(e.defaultPreviewContent)&&(e._setPreviewContent('<div class="file-default-preview">'+e.defaultPreviewContent+"</div>"),e.$container.removeClass("file-input-new"),e._initClickable())},_resetPreviewThumbs:function(e){var t,i=this;if(e)return i._clearPreview(),void i.clearFileStack();i._hasInitialPreview()?(t=i.previewCache.out(),i._setPreviewContent(t.content),i._setInitThumbAttr(),i._setCaption(t.caption),i._initPreviewActions()):i._clearPreview()},_getLayoutTemplate:function(e){var i=this,n=i.layoutTemplates[e];return t.isEmpty(i.customLayoutTags)?n:t.replaceTags(n,i.customLayoutTags)},_getPreviewTemplate:function(e){var i=this,n=i.previewTemplates,r=n[e]||n.other;return t.isEmpty(i.customPreviewTags)?r:t.replaceTags(r,i.customPreviewTags)},_getOutData:function(e,t,i,n){var r=this;return t=t||{},i=i||{},{formdata:e,files:n=n||r.fileManager.list(),filenames:r.filenames,filescount:r.getFilesCount(),extra:r._getExtraData(),response:i,reader:r.reader,jqXHR:t}},_getMsgSelected:function(e,t){var i=this,n=1===e?i.fileSingle:i.filePlural;return e>0?i.msgSelected.replace("{n}",e).replace("{files}",n):t?i.msgProcessing:i.msgNoFilesSelected},_getFrame:function(e,i){var n=this,r=t.getFrameElement(n.$preview,e);return!n.showPreview||i||r.length||n._log(t.logMessages.invalidThumb,{id:e}),r},_getZoom:function(e,i){var n=this,r=t.getZoomElement(n.$preview,e,i);return n.showPreview&&!r.length&&n._log(t.logMessages.invalidThumb,{id:e}),r},_getThumbs:function(e){return e=e||"",this.getFrames(":not(.file-preview-initial)"+e)},_getThumbId:function(e){return this.previewInitId+"-"+e},_getExtraData:function(e,t){var i=this,n=i.uploadExtraData;return"function"==typeof i.uploadExtraData&&(n=i.uploadExtraData(e,t)),n},_initXhr:function(e,i){var n=this,r=n.fileManager,o=function(e){var o=0,s=e.total,a=e.loaded||e.position,l=r.getUploadStats(i,a,s);e.lengthComputable&&!n.enableResumableUpload&&(o=t.round(a/s*100)),i?n._setFileUploadStats(i,o,l):n._setProgress(o,null,null,n._getStats(l)),n._raise("fileajaxprogress",[l])};return e.upload&&(n.progressDelay&&(o=t.debounce(o,n.progressDelay)),e.upload.addEventListener("progress",o,!1)),e},_initAjaxSettings:function(){var t=this;t._ajaxSettings=e.extend(!0,{},t.ajaxSettings),t._ajaxDeleteSettings=e.extend(!0,{},t.ajaxDeleteSettings)},_mergeAjaxCallback:function(e,t,i){var n,r=this,o=r._ajaxSettings,s=r.mergeAjaxCallbacks;"delete"===i&&(o=r._ajaxDeleteSettings,s=r.mergeAjaxDeleteCallbacks),n=o[e],o[e]=s&&"function"==typeof n?"before"===s?function(){n.apply(this,arguments),t.apply(this,arguments)}:function(){t.apply(this,arguments),n.apply(this,arguments)}:t},_ajaxSubmit:function(t,i,n,r,o,s,a,l){var c,u,d,h=this,p=h.taskManager;h._raise("filepreajax",[o,s,a])&&(o.append("initialPreview",JSON.stringify(h.initialPreview)),o.append("initialPreviewConfig",JSON.stringify(h.initialPreviewConfig)),o.append("initialPreviewThumbTags",JSON.stringify(h.initialPreviewThumbTags)),h._initAjaxSettings(),h._mergeAjaxCallback("beforeSend",t),h._mergeAjaxCallback("success",i),h._mergeAjaxCallback("complete",n),h._mergeAjaxCallback("error",r),"function"==typeof(l=l||h.uploadUrlThumb||h.uploadUrl)&&(l=l()),"object"==typeof(d=h._getExtraData(s,a)||{})&&e.each(d,(function(e,t){o.append(e,t)})),u={xhr:function(){var t=e.ajaxSettings.xhr();return h._initXhr(t,s)},url:h._encodeURI(l),type:"POST",dataType:"json",data:o,cache:!1,processData:!1,contentType:!1},c=e.extend(!0,{},u,h._ajaxSettings),h.ajaxQueue.push(c),p.addTask(s+"-"+a,(function(){var t,i,n=this.self;t=n.ajaxQueue.shift(),i=e.ajax(t),n.ajaxRequests.push(i)})).runWithContext({self:h}))},_mergeArray:function(e,i){var n=this,r=t.cleanArray(n[e]),o=t.cleanArray(i);n[e]=r.concat(o)},_initUploadSuccess:function(i,n,r){var o,s,a,l,c,u,d,h,p,f=this;f.showPreview&&"object"==typeof i&&!e.isEmptyObject(i)?(void 0!==i.initialPreview&&i.initialPreview.length>0&&(f.hasInitData=!0,c=i.initialPreview||[],u=i.initialPreviewConfig||[],d=i.initialPreviewThumbTags||[],o=void 0===i.append||i.append,c.length>0&&!t.isArray(c)&&(c=c.split(f.initialPreviewDelimiter)),c.length&&(f._mergeArray("initialPreview",c),f._mergeArray("initialPreviewConfig",u),f._mergeArray("initialPreviewThumbTags",d)),void 0!==n?r?(h=n.attr("id"),null!==(p=f._getUploadCacheIndex(h))&&(f.uploadCache[p]={id:h,content:c[0],config:u[0]||[],tags:d[0]||[],append:o})):(a=f.previewCache.add(c[0],u[0],d[0],o),s=f.previewCache.get(a,!1),l=t.createElement(t.cspBuffer.stash(s)).hide().appendTo(n),t.cspBuffer.apply(n),n.fadeOut("slow",(function(){var e=l.find("> .file-preview-frame");e&&e.length&&e.insertBefore(n).fadeIn("slow").css("display:inline-block"),f._initPreviewActions(),f._clearFileInput(),n.remove(),l.remove(),f._initSortable()}))):(f.previewCache.set(c,u,d,o),f._initPreview(),f._initPreviewActions())),f._resetCaption()):f._resetCaption()},_getUploadCacheIndex:function(e){var t,i=this,n=i.uploadCache.length;for(t=0;t<n;t++)if(i.uploadCache[t].id===e)return t;return null},_initSuccessThumbs:function(){var i=this;i.showPreview&&setTimeout((function(){i._getThumbs(t.FRAMES+".file-preview-success").each((function(){var n=e(this),r=n.find(".kv-file-remove");r.removeAttr("disabled"),i._handler(r,"click",(function(){var e=n.attr("id"),r=i._raise("filesuccessremove",[e,n.attr("data-fileindex")]);t.cleanMemory(n),!1!==r&&(i.$caption.attr("title",""),n.fadeOut("slow",(function(){i.fileManager;n.remove(),i.getFrames().length||i.reset()})))}))}))}),i.processDelay)},_updateInitialPreview:function(){var t=this,i=t.uploadCache;t.showPreview&&(e.each(i,(function(e,i){t.previewCache.add(i.content,i.config,i.tags,i.append)})),t.hasInitData&&(t._initPreview(),t._initPreviewActions()))},_getThumbFileId:function(e){return this.showPreview&&void 0!==e?e.attr("data-fileid"):null},_getThumbFile:function(e){var t=this,i=t._getThumbFileId(e);return i?t.fileManager.getFile(i):null},_uploadSingle:function(i,n,r,o){var s,a,l,c,u,d,h,p,f,m,g,v,_,b=this,y=b.fileManager,w=y.count(),x=new FormData,C=b._getThumbId(n),T=w>0||!e.isEmptyObject(b.uploadExtraData),k=b.ajaxOperations.uploadThumb,E=y.getFile(n),S={id:C,index:i,fileId:n},A=b.fileManager.getFileName(n,!0),P=function(){o&&o.resolve&&o.resolve()},I=function(){o&&o.reject&&o.reject()};b.enableResumableUpload||(b.uploadInitiated=!0,b.showPreview&&(a=y.getThumb(n),h=a.find(".file-thumb-progress"),c=a.find(".kv-file-upload"),u=a.find(".kv-file-remove"),h.show()),0===w||!T||b.showPreview&&c&&c.hasClass("disabled")||b._abort(S)||(_=function(){d?y.errors.push(n):y.removeFile(n),y.setProcessed(n),y.isProcessed()&&(b.fileBatchCompleted=!0,l())},l=function(){var e;b.fileBatchCompleted&&setTimeout((function(){var i=0===y.count(),n=y.errors.length;b._updateInitialPreview(),b.unlock(i),i&&b._clearFileInput(),e=b.$preview.find(".file-preview-initial"),b.uploadAsync&&e.length&&(t.addCss(e,t.SORT_CSS),b._initSortable()),b._raise("filebatchuploadcomplete",[y.stack,b._getExtraData()]),b.retryErrorUploads&&0!==n||y.clear(),b._setProgress(101),b.ajaxAborted=!1,b.uploadInitiated=!1}),b.processDelay)},p=function(o){s=b._getOutData(x,o),y.initStats(n),b.fileBatchCompleted=!1,r||(b.ajaxAborted=!1),b.showPreview&&(a.hasClass("file-preview-success")||(b._setThumbStatus(a,"Loading"),t.addCss(a,"file-uploading")),c.attr("disabled",!0),u.attr("disabled",!0)),r||b.lock(),-1!==y.errors.indexOf(n)&&delete y.errors[n],b._raise("filepreupload",[s,C,i,b._getThumbFileId(a)]),e.extend(!0,S,s),b._abort(S)&&(o.abort(),r||(b._setThumbStatus(a,"New"),a.removeClass("file-uploading"),c.removeAttr("disabled"),u.removeAttr("disabled")),b._setProgressCancelled())},m=function(o,l,u){var p=b.showPreview&&a.attr("id")?a.attr("id"):C;s=b._getOutData(x,u,o),e.extend(!0,S,s),setTimeout((function(){t.isEmpty(o)||t.isEmpty(o.error)?(b.showPreview&&(b._setThumbStatus(a,"Success"),c.hide(),b._initUploadSuccess(o,a,r),b._setProgress(101,h)),b._raise("fileuploaded",[s,p,i,b._getThumbFileId(a)]),r?(_(),P()):b.fileManager.remove(a)):(d=!0,f=b._parseError(k,u,b.msgUploadError,b.fileManager.getFileName(n)),b._showFileError(f,S),b._setPreviewError(a,!0),b.retryErrorUploads||c.hide(),r&&(_(),P()),b._setProgress(101,b._getFrame(p).find(".file-thumb-progress"),b.msgUploadError))}),b.processDelay)},g=function(){b.showPreview&&(c.removeAttr("disabled"),u.removeAttr("disabled"),a.removeClass("file-uploading")),r?l():(b.unlock(!1),b._clearFileInput()),b._initSuccessThumbs()},v=function(t,i,o){f=b._parseError(k,t,o,b.fileManager.getFileName(n)),d=!0,setTimeout((function(){var i;r&&(_(),I()),b.fileManager.setProgress(n,100),b._setPreviewError(a,!0),b.retryErrorUploads||c.hide(),e.extend(!0,S,b._getOutData(x,t)),b._setProgress(101,b.$progress,b.msgAjaxProgressError.replace("{operation}",k)),i=b.showPreview&&a?a.find(".file-thumb-progress"):"",b._setProgress(101,i,b.msgUploadError),b._showFileError(f,S)}),b.processDelay)},b._setFileData(x,E.file,A,n),b._setUploadData(x,{fileId:n}),b._ajaxSubmit(p,m,g,v,x,n,i)))},_setFileData:function(e,t,i,n){var r=this,o=r.preProcessUpload;o&&"function"==typeof o?e.append(r.uploadFileAttr,o(n,t)):e.append(r.uploadFileAttr,t,i)},_checkBatchPreupload:function(t,i){var n=this;return!!n._raise("filebatchpreupload",[t])||(n._abort(t),i&&i.abort(),n._getThumbs().each((function(){var t=e(this),i=t.find(".kv-file-upload"),r=t.find(".kv-file-remove");t.hasClass("file-preview-loading")&&(n._setThumbStatus(t,"New"),t.removeClass("file-uploading")),i.removeAttr("disabled"),r.removeAttr("disabled")})),n._setProgressCancelled(),!1)},_uploadBatch:function(){var i,n,r,o,s,a,l=this,c=l.fileManager,u=c.total(),d={},h=u>0||!e.isEmptyObject(l.uploadExtraData),p=new FormData,f=l.ajaxOperations.uploadBatch;if(0!==u&&h&&!l._abort(d)){a=function(){l.fileManager.clear(),l._clearFileInput()},i=function(i){l.lock(),c.initStats();var n=l._getOutData(p,i);l.ajaxAborted=!1,l.showPreview&&l._getThumbs().each((function(){var i=e(this),n=i.find(".kv-file-upload"),r=i.find(".kv-file-remove");i.hasClass("file-preview-success")||(l._setThumbStatus(i,"Loading"),t.addCss(i,"file-uploading")),n.attr("disabled",!0),r.attr("disabled",!0)})),l._checkBatchPreupload(n,i)},n=function(i,n,r){var o=l._getOutData(p,r,i),c=0,u=l._getThumbs(":not(.file-preview-success)"),d=t.isEmpty(i)||t.isEmpty(i.errorkeys)?[]:i.errorkeys;t.isEmpty(i)||t.isEmpty(i.error)?(l._raise("filebatchuploadsuccess",[o]),a(),l.showPreview?(u.each((function(){var t=e(this);l._setThumbStatus(t,"Success"),t.removeClass("file-uploading"),t.find(".kv-file-upload").hide().removeAttr("disabled")})),l._initUploadSuccess(i)):l.reset(),l._setProgress(101)):(l.showPreview&&(u.each((function(){var t=e(this);t.removeClass("file-uploading"),t.find(".kv-file-upload").removeAttr("disabled"),t.find(".kv-file-remove").removeAttr("disabled"),0===d.length||-1!==e.inArray(c,d)?(l._setPreviewError(t,!0),l.retryErrorUploads||(t.find(".kv-file-upload").hide(),l.fileManager.remove(t))):(t.find(".kv-file-upload").hide(),l._setThumbStatus(t,"Success"),l.fileManager.remove(t)),t.hasClass("file-preview-error")&&!l.retryErrorUploads||c++})),l._initUploadSuccess(i)),s=l._parseError(f,r,l.msgUploadError),l._showFileError(s,o,"filebatchuploaderror"),l._setProgress(101,l.$progress,l.msgUploadError))},o=function(){l.unlock(),l._initSuccessThumbs(),l._clearFileInput(),l._raise("filebatchuploadcomplete",[l.fileManager.stack,l._getExtraData()])},r=function(t,i,n){var r=l._getOutData(p,t);s=l._parseError(f,t,n),l._showFileError(s,r,"filebatchuploaderror"),l.uploadFileCount=u-1,l.showPreview&&(l._getThumbs().each((function(){var t=e(this);t.removeClass("file-uploading"),l._getThumbFile(t)&&l._setPreviewError(t)})),l._getThumbs().removeClass("file-uploading"),l._getThumbs(" .kv-file-upload").removeAttr("disabled"),l._getThumbs(" .kv-file-delete").removeAttr("disabled"),l._setProgress(101,l.$progress,l.msgAjaxProgressError.replace("{operation}",f)))};var m=0;e.each(l.fileManager.stack,(function(e,i){t.isEmpty(i.file)||l._setFileData(p,i.file,i.nameFmt||"untitled_"+m,e),m++})),l._ajaxSubmit(i,n,o,r,p)}},_uploadExtraOnly:function(){var e,i,n,r,o,s=this,a={},l=new FormData,c=s.ajaxOperations.uploadExtra;e=function(e){s.lock();var t=s._getOutData(l,e);s._setProgress(50),a.data=t,a.xhr=e,s._checkBatchPreupload(t,e)},i=function(e,i,n){var r=s._getOutData(l,n,e);t.isEmpty(e)||t.isEmpty(e.error)?(s._raise("filebatchuploadsuccess",[r]),s._clearFileInput(),s._initUploadSuccess(e),s._setProgress(101)):(o=s._parseError(c,n,s.msgUploadError),s._showFileError(o,r,"filebatchuploaderror"))},n=function(){s.unlock(),s._clearFileInput(),s._raise("filebatchuploadcomplete",[s.fileManager.stack,s._getExtraData()])},r=function(e,t,i){var n=s._getOutData(l,e);o=s._parseError(c,e,i),a.data=n,s._showFileError(o,n,"filebatchuploaderror"),s._setProgress(101,s.$progress,s.msgAjaxProgressError.replace("{operation}",c))},s._ajaxSubmit(e,i,n,r,l)},_deleteFileIndex:function(i){var n=this,r=i.attr("data-fileindex"),o=n.reversePreviewOrder;r.substring(0,5)===t.INIT_FLAG&&(r=parseInt(r.replace(t.INIT_FLAG,"")),n.initialPreview=t.spliceArray(n.initialPreview,r,o),n.initialPreviewConfig=t.spliceArray(n.initialPreviewConfig,r,o),n.initialPreviewThumbTags=t.spliceArray(n.initialPreviewThumbTags,r,o),n.getFrames().each((function(){var i=e(this),n=i.attr("data-fileindex");n.substring(0,5)===t.INIT_FLAG&&(n=parseInt(n.replace(t.INIT_FLAG,"")))>r&&(n--,i.attr("data-fileindex",t.INIT_FLAG+n))})))},_resetCaption:function(){var e=this;setTimeout((function(){var t,i,n,r="",o=e.previewCache.count(!0),s=e.fileManager.count(),a=":not(.file-preview-success):not(.file-preview-error)",l=e.showPreview&&e.getFrames(a).length;0!==s||0!==o||l?((t=o+s)>1?r=e._getMsgSelected(t):0===s?(r="",(n=e.initialPreviewConfig[0])&&(r=n.caption||n.filename||""),r||(r=e._getMsgSelected(t))):r=(i=e.fileManager.getFirstFile())?i.nameFmt:"_",e._setCaption(r)):e.reset()}),e.processDelay)},_handleRotation:function(t,i,n){var r,o,s,a,l,c,u,d,h,p=this,f="",m=1,g=i[0],v=i.parent(),_=e("body"),b=!!_.length;b&&_.addClass("kv-overflow-hidden"),i.length&&!t.hasClass("hide-rotate")?((a=i.css("transform"))&&i.css("transform","none"),a&&i.css("transform",a),r="rotate("+(n=n||0)+"deg)",o="rotate("+(s=n%360)+"deg)",f="",90!==s&&270!==s||(m=(c=g.naturalWidth||i.outerWidth()||0)>(l=g.naturalHeight||i.outerHeight()||0)&&0!=c?(l/c).toFixed(2):1,v.length&&(d=v.height(),h=v.width(),d>m*(u=Math.min(c,h))&&(m=u>d&&0!=u?(d/u).toFixed(2):1)),1!==m&&(f=" scale("+m+")")),i.addClass("rotate-animate").css("transform",r+f),setTimeout((function(){i.removeClass("rotate-animate").css("transform",o+f),b&&_.removeClass("kv-overflow-hidden"),t.data("angle",s)}),p.fadeDelay)):b&&_.removeClass("kv-overflow-hidden")},_initRotateButton:function(){var i=this;i.getFrames(".rotatable .kv-file-rotate").each((function(){var n=e(this),r=n.closest(t.FRAMES),o=r.find(".kv-file-content > :first-child");i._handler(n,"click",(function(){var e=(r.data("angle")||0)+90;i._handleRotation(r,o,e)}))}))},_initRotateZoom:function(e,t){var i=this,n=i.$modal,r=n.find(".btn-kv-rotate"),o=e.data("angle");n.data("angle",o),r.length&&(r.off("click"),n.hasClass("rotatable")&&r.on("click",(function(){o=(n.data("angle")||0)+90,n.data("angle",o),i._handleRotation(n,n.find(".file-zoom-detail"),o),i._handleRotation(e,t,o),e.hasClass("hide-rotate")&&e.data("angle",o)})))},_initFileActions:function(){var i=this;i.showPreview&&(i._initZoomButton(),i._initRotateButton(),i.getFrames(" .kv-file-remove").each((function(){var n,r=e(this),o=r.closest(t.FRAMES),s=o.attr("id"),a=o.attr("data-fileindex");i.fileManager;i._handler(r,"click",(function(){if(!1===i._raise("filepreremove",[s,a])||!i._validateMinCount())return!1;n=o.hasClass("file-preview-error"),t.cleanMemory(o),o.fadeOut("slow",(function(){i.fileManager.remove(o),i._clearObjects(o),o.remove(),s&&n&&i.$errorContainer.find('li[data-thumb-id="'+s+'"]').fadeOut("fast",(function(){e(this).remove(),i._errorsExist()||i._resetErrors()})),i._clearFileInput(),i._resetCaption(),i._raise("fileremoved",[s,a])}))}))})),i.getFrames(" .kv-file-upload").each((function(){var n=e(this);i._handler(n,"click",(function(){var e=n.closest(t.FRAMES),r=i._getThumbFileId(e);i._hideProgress(),e.hasClass("file-preview-error")&&!i.retryErrorUploads||i._uploadSingle(i.fileManager.getIndex(r),r,!1)}))})))},_initPreviewActions:function(){var i=this,n=i.$preview,r=i.deleteExtraData||{},o=t.FRAMES+" .kv-file-remove",s=i.fileActionSettings,a=s.removeClass,l=s.removeErrorClass,c=function(){var e=i.isAjaxUpload?i.previewCache.count(!0):i._inputFileCount();i.getFrames().length||e?i._resetCaption():(i._setCaption(""),i.reset(),i.initialCaption="")};i._initZoomButton(),i._initRotateButton(),n.find(o).each((function(){var n,o,s,u,d=e(this),h=d.data("url")||i.deleteUrl,p=d.data("key"),f=i.ajaxOperations.deleteThumb;if(!t.isEmpty(h)&&void 0!==p){"function"==typeof h&&(h=h());var m,g,v,_,b,y=d.closest(t.FRAMES),w=i.previewCache.data,x=y.attr("data-fileindex");x=parseInt(x.replace(t.INIT_FLAG,"")),v=t.isEmpty(w.config)&&t.isEmpty(w.config[x])?null:w.config[x],b=t.isEmpty(v)||t.isEmpty(v.extra)?r:v.extra,_=v&&(v.filename||v.caption)||"","function"==typeof b&&(b=b()),g={id:d.attr("id"),key:p,extra:b},o=function(e){i.ajaxAborted=!1,i._raise("filepredelete",[p,e,b]),i._abort()?e.abort():(d.removeClass(l),t.addCss(y,"file-uploading"),t.addCss(d,"disabled "+a))},s=function(e,r,o){var s,u;if(!t.isEmpty(e)&&!t.isEmpty(e.error))return g.jqXHR=o,g.response=e,n=i._parseError(f,o,i.msgDeleteError,_),i._showFileError(n,g,"filedeleteerror"),y.removeClass("file-uploading"),d.removeClass("disabled "+a).addClass(l),void c();y.removeClass("file-uploading").addClass("file-deleted"),y.fadeOut("slow",(function(){x=parseInt(y.attr("data-fileindex").replace(t.INIT_FLAG,"")),i.previewCache.unset(x),i._deleteFileIndex(y),s=i.previewCache.count(!0),u=s>0?i._getMsgSelected(s):"",i._setCaption(u),i._raise("filedeleted",[p,o,b]),i._clearObjects(y),y.remove(),c()}))},u=function(e,t,n){var r=i._parseError(f,e,n,_);g.jqXHR=e,g.response={},i._showFileError(r,g,"filedeleteerror"),y.removeClass("file-uploading"),d.removeClass("disabled "+a).addClass(l),c()},i._initAjaxSettings(),i._mergeAjaxCallback("beforeSend",o,"delete"),i._mergeAjaxCallback("success",s,"delete"),i._mergeAjaxCallback("error",u,"delete"),m=e.extend(!0,{},{url:i._encodeURI(h),type:"POST",dataType:"json",data:e.extend(!0,{},{key:p},b)},i._ajaxDeleteSettings),i._handler(d,"click",(function(){if(!i._validateMinCount())return!1;i.ajaxAborted=!1,i._raise("filebeforedelete",[p,b]),i.ajaxAborted instanceof Promise?i.ajaxAborted.then((function(t){t||e.ajax(m)})):i.ajaxAborted||e.ajax(m)}))}}))},_hideFileIcon:function(){var e=this;e.overwriteInitial&&e.$captionContainer.removeClass("icon-visible")},_showFileIcon:function(){var e=this;t.addCss(e.$captionContainer,"icon-visible")},_getSize:function(e,i,n){var r,o,s=this,a=parseFloat(e),l=0,c=s.bytesToKB,u=s.fileSizeGetter,d=a;if(!t.isNumeric(e)||!t.isNumeric(a))return"";if("function"==typeof u)r=u(a);else{if(n||(n=s.sizeUnits),a>0){for(;d>=c;)d/=c,++l;n[l]||(d=a,l=0)}(o=d.toFixed(2))==d&&(o=d),r=o+" "+n[l]}return i?r:s._getLayoutTemplate("size").replace("{sizeText}",r)},_getFileType:function(e){return this.mimeTypeAliases[e]||e},_generatePreviewTemplate:function(i,n,r,o,s,a,l,c,u,d,h,p,f,m,g){var v,_,b,y,w=this,x=w.slug(r),C="",T="",k=u||r,E=k.split(".").pop().toLowerCase(),S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=x,P=x,I="type-default",D=h||w._renderFileFooter(i,x,c,"auto",l),F=-1!==e.inArray(E,w.alwaysPreviewFileExtensions),M=w.preferIconicPreview&&!F,L=w.preferIconicZoomPreview&&!F,j=M?"other":i;return(v=S<400?w.previewSettingsSmall[j]||w.defaults.previewSettingsSmall[j]:w.previewSettings[j]||w.defaults.previewSettings[j])&&e.each(v,(function(e,t){T+=e+":"+t+";"})),_=function(n,l,c,u,h){var g,v=c?"zoom-"+s:s,_=w._getPreviewTemplate(n),b=(d||"")+" "+u;return w.frameClass&&(b=w.frameClass+" "+b),c&&(b=b.replace(" "+t.SORT_CSS,"")),_=w._parseFilePreviewIcon(_,r),"object"!==i||o||e.each(w.defaults.fileTypeSettings,(function(e,t){"object"!==e&&"other"!==e&&t(r,o)&&(I="type-"+e)})),t.isEmpty(m)||(void 0!==m.title&&null!==m.title&&(A=m.title),void 0!==m.alt&&null!==m.alt&&(P=A=m.alt)),g={previewId:v,caption:x,title:A,alt:P,frameClass:b,type:w._getFileType(o),fileindex:p,fileid:a||"",filename:k,typeCss:I,footer:D,data:c&&h?w.zoomPlaceholder+"{zoomData}":l,template:f||i,style:T?'style="'+T+'"':"",zoomData:h?encodeURIComponent(h):""},c&&(g.zoomCache="",g.zoomData="{zoomData}"),_.setTokens(g)},p=p||s.slice(s.lastIndexOf("-")+1),y=w.fileActionSettings.showRotate&&-1!==e.inArray(E,w.rotatableFileExtensions),w.fileActionSettings.showZoom&&(b="kv-zoom-thumb",y&&(b+=" rotatable"+(L?" hide-rotate":"")),C=_(L?"other":i,n,!0,b,g)),C="\n"+w._getLayoutTemplate("zoomCache").replace("{zoomContent}",C),"function"==typeof w.sanitizeZoomCache&&(C=w.sanitizeZoomCache(C)),b="kv-preview-thumb",y&&(b+=" rotatable"+(M||w.hideThumbnailContent||!!w.previewFileIconSettings[E]?" hide-rotate":"")),_(M?"other":i,n,!1,b,g).setTokens({zoomCache:C})},_addToPreview:function(e,i){var n,r=this;return i=t.cspBuffer.stash(i),n=r.reversePreviewOrder?e.prepend(i):e.append(i),t.cspBuffer.apply(e),n},_previewDefault:function(e,i){var n=this,r=n.$preview;if(n.showPreview){var o,s=t.getFileName(e),a=e?e.type:"",l=e.size||0,c=n._getFileName(e,""),u=!0===i&&!n.isAjaxUpload,d=t.createObjectURL(e),h=n.fileManager.getId(e),p=n._getThumbId(h);n._clearDefaultPreview(),o=n._generatePreviewTemplate("other",d,s,a,p,h,u,l),n._addToPreview(r,o),n._setThumbAttr(p,c,l),!0===i&&n.isAjaxUpload&&n._setThumbStatus(n._getFrame(p),"Error")}},_previewFile:function(e,i,n,r,o){if(this.showPreview){var s,a=this,l=t.getFileName(i),c=o.type,u=o.name,d=a._parseFileType(c,l),h=a.$preview,p=i.size||0,f="image"===d?n.target.result:r,m=a.fileManager.getId(i),g=a._getThumbId(m);s=a._generatePreviewTemplate(d,f,l,c,g,m,!1,p,o.filename),a._clearDefaultPreview(),a._addToPreview(h,s);var v=a._getFrame(g);a._validateImageOrientation(v.find("img"),i,g,m,u,c,p,f),a._setThumbAttr(g,u,p),a._initSortable()}},_setThumbAttr:function(e,t,i,n){var r=this,o=r._getFrame(e);o.length&&(i=i&&i>0?r._getSize(i):"",o.data({caption:t,size:i,description:n||""}))},_setInitThumbAttr:function(){var e,i,n,r,o,s=this,a=s.previewCache.data,l=s.previewCache.count(!0);if(0!==l)for(var c=0;c<l;c++)e=a.config[c],o=s.previewInitId+"-"+t.INIT_FLAG+c,i=t.ifSet("caption",e,t.ifSet("filename",e)),n=t.ifSet("size",e),r=t.ifSet("description",e),s._setThumbAttr(o,i,n,r)},_slugDefault:function(e){return t.isEmpty(e,!0)?"":String(e).replace(/[\[\]\/\{}:;#%=\(\)\*\+\?\\\^\$\|<>&"']/g,"_")},_updateFileDetails:function(e){var i,n,r,o,s=this,a=s.$element,l=t.isIE(9)&&t.findFileName(a.val())||a[0].files[0]&&a[0].files[0].name;i=!l&&s.fileManager.count()>0?s.fileManager.getFirstFile().nameFmt:l?s.slug(l):"_",n=s.isAjaxUpload?s.fileManager.count():e,o=s.previewCache.count(!0)+n,r=1===n?i:s._getMsgSelected(o,!s.isAjaxUpload&&!s.isError),s.isError?(s.$previewContainer.removeClass("file-thumb-loading"),s._initCapStatus(),s.$previewStatus.html(""),s.$captionContainer.removeClass("icon-visible")):s._showFileIcon(),s._setCaption(r,s.isError),s.$container.removeClass("file-input-new file-input-ajax-new"),s._raise("fileselect",[e,i]),s.previewCache.count(!0)&&s._initPreviewActions()},_setThumbStatus:function(e,i){var n=this;if(n.showPreview){var r="indicator"+i,o=r+"Title",s="file-preview-"+i.toLowerCase(),a=e.find(".file-upload-indicator"),l=n.fileActionSettings;e.removeClass("file-preview-success file-preview-error file-preview-paused file-preview-loading"),"Success"===i&&e.find(".file-drag-handle").remove(),t.setHtml(a,l[r]),a.attr("title",l[o]),e.addClass(s),"Error"!==i||n.retryErrorUploads||e.find(".kv-file-upload").attr("disabled",!0)}},_setProgressCancelled:function(){var e=this;e._setProgress(101,e.$progress,e.msgCancelled)},_setProgress:function(e,i,n,r){var o=this;if((i=i||o.$progress).length){var s,a=Math.min(e,100),l=o.progressUploadThreshold,c=e<=100?o.progressTemplate:o.progressCompleteTemplate,u=a<100?o.progressTemplate:n?o.paused?o.progressPauseTemplate:o.progressErrorTemplate:c;e>=100&&(r=""),t.isEmpty(u)||(r=r||"",s=(s=l&&a>l&&e<=100?u.setTokens({percent:l,status:o.msgUploadThreshold}):u.setTokens({percent:a,status:e>100?o.msgUploadEnd:a+"%"})).setTokens({stats:r}),t.setHtml(i,s),n&&t.setHtml(i.find('[role="progressbar"]'),n))}},_hasFiles:function(){var e=this.$element[0];return!!(e&&e.files&&e.files.length)},_setFileDropZoneTitle:function(){var e,i=this,n=i.$container.find(".file-drop-zone"),r=i.dropZoneTitle;i.isClickable&&(e=t.isEmpty(i.$element.attr("multiple"))?i.fileSingle:i.filePlural,r+=i.dropZoneClickTitle.replace("{files}",e)),n.find("."+i.dropZoneTitleClass).remove(),!i.showPreview||0===n.length||i.fileManager.count()>0||!i.dropZoneEnabled||i.previewCache.count()>0||!i.isAjaxUpload&&i._hasFiles()||(0===n.find(t.FRAMES).length&&t.isEmpty(i.defaultPreviewContent)&&(n.prepend(t.cspBuffer.stash('<div class="'+i.dropZoneTitleClass+'">'+r+"</div>")),t.cspBuffer.apply(n)),i.$container.removeClass("file-input-new"),i.isAjaxUpload&&t.addCss(i.$container,"file-input-ajax-new"))},_getStats:function(e){var i,n,r=this;return r.showUploadStats&&e&&e.bitrate?(n=r._getLayoutTemplate("stats"),i=e.elapsed&&e.bps?r.msgPendingTime.setTokens({time:t.getElapsed(Math.ceil(e.pendingBytes/e.bps))}):r.msgCalculatingTime,n.setTokens({uploadSpeed:e.bitrate,pendingTime:i})):""},_setResumableProgress:function(e,t,i){var n=this,r=n.resumableManager,o=i?r:n,s=i?i.find(".file-thumb-progress"):null;0===o.lastProgress&&(o.lastProgress=e),e<o.lastProgress&&(e=o.lastProgress),n._setProgress(e,s,null,n._getStats(t)),o.lastProgress=e},_toggleResumableProgress:function(e,i){var n=this.$progress;n&&n.length&&t.setHtml(n,e.setTokens({percent:101,status:i,stats:""}))},_setFileUploadStats:function(i,n,r){var o=this,s=o.$progress;if(o.showPreview||s&&s.length){var a,l=o.fileManager,c=o.resumableManager,u=l.getThumb(i),d=0,h=l.getTotalSize(),p=e.extend(!0,{},r);if(o.enableResumableUpload){var f,m=r.loaded,g=c.getUploadedSize(),v=c.file.size;m+=g,f=l.uploadedSize+m,n=t.round(100*m/v),r.pendingBytes=v-g,o._setResumableProgress(n,r,u),a=Math.floor(100*f/h),p.pendingBytes=h-f,o._setResumableProgress(a,p)}else l.setProgress(i,n),s=u&&u.length?u.find(".file-thumb-progress"):null,o._setProgress(n,s,null,o._getStats(r)),e.each(l.stats,(function(e,t){d+=t.loaded})),p.pendingBytes=h-d,a=t.round(d/h*100),o._setProgress(a,null,null,o._getStats(p))}},_validateMinCount:function(){var e=this,t=e.isAjaxUpload?e.fileManager.count():e._inputFileCount();return!(e.validateInitialCount&&e.minFileCount>0&&e._getFileCount(t-1)<e.minFileCount)||(e._noFilesError({}),!1)},_getFileCount:function(e,t){var i=this;return void 0===t&&(t=i.validateInitialCount&&!i.overwriteInitial),t&&(e+=i.previewCache.count(!0)),e},_getFileId:function(e){return t.getFileId(e,this.generateFileId)},_getFileName:function(e,i){var n=this,r=t.getFileName(e);return r?n.slug(r):i},_getFileNames:function(e){return this.filenames.filter((function(t){return e?void 0!==t:null!=t}))},_setPreviewError:function(e,t){var i=this,n=i.removeFromPreviewOnError&&!i.retryErrorUploads;t&&!n||i.fileManager.remove(e),i.showPreview&&(n?e.remove():(i._setThumbStatus(e,"Error"),i._refreshUploadButton(e)))},_refreshUploadButton:function(e){var i=this,n=e.find(".kv-file-upload"),r=i.fileActionSettings,o=r.uploadIcon,s=r.uploadTitle;n.length&&(i.retryErrorUploads&&(o=r.uploadRetryIcon,s=r.uploadRetryTitle),n.attr("title",s),t.setHtml(n,o))},_isValidSize:function(e,i,n,r,o,s){var a,l,c,u=this,d=u[("Small"===e?"min":"max")+"Image"+i];return!(!t.isEmpty(d)&&n.length)||(c=n[0],l="Width"===i?c.naturalWidth||c.width:c.naturalHeight||c.height,("Small"===e?l>=d:l<=d)||(a=u["msgImage"+i+e]||'Image "{name}" has a size validation error (limit "{size}").',u._showFileError(a.setTokens({name:o,size:d,dimension:l}),s),u._setPreviewError(r),u.fileManager.remove(r),u._clearFileInput(),!1))},_getExifObj:function(e){var i,n=this,r=t.logMessages.exifWarning;if("data:image/jpeg;base64,"===e.slice(0,23)||"data:image/jpg;base64,"===e.slice(0,22)){try{i=window.piexif?window.piexif.load(e):null}catch(e){i=null,r=e&&e.message||""}return!i&&n.showExifErrorLog&&n._log(t.logMessages.badExifParser,{details:r}),i}i=null},setImageOrientation:function(i,n,r,o){var s,a,l,c=this,u=!i||!i.length,d=!n||!n.length,h=!1,p=u&&o&&"image"===o.attr("data-template");u&&d||(l="load.fileinputimageorient",p?(i=n,n=null,i.css(c.previewSettings.image),a=t.createDiv().appendTo(o.find(".kv-file-content")),s=e(document.createElement("span")).insertBefore(i),i.css("visibility","hidden").removeClass("file-zoom-detail").appendTo(a)):h=!i.is(":visible"),i.off(l).on(l,(function(){h&&(c.$preview.removeClass("hide-content"),o.find(".kv-file-content").css("visibility","hidden"));var e=i[0],l=n&&n.length?n[0]:null,u=e.offsetHeight,d=e.offsetWidth,f=t.getRotation(r);if(h&&(o.find(".kv-file-content").css("visibility","visible"),c.$preview.addClass("hide-content")),i.data("orientation",r),l&&n.data("orientation",r),r<5)return t.setTransform(e,f),void t.setTransform(l,f);var m=Math.atan(d/u),g=Math.sqrt(Math.pow(u,2)+Math.pow(d,2)),v=g?u/Math.cos(Math.PI/2+m)/g:1,_=" scale("+Math.abs(v)+")";t.setTransform(e,f+_),t.setTransform(l,f+_),p&&(i.css("visibility","visible").insertAfter(s).addClass("file-zoom-detail"),s.remove(),a.remove())})))},_validateImageOrientation:function(i,n,r,o,s,a,l,c){var u,d,h=this,p=null,f=h.autoOrientImage;if(p=h._getExifObj(c),h.canOrientImage)return i.css("image-orientation",f?"from-image":"none"),void h._validateImage(r,o,s,a,l,c,p);d=t.getZoomSelector(r," img"),(u=p?p["0th"][piexif.ImageIFD.Orientation]:null)?(h.setImageOrientation(i,e(d),u,h._getFrame(r)),h._raise("fileimageoriented",{$img:i,file:n}),h._validateImage(r,o,s,a,l,c,p)):h._validateImage(r,o,s,a,l,c,p)},_validateImage:function(e,t,i,n,r,o,s){var a,l,c,u=this,d=u.$preview,h=u._getFrame(e),p=h.attr("data-fileindex"),f=h.find("img");i=i||"Untitled",f.one("load",(function(){f.data("validated")||(f.data("validated",!0),l=h.width(),c=d.width(),l>c&&f.css("width","100%"),a={ind:p,id:e,fileId:t},setTimeout((function(){var l,c;l=u._isValidSize("Small","Width",f,h,i,a),c=u._isValidSize("Small","Height",f,h,i,a),u.resizeImage||(l=l&&u._isValidSize("Large","Width",f,h,i,a),c=c&&u._isValidSize("Large","Height",f,h,i,a)),u._raise("fileimageloaded",[e]),h.data("exif",s),l&&c&&(u.fileManager.addImage(t,{ind:p,img:f,thumb:h,pid:e,typ:n,siz:r,validated:!1,imgData:o,exifObj:s}),u._validateAllImages())}),u.processDelay))})).one("error",(function(){u._raise("fileimageloaderror",[e])}))},_validateAllImages:function(){var t,i=this,n={val:0},r=i.fileManager.getImageCount(),o=i.resizeIfSizeMoreThan;r===i.fileManager.totalImages&&(i._raise("fileimagesloaded"),i.resizeImage&&e.each(i.fileManager.loadedImages,(function(e,s){s.validated||((t=s.siz)&&t>o*i.bytesToKB&&i._getResizedImage(e,s,n,r),s.validated=!0)})))},_getResizedImage:function(i,n,r,o){var s,a,l,c,u,d,h,p,f,m=this,g=e(n.img)[0],v=g.naturalWidth,_=g.naturalHeight,b=1,y=m.maxImageWidth||v,w=m.maxImageHeight||_,x=!(!v||!_),C=m.imageCanvas,T=m.imageCanvasContext,k=n.typ,E=n.pid,S=n.ind,A=n.thumb,P=n.exifObj;if(u=function(e,t,i){m.isAjaxUpload?m._showFileError(e,t,i):m._showError(e,t,i),m._setPreviewError(A)},p={id:E,index:S,fileId:i},f=[i,E,S],(h=m.fileManager.getFile(i))&&x&&!(v<=y&&_<=w)||(x&&h&&m._raise("fileimageresized",f),r.val++,r.val===o&&m._raise("fileimagesresized"),x)){k=k||m.resizeDefaultImageType,a=v>y,l=_>w,b="width"===m.resizePreference?a?y/v:l?w/_:1:l?w/_:a?y/v:1,m._resetCanvas(),v*=b,_*=b,C.width=v,C.height=_;try{T.drawImage(g,0,0,v,_),c=C.toDataURL(k,m.resizeQuality),P&&(d=window.piexif.dump(P),c=window.piexif.insert(d,c)),s=t.dataURI2Blob(c),m.fileManager.setFile(i,s),m._raise("fileimageresized",f),r.val++,r.val===o&&m._raise("fileimagesresized",[void 0,void 0]),s instanceof Blob||u(m.msgImageResizeError,p,"fileimageresizeerror")}catch(e){r.val++,r.val===o&&m._raise("fileimagesresized",[void 0,void 0]),u(m.msgImageResizeException.replace("{errors}",e.message),p,"fileimageresizeexception")}}else u(m.msgImageResizeError,p,"fileimageresizeerror")},_showProgress:function(){var e=this;e.$progress&&e.$progress.length&&e.$progress.show()},_hideProgress:function(){var e=this;e.$progress&&e.$progress.length&&e.$progress.hide()},_initBrowse:function(e){var i=this,n=i.$element;i.showBrowse?i.$btnFile=e.find(".btn-file").append(n):(n.appendTo(e).attr("tabindex",-1),t.addCss(n,"file-no-browse"))},_initClickable:function(){var i,n,r=this;r.isClickable&&(i=r.$dropZone,r.isAjaxUpload||(n=r.$preview.find(".file-default-preview")).length&&(i=n),t.addCss(i,"clickable"),i.attr("tabindex",-1),r._handler(i,"click",(function(t){var n=e(t.target);r.$errorContainer.is(":visible")||n.parents(".file-preview-thumbnails").length&&!n.parents(".file-default-preview").length||(r.$element.data("zoneClicked",!0).trigger("click"),i.blur())})))},_initCaption:function(){var e=this,i=e.initialCaption||"";return e.overwriteInitial||t.isEmpty(i)?(e.$caption.val(""),!1):(e._setCaption(i),!0)},_setCaption:function(i,n){var r,o,s,a,l,c,u=this;if(u.$caption.length){if(u.$captionContainer.removeClass("icon-visible"),n)r=e("<div>"+u.msgValidationError+"</div>").text(),(a=u.fileManager.count())?(c=u.fileManager.getFirstFile(),l=1===a&&c?c.nameFmt:u._getMsgSelected(a)):l=u._getMsgSelected(u.msgNo),o=t.isEmpty(i)?l:i,s='<span class="'+u.msgValidationErrorClass+'">'+u.msgValidationErrorIcon+"</span>";else{if(t.isEmpty(i))return void u.$caption.attr("title","");o=r=e("<div>"+i+"</div>").text(),s=u._getLayoutTemplate("fileIcon")}u.$captionContainer.addClass("icon-visible"),u.$caption.attr("title",r).val(o),t.setHtml(u.$captionIcon,s)}},_createContainer:function(){var e=this,i={class:"file-input file-input-new"+(e.rtl?" kv-rtl":"")},n=t.createElement(t.cspBuffer.stash(e._renderMain()));return t.cspBuffer.apply(n),n.insertBefore(e.$element).attr(i),e._initBrowse(n),e.theme&&n.addClass("theme-"+e.theme),n},_refreshContainer:function(){var e=this,i=e.$container;e.$element.insertAfter(i),t.setHtml(i,e._renderMain()),e._initBrowse(i),e._validateDisabled()},_validateDisabled:function(){var e=this;e.$caption.attr({readonly:e.isDisabled})},_setTabIndex:function(e,t){var i=this.tabIndexConfig[e];return t.setTokens({tabIndexConfig:null==i?"":'tabindex="'+i+'"'})},_renderMain:function(){var e=this,t=e.dropZoneEnabled?" file-drop-zone":"file-drop-disabled",i=e.showClose?e._getLayoutTemplate("close"):"",n=e.showPreview?e._getLayoutTemplate("preview").setTokens({class:e.previewClass,dropClass:t}):"",r=e.isDisabled?e.captionClass+" file-caption-disabled":e.captionClass,o=e.captionTemplate.setTokens({class:r+" kv-fileinput-caption"});return o=e._setTabIndex("caption",o),e.mainTemplate.setTokens({class:e.mainClass+(!e.showBrowse&&e.showCaption?" no-browse":""),inputGroupClass:e.inputGroupClass,preview:n,close:i,caption:o,upload:e._renderButton("upload"),remove:e._renderButton("remove"),cancel:e._renderButton("cancel"),pause:e._renderButton("pause"),browse:e._renderButton("browse")})},_renderButton:function(e){var i=this,n=i._getLayoutTemplate("btnDefault"),r=i[e+"Class"],o=i[e+"Title"],s=i[e+"Icon"],a=i[e+"Label"],l=i.isDisabled?" disabled":"",c="button";switch(e){case"remove":if(!i.showRemove)return"";break;case"cancel":if(!i.showCancel)return"";r+=" kv-hidden";break;case"pause":if(!i.showPause)return"";r+=" kv-hidden";break;case"upload":if(!i.showUpload)return"";i.isAjaxUpload&&!i.isDisabled?n=i._getLayoutTemplate("btnLink").replace("{href}",i.uploadUrl):c="submit";break;case"browse":if(!i.showBrowse)return"";n=i._getLayoutTemplate("btnBrowse");break;default:return""}return n=i._setTabIndex(e,n),r+="browse"===e?" btn-file":" fileinput-"+e+" fileinput-"+e+"-button",t.isEmpty(a)||(a=' <span class="'+i.buttonLabelClass+'">'+a+"</span>"),n.setTokens({type:c,css:r,title:o,status:l,icon:s,label:a})},_renderThumbProgress:function(){var e=this;return'<div class="file-thumb-progress kv-hidden">'+e.progressInfoTemplate.setTokens({percent:101,status:e.msgUploadBegin,stats:""})+"</div>"},_renderFileFooter:function(e,i,n,r,o){var s,a,l=this,c=l.fileActionSettings,u=c.showRemove,d=c.showDrag,h=c.showUpload,p=c.showRotate,f=c.showZoom,m=l._getLayoutTemplate("footer"),g=l._getLayoutTemplate("indicator"),v=o?c.indicatorError:c.indicatorNew,_=o?c.indicatorErrorTitle:c.indicatorNewTitle,b=g.setTokens({indicator:v,indicatorTitle:_});return a={type:e,caption:i,size:n=l._getSize(n),width:r,progress:"",indicator:b},l.isAjaxUpload?(a.progress=l._renderThumbProgress(),a.actions=l._renderFileActions(a,h,!1,u,p,f,d,!1,!1,!1)):a.actions=l._renderFileActions(a,!1,!1,!1,!1,f,d,!1,!1,!1),s=m.setTokens(a),s=t.replaceTags(s,l.previewThumbTags)},_renderFileActions:function(e,t,i,n,r,o,s,a,l,c,u,d,h){var p=this;if(!e.type&&u&&(e.type="image"),p.enableResumableUpload?t=!1:"function"==typeof t&&(t=t(e)),"function"==typeof i&&(i=i(e)),"function"==typeof n&&(n=n(e)),"function"==typeof o&&(o=o(e)),"function"==typeof s&&(s=s(e)),"function"==typeof r&&(r=r(e)),!(t||i||n||r||o||s))return"";var f,m=!1===l?"":' data-url="'+l+'"',g="",v="",_="",b=!1===c?"":' data-key="'+c+'"',y="",w="",x="",C=p._getLayoutTemplate("actions"),T=p.fileActionSettings,k=p.otherActionButtons.setTokens({dataKey:b,key:c}),E=a?T.removeClass+" disabled":T.removeClass;return n&&(y=p._getLayoutTemplate("actionDelete").setTokens({removeClass:E,removeIcon:T.removeIcon,removeTitle:T.removeTitle,dataUrl:m,dataKey:b,key:c})),r&&(_=p._getLayoutTemplate("actionRotate").setTokens({rotateClass:T.rotateClass,rotateIcon:T.rotateIcon,rotateTitle:T.rotateTitle})),t&&(w=p._getLayoutTemplate("actionUpload").setTokens({uploadClass:T.uploadClass,uploadIcon:T.uploadIcon,uploadTitle:T.uploadTitle})),i&&(x=(x=p._getLayoutTemplate("actionDownload").setTokens({downloadClass:T.downloadClass,downloadIcon:T.downloadIcon,downloadTitle:T.downloadTitle,downloadUrl:d||p.initialPreviewDownloadUrl})).setTokens({filename:h,key:c})),o&&(g=p._getLayoutTemplate("actionZoom").setTokens({zoomClass:T.zoomClass,zoomIcon:T.zoomIcon,zoomTitle:T.zoomTitle})),s&&u&&(f="drag-handle-init "+T.dragClass,v=p._getLayoutTemplate("actionDrag").setTokens({dragClass:f,dragTitle:T.dragTitle,dragIcon:T.dragIcon})),C.setTokens({delete:y,upload:w,download:x,rotate:_,zoom:g,drag:v,other:k})},_browse:function(e){var t=this;e&&e.isDefaultPrevented()||!t._raise("filebrowse")||(t.isError&&!t.isAjaxUpload&&t.clear(),t.focusCaptionOnBrowse&&t.$captionContainer.focus())},_change:function(i){var n=this;if(e(document.body).off("focusin.fileinput focusout.fileinput"),n.changeTriggered)n._toggleLoading("hide");else{n._toggleLoading("show");var r,o,s,a,l=n.$element,c=arguments.length>1,u=n.isAjaxUpload,d=c?arguments[1]:l[0].files,h=n.fileManager.count(),p=t.isEmpty(l.attr("multiple")),f=!u&&p?1:n.maxFileCount,m=n.maxTotalFileCount,g=m>0&&m>f,v=p&&h>0,_=function(t,i,r,o){var s=e.extend(!0,{},n._getOutData(null,{},{},d),{id:r,index:o}),a={id:r,index:o,file:i,files:d};return n.isPersistentError=!0,n._toggleLoading("hide"),u?n._showFileError(t,s):n._showError(t,a)},b=function(e,t,i){var r=i?n.msgTotalFilesTooMany:n.msgFilesTooMany;r=r.replace("{m}",t).replace("{n}",e),n.isError=_(r,null,null,null),n.$captionContainer.removeClass("icon-visible"),n._setCaption("",!0),n.$container.removeClass("file-input-new file-input-ajax-new")};if(n.reader=null,n._resetUpload(),n._hideFileIcon(),n.dropZoneEnabled&&n.$container.find(".file-drop-zone ."+n.dropZoneTitleClass).remove(),u||(d=i.target&&void 0===i.target.files?i.target.value?[{name:i.target.value.replace(/^.+\\/,"")}]:[]:i.target.files||{}),r=d,t.isEmpty(r)||0===r.length)return u||n.clear(),void n._raise("fileselectnone");if(n._resetErrors(),a=r.length,s=u?n.fileManager.count()+a:a,o=n._getFileCount(s,!g&&void 0),f>0&&o>f){if(!n.autoReplace||a>f)return void b(n.autoReplace&&a>f?a:o,f);o>f&&n._resetPreviewThumbs(u)}else{if(g&&(o=n._getFileCount(s,!0),m>0&&o>m)){if(!n.autoReplace||a>f)return void b(n.autoReplace&&a>m?a:o,m,!0);o>f&&n._resetPreviewThumbs(u)}!u||v?(n._resetPreviewThumbs(!1),v&&n.clearFileStack()):!u||0!==h||n.previewCache.count(!0)&&!n.overwriteInitial||n._resetPreviewThumbs(!0)}n.autoReplace&&n._getThumbs().each((function(){var t=e(this);(t.hasClass("file-preview-success")||t.hasClass("file-preview-error"))&&t.remove()})),n.readFiles(r),n._toggleLoading("hide")}},_abort:function(t){var i,n=this;return n.ajaxAborted&&"object"==typeof n.ajaxAborted&&void 0!==n.ajaxAborted.message?((i=e.extend(!0,{},n._getOutData(null),t)).abortData=n.ajaxAborted.data||{},i.abortMessage=n.ajaxAborted.message,n._setProgress(101,n.$progress,n.msgCancelled),n._showFileError(n.ajaxAborted.message,i,"filecustomerror"),n.cancel(),n.unlock(),!0):!!n.ajaxAborted},_resetFileStack:function(){var t=this,i=0;t._getThumbs().each((function(){var n=e(this),r=n.attr("data-fileindex"),o=n.attr("id");"-1"!==r&&-1!==r&&(t._getThumbFile(n)?n.attr({"data-fileindex":"-1"}):(n.attr({"data-fileindex":i}),i++),t._getZoom(o).attr({"data-fileindex":n.attr("data-fileindex")}))}))},_isFileSelectionValid:function(e){var t=this;return e=e||0,t.required&&!t.getFilesCount()?(t.$errorContainer.html(""),t._showFileError(t.msgFileRequired),!1):!(t.minFileCount>0&&t._getFileCount(e)<t.minFileCount)||(t._noFilesError({}),!1)},_canPreview:function(e){var i=this;if(!(e&&i.showPreview&&i.$preview&&i.$preview.length))return!1;var n,r,o,s=e.name||"",a=e.type||"",l=(e.size||0)/i.bytesToKB,c=i._parseFileType(a,s),u=i.allowedPreviewTypes,d=i.allowedPreviewMimeTypes,h=i.allowedPreviewExtensions||[],p=i.disabledPreviewTypes,f=i.disabledPreviewMimeTypes,m=i.disabledPreviewExtensions||[],g=i.maxFilePreviewSize&&parseFloat(i.maxFilePreviewSize)||0,v=new RegExp("\\.("+h.join("|")+")$","i"),_=new RegExp("\\.("+m.join("|")+")$","i");return n=!u||-1!==u.indexOf(c),r=!d||-1!==d.indexOf(a),o=!h.length||t.compare(s,v),!(p&&-1!==p.indexOf(c)||f&&-1!==f.indexOf(a)||m.length&&t.compare(s,_)||g&&!isNaN(g)&&l>g)&&(n||r||o)},addToStack:function(e,t){var i=this;i.stackIsUpdating=!0,i.fileManager.add(e,t),i._refreshPreview(),i.stackIsUpdating=!1},clearFileStack:function(){var e=this;return e.fileManager.clear(),e._initResumableUpload(),e.enableResumableUpload?(null===e.showPause&&(e.showPause=!0),null===e.showCancel&&(e.showCancel=!1)):(e.showPause=!1,null===e.showCancel&&(e.showCancel=!0)),e.$element},getFileStack:function(){return this.fileManager.stack},getFileList:function(){return this.fileManager.list()},getFilesSize:function(){return this.fileManager.getTotalSize()},getFilesCount:function(e){var t=this,i=t.isAjaxUpload?t.fileManager.count():t._inputFileCount();return e&&(i+=t.previewCache.count(!0)),t._getFileCount(i)},_initCapStatus:function(e){var t=this.$caption;t.removeClass("is-valid file-processing"),e&&("processing"===e?t.addClass("file-processing"):t.addClass("is-valid"))},_toggleLoading:function(e){var i=this;t.setHtml(i.$previewStatus,"hide"===e?"":i.msgProcessing),i.$container.removeClass("file-thumb-loading"),i._initCapStatus("hide"===e?"":"processing"),"hide"!==e&&(i.dropZoneEnabled&&i.$container.find(".file-drop-zone ."+i.dropZoneTitleClass).remove(),i.$container.addClass("file-thumb-loading"))},_initFileSelected:function(){var t=this,i=t.$element,n=e(document.body),r="focusin.fileinput focusout.fileinput";n.length?n.off(r).on("focusout.fileinput",(function(){t._toggleLoading("show")})).on("focusin.fileinput",(function(){setTimeout((function(){i.val()||t._setFileDropZoneTitle(),n.off(r),t._toggleLoading("hide")}),2500)})):t._toggleLoading("hide")},readFiles:function(i){this.reader=new FileReader;var n,r=this,o=r.reader,s=r.$previewContainer,a=r.$previewStatus,l=r.msgLoading,c=r.msgProgress,u=r.previewInitId,d=i.length,h=r.fileTypeSettings,p=r.allowedFileTypes,f=p?p.length:0,m=r.allowedFileExtensions,g=t.isEmpty(m)?"":m.join(", "),v=function(t,o,s,a,l){var c,u=e.extend(!0,{},r._getOutData(null,{},{},i),{id:s,index:a,fileId:l}),h={id:s,index:a,fileId:l,file:o,files:i};Object.values(i).forEach((e=>{r._previewDefault(e,!0)})),c=r._getFrame(s,!0),r._toggleLoading("hide"),r.isAjaxUpload?setTimeout((function(){n(a+1)}),r.processDelay):(r.unlock(),d=0),r.removeFromPreviewOnError&&c.length?c.remove():(r._initFileActions(),c.find(".kv-file-upload").remove()),r.isPersistentError=!0,r.isError=r.isAjaxUpload?r._showFileError(t,u):r._showError(t,h),r._updateFileDetails(d)};r.fileManager.clearImages(),e.each(i,(function(e,t){var i=r.fileTypeSettings.image;i&&i(t.type)&&r.fileManager.totalImages++})),(n=function(_){var b,y=r.$errorContainer,w=r.fileManager;if(_>=d)return r.unlock(),r.duplicateErrors.length&&(b="<li>"+r.duplicateErrors.join("</li><li>")+"</li>",0===y.find("ul").length?t.setHtml(y,r.errorCloseButton+"<ul>"+b+"</ul>"):(y.find("ul").append(t.cspBuffer.stash(b)),t.cspBuffer.apply(y)),y.fadeIn(r.fadeDelay),r._handler(y.find(".kv-error-close"),"click",(function(){y.fadeOut(r.fadeDelay)})),r.duplicateErrors=[]),r.isAjaxUpload?(r._raise("filebatchselected",[w.stack]),0!==w.count()||r.isError||r.reset()):r._raise("filebatchselected",[i]),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void a.html("");r.lock(!0);var x,C,T,k,E,S,A,P,I,D,F,M,L,j,O,$,z=i[_],N=z&&z.size||0,R=r._getSize(N,!0),B=h.image,U=N/r.bytesToKB,H="",q=0,W="",V=!1,Z=0;if($=function(e){e=e||z,x=M=r._getFileId(z),C=u+"-"+x,F=t.createObjectURL(e),D=r._getFileName(z,"")},O=function(){var e=!!w.loadedImages[x],i=c.setTokens({index:_+1,files:d,percent:50,name:D});setTimeout((function(){t.setHtml(a,i),r._updateFileDetails(d),r.getFilesCount(!0)>0&&r.getFrames(":visible")&&r.$dropZone.find("."+r.dropZoneTitleClass).remove(),n(_+1)}),r.processDelay),r._raise("fileloaded",[z,C,x,_,o])&&r.isAjaxUpload?e||w.add(z):e&&w.removeFile(x)},z){if($(),f>0)for(k=0;k<f;k++)P=p[k],I=r.msgFileTypes[P]||P,W+=0===k?I:", "+I;if(!1!==D){if(0===D.length)return E=r.msgInvalidFileName.replace("{name}",t.htmlEncode(t.getFileName(z),"[unknown]")),void v(E,z,C,_,M);if(t.isEmpty(m)||(H=new RegExp("\\.("+m.join("|")+")$","i")),r.isAjaxUpload&&w.exists(M)||r._getFrame(C,!0).length){var K={id:C,index:_,fileId:M,file:z,files:i};return E=r.msgDuplicateFile.setTokens({name:D,size:R}),void(r.isAjaxUpload?(r.stackIsUpdating||(r.duplicateErrors.push(E),r.isDuplicateError=!0,r._raise("fileduplicateerror",[z,M,D,R,C,_])),n(_+1),r._updateFileDetails(d)):(r._showError(E,K),r.unlock(),d=0,r._clearFileInput(),r.reset(),r._updateFileDetails(d)))}if(r.maxMultipleFileSize>0&&i.length>1){var X=[],Y=0;if(Object.values(i).forEach((e=>{Y+=e.size/r.bytesToKB,X.push(e.name)})),Y>r.maxMultipleFileSize)return E=r.msgMultipleSizeTooLarge.setTokens({name:X,size:r._getSize(Y,!0),maxSize:r._getSize(r.maxMultipleFileSize*r.bytesToKB,!0)}),void v(E,z,C,_,M)}else if(r.maxFileSize>0&&U>r.maxFileSize)return E=r.msgSizeTooLarge.setTokens({name:D,size:R,maxSize:r._getSize(r.maxFileSize*r.bytesToKB,!0)}),void v(E,z,C,_,M);if(null!==r.minFileSize&&U<=t.getNum(r.minFileSize))return E=r.msgSizeTooSmall.setTokens({name:D,size:R,minSize:r._getSize(r.minFileSize*r.bytesToKB,!0)}),void v(E,z,C,_,M);if(!t.isEmpty(p)&&t.isArray(p)){for(k=0;k<p.length;k+=1)A=p[k],q+=(j=h[A])&&"function"==typeof j&&j(z.type,t.getFileName(z))?1:0;if(0===q)return E=r.msgInvalidFileType.setTokens({name:D,types:W}),void v(E,z,C,_,M)}if(0===q&&!t.isEmpty(m)&&t.isArray(m)&&!t.isEmpty(H)&&(S=t.compare(D,H),0===(q+=t.isEmpty(S)?0:S.length)))return E=r.msgInvalidFileExtension.setTokens({name:D,extensions:g}),void v(E,z,C,_,M);if(!r._canPreview(z))return L=r._raise("filebeforeload",[z,_,o]),r.isAjaxUpload&&L&&w.add(z),r.showPreview&&L&&(s.addClass("file-thumb-loading"),r._initCapStatus("processing"),r._previewDefault(z),r._initFileActions()),void setTimeout((function(){L&&r._updateFileDetails(d),n(_+1),r._raise("fileloaded",[z,C,x,_])}),10);B(z.type,D),t.setHtml(a,l.replace("{index}",_+1).replace("{files}",d)),s.addClass("file-thumb-loading"),r._initCapStatus("processing"),o.onerror=function(e){r._errorHandler(e,D)},o.onload=function(i){var n,l,c,u,d,p,f=[],m=function(e,c){if(t.isEmpty(e)&&(d=t.arrayBuffer2String(o.result),e=t.isSvg(d)?"image/svg+xml":t.getMimeType(n,d,z.type)),l={name:D,type:e||""},c&&"undefined"!=typeof File)try{var u=l.filename=D+"."+c;T=new File([z],u,{type:l.type}),$(T)}catch(e){}if(B(e,"")){var h=new FileReader;return h.onerror=function(e){r._errorHandler(e,D)},h.onload=function(e){if(r.isAjaxUpload&&!r._raise("filebeforeload",[z,_,o]))return V=!0,r._resetCaption(),o.abort(),a.html(""),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void r.enable();r._previewFile(_,z,e,F,l),r._initFileActions(),O()},void h.readAsDataURL(z)}if(r.isAjaxUpload&&!r._raise("filebeforeload",[z,_,o]))return V=!0,r._resetCaption(),o.abort(),a.html(""),s.removeClass("file-thumb-loading"),r._initCapStatus("valid"),void r.enable();r._previewFile(_,z,i,F,l),r._initFileActions(),O()};if(p=z.type,l={name:D,type:p},e.each(h,(function(e,t){"object"!==e&&"other"!==e&&"function"==typeof t&&t(p,D)&&Z++})),"undefined"!=typeof FileTypeParser)c=new Uint8Array(i.target.result),(new FileTypeParser).parse(c).then((function(e){m(e&&e.mime||p,e&&e.ext||"")}));else{if(0===Z){for(c=new Uint8Array(i.target.result),k=0;k<c.length;k++)u=c[k].toString(16),f.push(u);n=f.join("").toLowerCase().substring(0,8),p=t.getMimeType(n,"","")}m(p)}},o.onprogress=function(e){if(e.lengthComputable){var i=e.loaded/e.total*100,n=Math.ceil(i);E=c.setTokens({index:_+1,files:d,percent:n,name:D}),setTimeout((function(){V||t.setHtml(a,E)}),r.processDelay)}},o.readAsArrayBuffer(z)}else n(_+1)}})(0),r._updateFileDetails(d)},lock:function(e){var t=this,i=t.$container;return t._resetErrors(),t.disable(),!e&&t.showCancel&&i.find(".fileinput-cancel").show(),!e&&t.showPause&&i.find(".fileinput-pause").show(),t._initCapStatus("processing"),t._raise("filelock",[t.fileManager.stack,t._getExtraData()]),t.$element},unlock:function(e){var t=this,i=t.$container;return void 0===e&&(e=!0),t.enable(),i.removeClass("is-locked"),t.showCancel&&i.find(".fileinput-cancel").hide(),t.showPause&&i.find(".fileinput-pause").hide(),e&&t._resetFileStack(),t._initCapStatus(),t._raise("fileunlock",[t.fileManager.stack,t._getExtraData()]),t.$element},resume:function(){var e=this,t=e.fileManager,i=!1,n=e.resumableManager;return t.bpsLog=[],t.bps=0,e.enableResumableUpload?(e.paused?e._toggleResumableProgress(e.progressPauseTemplate,e.msgUploadResume):i=!0,e.paused=!1,i&&e._toggleResumableProgress(e.progressInfoTemplate,e.msgUploadBegin),setTimeout((function(){n.upload()}),e.processDelay),e.$element):e.$element},paste:function(e){var t=this,i=e.clipboardData||e.originalEvent.clipboardData;return t._addFilesFromSystem(e,i,"filePaste"),t.$element},pause:function(){var t,i=this,n=i.resumableManager,r=i.ajaxRequests,o=r.length,s=n.getProgress(),a=i.fileActionSettings,l=i.taskManager.getPool(n.id);if(!i.enableResumableUpload)return i.$element;if(l&&l.cancel(),i._raise("fileuploadpaused",[i.fileManager,n]),o>0)for(t=0;t<o;t+=1)i.paused=!0,r[t].abort();return i.showPreview&&i._getThumbs().each((function(){var t,n=e(this),r=i._getLayoutTemplate("stats"),o=n.find(".file-upload-indicator");n.removeClass("file-uploading"),o.attr("title")===a.indicatorLoadingTitle&&(i._setThumbStatus(n,"Paused"),t=r.setTokens({pendingTime:i.msgPaused,uploadSpeed:""}),i.paused=!0,i._setProgress(s,n.find(".file-thumb-progress"),s+"%",t)),i._getThumbFile(n)||n.find(".kv-file-remove").removeClass("disabled").removeAttr("disabled")})),i._setProgress(101,i.$progress,i.msgPaused),i.$element},cancel:function(){var t,i=this,n=i.ajaxRequests,r=i.resumableManager,o=i.taskManager,s=r?o.getPool(r.id):void 0,a=n.length;if(i.enableResumableUpload&&s?(s.cancel().done((function(){i._setProgressCancelled()})),r.reset(),i._raise("fileuploadcancelled",[i.fileManager,r])):(i.ajaxPool&&i.ajaxPool.cancel(),i._raise("fileuploadcancelled",[i.fileManager])),i._initAjax(),a>0)for(t=0;t<a;t+=1)i.cancelling=!0,n[t].abort();return i._getThumbs().each((function(){var t=e(this),n=t.find(".file-thumb-progress");t.removeClass("file-uploading"),i._setProgress(0,n),n.hide(),i._getThumbFile(t)||(t.find(".kv-file-upload").removeClass("disabled").removeAttr("disabled"),t.find(".kv-file-remove").removeClass("disabled").removeAttr("disabled")),i.unlock()})),setTimeout((function(){i._setProgressCancelled()}),i.processDelay),i.$element},clear:function(){var i,n=this;if(n._raise("fileclear"))return n.clearInput=!0,n.$btnUpload.removeAttr("disabled"),n._getThumbs().find("video,audio,img").each((function(){t.cleanMemory(e(this))})),n._clearFileInput(),n._resetUpload(),n.clearFileStack(),n.isDuplicateError=!1,n.isPersistentError=!1,n._resetErrors(!0),n._hasInitialPreview()?(n._showFileIcon(),n._resetPreview(),n._initPreviewActions(),n.$container.removeClass("file-input-new")):(n._getThumbs().each((function(){n._clearObjects(e(this))})),n.isAjaxUpload&&(n.previewCache.data={}),n.$preview.html(""),i=!n.overwriteInitial&&n.initialCaption.length>0?n.initialCaption:"",n.$caption.attr("title","").val(i),t.addCss(n.$container,"file-input-new"),n._validateDefaultPreview()),0===n.$container.find(t.FRAMES).length&&(n._initCaption()||n.$captionContainer.removeClass("icon-visible")),n._hideFileIcon(),n.focusCaptionOnClear&&n.$captionContainer.focus(),n._setFileDropZoneTitle(),n._raise("filecleared"),n.$element},reset:function(){var e=this;if(e._raise("filereset"))return e.lastProgress=0,e._resetPreview(),e.$container.find(".fileinput-filename").text(""),t.addCss(e.$container,"file-input-new"),e.getFrames().length&&e.$container.removeClass("file-input-new"),e.clearFileStack(),e._setFileDropZoneTitle(),e.$element},disable:function(){var e=this,i=e.$container;return e.isDisabled=!0,e._raise("filedisabled"),e.$element.attr("disabled","disabled"),i.addClass("is-locked"),t.addCss(i.find(".btn-file"),"disabled"),i.find(".kv-fileinput-caption").addClass("file-caption-disabled"),i.find(".fileinput-remove, .fileinput-upload, .file-preview-frame button").attr("disabled",!0),e._initDragDrop(),e.$element},enable:function(){var e=this,t=e.$container;return e.isDisabled=!1,e._raise("fileenabled"),e.$element.removeAttr("disabled"),t.removeClass("is-locked"),t.find(".kv-fileinput-caption").removeClass("file-caption-disabled"),t.find(".fileinput-remove, .fileinput-upload, .file-preview-frame button").removeAttr("disabled"),t.find(".btn-file").removeClass("disabled"),e._initDragDrop(),e.$element},upload:function(){var i,n,r=this,o=r.fileManager,s=o.count(),a=r.taskManager,l=!e.isEmptyObject(r._getExtraData());if(o.bpsLog=[],o.bps=0,r.isAjaxUpload&&!r.isDisabled&&r._isFileSelectionValid(s)){if(r.lastProgress=0,r._resetUpload(),0!==s||l){if(r.cancelling=!1,r.uploadInitiated=!0,r._showProgress(),r.lock(),0===s&&l)return r._setProgress(2),void r._uploadExtraOnly();if(r.enableResumableUpload)return r.resume();if(r.uploadAsync||r.enableResumableUpload){if(n=r._getOutData(null),!r._checkBatchPreupload(n))return;r.fileBatchCompleted=!1,r.uploadCache=[],e.each(r.getFileStack(),(function(e){var t=r._getThumbId(e);r.uploadCache.push({id:t,content:null,config:null,tags:null,append:!0})})),r.$preview.find(".file-preview-initial").removeClass(t.SORT_CSS),r._initSortable()}if(r._setProgress(2),r.hasInitData=!1,r.uploadAsync){i=0;var c=r.ajaxPool=a.addPool(t.uniqId());return e.each(r.getFileStack(),(function(e){c.addTask(e+i,(function(t){r._uploadSingle(i,e,!0,t)})),i++})),void c.run(r.maxAjaxThreads).done((function(){r._log("Async upload batch completed successfully."),r._raise("filebatchuploadsuccess",[o.stack,r._getExtraData()])})).fail((function(){r._log("Async upload batch completed with errors."),r._raise("filebatchuploaderror",[o.stack,r._getExtraData()])}))}return r._uploadBatch(),r.$element}r._showFileError(r.msgUploadEmpty)}},destroy:function(){var t=this,i=t.$form,n=t.$container,r=t.$element,o=t.namespace;return e(document).off(o),e(window).off(o),i&&i.length&&i.off(o),t.isAjaxUpload&&t._clearFileInput(),t._cleanup(),t._initPreviewCache(),r.insertBefore(n).off(o).removeData(),n.off().remove(),r},refresh:function(i){var n=this,r=n.$element;return i="object"!=typeof i||t.isEmpty(i)?n.options:e.extend(!0,{},n.options,i),n._init(i,!0),n._listen(),r},zoom:function(e){var t=this,i=t._getFrame(e);t._showModal(i)},getExif:function(e){var t=this._getFrame(e);return t&&t.data("exif")||null},getFrames:function(i){var n,r=this;return i=i||"",n=r.$preview.find(t.FRAMES+i),r.reversePreviewOrder&&(n=e(n.get().reverse())),n},getPreview:function(){var e=this;return{content:e.initialPreview,config:e.initialPreviewConfig,tags:e.initialPreviewThumbTags}}},e.fn.fileinput=function(i){if(t.hasFileAPISupport()||t.isIE(9)){var r=Array.apply(null,arguments),o=[];switch(r.shift(),this.each((function(){var s={},a={};"object"==typeof i&&(s=e.extend(!0,{},e.fn.fileinput.defaults,i),a=i);var l,c=e(this),u=c.data("fileinput"),d=s.theme||c.data("theme")||e.fn.fileinput.defaults.theme,h={},p={},f=s.language||c.data("language")||e.fn.fileinput.defaults.language||"en";u||(d&&(p=e.fn.fileinputThemes[d]||{}),"en"===f||t.isEmpty(e.fn.fileinputLocales[f])||(h=e.fn.fileinputLocales[f]||{}),l=e.extend(!0,{},e.fn.fileinput.defaults,p,e.fn.fileinputLocales.en,h,a,c.data()),u=new n(this,l),c.data("fileinput",u)),"string"==typeof i&&o.push(u[i].apply(u,r))})),o.length){case 0:return this;case 1:return o[0];default:return o}}};var r='class="kv-preview-data file-preview-pdf" src="{renderer}?file={data}" {style}',o="btn btn-sm btn-kv "+t.defaultButtonCss(),s="btn "+t.defaultButtonCss();e.fn.fileinput.defaults={language:"en",bytesToKB:1024,showCaption:!0,showBrowse:!0,showPreview:!0,showRemove:!0,showUpload:!0,showUploadStats:!0,showCancel:null,showPause:null,showClose:!0,showUploadedThumbs:!0,showConsoleLogs:!1,browseOnZoneClick:!1,autoReplace:!1,showDescriptionClose:!0,autoOrientImage:function(){var e=window.navigator.userAgent,t=!!e.match(/WebKit/i);return!(!!e.match(/iP(od|ad|hone)/i)&&t&&!e.match(/CriOS/i))},autoOrientImageInitial:!0,showExifErrorLog:!1,required:!1,rtl:!1,hideThumbnailContent:!1,encodeUrl:!0,focusCaptionOnBrowse:!0,focusCaptionOnClear:!0,generateFileId:null,previewClass:"",captionClass:"",frameClass:"krajee-default",mainClass:"",inputGroupClass:"",mainTemplate:null,fileSizeGetter:null,initialCaption:"",initialPreview:[],initialPreviewDelimiter:"*$$*",initialPreviewAsData:!1,initialPreviewFileType:"image",initialPreviewConfig:[],initialPreviewThumbTags:[],previewThumbTags:{},initialPreviewShowDelete:!0,initialPreviewDownloadUrl:"",removeFromPreviewOnError:!1,deleteUrl:"",deleteExtraData:{},overwriteInitial:!0,sanitizeZoomCache:function(e){var i=t.createDiv();return t.setHtml(i,e),i.find("input,textarea,select,datalist,form,.file-thumbnail-footer").remove(),i.html()},previewZoomButtonIcons:{prev:'<i class="bi-chevron-left"></i>',next:'<i class="bi-chevron-right"></i>',rotate:'<i class="bi-arrow-clockwise"></i>',toggleheader:'<i class="bi-arrows-expand"></i>',fullscreen:'<i class="bi-arrows-fullscreen"></i>',borderless:'<i class="bi-arrows-angle-expand"></i>',close:'<i class="bi-x-lg"></i>'},previewZoomButtonClasses:{prev:"btn btn-default btn-outline-secondary btn-navigate",next:"btn btn-default btn-outline-secondary btn-navigate",rotate:o,toggleheader:o,fullscreen:o,borderless:o,close:o},previewTemplates:{},previewContentTemplates:{},preferIconicPreview:!1,preferIconicZoomPreview:!1,alwaysPreviewFileExtensions:[],rotatableFileExtensions:["jpg","jpeg","png","gif"],allowedFileTypes:null,allowedFileExtensions:null,allowedPreviewTypes:void 0,allowedPreviewMimeTypes:null,allowedPreviewExtensions:null,disabledPreviewTypes:void 0,disabledPreviewExtensions:["msi","exe","com","zip","rar","app","vb","scr"],disabledPreviewMimeTypes:null,defaultPreviewContent:null,customLayoutTags:{},customPreviewTags:{},previewFileIcon:'<i class="bi-file-earmark-fill"></i>',previewFileIconClass:"file-other-icon",previewFileIconSettings:{},previewFileExtSettings:{},buttonLabelClass:"hidden-xs",browseIcon:'<i class="bi-folder2-open"></i> ',browseClass:"btn btn-primary",removeIcon:'<i class="bi-trash"></i>',removeClass:s,cancelIcon:'<i class="bi-slash-circle"></i>',cancelClass:s,pauseIcon:'<i class="bi-pause-fill"></i>',pauseClass:s,uploadIcon:'<i class="bi-upload"></i>',uploadClass:s,uploadUrl:null,uploadUrlThumb:null,uploadAsync:!0,uploadParamNames:{chunkCount:"chunkCount",chunkIndex:"chunkIndex",chunkSize:"chunkSize",chunkSizeStart:"chunkSizeStart",chunksUploaded:"chunksUploaded",fileBlob:"fileBlob",fileId:"fileId",fileName:"fileName",fileRelativePath:"fileRelativePath",fileSize:"fileSize",retryCount:"retryCount"},maxAjaxThreads:5,fadeDelay:800,processDelay:100,bitrateUpdateDelay:500,queueDelay:10,progressDelay:0,enableResumableUpload:!1,resumableUploadOptions:{fallback:null,testUrl:null,chunkSize:2048,maxThreads:4,maxRetries:3,showErrorLog:!0,retainErrorHistory:!1,skipErrorsAndProceed:!1},uploadExtraData:{},zoomModalHeight:485,minImageWidth:null,minImageHeight:null,maxImageWidth:null,maxImageHeight:null,resizeImage:!1,resizePreference:"width",resizeQuality:.92,resizeDefaultImageType:"image/jpeg",resizeIfSizeMoreThan:0,minFileSize:-1,maxFileSize:0,maxMultipleFileSize:0,maxFilePreviewSize:25600,minFileCount:0,maxFileCount:0,maxTotalFileCount:0,validateInitialCount:!1,msgValidationErrorClass:"text-danger",msgValidationErrorIcon:'<i class="bi-exclamation-circle-fill"></i> ',msgErrorClass:"file-error-message",progressThumbClass:"progress-bar progress-bar-striped active progress-bar-animated",progressClass:"progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated",progressInfoClass:"progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated",progressCompleteClass:"progress-bar bg-success progress-bar-success",progressPauseClass:"progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated",progressErrorClass:"progress-bar bg-danger progress-bar-danger",progressUploadThreshold:99,previewFileType:"image",elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,errorCloseButton:void 0,slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:"file-drop-zone-title",fileActionSettings:{},otherActionButtons:"",textEncoding:"UTF-8",preProcessUpload:null,ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0,mergeAjaxCallbacks:!1,mergeAjaxDeleteCallbacks:!1,retryErrorUploads:!0,reversePreviewOrder:!1,usePdfRenderer:function(){var e=!!window.MSInputMethodContext&&!!document.documentMode;return!!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)||e},pdfRendererUrl:"",pdfRendererTemplate:"<iframe "+r+"></iframe>",tabIndexConfig:{browse:500,remove:500,upload:500,cancel:null,pause:null,modal:-1}},e.fn.fileinputLocales.en={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"file",filePlural:"files",browseLabel:"Browse &hellip;",removeLabel:"Remove",removeTitle:"Clear all unprocessed files",cancelLabel:"Cancel",cancelTitle:"Abort ongoing upload",pauseLabel:"Pause",pauseTitle:"Pause ongoing upload",uploadLabel:"Upload",uploadTitle:"Upload selected files",msgNo:"No",msgNoFilesSelected:"No files selected",msgCancelled:"Cancelled",msgPaused:"Paused",msgPlaceholder:"Select {files} ...",msgZoomModalHeading:"Detailed Preview",msgFileRequired:"You must select a file to upload.",msgSizeTooSmall:'File "{name}" (<b>{size}</b>) is too small and must be larger than <b>{minSize}</b>.',msgSizeTooLarge:'File "{name}" (<b>{size}</b>) exceeds maximum allowed upload size of <b>{maxSize}</b>.',msgMultipleSizeTooLarge:'Files "{name}" (<b>{size}</b>) exceeds maximum allowed upload size of <b>{maxSize}</b>.',msgFilesTooLess:"You must select at least <b>{n}</b> {files} to upload.",msgFilesTooMany:"Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit of <b>{m}</b>.",msgTotalFilesTooMany:"You can upload a maximum of <b>{m}</b> files (<b>{n}</b> files detected).",msgFileNotFound:'File "{name}" not found!',msgFileSecured:'Security restrictions prevent reading the file "{name}".',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileName:'Invalid or unsupported characters in file name "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"The file upload was aborted",msgUploadThreshold:"Processing &hellip;",msgUploadBegin:"Initializing &hellip;",msgUploadEnd:"Done",msgUploadResume:"Resuming upload &hellip;",msgUploadEmpty:"No valid data available for upload.",msgUploadError:"Upload Error",msgDeleteError:"Delete Error",msgProgressError:"Error",msgValidationError:"Validation Error",msgLoading:"Loading file {index} of {files} &hellip;",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} {files} selected",msgProcessing:"Processing ...",msgFoldersNotAllowed:"Drag & drop files only! {n} folder(s) dropped were skipped.",msgImageWidthSmall:'Width of image file "{name}" must be at least <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageHeightSmall:'Height of image file "{name}" must be at least <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageWidthLarge:'Width of image file "{name}" cannot exceed <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageHeightLarge:'Height of image file "{name}" cannot exceed <b>{size} px</b> (detected <b>{dimension} px</b>).',msgImageResizeError:"Could not get the image dimensions to resize.",msgImageResizeException:"Error while resizing the image.<pre>{errors}</pre>",msgAjaxError:"Something went wrong with the {operation} operation. Please try again later!",msgAjaxProgressError:"{operation} failed",msgDuplicateFile:'File "{name}" of same size "{size}" has already been selected earlier. Skipping duplicate selection.',msgResumableUploadRetriesExceeded:"Upload aborted beyond <b>{max}</b> retries for file <b>{file}</b>! Error Details: <pre>{error}</pre>",msgPendingTime:"{time} remaining",msgCalculatingTime:"calculating time remaining",ajaxOperations:{deleteThumb:"file delete",uploadThumb:"file upload",uploadBatch:"batch file upload",uploadExtra:"form data upload"},dropZoneTitle:"Drag & drop files here &hellip;",dropZoneClickTitle:"<br>(or click to select {files})",previewZoomButtonTitles:{prev:"View previous file",next:"View next file",rotate:"Rotate 90 deg. clockwise",toggleheader:"Toggle header",fullscreen:"Toggle full screen",borderless:"Toggle borderless mode",close:"Close detailed preview"}},e.fn.fileinput.Constructor=n,e(document).ready((function(){var t=e("input.file[type=file]");t.length&&t.fileinput()}))},void 0===(s="function"==typeof r?r.apply(t,o):r)||(e.exports=s)}()},876:(e,t,i)=>{"use strict";var n,r,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="object"===("undefined"==typeof window?"undefined":s(window));
 /*! =======================================================
                       VERSION  11.0.2              
-========================================================= */r=[i(616)],void 0===(o="function"==typeof(n=function(e){var t,i="slider",n="bootstrapSlider";return a&&!window.console&&(window.console={}),a&&!window.console.log&&(window.console.log=function(){}),a&&!window.console.warn&&(window.console.warn=function(){}),function(e){var t=Array.prototype.slice;function i(){}function n(e){if(e){var n="undefined"==typeof console?i:function(e){console.error(e)};return e.bridget=function(e,t){r(t),o(e,t)},e.bridget}function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}function o(i,r){e.fn[i]=function(o){if("string"==typeof o){for(var s=t.call(arguments,1),a=0,l=this.length;a<l;a++){var c=this[a],u=e.data(c,i);if(u)if(e.isFunction(u[o])&&"_"!==o.charAt(0)){var d=u[o].apply(u,s);if(void 0!==d&&d!==u)return d}else n("no such method '"+o+"' for "+i+" instance");else n("cannot call methods on "+i+" prior to initialization; attempted to call '"+o+"'")}return this}var h=this.map((function(){var t=e.data(this,i);return t?(t.option(o),t._init()):(t=new r(this,o),e.data(this,i,t)),e(this)}));return 1===h.length?h[0]:h}}}n(e)}(e),function(e){var r=void 0,o={formatInvalidInputErrorMsg:function(e){return"Invalid input value '"+e+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),i=!0;if(this.options.ticks_positions.length>0){for(var n,r,o,a=0,l=1;l<this.options.ticks_positions.length;l++)if(e<=this.options.ticks_positions[l]){n=this.options.ticks[l-1],o=this.options.ticks_positions[l-1],r=this.options.ticks[l],a=this.options.ticks_positions[l];break}t=n+(e-o)/(a-o)*(r-n),i=!1}var c=(i?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(c,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,i,n,r=0,o=0;o<this.options.ticks.length;o++)if(e<=this.options.ticks[o]){t=o>0?this.options.ticks[o-1]:0,n=o>0?this.options.ticks_positions[o-1]:0,i=this.options.ticks[o],r=this.options.ticks_positions[o];break}if(o>0)return n+(e-t)/(i-t)*(r-n)}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,i=Math.log(this.options.min+t),n=Math.log(this.options.max+t),r=Math.exp(i+(n-i)*e/100)-t;return Math.round(r)===n?n:(r=this.options.min+Math.round((r-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(r,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,i=Math.log(this.options.max+t),n=Math.log(this.options.min+t);return 100*(Math.log(e+t)-n)/(i-n)}}};function l(t,i){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),i=i||{};for(var n=Object.keys(this.defaultOptions),r=i.hasOwnProperty("min"),o=i.hasOwnProperty("max"),a=0;a<n.length;a++){var l=n[a],c=i[l];c=null!==(c=void 0!==c?c:d(this.element,l))?c:this.defaultOptions[l],this.options||(this.options={}),this.options[l]=c}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var u=window.getComputedStyle(this.element);this.options.rtl=null!=u?"rtl"===u.direction:"rtl"===this.element.style.direction}function d(e,t){var i="data-slider-"+t.replace(/_/g,"-"),n=e.getAttribute(i);try{return JSON.parse(n)}catch(e){return n}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var h,p,f,m,g,v=this.element.style.width,_=!1,b=this.element.parentNode;if(this.sliderElem)_=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var y=document.createElement("div");y.className="slider-track",(p=document.createElement("div")).className="slider-track-low",(h=document.createElement("div")).className="slider-selection",(f=document.createElement("div")).className="slider-track-high",(m=document.createElement("div")).className="slider-handle min-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),(g=document.createElement("div")).className="slider-handle max-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),y.appendChild(p),y.appendChild(h),y.appendChild(f),this.rangeHighlightElements=[];var w=this.options.rangeHighlights;if(Array.isArray(w)&&w.length>0)for(var x=0;x<w.length;x++){var C=document.createElement("div"),T=w[x].class||"";C.className="slider-rangeHighlight slider-selection "+T,this.rangeHighlightElements.push(C),y.appendChild(C)}var k=Array.isArray(this.options.labelledby);if(k&&this.options.labelledby[0]&&m.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&g.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(m.setAttribute("aria-labelledby",this.options.labelledby),g.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",a=0;a<this.options.ticks.length;a++){var E=document.createElement("div");if(E.className="slider-tick",this.options.ticks_tooltip){var S=this._addTickListener(),A=S.addMouseEnter(this,E,a),P=S.addMouseLeave(this,E);this.ticksCallbackMap[a]={mouseEnter:A,mouseLeave:P}}this.ticks.push(E),this.ticksContainer.appendChild(E)}h.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",a=0;a<this.options.ticks_labels.length;a++){var I=document.createElement("div"),D=0===this.options.ticks_positions.length,F=this.options.reversed&&D?this.options.ticks_labels.length-(a+1):a;I.className="slider-tick-label",I.innerHTML=this.options.ticks_labels[F],this.tickLabels.push(I),this.tickLabelContainer.appendChild(I)}var L=function(e){var t=document.createElement("div");t.className="arrow";var i=document.createElement("div");i.className="tooltip-inner",e.appendChild(t),e.appendChild(i)},M=document.createElement("div");M.className="tooltip tooltip-main",M.setAttribute("role","presentation"),L(M);var O=document.createElement("div");O.className="tooltip tooltip-min",O.setAttribute("role","presentation"),L(O);var j=document.createElement("div");j.className="tooltip tooltip-max",j.setAttribute("role","presentation"),L(j),this.sliderElem.appendChild(y),this.sliderElem.appendChild(M),this.sliderElem.appendChild(O),this.sliderElem.appendChild(j),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(m),this.sliderElem.appendChild(g),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),!0===_&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach((function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)}),this),[this.handle1,this.handle2].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(e){this._removeProperty(e,"bs-tooltip-left"),this._removeProperty(e,"bs-tooltip-right"),this._removeProperty(e,"bs-tooltip-top"),this._removeClass(e,"bs-tooltip-right"),this._removeClass(e,"bs-tooltip-left"),this._removeClass(e,"bs-tooltip-top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=v,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(o||(this.options.max=Math.max.apply(Math,this.options.ticks)),r||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=p||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=f||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=m||this.handle1,this.handle2=g||this.handle2,!0===_)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),a=0;a<this.ticks.length;a++)this._removeClass(this.ticks[a],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),a=0;a<this.ticks.length;a++)this._addClass(this.ticks[a],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var $=this._addTickListener(),z=$.addMouseEnter(this,this.handle1),N=$.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:z,mouseLeave:N},z=$.addMouseEnter(this,this.handle2),N=$.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:z,mouseLeave:N}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(t=function(e,t){return l.call(this,e,t),this}).prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+" : "+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,i){e||(e=0);var n=this.getValue();this._state.value=this._validateInputValue(e);var r=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=r(this._state.value[0]),this._state.value[1]=r(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=r(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var o=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(o),!0===t&&this._trigger("slide",o),(Array.isArray(o)?n[0]!==o[0]||n[1]!==o[1]:n!==o)&&!0===i&&this._trigger("change",{oldValue:n,newValue:o}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),e&&(this._unbindJQueryEventHandlers(),r===i&&this.$element.removeData(r),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,i){e?(this.$element.off(t,i),this.$sliderElem.off(t,i)):this._unbindNonQueryEventHandler(t,i)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(t){var o=this.getValue();return this._removeSliderEventHandlers(),l.call(this,this.element,this.options),t&&!0===t.useCurrentValue&&this.setValue(o),e&&(r===i?(e.data(this.element,i,this),e.data(this.element,n,this)):e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName("slider-tick"),t=0;t<e.length;t++)e[t].removeEventListener("mouseenter",this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener("mouseleave",this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(e,t){void 0===this.eventToCallbackMap[e]&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var i=this.eventToCallbackMap[e];if(void 0!==i)for(var n=0;n<i.length;n++)if(i[n]===t){i.splice(n,1);break}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var i=e[t];delete this.eventToCallbackMap[i]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"show"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"show"),this._addClass(this.tooltip_max,"show"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"show"),this._removeClass(this.tooltip_min,"show"),this._removeClass(this.tooltip_max,"show")),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,i=this.options.formatter(e?e.value[0]:this._state.value[0]),n=r(e||this._state,this.options.reversed);function r(e,i){return i?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=n[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,i){var n=function(){var n=e._copyState(),r=t===e.handle1?n.value[0]:n.value[1],o=void 0;void 0!==i?(r=e.options.ticks[i],o=e.options.ticks_positions.length>0&&e.options.ticks_positions[i]||e._toPercentage(e.options.ticks[i])):o=e._toPercentage(r),n.value[0]=r,n.percentage[0]=o,e._setToolTipOnMouseOver(n),e._showTooltip()};return t.addEventListener("mouseenter",n,!1),n},addMouseLeave:function(e,t){var i=function(){e._hideTooltip()};return t.addEventListener("mouseleave",i,!1),i}}},_layout:function(){var e,t,i;if(e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=e[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute("aria-valuetext",t):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=e[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute("aria-valuetext",t):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),o=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var s=100-o;o=100-r,r=s}var a=this._createHighlightRange(r,o);a?"vertical"===this.options.orientation?(this.rangeHighlightElements[n].style.top=a.start+"%",this.rangeHighlightElements[n].style.height=a.size+"%"):(this.options.rtl?this.rangeHighlightElements[n].style.right=a.start+"%":this.rangeHighlightElements[n].style.left=a.start+"%",this.rangeHighlightElements[n].style.width=a.size+"%"):this.rangeHighlightElements[n].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var l,c="vertical"===this.options.orientation?"height":"width";l="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var u=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var d=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[l]=-u/2+"px"),d=this.tickLabelContainer.offsetHeight;else for(h=0;h<this.tickLabelContainer.childNodes.length;h++)this.tickLabelContainer.childNodes[h].offsetHeight>d&&(d=this.tickLabelContainer.childNodes[h].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=d+"px")}for(var h=0;h<this.options.ticks.length;h++){var p=this.options.ticks_positions[h]||this._toPercentage(this.options.ticks[h]);this.options.reversed&&(p=100-p),this.ticks[h].style[this.stylePos]=p+"%",this._removeClass(this.ticks[h],"in-selection"),this.options.range?p>=e[0]&&p<=e[1]&&this._addClass(this.ticks[h],"in-selection"):("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.ticks[h],"in-selection"),this.tickLabels[h]&&(this.tickLabels[h].style[c]=u+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[h]?(this.tickLabels[h].style.position="absolute",this.tickLabels[h].style[this.stylePos]=p+"%",this.tickLabels[h].style[l]=-u/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[h].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[h].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[l]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[h],"label-in-selection label-is-selection"),this.options.range?p>=e[0]&&p<=e[1]&&(this._addClass(this.tickLabels[h],"label-in-selection"),(p===e[0]||e[1])&&this._addClass(this.tickLabels[h],"label-is-selection")):(("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.tickLabels[h],"label-in-selection"),p===e[0]&&this._addClass(this.tickLabels[h],"label-is-selection")))}}if(this.options.range){i=this.options.formatter(this._state.value),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+"%";var f=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,f);var m=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,m),this.tooltip_min.style[this.stylePos]=e[0]+"%",this.tooltip_max.style[this.stylePos]=e[1]+"%"}else i=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=e[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(e[0],e[1])+"%",this.trackSelection.style.top=Math.min(e[0],e[1])+"%",this.trackSelection.style.height=Math.abs(e[0]-e[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(e[0],e[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(e[0],e[1])+"%":this.trackSelection.style.left=Math.min(e[0],e[1])+"%",this.trackSelection.style.width=Math.abs(e[0]-e[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";var g=this.tooltip_min.getBoundingClientRect(),v=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var i=Math.abs(this._state.percentage[0]-t),n=Math.abs(this._state.percentage[1]-t);this._state.dragged=i<n?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var r=this._calculateValue();return this._trigger("slideStart",r),this.setValue(r,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){0===e&&this.handle1.focus(),1===e&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var i;switch(t.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var n="horizontal"===this.options.orientation,r="vertical"===this.options.orientation,o=this.options.rtl,s=this.options.reversed;n?o?s||(i=-i):s&&(i=-i):r&&(s||(i=-i))}var a;if(this.ticksAreValid&&this.options.lock_to_ticks){var l=void 0;-1===(l=this.options.ticks.indexOf(this._state.value[e]))&&(l=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),l+=i,l=Math.max(0,Math.min(this.options.ticks.length-1,l)),a=this.options.ticks[l]}else a=this._state.value[e]+i*this.options.step;var c=this._toPercentage(a);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(c);var u=this._state.keyCtrl?this._state.value[0]:a,d=this._state.keyCtrl?a:this._state.value[1];a=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else a=Math.max(this.options.min,Math.min(this.options.max,a));return this._trigger("slideStart",a),this.setValue(a,!0,!0),this._trigger("slideStop",a),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var i=this._calculateValue(!0);return this.setValue(i,!0,!0),!1},_touchmove:function(e){void 0!==e.changedTouches&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var i=this._applyToFixedAndParseFloat(e,t);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>i?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var i=this._calculateValue(!0);return this.setValue(i,!1,!0),this._trigger("slideStop",i),this._state.dragged=null,!1},_setValues:function(e,t){var i=0===e?0:100;this._state.percentage[e]!==i&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],i=0;i<this.options.ticks.length;i++){var n=Math.abs(this.options.ticks[i]-e);n<=t[1]&&(t=[this.options.ticks[i],n])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var i=e.toFixed(t);return parseFloat(i)},_getPercentage:function(e){!this.touchCapable||"touchstart"!==e.type&&"touchmove"!==e.type&&"touchend"!==e.type||(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(t=-t);var i=t/this._state.size*100;return i=Math.round(i/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(i=100-i),Math.max(0,Math.min(100,i))},_validateInputValue:function(e){if(isNaN(+e)){if(Array.isArray(e))return this._validateArray(e),e;throw new Error(o.formatInvalidInputErrorMsg(e))}return+e},_validateArray:function(e){for(var t=0;t<e.length;t++){var i=e[t];if("number"!=typeof i)throw new Error(o.formatInvalidInputErrorMsg(i))}},_setDataVal:function(e){this.element.setAttribute("data-value",e),this.element.setAttribute("value",e),this.element.value=e},_trigger:function(t,i){i=i||0===i?i:void 0;var n=this.eventToCallbackMap[t];if(n&&n.length)for(var r=0;r<n.length;r++)(0,n[r])(i);e&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(e,t){var i={type:e,value:t};this.$element.trigger(i),this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)},_removeClass:function(e,t){for(var i=t.split(" "),n=e.className,r=0;r<i.length;r++){var o=i[r],s=new RegExp("(?:\\s|^)"+o+"(?:\\s|$)");n=n.replace(s," ")}e.className=n.trim()},_addClass:function(e,t){for(var i=t.split(" "),n=e.className,r=0;r<i.length;r++){var o=i[r];new RegExp("(?:\\s|^)"+o+"(?:\\s|$)").test(n)||(n+=" "+o)}e.className=n.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,"BODY"!==e.tagName&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,i,n){if(e)e.style(t,i,n);else{var r=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}));t.style[r]=n}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var t,i="left"===(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";e.forEach(function(e){this._addClass(e,"bs-tooltip-"+t),e.style[i]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?e.forEach(function(e){this._addClass(e,"bs-tooltip-bottom"),e.style.top="22px"}.bind(this)):e.forEach(function(e){this._addClass(e,"bs-tooltip-top"),e.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),i=0,n=0;n<this.options.ticks.length;++n){var r=Math.abs(e-this.options.ticks[n]);r<t&&(t=r,i=n)}return i},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(a&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),r=n):(e.bridget(i,t),r=i),e.bridget(n,t),e((function(){e("input[data-provide=slider]")[r]()})))}(e),t})?n.apply(t,r):n)||(e.exports=o)},524:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Alert:()=>At,Button:()=>It,Carousel:()=>li,Collapse:()=>xi,Dropdown:()=>Zi,Modal:()=>Pn,Offcanvas:()=>Zn,Popover:()=>mr,ScrollSpy:()=>Er,Tab:()=>Xr,Toast:()=>uo,Tooltip:()=>hr});var n={};i.r(n),i.d(n,{afterMain:()=>C,afterRead:()=>y,afterWrite:()=>E,applyStyles:()=>L,arrow:()=>J,auto:()=>l,basePlacements:()=>c,beforeMain:()=>w,beforeRead:()=>_,beforeWrite:()=>T,bottom:()=>o,clippingParents:()=>h,computeStyles:()=>ne,createPopper:()=>Le,createPopperBase:()=>Fe,createPopperLite:()=>Me,detectOverflow:()=>be,end:()=>d,eventListeners:()=>oe,flip:()=>ye,hide:()=>Ce,left:()=>a,main:()=>x,modifierPhases:()=>S,offset:()=>Te,placements:()=>v,popper:()=>f,popperGenerator:()=>De,popperOffsets:()=>ke,preventOverflow:()=>Ee,read:()=>b,reference:()=>m,right:()=>s,start:()=>u,top:()=>r,variationPlacements:()=>g,viewport:()=>p,write:()=>k});var r="top",o="bottom",s="right",a="left",l="auto",c=[r,o,s,a],u="start",d="end",h="clippingParents",p="viewport",f="popper",m="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+d])}),[]),v=[].concat(c,[l]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])}),[]),_="beforeRead",b="read",y="afterRead",w="beforeMain",x="main",C="afterMain",T="beforeWrite",k="write",E="afterWrite",S=[_,b,y,w,x,C,T,k,E];function A(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function I(e){return e instanceof P(e).Element||e instanceof Element}function D(e){return e instanceof P(e).HTMLElement||e instanceof HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof P(e).ShadowRoot||e instanceof ShadowRoot)}const L={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];D(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});D(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M(e){return e.split("-")[0]}var O=Math.max,j=Math.min,$=Math.round;function z(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function N(){return!/^((?!chrome|android).)*safari/i.test(z())}function R(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&D(e)&&(r=e.offsetWidth>0&&$(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$(n.height)/e.offsetHeight||1);var s=(I(e)?P(e):window).visualViewport,a=!N()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,c=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function U(e){var t=R(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function B(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&F(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function H(e){return P(e).getComputedStyle(e)}function q(e){return["table","td","th"].indexOf(A(e))>=0}function W(e){return((I(e)?e.ownerDocument:e.document)||window.document).documentElement}function V(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||W(e)}function Z(e){return D(e)&&"fixed"!==H(e).position?e.offsetParent:null}function K(e){for(var t=P(e),i=Z(e);i&&q(i)&&"static"===H(i).position;)i=Z(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===H(i).position)?t:i||function(e){var t=/firefox/i.test(z());if(/Trident/i.test(z())&&D(e)&&"fixed"===H(e).position)return null;var i=V(e);for(F(i)&&(i=i.host);D(i)&&["html","body"].indexOf(A(i))<0;){var n=H(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e,t,i){return O(e,j(t,i))}function Q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,l=e.options,u=i.elements.arrow,d=i.modifiersData.popperOffsets,h=M(i.placement),p=X(h),f=[a,s].indexOf(h)>=0?"height":"width";if(u&&d){var m=function(e,t){return Q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,c))}(l.padding,i),g=U(u),v="y"===p?r:a,_="y"===p?o:s,b=i.rects.reference[f]+i.rects.reference[p]-d[p]-i.rects.popper[f],y=d[p]-i.rects.reference[p],w=K(u),x=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,C=b/2-y/2,T=m[v],k=x-g[f]-m[_],E=x/2-g[f]/2+C,S=Y(T,E,k),A=p;i.modifiersData[n]=((t={})[A]=S,t.centerOffset=S-E,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&B(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ee(e){return e.split("-")[1]}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,i=e.popper,n=e.popperRect,l=e.placement,c=e.variation,u=e.offsets,h=e.position,p=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,g=e.isFixed,v=u.x,_=void 0===v?0:v,b=u.y,y=void 0===b?0:b,w="function"==typeof m?m({x:_,y}):{x:_,y};_=w.x,y=w.y;var x=u.hasOwnProperty("x"),C=u.hasOwnProperty("y"),T=a,k=r,E=window;if(f){var S=K(i),A="clientHeight",I="clientWidth";if(S===P(i)&&"static"!==H(S=W(i)).position&&"absolute"===h&&(A="scrollHeight",I="scrollWidth"),l===r||(l===a||l===s)&&c===d)k=o,y-=(g&&S===E&&E.visualViewport?E.visualViewport.height:S[A])-n.height,y*=p?1:-1;if(l===a||(l===r||l===o)&&c===d)T=s,_-=(g&&S===E&&E.visualViewport?E.visualViewport.width:S[I])-n.width,_*=p?1:-1}var D,F=Object.assign({position:h},f&&te),L=!0===m?function(e,t){var i=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:$(i*r)/r||0,y:$(n*r)/r||0}}({x:_,y},P(i)):{x:_,y};return _=L.x,y=L.y,p?Object.assign({},F,((D={})[k]=C?"0":"",D[T]=x?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+_+"px, "+y+"px)":"translate3d("+_+"px, "+y+"px, 0)",D)):Object.assign({},F,((t={})[k]=C?y+"px":"",t[T]=x?_+"px":"",t.transform="",t))}const ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:M(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var re={passive:!0};const oe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=P(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,re)})),a&&l.addEventListener("resize",i.update,re),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,re)})),a&&l.removeEventListener("resize",i.update,re)}},data:{}};var se={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ue(e){var t=P(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function de(e){return R(W(e)).left+ue(e).scrollLeft}function he(e){var t=H(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function pe(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:D(e)&&he(e)?e:pe(V(e))}function fe(e,t){var i;void 0===t&&(t=[]);var n=pe(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=P(n),s=r?[o].concat(o.visualViewport||[],he(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(fe(V(s)))}function me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ge(e,t,i){return t===p?me(function(e,t){var i=P(e),n=W(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=N();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+de(e),y:l}}(e,i)):I(t)?function(e,t){var i=R(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):me(function(e){var t,i=W(e),n=ue(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=O(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=O(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+de(e),l=-n.scrollTop;return"rtl"===H(r||i).direction&&(a+=O(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(W(e)))}function ve(e,t,i,n){var r="clippingParents"===t?function(e){var t=fe(V(e)),i=["absolute","fixed"].indexOf(H(e).position)>=0&&D(e)?K(e):e;return I(i)?t.filter((function(e){return I(e)&&B(e,i)&&"body"!==A(e)})):[]}(e):[].concat(t),o=[].concat(r,[i]),s=o[0],a=o.reduce((function(t,i){var r=ge(e,i,n);return t.top=O(r.top,t.top),t.right=j(r.right,t.right),t.bottom=j(r.bottom,t.bottom),t.left=O(r.left,t.left),t}),ge(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _e(e){var t,i=e.reference,n=e.element,l=e.placement,c=l?M(l):null,h=l?ee(l):null,p=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2;switch(c){case r:t={x:p,y:i.y-n.height};break;case o:t={x:p,y:i.y+i.height};break;case s:t={x:i.x+i.width,y:f};break;case a:t={x:i.x-n.width,y:f};break;default:t={x:i.x,y:i.y}}var m=c?X(c):null;if(null!=m){var g="y"===m?"height":"width";switch(h){case u:t[m]=t[m]-(i[g]/2-n[g]/2);break;case d:t[m]=t[m]+(i[g]/2-n[g]/2)}}return t}function be(e,t){void 0===t&&(t={});var i=t,n=i.placement,a=void 0===n?e.placement:n,l=i.strategy,u=void 0===l?e.strategy:l,d=i.boundary,g=void 0===d?h:d,v=i.rootBoundary,_=void 0===v?p:v,b=i.elementContext,y=void 0===b?f:b,w=i.altBoundary,x=void 0!==w&&w,C=i.padding,T=void 0===C?0:C,k=Q("number"!=typeof T?T:G(T,c)),E=y===f?m:f,S=e.rects.popper,A=e.elements[x?E:y],P=ve(I(A)?A:A.contextElement||W(e.elements.popper),g,_,u),D=R(e.elements.reference),F=_e({reference:D,element:S,strategy:"absolute",placement:a}),L=me(Object.assign({},S,F)),M=y===f?L:D,O={top:P.top-M.top+k.top,bottom:M.bottom-P.bottom+k.bottom,left:P.left-M.left+k.left,right:M.right-P.right+k.right},j=e.modifiersData.offset;if(y===f&&j){var $=j[a];Object.keys(O).forEach((function(e){var t=[s,o].indexOf(e)>=0?1:-1,i=[r,o].indexOf(e)>=0?"y":"x";O[e]+=$[i]*t}))}return O}const ye={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var d=i.mainAxis,h=void 0===d||d,p=i.altAxis,f=void 0===p||p,m=i.fallbackPlacements,_=i.padding,b=i.boundary,y=i.rootBoundary,w=i.altBoundary,x=i.flipVariations,C=void 0===x||x,T=i.allowedAutoPlacements,k=t.options.placement,E=M(k),S=m||(E===k||!C?[ae(k)]:function(e){if(M(e)===l)return[];var t=ae(e);return[ce(e),t,ce(t)]}(k)),A=[k].concat(S).reduce((function(e,i){return e.concat(M(i)===l?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,u=void 0===l?v:l,d=ee(n),h=d?a?g:g.filter((function(e){return ee(e)===d})):c,p=h.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=h);var f=p.reduce((function(t,i){return t[i]=be(e,{placement:i,boundary:r,rootBoundary:o,padding:s})[M(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:i,boundary:b,rootBoundary:y,padding:_,flipVariations:C,allowedAutoPlacements:T}):i)}),[]),P=t.rects.reference,I=t.rects.popper,D=new Map,F=!0,L=A[0],O=0;O<A.length;O++){var j=A[O],$=M(j),z=ee(j)===u,N=[r,o].indexOf($)>=0,R=N?"width":"height",U=be(t,{placement:j,boundary:b,rootBoundary:y,altBoundary:w,padding:_}),B=N?z?s:a:z?o:r;P[R]>I[R]&&(B=ae(B));var H=ae(B),q=[];if(h&&q.push(U[$]<=0),f&&q.push(U[B]<=0,U[H]<=0),q.every((function(e){return e}))){L=j,F=!1;break}D.set(j,q)}if(F)for(var W=function(e){var t=A.find((function(t){var i=D.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},V=C?3:1;V>0;V--){if("break"===W(V))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function we(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function xe(e){return[r,s,o,a].some((function(t){return e[t]>=0}))}const Ce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=be(t,{elementContext:"reference"}),a=be(t,{altBoundary:!0}),l=we(s,n),c=we(a,r,o),u=xe(l),d=xe(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,l=void 0===o?[0,0]:o,c=v.reduce((function(e,i){return e[i]=function(e,t,i){var n=M(e),o=[a,r].indexOf(n)>=0?-1:1,l="function"==typeof i?i(Object.assign({},t,{placement:e})):i,c=l[0],u=l[1];return c=c||0,u=(u||0)*o,[a,s].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}(i,t.rects,l),e}),{}),u=c[t.placement],d=u.x,h=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=c}};const ke={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=_e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Ee={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,l=i.mainAxis,c=void 0===l||l,d=i.altAxis,h=void 0!==d&&d,p=i.boundary,f=i.rootBoundary,m=i.altBoundary,g=i.padding,v=i.tether,_=void 0===v||v,b=i.tetherOffset,y=void 0===b?0:b,w=be(t,{boundary:p,rootBoundary:f,padding:g,altBoundary:m}),x=M(t.placement),C=ee(t.placement),T=!C,k=X(x),E="x"===k?"y":"x",S=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,I="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(S){if(c){var $,z="y"===k?r:a,N="y"===k?o:s,R="y"===k?"height":"width",B=S[k],H=B+w[z],q=B-w[N],W=_?-P[R]/2:0,V=C===u?A[R]:P[R],Z=C===u?-P[R]:-A[R],Q=t.elements.arrow,G=_&&Q?U(Q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=J[z],ie=J[N],ne=Y(0,A[R],G[R]),re=T?A[R]/2-W-ne-te-D.mainAxis:V-ne-te-D.mainAxis,oe=T?-A[R]/2+W+ne+ie+D.mainAxis:Z+ne+ie+D.mainAxis,se=t.elements.arrow&&K(t.elements.arrow),ae=se?"y"===k?se.clientTop||0:se.clientLeft||0:0,le=null!=($=null==F?void 0:F[k])?$:0,ce=B+oe-le,ue=Y(_?j(H,B+re-le-ae):H,B,_?O(q,ce):q);S[k]=ue,L[k]=ue-B}if(h){var de,he="x"===k?r:a,pe="x"===k?o:s,fe=S[E],me="y"===E?"height":"width",ge=fe+w[he],ve=fe-w[pe],_e=-1!==[r,a].indexOf(x),ye=null!=(de=null==F?void 0:F[E])?de:0,we=_e?ge:fe-A[me]-P[me]-ye+D.altAxis,xe=_e?fe+A[me]+P[me]-ye-D.altAxis:ve,Ce=_&&_e?function(e,t,i){var n=Y(e,t,i);return n>i?i:n}(we,fe,xe):Y(_?we:ge,fe,_?xe:ve);S[E]=Ce,L[E]=Ce-fe}t.modifiersData[n]=L}},requiresIfExists:["offset"]};function Se(e,t,i){void 0===i&&(i=!1);var n,r,o=D(t),s=D(t)&&function(e){var t=e.getBoundingClientRect(),i=$(t.width)/e.offsetWidth||1,n=$(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=W(t),l=R(e,s,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!i)&&(("body"!==A(t)||he(a))&&(c=(n=t)!==P(n)&&D(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:ue(n)),D(t)?((u=R(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=de(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ae(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||r(e)})),n}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ie(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function De(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,o=void 0===r?Pe:r;return function(e,t,i){void 0===i&&(i=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var r="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:I(e)?fe(e):e.contextElement?fe(e.contextElement):[],popper:fe(t)};var s,c,h=function(e){var t=Ae(e);return S.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:n}),s=function(){};l.push(o||s)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Ie(t,i)){a.rects={reference:Se(t,K(i),"fixed"===a.options.strategy),popper:U(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var r=a.orderedModifiers[n],o=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){d(),c=!0}};if(!Ie(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),u}}var Fe=De(),Le=De({defaultModifiers:[oe,ke,ne,L,Te,ye,Ee,J,Ce]}),Me=De({defaultModifiers:[oe,ke,ne,L]});
+========================================================= */r=[i(616)],void 0===(o="function"==typeof(n=function(e){var t,i="slider",n="bootstrapSlider";return a&&!window.console&&(window.console={}),a&&!window.console.log&&(window.console.log=function(){}),a&&!window.console.warn&&(window.console.warn=function(){}),function(e){var t=Array.prototype.slice;function i(){}function n(e){if(e){var n="undefined"==typeof console?i:function(e){console.error(e)};return e.bridget=function(e,t){r(t),o(e,t)},e.bridget}function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}function o(i,r){e.fn[i]=function(o){if("string"==typeof o){for(var s=t.call(arguments,1),a=0,l=this.length;a<l;a++){var c=this[a],u=e.data(c,i);if(u)if(e.isFunction(u[o])&&"_"!==o.charAt(0)){var d=u[o].apply(u,s);if(void 0!==d&&d!==u)return d}else n("no such method '"+o+"' for "+i+" instance");else n("cannot call methods on "+i+" prior to initialization; attempted to call '"+o+"'")}return this}var h=this.map((function(){var t=e.data(this,i);return t?(t.option(o),t._init()):(t=new r(this,o),e.data(this,i,t)),e(this)}));return 1===h.length?h[0]:h}}}n(e)}(e),function(e){var r=void 0,o={formatInvalidInputErrorMsg:function(e){return"Invalid input value '"+e+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),i=!0;if(this.options.ticks_positions.length>0){for(var n,r,o,a=0,l=1;l<this.options.ticks_positions.length;l++)if(e<=this.options.ticks_positions[l]){n=this.options.ticks[l-1],o=this.options.ticks_positions[l-1],r=this.options.ticks[l],a=this.options.ticks_positions[l];break}t=n+(e-o)/(a-o)*(r-n),i=!1}var c=(i?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(c,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,i,n,r=0,o=0;o<this.options.ticks.length;o++)if(e<=this.options.ticks[o]){t=o>0?this.options.ticks[o-1]:0,n=o>0?this.options.ticks_positions[o-1]:0,i=this.options.ticks[o],r=this.options.ticks_positions[o];break}if(o>0)return n+(e-t)/(i-t)*(r-n)}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,i=Math.log(this.options.min+t),n=Math.log(this.options.max+t),r=Math.exp(i+(n-i)*e/100)-t;return Math.round(r)===n?n:(r=this.options.min+Math.round((r-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(r,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,i=Math.log(this.options.max+t),n=Math.log(this.options.min+t);return 100*(Math.log(e+t)-n)/(i-n)}}};function l(t,i){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),i=i||{};for(var n=Object.keys(this.defaultOptions),r=i.hasOwnProperty("min"),o=i.hasOwnProperty("max"),a=0;a<n.length;a++){var l=n[a],c=i[l];c=null!==(c=void 0!==c?c:d(this.element,l))?c:this.defaultOptions[l],this.options||(this.options={}),this.options[l]=c}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var u=window.getComputedStyle(this.element);this.options.rtl=null!=u?"rtl"===u.direction:"rtl"===this.element.style.direction}function d(e,t){var i="data-slider-"+t.replace(/_/g,"-"),n=e.getAttribute(i);try{return JSON.parse(n)}catch(e){return n}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var h,p,f,m,g,v=this.element.style.width,_=!1,b=this.element.parentNode;if(this.sliderElem)_=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var y=document.createElement("div");y.className="slider-track",(p=document.createElement("div")).className="slider-track-low",(h=document.createElement("div")).className="slider-selection",(f=document.createElement("div")).className="slider-track-high",(m=document.createElement("div")).className="slider-handle min-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),(g=document.createElement("div")).className="slider-handle max-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),y.appendChild(p),y.appendChild(h),y.appendChild(f),this.rangeHighlightElements=[];var w=this.options.rangeHighlights;if(Array.isArray(w)&&w.length>0)for(var x=0;x<w.length;x++){var C=document.createElement("div"),T=w[x].class||"";C.className="slider-rangeHighlight slider-selection "+T,this.rangeHighlightElements.push(C),y.appendChild(C)}var k=Array.isArray(this.options.labelledby);if(k&&this.options.labelledby[0]&&m.setAttribute("aria-labelledby",this.options.labelledby[0]),k&&this.options.labelledby[1]&&g.setAttribute("aria-labelledby",this.options.labelledby[1]),!k&&this.options.labelledby&&(m.setAttribute("aria-labelledby",this.options.labelledby),g.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",a=0;a<this.options.ticks.length;a++){var E=document.createElement("div");if(E.className="slider-tick",this.options.ticks_tooltip){var S=this._addTickListener(),A=S.addMouseEnter(this,E,a),P=S.addMouseLeave(this,E);this.ticksCallbackMap[a]={mouseEnter:A,mouseLeave:P}}this.ticks.push(E),this.ticksContainer.appendChild(E)}h.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",a=0;a<this.options.ticks_labels.length;a++){var I=document.createElement("div"),D=0===this.options.ticks_positions.length,F=this.options.reversed&&D?this.options.ticks_labels.length-(a+1):a;I.className="slider-tick-label",I.innerHTML=this.options.ticks_labels[F],this.tickLabels.push(I),this.tickLabelContainer.appendChild(I)}var M=function(e){var t=document.createElement("div");t.className="arrow";var i=document.createElement("div");i.className="tooltip-inner",e.appendChild(t),e.appendChild(i)},L=document.createElement("div");L.className="tooltip tooltip-main",L.setAttribute("role","presentation"),M(L);var j=document.createElement("div");j.className="tooltip tooltip-min",j.setAttribute("role","presentation"),M(j);var O=document.createElement("div");O.className="tooltip tooltip-max",O.setAttribute("role","presentation"),M(O),this.sliderElem.appendChild(y),this.sliderElem.appendChild(L),this.sliderElem.appendChild(j),this.sliderElem.appendChild(O),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(m),this.sliderElem.appendChild(g),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),!0===_&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach((function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)}),this),[this.handle1,this.handle2].forEach((function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top")}),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(e){this._removeProperty(e,"bs-tooltip-left"),this._removeProperty(e,"bs-tooltip-right"),this._removeProperty(e,"bs-tooltip-top"),this._removeClass(e,"bs-tooltip-right"),this._removeClass(e,"bs-tooltip-left"),this._removeClass(e,"bs-tooltip-top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=v,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(o||(this.options.max=Math.max.apply(Math,this.options.ticks)),r||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=p||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=f||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=m||this.handle1,this.handle2=g||this.handle2,!0===_)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),a=0;a<this.ticks.length;a++)this._removeClass(this.ticks[a],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),a=0;a<this.ticks.length;a++)this._addClass(this.ticks[a],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var $=this._addTickListener(),z=$.addMouseEnter(this,this.handle1),N=$.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:z,mouseLeave:N},z=$.addMouseEnter(this,this.handle2),N=$.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:z,mouseLeave:N}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(t=function(e,t){return l.call(this,e,t),this}).prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+" : "+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,i){e||(e=0);var n=this.getValue();this._state.value=this._validateInputValue(e);var r=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=r(this._state.value[0]),this._state.value[1]=r(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=r(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var o=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(o),!0===t&&this._trigger("slide",o),(Array.isArray(o)?n[0]!==o[0]||n[1]!==o[1]:n!==o)&&!0===i&&this._trigger("change",{oldValue:n,newValue:o}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),e&&(this._unbindJQueryEventHandlers(),r===i&&this.$element.removeData(r),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,i){e?(this.$element.off(t,i),this.$sliderElem.off(t,i)):this._unbindNonQueryEventHandler(t,i)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(t){var o=this.getValue();return this._removeSliderEventHandlers(),l.call(this,this.element,this.options),t&&!0===t.useCurrentValue&&this.setValue(o),e&&(r===i?(e.data(this.element,i,this),e.data(this.element,n,this)):e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName("slider-tick"),t=0;t<e.length;t++)e[t].removeEventListener("mouseenter",this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener("mouseleave",this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(e,t){void 0===this.eventToCallbackMap[e]&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var i=this.eventToCallbackMap[e];if(void 0!==i)for(var n=0;n<i.length;n++)if(i[n]===t){i.splice(n,1);break}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var i=e[t];delete this.eventToCallbackMap[i]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"show"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"show"),this._addClass(this.tooltip_max,"show"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"show"),this._removeClass(this.tooltip_min,"show"),this._removeClass(this.tooltip_max,"show")),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,i=this.options.formatter(e?e.value[0]:this._state.value[0]),n=r(e||this._state,this.options.reversed);function r(e,i){return i?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=n[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,i){var n=function(){var n=e._copyState(),r=t===e.handle1?n.value[0]:n.value[1],o=void 0;void 0!==i?(r=e.options.ticks[i],o=e.options.ticks_positions.length>0&&e.options.ticks_positions[i]||e._toPercentage(e.options.ticks[i])):o=e._toPercentage(r),n.value[0]=r,n.percentage[0]=o,e._setToolTipOnMouseOver(n),e._showTooltip()};return t.addEventListener("mouseenter",n,!1),n},addMouseLeave:function(e,t){var i=function(){e._hideTooltip()};return t.addEventListener("mouseleave",i,!1),i}}},_layout:function(){var e,t,i;if(e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=e[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute("aria-valuetext",t):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=e[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute("aria-valuetext",t):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),o=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var s=100-o;o=100-r,r=s}var a=this._createHighlightRange(r,o);a?"vertical"===this.options.orientation?(this.rangeHighlightElements[n].style.top=a.start+"%",this.rangeHighlightElements[n].style.height=a.size+"%"):(this.options.rtl?this.rangeHighlightElements[n].style.right=a.start+"%":this.rangeHighlightElements[n].style.left=a.start+"%",this.rangeHighlightElements[n].style.width=a.size+"%"):this.rangeHighlightElements[n].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var l,c="vertical"===this.options.orientation?"height":"width";l="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var u=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var d=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[l]=-u/2+"px"),d=this.tickLabelContainer.offsetHeight;else for(h=0;h<this.tickLabelContainer.childNodes.length;h++)this.tickLabelContainer.childNodes[h].offsetHeight>d&&(d=this.tickLabelContainer.childNodes[h].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=d+"px")}for(var h=0;h<this.options.ticks.length;h++){var p=this.options.ticks_positions[h]||this._toPercentage(this.options.ticks[h]);this.options.reversed&&(p=100-p),this.ticks[h].style[this.stylePos]=p+"%",this._removeClass(this.ticks[h],"in-selection"),this.options.range?p>=e[0]&&p<=e[1]&&this._addClass(this.ticks[h],"in-selection"):("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.ticks[h],"in-selection"),this.tickLabels[h]&&(this.tickLabels[h].style[c]=u+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[h]?(this.tickLabels[h].style.position="absolute",this.tickLabels[h].style[this.stylePos]=p+"%",this.tickLabels[h].style[l]=-u/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[h].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[h].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[l]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[h],"label-in-selection label-is-selection"),this.options.range?p>=e[0]&&p<=e[1]&&(this._addClass(this.tickLabels[h],"label-in-selection"),(p===e[0]||e[1])&&this._addClass(this.tickLabels[h],"label-is-selection")):(("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.tickLabels[h],"label-in-selection"),p===e[0]&&this._addClass(this.tickLabels[h],"label-is-selection")))}}if(this.options.range){i=this.options.formatter(this._state.value),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+"%";var f=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,f);var m=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,m),this.tooltip_min.style[this.stylePos]=e[0]+"%",this.tooltip_max.style[this.stylePos]=e[1]+"%"}else i=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,i),this.tooltip.style[this.stylePos]=e[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(e[0],e[1])+"%",this.trackSelection.style.top=Math.min(e[0],e[1])+"%",this.trackSelection.style.height=Math.abs(e[0]-e[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(e[0],e[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(e[0],e[1])+"%":this.trackSelection.style.left=Math.min(e[0],e[1])+"%",this.trackSelection.style.width=Math.abs(e[0]-e[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";var g=this.tooltip_min.getBoundingClientRect(),v=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var i=Math.abs(this._state.percentage[0]-t),n=Math.abs(this._state.percentage[1]-t);this._state.dragged=i<n?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var r=this._calculateValue();return this._trigger("slideStart",r),this.setValue(r,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){0===e&&this.handle1.focus(),1===e&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var i;switch(t.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var n="horizontal"===this.options.orientation,r="vertical"===this.options.orientation,o=this.options.rtl,s=this.options.reversed;n?o?s||(i=-i):s&&(i=-i):r&&(s||(i=-i))}var a;if(this.ticksAreValid&&this.options.lock_to_ticks){var l=void 0;-1===(l=this.options.ticks.indexOf(this._state.value[e]))&&(l=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),l+=i,l=Math.max(0,Math.min(this.options.ticks.length-1,l)),a=this.options.ticks[l]}else a=this._state.value[e]+i*this.options.step;var c=this._toPercentage(a);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(c);var u=this._state.keyCtrl?this._state.value[0]:a,d=this._state.keyCtrl?a:this._state.value[1];a=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else a=Math.max(this.options.min,Math.min(this.options.max,a));return this._trigger("slideStart",a),this.setValue(a,!0,!0),this._trigger("slideStop",a),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var i=this._calculateValue(!0);return this.setValue(i,!0,!0),!1},_touchmove:function(e){void 0!==e.changedTouches&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var i=this._applyToFixedAndParseFloat(e,t);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>i?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var i=this._calculateValue(!0);return this.setValue(i,!1,!0),this._trigger("slideStop",i),this._state.dragged=null,!1},_setValues:function(e,t){var i=0===e?0:100;this._state.percentage[e]!==i&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],i=0;i<this.options.ticks.length;i++){var n=Math.abs(this.options.ticks[i]-e);n<=t[1]&&(t=[this.options.ticks[i],n])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var i=e.toFixed(t);return parseFloat(i)},_getPercentage:function(e){!this.touchCapable||"touchstart"!==e.type&&"touchmove"!==e.type&&"touchend"!==e.type||(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(t=-t);var i=t/this._state.size*100;return i=Math.round(i/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(i=100-i),Math.max(0,Math.min(100,i))},_validateInputValue:function(e){if(isNaN(+e)){if(Array.isArray(e))return this._validateArray(e),e;throw new Error(o.formatInvalidInputErrorMsg(e))}return+e},_validateArray:function(e){for(var t=0;t<e.length;t++){var i=e[t];if("number"!=typeof i)throw new Error(o.formatInvalidInputErrorMsg(i))}},_setDataVal:function(e){this.element.setAttribute("data-value",e),this.element.setAttribute("value",e),this.element.value=e},_trigger:function(t,i){i=i||0===i?i:void 0;var n=this.eventToCallbackMap[t];if(n&&n.length)for(var r=0;r<n.length;r++)(0,n[r])(i);e&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(e,t){var i={type:e,value:t};this.$element.trigger(i),this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)},_removeClass:function(e,t){for(var i=t.split(" "),n=e.className,r=0;r<i.length;r++){var o=i[r],s=new RegExp("(?:\\s|^)"+o+"(?:\\s|$)");n=n.replace(s," ")}e.className=n.trim()},_addClass:function(e,t){for(var i=t.split(" "),n=e.className,r=0;r<i.length;r++){var o=i[r];new RegExp("(?:\\s|^)"+o+"(?:\\s|$)").test(n)||(n+=" "+o)}e.className=n.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,"BODY"!==e.tagName&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,i,n){if(e)e.style(t,i,n);else{var r=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}));t.style[r]=n}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var t,i="left"===(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";e.forEach(function(e){this._addClass(e,"bs-tooltip-"+t),e.style[i]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?e.forEach(function(e){this._addClass(e,"bs-tooltip-bottom"),e.style.top="22px"}.bind(this)):e.forEach(function(e){this._addClass(e,"bs-tooltip-top"),e.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),i=0,n=0;n<this.options.ticks.length;++n){var r=Math.abs(e-this.options.ticks[n]);r<t&&(t=r,i=n)}return i},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(a&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),r=n):(e.bridget(i,t),r=i),e.bridget(n,t),e((function(){e("input[data-provide=slider]")[r]()})))}(e),t})?n.apply(t,r):n)||(e.exports=o)},524:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Alert:()=>At,Button:()=>It,Carousel:()=>ui,Collapse:()=>Ti,Dropdown:()=>Xi,Modal:()=>Dn,Offcanvas:()=>Xn,Popover:()=>yr,ScrollSpy:()=>Dr,Tab:()=>eo,Toast:()=>go,Tooltip:()=>mr});var n={};i.r(n),i.d(n,{afterMain:()=>C,afterRead:()=>y,afterWrite:()=>E,applyStyles:()=>M,arrow:()=>J,auto:()=>l,basePlacements:()=>c,beforeMain:()=>w,beforeRead:()=>_,beforeWrite:()=>T,bottom:()=>o,clippingParents:()=>h,computeStyles:()=>ne,createPopper:()=>Me,createPopperBase:()=>Fe,createPopperLite:()=>Le,detectOverflow:()=>be,end:()=>d,eventListeners:()=>oe,flip:()=>ye,hide:()=>Ce,left:()=>a,main:()=>x,modifierPhases:()=>S,offset:()=>Te,placements:()=>v,popper:()=>f,popperGenerator:()=>De,popperOffsets:()=>ke,preventOverflow:()=>Ee,read:()=>b,reference:()=>m,right:()=>s,start:()=>u,top:()=>r,variationPlacements:()=>g,viewport:()=>p,write:()=>k});var r="top",o="bottom",s="right",a="left",l="auto",c=[r,o,s,a],u="start",d="end",h="clippingParents",p="viewport",f="popper",m="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+d])}),[]),v=[].concat(c,[l]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])}),[]),_="beforeRead",b="read",y="afterRead",w="beforeMain",x="main",C="afterMain",T="beforeWrite",k="write",E="afterWrite",S=[_,b,y,w,x,C,T,k,E];function A(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function I(e){return e instanceof P(e).Element||e instanceof Element}function D(e){return e instanceof P(e).HTMLElement||e instanceof HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof P(e).ShadowRoot||e instanceof ShadowRoot)}const M={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];D(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});D(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function L(e){return e.split("-")[0]}var j=Math.max,O=Math.min,$=Math.round;function z(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function N(){return!/^((?!chrome|android).)*safari/i.test(z())}function R(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&D(e)&&(r=e.offsetWidth>0&&$(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&$(n.height)/e.offsetHeight||1);var s=(I(e)?P(e):window).visualViewport,a=!N()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,c=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function B(e){var t=R(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function U(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&F(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function H(e){return P(e).getComputedStyle(e)}function q(e){return["table","td","th"].indexOf(A(e))>=0}function W(e){return((I(e)?e.ownerDocument:e.document)||window.document).documentElement}function V(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||W(e)}function Z(e){return D(e)&&"fixed"!==H(e).position?e.offsetParent:null}function K(e){for(var t=P(e),i=Z(e);i&&q(i)&&"static"===H(i).position;)i=Z(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===H(i).position)?t:i||function(e){var t=/firefox/i.test(z());if(/Trident/i.test(z())&&D(e)&&"fixed"===H(e).position)return null;var i=V(e);for(F(i)&&(i=i.host);D(i)&&["html","body"].indexOf(A(i))<0;){var n=H(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e,t,i){return j(e,O(t,i))}function Q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,l=e.options,u=i.elements.arrow,d=i.modifiersData.popperOffsets,h=L(i.placement),p=X(h),f=[a,s].indexOf(h)>=0?"height":"width";if(u&&d){var m=function(e,t){return Q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,c))}(l.padding,i),g=B(u),v="y"===p?r:a,_="y"===p?o:s,b=i.rects.reference[f]+i.rects.reference[p]-d[p]-i.rects.popper[f],y=d[p]-i.rects.reference[p],w=K(u),x=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,C=b/2-y/2,T=m[v],k=x-g[f]-m[_],E=x/2-g[f]/2+C,S=Y(T,E,k),A=p;i.modifiersData[n]=((t={})[A]=S,t.centerOffset=S-E,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&U(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ee(e){return e.split("-")[1]}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,i=e.popper,n=e.popperRect,l=e.placement,c=e.variation,u=e.offsets,h=e.position,p=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,g=e.isFixed,v=u.x,_=void 0===v?0:v,b=u.y,y=void 0===b?0:b,w="function"==typeof m?m({x:_,y}):{x:_,y};_=w.x,y=w.y;var x=u.hasOwnProperty("x"),C=u.hasOwnProperty("y"),T=a,k=r,E=window;if(f){var S=K(i),A="clientHeight",I="clientWidth";if(S===P(i)&&"static"!==H(S=W(i)).position&&"absolute"===h&&(A="scrollHeight",I="scrollWidth"),l===r||(l===a||l===s)&&c===d)k=o,y-=(g&&S===E&&E.visualViewport?E.visualViewport.height:S[A])-n.height,y*=p?1:-1;if(l===a||(l===r||l===o)&&c===d)T=s,_-=(g&&S===E&&E.visualViewport?E.visualViewport.width:S[I])-n.width,_*=p?1:-1}var D,F=Object.assign({position:h},f&&te),M=!0===m?function(e,t){var i=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:$(i*r)/r||0,y:$(n*r)/r||0}}({x:_,y},P(i)):{x:_,y};return _=M.x,y=M.y,p?Object.assign({},F,((D={})[k]=C?"0":"",D[T]=x?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+_+"px, "+y+"px)":"translate3d("+_+"px, "+y+"px, 0)",D)):Object.assign({},F,((t={})[k]=C?y+"px":"",t[T]=x?_+"px":"",t.transform="",t))}const ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:L(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var re={passive:!0};const oe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=P(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,re)})),a&&l.addEventListener("resize",i.update,re),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,re)})),a&&l.removeEventListener("resize",i.update,re)}},data:{}};var se={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ue(e){var t=P(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function de(e){return R(W(e)).left+ue(e).scrollLeft}function he(e){var t=H(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function pe(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:D(e)&&he(e)?e:pe(V(e))}function fe(e,t){var i;void 0===t&&(t=[]);var n=pe(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=P(n),s=r?[o].concat(o.visualViewport||[],he(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(fe(V(s)))}function me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ge(e,t,i){return t===p?me(function(e,t){var i=P(e),n=W(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=N();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+de(e),y:l}}(e,i)):I(t)?function(e,t){var i=R(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):me(function(e){var t,i=W(e),n=ue(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=j(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=j(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+de(e),l=-n.scrollTop;return"rtl"===H(r||i).direction&&(a+=j(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(W(e)))}function ve(e,t,i,n){var r="clippingParents"===t?function(e){var t=fe(V(e)),i=["absolute","fixed"].indexOf(H(e).position)>=0&&D(e)?K(e):e;return I(i)?t.filter((function(e){return I(e)&&U(e,i)&&"body"!==A(e)})):[]}(e):[].concat(t),o=[].concat(r,[i]),s=o[0],a=o.reduce((function(t,i){var r=ge(e,i,n);return t.top=j(r.top,t.top),t.right=O(r.right,t.right),t.bottom=O(r.bottom,t.bottom),t.left=j(r.left,t.left),t}),ge(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _e(e){var t,i=e.reference,n=e.element,l=e.placement,c=l?L(l):null,h=l?ee(l):null,p=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2;switch(c){case r:t={x:p,y:i.y-n.height};break;case o:t={x:p,y:i.y+i.height};break;case s:t={x:i.x+i.width,y:f};break;case a:t={x:i.x-n.width,y:f};break;default:t={x:i.x,y:i.y}}var m=c?X(c):null;if(null!=m){var g="y"===m?"height":"width";switch(h){case u:t[m]=t[m]-(i[g]/2-n[g]/2);break;case d:t[m]=t[m]+(i[g]/2-n[g]/2)}}return t}function be(e,t){void 0===t&&(t={});var i=t,n=i.placement,a=void 0===n?e.placement:n,l=i.strategy,u=void 0===l?e.strategy:l,d=i.boundary,g=void 0===d?h:d,v=i.rootBoundary,_=void 0===v?p:v,b=i.elementContext,y=void 0===b?f:b,w=i.altBoundary,x=void 0!==w&&w,C=i.padding,T=void 0===C?0:C,k=Q("number"!=typeof T?T:G(T,c)),E=y===f?m:f,S=e.rects.popper,A=e.elements[x?E:y],P=ve(I(A)?A:A.contextElement||W(e.elements.popper),g,_,u),D=R(e.elements.reference),F=_e({reference:D,element:S,strategy:"absolute",placement:a}),M=me(Object.assign({},S,F)),L=y===f?M:D,j={top:P.top-L.top+k.top,bottom:L.bottom-P.bottom+k.bottom,left:P.left-L.left+k.left,right:L.right-P.right+k.right},O=e.modifiersData.offset;if(y===f&&O){var $=O[a];Object.keys(j).forEach((function(e){var t=[s,o].indexOf(e)>=0?1:-1,i=[r,o].indexOf(e)>=0?"y":"x";j[e]+=$[i]*t}))}return j}const ye={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var d=i.mainAxis,h=void 0===d||d,p=i.altAxis,f=void 0===p||p,m=i.fallbackPlacements,_=i.padding,b=i.boundary,y=i.rootBoundary,w=i.altBoundary,x=i.flipVariations,C=void 0===x||x,T=i.allowedAutoPlacements,k=t.options.placement,E=L(k),S=m||(E===k||!C?[ae(k)]:function(e){if(L(e)===l)return[];var t=ae(e);return[ce(e),t,ce(t)]}(k)),A=[k].concat(S).reduce((function(e,i){return e.concat(L(i)===l?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,u=void 0===l?v:l,d=ee(n),h=d?a?g:g.filter((function(e){return ee(e)===d})):c,p=h.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=h);var f=p.reduce((function(t,i){return t[i]=be(e,{placement:i,boundary:r,rootBoundary:o,padding:s})[L(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:i,boundary:b,rootBoundary:y,padding:_,flipVariations:C,allowedAutoPlacements:T}):i)}),[]),P=t.rects.reference,I=t.rects.popper,D=new Map,F=!0,M=A[0],j=0;j<A.length;j++){var O=A[j],$=L(O),z=ee(O)===u,N=[r,o].indexOf($)>=0,R=N?"width":"height",B=be(t,{placement:O,boundary:b,rootBoundary:y,altBoundary:w,padding:_}),U=N?z?s:a:z?o:r;P[R]>I[R]&&(U=ae(U));var H=ae(U),q=[];if(h&&q.push(B[$]<=0),f&&q.push(B[U]<=0,B[H]<=0),q.every((function(e){return e}))){M=O,F=!1;break}D.set(O,q)}if(F)for(var W=function(e){var t=A.find((function(t){var i=D.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},V=C?3:1;V>0;V--){if("break"===W(V))break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function we(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function xe(e){return[r,s,o,a].some((function(t){return e[t]>=0}))}const Ce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=be(t,{elementContext:"reference"}),a=be(t,{altBoundary:!0}),l=we(s,n),c=we(a,r,o),u=xe(l),d=xe(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,l=void 0===o?[0,0]:o,c=v.reduce((function(e,i){return e[i]=function(e,t,i){var n=L(e),o=[a,r].indexOf(n)>=0?-1:1,l="function"==typeof i?i(Object.assign({},t,{placement:e})):i,c=l[0],u=l[1];return c=c||0,u=(u||0)*o,[a,s].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}(i,t.rects,l),e}),{}),u=c[t.placement],d=u.x,h=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=c}};const ke={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=_e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Ee={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,l=i.mainAxis,c=void 0===l||l,d=i.altAxis,h=void 0!==d&&d,p=i.boundary,f=i.rootBoundary,m=i.altBoundary,g=i.padding,v=i.tether,_=void 0===v||v,b=i.tetherOffset,y=void 0===b?0:b,w=be(t,{boundary:p,rootBoundary:f,padding:g,altBoundary:m}),x=L(t.placement),C=ee(t.placement),T=!C,k=X(x),E="x"===k?"y":"x",S=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,I="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(c){var $,z="y"===k?r:a,N="y"===k?o:s,R="y"===k?"height":"width",U=S[k],H=U+w[z],q=U-w[N],W=_?-P[R]/2:0,V=C===u?A[R]:P[R],Z=C===u?-P[R]:-A[R],Q=t.elements.arrow,G=_&&Q?B(Q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=J[z],ie=J[N],ne=Y(0,A[R],G[R]),re=T?A[R]/2-W-ne-te-D.mainAxis:V-ne-te-D.mainAxis,oe=T?-A[R]/2+W+ne+ie+D.mainAxis:Z+ne+ie+D.mainAxis,se=t.elements.arrow&&K(t.elements.arrow),ae=se?"y"===k?se.clientTop||0:se.clientLeft||0:0,le=null!=($=null==F?void 0:F[k])?$:0,ce=U+oe-le,ue=Y(_?O(H,U+re-le-ae):H,U,_?j(q,ce):q);S[k]=ue,M[k]=ue-U}if(h){var de,he="x"===k?r:a,pe="x"===k?o:s,fe=S[E],me="y"===E?"height":"width",ge=fe+w[he],ve=fe-w[pe],_e=-1!==[r,a].indexOf(x),ye=null!=(de=null==F?void 0:F[E])?de:0,we=_e?ge:fe-A[me]-P[me]-ye+D.altAxis,xe=_e?fe+A[me]+P[me]-ye-D.altAxis:ve,Ce=_&&_e?function(e,t,i){var n=Y(e,t,i);return n>i?i:n}(we,fe,xe):Y(_?we:ge,fe,_?xe:ve);S[E]=Ce,M[E]=Ce-fe}t.modifiersData[n]=M}},requiresIfExists:["offset"]};function Se(e,t,i){void 0===i&&(i=!1);var n,r,o=D(t),s=D(t)&&function(e){var t=e.getBoundingClientRect(),i=$(t.width)/e.offsetWidth||1,n=$(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=W(t),l=R(e,s,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!i)&&(("body"!==A(t)||he(a))&&(c=(n=t)!==P(n)&&D(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:ue(n)),D(t)?((u=R(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=de(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ae(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||r(e)})),n}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ie(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function De(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,o=void 0===r?Pe:r;return function(e,t,i){void 0===i&&(i=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var r="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:I(e)?fe(e):e.contextElement?fe(e.contextElement):[],popper:fe(t)};var s,c,h=function(e){var t=Ae(e);return S.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:n}),s=function(){};l.push(o||s)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(Ie(t,i)){a.rects={reference:Se(t,K(i),"fixed"===a.options.strategy),popper:B(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var r=a.orderedModifiers[n],o=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){d(),c=!0}};if(!Ie(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),u}}var Fe=De(),Me=De({defaultModifiers:[oe,ke,ne,M,Te,ye,Ee,J,Ce]}),Le=De({defaultModifiers:[oe,ke,ne,M]});
 /*!
   * Bootstrap v5.3.3 (https://getbootstrap.com/)
   * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
   */
-const Oe=new Map,je={set(e,t,i){Oe.has(e)||Oe.set(e,new Map);const n=Oe.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Oe.has(e)&&Oe.get(e).get(t)||null,remove(e,t){if(!Oe.has(e))return;const i=Oe.get(e);i.delete(t),0===i.size&&Oe.delete(e)}},$e="transitionend",ze=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Ne=e=>{e.dispatchEvent(new Event($e))},Re=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Ue=e=>Re(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(ze(e)):null,Be=e=>{if(!Re(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},He=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),qe=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?qe(e.parentNode):null},We=()=>{},Ve=e=>{e.offsetHeight},Ze=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ke=[],Xe=()=>"rtl"===document.documentElement.dir,Ye=e=>{var t;t=()=>{const t=Ze();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(Ke.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Ke)e()})),Ke.push(t)):t()},Qe=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,Ge=(e,t,i=!0)=>{if(!i)return void Qe(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),r=Number.parseFloat(i);return n||r?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let r=!1;const o=({target:i})=>{i===t&&(r=!0,t.removeEventListener($e,o),Qe(e))};t.addEventListener($e,o),setTimeout((()=>{r||Ne(t)}),n)},Je=(e,t,i,n)=>{const r=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[r-1]:e[0]:(o+=i?1:-1,n&&(o=(o+r)%r),e[Math.max(0,Math.min(o,r-1))])},et=/[^.]*(?=\..*)\.|.*/,tt=/\..*/,it=/::\d+$/,nt={};let rt=1;const ot={mouseenter:"mouseover",mouseleave:"mouseout"},st=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function at(e,t){return t&&`${t}::${rt++}`||e.uidEvent||rt++}function lt(e){const t=at(e);return e.uidEvent=t,nt[t]=nt[t]||{},nt[t]}function ct(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ut(e,t,i){const n="string"==typeof t,r=n?i:t||i;let o=ft(e);return st.has(o)||(o=e),[n,r,o]}function dt(e,t,i,n,r){if("string"!=typeof t||!e)return;let[o,s,a]=ut(t,i,n);if(t in ot){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=lt(e),c=l[a]||(l[a]={}),u=ct(c,s,o?i:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=at(s,t.replace(et,"")),h=o?function(e,t,i){return function n(r){const o=e.querySelectorAll(t);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return gt(r,{delegateTarget:s}),n.oneOff&&mt.off(e,r.type,t,i),i.apply(s,[r])}}(e,i,s):function(e,t){return function i(n){return gt(n,{delegateTarget:e}),i.oneOff&&mt.off(e,n.type,t),t.apply(e,[n])}}(e,s);h.delegationSelector=o?i:null,h.callable=s,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(a,h,o)}function ht(e,t,i,n,r){const o=ct(t[i],n,r);o&&(e.removeEventListener(i,o,Boolean(r)),delete t[i][o.uidEvent])}function pt(e,t,i,n){const r=t[i]||{};for(const[o,s]of Object.entries(r))o.includes(n)&&ht(e,t,i,s.callable,s.delegationSelector)}function ft(e){return e=e.replace(tt,""),ot[e]||e}const mt={on(e,t,i,n){dt(e,t,i,n,!1)},one(e,t,i,n){dt(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[r,o,s]=ut(t,i,n),a=s!==t,l=lt(e),c=l[s]||{},u=t.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))pt(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const r=i.replace(it,"");a&&!t.includes(r)||ht(e,l,s,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;ht(e,l,s,o,r?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Ze();let r=null,o=!0,s=!0,a=!1;t!==ft(t)&&n&&(r=n.Event(t,i),n(e).trigger(r),o=!r.isPropagationStopped(),s=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const l=gt(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function gt(e,t={}){for(const[i,n]of Object.entries(t))try{e[i]=n}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function vt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function _t(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const bt={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${_t(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${_t(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=vt(e.dataset[n])}return t},getDataAttribute:(e,t)=>vt(e.getAttribute(`data-bs-${_t(t)}`))};class yt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Re(t)?bt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Re(t)?bt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,r]of Object.entries(t)){const t=e[n],o=Re(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${r}".`)}var i}}class wt extends yt{constructor(e,t){super(),(e=Ue(e))&&(this._element=e,this._config=this._getConfig(t),je.set(this._element,this.constructor.DATA_KEY,this))}dispose(){je.remove(this._element,this.constructor.DATA_KEY),mt.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Ge(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return je.get(Ue(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const xt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>ze(e))).join(","):null},Ct={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!He(e)&&Be(e)))},getSelectorFromElement(e){const t=xt(e);return t&&Ct.findOne(t)?t:null},getElementFromSelector(e){const t=xt(e);return t?Ct.findOne(t):null},getMultipleElementsFromSelector(e){const t=xt(e);return t?Ct.find(t):[]}},Tt=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;mt.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),He(this))return;const r=Ct.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(r)[t]()}))},kt=".bs.alert",Et=`close${kt}`,St=`closed${kt}`;class At extends wt{static get NAME(){return"alert"}close(){if(mt.trigger(this._element,Et).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),mt.trigger(this._element,St),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=At.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Tt(At,"close"),Ye(At);const Pt='[data-bs-toggle="button"]';class It extends wt{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=It.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}mt.on(document,"click.bs.button.data-api",Pt,(e=>{e.preventDefault();const t=e.target.closest(Pt);It.getOrCreateInstance(t).toggle()})),Ye(It);const Dt=".bs.swipe",Ft=`touchstart${Dt}`,Lt=`touchmove${Dt}`,Mt=`touchend${Dt}`,Ot=`pointerdown${Dt}`,jt=`pointerup${Dt}`,$t={endCallback:null,leftCallback:null,rightCallback:null},zt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Nt extends yt{constructor(e,t){super(),this._element=e,e&&Nt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $t}static get DefaultType(){return zt}static get NAME(){return"swipe"}dispose(){mt.off(this._element,Dt)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Qe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Qe(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(mt.on(this._element,Ot,(e=>this._start(e))),mt.on(this._element,jt,(e=>this._end(e))),this._element.classList.add("pointer-event")):(mt.on(this._element,Ft,(e=>this._start(e))),mt.on(this._element,Lt,(e=>this._move(e))),mt.on(this._element,Mt,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Rt=".bs.carousel",Ut=".data-api",Bt="next",Ht="prev",qt="left",Wt="right",Vt=`slide${Rt}`,Zt=`slid${Rt}`,Kt=`keydown${Rt}`,Xt=`mouseenter${Rt}`,Yt=`mouseleave${Rt}`,Qt=`dragstart${Rt}`,Gt=`load${Rt}${Ut}`,Jt=`click${Rt}${Ut}`,ei="carousel",ti="active",ii=".active",ni=".carousel-item",ri=ii+ni,oi={ArrowLeft:Wt,ArrowRight:qt},si={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ai={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class li extends wt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ct.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ei&&this.cycle()}static get Default(){return si}static get DefaultType(){return ai}static get NAME(){return"carousel"}next(){this._slide(Bt)}nextWhenVisible(){!document.hidden&&Be(this._element)&&this.next()}prev(){this._slide(Ht)}pause(){this._isSliding&&Ne(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?mt.one(this._element,Zt,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void mt.one(this._element,Zt,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?Bt:Ht;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&mt.on(this._element,Kt,(e=>this._keydown(e))),"hover"===this._config.pause&&(mt.on(this._element,Xt,(()=>this.pause())),mt.on(this._element,Yt,(()=>this._maybeEnableCycle()))),this._config.touch&&Nt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Ct.find(".carousel-item img",this._element))mt.on(e,Qt,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(qt)),rightCallback:()=>this._slide(this._directionToOrder(Wt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Nt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=oi[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Ct.findOne(ii,this._indicatorsElement);t.classList.remove(ti),t.removeAttribute("aria-current");const i=Ct.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(ti),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===Bt,r=t||Je(this._getItems(),i,n,this._config.wrap);if(r===i)return;const o=this._getItemIndex(r),s=t=>mt.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(s(Vt).defaultPrevented)return;if(!i||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";r.classList.add(c),Ve(r),i.classList.add(l),r.classList.add(l);this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(ti),i.classList.remove(ti,c,l),this._isSliding=!1,s(Zt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ct.findOne(ri,this._element)}_getItems(){return Ct.find(ni,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Xe()?e===qt?Ht:Bt:e===qt?Bt:Ht}_orderToDirection(e){return Xe()?e===Ht?qt:Wt:e===Ht?Wt:qt}static jQueryInterface(e){return this.each((function(){const t=li.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}mt.on(document,Jt,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Ct.getElementFromSelector(this);if(!t||!t.classList.contains(ei))return;e.preventDefault();const i=li.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===bt.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),mt.on(window,Gt,(()=>{const e=Ct.find('[data-bs-ride="carousel"]');for(const t of e)li.getOrCreateInstance(t)})),Ye(li);const ci=".bs.collapse",ui=`show${ci}`,di=`shown${ci}`,hi=`hide${ci}`,pi=`hidden${ci}`,fi=`click${ci}.data-api`,mi="show",gi="collapse",vi="collapsing",_i=`:scope .${gi} .${gi}`,bi='[data-bs-toggle="collapse"]',yi={parent:null,toggle:!0},wi={parent:"(null|element)",toggle:"boolean"};class xi extends wt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Ct.find(bi);for(const e of i){const t=Ct.getSelectorFromElement(e),i=Ct.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yi}static get DefaultType(){return wi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>xi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(mt.trigger(this._element,ui).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(gi),this._element.classList.add(vi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(gi,mi),this._element.style[t]="",mt.trigger(this._element,di)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(mt.trigger(this._element,hi).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ve(this._element),this._element.classList.add(vi),this._element.classList.remove(gi,mi);for(const e of this._triggerArray){const t=Ct.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(gi),mt.trigger(this._element,pi)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(mi)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Ue(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(bi);for(const t of e){const e=Ct.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Ct.find(_i,this._config.parent);return Ct.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=xi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}mt.on(document,fi,bi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Ct.getMultipleElementsFromSelector(this))xi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Ye(xi);const Ci="dropdown",Ti=".bs.dropdown",ki=".data-api",Ei="ArrowUp",Si="ArrowDown",Ai=`hide${Ti}`,Pi=`hidden${Ti}`,Ii=`show${Ti}`,Di=`shown${Ti}`,Fi=`click${Ti}${ki}`,Li=`keydown${Ti}${ki}`,Mi=`keyup${Ti}${ki}`,Oi="show",ji='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',$i=`${ji}.${Oi}`,zi=".dropdown-menu",Ni=Xe()?"top-end":"top-start",Ri=Xe()?"top-start":"top-end",Ui=Xe()?"bottom-end":"bottom-start",Bi=Xe()?"bottom-start":"bottom-end",Hi=Xe()?"left-start":"right-start",qi=Xe()?"right-start":"left-start",Wi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Zi extends wt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ct.next(this._element,zi)[0]||Ct.prev(this._element,zi)[0]||Ct.findOne(zi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wi}static get DefaultType(){return Vi}static get NAME(){return Ci}toggle(){return this._isShown()?this.hide():this.show()}show(){if(He(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!mt.trigger(this._element,Ii,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))mt.on(e,"mouseover",We);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Oi),this._element.classList.add(Oi),mt.trigger(this._element,Di,e)}}hide(){if(He(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!mt.trigger(this._element,Ai,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.off(e,"mouseover",We);this._popper&&this._popper.destroy(),this._menu.classList.remove(Oi),this._element.classList.remove(Oi),this._element.setAttribute("aria-expanded","false"),bt.removeDataAttribute(this._menu,"popper"),mt.trigger(this._element,Pi,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Re(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ci.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Re(this._config.reference)?e=Ue(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Le(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Oi)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Hi;if(e.classList.contains("dropstart"))return qi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ri:Ni:t?Bi:Ui}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(bt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Qe(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=Ct.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Be(e)));i.length&&Je(i,t,e===Si,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Ct.find($i);for(const i of t){const t=Zi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),r=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[Ei,Si].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const r=this.matches(ji)?this:Ct.prev(this,ji)[0]||Ct.next(this,ji)[0]||Ct.findOne(ji,e.delegateTarget.parentNode),o=Zi.getOrCreateInstance(r);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}}mt.on(document,Li,ji,Zi.dataApiKeydownHandler),mt.on(document,Li,zi,Zi.dataApiKeydownHandler),mt.on(document,Fi,Zi.clearMenus),mt.on(document,Mi,Zi.clearMenus),mt.on(document,Fi,ji,(function(e){e.preventDefault(),Zi.getOrCreateInstance(this).toggle()})),Ye(Zi);const Ki="backdrop",Xi="show",Yi=`mousedown.bs.${Ki}`,Qi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Gi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ji extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Qi}static get DefaultType(){return Gi}static get NAME(){return Ki}show(e){if(!this._config.isVisible)return void Qe(e);this._append();const t=this._getElement();this._config.isAnimated&&Ve(t),t.classList.add(Xi),this._emulateAnimation((()=>{Qe(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Xi),this._emulateAnimation((()=>{this.dispose(),Qe(e)}))):Qe(e)}dispose(){this._isAppended&&(mt.off(this._element,Yi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ue(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),mt.on(e,Yi,(()=>{Qe(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Ge(e,this._getElement(),this._config.isAnimated)}}const en=".bs.focustrap",tn=`focusin${en}`,nn=`keydown.tab${en}`,rn="backward",on={autofocus:!0,trapElement:null},sn={autofocus:"boolean",trapElement:"element"};class an extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return on}static get DefaultType(){return sn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),mt.off(document,en),mt.on(document,tn,(e=>this._handleFocusin(e))),mt.on(document,nn,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,mt.off(document,en))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Ct.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===rn?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?rn:"forward")}}const ln=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cn=".sticky-top",un="padding-right",dn="margin-right";class hn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,un,(t=>t+e)),this._setElementAttributes(ln,un,(t=>t+e)),this._setElementAttributes(cn,dn,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,un),this._resetElementAttributes(ln,un),this._resetElementAttributes(cn,dn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&bt.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=bt.getDataAttribute(e,t);null!==i?(bt.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Re(e))t(e);else for(const i of Ct.find(e,this._element))t(i)}}const pn=".bs.modal",fn=`hide${pn}`,mn=`hidePrevented${pn}`,gn=`hidden${pn}`,vn=`show${pn}`,_n=`shown${pn}`,bn=`resize${pn}`,yn=`click.dismiss${pn}`,wn=`mousedown.dismiss${pn}`,xn=`keydown.dismiss${pn}`,Cn=`click${pn}.data-api`,Tn="modal-open",kn="show",En="modal-static",Sn={backdrop:!0,focus:!0,keyboard:!0},An={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Pn extends wt{constructor(e,t){super(e,t),this._dialog=Ct.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hn,this._addEventListeners()}static get Default(){return Sn}static get DefaultType(){return An}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;mt.trigger(this._element,vn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;mt.trigger(this._element,fn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){mt.off(window,pn),mt.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ji({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new an({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Ct.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ve(this._element),this._element.classList.add(kn);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,mt.trigger(this._element,_n,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){mt.on(this._element,xn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),mt.on(window,bn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),mt.on(this._element,wn,(e=>{mt.one(this._element,yn,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Tn),this._resetAdjustments(),this._scrollBar.reset(),mt.trigger(this._element,gn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(mt.trigger(this._element,mn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(En)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(En),this._queueCallback((()=>{this._element.classList.remove(En),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=Xe()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=Xe()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Pn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}mt.on(document,Cn,'[data-bs-toggle="modal"]',(function(e){const t=Ct.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),mt.one(t,vn,(e=>{e.defaultPrevented||mt.one(t,gn,(()=>{Be(this)&&this.focus()}))}));const i=Ct.findOne(".modal.show");i&&Pn.getInstance(i).hide();Pn.getOrCreateInstance(t).toggle(this)})),Tt(Pn),Ye(Pn);const In=".bs.offcanvas",Dn=".data-api",Fn=`load${In}${Dn}`,Ln="show",Mn="showing",On="hiding",jn=".offcanvas.show",$n=`show${In}`,zn=`shown${In}`,Nn=`hide${In}`,Rn=`hidePrevented${In}`,Un=`hidden${In}`,Bn=`resize${In}`,Hn=`click${In}${Dn}`,qn=`keydown.dismiss${In}`,Wn={backdrop:!0,keyboard:!0,scroll:!1},Vn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Zn extends wt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Wn}static get DefaultType(){return Vn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(mt.trigger(this._element,$n,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Mn);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ln),this._element.classList.remove(Mn),mt.trigger(this._element,zn,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(mt.trigger(this._element,Nn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(On),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Ln,On),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hn).reset(),mt.trigger(this._element,Un)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Ji({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():mt.trigger(this._element,Rn)}:null})}_initializeFocusTrap(){return new an({trapElement:this._element})}_addEventListeners(){mt.on(this._element,qn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():mt.trigger(this._element,Rn))}))}static jQueryInterface(e){return this.each((function(){const t=Zn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}mt.on(document,Hn,'[data-bs-toggle="offcanvas"]',(function(e){const t=Ct.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),He(this))return;mt.one(t,Un,(()=>{Be(this)&&this.focus()}));const i=Ct.findOne(jn);i&&i!==t&&Zn.getInstance(i).hide();Zn.getOrCreateInstance(t).toggle(this)})),mt.on(window,Fn,(()=>{for(const e of Ct.find(jn))Zn.getOrCreateInstance(e).show()})),mt.on(window,Bn,(()=>{for(const e of Ct.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Zn.getOrCreateInstance(e).hide()})),Tt(Zn),Ye(Zn);const Kn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Yn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qn=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Xn.has(i)||Boolean(Yn.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))};const Gn={allowList:Kn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Jn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},er={entry:"(string|element|function|null)",selector:"(string|element)"};class tr extends yt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Gn}static get DefaultType(){return Jn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},er)}_setContent(e,t,i){const n=Ct.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?Re(t)?this._putElementInTemplate(Ue(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const e of r){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[i]||[]);for(const t of n)Qn(t,r)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Qe(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ir=new Set(["sanitize","allowList","sanitizeFn"]),nr="fade",rr="show",or=".modal",sr="hide.bs.modal",ar="hover",lr="focus",cr={AUTO:"auto",TOP:"top",RIGHT:Xe()?"left":"right",BOTTOM:"bottom",LEFT:Xe()?"right":"left"},ur={allowList:Kn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},dr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class hr extends wt{constructor(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ur}static get DefaultType(){return dr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),mt.off(this._element.closest(or),sr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=mt.trigger(this._element,this.constructor.eventName("show")),t=(qe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),mt.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(rr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.on(e,"mouseover",We);this._queueCallback((()=>{mt.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(mt.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(rr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.off(e,"mouseover",We);this._activeTrigger.click=!1,this._activeTrigger[lr]=!1,this._activeTrigger[ar]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),mt.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(nr,rr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(nr),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new tr({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(nr)}_isShown(){return this.tip&&this.tip.classList.contains(rr)}_createPopper(e){const t=Qe(this._config.placement,[this,e,this._element]),i=cr[t.toUpperCase()];return Le(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Qe(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Qe(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)mt.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===ar?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===ar?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");mt.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?lr:ar]=!0,t._enter()})),mt.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?lr:ar]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},mt.on(this._element.closest(or),sr,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bt.getDataAttributes(this._element);for(const e of Object.keys(t))ir.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Ue(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=hr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(hr);const pr={...hr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},fr={...hr.DefaultType,content:"(null|string|element|function)"};class mr extends hr{static get Default(){return pr}static get DefaultType(){return fr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=mr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(mr);const gr=".bs.scrollspy",vr=`activate${gr}`,_r=`click${gr}`,br=`load${gr}.data-api`,yr="active",wr="[href]",xr=".nav-link",Cr=`${xr}, .nav-item > ${xr}, .list-group-item`,Tr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Er extends wt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tr}static get DefaultType(){return kr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ue(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(mt.off(this._config.target,_r),mt.on(this._config.target,_r,wr,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(i(o),!n)return}else r||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ct.find(wr,this._config.target);for(const t of e){if(!t.hash||He(t))continue;const e=Ct.findOne(decodeURI(t.hash),this._element);Be(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(yr),this._activateParents(e),mt.trigger(this._element,vr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Ct.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(yr);else for(const t of Ct.parents(e,".nav, .list-group"))for(const e of Ct.prev(t,Cr))e.classList.add(yr)}_clearActiveClass(e){e.classList.remove(yr);const t=Ct.find(`${wr}.${yr}`,e);for(const e of t)e.classList.remove(yr)}static jQueryInterface(e){return this.each((function(){const t=Er.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}mt.on(window,br,(()=>{for(const e of Ct.find('[data-bs-spy="scroll"]'))Er.getOrCreateInstance(e)})),Ye(Er);const Sr=".bs.tab",Ar=`hide${Sr}`,Pr=`hidden${Sr}`,Ir=`show${Sr}`,Dr=`shown${Sr}`,Fr=`click${Sr}`,Lr=`keydown${Sr}`,Mr=`load${Sr}`,Or="ArrowLeft",jr="ArrowRight",$r="ArrowUp",zr="ArrowDown",Nr="Home",Rr="End",Ur="active",Br="fade",Hr="show",qr=".dropdown-toggle",Wr=`:not(${qr})`,Vr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Zr=`${`.nav-link${Wr}, .list-group-item${Wr}, [role="tab"]${Wr}`}, ${Vr}`,Kr=`.${Ur}[data-bs-toggle="tab"], .${Ur}[data-bs-toggle="pill"], .${Ur}[data-bs-toggle="list"]`;class Xr extends wt{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),mt.on(this._element,Lr,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?mt.trigger(t,Ar,{relatedTarget:e}):null;mt.trigger(e,Ir,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ur),this._activate(Ct.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),mt.trigger(e,Dr,{relatedTarget:t})):e.classList.add(Hr)}),e,e.classList.contains(Br))}_deactivate(e,t){if(!e)return;e.classList.remove(Ur),e.blur(),this._deactivate(Ct.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),mt.trigger(e,Pr,{relatedTarget:t})):e.classList.remove(Hr)}),e,e.classList.contains(Br))}_keydown(e){if(![Or,jr,$r,zr,Nr,Rr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!He(e)));let i;if([Nr,Rr].includes(e.key))i=t[e.key===Nr?0:t.length-1];else{const n=[jr,zr].includes(e.key);i=Je(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),Xr.getOrCreateInstance(i).show())}_getChildren(){return Ct.find(Zr,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Ct.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const r=Ct.findOne(e,i);r&&r.classList.toggle(n,t)};n(qr,Ur),n(".dropdown-menu",Hr),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Ur)}_getInnerElement(e){return e.matches(Zr)?e:Ct.findOne(Zr,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Xr.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}mt.on(document,Fr,Vr,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),He(this)||Xr.getOrCreateInstance(this).show()})),mt.on(window,Mr,(()=>{for(const e of Ct.find(Kr))Xr.getOrCreateInstance(e)})),Ye(Xr);const Yr=".bs.toast",Qr=`mouseover${Yr}`,Gr=`mouseout${Yr}`,Jr=`focusin${Yr}`,eo=`focusout${Yr}`,to=`hide${Yr}`,io=`hidden${Yr}`,no=`show${Yr}`,ro=`shown${Yr}`,oo="hide",so="show",ao="showing",lo={animation:"boolean",autohide:"boolean",delay:"number"},co={animation:!0,autohide:!0,delay:5e3};class uo extends wt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return co}static get DefaultType(){return lo}static get NAME(){return"toast"}show(){if(mt.trigger(this._element,no).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(oo),Ve(this._element),this._element.classList.add(so,ao),this._queueCallback((()=>{this._element.classList.remove(ao),mt.trigger(this._element,ro),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(mt.trigger(this._element,to).defaultPrevented)return;this._element.classList.add(ao),this._queueCallback((()=>{this._element.classList.add(oo),this._element.classList.remove(ao,so),mt.trigger(this._element,io)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(so),super.dispose()}isShown(){return this._element.classList.contains(so)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){mt.on(this._element,Qr,(e=>this._onInteraction(e,!0))),mt.on(this._element,Gr,(e=>this._onInteraction(e,!1))),mt.on(this._element,Jr,(e=>this._onInteraction(e,!0))),mt.on(this._element,eo,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=uo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Tt(uo),Ye(uo)},518:(e,t,i)=>{var n,r,o;
+const je=new Map,Oe={set(e,t,i){je.has(e)||je.set(e,new Map);const n=je.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>je.has(e)&&je.get(e).get(t)||null,remove(e,t){if(!je.has(e))return;const i=je.get(e);i.delete(t),0===i.size&&je.delete(e)}},$e="transitionend",ze=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Ne=e=>{e.dispatchEvent(new Event($e))},Re=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Be=e=>Re(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(ze(e)):null,Ue=e=>{if(!Re(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},He=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),qe=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?qe(e.parentNode):null},We=()=>{},Ve=e=>{e.offsetHeight},Ze=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ke=[],Xe=()=>"rtl"===document.documentElement.dir,Ye=e=>{var t;t=()=>{const t=Ze();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(Ke.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Ke)e()})),Ke.push(t)):t()},Qe=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,Ge=(e,t,i=!0)=>{if(!i)return void Qe(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),r=Number.parseFloat(i);return n||r?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let r=!1;const o=({target:i})=>{i===t&&(r=!0,t.removeEventListener($e,o),Qe(e))};t.addEventListener($e,o),setTimeout((()=>{r||Ne(t)}),n)},Je=(e,t,i,n)=>{const r=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[r-1]:e[0]:(o+=i?1:-1,n&&(o=(o+r)%r),e[Math.max(0,Math.min(o,r-1))])},et=/[^.]*(?=\..*)\.|.*/,tt=/\..*/,it=/::\d+$/,nt={};let rt=1;const ot={mouseenter:"mouseover",mouseleave:"mouseout"},st=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function at(e,t){return t&&`${t}::${rt++}`||e.uidEvent||rt++}function lt(e){const t=at(e);return e.uidEvent=t,nt[t]=nt[t]||{},nt[t]}function ct(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ut(e,t,i){const n="string"==typeof t,r=n?i:t||i;let o=ft(e);return st.has(o)||(o=e),[n,r,o]}function dt(e,t,i,n,r){if("string"!=typeof t||!e)return;let[o,s,a]=ut(t,i,n);if(t in ot){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=lt(e),c=l[a]||(l[a]={}),u=ct(c,s,o?i:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=at(s,t.replace(et,"")),h=o?function(e,t,i){return function n(r){const o=e.querySelectorAll(t);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return gt(r,{delegateTarget:s}),n.oneOff&&mt.off(e,r.type,t,i),i.apply(s,[r])}}(e,i,s):function(e,t){return function i(n){return gt(n,{delegateTarget:e}),i.oneOff&&mt.off(e,n.type,t),t.apply(e,[n])}}(e,s);h.delegationSelector=o?i:null,h.callable=s,h.oneOff=r,h.uidEvent=d,c[d]=h,e.addEventListener(a,h,o)}function ht(e,t,i,n,r){const o=ct(t[i],n,r);o&&(e.removeEventListener(i,o,Boolean(r)),delete t[i][o.uidEvent])}function pt(e,t,i,n){const r=t[i]||{};for(const[o,s]of Object.entries(r))o.includes(n)&&ht(e,t,i,s.callable,s.delegationSelector)}function ft(e){return e=e.replace(tt,""),ot[e]||e}const mt={on(e,t,i,n){dt(e,t,i,n,!1)},one(e,t,i,n){dt(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[r,o,s]=ut(t,i,n),a=s!==t,l=lt(e),c=l[s]||{},u=t.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))pt(e,l,i,t.slice(1));for(const[i,n]of Object.entries(c)){const r=i.replace(it,"");a&&!t.includes(r)||ht(e,l,s,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;ht(e,l,s,o,r?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Ze();let r=null,o=!0,s=!0,a=!1;t!==ft(t)&&n&&(r=n.Event(t,i),n(e).trigger(r),o=!r.isPropagationStopped(),s=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const l=gt(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function gt(e,t={}){for(const[i,n]of Object.entries(t))try{e[i]=n}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function vt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function _t(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const bt={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${_t(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${_t(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=vt(e.dataset[n])}return t},getDataAttribute:(e,t)=>vt(e.getAttribute(`data-bs-${_t(t)}`))};class yt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Re(t)?bt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Re(t)?bt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,r]of Object.entries(t)){const t=e[n],o=Re(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${r}".`)}var i}}class wt extends yt{constructor(e,t){super(),(e=Be(e))&&(this._element=e,this._config=this._getConfig(t),Oe.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Oe.remove(this._element,this.constructor.DATA_KEY),mt.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Ge(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Oe.get(Be(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const xt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>ze(e))).join(","):null},Ct={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!He(e)&&Ue(e)))},getSelectorFromElement(e){const t=xt(e);return t&&Ct.findOne(t)?t:null},getElementFromSelector(e){const t=xt(e);return t?Ct.findOne(t):null},getMultipleElementsFromSelector(e){const t=xt(e);return t?Ct.find(t):[]}},Tt=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;mt.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),He(this))return;const r=Ct.getElementFromSelector(this)||this.closest(`.${n}`);e.getOrCreateInstance(r)[t]()}))},kt=".bs.alert",Et=`close${kt}`,St=`closed${kt}`;class At extends wt{static get NAME(){return"alert"}close(){if(mt.trigger(this._element,Et).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),mt.trigger(this._element,St),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=At.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Tt(At,"close"),Ye(At);const Pt='[data-bs-toggle="button"]';class It extends wt{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=It.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}mt.on(document,"click.bs.button.data-api",Pt,(e=>{e.preventDefault();const t=e.target.closest(Pt);It.getOrCreateInstance(t).toggle()})),Ye(It);const Dt=".bs.swipe",Ft=`touchstart${Dt}`,Mt=`touchmove${Dt}`,Lt=`touchend${Dt}`,jt=`pointerdown${Dt}`,Ot=`pointerup${Dt}`,$t={endCallback:null,leftCallback:null,rightCallback:null},zt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Nt extends yt{constructor(e,t){super(),this._element=e,e&&Nt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $t}static get DefaultType(){return zt}static get NAME(){return"swipe"}dispose(){mt.off(this._element,Dt)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Qe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Qe(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(mt.on(this._element,jt,(e=>this._start(e))),mt.on(this._element,Ot,(e=>this._end(e))),this._element.classList.add("pointer-event")):(mt.on(this._element,Ft,(e=>this._start(e))),mt.on(this._element,Mt,(e=>this._move(e))),mt.on(this._element,Lt,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Rt=".bs.carousel",Bt=".data-api",Ut="ArrowLeft",Ht="ArrowRight",qt="next",Wt="prev",Vt="left",Zt="right",Kt=`slide${Rt}`,Xt=`slid${Rt}`,Yt=`keydown${Rt}`,Qt=`mouseenter${Rt}`,Gt=`mouseleave${Rt}`,Jt=`dragstart${Rt}`,ei=`load${Rt}${Bt}`,ti=`click${Rt}${Bt}`,ii="carousel",ni="active",ri=".active",oi=".carousel-item",si=ri+oi,ai={[Ut]:Zt,[Ht]:Vt},li={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ci={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ui extends wt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ct.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ii&&this.cycle()}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return"carousel"}next(){this._slide(qt)}nextWhenVisible(){!document.hidden&&Ue(this._element)&&this.next()}prev(){this._slide(Wt)}pause(){this._isSliding&&Ne(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?mt.one(this._element,Xt,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void mt.one(this._element,Xt,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?qt:Wt;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&mt.on(this._element,Yt,(e=>this._keydown(e))),"hover"===this._config.pause&&(mt.on(this._element,Qt,(()=>this.pause())),mt.on(this._element,Gt,(()=>this._maybeEnableCycle()))),this._config.touch&&Nt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Ct.find(".carousel-item img",this._element))mt.on(e,Jt,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Vt)),rightCallback:()=>this._slide(this._directionToOrder(Zt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Nt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ai[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Ct.findOne(ri,this._indicatorsElement);t.classList.remove(ni),t.removeAttribute("aria-current");const i=Ct.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(ni),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===qt,r=t||Je(this._getItems(),i,n,this._config.wrap);if(r===i)return;const o=this._getItemIndex(r),s=t=>mt.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(s(Kt).defaultPrevented)return;if(!i||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";r.classList.add(c),Ve(r),i.classList.add(l),r.classList.add(l);this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(ni),i.classList.remove(ni,c,l),this._isSliding=!1,s(Xt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ct.findOne(si,this._element)}_getItems(){return Ct.find(oi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Xe()?e===Vt?Wt:qt:e===Vt?qt:Wt}_orderToDirection(e){return Xe()?e===Wt?Vt:Zt:e===Wt?Zt:Vt}static jQueryInterface(e){return this.each((function(){const t=ui.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}mt.on(document,ti,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Ct.getElementFromSelector(this);if(!t||!t.classList.contains(ii))return;e.preventDefault();const i=ui.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===bt.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),mt.on(window,ei,(()=>{const e=Ct.find('[data-bs-ride="carousel"]');for(const t of e)ui.getOrCreateInstance(t)})),Ye(ui);const di=".bs.collapse",hi=`show${di}`,pi=`shown${di}`,fi=`hide${di}`,mi=`hidden${di}`,gi=`click${di}.data-api`,vi="show",_i="collapse",bi="collapsing",yi=`:scope .${_i} .${_i}`,wi='[data-bs-toggle="collapse"]',xi={parent:null,toggle:!0},Ci={parent:"(null|element)",toggle:"boolean"};class Ti extends wt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Ct.find(wi);for(const e of i){const t=Ct.getSelectorFromElement(e),i=Ct.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xi}static get DefaultType(){return Ci}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ti.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(mt.trigger(this._element,hi).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(_i),this._element.classList.add(bi),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bi),this._element.classList.add(_i,vi),this._element.style[t]="",mt.trigger(this._element,pi)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(mt.trigger(this._element,fi).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ve(this._element),this._element.classList.add(bi),this._element.classList.remove(_i,vi);for(const e of this._triggerArray){const t=Ct.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bi),this._element.classList.add(_i),mt.trigger(this._element,mi)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(vi)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Be(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(wi);for(const t of e){const e=Ct.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Ct.find(yi,this._config.parent);return Ct.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=Ti.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}mt.on(document,gi,wi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Ct.getMultipleElementsFromSelector(this))Ti.getOrCreateInstance(e,{toggle:!1}).toggle()})),Ye(Ti);const ki="dropdown",Ei=".bs.dropdown",Si=".data-api",Ai="ArrowUp",Pi="ArrowDown",Ii=`hide${Ei}`,Di=`hidden${Ei}`,Fi=`show${Ei}`,Mi=`shown${Ei}`,Li=`click${Ei}${Si}`,ji=`keydown${Ei}${Si}`,Oi=`keyup${Ei}${Si}`,$i="show",zi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ni=`${zi}.${$i}`,Ri=".dropdown-menu",Bi=Xe()?"top-end":"top-start",Ui=Xe()?"top-start":"top-end",Hi=Xe()?"bottom-end":"bottom-start",qi=Xe()?"bottom-start":"bottom-end",Wi=Xe()?"left-start":"right-start",Vi=Xe()?"right-start":"left-start",Zi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ki={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xi extends wt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ct.next(this._element,Ri)[0]||Ct.prev(this._element,Ri)[0]||Ct.findOne(Ri,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Zi}static get DefaultType(){return Ki}static get NAME(){return ki}toggle(){return this._isShown()?this.hide():this.show()}show(){if(He(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!mt.trigger(this._element,Fi,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))mt.on(e,"mouseover",We);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),mt.trigger(this._element,Mi,e)}}hide(){if(He(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!mt.trigger(this._element,Ii,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.off(e,"mouseover",We);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),bt.removeDataAttribute(this._menu,"popper"),mt.trigger(this._element,Di,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Re(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ki.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Re(this._config.reference)?e=Be(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Me(e,this._menu,t)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Wi;if(e.classList.contains("dropstart"))return Vi;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ui:Bi:t?qi:Hi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(bt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Qe(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=Ct.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Ue(e)));i.length&&Je(i,t,e===Pi,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Xi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Ct.find(Ni);for(const i of t){const t=Xi.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),r=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[Ai,Pi].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const r=this.matches(zi)?this:Ct.prev(this,zi)[0]||Ct.next(this,zi)[0]||Ct.findOne(zi,e.delegateTarget.parentNode),o=Xi.getOrCreateInstance(r);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}}mt.on(document,ji,zi,Xi.dataApiKeydownHandler),mt.on(document,ji,Ri,Xi.dataApiKeydownHandler),mt.on(document,Li,Xi.clearMenus),mt.on(document,Oi,Xi.clearMenus),mt.on(document,Li,zi,(function(e){e.preventDefault(),Xi.getOrCreateInstance(this).toggle()})),Ye(Xi);const Yi="backdrop",Qi="show",Gi=`mousedown.bs.${Yi}`,Ji={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},en={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class tn extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ji}static get DefaultType(){return en}static get NAME(){return Yi}show(e){if(!this._config.isVisible)return void Qe(e);this._append();const t=this._getElement();this._config.isAnimated&&Ve(t),t.classList.add(Qi),this._emulateAnimation((()=>{Qe(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Qi),this._emulateAnimation((()=>{this.dispose(),Qe(e)}))):Qe(e)}dispose(){this._isAppended&&(mt.off(this._element,Gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Be(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),mt.on(e,Gi,(()=>{Qe(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Ge(e,this._getElement(),this._config.isAnimated)}}const nn=".bs.focustrap",rn=`focusin${nn}`,on=`keydown.tab${nn}`,sn="backward",an={autofocus:!0,trapElement:null},ln={autofocus:"boolean",trapElement:"element"};class cn extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return an}static get DefaultType(){return ln}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),mt.off(document,nn),mt.on(document,rn,(e=>this._handleFocusin(e))),mt.on(document,on,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,mt.off(document,nn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Ct.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===sn?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?sn:"forward")}}const un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dn=".sticky-top",hn="padding-right",pn="margin-right";class fn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hn,(t=>t+e)),this._setElementAttributes(un,hn,(t=>t+e)),this._setElementAttributes(dn,pn,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hn),this._resetElementAttributes(un,hn),this._resetElementAttributes(dn,pn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&bt.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=bt.getDataAttribute(e,t);null!==i?(bt.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Re(e))t(e);else for(const i of Ct.find(e,this._element))t(i)}}const mn=".bs.modal",gn=`hide${mn}`,vn=`hidePrevented${mn}`,_n=`hidden${mn}`,bn=`show${mn}`,yn=`shown${mn}`,wn=`resize${mn}`,xn=`click.dismiss${mn}`,Cn=`mousedown.dismiss${mn}`,Tn=`keydown.dismiss${mn}`,kn=`click${mn}.data-api`,En="modal-open",Sn="show",An="modal-static",Pn={backdrop:!0,focus:!0,keyboard:!0},In={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Dn extends wt{constructor(e,t){super(e,t),this._dialog=Ct.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fn,this._addEventListeners()}static get Default(){return Pn}static get DefaultType(){return In}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;mt.trigger(this._element,bn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(En),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;mt.trigger(this._element,gn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Sn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){mt.off(window,mn),mt.off(this._dialog,mn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new tn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cn({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Ct.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ve(this._element),this._element.classList.add(Sn);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,mt.trigger(this._element,yn,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){mt.on(this._element,Tn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),mt.on(window,wn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),mt.on(this._element,Cn,(e=>{mt.one(this._element,xn,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(En),this._resetAdjustments(),this._scrollBar.reset(),mt.trigger(this._element,_n)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(mt.trigger(this._element,vn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(An)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(An),this._queueCallback((()=>{this._element.classList.remove(An),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=Xe()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=Xe()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}mt.on(document,kn,'[data-bs-toggle="modal"]',(function(e){const t=Ct.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),mt.one(t,bn,(e=>{e.defaultPrevented||mt.one(t,_n,(()=>{Ue(this)&&this.focus()}))}));const i=Ct.findOne(".modal.show");i&&Dn.getInstance(i).hide();Dn.getOrCreateInstance(t).toggle(this)})),Tt(Dn),Ye(Dn);const Fn=".bs.offcanvas",Mn=".data-api",Ln=`load${Fn}${Mn}`,jn="show",On="showing",$n="hiding",zn=".offcanvas.show",Nn=`show${Fn}`,Rn=`shown${Fn}`,Bn=`hide${Fn}`,Un=`hidePrevented${Fn}`,Hn=`hidden${Fn}`,qn=`resize${Fn}`,Wn=`click${Fn}${Mn}`,Vn=`keydown.dismiss${Fn}`,Zn={backdrop:!0,keyboard:!0,scroll:!1},Kn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xn extends wt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Zn}static get DefaultType(){return Kn}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(mt.trigger(this._element,Nn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(On);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(jn),this._element.classList.remove(On),mt.trigger(this._element,Rn,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(mt.trigger(this._element,Bn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($n),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(jn,$n),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fn).reset(),mt.trigger(this._element,Hn)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new tn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():mt.trigger(this._element,Un)}:null})}_initializeFocusTrap(){return new cn({trapElement:this._element})}_addEventListeners(){mt.on(this._element,Vn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():mt.trigger(this._element,Un))}))}static jQueryInterface(e){return this.each((function(){const t=Xn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}mt.on(document,Wn,'[data-bs-toggle="offcanvas"]',(function(e){const t=Ct.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),He(this))return;mt.one(t,Hn,(()=>{Ue(this)&&this.focus()}));const i=Ct.findOne(zn);i&&i!==t&&Xn.getInstance(i).hide();Xn.getOrCreateInstance(t).toggle(this)})),mt.on(window,Ln,(()=>{for(const e of Ct.find(zn))Xn.getOrCreateInstance(e).show()})),mt.on(window,qn,(()=>{for(const e of Ct.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Xn.getOrCreateInstance(e).hide()})),Tt(Xn),Ye(Xn);const Yn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Qn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Gn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Jn=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Qn.has(i)||Boolean(Gn.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))};const er={allowList:Yn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},tr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ir={entry:"(string|element|function|null)",selector:"(string|element)"};class nr extends yt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return er}static get DefaultType(){return tr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},ir)}_setContent(e,t,i){const n=Ct.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?Re(t)?this._putElementInTemplate(Be(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const e of r){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[i]||[]);for(const t of n)Jn(t,r)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Qe(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const rr=new Set(["sanitize","allowList","sanitizeFn"]),or="fade",sr="show",ar=".tooltip-inner",lr=".modal",cr="hide.bs.modal",ur="hover",dr="focus",hr={AUTO:"auto",TOP:"top",RIGHT:Xe()?"left":"right",BOTTOM:"bottom",LEFT:Xe()?"right":"left"},pr={allowList:Yn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},fr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mr extends wt{constructor(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return pr}static get DefaultType(){return fr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),mt.off(this._element.closest(lr),cr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=mt.trigger(this._element,this.constructor.eventName("show")),t=(qe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),mt.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(sr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.on(e,"mouseover",We);this._queueCallback((()=>{mt.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(mt.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(sr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))mt.off(e,"mouseover",We);this._activeTrigger.click=!1,this._activeTrigger[dr]=!1,this._activeTrigger[ur]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),mt.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(or,sr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(or),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new nr({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ar]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(or)}_isShown(){return this.tip&&this.tip.classList.contains(sr)}_createPopper(e){const t=Qe(this._config.placement,[this,e,this._element]),i=hr[t.toUpperCase()];return Me(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Qe(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Qe(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)mt.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===ur?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===ur?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");mt.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?dr:ur]=!0,t._enter()})),mt.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?dr:ur]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},mt.on(this._element.closest(lr),cr,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bt.getDataAttributes(this._element);for(const e of Object.keys(t))rr.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Be(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=mr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(mr);const gr=".popover-header",vr=".popover-body",_r={...mr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},br={...mr.DefaultType,content:"(null|string|element|function)"};class yr extends mr{static get Default(){return _r}static get DefaultType(){return br}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gr]:this._getTitle(),[vr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=yr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Ye(yr);const wr=".bs.scrollspy",xr=`activate${wr}`,Cr=`click${wr}`,Tr=`load${wr}.data-api`,kr="active",Er="[href]",Sr=".nav-link",Ar=`${Sr}, .nav-item > ${Sr}, .list-group-item`,Pr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ir={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Dr extends wt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Pr}static get DefaultType(){return Ir}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Be(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(mt.off(this._config.target,Cr),mt.on(this._config.target,Cr,Er,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(i(o),!n)return}else r||e||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ct.find(Er,this._config.target);for(const t of e){if(!t.hash||He(t))continue;const e=Ct.findOne(decodeURI(t.hash),this._element);Ue(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(kr),this._activateParents(e),mt.trigger(this._element,xr,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Ct.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(kr);else for(const t of Ct.parents(e,".nav, .list-group"))for(const e of Ct.prev(t,Ar))e.classList.add(kr)}_clearActiveClass(e){e.classList.remove(kr);const t=Ct.find(`${Er}.${kr}`,e);for(const e of t)e.classList.remove(kr)}static jQueryInterface(e){return this.each((function(){const t=Dr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}mt.on(window,Tr,(()=>{for(const e of Ct.find('[data-bs-spy="scroll"]'))Dr.getOrCreateInstance(e)})),Ye(Dr);const Fr=".bs.tab",Mr=`hide${Fr}`,Lr=`hidden${Fr}`,jr=`show${Fr}`,Or=`shown${Fr}`,$r=`click${Fr}`,zr=`keydown${Fr}`,Nr=`load${Fr}`,Rr="ArrowLeft",Br="ArrowRight",Ur="ArrowUp",Hr="ArrowDown",qr="Home",Wr="End",Vr="active",Zr="fade",Kr="show",Xr=".dropdown-toggle",Yr=`:not(${Xr})`,Qr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gr=`${`.nav-link${Yr}, .list-group-item${Yr}, [role="tab"]${Yr}`}, ${Qr}`,Jr=`.${Vr}[data-bs-toggle="tab"], .${Vr}[data-bs-toggle="pill"], .${Vr}[data-bs-toggle="list"]`;class eo extends wt{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),mt.on(this._element,zr,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?mt.trigger(t,Mr,{relatedTarget:e}):null;mt.trigger(e,jr,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Vr),this._activate(Ct.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),mt.trigger(e,Or,{relatedTarget:t})):e.classList.add(Kr)}),e,e.classList.contains(Zr))}_deactivate(e,t){if(!e)return;e.classList.remove(Vr),e.blur(),this._deactivate(Ct.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),mt.trigger(e,Lr,{relatedTarget:t})):e.classList.remove(Kr)}),e,e.classList.contains(Zr))}_keydown(e){if(![Rr,Br,Ur,Hr,qr,Wr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!He(e)));let i;if([qr,Wr].includes(e.key))i=t[e.key===qr?0:t.length-1];else{const n=[Br,Hr].includes(e.key);i=Je(t,e.target,n,!0)}i&&(i.focus({preventScroll:!0}),eo.getOrCreateInstance(i).show())}_getChildren(){return Ct.find(Gr,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Ct.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const r=Ct.findOne(e,i);r&&r.classList.toggle(n,t)};n(Xr,Vr),n(".dropdown-menu",Kr),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(Vr)}_getInnerElement(e){return e.matches(Gr)?e:Ct.findOne(Gr,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=eo.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}mt.on(document,$r,Qr,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),He(this)||eo.getOrCreateInstance(this).show()})),mt.on(window,Nr,(()=>{for(const e of Ct.find(Jr))eo.getOrCreateInstance(e)})),Ye(eo);const to=".bs.toast",io=`mouseover${to}`,no=`mouseout${to}`,ro=`focusin${to}`,oo=`focusout${to}`,so=`hide${to}`,ao=`hidden${to}`,lo=`show${to}`,co=`shown${to}`,uo="hide",ho="show",po="showing",fo={animation:"boolean",autohide:"boolean",delay:"number"},mo={animation:!0,autohide:!0,delay:5e3};class go extends wt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return mo}static get DefaultType(){return fo}static get NAME(){return"toast"}show(){if(mt.trigger(this._element,lo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(uo),Ve(this._element),this._element.classList.add(ho,po),this._queueCallback((()=>{this._element.classList.remove(po),mt.trigger(this._element,co),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(mt.trigger(this._element,so).defaultPrevented)return;this._element.classList.add(po),this._queueCallback((()=>{this._element.classList.add(uo),this._element.classList.remove(po,ho),mt.trigger(this._element,ao)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ho),super.dispose()}isShown(){return this._element.classList.contains(ho)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){mt.on(this._element,io,(e=>this._onInteraction(e,!0))),mt.on(this._element,no,(e=>this._onInteraction(e,!1))),mt.on(this._element,ro,(e=>this._onInteraction(e,!0))),mt.on(this._element,oo,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=go.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Tt(go),Ye(go)},518:(e,t,i)=>{var n,r,o;
 /*!
  * jQuery Mousewheel 3.1.13
  *
@@ -34,4 +34,4 @@ const Oe=new Map,je={set(e,t,i){Oe.has(e)||Oe.set(e,new Map);const n=Oe.get(e);n
  * https://jquery.org/license
  *
  * Date: 2023-08-28T13:37Z
- */!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_=function(e){return null!=e&&e===e.window},b=n.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,i){var n,r,o=(i=i||b).createElement("script");if(o.text=e,t)for(n in y)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.1",T=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!v(e)&&!_(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(c&&n&&(k.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[t],o=r&&!Array.isArray(i)?[]:r||k.isPlainObject(i)?i:{},r=!1,s[t]=k.extend(c,o,n)):void 0!==n&&(s[t]=n));return s},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==h.call(e))&&(!(t=s(e))||"function"==typeof(i=p.call(t,"constructor")&&t.constructor)&&f.call(i)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){w(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(E(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,i="",n=0,r=e.nodeType;if(!r)for(;t=e[n++];)i+=k.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(E(Object(e))?k.merge(i,"string"==typeof e?[e]:e):c.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:u.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!T.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,s=!i;r<o;r++)!t(e[r],r)!==s&&n.push(e[r]);return n},map:function(e,t,i){var n,r,o=0,s=[];if(E(e))for(n=e.length;o<n;o++)null!=(r=t(e[o],o,i))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,i))&&s.push(r);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var A=o.pop,P=o.sort,I=o.splice,D="[\\x20\\t\\r\\n\\f]",F=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");k.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(L,M)};var O=b,j=c;!function(){var e,t,i,r,s,l,c,d,h,f,m=j,v=k.expando,_=0,b=0,y=ee(),w=ee(),x=ee(),C=ee(),T=function(e,t){return e===t&&(s=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+D+"*("+L+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+D+"*\\]",$=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",z=new RegExp(D+"+","g"),N=new RegExp("^"+D+"*,"+D+"*"),R=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),U=new RegExp(D+"|>"),B=new RegExp($),H=new RegExp("^"+L+"$"),q={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},Q=function(){le()},G=he((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(O.childNodes),O.childNodes),o[O.childNodes.length].nodeType}catch(e){m={apply:function(e,t){j.apply(e,a.call(t))},call:function(e){j.apply(e,a.call(arguments,1))}}}function J(e,t,i,n){var r,o,s,a,c,u,p,f=t&&t.ownerDocument,_=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return i;if(!n&&(le(t),t=t||l,d)){if(11!==_&&(c=Z.exec(e)))if(r=c[1]){if(9===_){if(!(s=t.getElementById(r)))return i;if(s.id===r)return m.call(i,s),i}else if(f&&(s=f.getElementById(r))&&J.contains(t,s)&&s.id===r)return m.call(i,s),i}else{if(c[2])return m.apply(i,t.getElementsByTagName(e)),i;if((r=c[3])&&t.getElementsByClassName)return m.apply(i,t.getElementsByClassName(r)),i}if(!(C[e+" "]||h&&h.test(e))){if(p=e,f=t,1===_&&(U.test(e)||R.test(e))){for((f=K.test(e)&&ae(t.parentNode)||t)==t&&g.scope||((a=t.getAttribute("id"))?a=k.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);p=u.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(t){C(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return _e(e.replace(F,"$1"),t,i,n)}function ee(){var e=[];return function i(n,r){return e.push(n+" ")>t.cacheLength&&delete i[e.shift()],i[n+" "]=r}}function te(e){return e[v]=!0,e}function ie(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return S(t,"input")&&t.type===e}}function re(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&G(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(i,n){for(var r,o=e([],i.length,t),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var i,n=e?e.ownerDocument||e:O;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,d=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&O!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",Q),g.getById=ie((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),g.disconnectedMatch=ie((function(e){return f.call(e,"*")})),g.scope=ie((function(){return l.querySelectorAll(":scope")})),g.cssHas=ie((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(X,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,Y);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i,n,r,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(r=t.getElementsByName(e),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ie((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),T=function(e,t){if(e===t)return s=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==O&&J.contains(O,e)?-1:t===l||t.ownerDocument==O&&J.contains(O,t)?1:r?u.call(r,e)-u.call(r,t):0:4&i?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var i=f.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){C(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},J.attr=function(e,i){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[i.toLowerCase()],r=n&&p.call(t.attrHandle,i.toLowerCase())?n(e,i,!d):void 0;return void 0!==r?r:e.getAttribute(i)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,i=[],n=0,o=0;if(s=!g.sortStable,r=!g.sortStable&&a.call(e,0),P.call(e,T),s){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)I.call(e,i[n],1)}return r=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(a.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(X,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&B.test(i)&&(t=ue(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=y[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&y(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=J.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(m){if(o){for(;f;){for(d=t;d=d[f];)if(a?S(d,g):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(y=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===_&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(y=h=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[_,h,y];break}}else if(b&&(y=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===_&&c[1]),!1===y)for(;(d=++h&&d&&d[f]||(y=h=0)||p.pop())&&(!(a?S(d,g):1===d.nodeType)||!++y||(b&&((u=d[v]||(d[v]={}))[e]=[_,y]),d!==t)););return(y-=r)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,i){var n,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return r[v]?r(i):r.length>1?(n=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var n,o=r(e,i),s=o.length;s--;)e[n=u.call(e,o[s])]=!(t[n]=o[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:te((function(e){var t=[],i=[],n=ve(e.replace(F,"$1"));return n[v]?te((function(e,t,i,r){for(var o,s=n(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(X,Y),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return H.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(X,Y).toLowerCase(),function(t){var i;do{if(i=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,i){return[i<0?i+t:i]})),even:se((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:se((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:se((function(e,t,i){var n;for(n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e})),gt:se((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ne(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,i){var n,r,o,s,a,l,c,u=w[e+" "];if(u)return i?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(s in n&&!(r=N.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=R.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(F," ")}),a=a.slice(n.length)),t.filter)!(r=q[s].exec(a))||c[s]&&!(r=c[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function he(e,t,i){var n=t.dir,r=t.next,o=r||n,s=i&&"parentNode"===o,a=b++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,r);return!1}:function(t,i,l){var c,u,d=[_,a];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),r&&S(t,r))t=t[n]||t;else{if((c=u[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=e(t,i,l))return!0}return!1}}function pe(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function fe(e,t,i,n,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,r)||(s.push(o),c&&t.push(a)));return s}function me(e,t,i,n,r,o){return n&&!n[v]&&(n=me(n)),r&&!r[v]&&(r=me(r,o)),te((function(o,s,a,l){var c,d,h,p,f=[],g=[],v=s.length,_=o||function(e,t,i){for(var n=0,r=t.length;n<r;n++)J(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),b=!e||!o&&t?_:fe(_,f,e,a,l);if(i?i(b,p=r||(o?e:v||n)?[]:s,a,l):p=b,n)for(c=fe(p,g),n(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[g[d]]=!(b[g[d]]=h));if(o){if(r||e){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(o,h):f[d])>-1&&(o[c]=!(s[c]=h))}}else p=fe(p===s?p.splice(v,p.length):p),r?r(null,s,p,l):m.apply(s,p)}))}function ge(e){for(var n,r,o,s=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=he((function(e){return e===n}),l,!0),h=he((function(e){return u.call(n,e)>-1}),l,!0),p=[function(e,t,r){var o=!a&&(r||t!=i)||((n=t).nodeType?d(e,t,r):h(e,t,r));return n=null,o}];c<s;c++)if(r=t.relative[e[c].type])p=[he(pe(p),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<s&&!t.relative[e[o].type];o++);return me(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(F,"$1"),r,c<o&&ge(e.slice(c,o)),o<s&&ge(e=e.slice(o)),o<s&&de(e))}p.push(r)}return pe(p)}function ve(e,n){var r,o=[],s=[],a=x[e+" "];if(!a){for(n||(n=ue(e)),r=n.length;r--;)(a=ge(n[r]))[v]?o.push(a):s.push(a);a=x(e,function(e,n){var r=n.length>0,o=e.length>0,s=function(s,a,c,u,h){var p,f,g,v=0,b="0",y=s&&[],w=[],x=i,C=s||o&&t.find.TAG("*",h),T=_+=null==x?1:Math.random()||.1,E=C.length;for(h&&(i=a==l||a||h);b!==E&&null!=(p=C[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(le(p),c=!d);g=e[f++];)if(g(p,a||l,c)){m.call(u,p);break}h&&(_=T)}r&&((p=!g&&p)&&v--,s&&y.push(p))}if(v+=b,r&&b!==v){for(f=0;g=n[f++];)g(y,w,a,c);if(s){if(v>0)for(;b--;)y[b]||w[b]||(w[b]=A.call(u));w=fe(w)}m.apply(u,w),h&&!s&&w.length>0&&v+n.length>1&&k.uniqueSort(u)}return h&&(_=T,i=x),y};return r?te(s):s}(s,o)),a.selector=e}return a}function _e(e,i,n,r){var o,s,a,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(n=n||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===i.nodeType&&d&&t.relative[s[1].type]){if(!(i=(t.find.ID(a.matches[0].replace(X,Y),i)||[])[0]))return n;u&&(i=i.parentNode),e=e.slice(s.shift().value.length)}for(o=q.needsContext.test(e)?0:s.length;o--&&(a=s[o],!t.relative[l=a.type]);)if((c=t.find[l])&&(r=c(a.matches[0].replace(X,Y),K.test(s[0].type)&&ae(i.parentNode)||i))){if(s.splice(o,1),!(e=r.length&&de(s)))return m.apply(n,r),n;break}}return(u||ve(e,h))(r,i,!d,n,!i||K.test(e)&&ae(i.parentNode)||i),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(T).join("")===v,le(),g.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=J,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,J.compile=ve,J.select=_e,J.setDocument=le,J.tokenize=ue,J.escape=k.escapeSelector,J.getText=k.text,J.isXML=k.isXMLDoc,J.selectors=k.expr,J.support=k.support,J.uniqueSort=k.uniqueSort}();var $=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(i))break;n.push(e)}return n},z=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},N=k.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(e,t,i){return v(t)?k.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?k.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==i})):k.filter(t,e,i)}k.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<n;t++)if(k.contains(r[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)k.find(e,r[t],i);return n>1?k.uniqueSort(i):i},filter:function(e){return this.pushStack(U(this,e||[],!1))},not:function(e){return this.pushStack(U(this,e||[],!0))},is:function(e){return!!U(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var B,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||B,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),R.test(n[1])&&k.isPlainObject(t))for(n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,B=k(b);var q=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,r=this.length,o=[],s="string"!=typeof e&&k(e);if(!N.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&k.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,i){return $(e,"parentNode",i)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,i){return $(e,"nextSibling",i)},prevUntil:function(e,t,i){return $(e,"previousSibling",i)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(i,n){var r=k.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=k.filter(n,r)),this.length>1&&(W[e]||k.uniqueSort(r),q.test(e)&&r.reverse()),this.pushStack(r)}}));var Z=/[^\x20\t\r\n\f]+/g;function K(e){return e}function X(e){throw e}function Y(e,t,i,n){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(i):e&&v(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(Z)||[],(function(e,i){t[i]=!0})),t}(e):k.extend({},e);var t,i,n,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,n=t=!0;s.length;a=-1)for(i=s.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&e.stopOnFalse&&(a=o.length,i=!1);e.memory||(i=!1),t=!1,r&&(o=i?[]:"")},c={add:function(){return o&&(i&&!t&&(a=o.length-1,s.push(i)),function t(i){k.each(i,(function(i,n){v(n)?e.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==x(n)&&t(n)}))}(arguments),i&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var i;(i=k.inArray(t,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||t||(o=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],s.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(i){k.each(t,(function(t,n){var r=v(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var o=0;function s(e,t,i,r){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=i.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?r?c.call(n,s(o,t,K,r),s(o,t,X,r)):(o++,c.call(n,s(o,t,K,r),s(o,t,X,r),s(o,t,K,t.notifyWith))):(i!==K&&(a=void 0,l=[n]),(r||t.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.error),e+1>=o&&(i!==X&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(k.Deferred.getErrorHook?u.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(u.error=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){t[0][3].add(s(0,n,v(r)?r:K,n.notifyWith)),t[1][3].add(s(0,n,v(e)?e:K)),t[2][3].add(s(0,n,v(i)?i:X))})).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},o={};return k.each(t,(function(e,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),r=a.call(arguments),o=k.Deferred(),s=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?a.call(arguments):i,--t||o.resolveWith(n,r)}};if(t<=1&&(Y(e,o.done(s(i)).resolve,o.reject,!t),"pending"===o.state()||v(r[i]&&r[i].then)))return o.then();for(;i--;)Y(r[i],s(i),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var G=k.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),k.ready()}k.fn.ready=function(e){return G.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||G.resolveWith(b,[k]))}}),k.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var ee=function(e,t,i,n,r,o,s){var a=0,l=e.length,c=null==i;if("object"===x(i))for(a in r=!0,i)ee(e,t,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,v(n)||(s=!0),c&&(s?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(k(e),i)})),t))for(;a<l;a++)t(e[a],i,s?n:n.call(e[a],a,t(e[a],i)));return r?e:c?t.call(e):l?t(e[0],i):o},te=/^-ms-/,ie=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ie,ne)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=k.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[re(t)]=i;else for(n in t)r[re(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(re):(t=re(t))in n?[t]:t.match(Z)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||k.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var ae=new se,le=new se,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(i)}catch(e){}le.set(e,t,i)}else i=void 0;return i}k.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,i){return le.access(e,t,i)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,i){return ae.access(e,t,i)},_removeData:function(e,t){ae.remove(e,t)}}),k.fn.extend({data:function(e,t){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!ae.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=re(n.slice(5)),de(o,n,r[n]));ae.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=le.get(o,e))||void 0!==(i=de(o,e))?i:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),k.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=ae.get(e,t),i&&(!n||Array.isArray(i)?n=ae.access(e,t,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=k.queue(e,t),n=i.length,r=i.shift(),o=k._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,(function(){k.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ae.get(e,i)||ae.access(e,i,{empty:k.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",i])}))})}}),k.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?k.queue(this[0],e):void 0===t?this:this.each((function(){var i=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=k.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=ae.get(o[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var _e=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===k.css(e,"display")};function be(e,t,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=a(),c=i&&i[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&pe.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)k.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,k.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}var ye={};function we(e){var t,i=e.ownerDocument,n=e.nodeName,r=ye[n];return r||(t=i.body.appendChild(i.createElement(n)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ye[n]=r,r)}function xe(e,t){for(var i,n,r=[],o=0,s=e.length;o<s;o++)(n=e[o]).style&&(i=n.style.display,t?("none"===i&&(r[o]=ae.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&_e(n)&&(r[o]=we(n))):"none"!==i&&(r[o]="none",ae.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}k.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){_e(this)?k(this).show():k(this).hide()}))}});var Ce,Te,ke=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Te=b.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Ce.appendChild(Te),g.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",g.option=!!Ce.lastChild;var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Pe(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?k.merge([e],i):i}function Ie(e,t){for(var i=0,n=e.length;i<n;i++)ae.set(e[i],"globalEval",!t||ae.get(t[i],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,g.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Fe(e,t,i,n,r){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===x(o))k.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Ee.exec(o)||["",""])[1].toLowerCase(),l=Ae[a]||Ae._default,s.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;k.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(n&&k.inArray(o,n)>-1)r&&r.push(o);else if(c=ge(o),s=Pe(d.appendChild(o),"script"),c&&Ie(s),i)for(u=0;o=s[u++];)Se.test(o.type||"")&&i.push(o);return d}var Le=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Oe(){return!1}function je(e,t,i,n,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)je(e,a,i,n,t[a],o);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Oe;else if(!r)return e;return 1===o&&(s=r,r=function(e){return k().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=k.guid++)),e.each((function(){k.event.add(this,t,r,n,i)}))}function $e(e,t,i){i?(ae.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,n=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),ae.set(this,t,n),this[t](),i=ae.get(this,t),ae.set(this,t,!1),n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else n&&(ae.set(this,t,k.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ae.get(e,t)&&k.event.add(e,t,Me)}k.event={global:{},add:function(e,t,i,n,r){var o,s,a,l,c,u,d,h,p,f,m,g=ae.get(e);if(oe(e))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&k.find.matchesSelector(me,r),i.guid||(i.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Z)||[""]).length;c--;)p=m=(a=Le.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[p]=!0)},remove:function(e,t,i,n,r){var o,s,a,l,c,u,d,h,p,f,m,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Z)||[""]).length;c--;)if(p=m=(a=Le.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],i,n,!0);k.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,o,s,a=new Array(arguments.length),l=k.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=k.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=t[i]).selector+" "]&&(s[r]=n.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),s[r]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&S(t,"input")&&ae.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Oe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Oe,isPropagationStopped:Oe,isImmediatePropagationStopped:Oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function i(e){if(b.documentMode){var i=ae.get(this,"handle"),n=k.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,i(e),n.target===n.currentTarget&&i(n)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var n;if($e(this,e,!0),!b.documentMode)return!1;(n=ae.get(this,t))||this.addEventListener(t,i),ae.set(this,t,(n||0)+1)},trigger:function(){return $e(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,i),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,o=ae.get(r,t);o||(b.documentMode?this.addEventListener(t,i):n.addEventListener(e,i,!0)),ae.set(r,t,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,o=ae.get(r,t)-1;o?ae.set(r,t,o):(b.documentMode?this.removeEventListener(t,i):n.removeEventListener(e,i,!0),ae.remove(r,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),k.fn.extend({on:function(e,t,i,n){return je(this,e,t,i,n)},one:function(e,t,i,n){return je(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Oe),this.each((function(){k.event.remove(this,e,i,t)}))}});var ze=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ue(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var i,n,r,o,s,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(r in ae.remove(t,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)k.event.add(t,r,a[r][i]);le.hasData(e)&&(o=le.access(e),s=k.extend({},o),le.set(t,s))}}function We(e,t){var i=t.nodeName.toLowerCase();"input"===i&&ke.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Ve(e,t,i,n){t=l(t);var r,o,s,a,c,u,d=0,h=e.length,p=h-1,f=t[0],m=v(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Ne.test(f))return e.each((function(r){var o=e.eq(r);m&&(t[0]=f.call(this,r,o.html())),Ve(o,t,i,n)}));if(h&&(o=(r=Fe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(a=(s=k.map(Pe(r,"script"),Be)).length;d<h;d++)c=r,d!==p&&(c=k.clone(c,!0,!0),a&&k.merge(s,Pe(c,"script"))),i.call(e[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,k.map(s,He),d=0;d<a;d++)c=s[d],Se.test(c.type||"")&&!ae.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Re,""),c,u))}return e}function Ze(e,t,i){for(var n,r=t?k.filter(t,e):e,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||k.cleanData(Pe(n)),n.parentNode&&(i&&ge(n)&&Ie(Pe(n,"script")),n.parentNode.removeChild(n));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,r,o,s,a=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(s=Pe(a),n=0,r=(o=Pe(e)).length;n<r;n++)We(o[n],s[n]);if(t)if(i)for(o=o||Pe(e),s=s||Pe(a),n=0,r=o.length;n<r;n++)qe(o[n],s[n]);else qe(e,a);return(s=Pe(a,"script")).length>0&&Ie(s,!l&&Pe(e,"script")),a},cleanData:function(e){for(var t,i,n,r=k.event.special,o=0;void 0!==(i=e[o]);o++)if(oe(i)){if(t=i[ae.expando]){if(t.events)for(n in t.events)r[n]?k.event.remove(i,n):k.removeEvent(i,n,t.handle);i[ae.expando]=void 0}i[le.expando]&&(i[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ze(this,e,!0)},remove:function(e){return Ze(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ue(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ue(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Ae[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(k.cleanData(Pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var i=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Pe(this)),i&&i.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var i,n=[],r=k(e),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),k(r[s])[t](i),c.apply(n,i.get());return this.pushStack(n)}}));var Ke=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Qe=function(e,t,i){var n,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=i.call(e),t)e.style[r]=o[r];return n},Ge=new RegExp(fe.join("|"),"i");function Je(e,t,i){var n,r,o,s,a=Xe.test(t),l=e.style;return(i=i||Ye(e))&&(s=i.getPropertyValue(t)||i[t],a&&s&&(s=s.replace(F,"$1")||void 0),""!==s||ge(e)||(s=k.style(e,t)),!g.pixelBoxStyles()&&Ke.test(s)&&Ge.test(t)&&(n=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=i.width,l.width=n,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,i,r;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",me.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],it=b.createElement("div").style,nt={};function rt(e){var t=k.cssProps[e]||nt[e];return t||(e in it?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,i){var n=pe.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ct(e,t,i,n,r,o){var s="width"===t?1:0,a=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(c+=k.css(e,i+fe[s],!0,r)),n?("content"===i&&(l-=k.css(e,"padding"+fe[s],!0,r)),"margin"!==i&&(l-=k.css(e,"border"+fe[s]+"Width",!0,r))):(l+=k.css(e,"padding"+fe[s],!0,r),"padding"!==i?l+=k.css(e,"border"+fe[s]+"Width",!0,r):a+=k.css(e,"border"+fe[s]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ut(e,t,i){var n=Ye(e),r=(!g.boxSizingReliable()||i)&&"border-box"===k.css(e,"boxSizing",!1,n),o=r,s=Je(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(s)){if(!i)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&S(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,n),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ct(e,t,i||(r?"border":"content"),o,n,s)+"px"}function dt(e,t,i,n,r){return new dt.prototype.init(e,t,i,n,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Je(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=re(t),l=Xe.test(t),c=e.style;if(l||(t=rt(a)),s=k.cssHooks[t]||k.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(e,!1,n))?r:c[t];"string"===(o=typeof i)&&(r=pe.exec(i))&&r[1]&&(i=be(e,t,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,o,s,a=re(t);return Xe.test(t)||(t=rt(a)),(s=k.cssHooks[t]||k.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,i)),void 0===r&&(r=Je(e,t,n)),"normal"===r&&t in at&&(r=at[t]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,i,n){if(i)return!ot.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,n):Qe(e,st,(function(){return ut(e,t,n)}))},set:function(e,i,n){var r,o=Ye(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===k.css(e,"boxSizing",!1,o),l=n?ct(e,t,n,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=pe.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=k.css(e,t)),lt(0,i,l)}}})),k.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+fe[n]+t]=o[n]||o[n-2]||o[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=lt)})),k.fn.extend({css:function(e,t){return ee(this,(function(e,t,i){var n,r,o={},s=0;if(Array.isArray(t)){for(n=Ye(e),r=t.length;s<r;s++)o[t[s]]=k.css(e,t[s],!1,n);return o}return void 0!==i?k.style(e,t,i):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,i=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var ht,pt,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(gt):n.setTimeout(gt,k.fx.interval),k.fx.tick())}function vt(){return n.setTimeout((function(){ht=void 0})),ht=Date.now()}function _t(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=fe[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,i){for(var n,r=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,t,e))return n}function yt(e,t,i){var n,r,o=0,s=yt.prefilters.length,a=k.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(n);return a.notifyWith(e,[c,n,i]),n<1&&s?i:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},i),originalProperties:t,originalOptions:i,startTime:ht||vt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=k.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var i,n,r,o,s;for(i in e)if(r=t[n=re(i)],o=e[i],Array.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(s=k.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);o<s;o++)if(n=yt.prefilters[o].call(c,e,u,c.opts))return v(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(yt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return be(i.elem,e,pe.exec(t),i),i}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(Z);for(var i,n=0,r=e.length;n<r;n++)i=e[n],yt.tweeners[i]=yt.tweeners[i]||[],yt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&_e(e),g=ae.get(e,"fxshow");for(n in i.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[n],ft.test(r)){if(delete t[n],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(n in d&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ae.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(xe([e],!0),c=e.style.display||c,u=k.css(e,"display"),xe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ae.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&xe([e],!0),h.done((function(){for(n in m||xe([e]),ae.remove(e,"fxshow"),p)k.style(e,n,p[n])}))),l=bt(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),k.speed=function(e,t,i){var n=e&&"object"==typeof e?k.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,i,n){return this.filter(_e).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=k.isEmptyObject(e),o=k.speed(t,i,n),s=function(){var t=yt(this,k.extend({},e),o);(r||ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=k.timers,s=ae.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&mt.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));!t&&i||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=ae.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=k.timers,s=n?n.length:0;for(i.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var i=k.fn[t];k.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(_t(t,!0),e,n,r)}})),k.each({slideDown:_t("show"),slideUp:_t("hide"),slideToggle:_t("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),k.timers=[],k.fx.tick=function(){var e,t=0,i=k.timers;for(ht=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||k.fx.stop(),ht=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){pt||(pt=!0,gt())},k.fx.stop=function(){pt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var wt,xt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,i):(1===o&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?wt:void 0)),void 0!==i?null===i?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=k.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&S(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(Z);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),wt={set:function(e,t,i){return!1===t?k.removeAttr(e,i):e.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=xt[t]||k.find.attr;xt[t]=function(e,t,n){var r,o,s=t.toLowerCase();return n||(o=xt[s],xt[s]=r,r=null!=i(e,t,n)?s:null,xt[s]=o),r}}));var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function kt(e){return(e.match(Z)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Z)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,i,n,r,o,s;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,Et(this)))})):(t=St(e)).length?this.each((function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(o=0;o<t.length;o++)r=t[o],i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=kt(i),n!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,i,n,r,o,s;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(o=0;o<t.length;o++)for(r=t[o];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s=kt(i),n!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,n,r,o,s=typeof e,a="string"===s||Array.isArray(e);return v(e)?this.each((function(i){k(this).toggleClass(e.call(this,i,Et(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(i=St(e),this.each((function(){if(a)for(o=k(this),r=0;r<i.length;r++)n=i[r],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==e&&"boolean"!==s||((n=Et(this))&&ae.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+kt(Et(i))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;k.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=v(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(At,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,i,n,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(n=o<0?l:s?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!S(i.parentNode,"optgroup"))){if(t=k(i).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var i,n,r=e.options,o=k.makeArray(t),s=r.length;s--;)((n=r[s]).selected=k.inArray(k.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Pt=n.location,It={guid:Date.now()},Dt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ft=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,r){var o,s,a,l,c,u,d,h,f=[i||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Ft.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!_(i)){for(l=d.delegateType||m,Ft.test(l+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:d.bindType||m,(u=(ae.get(s,"events")||Object.create(null))[e.type]&&ae.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&oe(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!oe(i)||c&&v(i[m])&&!_(i)&&((a=i[c])&&(i[c]=null),k.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Lt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Lt),k.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(e,t,i){var n=k.extend(new k.Event,i,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return k.event.trigger(e,t,i,!0)}});var Mt=/\[\]$/,Ot=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;function zt(e,t,i,n){var r;if(Array.isArray(t))k.each(t,(function(t,r){i||Mt.test(e)?n(e,r):zt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)}));else if(i||"object"!==x(t))n(e,t);else for(r in t)zt(e+"["+r+"]",t[r],i,n)}k.param=function(e,t){var i,n=[],r=function(e,t){var i=v(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){r(this.name,this.value)}));else for(i in e)zt(i,e[i],t,r);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&$t.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:i.replace(Ot,"\r\n")}})).get()}});var Nt=/%20/g,Rt=/#.*$/,Ut=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,qt=/^\/\//,Wt={},Vt={},Zt="*/".concat("*"),Kt=b.createElement("a");function Xt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(Z)||[];if(v(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Yt(e,t,i,n){var r={},o=e===Vt;function s(a){var l;return r[a]=!0,k.each(e[a]||[],(function(e,a){var c=a(t,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Qt(e,t){var i,n,r=k.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&k.extend(!0,e,n),e}Kt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,k.ajaxSettings),t):Qt(k.ajaxSettings,e)},ajaxPrefilter:Xt(Wt),ajaxTransport:Xt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,s,a,l,c,u,d,h,p=k.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?k(f):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),_=p.statusCode||{},y={},w={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Bt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),T(0,t),this}};if(g.promise(C),p.url=((e||p.url||Pt.href)+"").replace(qt,Pt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Z)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Kt.protocol+"//"+Kt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Yt(Wt,p,t,C),c)return C;for(d in(u=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ht.test(p.type),r=p.url.replace(Rt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Nt,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Dt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ut,"$1"),h=(Dt.test(r)?"&":"?")+"_="+It.guid+++h),p.url=r+h),p.ifModified&&(k.lastModified[r]&&C.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&C.setRequestHeader("If-None-Match",k.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Zt+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),i=Yt(Vt,p,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(a=n.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,i.send(y,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,s,l){var d,h,b,y,w,x=t;c||(c=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(y=function(e,t,i){for(var n,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,C,s)),!d&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),y=function(e,t,i,n){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,y,C,d),d?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(k.etag[r]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=y.state,h=y.data,d=!(b=y.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",d?g.resolveWith(f,[h,x,C]):g.rejectWith(f,[C,x,b]),C.statusCode(_),_=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:b]),v.fireWith(f,[C,x]),u&&(m.trigger("ajaxComplete",[C,p]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return k.get(e,t,i,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:i,success:n},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,i){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,i)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(i){k(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Jt=k.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,k.ajaxTransport((function(e){var t,i;if(g.cors||Jt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){i&&i()}}}));var ei,ti=[],ii=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||k.expando+"_"+It.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,i){var r,o,s,a=!1!==e.jsonp&&(ii.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ii,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||k.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?k(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,ti.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),g.createHTMLDocument=((ei=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ei.childNodes.length),k.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((n=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(n)):t=b),o=!i&&[],(r=R.exec(e))?[t.createElement(r[1])]:(r=Fe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],r.childNodes)));var n,r,o},k.fn.load=function(e,t,i){var n,r,o,s=this,a=e.indexOf(" ");return a>-1&&(n=kt(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)})).always(i&&function(e,t){s.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,i){var n,r,o,s,a,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(n=u.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,i,k.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(n,"marginTop",!0),left:t.left-r.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||me}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;k.fn[e]=function(n){return ee(this,(function(e,n,r){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):e[n]=r}),e,n,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(g.pixelPosition,(function(e,i){if(i)return i=Je(e,t),Ke.test(i)?k(e).position()[t]+"px":i}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){k.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,i,r){var o;return _(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?k.css(t,i,a):k.style(t,i,r,a)}),t,s?r:void 0,s)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return n=a.call(arguments,2),r=function(){return e.apply(t||this,n.concat(a.call(arguments)))},r.guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=S,k.isFunction=v,k.isWindow=_,k.camelCase=re,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(ni,"$1")},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var ri=n.jQuery,oi=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=oi),e&&n.jQuery===k&&(n.jQuery=ri),k},void 0===r&&(n.jQuery=n.$=k),k}))},3:(e,t,i)=>{var n,r;i.amdD,n=[i(616)],void 0===(r=function(e){return function(){var t,i,n,r=0,o="error",s="info",a="success",l="warning",c={clear:function(i,n){var r=f();t||u(r),d(i,r,n)||function(i){for(var n=t.children(),r=n.length-1;r>=0;r--)d(e(n[r]),i)}(r)},remove:function(i){var n=f();t||u(n),i&&0===e(":focus",i).length?m(i):t.children().length&&t.remove()},error:function(e,t,i){return p({type:o,iconClass:f().iconClasses.error,message:e,optionsOverride:i,title:t})},getContainer:u,info:function(e,t,i){return p({type:s,iconClass:f().iconClasses.info,message:e,optionsOverride:i,title:t})},options:{},subscribe:function(e){i=e},success:function(e,t,i){return p({type:a,iconClass:f().iconClasses.success,message:e,optionsOverride:i,title:t})},version:"2.1.4",warning:function(e,t,i){return p({type:l,iconClass:f().iconClasses.warning,message:e,optionsOverride:i,title:t})}};return c;function u(i,n){return i||(i=f()),(t=e("#"+i.containerId)).length||n&&(t=function(i){return(t=e("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(e(i.target)),t}(i)),t}function d(t,i,n){var r=!(!n||!n.force)&&n.force;return!(!t||!r&&0!==e(":focus",t).length||(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){m(t)}}),0))}function h(e){i&&i(e)}function p(i){var o=f(),s=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=e.extend(o,i.optionsOverride),s=i.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(o,i)){r++,t=u(o,!0);var a=null,l=e("<div/>"),c=e("<div/>"),d=e("<div/>"),p=e("<div/>"),g=e(o.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},_={toastId:r,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(s),function(){if(i.title){var e=i.title;o.escapeHtml&&(e=b(i.title)),c.append(e).addClass(o.titleClass),l.append(c)}}(),function(){if(i.message){var e=i.message;o.escapeHtml&&(e=b(i.message)),d.append(e).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(g.addClass(o.closeClass).attr("role","button"),l.prepend(g)),o.progressBar&&(p.addClass(o.progressClass),l.prepend(p)),o.rtl&&l.addClass("rtl"),o.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(i.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(a=setTimeout(y,o.timeOut),v.maxHideTime=parseFloat(o.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,o.progressBar&&(v.intervalId=setInterval(C,10))),o.closeOnHover&&l.hover(x,w),!o.onclick&&o.tapToDismiss&&l.click(y),o.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(e),y(!0)})),o.onclick&&l.click((function(e){o.onclick(e),y()})),h(_),o.debug&&console&&console.log(_),l}function b(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(t){var i=t&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,n=t&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,r=t&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[i]({duration:n,easing:r,complete:function(){m(l),clearTimeout(a),o.onHidden&&"hidden"!==_.state&&o.onHidden(),_.state="hidden",_.endTime=new Date,h(_)}})}function w(){(o.timeOut>0||o.extendedTimeOut>0)&&(a=setTimeout(y,o.extendedTimeOut),v.maxHideTime=parseFloat(o.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function x(){clearTimeout(a),v.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function C(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;p.width(e+"%")}}function f(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function m(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),n=void 0))}}()}.apply(t,n))||(e.exports=r)}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{try{window.$=window.jQuery=i(616),i(524),i(838),i(876),i(518),window.toastr=i(3),window.translateText=function(e){let t;return $.ajax({type:"post",url:"/language/translate-text",data:{text:e},async:!1}).done((function(e){t=e.translation})).fail((function(t){return e})),t}}catch(e){}i(132),i(692),i(927),i(629)})()})();
\ No newline at end of file
+ */!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_=function(e){return null!=e&&e===e.window},b=n.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,i){var n,r,o=(i=i||b).createElement("script");if(o.text=e,t)for(n in y)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.1",T=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!v(e)&&!_(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(c&&n&&(k.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[t],o=r&&!Array.isArray(i)?[]:r||k.isPlainObject(i)?i:{},r=!1,s[t]=k.extend(c,o,n)):void 0!==n&&(s[t]=n));return s},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==h.call(e))&&(!(t=s(e))||"function"==typeof(i=p.call(t,"constructor")&&t.constructor)&&f.call(i)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){w(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(E(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,i="",n=0,r=e.nodeType;if(!r)for(;t=e[n++];)i+=k.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(E(Object(e))?k.merge(i,"string"==typeof e?[e]:e):c.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:u.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!T.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,s=!i;r<o;r++)!t(e[r],r)!==s&&n.push(e[r]);return n},map:function(e,t,i){var n,r,o=0,s=[];if(E(e))for(n=e.length;o<n;o++)null!=(r=t(e[o],o,i))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,i))&&s.push(r);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var A=o.pop,P=o.sort,I=o.splice,D="[\\x20\\t\\r\\n\\f]",F=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");k.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function L(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(M,L)};var j=b,O=c;!function(){var e,t,i,r,s,l,c,d,h,f,m=O,v=k.expando,_=0,b=0,y=ee(),w=ee(),x=ee(),C=ee(),T=function(e,t){return e===t&&(s=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+D+"*("+M+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+D+"*\\]",$=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",z=new RegExp(D+"+","g"),N=new RegExp("^"+D+"*,"+D+"*"),R=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),B=new RegExp(D+"|>"),U=new RegExp($),H=new RegExp("^"+M+"$"),q={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},Q=function(){le()},G=he((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(j.childNodes),j.childNodes),o[j.childNodes.length].nodeType}catch(e){m={apply:function(e,t){O.apply(e,a.call(t))},call:function(e){O.apply(e,a.call(arguments,1))}}}function J(e,t,i,n){var r,o,s,a,c,u,p,f=t&&t.ownerDocument,_=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return i;if(!n&&(le(t),t=t||l,d)){if(11!==_&&(c=Z.exec(e)))if(r=c[1]){if(9===_){if(!(s=t.getElementById(r)))return i;if(s.id===r)return m.call(i,s),i}else if(f&&(s=f.getElementById(r))&&J.contains(t,s)&&s.id===r)return m.call(i,s),i}else{if(c[2])return m.apply(i,t.getElementsByTagName(e)),i;if((r=c[3])&&t.getElementsByClassName)return m.apply(i,t.getElementsByClassName(r)),i}if(!(C[e+" "]||h&&h.test(e))){if(p=e,f=t,1===_&&(B.test(e)||R.test(e))){for((f=K.test(e)&&ae(t.parentNode)||t)==t&&g.scope||((a=t.getAttribute("id"))?a=k.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);p=u.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(t){C(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return _e(e.replace(F,"$1"),t,i,n)}function ee(){var e=[];return function i(n,r){return e.push(n+" ")>t.cacheLength&&delete i[e.shift()],i[n+" "]=r}}function te(e){return e[v]=!0,e}function ie(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return S(t,"input")&&t.type===e}}function re(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&G(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(i,n){for(var r,o=e([],i.length,t),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var i,n=e?e.ownerDocument||e:j;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,d=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&j!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",Q),g.getById=ie((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),g.disconnectedMatch=ie((function(e){return f.call(e,"*")})),g.scope=ie((function(){return l.querySelectorAll(":scope")})),g.cssHas=ie((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(X,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,Y);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var i,n,r,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(r=t.getElementsByName(e),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ie((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),T=function(e,t){if(e===t)return s=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==j&&J.contains(j,e)?-1:t===l||t.ownerDocument==j&&J.contains(j,t)?1:r?u.call(r,e)-u.call(r,t):0:4&i?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var i=f.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){C(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},J.attr=function(e,i){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[i.toLowerCase()],r=n&&p.call(t.attrHandle,i.toLowerCase())?n(e,i,!d):void 0;return void 0!==r?r:e.getAttribute(i)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,i=[],n=0,o=0;if(s=!g.sortStable,r=!g.sortStable&&a.call(e,0),P.call(e,T),s){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)I.call(e,i[n],1)}return r=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(a.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(X,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=ue(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=y[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&y(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=J.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(m){if(o){for(;f;){for(d=t;d=d[f];)if(a?S(d,g):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(y=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===_&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(y=h=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[_,h,y];break}}else if(b&&(y=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===_&&c[1]),!1===y)for(;(d=++h&&d&&d[f]||(y=h=0)||p.pop())&&(!(a?S(d,g):1===d.nodeType)||!++y||(b&&((u=d[v]||(d[v]={}))[e]=[_,y]),d!==t)););return(y-=r)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,i){var n,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return r[v]?r(i):r.length>1?(n=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var n,o=r(e,i),s=o.length;s--;)e[n=u.call(e,o[s])]=!(t[n]=o[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:te((function(e){var t=[],i=[],n=ve(e.replace(F,"$1"));return n[v]?te((function(e,t,i,r){for(var o,s=n(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(X,Y),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return H.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(X,Y).toLowerCase(),function(t){var i;do{if(i=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,i){return[i<0?i+t:i]})),even:se((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:se((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:se((function(e,t,i){var n;for(n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e})),gt:se((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ne(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,i){var n,r,o,s,a,l,c,u=w[e+" "];if(u)return i?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(s in n&&!(r=N.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=R.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(F," ")}),a=a.slice(n.length)),t.filter)!(r=q[s].exec(a))||c[s]&&!(r=c[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function he(e,t,i){var n=t.dir,r=t.next,o=r||n,s=i&&"parentNode"===o,a=b++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,r);return!1}:function(t,i,l){var c,u,d=[_,a];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),r&&S(t,r))t=t[n]||t;else{if((c=u[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=e(t,i,l))return!0}return!1}}function pe(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function fe(e,t,i,n,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,r)||(s.push(o),c&&t.push(a)));return s}function me(e,t,i,n,r,o){return n&&!n[v]&&(n=me(n)),r&&!r[v]&&(r=me(r,o)),te((function(o,s,a,l){var c,d,h,p,f=[],g=[],v=s.length,_=o||function(e,t,i){for(var n=0,r=t.length;n<r;n++)J(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),b=!e||!o&&t?_:fe(_,f,e,a,l);if(i?i(b,p=r||(o?e:v||n)?[]:s,a,l):p=b,n)for(c=fe(p,g),n(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[g[d]]=!(b[g[d]]=h));if(o){if(r||e){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(o,h):f[d])>-1&&(o[c]=!(s[c]=h))}}else p=fe(p===s?p.splice(v,p.length):p),r?r(null,s,p,l):m.apply(s,p)}))}function ge(e){for(var n,r,o,s=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=he((function(e){return e===n}),l,!0),h=he((function(e){return u.call(n,e)>-1}),l,!0),p=[function(e,t,r){var o=!a&&(r||t!=i)||((n=t).nodeType?d(e,t,r):h(e,t,r));return n=null,o}];c<s;c++)if(r=t.relative[e[c].type])p=[he(pe(p),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<s&&!t.relative[e[o].type];o++);return me(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(F,"$1"),r,c<o&&ge(e.slice(c,o)),o<s&&ge(e=e.slice(o)),o<s&&de(e))}p.push(r)}return pe(p)}function ve(e,n){var r,o=[],s=[],a=x[e+" "];if(!a){for(n||(n=ue(e)),r=n.length;r--;)(a=ge(n[r]))[v]?o.push(a):s.push(a);a=x(e,function(e,n){var r=n.length>0,o=e.length>0,s=function(s,a,c,u,h){var p,f,g,v=0,b="0",y=s&&[],w=[],x=i,C=s||o&&t.find.TAG("*",h),T=_+=null==x?1:Math.random()||.1,E=C.length;for(h&&(i=a==l||a||h);b!==E&&null!=(p=C[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(le(p),c=!d);g=e[f++];)if(g(p,a||l,c)){m.call(u,p);break}h&&(_=T)}r&&((p=!g&&p)&&v--,s&&y.push(p))}if(v+=b,r&&b!==v){for(f=0;g=n[f++];)g(y,w,a,c);if(s){if(v>0)for(;b--;)y[b]||w[b]||(w[b]=A.call(u));w=fe(w)}m.apply(u,w),h&&!s&&w.length>0&&v+n.length>1&&k.uniqueSort(u)}return h&&(_=T,i=x),y};return r?te(s):s}(s,o)),a.selector=e}return a}function _e(e,i,n,r){var o,s,a,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(n=n||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===i.nodeType&&d&&t.relative[s[1].type]){if(!(i=(t.find.ID(a.matches[0].replace(X,Y),i)||[])[0]))return n;u&&(i=i.parentNode),e=e.slice(s.shift().value.length)}for(o=q.needsContext.test(e)?0:s.length;o--&&(a=s[o],!t.relative[l=a.type]);)if((c=t.find[l])&&(r=c(a.matches[0].replace(X,Y),K.test(s[0].type)&&ae(i.parentNode)||i))){if(s.splice(o,1),!(e=r.length&&de(s)))return m.apply(n,r),n;break}}return(u||ve(e,h))(r,i,!d,n,!i||K.test(e)&&ae(i.parentNode)||i),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(T).join("")===v,le(),g.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=J,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,J.compile=ve,J.select=_e,J.setDocument=le,J.tokenize=ue,J.escape=k.escapeSelector,J.getText=k.text,J.isXML=k.isXMLDoc,J.selectors=k.expr,J.support=k.support,J.uniqueSort=k.uniqueSort}();var $=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(i))break;n.push(e)}return n},z=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},N=k.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,i){return v(t)?k.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?k.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==i})):k.filter(t,e,i)}k.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<n;t++)if(k.contains(r[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)k.find(e,r[t],i);return n>1?k.uniqueSort(i):i},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var U,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||U,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),R.test(n[1])&&k.isPlainObject(t))for(n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,U=k(b);var q=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,r=this.length,o=[],s="string"!=typeof e&&k(e);if(!N.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&k.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,i){return $(e,"parentNode",i)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,i){return $(e,"nextSibling",i)},prevUntil:function(e,t,i){return $(e,"previousSibling",i)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(i,n){var r=k.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=k.filter(n,r)),this.length>1&&(W[e]||k.uniqueSort(r),q.test(e)&&r.reverse()),this.pushStack(r)}}));var Z=/[^\x20\t\r\n\f]+/g;function K(e){return e}function X(e){throw e}function Y(e,t,i,n){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(i):e&&v(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(Z)||[],(function(e,i){t[i]=!0})),t}(e):k.extend({},e);var t,i,n,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,n=t=!0;s.length;a=-1)for(i=s.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&e.stopOnFalse&&(a=o.length,i=!1);e.memory||(i=!1),t=!1,r&&(o=i?[]:"")},c={add:function(){return o&&(i&&!t&&(a=o.length-1,s.push(i)),function t(i){k.each(i,(function(i,n){v(n)?e.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==x(n)&&t(n)}))}(arguments),i&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var i;(i=k.inArray(t,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||t||(o=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],s.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(i){k.each(t,(function(t,n){var r=v(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var o=0;function s(e,t,i,r){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=i.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?r?c.call(n,s(o,t,K,r),s(o,t,X,r)):(o++,c.call(n,s(o,t,K,r),s(o,t,X,r),s(o,t,K,t.notifyWith))):(i!==K&&(a=void 0,l=[n]),(r||t.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.error),e+1>=o&&(i!==X&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(k.Deferred.getErrorHook?u.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(u.error=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){t[0][3].add(s(0,n,v(r)?r:K,n.notifyWith)),t[1][3].add(s(0,n,v(e)?e:K)),t[2][3].add(s(0,n,v(i)?i:X))})).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},o={};return k.each(t,(function(e,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),r=a.call(arguments),o=k.Deferred(),s=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?a.call(arguments):i,--t||o.resolveWith(n,r)}};if(t<=1&&(Y(e,o.done(s(i)).resolve,o.reject,!t),"pending"===o.state()||v(r[i]&&r[i].then)))return o.then();for(;i--;)Y(r[i],s(i),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var G=k.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),k.ready()}k.fn.ready=function(e){return G.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||G.resolveWith(b,[k]))}}),k.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var ee=function(e,t,i,n,r,o,s){var a=0,l=e.length,c=null==i;if("object"===x(i))for(a in r=!0,i)ee(e,t,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,v(n)||(s=!0),c&&(s?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(k(e),i)})),t))for(;a<l;a++)t(e[a],i,s?n:n.call(e[a],a,t(e[a],i)));return r?e:c?t.call(e):l?t(e[0],i):o},te=/^-ms-/,ie=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ie,ne)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=k.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[re(t)]=i;else for(n in t)r[re(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(re):(t=re(t))in n?[t]:t.match(Z)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||k.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var ae=new se,le=new se,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(i)}catch(e){}le.set(e,t,i)}else i=void 0;return i}k.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,i){return le.access(e,t,i)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,i){return ae.access(e,t,i)},_removeData:function(e,t){ae.remove(e,t)}}),k.fn.extend({data:function(e,t){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!ae.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=re(n.slice(5)),de(o,n,r[n]));ae.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=le.get(o,e))||void 0!==(i=de(o,e))?i:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),k.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=ae.get(e,t),i&&(!n||Array.isArray(i)?n=ae.access(e,t,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=k.queue(e,t),n=i.length,r=i.shift(),o=k._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,(function(){k.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ae.get(e,i)||ae.access(e,i,{empty:k.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",i])}))})}}),k.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?k.queue(this[0],e):void 0===t?this:this.each((function(){var i=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=k.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=ae.get(o[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var _e=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===k.css(e,"display")};function be(e,t,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=a(),c=i&&i[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&pe.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)k.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,k.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}var ye={};function we(e){var t,i=e.ownerDocument,n=e.nodeName,r=ye[n];return r||(t=i.body.appendChild(i.createElement(n)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ye[n]=r,r)}function xe(e,t){for(var i,n,r=[],o=0,s=e.length;o<s;o++)(n=e[o]).style&&(i=n.style.display,t?("none"===i&&(r[o]=ae.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&_e(n)&&(r[o]=we(n))):"none"!==i&&(r[o]="none",ae.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}k.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){_e(this)?k(this).show():k(this).hide()}))}});var Ce,Te,ke=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Te=b.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Ce.appendChild(Te),g.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",g.option=!!Ce.lastChild;var Ae={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Pe(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?k.merge([e],i):i}function Ie(e,t){for(var i=0,n=e.length;i<n;i++)ae.set(e[i],"globalEval",!t||ae.get(t[i],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,g.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Fe(e,t,i,n,r){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===x(o))k.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Ee.exec(o)||["",""])[1].toLowerCase(),l=Ae[a]||Ae._default,s.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;k.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(n&&k.inArray(o,n)>-1)r&&r.push(o);else if(c=ge(o),s=Pe(d.appendChild(o),"script"),c&&Ie(s),i)for(u=0;o=s[u++];)Se.test(o.type||"")&&i.push(o);return d}var Me=/^([^.]*)(?:\.(.+)|)/;function Le(){return!0}function je(){return!1}function Oe(e,t,i,n,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Oe(e,a,i,n,t[a],o);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=je;else if(!r)return e;return 1===o&&(s=r,r=function(e){return k().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=k.guid++)),e.each((function(){k.event.add(this,t,r,n,i)}))}function $e(e,t,i){i?(ae.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,n=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=a.call(arguments),ae.set(this,t,n),this[t](),i=ae.get(this,t),ae.set(this,t,!1),n!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else n&&(ae.set(this,t,k.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Le)}})):void 0===ae.get(e,t)&&k.event.add(e,t,Le)}k.event={global:{},add:function(e,t,i,n,r){var o,s,a,l,c,u,d,h,p,f,m,g=ae.get(e);if(oe(e))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&k.find.matchesSelector(me,r),i.guid||(i.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Z)||[""]).length;c--;)p=m=(a=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[p]=!0)},remove:function(e,t,i,n,r){var o,s,a,l,c,u,d,h,p,f,m,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Z)||[""]).length;c--;)if(p=m=(a=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],i,n,!0);k.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,o,s,a=new Array(arguments.length),l=k.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=k.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=t[i]).selector+" "]&&(s[r]=n.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),s[r]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&S(t,"input")&&$e(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&S(t,"input")&&ae.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Le:je,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:je,isPropagationStopped:je,isImmediatePropagationStopped:je,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function i(e){if(b.documentMode){var i=ae.get(this,"handle"),n=k.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,i(e),n.target===n.currentTarget&&i(n)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var n;if($e(this,e,!0),!b.documentMode)return!1;(n=ae.get(this,t))||this.addEventListener(t,i),ae.set(this,t,(n||0)+1)},trigger:function(){return $e(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,i),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,o=ae.get(r,t);o||(b.documentMode?this.addEventListener(t,i):n.addEventListener(e,i,!0)),ae.set(r,t,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=b.documentMode?this:n,o=ae.get(r,t)-1;o?ae.set(r,t,o):(b.documentMode?this.removeEventListener(t,i):n.removeEventListener(e,i,!0),ae.remove(r,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),k.fn.extend({on:function(e,t,i,n){return Oe(this,e,t,i,n)},one:function(e,t,i,n){return Oe(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=je),this.each((function(){k.event.remove(this,e,i,t)}))}});var ze=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Be(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var i,n,r,o,s,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(r in ae.remove(t,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)k.event.add(t,r,a[r][i]);le.hasData(e)&&(o=le.access(e),s=k.extend({},o),le.set(t,s))}}function We(e,t){var i=t.nodeName.toLowerCase();"input"===i&&ke.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Ve(e,t,i,n){t=l(t);var r,o,s,a,c,u,d=0,h=e.length,p=h-1,f=t[0],m=v(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Ne.test(f))return e.each((function(r){var o=e.eq(r);m&&(t[0]=f.call(this,r,o.html())),Ve(o,t,i,n)}));if(h&&(o=(r=Fe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(a=(s=k.map(Pe(r,"script"),Ue)).length;d<h;d++)c=r,d!==p&&(c=k.clone(c,!0,!0),a&&k.merge(s,Pe(c,"script"))),i.call(e[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,k.map(s,He),d=0;d<a;d++)c=s[d],Se.test(c.type||"")&&!ae.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Re,""),c,u))}return e}function Ze(e,t,i){for(var n,r=t?k.filter(t,e):e,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||k.cleanData(Pe(n)),n.parentNode&&(i&&ge(n)&&Ie(Pe(n,"script")),n.parentNode.removeChild(n));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,r,o,s,a=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(s=Pe(a),n=0,r=(o=Pe(e)).length;n<r;n++)We(o[n],s[n]);if(t)if(i)for(o=o||Pe(e),s=s||Pe(a),n=0,r=o.length;n<r;n++)qe(o[n],s[n]);else qe(e,a);return(s=Pe(a,"script")).length>0&&Ie(s,!l&&Pe(e,"script")),a},cleanData:function(e){for(var t,i,n,r=k.event.special,o=0;void 0!==(i=e[o]);o++)if(oe(i)){if(t=i[ae.expando]){if(t.events)for(n in t.events)r[n]?k.event.remove(i,n):k.removeEvent(i,n,t.handle);i[ae.expando]=void 0}i[le.expando]&&(i[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ze(this,e,!0)},remove:function(e){return Ze(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Be(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Be(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Ae[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(k.cleanData(Pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var i=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Pe(this)),i&&i.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var i,n=[],r=k(e),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),k(r[s])[t](i),c.apply(n,i.get());return this.pushStack(n)}}));var Ke=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Qe=function(e,t,i){var n,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=i.call(e),t)e.style[r]=o[r];return n},Ge=new RegExp(fe.join("|"),"i");function Je(e,t,i){var n,r,o,s,a=Xe.test(t),l=e.style;return(i=i||Ye(e))&&(s=i.getPropertyValue(t)||i[t],a&&s&&(s=s.replace(F,"$1")||void 0),""!==s||ge(e)||(s=k.style(e,t)),!g.pixelBoxStyles()&&Ke.test(s)&&Ge.test(t)&&(n=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=i.width,l.width=n,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,i,r;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",me.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],it=b.createElement("div").style,nt={};function rt(e){var t=k.cssProps[e]||nt[e];return t||(e in it?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,i){var n=pe.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ct(e,t,i,n,r,o){var s="width"===t?1:0,a=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(c+=k.css(e,i+fe[s],!0,r)),n?("content"===i&&(l-=k.css(e,"padding"+fe[s],!0,r)),"margin"!==i&&(l-=k.css(e,"border"+fe[s]+"Width",!0,r))):(l+=k.css(e,"padding"+fe[s],!0,r),"padding"!==i?l+=k.css(e,"border"+fe[s]+"Width",!0,r):a+=k.css(e,"border"+fe[s]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ut(e,t,i){var n=Ye(e),r=(!g.boxSizingReliable()||i)&&"border-box"===k.css(e,"boxSizing",!1,n),o=r,s=Je(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(s)){if(!i)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&S(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,n),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ct(e,t,i||(r?"border":"content"),o,n,s)+"px"}function dt(e,t,i,n,r){return new dt.prototype.init(e,t,i,n,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Je(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=re(t),l=Xe.test(t),c=e.style;if(l||(t=rt(a)),s=k.cssHooks[t]||k.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(e,!1,n))?r:c[t];"string"===(o=typeof i)&&(r=pe.exec(i))&&r[1]&&(i=be(e,t,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,o,s,a=re(t);return Xe.test(t)||(t=rt(a)),(s=k.cssHooks[t]||k.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,i)),void 0===r&&(r=Je(e,t,n)),"normal"===r&&t in at&&(r=at[t]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,i,n){if(i)return!ot.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,n):Qe(e,st,(function(){return ut(e,t,n)}))},set:function(e,i,n){var r,o=Ye(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===k.css(e,"boxSizing",!1,o),l=n?ct(e,t,n,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=pe.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=k.css(e,t)),lt(0,i,l)}}})),k.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+fe[n]+t]=o[n]||o[n-2]||o[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=lt)})),k.fn.extend({css:function(e,t){return ee(this,(function(e,t,i){var n,r,o={},s=0;if(Array.isArray(t)){for(n=Ye(e),r=t.length;s<r;s++)o[t[s]]=k.css(e,t[s],!1,n);return o}return void 0!==i?k.style(e,t,i):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,i=dt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=dt.prototype.init,k.fx.step={};var ht,pt,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(gt):n.setTimeout(gt,k.fx.interval),k.fx.tick())}function vt(){return n.setTimeout((function(){ht=void 0})),ht=Date.now()}function _t(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=fe[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,i){for(var n,r=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,t,e))return n}function yt(e,t,i){var n,r,o=0,s=yt.prefilters.length,a=k.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(n);return a.notifyWith(e,[c,n,i]),n<1&&s?i:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},i),originalProperties:t,originalOptions:i,startTime:ht||vt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=k.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var i,n,r,o,s;for(i in e)if(r=t[n=re(i)],o=e[i],Array.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(s=k.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);o<s;o++)if(n=yt.prefilters[o].call(c,e,u,c.opts))return v(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(yt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return be(i.elem,e,pe.exec(t),i),i}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(Z);for(var i,n=0,r=e.length;n<r;n++)i=e[n],yt.tweeners[i]=yt.tweeners[i]||[],yt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&_e(e),g=ae.get(e,"fxshow");for(n in i.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[n],ft.test(r)){if(delete t[n],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(n in d&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ae.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(xe([e],!0),c=e.style.display||c,u=k.css(e,"display"),xe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ae.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&xe([e],!0),h.done((function(){for(n in m||xe([e]),ae.remove(e,"fxshow"),p)k.style(e,n,p[n])}))),l=bt(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),k.speed=function(e,t,i){var n=e&&"object"==typeof e?k.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,i,n){return this.filter(_e).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=k.isEmptyObject(e),o=k.speed(t,i,n),s=function(){var t=yt(this,k.extend({},e),o);(r||ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=k.timers,s=ae.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&mt.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));!t&&i||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=ae.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=k.timers,s=n?n.length:0;for(i.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var i=k.fn[t];k.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(_t(t,!0),e,n,r)}})),k.each({slideDown:_t("show"),slideUp:_t("hide"),slideToggle:_t("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),k.timers=[],k.fx.tick=function(){var e,t=0,i=k.timers;for(ht=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||k.fx.stop(),ht=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){pt||(pt=!0,gt())},k.fx.stop=function(){pt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var wt,xt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,i):(1===o&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?wt:void 0)),void 0!==i?null===i?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=k.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&S(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(Z);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),wt={set:function(e,t,i){return!1===t?k.removeAttr(e,i):e.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=xt[t]||k.find.attr;xt[t]=function(e,t,n){var r,o,s=t.toLowerCase();return n||(o=xt[s],xt[s]=r,r=null!=i(e,t,n)?s:null,xt[s]=o),r}}));var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function kt(e){return(e.match(Z)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Z)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,i,n,r,o,s;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,Et(this)))})):(t=St(e)).length?this.each((function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(o=0;o<t.length;o++)r=t[o],i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=kt(i),n!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,i,n,r,o,s;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(n=Et(this),i=1===this.nodeType&&" "+kt(n)+" "){for(o=0;o<t.length;o++)for(r=t[o];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s=kt(i),n!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,n,r,o,s=typeof e,a="string"===s||Array.isArray(e);return v(e)?this.each((function(i){k(this).toggleClass(e.call(this,i,Et(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(i=St(e),this.each((function(){if(a)for(o=k(this),r=0;r<i.length;r++)n=i[r],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==e&&"boolean"!==s||((n=Et(this))&&ae.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+kt(Et(i))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;k.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=v(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(At,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,i,n,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(n=o<0?l:s?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!S(i.parentNode,"optgroup"))){if(t=k(i).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var i,n,r=e.options,o=k.makeArray(t),s=r.length;s--;)((n=r[s]).selected=k.inArray(k.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Pt=n.location,It={guid:Date.now()},Dt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ft=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,r){var o,s,a,l,c,u,d,h,f=[i||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Ft.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!_(i)){for(l=d.delegateType||m,Ft.test(l+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:d.bindType||m,(u=(ae.get(s,"events")||Object.create(null))[e.type]&&ae.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&oe(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!oe(i)||c&&v(i[m])&&!_(i)&&((a=i[c])&&(i[c]=null),k.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Mt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Mt),k.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(e,t,i){var n=k.extend(new k.Event,i,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return k.event.trigger(e,t,i,!0)}});var Lt=/\[\]$/,jt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;function zt(e,t,i,n){var r;if(Array.isArray(t))k.each(t,(function(t,r){i||Lt.test(e)?n(e,r):zt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)}));else if(i||"object"!==x(t))n(e,t);else for(r in t)zt(e+"["+r+"]",t[r],i,n)}k.param=function(e,t){var i,n=[],r=function(e,t){var i=v(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){r(this.name,this.value)}));else for(i in e)zt(i,e[i],t,r);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&$t.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,(function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})):{name:t.name,value:i.replace(jt,"\r\n")}})).get()}});var Nt=/%20/g,Rt=/#.*$/,Bt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,qt=/^\/\//,Wt={},Vt={},Zt="*/".concat("*"),Kt=b.createElement("a");function Xt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(Z)||[];if(v(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Yt(e,t,i,n){var r={},o=e===Vt;function s(a){var l;return r[a]=!0,k.each(e[a]||[],(function(e,a){var c=a(t,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Qt(e,t){var i,n,r=k.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&k.extend(!0,e,n),e}Kt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,k.ajaxSettings),t):Qt(k.ajaxSettings,e)},ajaxPrefilter:Xt(Wt),ajaxTransport:Xt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,s,a,l,c,u,d,h,p=k.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?k(f):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),_=p.statusCode||{},y={},w={},x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ut.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),T(0,t),this}};if(g.promise(C),p.url=((e||p.url||Pt.href)+"").replace(qt,Pt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Z)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Kt.protocol+"//"+Kt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Yt(Wt,p,t,C),c)return C;for(d in(u=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ht.test(p.type),r=p.url.replace(Rt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Nt,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Dt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Bt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+It.guid+++h),p.url=r+h),p.ifModified&&(k.lastModified[r]&&C.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&C.setRequestHeader("If-None-Match",k.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Zt+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),i=Yt(Vt,p,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(a=n.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,i.send(y,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,s,l){var d,h,b,y,w,x=t;c||(c=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(y=function(e,t,i){for(var n,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,C,s)),!d&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),y=function(e,t,i,n){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,y,C,d),d?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(k.etag[r]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=y.state,h=y.data,d=!(b=y.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),C.status=e,C.statusText=(t||x)+"",d?g.resolveWith(f,[h,x,C]):g.rejectWith(f,[C,x,b]),C.statusCode(_),_=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:b]),v.fireWith(f,[C,x]),u&&(m.trigger("ajaxComplete",[C,p]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return k.get(e,t,i,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:i,success:n},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,i){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,i)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(i){k(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Jt=k.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,k.ajaxTransport((function(e){var t,i;if(g.cors||Jt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){i&&i()}}}));var ei,ti=[],ii=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||k.expando+"_"+It.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,i){var r,o,s,a=!1!==e.jsonp&&(ii.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ii,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||k.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?k(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,ti.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),g.createHTMLDocument=((ei=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ei.childNodes.length),k.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((n=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(n)):t=b),o=!i&&[],(r=R.exec(e))?[t.createElement(r[1])]:(r=Fe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],r.childNodes)));var n,r,o},k.fn.load=function(e,t,i){var n,r,o,s=this,a=e.indexOf(" ");return a>-1&&(n=kt(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)})).always(i&&function(e,t){s.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,i){var n,r,o,s,a,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(n=u.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,i,k.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(n,"marginTop",!0),left:t.left-r.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||me}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;k.fn[e]=function(n){return ee(this,(function(e,n,r){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):e[n]=r}),e,n,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(g.pixelPosition,(function(e,i){if(i)return i=Je(e,t),Ke.test(i)?k(e).position()[t]+"px":i}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){k.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,i,r){var o;return _(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?k.css(t,i,a):k.style(t,i,r,a)}),t,s?r:void 0,s)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return n=a.call(arguments,2),r=function(){return e.apply(t||this,n.concat(a.call(arguments)))},r.guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=S,k.isFunction=v,k.isWindow=_,k.camelCase=re,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(ni,"$1")},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var ri=n.jQuery,oi=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=oi),e&&n.jQuery===k&&(n.jQuery=ri),k},void 0===r&&(n.jQuery=n.$=k),k}))},3:(e,t,i)=>{var n,r;i.amdD,n=[i(616)],void 0===(r=function(e){return function(){var t,i,n,r=0,o="error",s="info",a="success",l="warning",c={clear:function(i,n){var r=f();t||u(r),d(i,r,n)||function(i){for(var n=t.children(),r=n.length-1;r>=0;r--)d(e(n[r]),i)}(r)},remove:function(i){var n=f();t||u(n),i&&0===e(":focus",i).length?m(i):t.children().length&&t.remove()},error:function(e,t,i){return p({type:o,iconClass:f().iconClasses.error,message:e,optionsOverride:i,title:t})},getContainer:u,info:function(e,t,i){return p({type:s,iconClass:f().iconClasses.info,message:e,optionsOverride:i,title:t})},options:{},subscribe:function(e){i=e},success:function(e,t,i){return p({type:a,iconClass:f().iconClasses.success,message:e,optionsOverride:i,title:t})},version:"2.1.4",warning:function(e,t,i){return p({type:l,iconClass:f().iconClasses.warning,message:e,optionsOverride:i,title:t})}};return c;function u(i,n){return i||(i=f()),(t=e("#"+i.containerId)).length||n&&(t=function(i){return(t=e("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(e(i.target)),t}(i)),t}function d(t,i,n){var r=!(!n||!n.force)&&n.force;return!(!t||!r&&0!==e(":focus",t).length||(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){m(t)}}),0))}function h(e){i&&i(e)}function p(i){var o=f(),s=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=e.extend(o,i.optionsOverride),s=i.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===n)return!0;n=t.message}return!1}(o,i)){r++,t=u(o,!0);var a=null,l=e("<div/>"),c=e("<div/>"),d=e("<div/>"),p=e("<div/>"),g=e(o.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},_={toastId:r,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(s),function(){if(i.title){var e=i.title;o.escapeHtml&&(e=b(i.title)),c.append(e).addClass(o.titleClass),l.append(c)}}(),function(){if(i.message){var e=i.message;o.escapeHtml&&(e=b(i.message)),d.append(e).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(g.addClass(o.closeClass).attr("role","button"),l.prepend(g)),o.progressBar&&(p.addClass(o.progressClass),l.prepend(p)),o.rtl&&l.addClass("rtl"),o.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(i.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(a=setTimeout(y,o.timeOut),v.maxHideTime=parseFloat(o.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,o.progressBar&&(v.intervalId=setInterval(C,10))),o.closeOnHover&&l.hover(x,w),!o.onclick&&o.tapToDismiss&&l.click(y),o.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(e),y(!0)})),o.onclick&&l.click((function(e){o.onclick(e),y()})),h(_),o.debug&&console&&console.log(_),l}function b(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(t){var i=t&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,n=t&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,r=t&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[i]({duration:n,easing:r,complete:function(){m(l),clearTimeout(a),o.onHidden&&"hidden"!==_.state&&o.onHidden(),_.state="hidden",_.endTime=new Date,h(_)}})}function w(){(o.timeOut>0||o.extendedTimeOut>0)&&(a=setTimeout(y,o.extendedTimeOut),v.maxHideTime=parseFloat(o.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function x(){clearTimeout(a),v.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function C(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;p.width(e+"%")}}function f(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function m(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),n=void 0))}}()}.apply(t,n))||(e.exports=r)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{try{window.$=window.jQuery=n(616),n(524),n(838),n(876),n(518),window.toastr=n(3),window.translateText=function(e){let t;return $.ajax({type:"post",url:"/language/translate-text",data:{text:e},async:!1}).done((function(e){t=e.translation})).fail((function(t){return e})),t}}catch(e){}n(132),n(692),n(927),n(629)})()})();
\ No newline at end of file
diff --git a/src/App/src/Common/Message.php b/src/App/src/Common/Message.php
index d655c340..96452277 100644
--- a/src/App/src/Common/Message.php
+++ b/src/App/src/Common/Message.php
@@ -9,18 +9,12 @@ class Message
     public const DUPLICATE_EMAIL               = 'An account with this email address already exists.';
     public const RESTRICTION_ROLES             = 'User accounts must have at least one role.';
     public const INVALID_ACTIVATION_CODE       = 'Invalid activation code.';
-    public const INVALID_VALUE                 = 'The value specified for \'%s\' is invalid.';
     public const MAIL_SENT_RESET_PASSWORD      = 'If the provided email identifies an account in our system, '
     . 'you will receive an email with further instructions on resetting your account\'s password.';
-    public const MAIL_SENT_USER_ACTIVATION     = 'User activation mail has been successfully sent to \'%s\'';
     public const MISSING_PARAMETER             = 'Missing parameter: \'%s\'';
-    public const NOT_FOUND_BY_UUID             = 'Unable to find %s identified by uuid: %s';
     public const RESET_PASSWORD_EXPIRED        = 'Password reset request for hash: \'%s\' is invalid (expired).';
     public const RESET_PASSWORD_NOT_FOUND      = 'Could not find password reset request for hash: \'%s\'';
     public const RESET_PASSWORD_USED           = 'Password reset request for hash: \'%s\' is invalid (completed).';
-    public const RESET_PASSWORD_VALID          = 'Password reset request for hash: \'%s\' exists and is valid.';
-    public const RESOURCE_NOT_ALLOWED          = 'You are not allowed to access this resource.';
-    public const RESTRICTION_IMAGE             = 'File must be an image (jpg, png).';
     public const USER_ALREADY_ACTIVATED        = 'This account is already active.';
     public const USER_ALREADY_DEACTIVATED      = 'This account is already deactivated.';
     public const USER_ACTIVATED_SUCCESSFULLY   = 'Successfully activated.';
@@ -28,9 +22,6 @@ class Message
     public const USER_UNREGISTER_STATUS        = 'Only pending accounts can be unregistered directly.';
     public const PASSWORD_RESET_SUCCESSFULLY   = 'Password Successfully reset.';
     public const USER_NOT_ACTIVATED            = 'User account must be activated first.';
-    public const USER_NOT_FOUND_BY_EMAIL       = 'Could not find account identified by email \'%s\'';
-    public const VALIDATOR_REQUIRED_FIELD      = 'This field is required and cannot be empty.';
-    public const VALIDATOR_REQUIRED_UPLOAD     = 'A file must be uploaded first.';
     public const DELETE_ACCOUNT                = 'You must check delete option.';
     public const IS_DELETED                    = 'User is deleted.';
 }
diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php
index 71d9917a..c46af1ef 100644
--- a/src/App/src/ConfigProvider.php
+++ b/src/App/src/ConfigProvider.php
@@ -6,9 +6,11 @@
 
 use Doctrine\ORM\EntityManager;
 use Doctrine\ORM\EntityManagerInterface;
-use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory;
+use Dot\DependencyInjection\Factory\AttributedServiceFactory;
 use Frontend\App\Controller\LanguageController;
 use Frontend\App\Factory\EntityListenerResolverFactory;
+use Frontend\App\Middleware\RememberMeMiddleware;
+use Frontend\App\Middleware\TranslatorMiddleware;
 use Frontend\App\Resolver\EntityListenerResolver;
 use Frontend\App\Service\CookieService;
 use Frontend\App\Service\CookieServiceInterface;
@@ -40,10 +42,12 @@ public function getDependencies(): array
             'factories'  => [
                 'doctrine.entity_manager.orm_default' => EntityManagerFactory::class,
                 EntityListenerResolver::class         => EntityListenerResolverFactory::class,
-                TranslateService::class               => AnnotatedServiceFactory::class,
-                LanguageController::class             => AnnotatedServiceFactory::class,
-                RecaptchaService::class               => AnnotatedServiceFactory::class,
-                CookieService::class                  => AnnotatedServiceFactory::class,
+                TranslateService::class               => AttributedServiceFactory::class,
+                LanguageController::class             => AttributedServiceFactory::class,
+                RecaptchaService::class               => AttributedServiceFactory::class,
+                CookieService::class                  => AttributedServiceFactory::class,
+                TranslatorMiddleware::class           => AttributedServiceFactory::class,
+                RememberMeMiddleware::class           => AttributedServiceFactory::class,
             ],
             'aliases'    => [
                 EntityManager::class             => 'doctrine.entity_manager.orm_default',
diff --git a/src/App/src/Controller/LanguageController.php b/src/App/src/Controller/LanguageController.php
index cbc05f23..e504f18a 100644
--- a/src/App/src/Controller/LanguageController.php
+++ b/src/App/src/Controller/LanguageController.php
@@ -4,11 +4,11 @@
 
 namespace Frontend\App\Controller;
 
-use Dot\AnnotatedServices\Annotation\Inject;
 use Dot\Controller\AbstractActionController;
-use Fig\Http\Message\RequestMethodInterface;
+use Dot\DependencyInjection\Attribute\Inject;
+use Fig\Http\Message\StatusCodeInterface;
 use Frontend\App\Service\TranslateServiceInterface;
-use Laminas\Diactoros\Response\HtmlResponse;
+use Laminas\Diactoros\Response\EmptyResponse;
 use Laminas\Diactoros\Response\JsonResponse;
 use Mezzio\Router\RouterInterface;
 use Mezzio\Template\TemplateRendererInterface;
@@ -18,14 +18,12 @@
 
 class LanguageController extends AbstractActionController
 {
-    /**
-     * @Inject({
-     *     TranslateServiceInterface::class,
-     *     RouterInterface::class,
-     *     TemplateRendererInterface::class,
-     *     "config.translator"
-     * })
-     */
+    #[Inject(
+        TranslateServiceInterface::class,
+        RouterInterface::class,
+        TemplateRendererInterface::class,
+        "config.translator",
+    )]
     public function __construct(
         protected TranslateServiceInterface $translateService,
         protected RouterInterface $router,
@@ -40,33 +38,27 @@ public function changeAction(): ResponseInterface
         $languageKey = ! empty($data['languageKey']) ? $data['languageKey'] : $this->translatorConfig['default'];
         $this->translateService->addTranslatorCookie($languageKey);
 
-        return new HtmlResponse('');
+        return new EmptyResponse(StatusCodeInterface::STATUS_OK);
     }
 
     public function translateTextAction(): ResponseInterface
     {
         $translation = '';
-        $request     = $this->getRequest();
-
-        if ($request->getMethod() === RequestMethodInterface::METHOD_POST) {
-            $data = $request->getParsedBody();
-
-            $text = ! empty($data['text']) ? $data['text'] : '';
-
-            if (is_array($text)) {
-                foreach ($text as $textItem) {
-                    $translation .=
-                        $this->template->render(
-                            'language::translate-text.html.twig',
-                            ['translateThis' => $textItem]
-                        ) . '<br/>';
-                }
-            } else {
-                $translation = $this->template->render(
-                    'language::translate-text.html.twig',
-                    ['translateThis' => $text]
-                );
+        $data        = $this->getRequest()->getParsedBody();
+        $text        = ! empty($data['text']) ? $data['text'] : '';
+        if (is_array($text)) {
+            foreach ($text as $textItem) {
+                $translation .=
+                    $this->template->render(
+                        'language::translate-text.html.twig',
+                        ['translateThis' => $textItem]
+                    ) . '<br/>';
             }
+        } else {
+            $translation = $this->template->render(
+                'language::translate-text.html.twig',
+                ['translateThis' => $text]
+            );
         }
 
         return new JsonResponse([
diff --git a/src/App/src/Middleware/RememberMeMiddleware.php b/src/App/src/Middleware/RememberMeMiddleware.php
index bf4a0419..e8148e03 100644
--- a/src/App/src/Middleware/RememberMeMiddleware.php
+++ b/src/App/src/Middleware/RememberMeMiddleware.php
@@ -6,10 +6,8 @@
 
 use DateTimeImmutable;
 use Doctrine\ORM\NonUniqueResultException;
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Frontend\User\Entity\UserIdentity;
-use Frontend\User\Entity\UserRole;
 use Frontend\User\Service\UserServiceInterface;
 use Laminas\Authentication\AuthenticationServiceInterface;
 use Laminas\Authentication\Exception\ExceptionInterface;
@@ -18,18 +16,13 @@
 use Psr\Http\Server\MiddlewareInterface;
 use Psr\Http\Server\RequestHandlerInterface;
 
-/**
- * @Service()
- */
 class RememberMeMiddleware implements MiddlewareInterface
 {
-    /**
-     * @Inject({
-     *     UserServiceInterface::class,
-     *     AuthenticationServiceInterface::class,
-     *     "config.rememberMe"
-     * })
-     */
+    #[Inject(
+        UserServiceInterface::class,
+        AuthenticationServiceInterface::class,
+        "config.rememberMe",
+    )]
     public function __construct(
         protected UserServiceInterface $userService,
         protected AuthenticationServiceInterface $authenticationService,
@@ -55,15 +48,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
                     $rememberUser->getExpireDate() > new DateTimeImmutable('now') &&
                     $user->getIsDeleted() === false
                 ) {
-                    $userIdentity = new UserIdentity(
-                        $user->getUuid()->toString(),
-                        $user->getIdentity(),
-                        $user->getRoles()->map(function (UserRole $userRole) {
-                            return $userRole->getName();
-                        })->toArray(),
-                        $user->getDetail()->getArrayCopy(),
-                    );
-
+                    $userIdentity = UserIdentity::fromEntity($user);
                     $this->authenticationService->getStorage()->write($userIdentity);
                 } else {
                     $this->authenticationService->getStorage()->clear();
diff --git a/src/App/src/Middleware/TranslatorMiddleware.php b/src/App/src/Middleware/TranslatorMiddleware.php
index 6adc9d41..56fe4ba8 100644
--- a/src/App/src/Middleware/TranslatorMiddleware.php
+++ b/src/App/src/Middleware/TranslatorMiddleware.php
@@ -4,8 +4,7 @@
 
 namespace Frontend\App\Middleware;
 
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Frontend\App\Service\TranslateServiceInterface;
 use Mezzio\Template\TemplateRendererInterface;
 use Psr\Http\Message\ResponseInterface;
@@ -23,18 +22,13 @@
 
 use const LC_ALL;
 
-/**
- * @Service()
- */
 class TranslatorMiddleware implements MiddlewareInterface
 {
-    /**
-     * @Inject({
-     *     TranslateServiceInterface::class,
-     *     TemplateRendererInterface::class,
-     *     "config.translator"
-     * })
-     */
+    #[Inject(
+        TranslateServiceInterface::class,
+        TemplateRendererInterface::class,
+        "config.translator",
+    )]
     public function __construct(
         protected TranslateServiceInterface $translateService,
         protected TemplateRendererInterface $template,
diff --git a/src/App/src/Service/CookieService.php b/src/App/src/Service/CookieService.php
index d9e6bde6..2fc0def1 100644
--- a/src/App/src/Service/CookieService.php
+++ b/src/App/src/Service/CookieService.php
@@ -4,26 +4,18 @@
 
 namespace Frontend\App\Service;
 
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Laminas\Session\Config\ConfigInterface;
 use Laminas\Session\SessionManager;
 
 use function setcookie;
 use function time;
 
-/**
- * @Service()
- */
 class CookieService implements CookieServiceInterface
 {
     private ConfigInterface $sessionConfig;
 
-    /**
-     * @Inject({
-     *     SessionManager::class
-     * })
-     */
+    #[Inject(SessionManager::class)]
     public function __construct(SessionManager $sessionManager)
     {
         $this->sessionConfig = $sessionManager->getConfig();
diff --git a/src/App/src/Service/RecaptchaService.php b/src/App/src/Service/RecaptchaService.php
index ec8d303e..afa839e9 100644
--- a/src/App/src/Service/RecaptchaService.php
+++ b/src/App/src/Service/RecaptchaService.php
@@ -4,7 +4,7 @@
 
 namespace Frontend\App\Service;
 
-use Dot\AnnotatedServices\Annotation\Inject;
+use Dot\DependencyInjection\Attribute\Inject;
 use Fig\Http\Message\StatusCodeInterface;
 use InvalidArgumentException;
 
@@ -29,11 +29,7 @@ class RecaptchaService
     private array $config;
     private string $response;
 
-    /**
-     * @Inject({
-     *     "config.recaptcha"
-     * })
-     */
+    #[Inject("config.recaptcha")]
     public function __construct(array $config)
     {
         $this->validateConfig($config);
diff --git a/src/App/src/Service/TranslateService.php b/src/App/src/Service/TranslateService.php
index 81a19ef7..869fbf39 100644
--- a/src/App/src/Service/TranslateService.php
+++ b/src/App/src/Service/TranslateService.php
@@ -4,18 +4,16 @@
 
 namespace Frontend\App\Service;
 
-use Dot\AnnotatedServices\Annotation\Inject;
+use Dot\DependencyInjection\Attribute\Inject;
 
 use function time;
 
 class TranslateService implements TranslateServiceInterface
 {
-    /**
-     * @Inject({
-     *     CookieServiceInterface::class,
-     *     "config"
-     * })
-     */
+    #[Inject(
+        CookieServiceInterface::class,
+        "config",
+    )]
     public function __construct(
         protected CookieServiceInterface $cookieService,
         protected array $config = []
diff --git a/src/Contact/src/ConfigProvider.php b/src/Contact/src/ConfigProvider.php
index 7f1492c9..504db616 100644
--- a/src/Contact/src/ConfigProvider.php
+++ b/src/Contact/src/ConfigProvider.php
@@ -5,11 +5,12 @@
 namespace Frontend\Contact;
 
 use Doctrine\ORM\Mapping\Driver\AttributeDriver;
-use Dot\AnnotatedServices\Factory\AnnotatedRepositoryFactory;
-use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory;
+use Dot\DependencyInjection\Factory\AttributedRepositoryFactory;
+use Dot\DependencyInjection\Factory\AttributedServiceFactory;
 use Frontend\Contact\Controller\ContactController;
 use Frontend\Contact\Form\ContactForm;
 use Frontend\Contact\Repository\MessageRepository;
+use Frontend\Contact\Repository\MessageRepositoryInterface;
 use Frontend\Contact\Service\MessageService;
 use Frontend\Contact\Service\MessageServiceInterface;
 use Laminas\Form\ElementFactory;
@@ -36,12 +37,13 @@ public function getDependencies(): array
                 ],
             ],
             'factories'  => [
-                ContactController::class => AnnotatedServiceFactory::class,
-                MessageService::class    => AnnotatedServiceFactory::class,
-                MessageRepository::class => AnnotatedRepositoryFactory::class,
+                ContactController::class => AttributedServiceFactory::class,
+                MessageService::class    => AttributedServiceFactory::class,
+                MessageRepository::class => AttributedRepositoryFactory::class,
             ],
             'aliases'    => [
-                MessageServiceInterface::class => MessageService::class,
+                MessageServiceInterface::class    => MessageService::class,
+                MessageRepositoryInterface::class => MessageRepository::class,
             ],
         ];
     }
diff --git a/src/Contact/src/Controller/ContactController.php b/src/Contact/src/Controller/ContactController.php
index 665a3105..55312e8c 100644
--- a/src/Contact/src/Controller/ContactController.php
+++ b/src/Contact/src/Controller/ContactController.php
@@ -4,16 +4,18 @@
 
 namespace Frontend\Contact\Controller;
 
-use Dot\AnnotatedServices\Annotation\Inject;
 use Dot\Controller\AbstractActionController;
 use Dot\DebugBar\DebugBar;
+use Dot\DependencyInjection\Attribute\Inject;
 use Dot\FlashMessenger\FlashMessenger;
+use Dot\FlashMessenger\FlashMessengerInterface;
 use Fig\Http\Message\RequestMethodInterface;
 use Frontend\App\Service\RecaptchaService;
 use Frontend\Contact\Form\ContactForm;
 use Frontend\Contact\Service\MessageServiceInterface;
 use Frontend\Plugin\FormsPlugin;
 use Laminas\Authentication\AuthenticationService;
+use Laminas\Authentication\AuthenticationServiceInterface;
 use Laminas\Diactoros\Response\HtmlResponse;
 use Laminas\Diactoros\Response\RedirectResponse;
 use Mezzio\Router\RouterInterface;
@@ -22,19 +24,17 @@
 
 class ContactController extends AbstractActionController
 {
-    /**
-     * @Inject({
-     *     MessageServiceInterface::class,
-     *     RecaptchaService::class,
-     *     RouterInterface::class,
-     *     TemplateRendererInterface::class,
-     *     AuthenticationService::class,
-     *     FlashMessenger::class,
-     *     FormsPlugin::class,
-     *     DebugBar::class,
-     *     "config"
-     *     })
-     */
+    #[Inject(
+        MessageServiceInterface::class,
+        RecaptchaService::class,
+        RouterInterface::class,
+        TemplateRendererInterface::class,
+        AuthenticationServiceInterface::class,
+        FlashMessengerInterface::class,
+        FormsPlugin::class,
+        DebugBar::class,
+        "config",
+    )]
     public function __construct(
         protected MessageServiceInterface $messageService,
         protected RecaptchaService $recaptchaService,
diff --git a/src/Contact/src/Repository/MessageRepository.php b/src/Contact/src/Repository/MessageRepository.php
index 02c0bab3..b46f5acc 100644
--- a/src/Contact/src/Repository/MessageRepository.php
+++ b/src/Contact/src/Repository/MessageRepository.php
@@ -5,18 +5,20 @@
 namespace Frontend\Contact\Repository;
 
 use Doctrine\ORM\EntityRepository;
-use Dot\AnnotatedServices\Annotation\Entity;
+use Dot\DependencyInjection\Attribute\Entity;
 use Frontend\Contact\Entity\Message;
 
 /**
- * @Entity(name="Frontend\Contact\Entity\Message")
  * @extends EntityRepository<object>
  */
+#[Entity(Message::class)]
 class MessageRepository extends EntityRepository implements MessageRepositoryInterface
 {
-    public function saveMessage(Message $message): void
+    public function saveMessage(Message $message): Message
     {
         $this->getEntityManager()->persist($message);
         $this->getEntityManager()->flush();
+
+        return $message;
     }
 }
diff --git a/src/Contact/src/Repository/MessageRepositoryInterface.php b/src/Contact/src/Repository/MessageRepositoryInterface.php
index 43ab759a..1baba7fb 100644
--- a/src/Contact/src/Repository/MessageRepositoryInterface.php
+++ b/src/Contact/src/Repository/MessageRepositoryInterface.php
@@ -8,5 +8,5 @@
 
 interface MessageRepositoryInterface
 {
-    public function saveMessage(Message $message): void;
+    public function saveMessage(Message $message): Message;
 }
diff --git a/src/Contact/src/Service/MessageService.php b/src/Contact/src/Service/MessageService.php
index a46b719f..4847a42d 100644
--- a/src/Contact/src/Service/MessageService.php
+++ b/src/Contact/src/Service/MessageService.php
@@ -5,22 +5,21 @@
 namespace Frontend\Contact\Service;
 
 use Doctrine\ORM\EntityRepository;
-use Dot\AnnotatedServices\Annotation\Inject;
+use Dot\DependencyInjection\Attribute\Inject;
 use Dot\Mail\Service\MailServiceInterface;
 use Frontend\Contact\Entity\Message;
 use Frontend\Contact\Repository\MessageRepository;
+use Frontend\Contact\Repository\MessageRepositoryInterface;
 use Mezzio\Template\TemplateRendererInterface;
 
 class MessageService implements MessageServiceInterface
 {
-    /**
-     * @Inject({
-     *     MessageRepository::class,
-     *     MailServiceInterface::class,
-     *     TemplateRendererInterface::class,
-     *     "config"
-     * })
-     */
+    #[Inject(
+        MessageRepositoryInterface::class,
+        MailServiceInterface::class,
+        TemplateRendererInterface::class,
+        "config",
+    )]
     public function __construct(
         protected MessageRepository $repository,
         protected MailServiceInterface $mailService,
diff --git a/src/Page/src/ConfigProvider.php b/src/Page/src/ConfigProvider.php
index 406d357e..b5fe4a2e 100644
--- a/src/Page/src/ConfigProvider.php
+++ b/src/Page/src/ConfigProvider.php
@@ -4,7 +4,7 @@
 
 namespace Frontend\Page;
 
-use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory;
+use Dot\DependencyInjection\Factory\AttributedServiceFactory;
 use Frontend\Page\Controller\PageController;
 use Frontend\Page\Service\PageService;
 use Frontend\Page\Service\PageServiceInterface;
@@ -29,8 +29,8 @@ public function getDependencies(): array
                 ],
             ],
             'factories'  => [
-                PageController::class => AnnotatedServiceFactory::class,
-                PageService::class    => AnnotatedServiceFactory::class,
+                PageController::class => AttributedServiceFactory::class,
+                PageService::class    => AttributedServiceFactory::class,
             ],
             'aliases'    => [
                 PageServiceInterface::class => PageService::class,
diff --git a/src/Page/src/Controller/PageController.php b/src/Page/src/Controller/PageController.php
index f956fc6d..45b1e210 100644
--- a/src/Page/src/Controller/PageController.php
+++ b/src/Page/src/Controller/PageController.php
@@ -4,8 +4,8 @@
 
 namespace Frontend\Page\Controller;
 
-use Dot\AnnotatedServices\Annotation\Inject;
 use Dot\Controller\AbstractActionController;
+use Dot\DependencyInjection\Attribute\Inject;
 use Frontend\Page\Service\PageServiceInterface;
 use Laminas\Diactoros\Response\HtmlResponse;
 use Mezzio\Router\RouterInterface;
@@ -14,13 +14,11 @@
 
 class PageController extends AbstractActionController
 {
-    /**
-     * @Inject({
-     *     PageServiceInterface::class,
-     *     RouterInterface::class,
-     *     TemplateRendererInterface::class
-     * })
-     */
+    #[Inject(
+        PageServiceInterface::class,
+        RouterInterface::class,
+        TemplateRendererInterface::class,
+    )]
     public function __construct(
         protected PageServiceInterface $pageService,
         protected RouterInterface $router,
diff --git a/src/User/src/Adapter/AuthenticationAdapter.php b/src/User/src/Adapter/AuthenticationAdapter.php
index b7bc4f90..26de6d52 100644
--- a/src/User/src/Adapter/AuthenticationAdapter.php
+++ b/src/User/src/Adapter/AuthenticationAdapter.php
@@ -6,7 +6,6 @@
 
 use Doctrine\ORM\EntityRepository;
 use Frontend\User\Entity\UserIdentity;
-use Frontend\User\Entity\UserRole;
 use Frontend\User\Exception\AuthenticationAdapterException;
 use Laminas\Authentication\Adapter\AbstractAdapter;
 use Laminas\Authentication\Adapter\AdapterInterface;
@@ -78,14 +77,7 @@ public function authenticate(): Result
 
         return new Result(
             Result::SUCCESS,
-            new UserIdentity(
-                $identityClass->getUuid()->toString(),
-                $identityClass->getIdentity(),
-                $identityClass->getRoles()->map(function (UserRole $userRole) {
-                    return $userRole->getName();
-                })->toArray(),
-                $identityClass->getDetail()->getArrayCopy(),
-            ),
+            UserIdentity::fromEntity($identityClass),
             [$this->config['messages']['success']]
         );
     }
diff --git a/src/User/src/ConfigProvider.php b/src/User/src/ConfigProvider.php
index 047cb808..7137948a 100644
--- a/src/User/src/ConfigProvider.php
+++ b/src/User/src/ConfigProvider.php
@@ -5,13 +5,14 @@
 namespace Frontend\User;
 
 use Doctrine\ORM\Mapping\Driver\AttributeDriver;
-use Dot\AnnotatedServices\Factory\AnnotatedRepositoryFactory;
-use Dot\AnnotatedServices\Factory\AnnotatedServiceFactory;
+use Dot\DependencyInjection\Factory\AttributedRepositoryFactory;
+use Dot\DependencyInjection\Factory\AttributedServiceFactory;
 use Frontend\User\Adapter\AuthenticationAdapter;
 use Frontend\User\Controller\AccountController;
 use Frontend\User\Controller\UserController;
 use Frontend\User\Entity\User;
 use Frontend\User\Entity\UserInterface;
+use Frontend\User\EventListener\UserAvatarEventListener;
 use Frontend\User\Factory\AuthenticationAdapterFactory;
 use Frontend\User\Factory\AuthenticationServiceFactory;
 use Frontend\User\Form\LoginForm;
@@ -46,14 +47,15 @@ public function getDependencies(): array
                 ],
             ],
             'factories'  => [
-                AuthenticationService::class => AuthenticationServiceFactory::class,
-                AuthenticationAdapter::class => AuthenticationAdapterFactory::class,
-                UserController::class        => AnnotatedServiceFactory::class,
-                AccountController::class     => AnnotatedServiceFactory::class,
-                UserService::class           => AnnotatedServiceFactory::class,
-                UserRoleService::class       => AnnotatedServiceFactory::class,
-                UserRepository::class        => AnnotatedRepositoryFactory::class,
-                UserRoleRepository::class    => AnnotatedRepositoryFactory::class,
+                AuthenticationService::class   => AuthenticationServiceFactory::class,
+                AuthenticationAdapter::class   => AuthenticationAdapterFactory::class,
+                UserController::class          => AttributedServiceFactory::class,
+                AccountController::class       => AttributedServiceFactory::class,
+                UserService::class             => AttributedServiceFactory::class,
+                UserRoleService::class         => AttributedServiceFactory::class,
+                UserRepository::class          => AttributedRepositoryFactory::class,
+                UserRoleRepository::class      => AttributedRepositoryFactory::class,
+                UserAvatarEventListener::class => AttributedServiceFactory::class,
             ],
             'aliases'    => [
                 UserInterface::class            => User::class,
diff --git a/src/User/src/Controller/AccountController.php b/src/User/src/Controller/AccountController.php
index ee92f765..18e94c3d 100644
--- a/src/User/src/Controller/AccountController.php
+++ b/src/User/src/Controller/AccountController.php
@@ -5,9 +5,9 @@
 namespace Frontend\User\Controller;
 
 use Doctrine\ORM\NonUniqueResultException;
-use Dot\AnnotatedServices\Annotation\Inject;
 use Dot\Controller\AbstractActionController;
 use Dot\DebugBar\DebugBar;
+use Dot\DependencyInjection\Attribute\Inject;
 use Dot\FlashMessenger\FlashMessengerInterface;
 use Exception;
 use Fig\Http\Message\RequestMethodInterface;
@@ -34,17 +34,15 @@
 
 class AccountController extends AbstractActionController
 {
-    /**
-     * @Inject({
-     *     UserServiceInterface::class,
-     *     RouterInterface::class,
-     *     TemplateRendererInterface::class,
-     *     AuthenticationService::class,
-     *     FlashMessengerInterface::class,
-     *     FormsPlugin::class,
-     *     DebugBar::class
-     * })
-     */
+    #[Inject(
+        UserServiceInterface::class,
+        RouterInterface::class,
+        TemplateRendererInterface::class,
+        AuthenticationService::class,
+        FlashMessengerInterface::class,
+        FormsPlugin::class,
+        DebugBar::class,
+    )]
     public function __construct(
         protected UserServiceInterface $userService,
         protected RouterInterface $router,
diff --git a/src/User/src/Controller/UserController.php b/src/User/src/Controller/UserController.php
index 5299aecf..b7a8af55 100644
--- a/src/User/src/Controller/UserController.php
+++ b/src/User/src/Controller/UserController.php
@@ -4,10 +4,9 @@
 
 namespace Frontend\User\Controller;
 
-use Doctrine\ORM\NonUniqueResultException;
-use Dot\AnnotatedServices\Annotation\Inject;
 use Dot\Controller\AbstractActionController;
 use Dot\DebugBar\DebugBar;
+use Dot\DependencyInjection\Attribute\Inject;
 use Dot\FlashMessenger\FlashMessengerInterface;
 use Exception;
 use Fig\Http\Message\RequestMethodInterface;
@@ -19,7 +18,6 @@
 use Frontend\User\Form\RegisterForm;
 use Frontend\User\Service\UserServiceInterface;
 use Laminas\Authentication\AuthenticationService;
-use Laminas\Authentication\Exception\ExceptionInterface;
 use Laminas\Diactoros\Response\HtmlResponse;
 use Laminas\Diactoros\Response\RedirectResponse;
 use Mezzio\Router\RouterInterface;
@@ -28,19 +26,17 @@
 
 class UserController extends AbstractActionController
 {
-    /**
-     * @Inject({
-     *     CookieServiceInterface::class,
-     *     UserServiceInterface::class,
-     *     RouterInterface::class,
-     *     TemplateRendererInterface::class,
-     *     AuthenticationService::class,
-     *     FlashMessengerInterface::class,
-     *     FormsPlugin::class,
-     *     DebugBar::class,
-     *     "config"
-     * })
-     */
+    #[Inject(
+        CookieServiceInterface::class,
+        UserServiceInterface::class,
+        RouterInterface::class,
+        TemplateRendererInterface::class,
+        AuthenticationService::class,
+        FlashMessengerInterface::class,
+        FormsPlugin::class,
+        DebugBar::class,
+        "config"
+    )]
     public function __construct(
         protected CookieServiceInterface $cookieService,
         protected UserServiceInterface $userService,
@@ -54,10 +50,6 @@ public function __construct(
     ) {
     }
 
-    /**
-     * @throws NonUniqueResultException
-     * @throws Exception|ExceptionInterface
-     */
     public function loginAction(): ResponseInterface
     {
         if ($this->authenticationService->hasIdentity()) {
diff --git a/src/User/src/Entity/UserIdentity.php b/src/User/src/Entity/UserIdentity.php
index 3112937d..6ef8a7b0 100644
--- a/src/User/src/Entity/UserIdentity.php
+++ b/src/User/src/Entity/UserIdentity.php
@@ -4,6 +4,7 @@
 
 namespace Frontend\User\Entity;
 
+use Frontend\User\Entity\UserInterface as UserIdentityInterface;
 use Mezzio\Authentication\UserInterface;
 
 class UserIdentity implements UserInterface
@@ -49,4 +50,16 @@ public function getDetails(): array
     {
         return $this->details;
     }
+
+    public static function fromEntity(UserIdentityInterface $user): self
+    {
+        return new self(
+            $user->getUuid()->toString(),
+            $user->getIdentity(),
+            $user->getRoles()->map(function (UserRole $userRole) {
+                return $userRole->getName();
+            })->toArray(),
+            $user->getDetail()->getArrayCopy(),
+        );
+    }
 }
diff --git a/src/User/src/EventListener/UserAvatarEventListener.php b/src/User/src/EventListener/UserAvatarEventListener.php
index ec1e1d33..f63fdc0a 100644
--- a/src/User/src/EventListener/UserAvatarEventListener.php
+++ b/src/User/src/EventListener/UserAvatarEventListener.php
@@ -4,22 +4,14 @@
 
 namespace Frontend\User\EventListener;
 
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Frontend\User\Entity\UserAvatar;
 
 use function sprintf;
 
-/**
- * @Service
- */
 class UserAvatarEventListener
 {
-    /**
-     * @Inject({
-     *     "config"
-     * })
-     */
+    #[Inject("config")]
     public function __construct(protected array $config = [])
     {
     }
diff --git a/src/User/src/InputFilter/UserDetailInputFilter.php b/src/User/src/InputFilter/UserDetailInputFilter.php
index 8ac2869f..4f246ca6 100644
--- a/src/User/src/InputFilter/UserDetailInputFilter.php
+++ b/src/User/src/InputFilter/UserDetailInputFilter.php
@@ -29,7 +29,7 @@ public function init(): void
                 'message' => '<b>First Name</b> is required and cannot be empty',
             ], true)
             ->attachByName(StringLength::class, [
-                'min'     => 8,
+                'min'     => 2,
                 'max'     => 150,
                 'message' => '<b>First Name</b> must have between 8 and 150 characters',
             ], true);
@@ -44,7 +44,7 @@ public function init(): void
                 'message' => '<b>Last Name</b> is required and cannot be empty',
             ], true)
             ->attachByName(StringLength::class, [
-                'min'     => 8,
+                'min'     => 2,
                 'max'     => 150,
                 'message' => '<b>Last Name</b> must have between 8 and 150 characters',
             ], true);
diff --git a/src/User/src/Repository/UserRepository.php b/src/User/src/Repository/UserRepository.php
index e6c063a9..e8b7d640 100644
--- a/src/User/src/Repository/UserRepository.php
+++ b/src/User/src/Repository/UserRepository.php
@@ -7,16 +7,16 @@
 use DateTimeImmutable;
 use Doctrine\ORM\EntityRepository;
 use Doctrine\ORM\NonUniqueResultException;
-use Dot\AnnotatedServices\Annotation\Entity;
+use Dot\DependencyInjection\Attribute\Entity;
 use Exception;
 use Frontend\User\Entity\User;
 use Frontend\User\Entity\UserRememberMe;
 use Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType;
 
 /**
- * @Entity(name="Frontend\User\Entity\User")
  * @extends EntityRepository<object>
  */
+#[Entity(name: User::class)]
 class UserRepository extends EntityRepository
 {
     /**
diff --git a/src/User/src/Repository/UserRoleRepository.php b/src/User/src/Repository/UserRoleRepository.php
index 95788332..48e24f7e 100644
--- a/src/User/src/Repository/UserRoleRepository.php
+++ b/src/User/src/Repository/UserRoleRepository.php
@@ -5,12 +5,13 @@
 namespace Frontend\User\Repository;
 
 use Doctrine\ORM\EntityRepository;
-use Dot\AnnotatedServices\Annotation\Entity;
+use Dot\DependencyInjection\Attribute\Entity;
+use Frontend\User\Entity\UserRole;
 
 /**
- * @Entity(name="Frontend\User\Entity\UserRole")
  * @extends EntityRepository<object>
  */
+#[Entity(name: UserRole::class)]
 class UserRoleRepository extends EntityRepository
 {
 }
diff --git a/src/User/src/Service/UserRoleService.php b/src/User/src/Service/UserRoleService.php
index eeace619..2dfbd930 100644
--- a/src/User/src/Service/UserRoleService.php
+++ b/src/User/src/Service/UserRoleService.php
@@ -4,21 +4,13 @@
 
 namespace Frontend\User\Service;
 
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Frontend\User\Entity\UserRole;
 use Frontend\User\Repository\UserRoleRepository;
 
-/**
- * @Service()
- */
 class UserRoleService implements UserRoleServiceInterface
 {
-    /**
-     * @Inject({
-     *     UserRoleRepository::class,
-     * })
-     */
+    #[Inject(UserRoleRepository::class)]
     public function __construct(protected UserRoleRepository $roleRepository)
     {
     }
diff --git a/src/User/src/Service/UserService.php b/src/User/src/Service/UserService.php
index 392ff849..56b064a5 100644
--- a/src/User/src/Service/UserService.php
+++ b/src/User/src/Service/UserService.php
@@ -6,10 +6,10 @@
 
 use DateTimeImmutable;
 use Doctrine\ORM\NonUniqueResultException;
-use Dot\AnnotatedServices\Annotation\Inject;
-use Dot\AnnotatedServices\Annotation\Service;
+use Dot\DependencyInjection\Attribute\Inject;
 use Dot\Mail\Exception\MailException;
 use Dot\Mail\Service\MailService;
+use Dot\Mail\Service\MailServiceInterface;
 use Exception;
 use Frontend\App\Common\Message;
 use Frontend\App\Common\UuidOrderedTimeGenerator;
@@ -35,9 +35,6 @@
 
 use const PASSWORD_DEFAULT;
 
-/**
- * @Service()
- */
 class UserService implements UserServiceInterface
 {
     public const EXTENSIONS = [
@@ -46,17 +43,15 @@ class UserService implements UserServiceInterface
         'image/png'  => 'png',
     ];
 
-    /**
-     * @Inject({
-     *     CookieServiceInterface::class,
-     *     MailService::class,
-     *     UserRoleServiceInterface::class,
-     *     TemplateRendererInterface::class,
-     *     UserRepository::class,
-     *     UserRoleRepository::class,
-     *     "config"
-     * })
-     */
+    #[Inject(
+        CookieServiceInterface::class,
+        MailServiceInterface::class,
+        UserRoleServiceInterface::class,
+        TemplateRendererInterface::class,
+        UserRepository::class,
+        UserRoleRepository::class,
+        "config",
+    )]
     public function __construct(
         protected CookieServiceInterface $cookieService,
         protected MailService $mailService,
diff --git a/src/User/src/Service/UserServiceInterface.php b/src/User/src/Service/UserServiceInterface.php
index 6e5d7b5d..fe98d861 100644
--- a/src/User/src/Service/UserServiceInterface.php
+++ b/src/User/src/Service/UserServiceInterface.php
@@ -4,10 +4,10 @@
 
 namespace Frontend\User\Service;
 
-use Doctrine\ORM\EntityRepository;
 use Dot\Mail\Exception\MailException;
 use Frontend\User\Entity\User;
 use Frontend\User\Entity\UserInterface;
+use Frontend\User\Repository\UserRepository;
 
 interface UserServiceInterface
 {
@@ -24,7 +24,7 @@ public function activateUser(User $user): User;
 
     public function findByUuid(string $uuid): ?User;
 
-    public function getRepository(): EntityRepository;
+    public function getRepository(): UserRepository;
 
     public function addRememberMeToken(UserInterface|User $user, string $userAgent, array $cookies = []): void;
 
diff --git a/test/Unit/App/Middleware/RememberMeMiddlewareTest.php b/test/Unit/App/Middleware/RememberMeMiddlewareTest.php
index 65a822f6..8bd96fc6 100644
--- a/test/Unit/App/Middleware/RememberMeMiddlewareTest.php
+++ b/test/Unit/App/Middleware/RememberMeMiddlewareTest.php
@@ -12,7 +12,6 @@
 use Frontend\User\Entity\UserDetail;
 use Frontend\User\Entity\UserIdentity;
 use Frontend\User\Entity\UserRememberMe;
-use Frontend\User\Entity\UserRole;
 use Frontend\User\Repository\UserRepository;
 use Frontend\User\Service\UserService;
 use Laminas\Authentication\AuthenticationService;
@@ -78,14 +77,7 @@ public function testAutologin(): void
 
         $user->setDetail($detail);
 
-        $userIdentity = new UserIdentity(
-            $user->getUuid()->toString(),
-            $user->getIdentity(),
-            $user->getRoles()->map(function (UserRole $userRole) {
-                return $userRole->getName();
-            })->toArray(),
-            $user->getDetail()->getArrayCopy(),
-        );
+        $userIdentity = UserIdentity::fromEntity($user);
 
         $userRememberMe = (new UserRememberMe())
             ->setUser($user)
