diff --git a/.gitattributes b/.gitattributes index 5d337ae0..7748d23b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,5 @@ *.jpeg binary *.svg binary *.md diff=markdown +*.woff export-ignore +*.woff2 export-ignore diff --git a/README.md b/README.md index 02eab711..d9d7dc2b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,15 @@ The many graphical components at your disposal ensure an intuitive user experien Documentation is available at: https://docs.dotkernel.org/admin-documentation/ +## Version History + +| Branch | Release | PSR-11 | OSS Lifecycle | PHP Version | +|--------|----------|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------| +| 6.0 | `>= 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) | +| 5.0 | `< 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) | +| 4.0 | `< 5.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) | +| 3.0 | `< 4.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F3.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/3.2.1) | + ## Badges ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/admin) diff --git a/SECURITY.md b/SECURITY.md index 860d26e2..fb2355c2 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,14 +2,12 @@ ## Supported Versions - -| Version | Supported | PHP Version | -| ------- | ------------------ |-------------| -| 5.x | :white_check_mark: |![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.x-dev)| -| 4.x | :white_check_mark: |![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.0.1)| -| 3.x | :x: |![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/3.0.x-dev)| -| <= 2.0 | :x: | | - +| Branch | OSS Lifecycle | PHP Version | +|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------| +| 6.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) | +| 5.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) | +| 4.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) | +| 3.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F3.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/3.2.1) | ## Reporting Potential Security Issues diff --git a/bin/composer-post-install-script.php b/bin/composer-post-install-script.php index af2e8a93..c453f961 100644 --- a/bin/composer-post-install-script.php +++ b/bin/composer-post-install-script.php @@ -2,34 +2,57 @@ declare(strict_types=1); +require_once 'vendor/autoload.php'; + +const ENVIRONMENT_DEVELOPMENT = 'development'; +const ENVIRONMENT_PRODUCTION = 'production'; + // phpcs:disable PSR1.Files.SideEffects.FoundWithSymbols function copyFile(array $file): void { + if (! in_array(getEnvironment(), $file['environment'])) { + echo "Skipping the copy of {$file['source']} due to environment settings." . PHP_EOL; + return; + } + if (is_readable($file['destination'])) { - echo "File {$file['destination']} already exists." . PHP_EOL; + echo "File {$file['destination']} already exists. Skipping..." . PHP_EOL; + return; + } + + if (! copy($file['source'], $file['destination'])) { + echo "Cannot copy {$file['source']} file to {$file['destination']}" . PHP_EOL; } else { - if (! copy($file['source'], $file['destination'])) { - echo "Cannot copy {$file['source']} file to {$file['destination']}" . PHP_EOL; - } else { - echo "File {$file['source']} copied successfully to {$file['destination']}." . PHP_EOL; - } + echo "File {$file['source']} copied successfully to {$file['destination']}." . PHP_EOL; } } +function getEnvironment(): string +{ + return getenv('COMPOSER_DEV_MODE') === '1' ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION; +} + +// when adding files to the below array the `source` and `destination` paths must be relative to the project root folder +// the `environment` key will indicate on what environments the file will be copied, $files = [ [ 'source' => 'config/autoload/local.php.dist', 'destination' => 'config/autoload/local.php', + 'environment' => [ENVIRONMENT_DEVELOPMENT, ENVIRONMENT_PRODUCTION], ], [ 'source' => 'config/autoload/local.test.php.dist', 'destination' => 'config/autoload/local.test.php', + 'environment' => [ENVIRONMENT_DEVELOPMENT], ], [ 'source' => 'vendor/dotkernel/dot-mail/config/mail.global.php.dist', 'destination' => 'config/autoload/mail.global.php', + 'environment' => [ENVIRONMENT_DEVELOPMENT, ENVIRONMENT_PRODUCTION], ], ]; +echo "Using environment setting: " . getEnvironment() . PHP_EOL; + array_walk($files, 'copyFile'); diff --git a/composer.json b/composer.json index c39543af..6a10c612 100644 --- a/composer.json +++ b/composer.json @@ -72,7 +72,8 @@ "psr-4": { "Admin\\App\\": "src/App/src/", "Admin\\Admin\\": "src/Admin/src/", - "Admin\\Setting\\": "src/Setting/src/" + "Admin\\Setting\\": "src/Setting/src/", + "Admin\\Fixtures\\": "data/doctrine/fixtures" } }, "autoload-dev": { diff --git a/config/autoload/authentication.global.php b/config/autoload/authentication.global.php index bd0d546b..f8f71cf0 100644 --- a/config/autoload/authentication.global.php +++ b/config/autoload/authentication.global.php @@ -8,7 +8,7 @@ 'doctrine' => [ 'authentication' => [ 'orm_default' => [ - 'object_manager' => 'doctrine.entitymanager.orm_default', + 'object_manager' => 'doctrine.entity_manager.orm_default', 'identity_class' => Admin::class, 'identity_property' => 'identity', 'credential_property' => 'password', diff --git a/config/autoload/doctrine.global.php b/config/autoload/doctrine.global.php index 3b89f8bd..82eb7f08 100644 --- a/config/autoload/doctrine.global.php +++ b/config/autoload/doctrine.global.php @@ -2,6 +2,9 @@ declare(strict_types=1); +use Admin\Admin\DBAL\Types\AdminStatusEnumType; +use Admin\App\DBAL\Types\SuccessFailureEnumType; +use Admin\App\DBAL\Types\YesNoEnumType; use Admin\App\Resolver\EntityListenerResolver; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; use Dot\Cache\Adapter\ArrayAdapter; @@ -11,7 +14,17 @@ use Ramsey\Uuid\Doctrine\UuidType; return [ - 'doctrine' => [ + 'doctrine' => [ + 'cache' => [ + 'array' => [ + 'class' => ArrayAdapter::class, + ], + 'filesystem' => [ + 'class' => FilesystemAdapter::class, + 'directory' => getcwd() . '/data/cache', + 'namespace' => 'doctrine', + ], + ], 'configuration' => [ 'orm_default' => [ 'entity_listener_resolver' => EntityListenerResolver::class, @@ -49,17 +62,11 @@ UuidType::NAME => UuidType::class, UuidBinaryType::NAME => UuidBinaryType::class, UuidBinaryOrderedTimeType::NAME => UuidBinaryOrderedTimeType::class, - ], - 'cache' => [ - 'array' => [ - 'class' => ArrayAdapter::class, - ], - 'filesystem' => [ - 'class' => FilesystemAdapter::class, - 'directory' => getcwd() . '/data/cache', - 'namespace' => 'doctrine', - ], + AdminStatusEnumType::NAME => AdminStatusEnumType::class, + SuccessFailureEnumType::NAME => SuccessFailureEnumType::class, + YesNoEnumType::NAME => YesNoEnumType::class, ], 'fixtures' => getcwd() . '/data/doctrine/fixtures', ], + 'resultCacheLifetime' => 600, ]; diff --git a/config/cli-config.php b/config/cli-config.php index c39570bd..7385bed1 100644 --- a/config/cli-config.php +++ b/config/cli-config.php @@ -13,7 +13,4 @@ $entityManager = $container->get(EntityManager::class); -// register enum type for doctrine -$entityManager->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); - return DependencyFactory::fromEntityManager($config, new ExistingEntityManager($entityManager)); diff --git a/data/doctrine/fixtures/AdminLoader.php b/data/doctrine/fixtures/AdminLoader.php index 8dd78b91..bbf3e79b 100644 --- a/data/doctrine/fixtures/AdminLoader.php +++ b/data/doctrine/fixtures/AdminLoader.php @@ -10,6 +10,7 @@ use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Persistence\ObjectManager; +use function assert; use function password_hash; use const PASSWORD_DEFAULT; @@ -18,14 +19,15 @@ class AdminLoader implements FixtureInterface, DependentFixtureInterface { public function load(ObjectManager $manager): void { + $role = $manager->getRepository(AdminRole::class)->findOneBy(['name' => AdminRole::ROLE_SUPERUSER]); + assert($role instanceof AdminRole); + $admin = (new Admin()) ->setIdentity('admin') ->setPassword(password_hash('dotadmin', PASSWORD_DEFAULT)) ->setFirstName('DotKernel') ->setLastName('Admin') - ->addRole( - $manager->getRepository(AdminRole::class)->findOneBy(['name' => AdminRole::ROLE_SUPERUSER]) - ); + ->addRole($role); $manager->persist($admin); $manager->flush(); diff --git a/data/doctrine/migrations/Version20240627134952.php b/data/doctrine/migrations/Version20241120150458.php similarity index 56% rename from data/doctrine/migrations/Version20240627134952.php rename to data/doctrine/migrations/Version20241120150458.php index 243eed9d..c00cd8f2 100644 --- a/data/doctrine/migrations/Version20240627134952.php +++ b/data/doctrine/migrations/Version20241120150458.php @@ -10,7 +10,7 @@ /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20240627134952 extends AbstractMigration +final class Version20241120150458 extends AbstractMigration { public function getDescription(): string { @@ -20,11 +20,11 @@ public function getDescription(): string public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE TABLE admin (uuid BINARY(16) NOT NULL, identity VARCHAR(100) NOT NULL, firstName VARCHAR(255) DEFAULT NULL, lastName VARCHAR(255) DEFAULT NULL, password VARCHAR(100) NOT NULL, status ENUM(\'pending\', \'active\'), created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_880E0D766A95E9C4 (identity), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); + $this->addSql('CREATE TABLE admin (identity VARCHAR(100) NOT NULL, firstName VARCHAR(255) DEFAULT NULL, lastName VARCHAR(255) DEFAULT NULL, password VARCHAR(100) NOT NULL, status ENUM(\'active\', \'inactive\') DEFAULT \'active\' NOT NULL, uuid BINARY(16) NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_880E0D766A95E9C4 (identity), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); $this->addSql('CREATE TABLE admin_roles (userUuid BINARY(16) NOT NULL, roleUuid BINARY(16) NOT NULL, INDEX IDX_1614D53DD73087E9 (userUuid), INDEX IDX_1614D53D88446210 (roleUuid), PRIMARY KEY(userUuid, roleUuid)) DEFAULT CHARACTER SET utf8mb4'); - $this->addSql('CREATE TABLE admin_login (uuid BINARY(16) NOT NULL, adminIp VARCHAR(50) DEFAULT NULL, country VARCHAR(50) DEFAULT NULL, continent VARCHAR(50) DEFAULT NULL, organization VARCHAR(50) DEFAULT NULL, deviceType VARCHAR(20) DEFAULT NULL, deviceBrand VARCHAR(20) DEFAULT NULL, deviceModel VARCHAR(40) DEFAULT NULL, isMobile ENUM(\'yes\', \'no\'), osName VARCHAR(20) DEFAULT NULL, osVersion VARCHAR(20) DEFAULT NULL, osPlatform VARCHAR(20) DEFAULT NULL, clientType VARCHAR(20) DEFAULT NULL, clientName VARCHAR(40) DEFAULT NULL, clientEngine VARCHAR(20) DEFAULT NULL, clientVersion VARCHAR(20) DEFAULT NULL, loginStatus ENUM(\'success\', \'fail\'), identity VARCHAR(100) DEFAULT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); - $this->addSql('CREATE TABLE admin_role (uuid BINARY(16) NOT NULL, name VARCHAR(30) NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_7770088A5E237E06 (name), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); - $this->addSql('CREATE TABLE settings (uuid BINARY(16) NOT NULL, identifier VARCHAR(50) NOT NULL, value LONGTEXT NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, admin_uuid BINARY(16) DEFAULT NULL, INDEX IDX_E545A0C5F166D246 (admin_uuid), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); + $this->addSql('CREATE TABLE admin_login (adminIp VARCHAR(50) DEFAULT NULL, country VARCHAR(50) DEFAULT NULL, continent VARCHAR(50) DEFAULT NULL, organization VARCHAR(50) DEFAULT NULL, deviceType VARCHAR(20) DEFAULT NULL, deviceBrand VARCHAR(20) DEFAULT NULL, deviceModel VARCHAR(40) DEFAULT NULL, isMobile ENUM(\'yes\', \'no\') NOT NULL, osName VARCHAR(20) DEFAULT NULL, osVersion VARCHAR(20) DEFAULT NULL, osPlatform VARCHAR(20) DEFAULT NULL, clientType VARCHAR(20) DEFAULT NULL, clientName VARCHAR(40) DEFAULT NULL, clientEngine VARCHAR(20) DEFAULT NULL, clientVersion VARCHAR(20) DEFAULT NULL, loginStatus ENUM(\'success\', \'failure\') NOT NULL, identity VARCHAR(100) DEFAULT NULL, uuid BINARY(16) NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); + $this->addSql('CREATE TABLE admin_role (name VARCHAR(30) NOT NULL, uuid BINARY(16) NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_7770088A5E237E06 (name), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); + $this->addSql('CREATE TABLE settings (identifier VARCHAR(50) NOT NULL, value LONGTEXT NOT NULL, uuid BINARY(16) NOT NULL, created DATETIME NOT NULL, updated DATETIME DEFAULT NULL, admin_uuid BINARY(16) DEFAULT NULL, INDEX IDX_E545A0C5F166D246 (admin_uuid), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4'); $this->addSql('ALTER TABLE admin_roles ADD CONSTRAINT FK_1614D53DD73087E9 FOREIGN KEY (userUuid) REFERENCES admin (uuid)'); $this->addSql('ALTER TABLE admin_roles ADD CONSTRAINT FK_1614D53D88446210 FOREIGN KEY (roleUuid) REFERENCES admin_role (uuid)'); $this->addSql('ALTER TABLE settings ADD CONSTRAINT FK_E545A0C5F166D246 FOREIGN KEY (admin_uuid) REFERENCES admin (uuid)'); diff --git a/public/css/app.css b/public/css/app.css index 578672ec..5aad06d2 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -6,7 +6,7 @@ /** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * - * @version v1.23.5 + * @version v1.24.1 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/public/js/app.js b/public/js/app.js index 4fa998bf..8203acd2 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,9 +1,17 @@ -(()=>{var t={395:()=>{$(document).ready((function(){$('[data-toggle="tooltip"]').tooltip(),$(".current-route").closest(".nav-group").addClass("open")}))},625:(t,e)=>{e.E=async function(t,e,n,i={}){const r=await fetch(e,{method:t,headers:i,body:n});if(n=await r.json(),!r.ok)throw new Error(`Request failed with status: ${r.status}`,{cause:n.message});return n}},2:(t,e,n)=>{var i,r,o; +(()=>{var t={2:(t,e,n)=>{var i,r,o; /*! * Datepicker for Bootstrap v1.10.0 (https://github.com/uxsolutions/bootstrap-datepicker) * * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0) - */r=[n(556)],void 0===(o="function"==typeof(i=function(t,e){function n(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function r(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(n,i){return function(){return i!==e&&t.fn.datepicker.deprecated(i),this[n].apply(this,arguments)}}function s(t){return t&&!isNaN(t.getTime())}function a(e,n){function i(t,e){return e.toLowerCase()}var r=t(e).data(),o={},s=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),r)n.test(a)&&(o[a.replace(s,i)]=r[a]);return o}function l(e){var n={};if(m[e]||(e=e.split("-")[0],m[e])){var i=m[e];return t.each(g,(function(t,e){e in i&&(n[e]=i[e])})),n}}var c=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;n]/g)||[]).length<=0||t(n).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var r=this.o=t.extend({},this._o),o=r.language;m[o]||(o=o.split("-")[0],m[o]||(o=p.language)),r.language=o,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var s=v.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=v.parseDate(r.startDate,s,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=v.parseDate(r.endDate,s,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],Array.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=t.map(r.datesDisabled,(function(t){return v.parseDate(t,s,r.language,r.assumeNearbyYear)}));var a=String(r.orientation).toLowerCase().split(/\s+/g),l=r.orientation.toLowerCase();if(a=t.grep(a,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),r.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":r.orientation.y=a[0];break;case"left":case"right":r.orientation.x=a[0]}else l=t.grep(a,(function(t){return/^left|right$/.test(t)})),r.orientation.x=l[0]||"auto",l=t.grep(a,(function(t){return/^top|bottom$/.test(t)})),r.orientation.y=l[0]||"auto";if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=v.parseDate(r.defaultViewDate,s,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var c=r.defaultViewDate.year||(new Date).getFullYear(),h=r.defaultViewDate.month||0,u=r.defaultViewDate.day||1;r.defaultViewDate=n(c,h,u)}else r.defaultViewDate=i()},_applyEvents:function(t){for(var n,i,r,o=0;or?(this.picker.addClass("datepicker-orient-right"),d+=u-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var p=this.o.orientation.y;if("auto"===p&&(p=-o+f-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+p),"top"===p?f-=n+parseInt(this.picker.css("padding-top")):f+=h,this.o.rtl){var g=r-(d+u);this.picker.css({top:f,right:g,zIndex:l})}else this.picker.css({top:f,left:d,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],i=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)}),this)),i=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=t.map(n,t.proxy((function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=t.grep(n,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),i?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');e";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var n=[],o=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=i();return e.getUTCFullYear()o||e.getUTCFullYear()===o&&e.getUTCMonth()>s)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&r(e,a)&&n.push("today"),-1!==this.dates.contains(e)&&n.push("active"),this.dateWithinRange(e)||n.push("disabled"),this.dateIsDisabled(e)&&n.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(e>this.range[0]&&ea)&&c.push("disabled"),y===v&&c.push("focused"),l!==t.noop&&((u=l(new Date(y,0,1)))===e?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&c.push("disabled"),u.classes&&(c=c.concat(u.classes.split(/\s+/))),u.tooltip&&(h=u.tooltip)),d+='"+y+"";p.find(".datepicker-switch").text(g+"-"+m),p.find("td").html(d)},fill:function(){var r,o,s=new Date(this.viewDate),a=s.getUTCFullYear(),l=s.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=i(),y=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(s,g,this.o.language)),this.picker.find("tfoot .today").text(f).css("display",y?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var _=n(a,l,0),x=_.getUTCDate();_.setUTCDate(x-(_.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(_);_.getUTCFullYear()<100&&w.setUTCFullYear(_.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var S,C,k=[];_.valueOf()"),this.o.calendarWeeks)){var E=new Date(+_+(this.o.weekStart-S-7)%7*864e5),A=new Date(Number(E)+(11-E.getUTCDay())%7*864e5),D=new Date(Number(D=n(A.getUTCFullYear(),0,1))+(11-D.getUTCDay())%7*864e5),T=(A-D)/864e5/7+1;k.push(''+T+"")}(C=this.getClassNames(_)).push("day");var M=_.getUTCDate();this.o.beforeShowDay!==t.noop&&((o=this.o.beforeShowDay(this._utc_to_local(_)))===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&C.push("disabled"),o.classes&&(C=C.concat(o.classes.split(/\s+/))),o.tooltip&&(r=o.tooltip),o.content&&(M=o.content)),C="function"==typeof t.uniqueSort?t.uniqueSort(C):t.unique(C),k.push(''+M+""),r=null,S===this.o.weekEnd&&k.push(""),_.setUTCDate(_.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(k.join(""));var R=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?R:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===a&&O.eq(e.getUTCMonth()).addClass("active")})),(au)&&O.addClass("disabled"),a===c&&O.slice(0,h).addClass("disabled"),a===u&&O.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var I=this;t.each(O,(function(n,i){var r=new Date(a,n,1),o=I.o.beforeShowMonth(r);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(i).hasClass("disabled")||t(i).addClass("disabled"),o.classes&&t(i).addClass(o.classes),o.tooltip&&t(i).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,a,c,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<=o,e=Math.floor(i/c)*c+c>a;break;case 0:t=i<=o&&r<=s,e=i>=a&&r>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var r,o,s,a;e.preventDefault(),e.stopPropagation(),(r=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=r.parent().find("span").index(r),s=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,s=Number(r.text()),this.viewDate.setUTCFullYear(s)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(s,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var n=t(e.currentTarget).data("date"),i=new Date(n);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(i)},navArrowsClick:function(e){var n=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!s(t))return this.o.defaultViewDate;if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)i=-1===e?function(){return r.getUTCMonth()===a}:function(){return r.getUTCMonth()!==n},n=a+e,r.setUTCMonth(n),n=(n+12)%12;else{for(var c=0;c0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(e,n){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(n.inputs,(function(t){return t.jquery?t[0]:t})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,f.call(t(this.inputs),n).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,n){n.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var i=t.data(n.target,"datepicker");if(i!==e){var r=i.getUTCDate(),o=this.keepEmptyValues,s=t.inArray(n.target,this.inputs),a=s-1,l=s+1,c=this.inputs.length;if(-1!==s){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==i&&o||e.setUTCDate(r)})),r=0&&r0;)this.pickers[a--].setUTCDate(r);else if(r>this.dates[l])for(;lthis.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,f=function(n){var i,r=Array.apply(null,arguments);if(r.shift(),this.each((function(){var e=t(this),o=e.data("datepicker"),s="object"==typeof n&&n;if(!o){var c=a(this,"date"),d=l(t.extend({},p,c,s).language),f=t.extend({},p,d,c,s);e.hasClass("input-daterange")||f.inputs?(t.extend(f,{inputs:f.inputs||e.find("input").toArray()}),o=new u(this,f)):o=new h(this,f),e.data("datepicker",o)}"string"==typeof n&&"function"==typeof o[n]&&(i=o[n].apply(o,r))})),i===e||i instanceof h||i instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return i};t.fn.datepicker=f;var p=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=h;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,r,o,s){function a(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function l(){var t=this.slice(0,c[f].length),e=c[f].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!n)return e;if(n instanceof Date)return n;if("string"==typeof r&&(r=v.parseFormat(r)),r.toValue)return r.toValue(n,r,o);var c,u,d,f,p,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},b={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in b&&(n=b[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(c=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,f=0;f'+p.templates.leftArrow+''+p.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
'+v.headTemplate+""+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+"
",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.10.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),f.call(n,"show"))})),t((function(){f.call(t('[data-provide="datepicker-inline"]'))}))})?i.apply(e,r):i)||(t.exports=o)},86:(t,e,n)=>{var i,r;!function(o,s){"use strict";void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n]/g)||[]).length<=0||t(n).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var r=this.o=t.extend({},this._o),o=r.language;m[o]||(o=o.split("-")[0],m[o]||(o=p.language)),r.language=o,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var s=v.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=v.parseDate(r.startDate,s,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=v.parseDate(r.endDate,s,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],Array.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=t.map(r.datesDisabled,(function(t){return v.parseDate(t,s,r.language,r.assumeNearbyYear)}));var a=String(r.orientation).toLowerCase().split(/\s+/g),l=r.orientation.toLowerCase();if(a=t.grep(a,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),r.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":r.orientation.y=a[0];break;case"left":case"right":r.orientation.x=a[0]}else l=t.grep(a,(function(t){return/^left|right$/.test(t)})),r.orientation.x=l[0]||"auto",l=t.grep(a,(function(t){return/^top|bottom$/.test(t)})),r.orientation.y=l[0]||"auto";if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=v.parseDate(r.defaultViewDate,s,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var c=r.defaultViewDate.year||(new Date).getFullYear(),u=r.defaultViewDate.month||0,h=r.defaultViewDate.day||1;r.defaultViewDate=n(c,u,h)}else r.defaultViewDate=i()},_applyEvents:function(t){for(var n,i,r,o=0;or?(this.picker.addClass("datepicker-orient-right"),d+=h-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var p=this.o.orientation.y;if("auto"===p&&(p=-o+f-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+p),"top"===p?f-=n+parseInt(this.picker.css("padding-top")):f+=u,this.o.rtl){var g=r-(d+h);this.picker.css({top:f,right:g,zIndex:l})}else this.picker.css({top:f,left:d,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],i=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)}),this)),i=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=t.map(n,t.proxy((function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=t.grep(n,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),i?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');e";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var n=[],o=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=i();return e.getUTCFullYear()o||e.getUTCFullYear()===o&&e.getUTCMonth()>s)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&r(e,a)&&n.push("today"),-1!==this.dates.contains(e)&&n.push("active"),this.dateWithinRange(e)||n.push("disabled"),this.dateIsDisabled(e)&&n.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(e>this.range[0]&&ea)&&c.push("disabled"),y===v&&c.push("focused"),l!==t.noop&&((h=l(new Date(y,0,1)))===e?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(u=h.tooltip)),d+='"+y+"";p.find(".datepicker-switch").text(g+"-"+m),p.find("td").html(d)},fill:function(){var r,o,s=new Date(this.viewDate),a=s.getUTCFullYear(),l=s.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=i(),y=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(s,g,this.o.language)),this.picker.find("tfoot .today").text(f).css("display",y?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var _=n(a,l,0),x=_.getUTCDate();_.setUTCDate(x-(_.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(_);_.getUTCFullYear()<100&&w.setUTCFullYear(_.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var S,C,E=[];_.valueOf()"),this.o.calendarWeeks)){var k=new Date(+_+(this.o.weekStart-S-7)%7*864e5),A=new Date(Number(k)+(11-k.getUTCDay())%7*864e5),D=new Date(Number(D=n(A.getUTCFullYear(),0,1))+(11-D.getUTCDay())%7*864e5),T=(A-D)/864e5/7+1;E.push(''+T+"")}(C=this.getClassNames(_)).push("day");var M=_.getUTCDate();this.o.beforeShowDay!==t.noop&&((o=this.o.beforeShowDay(this._utc_to_local(_)))===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&C.push("disabled"),o.classes&&(C=C.concat(o.classes.split(/\s+/))),o.tooltip&&(r=o.tooltip),o.content&&(M=o.content)),C="function"==typeof t.uniqueSort?t.uniqueSort(C):t.unique(C),E.push(''+M+""),r=null,S===this.o.weekEnd&&E.push(""),_.setUTCDate(_.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(E.join(""));var R=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?R:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===a&&O.eq(e.getUTCMonth()).addClass("active")})),(ah)&&O.addClass("disabled"),a===c&&O.slice(0,u).addClass("disabled"),a===h&&O.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var I=this;t.each(O,(function(n,i){var r=new Date(a,n,1),o=I.o.beforeShowMonth(r);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(i).hasClass("disabled")||t(i).addClass("disabled"),o.classes&&t(i).addClass(o.classes),o.tooltip&&t(i).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,a,c,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<=o,e=Math.floor(i/c)*c+c>a;break;case 0:t=i<=o&&r<=s,e=i>=a&&r>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var r,o,s,a;e.preventDefault(),e.stopPropagation(),(r=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=r.parent().find("span").index(r),s=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,s=Number(r.text()),this.viewDate.setUTCFullYear(s)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(s,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var n=t(e.currentTarget).data("date"),i=new Date(n);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(i)},navArrowsClick:function(e){var n=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!s(t))return this.o.defaultViewDate;if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)i=-1===e?function(){return r.getUTCMonth()===a}:function(){return r.getUTCMonth()!==n},n=a+e,r.setUTCMonth(n),n=(n+12)%12;else{for(var c=0;c0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var h=function(e,n){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(n.inputs,(function(t){return t.jquery?t[0]:t})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,f.call(t(this.inputs),n).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};h.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,n){n.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var i=t.data(n.target,"datepicker");if(i!==e){var r=i.getUTCDate(),o=this.keepEmptyValues,s=t.inArray(n.target,this.inputs),a=s-1,l=s+1,c=this.inputs.length;if(-1!==s){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==i&&o||e.setUTCDate(r)})),r=0&&r0;)this.pickers[a--].setUTCDate(r);else if(r>this.dates[l])for(;lthis.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,f=function(n){var i,r=Array.apply(null,arguments);if(r.shift(),this.each((function(){var e=t(this),o=e.data("datepicker"),s="object"==typeof n&&n;if(!o){var c=a(this,"date"),d=l(t.extend({},p,c,s).language),f=t.extend({},p,d,c,s);e.hasClass("input-daterange")||f.inputs?(t.extend(f,{inputs:f.inputs||e.find("input").toArray()}),o=new h(this,f)):o=new u(this,f),e.data("datepicker",o)}"string"==typeof n&&"function"==typeof o[n]&&(i=o[n].apply(o,r))})),i===e||i instanceof u||i instanceof h)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return i};t.fn.datepicker=f;var p=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=u;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,r,o,s){function a(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function l(){var t=this.slice(0,c[f].length),e=c[f].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!n)return e;if(n instanceof Date)return n;if("string"==typeof r&&(r=v.parseFormat(r)),r.toValue)return r.toValue(n,r,o);var c,h,d,f,p,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},b={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in b&&(n=b[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(c=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,f=0;f'+p.templates.leftArrow+''+p.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
'+v.headTemplate+""+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+"
",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.10.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),f.call(n,"show"))})),t((function(){f.call(t('[data-provide="datepicker-inline"]'))}))})?i.apply(e,r):i)||(t.exports=o)},86:(t,e,n)=>{var i,r;!function(o,s){"use strict";void 0===(r="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=r)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],n=0;n + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */t=n.nmd(t),function(){var r,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,h=128,d=256,f=1/0,p=9007199254740991,g=NaN,m=4294967295,v=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",d]],b="[object Arguments]",y="[object Array]",_="[object Boolean]",x="[object Date]",w="[object Error]",S="[object Function]",C="[object GeneratorFunction]",E="[object Map]",k="[object Number]",A="[object Object]",D="[object Promise]",T="[object RegExp]",M="[object Set]",R="[object String]",O="[object Symbol]",I="[object WeakMap]",P="[object ArrayBuffer]",N="[object DataView]",L="[object Float32Array]",j="[object Float64Array]",H="[object Int8Array]",F="[object Int16Array]",B="[object Int32Array]",W="[object Uint8Array]",z="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",$=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,Q=RegExp(G.source),Z=RegExp(X.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(rt.source),st=/^\s+/,at=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gt=/\w*$/,mt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,_t=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Ct="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Dt="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="['’]",Ot="["+Ct+"]",It="["+Mt+"]",Pt="["+Et+"]",Nt="\\d+",Lt="["+kt+"]",jt="["+At+"]",Ht="[^"+Ct+Mt+Nt+kt+At+Dt+"]",Ft="\\ud83c[\\udffb-\\udfff]",Bt="[^"+Ct+"]",Wt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Vt="["+Dt+"]",Ut="\\u200d",$t="(?:"+jt+"|"+Ht+")",qt="(?:"+Vt+"|"+Ht+")",Yt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+Pt+"|"+Ft+")"+"?",Qt="["+Tt+"]?",Zt=Qt+Xt+("(?:"+Ut+"(?:"+[Bt,Wt,zt].join("|")+")"+Qt+Xt+")*"),Kt="(?:"+[Lt,Wt,zt].join("|")+")"+Zt,Jt="(?:"+[Bt+Pt+"?",Pt,Wt,zt,Ot].join("|")+")",te=RegExp(Rt,"g"),ee=RegExp(Pt,"g"),ne=RegExp(Ft+"(?="+Ft+")|"+Jt+Zt,"g"),ie=RegExp([Vt+"?"+jt+"+"+Yt+"(?="+[It,Vt,"$"].join("|")+")",qt+"+"+Gt+"(?="+[It,Vt+$t,"$"].join("|")+")",Vt+"?"+$t+"+"+Yt,Vt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nt,Kt].join("|"),"g"),re=RegExp("["+Ut+Ct+Et+Tt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ae=-1,le={};le[L]=le[j]=le[H]=le[F]=le[B]=le[W]=le[z]=le[V]=le[U]=!0,le[b]=le[y]=le[P]=le[_]=le[N]=le[x]=le[w]=le[S]=le[E]=le[k]=le[A]=le[T]=le[M]=le[R]=le[I]=!1;var ce={};ce[b]=ce[y]=ce[P]=ce[N]=ce[_]=ce[x]=ce[L]=ce[j]=ce[H]=ce[F]=ce[B]=ce[E]=ce[k]=ce[A]=ce[T]=ce[M]=ce[R]=ce[O]=ce[W]=ce[z]=ce[V]=ce[U]=!0,ce[w]=ce[S]=ce[I]=!1;var ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},he=parseFloat,de=parseInt,fe="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ge=fe||pe||Function("return this")(),me=e&&!e.nodeType&&e,ve=me&&t&&!t.nodeType&&t,be=ve&&ve.exports===me,ye=be&&fe.process,_e=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),xe=_e&&_e.isArrayBuffer,we=_e&&_e.isDate,Se=_e&&_e.isMap,Ce=_e&&_e.isRegExp,Ee=_e&&_e.isSet,ke=_e&&_e.isTypedArray;function Ae(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function De(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r-1}function Pe(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function rn(t,e){for(var n=t.length;n--&&Ve(e,t[n],0)>-1;);return n}var on=Ge({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=Ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+ue[t]}function ln(t){return re.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function un(t,e){return function(n){return t(e(n))}}function hn(t,e){for(var n=-1,i=t.length,r=0,o=[];++n",""":'"',"'":"'"});var bn=function t(e){var n,i=(e=null==e?ge:bn.defaults(ge.Object(),e,bn.pick(ge,se))).Array,at=e.Date,Ct=e.Error,Et=e.Function,kt=e.Math,At=e.Object,Dt=e.RegExp,Tt=e.String,Mt=e.TypeError,Rt=i.prototype,Ot=Et.prototype,It=At.prototype,Pt=e["__core-js_shared__"],Nt=Ot.toString,Lt=It.hasOwnProperty,jt=0,Ht=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ft=It.toString,Bt=Nt.call(At),Wt=ge._,zt=Dt("^"+Nt.call(Lt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=be?e.Buffer:r,Ut=e.Symbol,$t=e.Uint8Array,qt=Vt?Vt.allocUnsafe:r,Yt=un(At.getPrototypeOf,At),Gt=At.create,Xt=It.propertyIsEnumerable,Qt=Rt.splice,Zt=Ut?Ut.isConcatSpreadable:r,Kt=Ut?Ut.iterator:r,Jt=Ut?Ut.toStringTag:r,ne=function(){try{var t=fo(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),re=e.clearTimeout!==ge.clearTimeout&&e.clearTimeout,ue=at&&at.now!==ge.Date.now&&at.now,fe=e.setTimeout!==ge.setTimeout&&e.setTimeout,pe=kt.ceil,me=kt.floor,ve=At.getOwnPropertySymbols,ye=Vt?Vt.isBuffer:r,_e=e.isFinite,Be=Rt.join,Ge=un(At.keys,At),yn=kt.max,_n=kt.min,xn=at.now,wn=e.parseInt,Sn=kt.random,Cn=Rt.reverse,En=fo(e,"DataView"),kn=fo(e,"Map"),An=fo(e,"Promise"),Dn=fo(e,"Set"),Tn=fo(e,"WeakMap"),Mn=fo(At,"create"),Rn=Tn&&new Tn,On={},In=Fo(En),Pn=Fo(kn),Nn=Fo(An),Ln=Fo(Dn),jn=Fo(Tn),Hn=Ut?Ut.prototype:r,Fn=Hn?Hn.valueOf:r,Bn=Hn?Hn.toString:r;function Wn(t){if(na(t)&&!$s(t)&&!(t instanceof $n)){if(t instanceof Un)return t;if(Lt.call(t,"__wrapped__"))return Bo(t)}return new Un(t)}var zn=function(){function t(){}return function(e){if(!ea(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Vn(){}function Un(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ci(t,e,n,i,o,s){var a,l=1&e,c=2&e,u=4&e;if(n&&(a=o?n(t,i,o,s):n(t)),a!==r)return a;if(!ea(t))return t;var h=$s(t);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Mr(t,a)}else{var d=mo(t),f=d==S||d==C;if(Xs(t))return Cr(t,l);if(d==A||d==b||f&&!o){if(a=c||f?{}:bo(t),!l)return c?function(t,e){return Rr(t,go(t),e)}(t,function(t,e){return t&&Rr(e,Ia(e),t)}(a,t)):function(t,e){return Rr(t,po(t),e)}(t,oi(a,t))}else{if(!ce[d])return o?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case P:return Er(t);case _:case x:return new i(+t);case N:return function(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case L:case j:case H:case F:case B:case W:case z:case V:case U:return kr(t,n);case E:return new i;case k:case R:return new i(t);case T:return function(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case M:return new i;case O:return r=t,Fn?At(Fn.call(r)):{}}var r}(t,d,l)}}s||(s=new Qn);var p=s.get(t);if(p)return p;s.set(t,a),aa(t)?t.forEach((function(i){a.add(ci(i,e,n,i,t,s))})):ia(t)&&t.forEach((function(i,r){a.set(r,ci(i,e,n,r,t,s))}));var g=h?r:(u?c?oo:ro:c?Ia:Oa)(t);return Te(g||t,(function(i,r){g&&(i=t[r=i]),ni(a,r,ci(i,e,n,r,t,s))})),a}function ui(t,e,n){var i=n.length;if(null==t)return!i;for(t=At(t);i--;){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a))return!1}return!0}function hi(t,e,n){if("function"!=typeof t)throw new Mt(o);return Oo((function(){t.apply(r,n)}),e)}function di(t,e,n,i){var r=-1,o=Ie,s=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=Ne(e,Je(n))),i?(o=Pe,s=!1):e.length>=200&&(o=en,s=!1,e=new Xn(e));t:for(;++r-1},Yn.prototype.set=function(t,e){var n=this.__data__,i=ii(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Yn),string:new qn}},Gn.prototype.delete=function(t){var e=uo(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return uo(this,t).get(t)},Gn.prototype.has=function(t){return uo(this,t).has(t)},Gn.prototype.set=function(t,e){var n=uo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,s),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Qn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Qn.prototype.get=function(t){return this.__data__.get(t)},Qn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var i=n.__data__;if(!kn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(i)}return n.set(t,e),this.size=n.size,this};var fi=Pr(xi),pi=Pr(wi,!0);function gi(t,e){var n=!0;return fi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function mi(t,e,n){for(var i=-1,o=t.length;++i0&&n(a)?e>1?bi(a,e-1,n,i,r):Le(r,a):i||(r[r.length]=a)}return r}var yi=Nr(),_i=Nr(!0);function xi(t,e){return t&&yi(t,e,Oa)}function wi(t,e){return t&&_i(t,e,Oa)}function Si(t,e){return Oe(e,(function(e){return Ks(t[e])}))}function Ci(t,e){for(var n=0,i=(e=_r(e,t)).length;null!=t&&ne}function Di(t,e){return null!=t&&Lt.call(t,e)}function Ti(t,e){return null!=t&&e in At(t)}function Mi(t,e,n){for(var o=n?Pe:Ie,s=t[0].length,a=t.length,l=a,c=i(a),u=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Ne(d,Je(e))),u=_n(d.length,u),c[l]=!n&&(e||s>=120&&d.length>=120)?new Xn(l&&d):r}d=t[0];var f=-1,p=c[0];t:for(;++f=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function qi(t,e,n){for(var i=-1,r=e.length,o={};++i-1;)a!==t&&Qt.call(a,l,1),Qt.call(t,l,1);return t}function Gi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;_o(r)?Qt.call(t,r,1):dr(t,r)}}return t}function Xi(t,e){return t+me(Sn()*(e-t+1))}function Qi(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Zi(t,e){return Io(Do(t,e,rl),t+"")}function Ki(t){return Kn(Wa(t))}function Ji(t,e){var n=Wa(t);return Lo(n,li(e,0,n.length))}function tr(t,e,n,i){if(!ea(t))return t;for(var o=-1,s=(e=_r(e,t)).length,a=s-1,l=t;null!=l&&++oo?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=i(o);++r>>1,s=t[o];null!==s&&!ca(s)&&(n?s<=e:s=200){var c=e?null:Qr(t);if(c)return dn(c);s=!1,r=en,l=new Xn}else l=e?[]:a;t:for(;++i=i?t:rr(t,e,n)}var Sr=re||function(t){return ge.clearTimeout(t)};function Cr(t,e){if(e)return t.slice();var n=t.length,i=qt?qt(n):new t.constructor(n);return t.copy(i),i}function Er(t){var e=new t.constructor(t.byteLength);return new $t(e).set(new $t(t)),e}function kr(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ar(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,s=ca(t),a=e!==r,l=null===e,c=e==e,u=ca(e);if(!l&&!u&&!s&&t>e||s&&a&&c&&!l&&!u||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!u&&t1?n[o-1]:r,a=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,a&&xo(n[0],n[1],a)&&(s=o<3?r:s,o=1),e=At(e);++i-1?o[s?e[a]:a]:r}}function Br(t){return io((function(e){var n=e.length,i=n,s=Un.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new Mt(o);if(s&&!l&&"wrapper"==ao(a))var l=new Un([],!0)}for(i=l?i:n;++i1&&_.reverse(),f&&ul))return!1;var u=s.get(t),h=s.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=2&n?new Xn:r;for(s.set(t,e),s.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Te(v,(function(n){var i="_."+n[0];e&n[1]&&!Ie(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ct);return e?e[1].split(ut):[]}(i),n)))}function No(t){var e=0,n=0;return function(){var i=xn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Lo(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ss(t,n)}));function fs(t){var e=Wn(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var gs=io((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ai(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $n&&_o(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:r}),new Un(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)}));var ms=Or((function(t,e,n){Lt.call(t,n)?++t[n]:si(t,n,1)}));var vs=Fr(Uo),bs=Fr($o);function ys(t,e){return($s(t)?Te:fi)(t,co(e,3))}function _s(t,e){return($s(t)?Me:pi)(t,co(e,3))}var xs=Or((function(t,e,n){Lt.call(t,n)?t[n].push(e):si(t,n,[e])}));var ws=Zi((function(t,e,n){var r=-1,o="function"==typeof e,s=Ys(t)?i(t.length):[];return fi(t,(function(t){s[++r]=o?Ae(e,t,n):Ri(t,e,n)})),s})),Ss=Or((function(t,e,n){si(t,n,e)}));function Cs(t,e){return($s(t)?Ne:Bi)(t,co(e,3))}var Es=Or((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ks=Zi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),$i(t,bi(e,1),[])})),As=ue||function(){return ge.Date.now()};function Ds(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Kr(t,h,r,r,r,r,e)}function Ts(t,e){var n;if("function"!=typeof e)throw new Mt(o);return t=ga(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Ms=Zi((function(t,e,n){var i=1;if(n.length){var r=hn(n,lo(Ms));i|=c}return Kr(t,i,e,n,r)})),Rs=Zi((function(t,e,n){var i=3;if(n.length){var r=hn(n,lo(Rs));i|=c}return Kr(e,i,t,n,r)}));function Os(t,e,n){var i,s,a,l,c,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Mt(o);function g(e){var n=i,o=s;return i=s=r,h=e,l=t.apply(o,n)}function m(t){var n=t-u;return u===r||n>=e||n<0||f&&t-h>=a}function v(){var t=As();if(m(t))return b(t);c=Oo(v,function(t){var n=e-(t-u);return f?_n(n,a-(t-h)):n}(t))}function b(t){return c=r,p&&i?g(t):(i=s=r,l)}function y(){var t=As(),n=m(t);if(i=arguments,s=this,u=t,n){if(c===r)return function(t){return h=t,c=Oo(v,e),d?g(t):l}(u);if(f)return Sr(c),c=Oo(v,e),g(u)}return c===r&&(c=Oo(v,e)),l}return e=va(e)||0,ea(n)&&(d=!!n.leading,a=(f="maxWait"in n)?yn(va(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){c!==r&&Sr(c),h=0,i=u=s=c=r},y.flush=function(){return c===r?l:b(As())},y}var Is=Zi((function(t,e){return hi(t,1,e)})),Ps=Zi((function(t,e,n){return hi(t,va(e)||0,n)}));function Ns(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Ns.Cache||Gn),n}function Ls(t){if("function"!=typeof t)throw new Mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ns.Cache=Gn;var js=xr((function(t,e){var n=(e=1==e.length&&$s(e[0])?Ne(e[0],Je(co())):Ne(bi(e,1),Je(co()))).length;return Zi((function(i){for(var r=-1,o=_n(i.length,n);++r=e})),Us=Oi(function(){return arguments}())?Oi:function(t){return na(t)&&Lt.call(t,"callee")&&!Xt.call(t,"callee")},$s=i.isArray,qs=xe?Je(xe):function(t){return na(t)&&ki(t)==P};function Ys(t){return null!=t&&ta(t.length)&&!Ks(t)}function Gs(t){return na(t)&&Ys(t)}var Xs=ye||vl,Qs=we?Je(we):function(t){return na(t)&&ki(t)==x};function Zs(t){if(!na(t))return!1;var e=ki(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!oa(t)}function Ks(t){if(!ea(t))return!1;var e=ki(t);return e==S||e==C||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==ga(t)}function ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function ea(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function na(t){return null!=t&&"object"==typeof t}var ia=Se?Je(Se):function(t){return na(t)&&mo(t)==E};function ra(t){return"number"==typeof t||na(t)&&ki(t)==k}function oa(t){if(!na(t)||ki(t)!=A)return!1;var e=Yt(t);if(null===e)return!0;var n=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Nt.call(n)==Bt}var sa=Ce?Je(Ce):function(t){return na(t)&&ki(t)==T};var aa=Ee?Je(Ee):function(t){return na(t)&&mo(t)==M};function la(t){return"string"==typeof t||!$s(t)&&na(t)&&ki(t)==R}function ca(t){return"symbol"==typeof t||na(t)&&ki(t)==O}var ua=ke?Je(ke):function(t){return na(t)&&ta(t.length)&&!!le[ki(t)]};var ha=Yr(Fi),da=Yr((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(Ys(t))return la(t)?gn(t):Mr(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=mo(t);return(e==E?cn:e==M?dn:Wa)(t)}function pa(t){return t?(t=va(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var e=pa(t),n=e%1;return e==e?n?e-n:e:0}function ma(t){return t?li(ga(t),0,m):0}function va(t){if("number"==typeof t)return t;if(ca(t))return g;if(ea(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ea(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var n=vt.test(t);return n||yt.test(t)?de(t.slice(2),n?2:8):mt.test(t)?g:+t}function ba(t){return Rr(t,Ia(t))}function ya(t){return null==t?"":ur(t)}var _a=Ir((function(t,e){if(Eo(e)||Ys(e))Rr(e,Oa(e),t);else for(var n in e)Lt.call(e,n)&&ni(t,n,e[n])})),xa=Ir((function(t,e){Rr(e,Ia(e),t)})),wa=Ir((function(t,e,n,i){Rr(e,Ia(e),t,i)})),Sa=Ir((function(t,e,n,i){Rr(e,Oa(e),t,i)})),Ca=io(ai);var Ea=Zi((function(t,e){t=At(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&xo(e[0],e[1],o)&&(i=1);++n1),e})),Rr(t,oo(t),n),i&&(n=ci(n,7,eo));for(var r=e.length;r--;)dr(n,e[r]);return n}));var ja=io((function(t,e){return null==t?{}:function(t,e){return qi(t,e,(function(e,n){return Da(t,n)}))}(t,e)}));function Ha(t,e){if(null==t)return{};var n=Ne(oo(t),(function(t){return[t]}));return e=co(e),qi(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Zr(Oa),Ba=Zr(Ia);function Wa(t){return null==t?[]:tn(t,Oa(t))}var za=jr((function(t,e,n){return e=e.toLowerCase(),t+(n?Va(e):e)}));function Va(t){return Za(ya(t).toLowerCase())}function Ua(t){return(t=ya(t))&&t.replace(xt,on).replace(ee,"")}var $a=jr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qa=jr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ya=Lr("toLowerCase");var Ga=jr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xa=jr((function(t,e,n){return t+(n?" ":"")+Za(e)}));var Qa=jr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Lr("toUpperCase");function Ka(t,e,n){return t=ya(t),(e=n?r:e)===r?function(t){return oe.test(t)}(t)?function(t){return t.match(ie)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Ja=Zi((function(t,e){try{return Ae(t,r,e)}catch(t){return Zs(t)?t:new Ct(t)}})),tl=io((function(t,e){return Te(e,(function(e){e=Ho(e),si(t,e,Ms(t[e],t))})),t}));function el(t){return function(){return t}}var nl=Br(),il=Br(!0);function rl(t){return t}function ol(t){return Li("function"==typeof t?t:ci(t,1))}var sl=Zi((function(t,e){return function(n){return Ri(n,t,e)}})),al=Zi((function(t,e){return function(n){return Ri(t,n,e)}}));function ll(t,e,n){var i=Oa(e),r=Si(e,i);null!=n||ea(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Si(e,Oa(e)));var o=!(ea(n)&&"chain"in n&&!n.chain),s=Ks(t);return Te(r,(function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Mr(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Le([this.value()],arguments))})})),t}function cl(){}var ul=Ur(Ne),hl=Ur(Re),dl=Ur(Fe);function fl(t){return wo(t)?Ye(Ho(t)):function(t){return function(e){return Ci(e,t)}}(t)}var pl=qr(),gl=qr(!0);function ml(){return[]}function vl(){return!1}var bl=Vr((function(t,e){return t+e}),0),yl=Xr("ceil"),_l=Vr((function(t,e){return t/e}),1),xl=Xr("floor");var wl,Sl=Vr((function(t,e){return t*e}),1),Cl=Xr("round"),El=Vr((function(t,e){return t-e}),0);return Wn.after=function(t,e){if("function"!=typeof e)throw new Mt(o);return t=ga(t),function(){if(--t<1)return e.apply(this,arguments)}},Wn.ary=Ds,Wn.assign=_a,Wn.assignIn=xa,Wn.assignInWith=wa,Wn.assignWith=Sa,Wn.at=Ca,Wn.before=Ts,Wn.bind=Ms,Wn.bindAll=tl,Wn.bindKey=Rs,Wn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $s(t)?t:[t]},Wn.chain=fs,Wn.chunk=function(t,e,n){e=(n?xo(t,e,n):e===r)?1:yn(ga(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=i(pe(o/e));so?0:o+n),(i=i===r||i>o?o:ga(i))<0&&(i+=o),i=n>i?0:ma(i);n>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!sa(e))&&!(e=ur(e))&&ln(t)?wr(gn(t),0,n):t.split(e,n):[]},Wn.spread=function(t,e){if("function"!=typeof t)throw new Mt(o);return e=null==e?0:yn(ga(e),0),Zi((function(n){var i=n[e],r=wr(n,0,e);return i&&Le(r,i),Ae(t,this,r)}))},Wn.tail=function(t){var e=null==t?0:t.length;return e?rr(t,1,e):[]},Wn.take=function(t,e,n){return t&&t.length?rr(t,0,(e=n||e===r?1:ga(e))<0?0:e):[]},Wn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?rr(t,(e=i-(e=n||e===r?1:ga(e)))<0?0:e,i):[]},Wn.takeRightWhile=function(t,e){return t&&t.length?pr(t,co(e,3),!1,!0):[]},Wn.takeWhile=function(t,e){return t&&t.length?pr(t,co(e,3)):[]},Wn.tap=function(t,e){return e(t),t},Wn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new Mt(o);return ea(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Os(t,e,{leading:i,maxWait:e,trailing:r})},Wn.thru=ps,Wn.toArray=fa,Wn.toPairs=Fa,Wn.toPairsIn=Ba,Wn.toPath=function(t){return $s(t)?Ne(t,Ho):ca(t)?[t]:Mr(jo(ya(t)))},Wn.toPlainObject=ba,Wn.transform=function(t,e,n){var i=$s(t),r=i||Xs(t)||ua(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:ea(t)&&Ks(o)?zn(Yt(t)):{}}return(r?Te:xi)(t,(function(t,i,r){return e(n,t,i,r)})),n},Wn.unary=function(t){return Ds(t,1)},Wn.union=ns,Wn.unionBy=is,Wn.unionWith=rs,Wn.uniq=function(t){return t&&t.length?hr(t):[]},Wn.uniqBy=function(t,e){return t&&t.length?hr(t,co(e,2)):[]},Wn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?hr(t,r,e):[]},Wn.unset=function(t,e){return null==t||dr(t,e)},Wn.unzip=os,Wn.unzipWith=ss,Wn.update=function(t,e,n){return null==t?t:fr(t,e,yr(n))},Wn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:fr(t,e,yr(n),i)},Wn.values=Wa,Wn.valuesIn=function(t){return null==t?[]:tn(t,Ia(t))},Wn.without=as,Wn.words=Ka,Wn.wrap=function(t,e){return Hs(yr(e),t)},Wn.xor=ls,Wn.xorBy=cs,Wn.xorWith=us,Wn.zip=hs,Wn.zipObject=function(t,e){return vr(t||[],e||[],ni)},Wn.zipObjectDeep=function(t,e){return vr(t||[],e||[],tr)},Wn.zipWith=ds,Wn.entries=Fa,Wn.entriesIn=Ba,Wn.extend=xa,Wn.extendWith=wa,ll(Wn,Wn),Wn.add=bl,Wn.attempt=Ja,Wn.camelCase=za,Wn.capitalize=Va,Wn.ceil=yl,Wn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=va(n))==n?n:0),e!==r&&(e=(e=va(e))==e?e:0),li(va(t),e,n)},Wn.clone=function(t){return ci(t,4)},Wn.cloneDeep=function(t){return ci(t,5)},Wn.cloneDeepWith=function(t,e){return ci(t,5,e="function"==typeof e?e:r)},Wn.cloneWith=function(t,e){return ci(t,4,e="function"==typeof e?e:r)},Wn.conformsTo=function(t,e){return null==e||ui(t,e,Oa(e))},Wn.deburr=Ua,Wn.defaultTo=function(t,e){return null==t||t!=t?e:t},Wn.divide=_l,Wn.endsWith=function(t,e,n){t=ya(t),e=ur(e);var i=t.length,o=n=n===r?i:li(ga(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},Wn.eq=Ws,Wn.escape=function(t){return(t=ya(t))&&Z.test(t)?t.replace(X,sn):t},Wn.escapeRegExp=function(t){return(t=ya(t))&&ot.test(t)?t.replace(rt,"\\$&"):t},Wn.every=function(t,e,n){var i=$s(t)?Re:gi;return n&&xo(t,e,n)&&(e=r),i(t,co(e,3))},Wn.find=vs,Wn.findIndex=Uo,Wn.findKey=function(t,e){return We(t,co(e,3),xi)},Wn.findLast=bs,Wn.findLastIndex=$o,Wn.findLastKey=function(t,e){return We(t,co(e,3),wi)},Wn.floor=xl,Wn.forEach=ys,Wn.forEachRight=_s,Wn.forIn=function(t,e){return null==t?t:yi(t,co(e,3),Ia)},Wn.forInRight=function(t,e){return null==t?t:_i(t,co(e,3),Ia)},Wn.forOwn=function(t,e){return t&&xi(t,co(e,3))},Wn.forOwnRight=function(t,e){return t&&wi(t,co(e,3))},Wn.get=Aa,Wn.gt=zs,Wn.gte=Vs,Wn.has=function(t,e){return null!=t&&vo(t,e,Di)},Wn.hasIn=Da,Wn.head=Yo,Wn.identity=rl,Wn.includes=function(t,e,n,i){t=Ys(t)?t:Wa(t),n=n&&!i?ga(n):0;var r=t.length;return n<0&&(n=yn(r+n,0)),la(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Ve(t,e,n)>-1},Wn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ga(n);return r<0&&(r=yn(i+r,0)),Ve(t,e,r)},Wn.inRange=function(t,e,n){return e=pa(e),n===r?(n=e,e=0):n=pa(n),function(t,e,n){return t>=_n(e,n)&&t=-9007199254740991&&t<=p},Wn.isSet=aa,Wn.isString=la,Wn.isSymbol=ca,Wn.isTypedArray=ua,Wn.isUndefined=function(t){return t===r},Wn.isWeakMap=function(t){return na(t)&&mo(t)==I},Wn.isWeakSet=function(t){return na(t)&&"[object WeakSet]"==ki(t)},Wn.join=function(t,e){return null==t?"":Be.call(t,e)},Wn.kebabCase=$a,Wn.last=Zo,Wn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ga(n))<0?yn(i+o,0):_n(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):ze(t,$e,o,!0)},Wn.lowerCase=qa,Wn.lowerFirst=Ya,Wn.lt=ha,Wn.lte=da,Wn.max=function(t){return t&&t.length?mi(t,rl,Ai):r},Wn.maxBy=function(t,e){return t&&t.length?mi(t,co(e,2),Ai):r},Wn.mean=function(t){return qe(t,rl)},Wn.meanBy=function(t,e){return qe(t,co(e,2))},Wn.min=function(t){return t&&t.length?mi(t,rl,Fi):r},Wn.minBy=function(t,e){return t&&t.length?mi(t,co(e,2),Fi):r},Wn.stubArray=ml,Wn.stubFalse=vl,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Sl,Wn.nth=function(t,e){return t&&t.length?Ui(t,ga(e)):r},Wn.noConflict=function(){return ge._===this&&(ge._=Wt),this},Wn.noop=cl,Wn.now=As,Wn.pad=function(t,e,n){t=ya(t);var i=(e=ga(e))?pn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return $r(me(r),n)+t+$r(pe(r),n)},Wn.padEnd=function(t,e,n){t=ya(t);var i=(e=ga(e))?pn(t):0;return e&&ie){var i=t;t=e,e=i}if(n||t%1||e%1){var o=Sn();return _n(t+o*(e-t+he("1e-"+((o+"").length-1))),e)}return Xi(t,e)},Wn.reduce=function(t,e,n){var i=$s(t)?je:Xe,r=arguments.length<3;return i(t,co(e,4),n,r,fi)},Wn.reduceRight=function(t,e,n){var i=$s(t)?He:Xe,r=arguments.length<3;return i(t,co(e,4),n,r,pi)},Wn.repeat=function(t,e,n){return e=(n?xo(t,e,n):e===r)?1:ga(e),Qi(ya(t),e)},Wn.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Wn.result=function(t,e,n){var i=-1,o=(e=_r(e,t)).length;for(o||(o=1,t=r);++ip)return[];var n=m,i=_n(t,m);e=co(e),t-=m;for(var r=Ze(i,e);++n=s)return t;var l=n-pn(i);if(l<1)return i;var c=a?wr(a,0,l).join(""):t.slice(0,l);if(o===r)return c+i;if(a&&(l+=c.length-l),sa(o)){if(t.slice(l).search(o)){var u,h=c;for(o.global||(o=Dt(o.source,ya(gt.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;c=c.slice(0,d===r?l:d)}}else if(t.indexOf(ur(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},Wn.unescape=function(t){return(t=ya(t))&&Q.test(t)?t.replace(G,vn):t},Wn.uniqueId=function(t){var e=++jt;return ya(t)+e},Wn.upperCase=Qa,Wn.upperFirst=Za,Wn.each=ys,Wn.eachRight=_s,Wn.first=Yo,ll(Wn,(wl={},xi(Wn,(function(t,e){Lt.call(Wn.prototype,e)||(wl[e]=t)})),wl),{chain:!1}),Wn.VERSION="4.17.21",Te(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Wn[t].placeholder=Wn})),Te(["drop","take"],(function(t,e){$n.prototype[t]=function(n){n=n===r?1:yn(ga(n),0);var i=this.__filtered__&&!e?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=_n(n,i.__takeCount__):i.__views__.push({size:_n(n,m),type:t+(i.__dir__<0?"Right":"")}),i},$n.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Te(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Te(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),Te(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(rl)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Zi((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Ri(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(Ls(co(t)))},$n.prototype.slice=function(t,e){t=ga(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $n(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ga(e))<0?n.dropRight(-e):n.take(e-t)),n)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(m)},xi($n.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Wn[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(Wn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,l=e instanceof $n,c=a[0],u=l||$s(e),h=function(t){var e=o.apply(Wn,Le([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,g=l&&!f;if(!s&&u){e=g?e:new $n(this);var m=t.apply(e,a);return m.__actions__.push({func:ps,args:[h],thisArg:r}),new Un(m,d)}return p&&g?t.apply(this,a):(m=this.thru(h),p?i?m.value()[0]:m.value():m)})})),Te(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Rt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);Wn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply($s(r)?r:[],t)}return this[n]((function(n){return e.apply($s(n)?n:[],t)}))}})),xi($n.prototype,(function(t,e){var n=Wn[e];if(n){var i=n.name+"";Lt.call(On,i)||(On[i]=[]),On[i].push({name:e,func:n})}})),On[Wr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Mr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mr(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$s(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Wn.prototype.plant=function(t){for(var e,n=this;n instanceof Vn;){var i=Bo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},Wn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $n){var e=t;return this.__actions__.length&&(e=new $n(this)),(e=e.reverse()).__actions__.push({func:ps,args:[es],thisArg:r}),new Un(e,this.__chain__)}return this.thru(es)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,Kt&&(Wn.prototype[Kt]=function(){return this}),Wn}();ge._=bn,(i=function(){return bn}.call(e,n,e,t))===r||(t.exports=i)}.call(this)},290:(t,e,n)=>{var i,r,o;!function(s,a,l){r=[n(556)],i=function(t){"use strict";var e,n,i,r,o,c,u,h,d,f,p,g,m,v,b,y,_,x,w,S,C,E,k,A,D,T,M,R,O,I,P={},N=0;e=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:l,normalRangeMax:l,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:l,chartRangeMax:l,chartRangeMinX:l,chartRangeMaxX:l,tooltipFormat:new i(' {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:l,nullColor:l,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,colorMap:l,tooltipFormat:new i(' {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new i(' {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:l,thresholdValue:0,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,tooltipFormat:new i("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:l,tooltipFormat:new i("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new i(' {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:l,targetColor:"#4a2",chartRangeMax:l,chartRangeMin:l,tooltipFormat:new i("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},D='.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}',n=function(){var e,n;return e=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(e.prototype=t.extend(new arguments[0],arguments[arguments.length-1]),e._super=arguments[0].prototype):e.prototype=arguments[arguments.length-1],arguments.length>2&&((n=Array.prototype.slice.call(arguments,1,-1)).unshift(e.prototype),t.extend.apply(t,n))):e.prototype=arguments[0],e.prototype.cls=e,e},t.SPFormatClass=i=n({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,n){var i,r,o,s,a,c=this,u=t;return this.format.replace(this.fre,(function(){return r=arguments[1],o=arguments[3],(i=c.precre.exec(r))?(a=i[2],r=i[1]):a=!1,(s=u[r])===l?"":o&&e&&e[o]?e[o].get?e[o].get(s)||s:e[o][s]||s:(d(s)&&(s=n.get("numberFormatter")?n.get("numberFormatter")(s):m(s,a,n.get("numberDigitGroupCount"),n.get("numberDigitGroupSep"),n.get("numberDecimalMark"))),s)}))}}),t.spformat=function(t,e){return new i(t,e)},r=function(t,e,n){return tn?n:t},o=function(t,e){var n;return 2===e?(n=a.floor(t.length/2),t.length%2?t[n]:(t[n-1]+t[n])/2):t.length%2?(n=(t.length*e+e)/4)%1?(t[a.floor(n)]+t[a.floor(n)-1])/2:t[n-1]:(n=(t.length*e+2)/4)%1?(t[a.floor(n)]+t[a.floor(n)-1])/2:t[n-1]},c=function(t){var e;switch(t){case"undefined":t=l;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},u=function(t){var e,n=[];for(e=t.length;e--;)n[e]=c(t[e]);return n},h=function(t,e){var n,i,r=[];for(n=0,i=t.length;n0;a-=i)e.splice(a,0,r);return e.join("")},f=function(t,e,n){var i;for(i=e.length;i--;)if((!n||null!==e[i])&&e[i]!==t)return!1;return!0},g=function(e){return t.isArray(e)?e:[e]},p=function(t){var e,n;if(s.createStyleSheet)try{return void(s.createStyleSheet().cssText=t)}catch(t){n=!0}(e=s.createElement("style")).type="text/css",s.getElementsByTagName("head")[0].appendChild(e),n?s.styleSheets[s.styleSheets.length-1].cssText=t:e["string"==typeof s.body.style.WebkitAppearance?"innerText":"innerHTML"]=t},t.fn.simpledraw=function(e,n,i,r){var o,a;if(i&&(o=this.data("_jqs_vcanvas")))return o;if(!1===t.fn.sparkline.canvas)return!1;if(t.fn.sparkline.canvas===l){var c=s.createElement("canvas");if(c.getContext&&c.getContext("2d"))t.fn.sparkline.canvas=function(t,e,n,i){return new R(t,e,n,i)};else{if(!s.namespaces||s.namespaces.v)return t.fn.sparkline.canvas=!1,!1;s.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),t.fn.sparkline.canvas=function(t,e,n,i){return new O(t,e,n)}}}return e===l&&(e=t(this).innerWidth()),n===l&&(n=t(this).innerHeight()),o=t.fn.sparkline.canvas(e,n,this,r),(a=t(this).data("_jqs_mhandler"))&&a.registerCanvas(o),o},t.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},t.RangeMapClass=v=n({init:function(t){var e,n,i=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((n=e.split(":"))[0]=0===n[0].length?-1/0:parseFloat(n[0]),n[1]=0===n[1].length?1/0:parseFloat(n[1]),n[2]=t[e],i.push(n));this.map=t,this.rangelist=i||!1},get:function(t){var e,n,i,r=this.rangelist;if((i=this.map[t])!==l)return i;if(r)for(e=r.length;e--;)if((n=r[e])[0]<=t&&n[1]>=t)return n[2];return l}}),t.range_map=function(t){return new v(t)},b=n({init:function(e,n){var i=t(e);this.$el=i,this.options=n,this.currentPageX=0,this.currentPageY=0,this.el=e,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!n.get("disableTooltips"),this.highlightEnabled=!n.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(e){var n=t(e.canvas);this.canvas=e,this.$canvas=n,n.mouseenter(t.proxy(this.mouseenter,this)),n.mouseleave(t.proxy(this.mouseleave,this)),n.click(t.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=l)},mouseclick:function(e){var n=t.Event("sparklineClick");n.originalEvent=e,n.sparklines=this.splist,this.$el.trigger(n)},mouseenter:function(e){t(s.body).unbind("mousemove.jqs"),t(s.body).bind("mousemove.jqs",t.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new y(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){t(s.body).unbind("mousemove.jqs");var e,n=this.splist,i=n.length,r=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e