From de70041ba97fef022d35c5f70acd1fb269a45e6b Mon Sep 17 00:00:00 2001 From: acelaya Date: Mon, 14 Aug 2023 10:18:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20preview-env=20from=20@=20shlin?= =?UTF-8?q?kio/shlink-web-client@8aa149cac4c4d24843b3e28a893b5e1b5e869d55?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/external-web-component/.htaccess | 16 + .../assets/index-0e8ab544.css | 6 + .../assets/index-30cba7be.js | 1025 ++++++++++ feature/external-web-component/favicon.gif | Bin 0 -> 642 bytes feature/external-web-component/favicon.ico | Bin 0 -> 1165 bytes feature/external-web-component/favicon.png | Bin 0 -> 1165 bytes feature/external-web-component/favicon.svg | 1 + .../icons/icon-1024x1024.png | Bin 0 -> 8726 bytes .../icons/icon-114x114.png | Bin 0 -> 1080 bytes .../icons/icon-120x120.png | Bin 0 -> 1100 bytes .../icons/icon-128x128.png | Bin 0 -> 1165 bytes .../icons/icon-144x144.png | Bin 0 -> 1410 bytes .../icons/icon-150x150.png | Bin 0 -> 1366 bytes .../icons/icon-152x152.png | Bin 0 -> 1360 bytes .../icons/icon-160x160.png | Bin 0 -> 1411 bytes .../icons/icon-167x167.png | Bin 0 -> 1474 bytes .../icons/icon-16x16.png | Bin 0 -> 287 bytes .../icons/icon-180x180.png | Bin 0 -> 1657 bytes .../icons/icon-192x192.png | Bin 0 -> 1753 bytes .../icons/icon-196x196.png | Bin 0 -> 1684 bytes .../icons/icon-228x228.png | Bin 0 -> 1999 bytes .../icons/icon-24x24.png | Bin 0 -> 381 bytes .../icons/icon-256x256.png | Bin 0 -> 2209 bytes .../icons/icon-310x310.png | Bin 0 -> 2639 bytes .../icons/icon-32x32.png | Bin 0 -> 437 bytes .../icons/icon-384x384.png | Bin 0 -> 3236 bytes .../icons/icon-40x40.png | Bin 0 -> 466 bytes .../icons/icon-48x48.png | Bin 0 -> 551 bytes .../icons/icon-512x512.png | Bin 0 -> 4335 bytes .../icons/icon-60x60.png | Bin 0 -> 638 bytes .../icons/icon-64x64.png | Bin 0 -> 684 bytes .../icons/icon-72x72.png | Bin 0 -> 750 bytes .../icons/icon-76x76.png | Bin 0 -> 783 bytes .../icons/icon-96x96.png | Bin 0 -> 984 bytes feature/external-web-component/index.html | 92 + feature/external-web-component/manifest.json | 1 + .../external-web-component/service-worker.js | 1822 +++++++++++++++++ 37 files changed, 2963 insertions(+) create mode 100644 feature/external-web-component/.htaccess create mode 100644 feature/external-web-component/assets/index-0e8ab544.css create mode 100644 feature/external-web-component/assets/index-30cba7be.js create mode 100644 feature/external-web-component/favicon.gif create mode 100644 feature/external-web-component/favicon.ico create mode 100644 feature/external-web-component/favicon.png create mode 100644 feature/external-web-component/favicon.svg create mode 100644 feature/external-web-component/icons/icon-1024x1024.png create mode 100644 feature/external-web-component/icons/icon-114x114.png create mode 100644 feature/external-web-component/icons/icon-120x120.png create mode 100644 feature/external-web-component/icons/icon-128x128.png create mode 100644 feature/external-web-component/icons/icon-144x144.png create mode 100644 feature/external-web-component/icons/icon-150x150.png create mode 100644 feature/external-web-component/icons/icon-152x152.png create mode 100644 feature/external-web-component/icons/icon-160x160.png create mode 100644 feature/external-web-component/icons/icon-167x167.png create mode 100644 feature/external-web-component/icons/icon-16x16.png create mode 100644 feature/external-web-component/icons/icon-180x180.png create mode 100644 feature/external-web-component/icons/icon-192x192.png create mode 100644 feature/external-web-component/icons/icon-196x196.png create mode 100644 feature/external-web-component/icons/icon-228x228.png create mode 100644 feature/external-web-component/icons/icon-24x24.png create mode 100644 feature/external-web-component/icons/icon-256x256.png create mode 100644 feature/external-web-component/icons/icon-310x310.png create mode 100644 feature/external-web-component/icons/icon-32x32.png create mode 100644 feature/external-web-component/icons/icon-384x384.png create mode 100644 feature/external-web-component/icons/icon-40x40.png create mode 100644 feature/external-web-component/icons/icon-48x48.png create mode 100644 feature/external-web-component/icons/icon-512x512.png create mode 100644 feature/external-web-component/icons/icon-60x60.png create mode 100644 feature/external-web-component/icons/icon-64x64.png create mode 100644 feature/external-web-component/icons/icon-72x72.png create mode 100644 feature/external-web-component/icons/icon-76x76.png create mode 100644 feature/external-web-component/icons/icon-96x96.png create mode 100644 feature/external-web-component/index.html create mode 100644 feature/external-web-component/manifest.json create mode 100644 feature/external-web-component/service-worker.js diff --git a/feature/external-web-component/.htaccess b/feature/external-web-component/.htaccess new file mode 100644 index 00000000..680e1a5e --- /dev/null +++ b/feature/external-web-component/.htaccess @@ -0,0 +1,16 @@ +RewriteEngine on +RewriteBase / + +# do not do anything for already existing files +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule (.*) - [L] + +# if request is no valid file NOR directory +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +# if static asset do not do anything +RewriteRule (.*)(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) - [NC,L,R=404] +# everything else should be redirected to /index.html so it can be routed by it +RewriteRule (.*) /index.html [L] diff --git a/feature/external-web-component/assets/index-0e8ab544.css b/feature/external-web-component/assets/index-0e8ab544.css new file mode 100644 index 00000000..bdcfb82c --- /dev/null +++ b/feature/external-web-component/assets/index-0e8ab544.css @@ -0,0 +1,6 @@ +@charset "UTF-8";.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home{position:relative;padding-top:15px;width:100%}@media (min-width: 768px){.home{padding-top:0;height:calc(100vh - 56px - 3.1rem)}}.home__logo-wrapper{padding:1.5rem!important;height:100%!important;min-height:300px}.home__logo{position:absolute;top:50%;transform:translateY(-50%);width:calc(300.024px - 3rem)}.home__main-card{margin:0 auto;max-width:720px}@media (min-width: 768px){.home__main-card{position:absolute;top:50%;transform:translateY(-50%)}}.home__title-wrapper{padding:1.5rem!important;border-bottom:1px solid var(--border-color)}.home__title{text-align:center;font-size:1.75rem;margin:0}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.import-servers-btn__csv-select{position:absolute;left:-9999px;top:-9999px}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;cursor:pointer}.server-error__delete-btn:hover{text-decoration:underline}.user-interface__theme-icon{float:right;margin-top:.25rem}/*! + * Bootstrap v5.2.3 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors + * Copyright 2011-2022 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: #3878b7;--bs-code-color: #d63384;--bs-highlight-bg: #fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: #daeafa;--bs-table-border-color: #c4d3e1;--bs-table-striped-bg: #cfdeee;--bs-table-striped-color: #000;--bs-table-active-bg: #c4d3e1;--bs-table-active-color: #000;--bs-table-hover-bg: #cad8e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #cbccce;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #bcd0c7;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #badce3;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #e6dbb9;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #dfc2c4;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #dfe0e1;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #373b3e;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a3cbf2'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #62a6e9;--bs-btn-hover-border-color: #59a1e8;--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: #6babea;--bs-btn-active-border-color: #59a1e8;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius:calc(.375rem - 1px);--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: #1e2125;--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(.375rem - 1px);--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius:calc(.375rem - 1px);--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f87ce'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #a3cbf2;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: #3f87ce;--bs-accordion-active-bg: #edf5fc}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: #2a5a89;--bs-alert-bg: #daeafa;--bs-alert-border-color: #c8e0f7}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: #41464b;--bs-alert-bg: #e2e3e5;--bs-alert-border-color: #d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: #0f5132;--bs-alert-bg: #d1e7dd;--bs-alert-border-color: #badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: #055160;--bs-alert-bg: #cff4fc;--bs-alert-border-color: #b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: #664d03;--bs-alert-bg: #fff3cd;--bs-alert-border-color: #ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: #842029;--bs-alert-bg: #f8d7da;--bs-alert-border-color: #f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color: #636464;--bs-alert-bg: #fefefe;--bs-alert-border-color: #fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: #141619;--bs-alert-bg: #d3d3d4;--bs-alert-border-color: #bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius:calc(.5rem - 1px);--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius:calc(.5rem - 1px);--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: #f0f0f0;--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: #12161c;--input-disabled-color: #1a2028;--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header.modal-header,.modal-footer.modal-footer,.card-header.card-header,.card-footer.card-footer,.table.table thead th,.table.table th,.table.table td,.page-link.page-link,.page-link.page-link:hover,.page-item.page-item.disabled .page-link.page-link,.dropdown-divider.dropdown-divider,.dropdown-menu.dropdown-menu,.list-group-item.list-group-item,.modal-content.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active,.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control.form-control,.form-control.form-control:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover{background-color:var(--input-color)}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.dropdown-btn__toggle.dropdown-btn__toggle{text-align:left}.dropdown-btn__toggle.dropdown-btn__toggle--with-caret{padding-right:1.75rem}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.highlight-card.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{text-transform:uppercase;color:#6c757d}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}.copy-to-clipboard-icon{cursor:pointer;font-size:1.2rem}.qr-code-modal__img{max-width:100%;box-shadow:0 0 .25rem #0003}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag{color:#fff}.tag--light-bg{color:#222!important}.tag:not(:last-child){margin-right:3px}.tag__close-selected-tag.tag__close-selected-tag{font-size:inherit;color:inherit;opacity:1;cursor:pointer;margin-left:5px}.tag__close-selected-tag.tag__close-selected-tag:hover{color:inherit!important;opacity:1!important}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.icon-input-container{position:relative}.icon-input-container__input{padding-right:35px!important}.icon-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.card .icon-input-container__input:not(:disabled),.dropdown .icon-input-container__input:not(:disabled){background-color:var(--input-color)!important}.icon-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.react-datepicker__close-icon.react-datepicker__close-icon{position:absolute;top:50%;transform:translateY(-50%);right:0}.react-datepicker__close-icon.react-datepicker__close-icon:after{right:.75rem;line-height:11px;background-color:#333;font-size:14px}.react-datepicker__input-container,.react-datepicker-wrapper{display:block!important}.react-datepicker__day--keyboard-selected{background-color:#4696e5}.react-datepicker__day--keyboard-selected:hover{background-color:#1d77d0}.react-datepicker__time.react-datepicker__time,.react-datepicker.react-datepicker{background-color:var(--primary-color)!important;color:var(--text-color);border-color:var(--border-color)}.react-datepicker__header.react-datepicker__header{background-color:var(--secondary-color);border-color:var(--border-color)}.react-datepicker__current-month.react-datepicker__current-month,.react-datepicker-time__header.react-datepicker-time__header,.react-datepicker-year-header.react-datepicker-year-header,.react-datepicker__day-name.react-datepicker__day-name,.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),.react-datepicker__time-name.react-datepicker__time-name{color:inherit}.react-datepicker__day--disabled.react-datepicker__day--disabled{cursor:default;color:var(--border-color)!important}.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected{background-color:var(--brand-color)!important;color:#fff!important}.react-datepicker__time-list-item.react-datepicker__time-list-item:hover{color:#232323}.react-datepicker__time-container.react-datepicker__time-container{border-color:var(--border-color)}.react-datepicker__time-list.react-datepicker__time-list{scrollbar-color:rgba(0,0,0,.5) var(--secondary-color);scrollbar-width:thin}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar{width:10px;background-color:var(--secondary-color)}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:.5rem}.react-datepicker-popper.react-datepicker-popper{z-index:2}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:after{border-top-color:var(--primary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:before{border-top-color:var(--border-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:after{border-bottom-color:var(--secondary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:before{border-bottom-color:var(--border-color)}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action,.edit-tag-modal__color-picker-toggle{cursor:pointer}.edit-tag-modal__color-icon{color:#fff}.edit-tag-modal__popover.edit-tag-modal__popover{border-radius:.6rem}.tag-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px}.simple-paginator{-webkit-user-select:none;user-select:none}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;right:0;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.chart-card__footer--sticky{position:sticky;bottom:0}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-chart-card__body canvas{height:300px!important}@media (min-width: 768px){.line-chart-card__body canvas{height:400px!important}}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0))}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.open-map-modal-btn__btn.open-map-modal-btn__btn{padding:0;margin-right:1rem}.visits-table{margin:1.5rem 0 0;position:relative;background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;padding:.5rem;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.short-url-visits-header__created-at{cursor:default}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow-x:hidden;overflow-y:auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item-text{margin-left:8px}.shlink-layout__swipeable,.shlink-layout__swipeable-inner{height:100%}.shlink-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.shlink-layout__burger-icon{display:inline-block}}.shlink-layout__burger-icon--active{color:#fff}.shlink-layout__container.shlink-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.shlink-layout__container.shlink-layout__container{padding:30px 0 0 260px}}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.5rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-active{box-shadow:0 0 0 .2rem #4696e540}.react-tags__label{display:none}.react-tags__tag{font-size:100%}.react-tags__list{display:inline;vertical-align:2px;padding:0;list-style-type:none}.react-tags__list-item{display:inline-block}.react-tags__list-item:not(:last-child){margin-right:3px}.react-tags__combobox{display:inline-block;padding:6px 2px;margin-bottom:5px;max-width:100%}@media screen and (min-width: 576px){.react-tags__combobox{position:relative}}.react-tags__combobox-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__combobox-input::placeholder{color:#6c757d}.react-tags__combobox-input::-ms-clear{display:none}.react-tags__listbox{position:absolute;top:100%;left:0;width:100%;z-index:10;margin:4px -1px;padding:0;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}@media screen and (min-width: 576px){.react-tags__listbox{width:240px}}.react-tags__listbox .react-tags__listbox-option{padding:8px 10px}.react-tags__listbox .react-tags__listbox-option:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__listbox .react-tags__listbox-option:hover:not(.react-tags__listbox-option--not-selectable){cursor:pointer;background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-active{background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-disabled{opacity:.5;cursor:auto}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}*{outline:none!important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em} diff --git a/feature/external-web-component/assets/index-30cba7be.js b/feature/external-web-component/assets/index-30cba7be.js new file mode 100644 index 00000000..0ec53d8f --- /dev/null +++ b/feature/external-web-component/assets/index-30cba7be.js @@ -0,0 +1,1025 @@ +var hV=Object.defineProperty;var dV=(t,e,n)=>e in t?hV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var St=(t,e,n)=>(dV(t,typeof e!="symbol"?e+"":e,n),n);function fV(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var mp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var U4={exports:{}},yb={},V4={exports:{}},pe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tg=Symbol.for("react.element"),pV=Symbol.for("react.portal"),mV=Symbol.for("react.fragment"),gV=Symbol.for("react.strict_mode"),vV=Symbol.for("react.profiler"),yV=Symbol.for("react.provider"),_V=Symbol.for("react.context"),bV=Symbol.for("react.forward_ref"),xV=Symbol.for("react.suspense"),wV=Symbol.for("react.memo"),SV=Symbol.for("react.lazy"),WL=Symbol.iterator;function TV(t){return t===null||typeof t!="object"?null:(t=WL&&t[WL]||t["@@iterator"],typeof t=="function"?t:null)}var H4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W4=Object.assign,Y4={};function Ld(t,e,n){this.props=t,this.context=e,this.refs=Y4,this.updater=n||H4}Ld.prototype.isReactComponent={};Ld.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ld.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Z4(){}Z4.prototype=Ld.prototype;function zO(t,e,n){this.props=t,this.context=e,this.refs=Y4,this.updater=n||H4}var UO=zO.prototype=new Z4;UO.constructor=zO;W4(UO,Ld.prototype);UO.isPureReactComponent=!0;var YL=Array.isArray,G4=Object.prototype.hasOwnProperty,VO={current:null},q4={key:!0,ref:!0,__self:!0,__source:!0};function K4(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)G4.call(e,r)&&!q4.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1Math.max(Math.min(t,n),e);function gp(t){return Za(Eg(t*2.55),0,255)}function sl(t){return Za(Eg(t*255),0,255)}function qs(t){return Za(Eg(t/2.55)/100,0,1)}function GL(t){return Za(Eg(t*100),0,100)}const Ki={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},J2=[..."0123456789ABCDEF"],DV=t=>J2[t&15],IV=t=>J2[(t&240)>>4]+J2[t&15],pv=t=>(t&240)>>4===(t&15),FV=t=>pv(t.r)&&pv(t.g)&&pv(t.b)&&pv(t.a);function BV(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Ki[t[1]]*17,g:255&Ki[t[2]]*17,b:255&Ki[t[3]]*17,a:e===5?Ki[t[4]]*17:255}:(e===7||e===9)&&(n={r:Ki[t[1]]<<4|Ki[t[2]],g:Ki[t[3]]<<4|Ki[t[4]],b:Ki[t[5]]<<4|Ki[t[6]],a:e===9?Ki[t[7]]<<4|Ki[t[8]]:255})),n}const $V=(t,e)=>t<255?e(t):"";function zV(t){var e=FV(t)?DV:IV;return t?"#"+e(t.r)+e(t.g)+e(t.b)+$V(t.a,e):void 0}const UV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Q4(t,e,n){const r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function VV(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function HV(t,e,n){const r=Q4(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function WV(t,e,n,r,i){return t===i?(e-n)/r+(e.5?d/(2-o-s):d/(o+s),c=WV(n,r,i,d,o),c=c*60+.5),[c|0,h||0,l]}function YO(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(sl)}function ZO(t,e,n){return YO(Q4,t,e,n)}function YV(t,e,n){return YO(HV,t,e,n)}function ZV(t,e,n){return YO(VV,t,e,n)}function J4(t){return(t%360+360)%360}function GV(t){const e=UV.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?gp(+e[5]):sl(+e[5]));const i=J4(+e[2]),o=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=YV(i,o,s):e[1]==="hsv"?r=ZV(i,o,s):r=ZO(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function qV(t,e){var n=WO(t);n[0]=J4(n[0]+e),n=ZO(n),t.r=n[0],t.g=n[1],t.b=n[2]}function KV(t){if(!t)return;const e=WO(t),n=e[0],r=GL(e[1]),i=GL(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${qs(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const qL={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},KL={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function XV(){const t={},e=Object.keys(KL),n=Object.keys(qL);let r,i,o,s,l;for(r=0;r>16&255,o>>8&255,o&255]}return t}let mv;function QV(t){mv||(mv=XV(),mv.transparent=[0,0,0,0]);const e=mv[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const JV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function tH(t){const e=JV.exec(t);let n=255,r,i,o;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?gp(s):Za(s*255,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?gp(r):Za(r,0,255)),i=255&(e[4]?gp(i):Za(i,0,255)),o=255&(e[6]?gp(o):Za(o,0,255)),{r,g:i,b:o,a:n}}}function eH(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${qs(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const tw=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Yu=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function nH(t,e,n){const r=Yu(qs(t.r)),i=Yu(qs(t.g)),o=Yu(qs(t.b));return{r:sl(tw(r+n*(Yu(qs(e.r))-r))),g:sl(tw(i+n*(Yu(qs(e.g))-i))),b:sl(tw(o+n*(Yu(qs(e.b))-o))),a:t.a+n*(e.a-t.a)}}function gv(t,e,n){if(t){let r=WO(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=ZO(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function t5(t,e){return t&&Object.assign(e||{},t)}function XL(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=sl(t[3]))):(e=t5(t,{r:0,g:0,b:0,a:1}),e.a=sl(e.a)),e}function rH(t){return t.charAt(0)==="r"?tH(t):GV(t)}class gm{constructor(e){if(e instanceof gm)return e;const n=typeof e;let r;n==="object"?r=XL(e):n==="string"&&(r=BV(e)||QV(e)||rH(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=t5(this._rgb);return e&&(e.a=qs(e.a)),e}set rgb(e){this._rgb=XL(e)}rgbString(){return this._valid?eH(this._rgb):void 0}hexString(){return this._valid?zV(this._rgb):void 0}hslString(){return this._valid?KV(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const s=n===o?.5:n,l=2*s-1,c=r.a-i.a,h=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;o=1-h,r.r=255&h*r.r+o*i.r+.5,r.g=255&h*r.g+o*i.g+.5,r.b=255&h*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=nH(this._rgb,e._rgb,n)),this}clone(){return new gm(this.rgb)}alpha(e){return this._rgb.a=sl(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Eg(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return gv(this._rgb,2,e),this}darken(e){return gv(this._rgb,2,-e),this}saturate(e){return gv(this._rgb,1,e),this}desaturate(e){return gv(this._rgb,1,-e),this}rotate(e){return qV(this._rgb,e),this}}/*! + * Chart.js v4.3.3 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Hs(){}const iH=(()=>{let t=0;return()=>t++})();function _e(t){return t===null||typeof t>"u"}function Qe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function he(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function xn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Ci(t,e){return xn(t)?t:e}function re(t,e){return typeof t>"u"?e:t}const oH=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,e5=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ze(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Me(t,e,n,r){let i,o,s;if(Qe(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function lH(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function cH(t){const e=lH(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function xl(t,e){return(QL[e]||(QL[e]=cH(e)))(t)}function GO(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ym=t=>typeof t<"u",wl=t=>typeof t=="function",JL=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function uH(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const an=Math.PI,Je=2*an,hH=Je+an,T_=Number.POSITIVE_INFINITY,dH=an/180,wn=an/2,_c=an/4,tM=an*2/3,Ga=Math.log10,us=Math.sign;function Dp(t,e,n){return Math.abs(t-e)i-o).pop(),e}function Wh(t){return!isNaN(parseFloat(t))&&isFinite(t)}function pH(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function r5(t,e,n){let r,i,o;for(r=0,i=t.length;rc&&h=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function KO(t,e,n){n=n||(s=>t[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const ea=(t,e,n,r)=>KO(t,n,r?i=>{const o=t[i][e];return ot[i][e]KO(t,n,r=>t[r][e]>=n);function yH(t,e,n){let r=0,i=t.length;for(;rr&&t[i-1]>n;)i--;return r>0||i{const r="_onData"+GO(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...o)}),s}})})}function rM(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(o5.forEach(o=>{delete t[o]}),delete t._chartjs)}function s5(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const a5=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function l5(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,a5.call(window,()=>{r=!1,t.apply(e,n)}))}}function bH(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const XO=t=>t==="start"?"left":t==="end"?"right":"center",Mr=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,xH=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function c5(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:s,_parsed:l}=t,c=s.axis,{min:h,max:d,minDefined:p,maxDefined:m}=s.getUserBounds();p&&(i=or(Math.min(ea(l,c,h).lo,n?r:ea(e,c,s.getPixelForValue(h)).lo),0,r-1)),m?o=or(Math.max(ea(l,s.axis,d,!0).hi+1,n?0:ea(e,c,s.getPixelForValue(d),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function u5(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const vv=t=>t===0||t===1,iM=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Je/n)),oM=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Je/n)+1,Ip={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*wn)+1,easeOutSine:t=>Math.sin(t*wn),easeInOutSine:t=>-.5*(Math.cos(an*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>vv(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>vv(t)?t:iM(t,.075,.3),easeOutElastic:t=>vv(t)?t:oM(t,.075,.3),easeInOutElastic(t){return vv(t)?t:t<.5?.5*iM(t*2,.1125,.45):.5+.5*oM(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ip.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ip.easeInBounce(t*2)*.5:Ip.easeOutBounce(t*2-1)*.5+.5};function QO(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function sM(t){return QO(t)?t:new gm(t)}function ew(t){return QO(t)?t:new gm(t).saturate(.5).darken(.1).hexString()}const wH=["x","y","borderWidth","radius","tension"],SH=["color","borderColor","backgroundColor"];function TH(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:SH},numbers:{type:"number",properties:wH}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function EH(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const aM=new Map;function OH(t,e){e=e||{};const n=t+JSON.stringify(e);let r=aM.get(n);return r||(r=new Intl.NumberFormat(t,e),aM.set(n,r)),r}function Og(t,e,n){return OH(e,n).format(t)}const h5={values(t){return Qe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(i="scientific"),o=CH(t,n)}const s=Ga(Math.abs(o)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:i,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Og(t,r,c)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(Ga(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?h5.numeric.call(this,t,e,n):""}};function CH(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var _b={formatters:h5};function kH(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:_b.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const uu=Object.create(null),eS=Object.create(null);function Fp(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>ew(i.backgroundColor),this.hoverBorderColor=(r,i)=>ew(i.borderColor),this.hoverColor=(r,i)=>ew(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return nw(this,e,n)}get(e){return Fp(this,e)}describe(e,n){return nw(eS,e,n)}override(e,n){return nw(uu,e,n)}route(e,n,r,i){const o=Fp(this,e),s=Fp(this,r),l="_"+n;Object.defineProperties(o,{[l]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[l],h=s[i];return he(c)?Object.assign({},h,c):re(c,h)},set(c){this[l]=c}}})}apply(e){e.forEach(n=>n(this))}}var Sn=new PH({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[TH,EH,kH]);function LH(t){return!t||_e(t.size)||_e(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function E_(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function MH(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=n.length;let c,h,d,p,m;for(c=0;cn.length){for(c=0;c0&&t.stroke()}}function na(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&o.strokeColor!=="";let c,h;for(t.save(),t.font=i.string,jH(t,o),c=0;c+t||0;function JO(t,e){const n={},r=he(e),i=r?Object.keys(e):e,o=he(t)?r?s=>re(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=$H(o(s));return n}function f5(t){return JO(t,{top:"y",right:"x",bottom:"y",left:"x"})}function qc(t){return JO(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Dr(t){const e=f5(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Kn(t,e){t=t||{},e=e||Sn.font;let n=re(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=re(t.style,e.style);r&&!(""+r).match(FH)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:re(t.family,e.family),lineHeight:BH(re(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:re(t.weight,e.weight),string:""};return i.string=LH(i),i}function vp(t,e,n,r){let i=!0,o,s,l;for(o=0,s=t.length;on&&l===0?0:l+c;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function Rl(t,e){return Object.assign(Object.create(t),e)}function tC(t,e=[""],n,r,i=()=>t[0]){const o=n||t;typeof r>"u"&&(r=v5("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:r,_getTarget:i,override:l=>tC([l,...t],e,o,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return m5(l,c,()=>qH(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return uM(l).includes(c)},ownKeys(l){return uM(l)},set(l,c,h){const d=l._storage||(l._storage=i());return l[c]=d[c]=h,delete l._keys,!0}})}function Yh(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:p5(t,r),setContext:o=>Yh(t,o,n,r),override:o=>Yh(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete t[s],!0},get(o,s,l){return m5(o,s,()=>VH(o,s,l))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(o,s,l){return t[s]=l,delete o[s],!0}})}function p5(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:wl(n)?n:()=>n,isIndexable:wl(r)?r:()=>r}}const UH=(t,e)=>t?t+GO(e):e,eC=(t,e)=>he(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function m5(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function VH(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let l=r[e];return wl(l)&&s.isScriptable(e)&&(l=HH(e,l,t,n)),Qe(l)&&l.length&&(l=WH(e,l,t,s.isIndexable)),eC(e,l)&&(l=Yh(l,i,o&&o[e],s)),l}function HH(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:l}=n;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(o,s||r);return l.delete(t),eC(t,c)&&(c=nC(i._scopes,i,t,c)),c}function WH(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:l}=n;if(typeof o.index<"u"&&r(t))return e[o.index%e.length];if(he(e[0])){const c=e,h=i._scopes.filter(d=>d!==c);e=[];for(const d of c){const p=nC(h,i,t,d);e.push(Yh(p,o,s&&s[t],l))}}return e}function g5(t,e,n){return wl(t)?t(e,n):t}const YH=(t,e)=>t===!0?e:typeof t=="string"?xl(e,t):void 0;function ZH(t,e,n,r,i){for(const o of e){const s=YH(n,o);if(s){t.add(s);const l=g5(s._fallback,n,i);if(typeof l<"u"&&l!==n&&l!==r)return l}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function nC(t,e,n,r){const i=e._rootScopes,o=g5(e._fallback,n,r),s=[...t,...i],l=new Set;l.add(r);let c=cM(l,s,n,o||n,r);return c===null||typeof o<"u"&&o!==n&&(c=cM(l,s,o,c,r),c===null)?!1:tC(Array.from(l),[""],i,o,()=>GH(e,n,r))}function cM(t,e,n,r,i){for(;n;)n=ZH(t,e,n,r,i);return n}function GH(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return Qe(i)&&he(n)?n:i||{}}function qH(t,e,n,r){let i;for(const o of e)if(i=v5(UH(o,t),n),typeof i<"u")return eC(t,i)?nC(n,r,t,i):i}function v5(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function uM(t){let e=t._keys;return e||(e=t._keys=KH(t._scopes)),e}function KH(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function y5(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,s=new Array(r);let l,c,h,d;for(l=0,c=r;let==="x"?"y":"x";function QH(t,e,n,r){const i=t.skip?e:t,o=e,s=n.skip?e:n,l=tS(o,i),c=tS(s,o);let h=l/(l+c),d=c/(l+c);h=isNaN(h)?0:h,d=isNaN(d)?0:d;const p=r*h,m=r*d;return{previous:{x:o.x-p*(s.x-i.x),y:o.y-p*(s.y-i.y)},next:{x:o.x+m*(s.x-i.x),y:o.y+m*(s.y-i.y)}}}function JH(t,e,n){const r=t.length;let i,o,s,l,c,h=Zh(t,0);for(let d=0;d!h.skip)),e.cubicInterpolationMode==="monotone")eW(t,i);else{let h=r?t[t.length-1]:t[0];for(o=0,s=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function iW(t,e){return wb(t).getPropertyValue(e)}const oW=["top","right","bottom","left"];function Kc(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=oW[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const sW=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function aW(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let s=!1,l,c;if(sW(i,o,t.target))l=i,c=o;else{const h=e.getBoundingClientRect();l=r.clientX-h.left,c=r.clientY-h.top,s=!0}return{x:l,y:c,box:s}}function Lc(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=wb(n),o=i.boxSizing==="border-box",s=Kc(i,"padding"),l=Kc(i,"border","width"),{x:c,y:h,box:d}=aW(t,n),p=s.left+(d&&l.left),m=s.top+(d&&l.top);let{width:v,height:y}=e;return o&&(v-=s.width+l.width,y-=s.height+l.height),{x:Math.round((c-p)/v*n.width/r),y:Math.round((h-m)/y*n.height/r)}}function lW(t,e,n){let r,i;if(e===void 0||n===void 0){const o=rC(t);if(!o)e=t.clientWidth,n=t.clientHeight;else{const s=o.getBoundingClientRect(),l=wb(o),c=Kc(l,"border","width"),h=Kc(l,"padding");e=s.width-h.width-c.width,n=s.height-h.height-c.height,r=O_(l.maxWidth,o,"clientWidth"),i=O_(l.maxHeight,o,"clientHeight")}}return{width:e,height:n,maxWidth:r||T_,maxHeight:i||T_}}const _v=t=>Math.round(t*10)/10;function cW(t,e,n,r){const i=wb(t),o=Kc(i,"margin"),s=O_(i.maxWidth,t,"clientWidth")||T_,l=O_(i.maxHeight,t,"clientHeight")||T_,c=lW(t,e,n);let{width:h,height:d}=c;if(i.boxSizing==="content-box"){const m=Kc(i,"border","width"),v=Kc(i,"padding");h-=v.width+m.width,d-=v.height+m.height}return h=Math.max(0,h-o.width),d=Math.max(0,r?h/r:d-o.height),h=_v(Math.min(h,s,c.maxWidth)),d=_v(Math.min(d,l,c.maxHeight)),h&&!d&&(d=_v(h/2)),(e!==void 0||n!==void 0)&&r&&c.height&&d>c.height&&(d=c.height,h=_v(Math.floor(d*r))),{width:h,height:d}}function hM(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const uW=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function dM(t,e){const n=iW(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Mc(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function hW(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function dW(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=Mc(t,i,n),l=Mc(i,o,n),c=Mc(o,e,n),h=Mc(s,l,n),d=Mc(l,c,n);return Mc(h,d,n)}const fW=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},pW=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ah(t,e,n){return t?fW(e,n):pW()}function x5(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function w5(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function S5(t){return t==="angle"?{between:_m,compare:mH,normalize:Li}:{between:ta,compare:(e,n)=>e-n,normalize:e=>e}}function fM({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function mW(t,e,n){const{property:r,start:i,end:o}=n,{between:s,normalize:l}=S5(r),c=e.length;let{start:h,end:d,loop:p}=t,m,v;if(p){for(h+=c,d+=c,m=0,v=c;mc(i,E,x)&&l(i,E)!==0,k=()=>l(o,x)===0||c(o,E,x),P=()=>_||O(),A=()=>!_||k();for(let j=d,B=d;j<=p;++j)w=e[j%s],!w.skip&&(x=h(w[r]),x!==E&&(_=c(x,i,o),T===null&&P()&&(T=l(x,i)===0?j:B),T!==null&&A()&&(y.push(fM({start:T,end:j,loop:m,count:s,style:v})),T=null),B=j,E=x));return T!==null&&y.push(fM({start:T,end:p,loop:m,count:s,style:v})),y}function E5(t,e){const n=[],r=t.segments;for(let i=0;ii&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}function vW(t,e,n,r){const i=t.length,o=[];let s=e,l=t[e],c;for(c=e+1;c<=n;++c){const h=t[c%i];h.skip||h.stop?l.skip||(r=!1,o.push({start:e%i,end:(c-1)%i,loop:r}),e=s=h.stop?c:null):(s=c,l.skip&&(e=c)),l=h}return s!==null&&o.push({start:e%i,end:s%i,loop:r}),o}function yW(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:s,end:l}=gW(n,i,o,r);if(r===!0)return pM(t,[{start:s,end:l,loop:o}],n,e);const c=ll({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=a5.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,l=!1,c;for(;s>=0;--s)c=o[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(o[s]=o[o.length-1],o.pop());l&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Ws=new xW;const gM="transparent",wW={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=sM(t||gM),i=r.valid&&sM(e||gM);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class SW{constructor(e,n,r,i){const o=n[r];i=vp([e.to,i,o,e.from]);const s=vp([e.from,o,i]);this._active=!0,this._fn=e.fn||wW[e.type||typeof s],this._easing=Ip[e.easing]||Ip.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=vp([e.to,n,i,e.from]),this._from=vp([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,l=this._to;let c;if(this._active=o!==l&&(s||n1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(o,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i{const o=e[i];if(!he(o))return;const s={};for(const l of n)s[l]=o[l];(Qe(o.properties)&&o.properties||[i]).forEach(l=>{(l===i||!r.has(l))&&r.set(l,s)})})}_animateOptions(e,n){const r=n.options,i=EW(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&TW(e.options.$animations,r).then(()=>{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const h=s[c];if(h.charAt(0)==="$")continue;if(h==="options"){i.push(...this._animateOptions(e,n));continue}const d=n[h];let p=o[h];const m=r.get(h);if(p)if(m&&p.active()){p.update(m,d,l);continue}else p.cancel();if(!m||!m.duration){e[h]=d;continue}o[h]=p=new SW(m,e,h,d),i.push(p)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Ws.add(this._chart,r),!0}}function TW(t,e){const n=[],r=Object.keys(e);for(let i=0;i0||!n&&o<0)return i.index}return null}function xM(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:l}=r,c=o.axis,h=s.axis,d=PW(o,s,r),p=e.length;let m;for(let v=0;vn[r].axis===e).shift()}function AW(t,e){return Rl(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function RW(t,e,n){return Rl(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Uf(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const iw=t=>t==="reset"||t==="none",wM=(t,e)=>e?t:Object.assign({},t),jW=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:C5(n,!0),values:null};class Uo{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=_M(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Uf(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,m,v,y)=>p==="x"?m:p==="r"?y:v,o=n.xAxisID=re(r.xAxisID,rw(e,"x")),s=n.yAxisID=re(r.yAxisID,rw(e,"y")),l=n.rAxisID=re(r.rAxisID,rw(e,"r")),c=n.indexAxis,h=n.iAxisID=i(c,o,s,l),d=n.vAxisID=i(c,s,o,l);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&rM(this._data,this),e._stacked&&Uf(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(he(n))this._data=kW(n);else if(r!==n){if(r){rM(r,this);const i=this._cachedMeta;Uf(i),i._parsed=[]}n&&Object.isExtensible(n)&&_H(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=_M(n.vScale,n),n.stack!==r.stack&&(i=!0,Uf(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&xM(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,l=o.axis;let c=e===0&&n===i.length?!0:r._sorted,h=e>0&&r._parsed[e-1],d,p,m;if(this._parsing===!1)r._parsed=i,r._sorted=!0,m=i;else{Qe(i[e])?m=this.parseArrayData(r,i,e,n):he(i[e])?m=this.parseObjectData(r,i,e,n):m=this.parsePrimitiveData(r,i,e,n);const v=()=>p[l]===null||h&&p[l]_||p<_}for(m=0;m=0;--m)if(!y()){this.updateRangeFromParsed(h,e,v,c);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&ethis.getContext(r,i,n),_=h.resolveNamedOptions(m,v,y,p);return _.$shared&&(_.$shared=c,o[s]=Object.freeze(wM(_,c))),_}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,l=o[s];if(l)return l;let c;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,n),m=d.getOptionScopes(this.getDataset(),p);c=d.createResolver(m,this.getContext(e,r,n))}const h=new O5(i,c&&c.animations);return c&&c._cacheable&&(o[s]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||iw(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(e,n,r,i){iw(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!iw(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,e):o{for(h.length+=n,l=h.length-1;l>=s;l--)h[l]=h[l-n]};for(c(o),l=e;li-o))}return t._cache.$bar}function DW(t){const e=t.iScale,n=NW(e,t.type);let r=e._length,i,o,s,l;const c=()=>{s===32767||s===-32768||(ym(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(i=0,o=n.length;i0?i[t-1]:null,l=tMath.abs(l)&&(c=l,h=s),e[n.axis]=h,e._custom={barStart:c,barEnd:h,start:i,end:o,min:s,max:l}}function k5(t,e,n,r){return Qe(t)?BW(t,e,n,r):e[n.axis]=n.parse(t,r),e}function SM(t,e,n,r){const i=t.iScale,o=t.vScale,s=i.getLabels(),l=i===o,c=[];let h,d,p,m;for(h=n,d=n+r;h=n?1:-1)}function zW(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.basec.controller.options.grouped),o=r.options.stacked,s=[],l=c=>{const h=c.controller.getParsed(n),d=h&&h[c.vScale.axis];if(_e(d)||isNaN(d))return!0};for(const c of i)if(!(n!==void 0&&l(c))&&((o===!1||s.indexOf(c.stack)===-1||o===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o=0;--r)n=Math.max(n,e[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(e),l=i.getLabelForValue(s.x),c=o.getLabelForValue(s.y),h=s._custom;return{label:r[e]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,r,i){const o=i==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(n,i),d=s.axis,p=l.axis;for(let m=n;m_m(E,l,c,!0)?1:Math.max(O,O*n,k,k*n),y=(E,O,k)=>_m(E,l,c,!0)?-1:Math.min(O,O*n,k,k*n),_=v(0,h,p),T=v(wn,d,m),x=y(an,h,p),w=y(an+wn,d,m);r=(_-x)/2,i=(T-w)/2,o=-(_+x)/2,s=-(T+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class zc extends Uo{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=c=>+r[c];if(he(r[e])){const{key:c="value"}=this._parsing;o=h=>+xl(r[h],c)}let s,l;for(s=e,l=e+n;s0&&!isNaN(e)?Je*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Og(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,s,l,c;if(!e){for(i=0,o=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),St(zc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class By extends Uo{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=c5(n,i,s);this._drawStart=l,this._drawCount=c,u5(n)&&(l=0,c=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:h},e),this.updateElements(i,l,c,e)}updateElements(e,n,r,i){const o=i==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i),m=s.axis,v=l.axis,{spanGaps:y,segment:_}=this.options,T=Wh(y)?y:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",w=n+r,E=e.length;let O=n>0&&this.getParsed(n-1);for(let k=0;k=w){A.skip=!0;continue}const j=this.getParsed(k),B=_e(j[v]),N=A[m]=s.getPixelForValue(j[m],k),V=A[v]=o||B?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,j,c):j[v],k);A.skip=isNaN(N)||isNaN(V)||B,A.stop=k>0&&Math.abs(j[m]-O[m])>T,_&&(A.parsed=j,A.raw=h.data[k]),p&&(A.options=d||this.resolveDataElementOptions(k,P.active?"active":i)),x||this.updateElement(P,k,A,i),O=j}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}St(By,"id","line"),St(By,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),St(By,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Bp extends Uo{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Og(n._parsed[e].r,r.options.locale);return{label:i[e]||"",value:o}}parseObjectData(e,n,r,i){return y5.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),l=(o-s)/e.getVisibleDatasetCount();this.outerRadius=o-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,r,i){const o=i==="reset",s=this.chart,c=s.options.animation,h=this._cachedMeta.rScale,d=h.xCenter,p=h.yCenter,m=h.getIndexAngle(0)-.5*an;let v=m,y;const _=360/this.countVisibleElements();for(y=0;y{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Bo(this.resolveDataElementOptions(e,n).angle||r):0}}St(Bp,"id","polarArea"),St(Bp,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),St(Bp,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class rS extends zc{}St(rS,"id","pie"),St(rS,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class $y extends Uo{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return y5.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,l,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let l=n;l0&&this.getParsed(n-1);for(let O=n;O0&&Math.abs(P[v]-E[v])>x,T&&(A.parsed=P,A.raw=h.data[O]),m&&(A.options=p||this.resolveDataElementOptions(O,k.active?"active":i)),w||this.updateElement(k,O,A,i),E=P}this.updateSharedOptions(p,i,d)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=e.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}St(zy,"id","scatter"),St(zy,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),St(zy,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var YW=Object.freeze({__proto__:null,BarController:Iy,BubbleController:Fy,DoughnutController:zc,LineController:By,PieController:rS,PolarAreaController:Bp,RadarController:$y,ScatterController:zy});function xc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class iC{constructor(e){St(this,"options");this.options=e||{}}static override(e){Object.assign(iC.prototype,e)}init(){}formats(){return xc()}parse(){return xc()}format(){return xc()}add(){return xc()}diff(){return xc()}startOf(){return xc()}endOf(){return xc()}}var ZW={_date:iC};function GW(t,e,n,r){const{controller:i,data:o,_sorted:s}=t,l=i._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&o.length){const c=l._reversePixels?vH:ea;if(r){if(i._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(e);if(d){const p=c(o,e,n-d),m=c(o,e,n+d);return{lo:p.lo,hi:m.hi}}}}else return c(o,e,n)}return{lo:0,hi:o.length-1}}function Cg(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let l=0,c=o.length;l{c[s](e[n],i)&&(o.push({element:c,datasetIndex:h,index:d}),l=l||c.inRange(e.x,e.y,i))}),r&&!l?[]:o}var QW={evaluateInteractionItems:Cg,modes:{index(t,e,n,r){const i=Lc(e,t),o=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?sw(t,i,o,r,s):aw(t,i,o,!1,r,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(h=>{const d=l[0].index,p=h.data[d];p&&!p.skip&&c.push({element:p,datasetIndex:h.index,index:d})}),c):[]},dataset(t,e,n,r){const i=Lc(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?sw(t,i,o,r,s):aw(t,i,o,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,h=t.getDatasetMeta(c).data;l=[];for(let d=0;dn.pos===e)}function CM(t,e){return t.filter(n=>P5.indexOf(n.pos)===-1&&n.box.axis===e)}function Hf(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function JW(t){const e=[];let n,r,i,o,s,l;for(n=0,r=(t||[]).length;nh.box.fullSize),!0),r=Hf(Vf(e,"left"),!0),i=Hf(Vf(e,"right")),o=Hf(Vf(e,"top"),!0),s=Hf(Vf(e,"bottom")),l=CM(e,"x"),c=CM(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(c).concat(s).concat(l),chartArea:Vf(e,"chartArea"),vertical:r.concat(i).concat(c),horizontal:o.concat(s).concat(l)}}function kM(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function L5(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function rY(t,e,n,r){const{pos:i,box:o}=n,s=t.maxPadding;if(!he(i)){n.size&&(t[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?o.height:o.width),n.size=p.size/p.count,t[i]+=n.size}o.getPadding&&L5(s,o.getPadding());const l=Math.max(0,e.outerWidth-kM(s,t,"left","right")),c=Math.max(0,e.outerHeight-kM(s,t,"top","bottom")),h=l!==t.w,d=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:h,other:d}:{same:d,other:h}}function iY(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function oY(t,e){const n=e.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(e[s],n[s])}),o}return r(t?["left","right"]:["top","bottom"])}function yp(t,e,n,r){const i=[];let o,s,l,c,h,d;for(o=0,s=t.length,h=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const d=c.reduce((_,T)=>T.box.options&&T.box.options.display===!1?_:_+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/d,hBoxMaxHeight:s/2}),m=Object.assign({},i);L5(m,Dr(r));const v=Object.assign({maxPadding:m,w:o,h:s,x:i.left,y:i.top},i),y=eY(c.concat(h),p);yp(l.fullSize,v,p,y),yp(c,v,p,y),yp(h,v,p,y)&&yp(c,v,p,y),iY(v),PM(l.leftAndTop,v,p,y),v.x+=v.w,v.y+=v.h,PM(l.rightAndBottom,v,p,y),t.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},Me(l.chartArea,_=>{const T=_.box;Object.assign(T,t.chartArea),T.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class M5{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class sY extends M5{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Uy="$chartjs",aY={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},LM=t=>t===null||t==="";function lY(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Uy]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",LM(i)){const o=dM(t,"width");o!==void 0&&(t.width=o)}if(LM(r))if(t.style.height==="")t.height=t.width/(e||2);else{const o=dM(t,"height");o!==void 0&&(t.height=o)}return t}const A5=uW?{passive:!0}:!1;function cY(t,e,n){t.addEventListener(e,n,A5)}function uY(t,e,n){t.canvas.removeEventListener(e,n,A5)}function hY(t,e){const n=aY[t.type]||t.type,{x:r,y:i}=Lc(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function C_(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function dY(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||C_(l.addedNodes,r),s=s&&!C_(l.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function fY(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||C_(l.removedNodes,r),s=s&&!C_(l.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const xm=new Map;let MM=0;function R5(){const t=window.devicePixelRatio;t!==MM&&(MM=t,xm.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function pY(t,e){xm.size||window.addEventListener("resize",R5),xm.set(t,e)}function mY(t){xm.delete(t),xm.size||window.removeEventListener("resize",R5)}function gY(t,e,n){const r=t.canvas,i=r&&rC(r);if(!i)return;const o=l5((l,c)=>{const h=i.clientWidth;n(l,c),h{const c=l[0],h=c.contentRect.width,d=c.contentRect.height;h===0&&d===0||o(h,d)});return s.observe(i),pY(t,o),s}function lw(t,e,n){n&&n.disconnect(),e==="resize"&&mY(t)}function vY(t,e,n){const r=t.canvas,i=l5(o=>{t.ctx!==null&&n(hY(o,t))},t);return cY(r,e,i),i}class yY extends M5{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(lY(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Uy])return!1;const r=n[Uy].initial;["height","width"].forEach(o=>{const s=r[o];_e(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Uy],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),s={attach:dY,detach:fY,resize:gY}[n]||vY;i[n]=s(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:lw,detach:lw,resize:lw}[n]||uY)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return cW(e,n,r,i)}isAttached(e){const n=rC(e);return!!(n&&n.isConnected)}}function _Y(t){return!b5()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?sY:yY}var jy;let wa=(jy=class{constructor(){St(this,"x");St(this,"y");St(this,"active",!1);St(this,"options");St(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Wh(this.x)&&Wh(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},St(jy,"defaults",{}),St(jy,"defaultRoutes"),jy);function bY(t,e){const n=t.options.ticks,r=xY(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?SY(e):[],s=o.length,l=o[0],c=o[s-1],h=[];if(s>i)return TY(e,h,o,s/i),h;const d=wY(o,e,i);if(s>0){let p,m;const v=s>1?Math.round((c-l)/(s-1)):null;for(xv(e,h,d,_e(v)?0:l-v,l),p=0,m=s-1;pi)return c}return Math.max(i,1)}function SY(t){const e=[];let n,r;for(n=0,r=t.length;nt==="left"?"right":t==="right"?"left":t,AM=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,RM=(t,e)=>Math.min(e||t,t);function jM(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;os+l)))return c}function kY(t,e){Me(t,n=>{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Ci(n,Ci(r,n)),max:Ci(r,Ci(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ze(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=zH(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,m=d.highest.height,v=or(this.chart.width-p,0,this.maxWidth);l=e.offset?this.maxWidth/r:v/(r-1),p+6>l&&(l=v/(r-(e.offset?.5:1)),c=this.maxHeight-Wf(e.grid)-n.padding-NM(e.title,this.chart.options.font),h=Math.sqrt(p*p+m*m),s=qO(Math.min(Math.asin(or((d.highest.height+6)/l,-1,1)),Math.asin(or(c/h,-1,1))-Math.asin(or(m/h,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){ze(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ze(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=NM(i,n.options.font);if(l?(e.width=this.maxWidth,e.height=Wf(o)+c):(e.height=this.maxHeight,e.width=Wf(o)+c),r.display&&this.ticks.length){const{first:h,last:d,widest:p,highest:m}=this._getLabelSizes(),v=r.padding*2,y=Bo(this.labelRotation),_=Math.cos(y),T=Math.sin(y);if(l){const x=r.mirror?0:T*p.width+_*m.height;e.height=Math.min(this.maxHeight,e.height+x+v)}else{const x=r.mirror?0:_*p.width+T*m.height;e.width=Math.min(this.maxWidth,e.width+x+v)}this._calculatePadding(h,d,T,_)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:s},position:l}=this.options,c=this.labelRotation!==0,h=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,v=0;c?h?(m=i*e.width,v=r*n.height):(m=r*e.height,v=i*n.width):o==="start"?v=n.width:o==="end"?m=e.width:o!=="inner"&&(m=e.width/2,v=n.width/2),this.paddingLeft=Math.max((m-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-p+s)*this.width/(this.width-p),0)}else{let d=n.height/2,p=e.height/2;o==="start"?(d=0,p=e.height):o==="end"&&(d=n.height,p=0),this.paddingTop=d+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ze(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n({width:s[B]||0,height:l[B]||0});return{first:j(0),last:j(n-1),widest:j(P),highest:j(A),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return gH(this._alignToPixels?bc(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&el*i?l/r:c/i:c*i0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:l}=i,c=o.offset,h=this.isHorizontal(),p=this.ticks.length+(c?1:0),m=Wf(o),v=[],y=l.setContext(this.getContext()),_=y.display?y.width:0,T=_/2,x=function(et){return bc(r,et,_)};let w,E,O,k,P,A,j,B,N,V,Y,nt;if(s==="top")w=x(this.bottom),A=this.bottom-m,B=w-T,V=x(e.top)+T,nt=e.bottom;else if(s==="bottom")w=x(this.top),V=e.top,nt=x(e.bottom)-T,A=w+T,B=this.top+m;else if(s==="left")w=x(this.right),P=this.right-m,j=w-T,N=x(e.left)+T,Y=e.right;else if(s==="right")w=x(this.left),N=e.left,Y=x(e.right)-T,P=w+T,j=this.left+m;else if(n==="x"){if(s==="center")w=x((e.top+e.bottom)/2+.5);else if(he(s)){const et=Object.keys(s)[0],ct=s[et];w=x(this.chart.scales[et].getPixelForValue(ct))}V=e.top,nt=e.bottom,A=w+T,B=A+m}else if(n==="y"){if(s==="center")w=x((e.left+e.right)/2);else if(he(s)){const et=Object.keys(s)[0],ct=s[et];w=x(this.chart.scales[et].getPixelForValue(ct))}P=w-T,j=P-m,N=e.left,Y=e.right}const K=re(i.ticks.maxTicksLimit,p),J=Math.max(1,Math.ceil(p/K));for(E=0;Eo.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,s;const l=(c,h,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(h.x,h.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),s=e[n].split("."),l=s.pop(),c=s.join(".");Sn.route(o,i,c,l)})}function NY(t){return"id"in t&&"defaults"in t}class DY{constructor(){this.controllers=new wv(Uo,"datasets",!0),this.elements=new wv(wa,"elements"),this.plugins=new wv(Object,"plugins"),this.scales=new wv(ku,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):Me(i,s=>{const l=r||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,n,r){const i=GO(e);ze(r["before"+i],[],r),n[e](r),ze(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;no.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function FY(t){const e={},n=[],r=Object.keys(Qo.plugins.items);for(let o=0;o1&&DM(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function IM(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function WY(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return IM(t,"x",n[0])||IM(t,"y",n[0])}return{}}function YY(t,e){const n=uu[t.type]||{scales:{}},r=e.scales||{},i=iS(t.type,e),o=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!he(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=oS(s,l,WY(s,t),Sn.scales[l.type]),h=VY(c,i),d=n.scales||{};o[s]=Np(Object.create(null),[{axis:c},l,d[c],d[h]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||iS(l,e),d=(uu[l]||{}).scales||{};Object.keys(d).forEach(p=>{const m=UY(p,c),v=s[m+"AxisID"]||m;o[v]=o[v]||Object.create(null),Np(o[v],[{axis:m},r[v],d[p]])})}),Object.keys(o).forEach(s=>{const l=o[s];Np(l,[Sn.scales[l.type],Sn.scale])}),o}function j5(t){const e=t.options||(t.options={});e.plugins=re(e.plugins,{}),e.scales=YY(t,e)}function N5(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function ZY(t){return t=t||{},t.data=N5(t.data),j5(t),t}const FM=new Map,D5=new Set;function Sv(t,e){let n=FM.get(t);return n||(n=e(),FM.set(t,n),D5.add(n)),n}const Yf=(t,e,n)=>{const r=xl(e,n);r!==void 0&&t.add(r)};class GY{constructor(e){this._config=ZY(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=N5(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),j5(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Sv(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Sv(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Sv(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Sv(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,s=this._cachedScopes(e,r),l=s.get(n);if(l)return l;const c=new Set;n.forEach(d=>{e&&(c.add(e),d.forEach(p=>Yf(c,e,p))),d.forEach(p=>Yf(c,i,p)),d.forEach(p=>Yf(c,uu[o]||{},p)),d.forEach(p=>Yf(c,Sn,p)),d.forEach(p=>Yf(c,eS,p))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),D5.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,uu[n]||{},Sn.datasets[n]||{},{type:n},Sn,eS]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:l}=BM(this._resolverCache,e,i);let c=s;if(KY(s,n)){o.$shared=!1,r=wl(r)?r():r;const h=this.createResolver(e,r,l);c=Yh(s,r,h)}for(const h of n)o[h]=c[h];return o}createResolver(e,n,r=[""],i){const{resolver:o}=BM(this._resolverCache,e,r);return he(n)?Yh(o,n,void 0,i):o}}function BM(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:tC(e,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(i,o)),o}const qY=t=>he(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||wl(t[n]),!1);function KY(t,e){const{isScriptable:n,isIndexable:r}=p5(t);for(const i of e){const o=n(i),s=r(i),l=(s||o)&&t[i];if(o&&(wl(l)||qY(l))||s&&Qe(l))return!0}return!1}var XY="4.3.3";const QY=["top","bottom","left","right","chartArea"];function $M(t,e){return t==="top"||t==="bottom"||QY.indexOf(t)===-1&&e==="x"}function zM(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function UM(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ze(n&&n.onComplete,[t],e)}function JY(t){const e=t.chart,n=e.options.animation;ze(n&&n.onProgress,[t],e)}function I5(t){return b5()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Vy={},VM=t=>{const e=I5(t);return Object.values(Vy).filter(n=>n.canvas===e).pop()};function tZ(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const s=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=s)}}}function eZ(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function nZ(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}class Ba{static register(...e){Qo.add(...e),HM()}static unregister(...e){Qo.remove(...e),HM()}constructor(e,n){const r=this.config=new GY(n),i=I5(e),o=VM(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||_Y(i)),this.platform.updateConfig(r);const l=this.platform.acquireContext(i,s.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;if(this.id=iH(),this.ctx=l,this.canvas=c,this.width=d,this.height=h,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new IY,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=bH(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],Vy[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Ws.listen(this,"complete",UM),Ws.listen(this,"progress",JY),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return _e(e)?n&&o?o:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hM(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return lM(this.canvas,this.ctx),this}stop(){return Ws.stop(this),this}resize(e,n){Ws.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,n,o),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,hM(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),ze(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Me(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const l=n[s],c=oS(s,l),h=c==="r",d=c==="x";return{options:l,dposition:h?"chartArea":d?"bottom":"left",dtype:h?"radialLinear":d?"category":"linear"}}))),Me(o,s=>{const l=s.options,c=l.id,h=oS(c,l),d=re(l.type,s.dtype);(l.position===void 0||$M(l.position,h)!==$M(s.dposition))&&(l.position=s.dposition),i[c]=!0;let p=null;if(c in r&&r[c].type===d)p=r[c];else{const m=Qo.getScale(d);p=new m({id:c,type:d,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(l,e)}),Me(i,(s,l)=>{s||delete r[l]}),Me(r,s=>{Nr.configure(this,s,s.options),Nr.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let h=0,d=this.data.datasets.length;h{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(zM("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Me(this.scales,e=>{Nr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!JL(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;tZ(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(e.filter(s=>s[0]===o).map((s,l)=>l+","+s.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Nr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Me(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,o=nZ(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&bb(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),i&&xb(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return na(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const o=QW.modes[n];return typeof o=="function"?o(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Rl(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(e),s=o.controller._resolveAnimations(void 0,i);ym(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(o,{visible:r}),this.update(l=>l.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Ws.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,o,s),e[o]=s},i=(o,s,l)=>{o.offsetX=s,o.offsetY=l,this._eventHandler(o)};Me(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(c,h)=>{n.addEventListener(this,c,h),e[c]=h},i=(c,h)=>{e[c]&&(n.removeEventListener(this,c,h),delete e[c])},o=(c,h)=>{this.canvas&&this.resize(c,h)};let s;const l=()=>{i("attach",l),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){Me(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Me(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let o,s,l,c;for(n==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=e.length;l{const l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[s],index:s}});!w_(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,o=(c,h)=>c.filter(d=>!h.some(p=>d.datasetIndex===p.datasetIndex&&d.index===p.index)),s=o(n,e),l=r?e:o(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:o}=this,s=n,l=this._getActiveElements(e,i,r,s),c=uH(e),h=eZ(e,this._lastEvent,r,c);r&&(this._lastEvent=null,ze(o.onHover,[e,l,this],this),c&&ze(o.onClick,[e,l,this],this));const d=!w_(l,i);return(d||n)&&(this._active=l,this._updateHoverStyles(l,i,n)),this._lastEvent=h,d}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,i)}}St(Ba,"defaults",Sn),St(Ba,"instances",Vy),St(Ba,"overrides",uu),St(Ba,"registry",Qo),St(Ba,"version",XY),St(Ba,"getChart",VM);function HM(){return Me(Ba.instances,t=>t._plugins.invalidate())}function rZ(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:l,innerRadius:c}=e;let h=i/l;t.beginPath(),t.arc(o,s,l,r-h,n+h),c>i?(h=i/c,t.arc(o,s,c,n+h,r-h,!0)):t.arc(o,s,i,n+wn,r-wn),t.closePath(),t.clip()}function iZ(t){return JO(t,["outerStart","outerEnd","innerStart","innerEnd"])}function oZ(t,e,n,r){const i=iZ(t.options.borderRadius),o=(n-e)/2,s=Math.min(o,r*e/2),l=c=>{const h=(n-Math.min(o,c))*r/2;return or(c,0,Math.min(o,h))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:or(i.innerStart,0,s),innerEnd:or(i.innerEnd,0,s)}}function Zu(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function k_(t,e,n,r,i,o){const{x:s,y:l,startAngle:c,pixelMargin:h,innerRadius:d}=e,p=Math.max(e.outerRadius+r+n-h,0),m=d>0?d+r+n+h:0;let v=0;const y=i-c;if(r){const J=d>0?d-r:0,et=p>0?p-r:0,ct=(J+et)/2,G=ct!==0?y*ct/(ct+r):y;v=(y-G)/2}const _=Math.max(.001,y*p-n/an)/p,T=(y-_)/2,x=c+T+v,w=i-T-v,{outerStart:E,outerEnd:O,innerStart:k,innerEnd:P}=oZ(e,m,p,w-x),A=p-E,j=p-O,B=x+E/A,N=w-O/j,V=m+k,Y=m+P,nt=x+k/V,K=w-P/Y;if(t.beginPath(),o){const J=(B+N)/2;if(t.arc(s,l,p,B,J),t.arc(s,l,p,J,N),O>0){const $=Zu(j,N,s,l);t.arc($.x,$.y,O,N,w+wn)}const et=Zu(Y,w,s,l);if(t.lineTo(et.x,et.y),P>0){const $=Zu(Y,K,s,l);t.arc($.x,$.y,P,w+wn,K+Math.PI)}const ct=(w-P/m+(x+k/m))/2;if(t.arc(s,l,m,w-P/m,ct,!0),t.arc(s,l,m,ct,x+k/m,!0),k>0){const $=Zu(V,nt,s,l);t.arc($.x,$.y,k,nt+Math.PI,x-wn)}const G=Zu(A,x,s,l);if(t.lineTo(G.x,G.y),E>0){const $=Zu(A,B,s,l);t.arc($.x,$.y,E,x-wn,B)}}else{t.moveTo(s,l);const J=Math.cos(B)*p+s,et=Math.sin(B)*p+l;t.lineTo(J,et);const ct=Math.cos(N)*p+s,G=Math.sin(N)*p+l;t.lineTo(ct,G)}t.closePath()}function sZ(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:l}=e;let c=e.endAngle;if(o){k_(t,e,n,r,c,i);for(let h=0;h=Je||_m(s,c,h),T=ta(l,d+v,p+v);return _&&T}getCenterPoint(n){const{x:r,y:i,startAngle:o,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:d}=this.options,p=(o+s)/2,m=(l+c+d+h)/2;return{x:r+Math.cos(p)*m,y:i+Math.sin(p)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,o=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Je?Math.floor(i/Je):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*o,Math.sin(c)*o);const h=1-Math.sin(Math.min(an,i||0)),d=o*h;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,sZ(n,this,d,s,l),aZ(n,this,d,s,l),n.restore()}}St(_p,"id","arc"),St(_p,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),St(_p,"defaultRoutes",{backgroundColor:"backgroundColor"}),St(_p,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function F5(t,e,n=e){t.lineCap=re(n.borderCapStyle,e.borderCapStyle),t.setLineDash(re(n.borderDash,e.borderDash)),t.lineDashOffset=re(n.borderDashOffset,e.borderDashOffset),t.lineJoin=re(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=re(n.borderWidth,e.borderWidth),t.strokeStyle=re(n.borderColor,e.borderColor)}function lZ(t,e,n){t.lineTo(n.x,n.y)}function cZ(t){return t.stepped?AH:t.tension||t.cubicInterpolationMode==="monotone"?RH:lZ}function B5(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:s,end:l}=e,c=Math.max(i,s),h=Math.min(o,l),d=il&&o>l;return{count:r,start:c,loop:e.loop,ilen:h(s+(h?l-O:O))%o,E=()=>{_!==T&&(t.lineTo(d,T),t.lineTo(d,_),t.lineTo(d,x))};for(c&&(v=i[w(0)],t.moveTo(v.x,v.y)),m=0;m<=l;++m){if(v=i[w(m)],v.skip)continue;const O=v.x,k=v.y,P=O|0;P===y?(k<_?_=k:k>T&&(T=k),d=(p*d+O)/++p):(E(),t.lineTo(O,k),y=P,p=0,_=T=k),x=k}E()}function sS(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?hZ:uZ}function dZ(t){return t.stepped?hW:t.tension||t.cubicInterpolationMode==="monotone"?dW:Mc}function fZ(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),F5(t,e.options),t.stroke(i)}function pZ(t,e,n,r){const{segments:i,options:o}=e,s=sS(e);for(const l of i)F5(t,o,l.style),t.beginPath(),s(t,e,l,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const mZ=typeof Path2D=="function";function gZ(t,e,n,r){mZ&&!e.options.segment?fZ(t,e,n,r):pZ(t,e,n,r)}class qa extends wa{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;rW(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=yW(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],o=this.points,s=E5(this,{property:n,start:i,end:i});if(!s.length)return;const l=[],c=dZ(r);let h,d;for(h=0,d=s.length;he!=="borderDash"&&e!=="fill"});function WM(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function z5(t){return aS[t%aS.length]}function U5(t){return YM[t%YM.length]}function SZ(t,e){return t.borderColor=z5(e),t.backgroundColor=U5(e),++e}function TZ(t,e){return t.backgroundColor=t.data.map(()=>z5(e++)),e}function EZ(t,e){return t.backgroundColor=t.data.map(()=>U5(e++)),e}function OZ(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof zc?e=TZ(n,e):i instanceof Bp?e=EZ(n,e):i&&(e=SZ(n,e))}}function ZM(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function CZ(t){return t&&(t.borderColor||t.backgroundColor)}var kZ={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=t.config,{elements:o}=i;if(!n.forceOverride&&(ZM(r)||CZ(i)||o&&ZM(o)))return;const s=OZ(t);r.forEach(s)}};function PZ(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const s=[],l=(n-2)/(o-2);let c=0;const h=e+n-1;let d=e,p,m,v,y,_;for(s[c++]=t[d],p=0;pv&&(v=y,m=t[w],_=w);s[c++]=m,d=_}return s[c++]=t[h],s}function LZ(t,e,n,r){let i=0,o=0,s,l,c,h,d,p,m,v,y,_;const T=[],x=e+n-1,w=t[e].x,O=t[x].x-w;for(s=e;s_&&(_=h,m=s),i=(o*i+l.x)/++o;else{const P=s-1;if(!_e(p)&&!_e(m)){const A=Math.min(p,m),j=Math.max(p,m);A!==v&&A!==P&&T.push({...t[A],x:i}),j!==v&&j!==P&&T.push({...t[j],x:i})}s>0&&P!==v&&T.push(t[P]),T.push(l),d=k,o=0,y=_=h,p=m=v=s}}return T}function V5(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function GM(t){t.data.datasets.forEach(e=>{V5(e)})}function MZ(t,e){const n=e.length;let r=0,i;const{iScale:o}=t,{min:s,max:l,minDefined:c,maxDefined:h}=o.getUserBounds();return c&&(r=or(ea(e,o.axis,s).lo,0,n-1)),h?i=or(ea(e,o.axis,l).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var AZ={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){GM(t);return}const r=t.width;t.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:l}=i,c=t.getDatasetMeta(o),h=s||i.data;if(vp([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const d=t.scales[c.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:p,count:m}=MZ(c,h);const v=n.threshold||4*r;if(m<=v){V5(i);return}_e(s)&&(i._data=h,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(_){this._data=_}}));let y;switch(n.algorithm){case"lttb":y=PZ(h,p,m,r,n);break;case"min-max":y=LZ(h,p,m,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=y})},destroy(t){GM(t)}};function RZ(t,e,n){const r=t.segments,i=t.points,o=e.points,s=[];for(const l of r){let{start:c,end:h}=l;h=oC(c,h,i);const d=lS(n,i[c],i[h],l.loop);if(!e.segments){s.push({source:l,target:d,start:i[c],end:i[h]});continue}const p=E5(e,d);for(const m of p){const v=lS(n,o[m.start],o[m.end],m.loop),y=T5(l,i,v);for(const _ of y)s.push({source:_,target:m,start:{[n]:qM(d,v,"start",Math.max)},end:{[n]:qM(d,v,"end",Math.min)}})}}return s}function lS(t,e,n,r){if(r)return;let i=e[t],o=n[t];return t==="angle"&&(i=Li(i),o=Li(o)),{property:t,start:i,end:o}}function jZ(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach(({start:s,end:l})=>{l=oC(s,l,i);const c=i[s],h=i[l];r!==null?(o.push({x:c.x,y:r}),o.push({x:h.x,y:r})):n!==null&&(o.push({x:n,y:c.y}),o.push({x:n,y:h.y}))}),o}function oC(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function qM(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function H5(t,e){let n=[],r=!1;return Qe(t)?(r=!0,n=t):n=jZ(t,e),n.length?new qa({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function KM(t){return t&&t.fill!==!1}function NZ(t,e,n){let i=t[e].fill;const o=[e];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!xn(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function DZ(t,e,n){const r=$Z(t);if(he(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return xn(i)&&Math.floor(i)===i?IZ(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function IZ(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function FZ(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:he(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function BZ(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:he(t)?r=t.value:r=e.getBaseValue(),r}function $Z(t){const e=t.options,n=e.fill;let r=re(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function zZ(t){const{scale:e,index:n,line:r}=t,i=[],o=r.segments,s=r.points,l=UZ(e,n);l.push(H5({x:null,y:e.bottom},r));for(let c=0;c=0;--s){const l=i[s].$filler;l&&(l.line.updateControlPoints(o,l.axis),r&&l.fill&&hw(t.ctx,l,o))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;KM(o)&&hw(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!KM(r)||n.drawTime!=="beforeDatasetDraw"||hw(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const tA=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},JZ=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class eA extends wa{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=ze(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Kn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=tA(r,o);let h,d;n.font=i.string,this.isHorizontal()?(h=this.maxWidth,d=this._fitRows(s,o,l,c)+10):(d=this.maxHeight,h=this._fitCols(s,i,l,c)+10),this.width=Math.min(h,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.lineWidths=[0],d=i+l;let p=e;o.textAlign="left",o.textBaseline="middle";let m=-1,v=-d;return this.legendItems.forEach((y,_)=>{const T=r+n/2+o.measureText(y.text).width;(_===0||h[h.length-1]+T+2*l>s)&&(p+=d,h[h.length-(_>0?0:1)]=0,v+=d,m++),c[_]={left:0,top:v,row:m,width:T,height:i},h[h.length-1]+=T+l}),p}_fitCols(e,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],h=this.columnSizes=[],d=s-e;let p=l,m=0,v=0,y=0,_=0;return this.legendItems.forEach((T,x)=>{const{itemWidth:w,itemHeight:E}=tG(r,n,o,T,i);x>0&&v+E+2*l>d&&(p+=m+l,h.push({width:m,height:v}),y+=m+l,_++,m=v=0),c[x]={left:y,top:v,col:_,width:w,height:E},m=Math.max(m,w),v+=E+l}),p+=m,h.push({width:m,height:v}),p}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=Ah(o,this.left,this.width);if(this.isHorizontal()){let l=0,c=Mr(r,this.left+i,this.right-this.lineWidths[l]);for(const h of n)l!==h.row&&(l=h.row,c=Mr(r,this.left+i,this.right-this.lineWidths[l])),h.top+=this.top+e+i,h.left=s.leftForLtr(s.x(c),h.width),c+=h.width+i}else{let l=0,c=Mr(r,this.top+e+i,this.bottom-this.columnSizes[l].height);for(const h of n)h.col!==l&&(l=h.col,c=Mr(r,this.top+e+i,this.bottom-this.columnSizes[l].height)),h.top=c,h.left+=this.left+i,h.left=s.leftForLtr(s.x(h.left),h.width),c+=h.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;bb(e,this),this._draw(),xb(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=e,l=Sn.color,c=Ah(e.rtl,this.left,this.width),h=Kn(s.font),{padding:d}=s,p=h.size,m=p/2;let v;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=h.string;const{boxWidth:y,boxHeight:_,itemHeight:T}=tA(s,p),x=function(P,A,j){if(isNaN(y)||y<=0||isNaN(_)||_<0)return;i.save();const B=re(j.lineWidth,1);if(i.fillStyle=re(j.fillStyle,l),i.lineCap=re(j.lineCap,"butt"),i.lineDashOffset=re(j.lineDashOffset,0),i.lineJoin=re(j.lineJoin,"miter"),i.lineWidth=B,i.strokeStyle=re(j.strokeStyle,l),i.setLineDash(re(j.lineDash,[])),s.usePointStyle){const N={radius:_*Math.SQRT2/2,pointStyle:j.pointStyle,rotation:j.rotation,borderWidth:B},V=c.xPlus(P,y/2),Y=A+m;d5(i,N,V,Y,s.pointStyleWidth&&y)}else{const N=A+Math.max((p-_)/2,0),V=c.leftForLtr(P,y),Y=qc(j.borderRadius);i.beginPath(),Object.values(Y).some(nt=>nt!==0)?bm(i,{x:V,y:N,w:y,h:_,radius:Y}):i.rect(V,N,y,_),i.fill(),B!==0&&i.stroke()}i.restore()},w=function(P,A,j){hu(i,j.text,P,A+T/2,h,{strikethrough:j.hidden,textAlign:c.textAlign(j.textAlign)})},E=this.isHorizontal(),O=this._computeTitleHeight();E?v={x:Mr(o,this.left+d,this.right-r[0]),y:this.top+d+O,line:0}:v={x:this.left+d,y:Mr(o,this.top+O+d,this.bottom-n[0].height),line:0},x5(this.ctx,e.textDirection);const k=T+d;this.legendItems.forEach((P,A)=>{i.strokeStyle=P.fontColor,i.fillStyle=P.fontColor;const j=i.measureText(P.text).width,B=c.textAlign(P.textAlign||(P.textAlign=s.textAlign)),N=y+m+j;let V=v.x,Y=v.y;c.setWidth(this.width),E?A>0&&V+N+d>this.right&&(Y=v.y+=k,v.line++,V=v.x=Mr(o,this.left+d,this.right-r[v.line])):A>0&&Y+k>this.bottom&&(V=v.x=V+n[v.line].width+d,v.line++,Y=v.y=Mr(o,this.top+O+d,this.bottom-n[v.line].height));const nt=c.x(V);if(x(nt,Y,P),V=xH(B,V+y+m,E?V+N:this.right,e.rtl),w(c.x(V),Y,P),E)v.x+=N+d;else if(typeof P.text!="string"){const K=h.lineHeight;v.y+=Y5(P,K)+d}else v.y+=k}),w5(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Kn(n.font),i=Dr(n.padding);if(!n.display)return;const o=Ah(e.rtl,this.left,this.width),s=this.ctx,l=n.position,c=r.size/2,h=i.top+c;let d,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),d=this.top+h,p=Mr(e.align,p,this.right-m);else{const y=this.columnSizes.reduce((_,T)=>Math.max(_,T.height),0);d=h+Mr(e.align,this.top,this.bottom-y-e.labels.padding-this._computeTitleHeight())}const v=Mr(l,p,p+m);s.textAlign=o.textAlign(XO(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,hu(s,n.text,v,d,r)}_computeTitleHeight(){const e=this.options.title,n=Kn(e.font),r=Dr(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,o;if(ta(e,this.left,this.right)&&ta(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>s.length?o:s)),e+n.size/2+r.measureText(i).width}function nG(t,e,n){let r=t;return typeof e.text!="string"&&(r=Y5(e,n)),r}function Y5(t,e){const n=t.text?t.text.length:0;return e*n}function rG(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var iG={id:"legend",_element:eA,start(t,e,n){const r=t.legend=new eA({ctx:t.ctx,options:n,chart:t});Nr.configure(t,r,n),Nr.addBox(t,r)},stop(t){Nr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Nr.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const h=c.controller.getStyle(n?0:void 0),d=Dr(h.borderWidth);return{text:e[c.index].label,fillStyle:h.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:h.borderColor,pointStyle:r||h.pointStyle,rotation:h.rotation,textAlign:i||h.textAlign,borderRadius:s&&(l||h.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class sC extends wa{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Qe(r.text)?r.text.length:1;this._padding=Dr(r.padding);const o=i*Kn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:o,options:s}=this,l=s.align;let c=0,h,d,p;return this.isHorizontal()?(d=Mr(l,r,o),p=n+e,h=o-r):(s.position==="left"?(d=r+e,p=Mr(l,i,n),c=an*-.5):(d=o-e,p=Mr(l,n,i),c=an*.5),h=i-n),{titleX:d,titleY:p,maxWidth:h,rotation:c}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Kn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:h}=this._drawArgs(o);hu(e,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:h,textAlign:XO(n.align),textBaseline:"middle",translation:[s,l]})}}function oG(t,e){const n=new sC({ctx:t.ctx,options:e,chart:t});Nr.configure(t,n,e),Nr.addBox(t,n),t.titleBlock=n}var sG={id:"title",_element:sC,start(t,e,n){oG(t,n)},stop(t){const e=t.titleBlock;Nr.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Nr.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Tv=new WeakMap;var aG={id:"subtitle",start(t,e,n){const r=new sC({ctx:t.ctx,options:n,chart:t});Nr.configure(t,r,n),Nr.addBox(t,r),Tv.set(t,r)},stop(t){Nr.removeBox(t,Tv.get(t)),Tv.delete(t)},beforeUpdate(t,e,n){const r=Tv.get(t);Nr.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const bp={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e-1?t.split(` +`):t}function lG(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:s,value:l}=o.getLabelAndValue(i);return{chart:t,label:s,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function nA(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:s,boxHeight:l}=e,c=Kn(e.bodyFont),h=Kn(e.titleFont),d=Kn(e.footerFont),p=o.length,m=i.length,v=r.length,y=Dr(e.padding);let _=y.height,T=0,x=r.reduce((O,k)=>O+k.before.length+k.lines.length+k.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,p&&(_+=p*h.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),x){const O=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=v*O+(x-v)*c.lineHeight+(x-1)*e.bodySpacing}m&&(_+=e.footerMarginTop+m*d.lineHeight+(m-1)*e.footerSpacing);let w=0;const E=function(O){T=Math.max(T,n.measureText(O).width+w)};return n.save(),n.font=h.string,Me(t.title,E),n.font=c.string,Me(t.beforeBody.concat(t.afterBody),E),w=e.displayColors?s+2+e.boxPadding:0,Me(r,O=>{Me(O.before,E),Me(O.lines,E),Me(O.after,E)}),w=0,n.font=d.string,Me(t.footer,E),n.restore(),T+=y.width,{width:T,height:_}}function cG(t,e){const{y:n,height:r}=e;return nt.height-r/2?"bottom":"center"}function uG(t,e,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(t==="left"&&i+o+s>e.width||t==="right"&&i-o-s<0)return!0}function hG(t,e,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:l,right:c}}=t;let h="center";return r==="center"?h=i<=(l+c)/2?"left":"right":i<=o/2?h="left":i>=s-o/2&&(h="right"),uG(h,t,e,n)&&(h="center"),h}function rA(t,e,n){const r=n.yAlign||e.yAlign||cG(t,n);return{xAlign:n.xAlign||e.xAlign||hG(t,e,n,r),yAlign:r}}function dG(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function fG(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function iA(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=t,{xAlign:l,yAlign:c}=n,h=i+o,{topLeft:d,topRight:p,bottomLeft:m,bottomRight:v}=qc(s);let y=dG(e,l);const _=fG(e,c,h);return c==="center"?l==="left"?y+=h:l==="right"&&(y-=h):l==="left"?y-=Math.max(d,m)+i:l==="right"&&(y+=Math.max(p,v)+i),{x:or(y,0,r.width-e.width),y:or(_,0,r.height-e.height)}}function Ev(t,e,n){const r=Dr(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function oA(t){return Xo([],Ys(t))}function pG(t,e,n){return Rl(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function sA(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Z5={beforeTitle:Hs,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex"u"?Z5[e].call(n,r):i}var Q2;let aA=(Q2=class extends wa{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new O5(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=pG(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=ti(r,"beforeTitle",this,e),o=ti(r,"title",this,e),s=ti(r,"afterTitle",this,e);let l=[];return l=Xo(l,Ys(i)),l=Xo(l,Ys(o)),l=Xo(l,Ys(s)),l}getBeforeBody(e,n){return oA(ti(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return Me(e,o=>{const s={before:[],lines:[],after:[]},l=sA(r,o);Xo(s.before,Ys(ti(l,"beforeLabel",this,o))),Xo(s.lines,ti(l,"label",this,o)),Xo(s.after,Ys(ti(l,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(e,n){return oA(ti(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=ti(r,"beforeFooter",this,e),o=ti(r,"footer",this,e),s=ti(r,"afterFooter",this,e);let l=[];return l=Xo(l,Ys(i)),l=Xo(l,Ys(o)),l=Xo(l,Ys(s)),l}_createItems(e){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let l=[],c,h;for(c=0,h=n.length;ce.filter(d,p,m,r))),e.itemSort&&(l=l.sort((d,p)=>e.itemSort(d,p,r))),Me(l,d=>{const p=sA(e.callbacks,d);i.push(ti(p,"labelColor",this,d)),o.push(ti(p,"labelPointStyle",this,d)),s.push(ti(p,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=l,l}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const l=bp[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=nA(this,r),h=Object.assign({},l,c),d=rA(this.chart,r,h),p=iA(r,h,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:p.x,y:p.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const o=this.getCaretPosition(e,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:h,bottomLeft:d,bottomRight:p}=qc(l),{x:m,y:v}=e,{width:y,height:_}=n;let T,x,w,E,O,k;return o==="center"?(O=v+_/2,i==="left"?(T=m,x=T-s,E=O+s,k=O-s):(T=m+y,x=T+s,E=O-s,k=O+s),w=T):(i==="left"?x=m+Math.max(c,d)+s:i==="right"?x=m+y-Math.max(h,p)-s:x=this.caretX,o==="top"?(E=v,O=E-s,T=x-s,w=x+s):(E=v+_,O=E+s,T=x+s,w=x-s),k=E),{x1:T,x2:x,x3:w,y1:E,y2:O,y3:k}}drawTitle(e,n,r){const i=this.title,o=i.length;let s,l,c;if(o){const h=Ah(r.rtl,this.x,this.width);for(e.x=Ev(this,r.titleAlign,r),n.textAlign=h.textAlign(r.titleAlign),n.textBaseline="middle",s=Kn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,c=0;cw!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,bm(e,{x:_,y,w:h,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),bm(e,{x:T,y:y+1,w:h-2,h:c-2,radius:x}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(_,y,h,c),e.strokeRect(_,y,h,c),e.fillStyle=s.backgroundColor,e.fillRect(T,y+1,h-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:h,boxPadding:d}=r,p=Kn(r.bodyFont);let m=p.lineHeight,v=0;const y=Ah(r.rtl,this.x,this.width),_=function(j){n.fillText(j,y.x(e.x+v),e.y+m/2),e.y+=m+o},T=y.textAlign(s);let x,w,E,O,k,P,A;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=Ev(this,T,r),n.fillStyle=r.bodyColor,Me(this.beforeBody,_),v=l&&T!=="right"?s==="center"?h/2+d:h+2+d:0,O=0,P=i.length;O0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=bp[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=nA(this,e),c=Object.assign({},s,this._size),h=rA(n,e,c),d=iA(e,c,h,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Dr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,i,n),x5(e,n.textDirection),o.y+=s.top,this.drawTitle(o,e,n),this.drawBody(o,e,n),this.drawFooter(o,e,n),w5(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:l,index:c})=>{const h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[c],index:c}}),o=!w_(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(e,o,n,r),l=this._positionChanged(s,e),c=n||!w_(s,o)||l;return c&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,r,i){const o=this.options;if(e.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:i,options:o}=this,s=bp[o.position].call(this,e,n);return s!==!1&&(r!==s.x||i!==s.y)}},St(Q2,"positioners",bp),Q2);var mG={id:"tooltip",_element:aA,positioners:bp,afterInit(t,e,n){n&&(t.tooltip=new aA({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Z5},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gG=Object.freeze({__proto__:null,Colors:kZ,Decimation:AZ,Filler:QZ,Legend:iG,SubTitle:aG,Title:sG,Tooltip:mG});const vG=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function yG(t,e,n,r){const i=t.indexOf(e);if(i===-1)return vG(t,e,n,r);const o=t.lastIndexOf(e);return i!==o?n:i}const _G=(t,e)=>t===null?null:or(Math.round(t),0,e);function lA(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}St(cS,"id","category"),St(cS,"defaults",{ticks:{callback:lA}});function bG(t,e){const n=[],{bounds:i,step:o,min:s,max:l,precision:c,count:h,maxTicks:d,maxDigits:p,includeBounds:m}=t,v=o||1,y=d-1,{min:_,max:T}=e,x=!_e(s),w=!_e(l),E=!_e(h),O=(T-_)/(p+1);let k=eM((T-_)/y/v)*v,P,A,j,B;if(k<1e-14&&!x&&!w)return[{value:_},{value:T}];B=Math.ceil(T/k)-Math.floor(_/k),B>y&&(k=eM(B*k/y/v)*v),_e(c)||(P=Math.pow(10,c),k=Math.ceil(k*P)/P),i==="ticks"?(A=Math.floor(_/k)*k,j=Math.ceil(T/k)*k):(A=_,j=T),x&&w&&o&&pH((l-s)/o,k/1e3)?(B=Math.round(Math.min((l-s)/k,d)),k=(l-s)/B,A=s,j=l):E?(A=x?s:A,j=w?l:j,B=h-1,k=(j-A)/B):(B=(j-A)/k,Dp(B,Math.round(B),k/1e3)?B=Math.round(B):B=Math.ceil(B));const N=Math.max(nM(k),nM(A));P=Math.pow(10,_e(c)?N:c),A=Math.round(A*P)/P,j=Math.round(j*P)/P;let V=0;for(x&&(m&&A!==s?(n.push({value:s}),Al)break;n.push({value:Y})}return w&&m&&j!==l?n.length&&Dp(n[n.length-1].value,l,cA(l,O,t))?n[n.length-1].value=l:n.push({value:l}):(!w||j===l)&&n.push({value:j}),n}function cA(t,e,{horizontal:n,minRotation:r}){const i=Bo(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class P_ extends ku{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return _e(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=c=>i=n?i:c,l=c=>o=r?o:c;if(e){const c=us(i),h=us(o);c<0&&h<0?l(0):c>0&&h>0&&s(0)}if(i===o){let c=o===0?1:Math.abs(o*.05);l(o+c),e||s(i-c)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=bG(i,o);return e.bounds==="ticks"&&r5(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Og(e,this.chart.options.locale,this.options.ticks.format)}}class uS extends P_{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=xn(e)?e:0,this.max=xn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Bo(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}St(uS,"id","linear"),St(uS,"defaults",{ticks:{callback:_b.formatters.numeric}});const wm=t=>Math.floor(Ga(t)),wc=(t,e)=>Math.pow(10,wm(t)+e);function uA(t){return t/Math.pow(10,wm(t))===1}function hA(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function xG(t,e){const n=e-t;let r=wm(n);for(;hA(t,e,r)>10;)r++;for(;hA(t,e,r)<10;)r--;return Math.min(r,wm(t))}function wG(t,{min:e,max:n}){e=Ci(t.min,e);const r=[],i=wm(e);let o=xG(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=i>o?Math.pow(10,i):0,h=Math.round((e-c)*s)/s,d=Math.floor((e-c)/l/10)*l*10;let p=Math.floor((h-d)/Math.pow(10,o)),m=Ci(t.min,Math.round((c+d+p*Math.pow(10,o))*s)/s);for(;m=10?p=p<15?15:20:p++,p>=20&&(o++,p=2,s=o>=0?1:s),m=Math.round((c+d+p*Math.pow(10,o))*s)/s;const v=Ci(t.max,m);return r.push({value:v,major:uA(v),significand:p}),r}class hS extends ku{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=P_.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return xn(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=xn(e)?Math.max(0,e):null,this.max=xn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!xn(this._userMin)&&(this.min=e===wc(this.min,0)?wc(this.min,-1):wc(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=l=>r=e?r:l,s=l=>i=n?i:l;r===i&&(r<=0?(o(1),s(10)):(o(wc(r,-1)),s(wc(i,1)))),r<=0&&o(wc(i,-1)),i<=0&&s(wc(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=wG(n,this);return e.bounds==="ticks"&&r5(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Og(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ga(e),this._valueRange=Ga(this.max)-Ga(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ga(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}St(hS,"id","logarithmic"),St(hS,"defaults",{ticks:{callback:_b.formatters.logarithmic,major:{enabled:!0}}});function dS(t){const e=t.ticks;if(e.display&&t.display){const n=Dr(e.backdropPadding);return re(e.font&&e.font.size,Sn.font.size)+n.height}return 0}function SG(t,e,n){return n=Qe(n)?n:[n],{w:MH(t,e.string,n),h:n.length*e.lineHeight}}function dA(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function TG(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?an/o:0;for(let c=0;ce.r&&(l=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+l)),i.starte.b&&(c=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function OG(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:o,padding:s,size:l}=n,c=t.getPointPosition(e,r+i+s,o),h=Math.round(qO(Li(c.angle+wn))),d=MG(c.y,l.h,h),p=PG(h),m=LG(c.x,l.w,p);return{visible:!0,x:c.x,y:d,textAlign:p,left:m,top:d,right:m+l.w,bottom:d+l.h}}function CG(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:o}=t;return!(na({x:n,y:r},e)||na({x:n,y:o},e)||na({x:i,y:r},e)||na({x:i,y:o},e))}function kG(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,{centerPointLabels:s,display:l}=o.pointLabels,c={extra:dS(o)/2,additionalAngle:s?an/i:0};let h;for(let d=0;d270||n<90)&&(t-=e),t}function AG(t,e,n){const{left:r,top:i,right:o,bottom:s}=n,{backdropColor:l}=e;if(!_e(l)){const c=qc(e.borderRadius),h=Dr(e.backdropPadding);t.fillStyle=l;const d=r-h.left,p=i-h.top,m=o-r+h.width,v=s-i+h.height;Object.values(c).some(y=>y!==0)?(t.beginPath(),bm(t,{x:d,y:p,w:m,h:v,radius:c}),t.fill()):t.fillRect(d,p,m,v)}}function RG(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const o=t._pointLabelItems[i];if(!o.visible)continue;const s=r.setContext(t.getPointLabelContext(i));AG(n,s,o);const l=Kn(s.font),{x:c,y:h,textAlign:d}=o;hu(n,t._pointLabels[i],c,h+l.lineHeight/2,l,{color:s.color,textAlign:d,textBaseline:"middle"})}}function G5(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Je);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let s=1;s{const i=ze(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?TG(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Je/(this._pointLabels.length||1),r=this.options.startAngle||0;return Li(e*n+Bo(r))}getDistanceFromCenterForValue(e){if(_e(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(_e(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(p!==0){c=this.getDistanceFromCenterForValue(d.value);const m=this.getContext(p),v=i.setContext(m),y=o.setContext(m);jG(this,v,c,s,y)}}),r.display){for(e.save(),l=s-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:p,lineWidth:m}=d;!m||!p||(e.lineWidth=m,e.strokeStyle=p,e.setLineDash(d.borderDash),e.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!n.reverse)return;const h=r.setContext(this.getContext(c)),d=Kn(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),h.showLabelBackdrop){e.font=d.string,s=e.measureText(l.label).width,e.fillStyle=h.backdropColor;const p=Dr(h.backdropPadding);e.fillRect(-s/2-p.left,-o-d.size/2-p.top,s+p.width,d.size+p.height)}hu(e,l.label,0,-o,d,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}St(xp,"id","radialLinear"),St(xp,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:_b.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),St(xp,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),St(xp,"descriptors",{angleLines:{_fallback:"grid"}});const Sb={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ni=Object.keys(Sb);function fA(t,e){return t-e}function pA(t,e){if(_e(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),xn(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Wh(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function mA(t,e,n,r){const i=ni.length;for(let o=ni.indexOf(t);o=ni.indexOf(n);o--){const s=ni[o];if(Sb[s].common&&t._adapter.diff(i,r,s)>=e-1)return s}return ni[n?ni.indexOf(n):0]}function IG(t){for(let e=ni.indexOf(t)+1,n=ni.length;e=e?n[r]:n[i];t[o]=!0}}function FG(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),s=e[e.length-1].value;let l,c;for(l=o;l<=s;l=+i.add(l,1,r))c=n[l],c>=0&&(e[c].major=!0);return e}function vA(t,e,n){const r=[],i={},o=e.length;let s,l;for(s=0;s+e.value))}initOffsets(e=[]){let n=0,r=0,i,o;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=or(n,0,s),r=or(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||mA(o.minUnit,n,r,this._getLabelCapacity(n)),l=re(i.ticks.stepSize,1),c=s==="week"?o.isoWeekday:!1,h=Wh(c)||c===!0,d={};let p=n,m,v;if(h&&(p=+e.startOf(p,"isoWeek",c)),p=+e.startOf(p,h?"day":s),e.diff(r,n,s)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,v=0;m+_)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,o=this._unit,s=n||i[o];return this._adapter.format(e,s)}_tickFormatFunction(e,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return ze(s,[e,n,r],this);const l=o.time.displayFormats,c=this._unit,h=this._majorUnit,d=c&&l[c],p=h&&l[h],m=r[n],v=h&&p&&m&&m.major;return this._adapter.format(e,i||(v?p:d))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=ea(t,"pos",e)),{pos:o,time:l}=t[r],{pos:s,time:c}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=ea(t,"time",e)),{time:o,pos:l}=t[r],{time:s,pos:c}=t[i]);const h=s-o;return h?l+(c-l)*(e-o)/h:l}class fS extends Sm{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Ov(n,this.min),this._tableRange=Ov(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let s,l,c,h,d;for(s=0,l=e.length;s=n&&h<=r&&i.push(h);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,l=i.length;si-o)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Ov(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Ov(this._table,r*this._tableRange+this._minPos,!0)}}St(fS,"id","timeseries"),St(fS,"defaults",Sm.defaults);var BG=Object.freeze({__proto__:null,CategoryScale:cS,LinearScale:uS,LogarithmicScale:hS,RadialLinearScale:xp,TimeScale:Sm,TimeSeriesScale:fS});const $G=[YW,wZ,gG,BG];Ba.register(...$G);var q5={exports:{}},Wi={},K5={exports:{}},X5={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(t){function e(G,$){var I=G.length;G.push($);t:for(;0>>1,it=G[H];if(0>>1;Hi(tt,I))rti(mt,tt)?(G[H]=mt,G[rt]=I,H=rt):(G[H]=tt,G[Q]=I,H=Q);else if(rti(mt,I))G[H]=mt,G[rt]=I,H=rt;else break t}}return $}function i(G,$){var I=G.sortIndex-$.sortIndex;return I!==0?I:G.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],h=[],d=1,p=null,m=3,v=!1,y=!1,_=!1,T=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(G){for(var $=n(h);$!==null;){if($.callback===null)r(h);else if($.startTime<=G)r(h),$.sortIndex=$.expirationTime,e(c,$);else break;$=n(h)}}function O(G){if(_=!1,E(G),!y)if(n(c)!==null)y=!0,et(k);else{var $=n(h);$!==null&&ct(O,$.startTime-G)}}function k(G,$){y=!1,_&&(_=!1,x(j),j=-1),v=!0;var I=m;try{for(E($),p=n(c);p!==null&&(!(p.expirationTime>$)||G&&!V());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var it=H(p.expirationTime<=$);$=t.unstable_now(),typeof it=="function"?p.callback=it:p===n(c)&&r(c),E($)}else r(c);p=n(c)}if(p!==null)var W=!0;else{var Q=n(h);Q!==null&&ct(O,Q.startTime-$),W=!1}return W}finally{p=null,m=I,v=!1}}var P=!1,A=null,j=-1,B=5,N=-1;function V(){return!(t.unstable_now()-NG||125H?(G.sortIndex=I,e(h,G),n(c)===null&&G===n(h)&&(_?(x(j),j=-1):_=!0,ct(O,I-H))):(G.sortIndex=it,e(c,G),y||v||(y=!0,et(k))),G},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(G){var $=m;return function(){var I=m;m=$;try{return G.apply(this,arguments)}finally{m=I}}}})(X5);K5.exports=X5;var zG=K5.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Q5=U,Bi=zG;function kt(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pS=Object.prototype.hasOwnProperty,UG=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yA={},_A={};function VG(t){return pS.call(_A,t)?!0:pS.call(yA,t)?!1:UG.test(t)?_A[t]=!0:(yA[t]=!0,!1)}function HG(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function WG(t,e,n,r){if(e===null||typeof e>"u"||HG(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Jr(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Er[t]=new Jr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Er[e]=new Jr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Er[t]=new Jr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Er[t]=new Jr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Er[t]=new Jr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Er[t]=new Jr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Er[t]=new Jr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Er[t]=new Jr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Er[t]=new Jr(t,5,!1,t.toLowerCase(),null,!1,!1)});var aC=/[\-:]([a-z])/g;function lC(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(aC,lC);Er[e]=new Jr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(aC,lC);Er[e]=new Jr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(aC,lC);Er[e]=new Jr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Er[t]=new Jr(t,1,!1,t.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Er[t]=new Jr(t,1,!1,t.toLowerCase(),null,!0,!0)});function cC(t,e,n,r){var i=Er.hasOwnProperty(e)?Er[e]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var c=` +`+i[s].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=s&&0<=l);break}}}finally{fw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?wp(t):""}function YG(t){switch(t.tag){case 5:return wp(t.type);case 16:return wp("Lazy");case 13:return wp("Suspense");case 19:return wp("SuspenseList");case 0:case 2:case 15:return t=pw(t.type,!1),t;case 11:return t=pw(t.type.render,!1),t;case 1:return t=pw(t.type,!0),t;default:return""}}function yS(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case dh:return"Fragment";case hh:return"Portal";case mS:return"Profiler";case uC:return"StrictMode";case gS:return"Suspense";case vS:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case e6:return(t.displayName||"Context")+".Consumer";case t6:return(t._context.displayName||"Context")+".Provider";case hC:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case dC:return e=t.displayName||null,e!==null?e:yS(t.type)||"Memo";case $a:e=t._payload,t=t._init;try{return yS(t(e))}catch{}}return null}function ZG(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yS(e);case 8:return e===uC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Sl(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function r6(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function GG(t){var e=r6(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function kv(t){t._valueTracker||(t._valueTracker=GG(t))}function i6(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=r6(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function L_(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _S(t,e){var n=e.checked;return mn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function xA(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Sl(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function o6(t,e){e=e.checked,e!=null&&cC(t,"checked",e,!1)}function bS(t,e){o6(t,e);var n=Sl(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?xS(t,e.type,n):e.hasOwnProperty("defaultValue")&&xS(t,e.type,Sl(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function wA(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function xS(t,e,n){(e!=="number"||L_(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Sp=Array.isArray;function Rh(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Pv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Em(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var $p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qG=["Webkit","ms","Moz","O"];Object.keys($p).forEach(function(t){qG.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),$p[e]=$p[t]})});function c6(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||$p.hasOwnProperty(t)&&$p[t]?(""+e).trim():e+"px"}function u6(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=c6(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var KG=mn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function TS(t,e){if(e){if(KG[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(kt(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(kt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(kt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(kt(62))}}function ES(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var OS=null;function fC(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var CS=null,jh=null,Nh=null;function EA(t){if(t=Lg(t)){if(typeof CS!="function")throw Error(kt(280));var e=t.stateNode;e&&(e=kb(e),CS(t.stateNode,t.type,e))}}function h6(t){jh?Nh?Nh.push(t):Nh=[t]:jh=t}function d6(){if(jh){var t=jh,e=Nh;if(Nh=jh=null,EA(t),e)for(t=0;t>>=0,t===0?32:31-(aq(t)/lq|0)|0}var Lv=64,Mv=4194304;function Tp(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function j_(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Tp(l):(o&=s,o!==0&&(r=Tp(o)))}else s=n&~i,s!==0?r=Tp(s):o!==0&&(r=Tp(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function kg(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Vo(e),t[e]=n}function dq(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Up),jA=String.fromCharCode(32),NA=!1;function A6(t,e){switch(t){case"keyup":return $q.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R6(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fh=!1;function Uq(t,e){switch(t){case"compositionend":return R6(e);case"keypress":return e.which!==32?null:(NA=!0,jA);case"textInput":return t=e.data,t===jA&&NA?null:t;default:return null}}function Vq(t,e){if(fh)return t==="compositionend"||!xC&&A6(t,e)?(t=L6(),Zy=yC=Xa=null,fh=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=BA(n)}}function I6(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?I6(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function F6(){for(var t=window,e=L_();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=L_(t.document)}return e}function wC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Qq(t){var e=F6(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&I6(n.ownerDocument.documentElement,n)){if(r!==null&&wC(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=$A(n,o);var s=$A(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ph=null,RS=null,Hp=null,jS=!1;function zA(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jS||ph==null||ph!==L_(r)||(r=ph,"selectionStart"in r&&wC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hp&&Mm(Hp,r)||(Hp=r,r=I_(RS,"onSelect"),0vh||(t.current=$S[vh],$S[vh]=null,vh--)}function Ue(t,e){vh++,$S[vh]=t.current,t.current=e}var Tl={},Ir=Nl(Tl),oi=Nl(!1),du=Tl;function qh(t,e){var n=t.type.contextTypes;if(!n)return Tl;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function si(t){return t=t.childContextTypes,t!=null}function B_(){tn(oi),tn(Ir)}function GA(t,e,n){if(Ir.current!==Tl)throw Error(kt(168));Ue(Ir,e),Ue(oi,n)}function Z6(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(kt(108,ZG(t)||"Unknown",i));return mn({},n,r)}function $_(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Tl,du=Ir.current,Ue(Ir,t),Ue(oi,oi.current),!0}function qA(t,e,n){var r=t.stateNode;if(!r)throw Error(kt(169));n?(t=Z6(t,e,du),r.__reactInternalMemoizedMergedChildContext=t,tn(oi),tn(Ir),Ue(Ir,t)):tn(oi),Ue(oi,n)}var Ks=null,Pb=!1,kw=!1;function G6(t){Ks===null?Ks=[t]:Ks.push(t)}function uK(t){Pb=!0,G6(t)}function Dl(){if(!kw&&Ks!==null){kw=!0;var t=0,e=Ae;try{var n=Ks;for(Ae=1;t>=s,i-=s,ra=1<<32-Vo(e)+i|n<j?(B=A,A=null):B=A.sibling;var N=m(x,A,E[j],O);if(N===null){A===null&&(A=B);break}t&&A&&N.alternate===null&&e(x,A),w=o(N,w,j),P===null?k=N:P.sibling=N,P=N,A=B}if(j===E.length)return n(x,A),on&&Ac(x,j),k;if(A===null){for(;jj?(B=A,A=null):B=A.sibling;var V=m(x,A,N.value,O);if(V===null){A===null&&(A=B);break}t&&A&&V.alternate===null&&e(x,A),w=o(V,w,j),P===null?k=V:P.sibling=V,P=V,A=B}if(N.done)return n(x,A),on&&Ac(x,j),k;if(A===null){for(;!N.done;j++,N=E.next())N=p(x,N.value,O),N!==null&&(w=o(N,w,j),P===null?k=N:P.sibling=N,P=N);return on&&Ac(x,j),k}for(A=r(x,A);!N.done;j++,N=E.next())N=v(A,x,j,N.value,O),N!==null&&(t&&N.alternate!==null&&A.delete(N.key===null?j:N.key),w=o(N,w,j),P===null?k=N:P.sibling=N,P=N);return t&&A.forEach(function(Y){return e(x,Y)}),on&&Ac(x,j),k}function T(x,w,E,O){if(typeof E=="object"&&E!==null&&E.type===dh&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Cv:t:{for(var k=E.key,P=w;P!==null;){if(P.key===k){if(k=E.type,k===dh){if(P.tag===7){n(x,P.sibling),w=i(P,E.props.children),w.return=x,x=w;break t}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$a&&nR(k)===P.type){n(x,P.sibling),w=i(P,E.props),w.ref=Qf(x,P,E),w.return=x,x=w;break t}n(x,P);break}else e(x,P);P=P.sibling}E.type===dh?(w=Qc(E.props.children,x.mode,O,E.key),w.return=x,x=w):(O=e_(E.type,E.key,E.props,null,x.mode,O),O.ref=Qf(x,w,E),O.return=x,x=O)}return s(x);case hh:t:{for(P=E.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){n(x,w.sibling),w=i(w,E.children||[]),w.return=x,x=w;break t}else{n(x,w);break}else e(x,w);w=w.sibling}w=Dw(E,x.mode,O),w.return=x,x=w}return s(x);case $a:return P=E._init,T(x,w,P(E._payload),O)}if(Sp(E))return y(x,w,E,O);if(Zf(E))return _(x,w,E,O);Fv(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,w!==null&&w.tag===6?(n(x,w.sibling),w=i(w,E),w.return=x,x=w):(n(x,w),w=Nw(E,x.mode,O),w.return=x,x=w),s(x)):n(x,w)}return T}var Xh=nF(!0),rF=nF(!1),Mg={},ds=Nl(Mg),Nm=Nl(Mg),Dm=Nl(Mg);function Hc(t){if(t===Mg)throw Error(kt(174));return t}function MC(t,e){switch(Ue(Dm,e),Ue(Nm,t),Ue(ds,Mg),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:SS(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=SS(e,t)}tn(ds),Ue(ds,e)}function Qh(){tn(ds),tn(Nm),tn(Dm)}function iF(t){Hc(Dm.current);var e=Hc(ds.current),n=SS(e,t.type);e!==n&&(Ue(Nm,t),Ue(ds,n))}function AC(t){Nm.current===t&&(tn(ds),tn(Nm))}var hn=Nl(0);function Y_(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Pw=[];function RC(){for(var t=0;tn?n:4,t(!0);var r=Lw.transition;Lw.transition={};try{t(!1),e()}finally{Ae=n,Lw.transition=r}}function bF(){return fo().memoizedState}function pK(t,e,n){var r=fl(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xF(t))wF(e,n);else if(n=Q6(t,e,n,r),n!==null){var i=Xr();Ho(n,t,r,i),SF(n,e,r)}}function mK(t,e,n){var r=fl(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xF(t))wF(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Wo(l,s)){var c=e.interleaved;c===null?(i.next=i,PC(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}n=Q6(t,e,i,r),n!==null&&(i=Xr(),Ho(n,t,r,i),SF(n,e,r))}}function xF(t){var e=t.alternate;return t===pn||e!==null&&e===pn}function wF(t,e){Wp=Z_=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function SF(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,mC(t,n)}}var G_={readContext:ho,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},gK={readContext:ho,useCallback:function(t,e){return Jo().memoizedState=[t,e===void 0?null:e],t},useContext:ho,useEffect:iR,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Xy(4194308,4,mF.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Xy(4194308,4,t,e)},useInsertionEffect:function(t,e){return Xy(4,2,t,e)},useMemo:function(t,e){var n=Jo();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Jo();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=pK.bind(null,pn,t),[r.memoizedState,t]},useRef:function(t){var e=Jo();return t={current:t},e.memoizedState=t},useState:rR,useDebugValue:FC,useDeferredValue:function(t){return Jo().memoizedState=t},useTransition:function(){var t=rR(!1),e=t[0];return t=fK.bind(null,t[1]),Jo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=pn,i=Jo();if(on){if(n===void 0)throw Error(kt(407));n=n()}else{if(n=e(),ar===null)throw Error(kt(349));pu&30||aF(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,iR(cF.bind(null,r,o,t),[t]),r.flags|=2048,Bm(9,lF.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Jo(),e=ar.identifierPrefix;if(on){var n=ia,r=ra;n=(r&~(1<<32-Vo(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Im++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[rs]=e,t[jm]=r,AF(t,e,!1,!1),e.stateNode=t;t:{switch(s=ES(n,r),n){case"dialog":Ze("cancel",t),Ze("close",t),i=r;break;case"iframe":case"object":case"embed":Ze("load",t),i=r;break;case"video":case"audio":for(i=0;itd&&(e.flags|=128,r=!0,Jf(o,!1),e.lanes=4194304)}else{if(!r)if(t=Y_(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Jf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!on)return kr(e),null}else 2*Rn()-o.renderingStartTime>td&&n!==1073741824&&(e.flags|=128,r=!0,Jf(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Rn(),e.sibling=null,n=hn.current,Ue(hn,r?n&1|2:n&1),e):(kr(e),null);case 22:case 23:return HC(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Pi&1073741824&&(kr(e),e.subtreeFlags&6&&(e.flags|=8192)):kr(e),null;case 24:return null;case 25:return null}throw Error(kt(156,e.tag))}function TK(t,e){switch(TC(e),e.tag){case 1:return si(e.type)&&B_(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qh(),tn(oi),tn(Ir),RC(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return AC(e),null;case 13:if(tn(hn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(kt(340));Kh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return tn(hn),null;case 4:return Qh(),null;case 10:return kC(e.type._context),null;case 22:case 23:return HC(),null;case 24:return null;default:return null}}var $v=!1,Rr=!1,EK=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function xh(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yn(t,e,r)}else n.current=null}function QS(t,e,n){try{n()}catch(r){yn(t,e,r)}}var fR=!1;function OK(t,e){if(NS=N_,t=F6(),wC(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var s=0,l=-1,c=-1,h=0,d=0,p=t,m=null;e:for(;;){for(var v;p!==n||i!==0&&p.nodeType!==3||(l=s+i),p!==o||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===t)break e;if(m===n&&++h===i&&(l=s),m===o&&++d===r&&(c=s),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(DS={focusedElem:t,selectionRange:n},N_=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){e=Wt;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var _=y.memoizedProps,T=y.memoizedState,x=e.stateNode,w=x.getSnapshotBeforeUpdate(e.elementType===e.type?_:jo(e.type,_),T);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(kt(163))}}catch(O){yn(e,e.return,O)}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}return y=fR,fR=!1,y}function Yp(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&QS(e,n,o)}i=i.next}while(i!==r)}}function Ab(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function JS(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function NF(t){var e=t.alternate;e!==null&&(t.alternate=null,NF(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[rs],delete e[jm],delete e[BS],delete e[lK],delete e[cK])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function DF(t){return t.tag===5||t.tag===3||t.tag===4}function pR(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||DF(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function tT(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=F_));else if(r!==4&&(t=t.child,t!==null))for(tT(t,e,n),t=t.sibling;t!==null;)tT(t,e,n),t=t.sibling}function eT(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(eT(t,e,n),t=t.sibling;t!==null;)eT(t,e,n),t=t.sibling}var wr=null,No=!1;function Aa(t,e,n){for(n=n.child;n!==null;)IF(t,e,n),n=n.sibling}function IF(t,e,n){if(hs&&typeof hs.onCommitFiberUnmount=="function")try{hs.onCommitFiberUnmount(Tb,n)}catch{}switch(n.tag){case 5:Rr||xh(n,e);case 6:var r=wr,i=No;wr=null,Aa(t,e,n),wr=r,No=i,wr!==null&&(No?(t=wr,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):wr.removeChild(n.stateNode));break;case 18:wr!==null&&(No?(t=wr,n=n.stateNode,t.nodeType===8?Cw(t.parentNode,n):t.nodeType===1&&Cw(t,n),Pm(t)):Cw(wr,n.stateNode));break;case 4:r=wr,i=No,wr=n.stateNode.containerInfo,No=!0,Aa(t,e,n),wr=r,No=i;break;case 0:case 11:case 14:case 15:if(!Rr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&QS(n,e,s),i=i.next}while(i!==r)}Aa(t,e,n);break;case 1:if(!Rr&&(xh(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){yn(n,e,l)}Aa(t,e,n);break;case 21:Aa(t,e,n);break;case 22:n.mode&1?(Rr=(r=Rr)||n.memoizedState!==null,Aa(t,e,n),Rr=r):Aa(t,e,n);break;default:Aa(t,e,n)}}function mR(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new EK),e.forEach(function(r){var i=NK.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ro(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kK(r/1960))-r,10t?16:t,Qa===null)var r=!1;else{if(t=Qa,Qa=null,X_=0,be&6)throw Error(kt(331));var i=be;for(be|=4,Wt=t.current;Wt!==null;){var o=Wt,s=o.child;if(Wt.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cRn()-UC?Xc(t,0):zC|=n),ai(t,e)}function WF(t,e){e===0&&(t.mode&1?(e=Mv,Mv<<=1,!(Mv&130023424)&&(Mv=4194304)):e=1);var n=Xr();t=ha(t,e),t!==null&&(kg(t,e,n),ai(t,n))}function jK(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),WF(t,n)}function NK(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(kt(314))}r!==null&&r.delete(e),WF(t,n)}var YF;YF=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||oi.current)ii=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ii=!1,wK(t,e,n);ii=!!(t.flags&131072)}else ii=!1,on&&e.flags&1048576&&q6(e,U_,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Qy(t,e),t=e.pendingProps;var i=qh(e,Ir.current);Ih(e,n),i=NC(null,e,r,t,i,n);var o=DC();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(o=!0,$_(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,LC(e),i.updater=Lb,e.stateNode=i,i._reactInternals=e,WS(e,r,t,n),e=GS(null,e,r,!0,o,n)):(e.tag=0,on&&o&&SC(e),Yr(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(Qy(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=IK(r),t=jo(r,t),i){case 0:e=ZS(null,e,r,t,n);break t;case 1:e=uR(null,e,r,t,n);break t;case 11:e=lR(null,e,r,t,n);break t;case 14:e=cR(null,e,r,jo(r.type,t),n);break t}throw Error(kt(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jo(r,i),ZS(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jo(r,i),uR(t,e,r,i,n);case 3:t:{if(PF(e),t===null)throw Error(kt(387));r=e.pendingProps,o=e.memoizedState,i=o.element,J6(t,e),W_(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=Jh(Error(kt(423)),e),e=hR(t,e,r,n,i);break t}else if(r!==i){i=Jh(Error(kt(424)),e),e=hR(t,e,r,n,i);break t}else for(Mi=ul(e.stateNode.containerInfo.firstChild),Di=e,on=!0,Do=null,n=rF(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kh(),r===i){e=da(t,e,n);break t}Yr(t,e,r,n)}e=e.child}return e;case 5:return iF(e),t===null&&US(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,IS(r,i)?s=null:o!==null&&IS(r,o)&&(e.flags|=32),kF(t,e),Yr(t,e,s,n),e.child;case 6:return t===null&&US(e),null;case 13:return LF(t,e,n);case 4:return MC(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Xh(e,null,r,n):Yr(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jo(r,i),lR(t,e,r,i,n);case 7:return Yr(t,e,e.pendingProps,n),e.child;case 8:return Yr(t,e,e.pendingProps.children,n),e.child;case 12:return Yr(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,Ue(V_,r._currentValue),r._currentValue=s,o!==null)if(Wo(o.value,s)){if(o.children===i.children&&!oi.current){e=da(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=sa(-1,n&-n),c.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var d=h.pending;d===null?c.next=c:(c.next=d.next,d.next=c),h.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),VS(o.return,n,e),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(kt(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),VS(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Yr(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Ih(e,n),i=ho(i),r=r(i),e.flags|=1,Yr(t,e,r,n),e.child;case 14:return r=e.type,i=jo(r,e.pendingProps),i=jo(r.type,i),cR(t,e,r,i,n);case 15:return OF(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jo(r,i),Qy(t,e),e.tag=1,si(r)?(t=!0,$_(e)):t=!1,Ih(e,n),eF(e,r,i),WS(e,r,i,n),GS(null,e,r,!0,t,n);case 19:return MF(t,e,n);case 22:return CF(t,e,n)}throw Error(kt(156,e.tag))};function ZF(t,e){return _6(t,e)}function DK(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function no(t,e,n,r){return new DK(t,e,n,r)}function YC(t){return t=t.prototype,!(!t||!t.isReactComponent)}function IK(t){if(typeof t=="function")return YC(t)?1:0;if(t!=null){if(t=t.$$typeof,t===hC)return 11;if(t===dC)return 14}return 2}function pl(t,e){var n=t.alternate;return n===null?(n=no(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function e_(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")YC(t)&&(s=1);else if(typeof t=="string")s=5;else t:switch(t){case dh:return Qc(n.children,i,o,e);case uC:s=8,i|=8;break;case mS:return t=no(12,n,e,i|2),t.elementType=mS,t.lanes=o,t;case gS:return t=no(13,n,e,i),t.elementType=gS,t.lanes=o,t;case vS:return t=no(19,n,e,i),t.elementType=vS,t.lanes=o,t;case n6:return jb(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case t6:s=10;break t;case e6:s=9;break t;case hC:s=11;break t;case dC:s=14;break t;case $a:s=16,r=null;break t}throw Error(kt(130,t==null?t:typeof t,""))}return e=no(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function Qc(t,e,n,r){return t=no(7,t,r,e),t.lanes=n,t}function jb(t,e,n,r){return t=no(22,t,r,e),t.elementType=n6,t.lanes=n,t.stateNode={isHidden:!1},t}function Nw(t,e,n){return t=no(6,t,null,e),t.lanes=n,t}function Dw(t,e,n){return e=no(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function FK(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gw(0),this.expirationTimes=gw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gw(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ZC(t,e,n,r,i,o,s,l,c){return t=new FK(t,e,n,l,c),e===1?(e=1,o===!0&&(e|=8)):e=0,o=no(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},LC(o),t}function BK(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XF)}catch(t){console.error(t)}}XF(),q5.exports=Wi;var Mu=q5.exports;const Jc=xs(Mu);var QF,SR=Mu;QF=SR.createRoot,SR.hydrateRoot;var JF={exports:{}},t8={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ed=U;function HK(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var WK=typeof Object.is=="function"?Object.is:HK,YK=ed.useState,ZK=ed.useEffect,GK=ed.useLayoutEffect,qK=ed.useDebugValue;function KK(t,e){var n=e(),r=YK({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return GK(function(){i.value=n,i.getSnapshot=e,Iw(i)&&o({inst:i})},[t,n,e]),ZK(function(){return Iw(i)&&o({inst:i}),t(function(){Iw(i)&&o({inst:i})})},[t]),qK(n),n}function Iw(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!WK(t,n)}catch{return!0}}function XK(t,e){return e()}var QK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?XK:KK;t8.useSyncExternalStore=ed.useSyncExternalStore!==void 0?ed.useSyncExternalStore:QK;JF.exports=t8;var e8=JF.exports,JK={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bb=U,tX=e8;function eX(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var nX=typeof Object.is=="function"?Object.is:eX,rX=tX.useSyncExternalStore,iX=Bb.useRef,oX=Bb.useEffect,sX=Bb.useMemo,aX=Bb.useDebugValue;JK.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=iX(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=sX(function(){function c(v){if(!h){if(h=!0,d=v,v=r(v),i!==void 0&&s.hasValue){var y=s.value;if(i(y,v))return p=y}return p=v}if(y=p,nX(d,v))return y;var _=r(v);return i!==void 0&&i(y,_)?y:(d=v,p=_)}var h=!1,d,p,m=n===void 0?null:n;return[function(){return c(e())},m===null?void 0:function(){return c(m())}]},[e,n,r,i]);var l=rX(t,o[0],o[1]);return oX(function(){s.hasValue=!0,s.value=l},[l]),aX(l),l};function lX(t){t()}let n8=lX;const cX=t=>n8=t,uX=()=>n8,TR=Symbol.for("react-redux-context"),ER=typeof globalThis<"u"?globalThis:{};function hX(){var t;if(!U.createContext)return{};const e=(t=ER[TR])!=null?t:ER[TR]=new Map;let n=e.get(U.createContext);return n||(n=U.createContext(null),e.set(U.createContext,n)),n}const r8=hX(),dX=()=>{throw new Error("uSES not initialized!")};function Bh(){return Bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}var i8={exports:{}},Re={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ur=typeof Symbol=="function"&&Symbol.for,QC=ur?Symbol.for("react.element"):60103,JC=ur?Symbol.for("react.portal"):60106,$b=ur?Symbol.for("react.fragment"):60107,zb=ur?Symbol.for("react.strict_mode"):60108,Ub=ur?Symbol.for("react.profiler"):60114,Vb=ur?Symbol.for("react.provider"):60109,Hb=ur?Symbol.for("react.context"):60110,tk=ur?Symbol.for("react.async_mode"):60111,Wb=ur?Symbol.for("react.concurrent_mode"):60111,Yb=ur?Symbol.for("react.forward_ref"):60112,Zb=ur?Symbol.for("react.suspense"):60113,fX=ur?Symbol.for("react.suspense_list"):60120,Gb=ur?Symbol.for("react.memo"):60115,qb=ur?Symbol.for("react.lazy"):60116,pX=ur?Symbol.for("react.block"):60121,mX=ur?Symbol.for("react.fundamental"):60117,gX=ur?Symbol.for("react.responder"):60118,vX=ur?Symbol.for("react.scope"):60119;function Zi(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case QC:switch(t=t.type,t){case tk:case Wb:case $b:case Ub:case zb:case Zb:return t;default:switch(t=t&&t.$$typeof,t){case Hb:case Yb:case qb:case Gb:case Vb:return t;default:return e}}case JC:return e}}}function o8(t){return Zi(t)===Wb}Re.AsyncMode=tk;Re.ConcurrentMode=Wb;Re.ContextConsumer=Hb;Re.ContextProvider=Vb;Re.Element=QC;Re.ForwardRef=Yb;Re.Fragment=$b;Re.Lazy=qb;Re.Memo=Gb;Re.Portal=JC;Re.Profiler=Ub;Re.StrictMode=zb;Re.Suspense=Zb;Re.isAsyncMode=function(t){return o8(t)||Zi(t)===tk};Re.isConcurrentMode=o8;Re.isContextConsumer=function(t){return Zi(t)===Hb};Re.isContextProvider=function(t){return Zi(t)===Vb};Re.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===QC};Re.isForwardRef=function(t){return Zi(t)===Yb};Re.isFragment=function(t){return Zi(t)===$b};Re.isLazy=function(t){return Zi(t)===qb};Re.isMemo=function(t){return Zi(t)===Gb};Re.isPortal=function(t){return Zi(t)===JC};Re.isProfiler=function(t){return Zi(t)===Ub};Re.isStrictMode=function(t){return Zi(t)===zb};Re.isSuspense=function(t){return Zi(t)===Zb};Re.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===$b||t===Wb||t===Ub||t===zb||t===Zb||t===fX||typeof t=="object"&&t!==null&&(t.$$typeof===qb||t.$$typeof===Gb||t.$$typeof===Vb||t.$$typeof===Hb||t.$$typeof===Yb||t.$$typeof===mX||t.$$typeof===gX||t.$$typeof===vX||t.$$typeof===pX)};Re.typeOf=Zi;i8.exports=Re;var yX=i8.exports,ek=yX,_X={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nk={};nk[ek.ForwardRef]=xX;nk[ek.Memo]=s8;function OR(t){return ek.isMemo(t)?s8:nk[t.$$typeof]||_X}var wX=Object.defineProperty,SX=Object.getOwnPropertyNames,CR=Object.getOwnPropertySymbols,TX=Object.getOwnPropertyDescriptor,EX=Object.getPrototypeOf,kR=Object.prototype;function a8(t,e,n){if(typeof e!="string"){if(kR){var r=EX(e);r&&r!==kR&&a8(t,r,n)}var i=SX(e);CR&&(i=i.concat(CR(e)));for(var o=OR(t),s=OR(e),l=0;le(i(...o)))}return n}function sT(t){return function(n){const r=t(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function LR(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function c8(t,e){return function(r,{displayName:i}){const o=function(l,c){return o.dependsOnOwnProps?o.mapToProps(l,c):o.mapToProps(l,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(l,c){o.mapToProps=t,o.dependsOnOwnProps=LR(t);let h=o(l,c);return typeof h=="function"&&(o.mapToProps=h,o.dependsOnOwnProps=LR(h),h=o(l,c)),h},o}}function ok(t,e){return(n,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${r.wrappedComponentName}.`)}}function NX(t){return t&&typeof t=="object"?sT(e=>jX(t,e)):t?typeof t=="function"?c8(t):ok(t,"mapDispatchToProps"):sT(e=>({dispatch:e}))}function DX(t){return t?typeof t=="function"?c8(t):ok(t,"mapStateToProps"):sT(()=>({}))}function IX(t,e,n){return Bh({},n,t,e)}function FX(t){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(c,h,d){const p=t(c,h,d);return o?i(p,s)||(s=p):(o=!0,s=p),s}}}function BX(t){return t?typeof t=="function"?FX(t):ok(t,"mergeProps"):()=>IX}function $X(){const t=uX();let e=null,n=null;return{clear(){e=null,n=null},notify(){t(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=e;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const MR={notify(){},get:()=>[]};function u8(t,e){let n,r=MR;function i(p){return c(),r.subscribe(p)}function o(){r.notify()}function s(){d.onStateChange&&d.onStateChange()}function l(){return!!n}function c(){n||(n=e?e.addNestedSub(s):t.subscribe(s),r=$X())}function h(){n&&(n(),n=void 0,r.clear(),r=MR)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:l,trySubscribe:c,tryUnsubscribe:h,getListeners:()=>r};return d}const zX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",t0=zX?U.useLayoutEffect:U.useEffect;function AR(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function Fw(t,e){if(AR(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i{h8=t},HX=[null,null];function WX(t,e,n){t0(()=>t(...e),n)}function YX(t,e,n,r,i,o){t.current=r,n.current=!1,i.current&&(i.current=null,o())}function ZX(t,e,n,r,i,o,s,l,c,h,d){if(!t)return()=>{};let p=!1,m=null;const v=()=>{if(p||!l.current)return;const _=e.getState();let T,x;try{T=r(_,i.current)}catch(w){x=w,m=w}x||(m=null),T===o.current?s.current||h():(o.current=T,c.current=T,s.current=!0,d())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,m)throw m}}function GX(t,e){return t===e}function d8(t,e,n,{pure:r,areStatesEqual:i=GX,areOwnPropsEqual:o=Fw,areStatePropsEqual:s=Fw,areMergedPropsEqual:l=Fw,forwardRef:c=!1,context:h=r8}={}){const d=h,p=DX(t),m=NX(e),v=BX(n),y=!!t;return T=>{const x=T.displayName||T.name||"Component",w=`Connect(${x})`,E={shouldHandleStateChanges:y,displayName:w,wrappedComponentName:x,WrappedComponent:T,initMapStateToProps:p,initMapDispatchToProps:m,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:l};function O(A){const[j,B,N]=U.useMemo(()=>{const{reactReduxForwardedRef:st}=A,ht=XC(A,UX);return[A.context,st,ht]},[A]),V=U.useMemo(()=>j&&j.Consumer&&LX.isContextConsumer(U.createElement(j.Consumer,null))?j:d,[j,d]),Y=U.useContext(V),nt=!!A.store&&!!A.store.getState&&!!A.store.dispatch,K=!!Y&&!!Y.store,J=nt?A.store:Y.store,et=K?Y.getServerState:J.getState,ct=U.useMemo(()=>RX(J.dispatch,E),[J]),[G,$]=U.useMemo(()=>{if(!y)return HX;const st=u8(J,nt?void 0:Y.subscription),ht=st.notifyNestedSubs.bind(st);return[st,ht]},[J,nt,Y]),I=U.useMemo(()=>nt?Y:Bh({},Y,{subscription:G}),[nt,Y,G]),H=U.useRef(),it=U.useRef(N),W=U.useRef(),Q=U.useRef(!1);U.useRef(!1);const tt=U.useRef(!1),rt=U.useRef();t0(()=>(tt.current=!0,()=>{tt.current=!1}),[]);const mt=U.useMemo(()=>()=>W.current&&N===it.current?W.current:ct(J.getState(),N),[J,N]),M=U.useMemo(()=>ht=>G?ZX(y,J,G,ct,it,H,Q,tt,W,$,ht):()=>{},[G]);WX(YX,[it,H,Q,N,W,$]);let R;try{R=h8(M,mt,et?()=>ct(et(),N):mt)}catch(st){throw rt.current&&(st.message+=` +The error may be correlated with this previous error: +${rt.current.stack} + +`),st}t0(()=>{rt.current=void 0,W.current=void 0,H.current=R});const z=U.useMemo(()=>U.createElement(T,Bh({},R,{ref:B})),[B,T,R]);return U.useMemo(()=>y?U.createElement(V.Provider,{value:I},z):z,[V,z,I])}const P=U.memo(O);if(P.WrappedComponent=T,P.displayName=O.displayName=w,c){const j=U.forwardRef(function(N,V){return U.createElement(P,Bh({},N,{reactReduxForwardedRef:V}))});return j.displayName=w,j.WrappedComponent=T,PR(j,T)}return PR(P,T)}}function f8({store:t,context:e,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=U.useMemo(()=>{const h=u8(t);return{store:t,subscription:h,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[t,r,i,o]),l=U.useMemo(()=>t.getState(),[t]);t0(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),l!==t.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,l]);const c=e||r8;return U.createElement(c.Provider,{value:s},n)}VX(e8.useSyncExternalStore);cX(Mu.unstable_batchedUpdates);/** + * @remix-run/router v1.7.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function zm(){return zm=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function sk(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function KX(){return Math.random().toString(36).substr(2,8)}function jR(t,e){return{usr:t.state,key:t.key,idx:e}}function aT(t,e,n,r){return n===void 0&&(n=null),zm({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Rd(e):e,{state:n,key:e&&e.key||r||KX()})}function e0(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Rd(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function XX(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Ja.Pop,c=null,h=d();h==null&&(h=0,s.replaceState(zm({},s.state,{idx:h}),""));function d(){return(s.state||{idx:null}).idx}function p(){l=Ja.Pop;let T=d(),x=T==null?null:T-h;h=T,c&&c({action:l,location:_.location,delta:x})}function m(T,x){l=Ja.Push;let w=aT(_.location,T,x);n&&n(w,T),h=d()+1;let E=jR(w,h),O=_.createHref(w);try{s.pushState(E,"",O)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(O)}o&&c&&c({action:l,location:_.location,delta:1})}function v(T,x){l=Ja.Replace;let w=aT(_.location,T,x);n&&n(w,T),h=d();let E=jR(w,h),O=_.createHref(w);s.replaceState(E,"",O),o&&c&&c({action:l,location:_.location,delta:0})}function y(T){let x=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof T=="string"?T:e0(T);return Fn(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let _={get action(){return l},get location(){return t(i,s)},listen(T){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(RR,p),c=T,()=>{i.removeEventListener(RR,p),c=null}},createHref(T){return e(i,T)},createURL:y,encodeLocation(T){let x=y(T);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:v,go(T){return s.go(T)}};return _}var NR;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(NR||(NR={}));function QX(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Rd(e):e,i=ak(r.pathname||"/",n);if(i==null)return null;let o=p8(t);JX(o);let s=null;for(let l=0;s==null&&l{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};c.relativePath.startsWith("/")&&(Fn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let h=ml([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Fn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),p8(o.children,e,d,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:sQ(h,o.index),routesMeta:d})};return t.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let c of m8(o.path))i(o,s,c)}),e}function m8(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=m8(r.join("/")),l=[];return l.push(...s.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...s),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function JX(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:aQ(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tQ=/^:\w+$/,eQ=3,nQ=2,rQ=1,iQ=10,oQ=-2,DR=t=>t==="*";function sQ(t,e){let n=t.split("/"),r=n.length;return n.some(DR)&&(r+=oQ),e&&(r+=nQ),n.filter(i=>!DR(i)).reduce((i,o)=>i+(tQ.test(o)?eQ:o===""?rQ:iQ),r)}function aQ(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function lQ(t,e){let{routesMeta:n}=t,r={},i="/",o=[];for(let s=0;s{if(d==="*"){let m=l[p]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}return h[d]=dQ(l[p]||"",d),h},{}),pathname:o,pathnameBase:s,pattern:t}}function uQ(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),sk(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(r.push(l),"/([^\\/]+)"));return t.endsWith("*")?(r.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function hQ(t){try{return decodeURI(t)}catch(e){return sk(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function dQ(t,e){try{return decodeURIComponent(t)}catch(n){return sk(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function ak(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function fQ(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Rd(t):t;return{pathname:n?n.startsWith("/")?n:pQ(n,e):e,search:gQ(r),hash:vQ(i)}}function pQ(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Bw(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lk(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function ck(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Rd(t):(i=zm({},t),Fn(!i.pathname||!i.pathname.includes("?"),Bw("?","pathname","search",i)),Fn(!i.pathname||!i.pathname.includes("#"),Bw("#","pathname","hash",i)),Fn(!i.search||!i.search.includes("#"),Bw("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,l;if(r||s==null)l=n;else{let p=e.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}l=p>=0?e[p]:"/"}let c=fQ(i,l),h=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(h||d)&&(c.pathname+="/"),c}const ml=t=>t.join("/").replace(/\/\/+/g,"/"),mQ=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gQ=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,vQ=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function yQ(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const g8=["post","put","patch","delete"];new Set(g8);const _Q=["get",...g8];new Set(_Q);/** + * React Router v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function n0(){return n0=Object.assign?Object.assign.bind():function(t){for(var e=1;ec.pathnameBase)),s=U.useRef(!1);return _8(()=>{s.current=!0}),U.useCallback(function(c,h){if(h===void 0&&(h={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=ck(c,JSON.parse(o),i,h.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:ml([e,d.pathname])),(h.replace?n.replace:n.push)(d,h.state,h)},[e,n,o,i,t])}function ju(){let{matches:t}=U.useContext(Ta),e=t[t.length-1];return e?e.params:{}}function hk(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=U.useContext(Ta),{pathname:i}=Un(),o=JSON.stringify(lk(r).map(s=>s.pathnameBase));return U.useMemo(()=>ck(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function wQ(t,e){return SQ(t,e)}function SQ(t,e,n){Ru()||Fn(!1);let{navigator:r}=U.useContext(Au),{matches:i}=U.useContext(Ta),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Un(),h;if(e){var d;let _=typeof e=="string"?Rd(e):e;l==="/"||(d=_.pathname)!=null&&d.startsWith(l)||Fn(!1),h=_}else h=c;let p=h.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=QX(t,{pathname:m}),y=kQ(v&&v.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:ml([l,r.encodeLocation?r.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:ml([l,r.encodeLocation?r.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n);return e&&y?U.createElement(s1.Provider,{value:{location:n0({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ja.Pop}},y):y}function TQ(){let t=AQ(),e=yQ(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},e),n?U.createElement("pre",{style:i},n):null,o)}const EQ=U.createElement(TQ,null);class OQ extends U.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?U.createElement(Ta.Provider,{value:this.props.routeContext},U.createElement(y8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CQ(t){let{routeContext:e,match:n,children:r}=t,i=U.useContext(uk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),U.createElement(Ta.Provider,{value:e},r)}function kQ(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var i;if((i=n)!=null&&i.errors)t=n.matches;else return null}let o=t,s=(r=n)==null?void 0:r.errors;if(s!=null){let l=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id]));l>=0||Fn(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((l,c,h)=>{let d=c.route.id?s==null?void 0:s[c.route.id]:null,p=null;n&&(p=c.route.errorElement||EQ);let m=e.concat(o.slice(0,h+1)),v=()=>{let y;return d?y=p:c.route.Component?y=U.createElement(c.route.Component,null):c.route.element?y=c.route.element:y=l,U.createElement(CQ,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:y})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?U.createElement(OQ,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var lT;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(lT||(lT={}));var Um;(function(t){t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId"})(Um||(Um={}));function PQ(t){let e=U.useContext(uk);return e||Fn(!1),e}function LQ(t){let e=U.useContext(v8);return e||Fn(!1),e}function MQ(t){let e=U.useContext(Ta);return e||Fn(!1),e}function b8(t){let e=MQ(),n=e.matches[e.matches.length-1];return n.route.id||Fn(!1),n.route.id}function AQ(){var t;let e=U.useContext(y8),n=LQ(Um.UseRouteError),r=b8(Um.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function RQ(){let{router:t}=PQ(lT.UseNavigateStable),e=b8(Um.UseNavigateStable),n=U.useRef(!1);return _8(()=>{n.current=!0}),U.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,n0({fromRouteId:e},o)))},[t,e])}function dk(t){let{to:e,replace:n,state:r,relative:i}=t;Ru()||Fn(!1);let{matches:o}=U.useContext(Ta),{pathname:s}=Un(),l=ws(),c=ck(e,lk(o).map(d=>d.pathnameBase),s,i==="path"),h=JSON.stringify(c);return U.useEffect(()=>l(JSON.parse(h),{replace:n,state:r,relative:i}),[l,h,i,n,r]),null}function Ce(t){Fn(!1)}function jQ(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Ja.Pop,navigator:o,static:s=!1}=t;Ru()&&Fn(!1);let l=e.replace(/^\/*/,"/"),c=U.useMemo(()=>({basename:l,navigator:o,static:s}),[l,o,s]);typeof r=="string"&&(r=Rd(r));let{pathname:h="/",search:d="",hash:p="",state:m=null,key:v="default"}=r,y=U.useMemo(()=>{let _=ak(h,l);return _==null?null:{location:{pathname:_,search:d,hash:p,state:m,key:v},navigationType:i}},[l,h,d,p,m,v,i]);return y==null?null:U.createElement(Au.Provider,{value:c},U.createElement(s1.Provider,{children:n,value:y}))}function a1(t){let{children:e,location:n}=t;return wQ(cT(e),n)}var IR;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(IR||(IR={}));new Promise(()=>{});function cT(t,e){e===void 0&&(e=[]);let n=[];return U.Children.forEach(t,(r,i)=>{if(!U.isValidElement(r))return;let o=[...e,i];if(r.type===U.Fragment){n.push.apply(n,cT(r.props.children,o));return}r.type!==Ce&&Fn(!1),!r.props.index||!r.props.children||Fn(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cT(r.props.children,o)),n.push(s)}),n}/** + * React Router DOM v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function r0(){return r0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function NQ(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function DQ(t,e){return t.button===0&&(!e||e==="_self")&&!NQ(t)}const IQ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],FQ=["aria-current","caseSensitive","className","end","style","to","children"],BQ="startTransition",FR=PV[BQ];function w8(t){let{basename:e,children:n,future:r,window:i}=t,o=U.useRef();o.current==null&&(o.current=qX({window:i,v5Compat:!0}));let s=o.current,[l,c]=U.useState({action:s.action,location:s.location}),{v7_startTransition:h}=r||{},d=U.useCallback(p=>{h&&FR?FR(()=>c(p)):c(p)},[c,h]);return U.useLayoutEffect(()=>s.listen(d),[s,d]),U.createElement(jQ,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:s})}const $Q=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zQ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nn=U.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:c,to:h,preventScrollReset:d}=e,p=x8(e,IQ),{basename:m}=U.useContext(Au),v,y=!1;if(typeof h=="string"&&zQ.test(h)&&(v=h,$Q))try{let w=new URL(window.location.href),E=h.startsWith("//")?new URL(w.protocol+h):new URL(h),O=ak(E.pathname,m);E.origin===w.origin&&O!=null?h=O+E.search+E.hash:y=!0}catch{}let _=bQ(h,{relative:i}),T=UQ(h,{replace:s,state:l,target:c,preventScrollReset:d,relative:i});function x(w){r&&r(w),w.defaultPrevented||T(w)}return U.createElement("a",r0({},p,{href:v||_,onClick:y||o?r:x,ref:n,target:c}))}),S8=U.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:l,to:c,children:h}=e,d=x8(e,FQ),p=hk(c,{relative:d.relative}),m=Un(),v=U.useContext(v8),{navigator:y}=U.useContext(Au),_=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,T=m.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(T=T.toLowerCase(),x=x?x.toLowerCase():null,_=_.toLowerCase());let w=T===_||!s&&T.startsWith(_)&&T.charAt(_.length)==="/",E=x!=null&&(x===_||!s&&x.startsWith(_)&&x.charAt(_.length)==="/"),O=w?r:void 0,k;typeof o=="function"?k=o({isActive:w,isPending:E}):k=[o,w?"active":null,E?"pending":null].filter(Boolean).join(" ");let P=typeof l=="function"?l({isActive:w,isPending:E}):l;return U.createElement(nn,r0({},d,{"aria-current":O,className:k,ref:n,style:P,to:c}),typeof h=="function"?h({isActive:w,isPending:E}):h)});var BR;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher"})(BR||(BR={}));var $R;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($R||($R={}));function UQ(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=e===void 0?{}:e,l=ws(),c=Un(),h=hk(t,{relative:s});return U.useCallback(d=>{if(DQ(d,n)){d.preventDefault();let p=r!==void 0?r:e0(c)===e0(h);l(t,{replace:p,state:i,preventScrollReset:o,relative:s})}},[c,l,h,r,i,n,t,o,s])}const VQ="shlink-web-client",HQ="A React-based progressive web application for shlink",WQ="/shlink-web-client/feature/external-web-component",YQ="https://github.com/shlinkio/shlink-web-client",ZQ="MIT",GQ={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},qQ={"@fortawesome/fontawesome-free":"^6.4.2","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.1","@reduxjs/toolkit":"^1.9.5","@shlinkio/shlink-frontend-kit":"^0.2.0","@shlinkio/shlink-web-component":"^0.1.0",bootstrap:"5.2.3",bottlejs:"^2.0.1","chart.js":"^4.3.3",classnames:"^2.3.2","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^2.30.0",leaflet:"^1.9.4",ramda:"^0.27.2",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^8.1.2","react-router-dom":"^6.14.2",reactstrap:"^9.2.0","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.0","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},KQ={"@shlinkio/eslint-config-js-coding-standard":"~2.2.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^5.17.0","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.1","@types/leaflet":"^1.9.3","@types/ramda":"^0.27.66","@types/react":"^18.2.19","@types/react-dom":"^18.2.7","@types/uuid":"^9.0.2","@vitejs/plugin-react":"^4.0.4","@vitest/coverage-v8":"^0.34.1","adm-zip":"^0.5.10",chalk:"^5.3.0",eslint:"^8.46.0",history:"^5.3.0",jsdom:"^22.1.0",sass:"^1.64.2",stylelint:"^15.10.2",typescript:"^5.1.6",vite:"^4.4.9","vite-plugin-pwa":"^0.16.4",vitest:"^0.34.1"},XQ=[">0.2%","not dead","not ie <= 11","not op_mini all"],i0={name:VQ,description:HQ,private:!1,homepage:WQ,repository:YQ,license:ZQ,scripts:GQ,dependencies:qQ,devDependencies:KQ,browserslist:XQ};var Yo,gs=".",T8="function",E8="string",O8="__global__",fk="Provider",QQ=0,pk=Array.prototype.slice,JQ=function(e,n){var r=e[n];if(r===void 0&&Yo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},l1=function(e){var n;return this.nested[e]||(n=Yo.pop(),this.nested[e]=n,this.factory(e,function(){return n.container})),this.nested[e]},C8=function(e){return e.split(gs).reduce(JQ,this)},tJ=function(e,n,r,i){var o={configurable:!0,enumerable:!0};return e.length?o.get=function(){var l=0,c=function(d){if(d)throw d;e[l]&&e[l++](r,c)};return c(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},eJ=function(e,n){var r,i;return typeof e===T8&&(n=e,e=O8),r=e.split(gs),i=r.shift(),r.length?l1.call(this,i).middleware(r.join(gs),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},nJ=function(e,n){return n(e)},zR=function(e,n){return(e[n]||[]).concat(e.__global__||[])},rJ=function(e,n){var r,i,o,s,l;return this.id,o=this.container,s=this.decorators,l=this.middlewares,r=e+fk,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var h=new n;return delete o[r],o[r]=h,h}},i[e]={configurable:!0,enumerable:!0,get:function(){var h=o[r],d;return h&&(d=zR(s,e).reduce(nJ,h.$get(o)),delete o[r],delete o[e]),d===void 0?d:tJ(zR(l,e),e,d,o)}},Object.defineProperties(o,i),this},k8=function(e,n){var r,i;return r=e.split(gs),this.providerMap[e]&&r.length===1&&!this.container[e+fk]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=n,this.providerMap[e]=!0,i=r.shift(),r.length?(l1.call(this,i).provider(r.join(gs),n),this):rJ.call(this,i,n))},mk=function(e,n){return k8.call(this,e,function(){this.$get=n})},P8=function(e,n,r){var i=arguments.length>3?pk.call(arguments,3):[],o=this;return mk.call(this,e,function(){var l=n,c=i.map(C8,o.container);return r?new(n.bind.apply(n,[null].concat(c))):l.apply(null,c)})},iJ=function(e,n){return P8.apply(this,[e,n,!0].concat(pk.call(arguments,2)))},oJ=function(e,n){return P8.apply(this,[e,n,!1].concat(pk.call(arguments,2)))},L8=function(e,n){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:n,writable:!0})},M8=function(e,n){var r=e[n];return r||(r={},L8.call(e,n,r)),r},sJ=function(e,n){var r;return r=e.split(gs),e=r.pop(),L8.call(r.reduce(M8,this.container),e,n),this},aJ=function(e,n){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:n,writable:!1})},lJ=function(e,n){var r=e.split(gs);return e=r.pop(),aJ.call(r.reduce(M8,this.container),e,n),this},A8=function(e,n){var r,i;return typeof e===T8&&(n=e,e=O8),r=e.split(gs),i=r.shift(),r.length?l1.call(this,i).decorator(r.join(gs),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},cJ=function(e){return this.deferred.push(e),this},uJ=function(e){return(e||[]).map(C8,this.container)},hJ=function(e,n){return mk.call(this,e,function(i){return{instance:n.bind(n,i)}})},dJ=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},gk=function(e){return Object.keys(e||this.container||{}).filter(dJ)},o0={},fJ=function(e){var n;return typeof e===E8?(n=o0[e],n||(o0[e]=n=new Yo,n.constant("BOTTLE_NAME",e)),n):new Yo},pJ=function(e){typeof e===E8?delete o0[e]:o0={}},R8=function(e){var n=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,n].concat(e.$inject||[]))},UR=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+fk]},mJ=function(e){var n=this.originalProviders,r=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&e.indexOf(o)===-1)){var s=o.split(gs);s.length>1&&s.forEach(UR,l1.call(this,s[0])),UR.call(this,o),this.provider(o,n[o])}},this)},gJ=function(e){return this.deferred.forEach(function(r){r(e)}),this};Yo=function t(e){if(!(this instanceof t))return t.pop(e);this.id=QQ++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:A8.bind(this),$register:R8.bind(this),$list:gk.bind(this)}};Yo.prototype={constant:lJ,decorator:A8,defer:cJ,digest:uJ,factory:mk,instanceFactory:hJ,list:gk,middleware:eJ,provider:k8,resetProviders:mJ,register:R8,resolve:gJ,service:iJ,serviceFactory:oJ,value:sJ};Yo.pop=fJ;Yo.clear=pJ;Yo.list=gk;Yo.config={strict:!1};const vJ=Yo;function Ge(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Tn(t){return function e(n){return arguments.length===0||Ge(n)?e:t.apply(this,arguments)}}function Xe(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return Ge(n)?e:Tn(function(i){return t(n,i)});default:return Ge(n)&&Ge(r)?e:Ge(n)?Tn(function(i){return t(i,r)}):Ge(r)?Tn(function(i){return t(n,i)}):t(n,r)}}}function yJ(t,e){t=t||[],e=e||[];var n,r=t.length,i=e.length,o=[];for(n=0;n=arguments.length)?l=e[s]:(l=arguments[i],i+=1),r[s]=l,Ge(l)||(o-=1),s+=1}return o<=0?n.apply(this,r):Ag(o,j8(t,r,n))}}var _J=Xe(function(e,n){return e===1?Tn(n):Ag(e,j8(e,[],n))});const uT=_J;function Rg(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return Ge(n)?e:Xe(function(o,s){return t(n,o,s)});case 2:return Ge(n)&&Ge(r)?e:Ge(n)?Xe(function(o,s){return t(o,r,s)}):Ge(r)?Xe(function(o,s){return t(n,o,s)}):Tn(function(o){return t(n,r,o)});default:return Ge(n)&&Ge(r)&&Ge(i)?e:Ge(n)&&Ge(r)?Xe(function(o,s){return t(o,s,i)}):Ge(n)&&Ge(i)?Xe(function(o,s){return t(o,r,s)}):Ge(r)&&Ge(i)?Xe(function(o,s){return t(n,o,s)}):Ge(n)?Tn(function(o){return t(o,r,i)}):Ge(r)?Tn(function(o){return t(n,o,i)}):Ge(i)?Tn(function(o){return t(n,r,o)}):t(n,r,i)}}}const c1=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function bJ(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function N8(t,e,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!c1(i)){for(var o=0;o0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1});const SJ=wJ;var TJ=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function EJ(t){return new TJ(t)}var OJ=Xe(function(e,n){return Ag(e.length,function(){return e.apply(n,arguments)})});const CJ=OJ;function kJ(t,e,n){for(var r=0,i=n.length;r=0;)n=ZR[r],as(n,e)&&!jJ(i,n)&&(i[i.length]=n),r-=1;return i});const Vm=NJ;var DJ=Xe(N8(["fantasy-land/map","map"],MJ,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return uT(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return jg(function(r,i){return r[i]=e(n[i]),r},{},Vm(n));default:return xJ(e,n)}}));const yk=DJ,IJ=Number.isInteger||function(e){return e<<0===e};var FJ=Xe(function(e,n){var r=e<0?n.length+e:e;return vk(n)?n.charAt(r):n[r]});const BJ=FJ;var $J=Xe(function(e,n){return e.map(function(r){for(var i=n,o=0,s;o=0;){if(n[o]===t)return r[o]===e;o-=1}switch(i){case"Map":return t.size!==e.size?!1:QR(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:QR(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Vm(t);if(s.length!==Vm(e).length)return!1;var l=n.concat([t]),c=r.concat([e]);for(o=s.length-1;o>=0;){var h=s[o];if(!(as(h,e)&&bk(e[h],t[h],l,c)))return!1;o-=1}return!0}var gtt=Xe(function(e,n){return bk(e,n,[],[])});const vtt=gtt;function ytt(t){return function(){return!t.apply(this,arguments)}}function _tt(t,e){for(var n=0,r=e.length,i=[];n!!(t!=null&&t.url)&&!!(t!=null&&t.apiKey),qp=t=>!!(t!=null&&t.id),H8=t=>!!(t!=null&&t.version),Ytt=t=>!!(t!=null&&t.serverNotFound),Ztt=t=>qp(t)?t.id:"",Gtt=t=>ztt(["id","autoConnect"],t);var qtt={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},Ktt=qtt,Xtt={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},xk=Xtt,Qtt={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V368c0-8.8 7.2-16 16-16z"]},Jtt={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},tet=Jtt,W8={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},eet={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},Y8={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},net={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},ret=net,iet={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},wk=iet,oet={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},set={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},aet={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},JR={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},cet={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},uet=cet,het={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Z8=het,det={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},fet={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},pet={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},met=pet,Sk={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},G8={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},tj={prefix:"fas",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c17.7 0 32 14.3 32 32V64H320V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H32V112c0-26.5 21.5-48 48-48h48V32c0-17.7 14.3-32 32-32zM32 192H480V464c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V192zM337 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},get={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},q8={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},vet={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},yet=vet,_et={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},bet={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Tk=bet,xet={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},wet=xet,Tet={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},Eet={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},Oet=Eet,Cet={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},ket=Cet,Pet={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},Let=Pet,Met={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},K8=Met,Aet={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},Ret={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},jet={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Net=jet,Det={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Ek={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},Iet={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},hT=Iet,Fet={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Bet={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},$et=Bet,ej={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},zet={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},Uet=zet,Vet={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},Het={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},Wet={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},Yet={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Hm={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function nj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vt(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return en.head.insertBefore(e,r),t}}var vnt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function qm(){for(var t=12,e="";t-- >0;)e+=vnt[Math.random()*62|0];return e}function jd(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function Mk(t){return t.classList?jd(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(e){return e})}function lB(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ynt(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(lB(t[n]),'" ')},"").trim()}function u1(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")},"")}function Ak(t){return t.size!==ls.size||t.x!==ls.x||t.y!==ls.y||t.rotate!==ls.rotate||t.flipX||t.flipY}function _nt(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(e.x*32,", ").concat(e.y*32,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),l="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(o," ").concat(s," ").concat(l)},h={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:h}}function bnt(t){var e=t.transform,n=t.width,r=n===void 0?fT:n,i=t.height,o=i===void 0?fT:i,s=t.startCentered,l=s===void 0?!1:s,c="";return l&&eB?c+="translate(".concat(e.x/Ra-r/2,"em, ").concat(e.y/Ra-o/2,"em) "):l?c+="translate(calc(-50% + ".concat(e.x/Ra,"em), calc(-50% + ").concat(e.y/Ra,"em)) "):c+="translate(".concat(e.x/Ra,"em, ").concat(e.y/Ra,"em) "),c+="scale(".concat(e.size/Ra*(e.flipX?-1:1),", ").concat(e.size/Ra*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var xnt=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function cB(){var t=nB,e=rB,n=Gt.cssPrefix,r=Gt.replacementClass,i=xnt;if(n!==t||r!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\--".concat(t,"\\-"),"g"),l=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var cj=!1;function zw(){Gt.autoAddCss&&!cj&&(gnt(cB()),cj=!0)}var wnt={mixout:function(){return{dom:{css:cB,insertCss:zw}}},hooks:function(){return{beforeDOMElementCreation:function(){zw()},beforeI2svg:function(){zw()}}}},pa=El||{};pa[fa]||(pa[fa]={});pa[fa].styles||(pa[fa].styles={});pa[fa].hooks||(pa[fa].hooks={});pa[fa].shims||(pa[fa].shims=[]);var $o=pa[fa],uB=[],Snt=function t(){en.removeEventListener("DOMContentLoaded",t),h0=1,uB.map(function(e){return e()})},h0=!1;Ea&&(h0=(en.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(en.readyState),h0||en.addEventListener("DOMContentLoaded",Snt));function Tnt(t){Ea&&(h0?setTimeout(t,0):uB.push(t))}function Ig(t){var e=t.tag,n=t.attributes,r=n===void 0?{}:n,i=t.children,o=i===void 0?[]:i;return typeof t=="string"?lB(t):"<".concat(e," ").concat(ynt(r),">").concat(o.map(Ig).join(""),"")}function uj(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}var Ent=function(e,n){return function(r,i,o,s){return e.call(n,r,i,o,s)}},Uw=function(e,n,r,i){var o=Object.keys(e),s=o.length,l=i!==void 0?Ent(n,i):n,c,h,d;for(r===void 0?(c=1,d=e[o[0]]):(c=0,d=r);c=55296&&i<=56319&&n=55296&&r<=56319&&n>e+1&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function hj(t){return Object.keys(t).reduce(function(e,n){var r=t[n],i=!!r.icon;return i?e[r.iconName]=r.icon:e[n]=r,e},{})}function gT(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=hj(e);typeof $o.hooks.addPack=="function"&&!i?$o.hooks.addPack(t,hj(e)):$o.styles[t]=Vt(Vt({},$o.styles[t]||{}),o),t==="fas"&&gT("fa",e)}var qv,Kv,Xv,Sh=$o.styles,knt=$o.shims,Pnt=(qv={},Jn(qv,Ke,Object.values(Zm[Ke])),Jn(qv,_n,Object.values(Zm[_n])),qv),Rk=null,hB={},dB={},fB={},pB={},mB={},Lnt=(Kv={},Jn(Kv,Ke,Object.keys(Wm[Ke])),Jn(Kv,_n,Object.keys(Wm[_n])),Kv);function Mnt(t){return~hnt.indexOf(t)}function Ant(t,e){var n=e.split("-"),r=n[0],i=n.slice(1).join("-");return r===t&&i!==""&&!Mnt(i)?i:null}var gB=function(){var e=function(o){return Uw(Sh,function(s,l,c){return s[c]=Uw(l,o,{}),s},{})};hB=e(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=s})}return i}),dB=e(function(i,o,s){if(i[s]=s,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=s})}return i}),mB=e(function(i,o,s){var l=o[2];return i[s]=s,l.forEach(function(c){i[c]=s}),i});var n="far"in Sh||Gt.autoFetchSvg,r=Uw(knt,function(i,o){var s=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(i.names[s]={prefix:l,iconName:c}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});fB=r.names,pB=r.unicodes,Rk=h1(Gt.styleDefault,{family:Gt.familyDefault})};mnt(function(t){Rk=h1(t.styleDefault,{family:Gt.familyDefault})});gB();function jk(t,e){return(hB[t]||{})[e]}function Rnt(t,e){return(dB[t]||{})[e]}function Yc(t,e){return(mB[t]||{})[e]}function vB(t){return fB[t]||{prefix:null,iconName:null}}function jnt(t){var e=pB[t],n=jk("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ol(){return Rk}var Nk=function(){return{prefix:null,iconName:null,rest:[]}};function h1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.family,r=n===void 0?Ke:n,i=Wm[r][t],o=Ym[r][t]||Ym[r][i],s=t in $o.styles?t:null;return o||s||null}var dj=(Xv={},Jn(Xv,Ke,Object.keys(Zm[Ke])),Jn(Xv,_n,Object.keys(Zm[_n])),Xv);function d1(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(e={},Jn(e,Ke,"".concat(Gt.cssPrefix,"-").concat(Ke)),Jn(e,_n,"".concat(Gt.cssPrefix,"-").concat(_n)),e),s=null,l=Ke;(t.includes(o[Ke])||t.some(function(h){return dj[Ke].includes(h)}))&&(l=Ke),(t.includes(o[_n])||t.some(function(h){return dj[_n].includes(h)}))&&(l=_n);var c=t.reduce(function(h,d){var p=Ant(Gt.cssPrefix,d);if(Sh[d]?(d=Pnt[l].includes(d)?ont[l][d]:d,s=d,h.prefix=d):Lnt[l].indexOf(d)>-1?(s=d,h.prefix=h1(d,{family:l})):p?h.iconName=p:d!==Gt.replacementClass&&d!==o[Ke]&&d!==o[_n]&&h.rest.push(d),!i&&h.prefix&&h.iconName){var m=s==="fa"?vB(h.iconName):{},v=Yc(h.prefix,h.iconName);m.prefix&&(s=null),h.iconName=m.iconName||v||h.iconName,h.prefix=m.prefix||h.prefix,h.prefix==="far"&&!Sh.far&&Sh.fas&&!Gt.autoFetchSvg&&(h.prefix="fas")}return h},Nk());return(t.includes("fa-brands")||t.includes("fab"))&&(c.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(c.prefix="fad"),!c.prefix&&l===_n&&(Sh.fass||Gt.autoFetchSvg)&&(c.prefix="fass",c.iconName=Yc(c.prefix,c.iconName)||c.iconName),(c.prefix==="fa"||s==="fa")&&(c.prefix=Ol()||"fas"),c}var Nnt=function(){function t(){Zet(this,t),this.definitions={}}return Get(t,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(p){typeof p=="string"&&(n[l][p]=h)}),n[l][c]=h}),n}}]),t}(),fj=[],Th={},$h={},Dnt=Object.keys($h);function Int(t,e){var n=e.mixoutsTo;return fj=t,Th={},Object.keys($h).forEach(function(r){Dnt.indexOf(r)===-1&&delete $h[r]}),fj.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),u0(i[s])==="object"&&Object.keys(i[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=i[s][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){Th[s]||(Th[s]=[]),Th[s].push(o[s])})}r.provides&&r.provides($h)}),n}function vT(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Ea?(yu("beforeI2svg",e),ma("pseudoElements2svg",e),ma("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.autoReplaceSvgRoot;Gt.autoReplaceSvg===!1&&(Gt.autoReplaceSvg=!0),Gt.observeMutations=!0,Tnt(function(){znt({autoReplaceSvgRoot:n}),yu("watch",e)})}},$nt={icon:function(e){if(e===null)return null;if(u0(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yc(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var n=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=h1(e[0]);return{prefix:r,iconName:Yc(r,n)||n}}if(typeof e=="string"&&(e.indexOf("".concat(Gt.cssPrefix,"-"))>-1||e.match(snt))){var i=d1(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ol(),iconName:Yc(i.prefix,i.iconName)||i.iconName}}if(typeof e=="string"){var o=Ol();return{prefix:o,iconName:Yc(o,e)||e}}}},Gi={noAuto:Fnt,config:Gt,dom:Bnt,parse:$nt,library:yB,findIconDefinition:yT,toHtml:Ig},znt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.autoReplaceSvgRoot,r=n===void 0?en:n;(Object.keys($o.styles).length>0||Gt.autoFetchSvg)&&Ea&&Gt.autoReplaceSvg&&Gi.dom.i2svg({node:r})};function f1(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(r){return Ig(r)})}}),Object.defineProperty(t,"node",{get:function(){if(Ea){var r=en.createElement("div");return r.innerHTML=t.html,r.children}}}),t}function Unt(t){var e=t.children,n=t.main,r=t.mask,i=t.attributes,o=t.styles,s=t.transform;if(Ak(s)&&n.found&&!r.found){var l=n.width,c=n.height,h={x:l/c/2,y:.5};i.style=u1(Vt(Vt({},o),{},{"transform-origin":"".concat(h.x+s.x/16,"em ").concat(h.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}function Vnt(t){var e=t.prefix,n=t.iconName,r=t.children,i=t.attributes,o=t.symbol,s=o===!0?"".concat(e,"-").concat(Gt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Vt(Vt({},i),{},{id:s}),children:r}]}]}function Dk(t){var e=t.icons,n=e.main,r=e.mask,i=t.prefix,o=t.iconName,s=t.transform,l=t.symbol,c=t.title,h=t.maskId,d=t.titleId,p=t.extra,m=t.watchable,v=m===void 0?!1:m,y=r.found?r:n,_=y.width,T=y.height,x=i==="fak",w=[Gt.replacementClass,o?"".concat(Gt.cssPrefix,"-").concat(o):""].filter(function(B){return p.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(p.classes).join(" "),E={children:[],attributes:Vt(Vt({},p.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(_," ").concat(T)})},O=x&&!~p.classes.indexOf("fa-fw")?{width:"".concat(_/T*16*.0625,"em")}:{};v&&(E.attributes[vu]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||qm())},children:[c]}),delete E.attributes.title);var k=Vt(Vt({},E),{},{prefix:i,iconName:o,main:n,mask:r,maskId:h,transform:s,symbol:l,styles:Vt(Vt({},O),p.styles)}),P=r.found&&n.found?ma("generateAbstractMask",k)||{children:[],attributes:{}}:ma("generateAbstractIcon",k)||{children:[],attributes:{}},A=P.children,j=P.attributes;return k.children=A,k.attributes=j,l?Vnt(k):Unt(k)}function pj(t){var e=t.content,n=t.width,r=t.height,i=t.transform,o=t.title,s=t.extra,l=t.watchable,c=l===void 0?!1:l,h=Vt(Vt(Vt({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});c&&(h[vu]="");var d=Vt({},s.styles);Ak(i)&&(d.transform=bnt({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var p=u1(d);p.length>0&&(h.style=p);var m=[];return m.push({tag:"span",attributes:h,children:[e]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function Hnt(t){var e=t.content,n=t.title,r=t.extra,i=Vt(Vt(Vt({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=u1(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Vw=$o.styles;function _T(t){var e=t[0],n=t[1],r=t.slice(4),i=Ok(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(Gt.cssPrefix,"-").concat(Wc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Gt.cssPrefix,"-").concat(Wc.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Gt.cssPrefix,"-").concat(Wc.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:e,height:n,icon:s}}var Wnt={found:!1,width:512,height:512};function Ynt(t,e){!iB&&!Gt.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function bT(t,e){var n=e;return e==="fa"&&Gt.styleDefault!==null&&(e=Ol()),new Promise(function(r,i){if(ma("missingIconAbstract"),n==="fa"){var o=vB(t)||{};t=o.iconName||t,e=o.prefix||e}if(t&&e&&Vw[e]&&Vw[e][t]){var s=Vw[e][t];return r(_T(s))}Ynt(t,e),r(Vt(Vt({},Wnt),{},{icon:Gt.showMissingIcons&&t?ma("missingIconAbstract")||{}:{}}))})}var mj=function(){},xT=Gt.measurePerformance&&Vv&&Vv.mark&&Vv.measure?Vv:{mark:mj,measure:mj},Op='FA "6.4.2"',Znt=function(e){return xT.mark("".concat(Op," ").concat(e," begins")),function(){return _B(e)}},_B=function(e){xT.mark("".concat(Op," ").concat(e," ends")),xT.measure("".concat(Op," ").concat(e),"".concat(Op," ").concat(e," begins"),"".concat(Op," ").concat(e," ends"))},Ik={begin:Znt,end:_B},n_=function(){};function gj(t){var e=t.getAttribute?t.getAttribute(vu):null;return typeof e=="string"}function Gnt(t){var e=t.getAttribute?t.getAttribute(kk):null,n=t.getAttribute?t.getAttribute(Pk):null;return e&&n}function qnt(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(Gt.replacementClass)}function Knt(){if(Gt.autoReplaceSvg===!0)return r_.replace;var t=r_[Gt.autoReplaceSvg];return t||r_.replace}function Xnt(t){return en.createElementNS("http://www.w3.org/2000/svg",t)}function Qnt(t){return en.createElement(t)}function bB(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.ceFn,r=n===void 0?t.tag==="svg"?Xnt:Qnt:n;if(typeof t=="string")return en.createTextNode(t);var i=r(t.tag);Object.keys(t.attributes||[]).forEach(function(s){i.setAttribute(s,t.attributes[s])});var o=t.children||[];return o.forEach(function(s){i.appendChild(bB(s,{ceFn:r}))}),i}function Jnt(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var r_={replace:function(e){var n=e[0];if(n.parentNode)if(e[1].forEach(function(i){n.parentNode.insertBefore(bB(i),n)}),n.getAttribute(vu)===null&&Gt.keepOriginalSource){var r=en.createComment(Jnt(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(e){var n=e[0],r=e[1];if(~Mk(n).indexOf(Gt.replacementClass))return r_.replace(e);var i=new RegExp("".concat(Gt.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===Gt.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(l){return Ig(l)}).join(` +`);n.setAttribute(vu,""),n.innerHTML=s}};function vj(t){t()}function xB(t,e){var n=typeof e=="function"?e:n_;if(t.length===0)n();else{var r=vj;Gt.mutateApproach===rnt&&(r=El.requestAnimationFrame||vj),r(function(){var i=Knt(),o=Ik.begin("mutate");t.map(i),o(),n()})}}var Fk=!1;function wB(){Fk=!0}function wT(){Fk=!1}var d0=null;function yj(t){if(aj&&Gt.observeMutations){var e=t.treeCallback,n=e===void 0?n_:e,r=t.nodeCallback,i=r===void 0?n_:r,o=t.pseudoElementsCallback,s=o===void 0?n_:o,l=t.observeMutationsRoot,c=l===void 0?en:l;d0=new aj(function(h){if(!Fk){var d=Ol();jd(h).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!gj(p.addedNodes[0])&&(Gt.searchPseudoElements&&s(p.target),n(p.target)),p.type==="attributes"&&p.target.parentNode&&Gt.searchPseudoElements&&s(p.target.parentNode),p.type==="attributes"&&gj(p.target)&&~unt.indexOf(p.attributeName))if(p.attributeName==="class"&&Gnt(p.target)){var m=d1(Mk(p.target)),v=m.prefix,y=m.iconName;p.target.setAttribute(kk,v||d),y&&p.target.setAttribute(Pk,y)}else qnt(p.target)&&i(p.target)})}}),Ea&&d0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function trt(){d0&&d0.disconnect()}function ert(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],l=o.slice(1);return s&&l.length>0&&(r[s]=l.join(":").trim()),r},{})),n}function nrt(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=t.innerText!==void 0?t.innerText.trim():"",i=d1(Mk(t));return i.prefix||(i.prefix=Ol()),e&&n&&(i.prefix=e,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Rnt(i.prefix,t.innerText)||jk(i.prefix,mT(t.innerText))),!i.iconName&&Gt.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=t.firstChild.data)),i}function rrt(t){var e=jd(t.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return Gt.autoA11y&&(n?e["aria-labelledby"]="".concat(Gt.replacementClass,"-title-").concat(r||qm()):(e["aria-hidden"]="true",e.focusable="false")),e}function irt(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ls,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _j(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=nrt(t),r=n.iconName,i=n.prefix,o=n.rest,s=rrt(t),l=vT("parseNodeAttributes",{},t),c=e.styleParser?ert(t):[];return Vt({iconName:r,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:i,transform:ls,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:s}},l)}var ort=$o.styles;function SB(t){var e=Gt.autoReplaceSvg==="nest"?_j(t,{styleParser:!1}):_j(t);return~e.extra.classes.indexOf(oB)?ma("generateLayersText",t,e):ma("generateSvgReplacementMutation",t,e)}var Cl=new Set;Lk.map(function(t){Cl.add("fa-".concat(t))});Object.keys(Wm[Ke]).map(Cl.add.bind(Cl));Object.keys(Wm[_n]).map(Cl.add.bind(Cl));Cl=Ng(Cl);function bj(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ea)return Promise.resolve();var n=en.documentElement.classList,r=function(p){return n.add("".concat(lj,"-").concat(p))},i=function(p){return n.remove("".concat(lj,"-").concat(p))},o=Gt.autoFetchSvg?Cl:Lk.map(function(d){return"fa-".concat(d)}).concat(Object.keys(ort));o.includes("fa")||o.push("fa");var s=[".".concat(oB,":not([").concat(vu,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(vu,"])")})).join(", ");if(s.length===0)return Promise.resolve();var l=[];try{l=jd(t.querySelectorAll(s))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=Ik.begin("onTree"),h=l.reduce(function(d,p){try{var m=SB(p);m&&d.push(m)}catch(v){iB||v.name==="MissingIcon"&&console.error(v)}return d},[]);return new Promise(function(d,p){Promise.all(h).then(function(m){xB(m,function(){r("active"),r("complete"),i("pending"),typeof e=="function"&&e(),c(),d()})}).catch(function(m){c(),p(m)})})}function srt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;SB(t).then(function(n){n&&xB([n],e)})}function art(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:yT(e||{}),i=n.mask;return i&&(i=(i||{}).icon?i:yT(i||{})),t(r,Vt(Vt({},n),{},{mask:i}))}}var lrt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?ls:r,o=n.symbol,s=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,h=n.maskId,d=h===void 0?null:h,p=n.title,m=p===void 0?null:p,v=n.titleId,y=v===void 0?null:v,_=n.classes,T=_===void 0?[]:_,x=n.attributes,w=x===void 0?{}:x,E=n.styles,O=E===void 0?{}:E;if(e){var k=e.prefix,P=e.iconName,A=e.icon;return f1(Vt({type:"icon"},e),function(){return yu("beforeDOMElementCreation",{iconDefinition:e,params:n}),Gt.autoA11y&&(m?w["aria-labelledby"]="".concat(Gt.replacementClass,"-title-").concat(y||qm()):(w["aria-hidden"]="true",w.focusable="false")),Dk({icons:{main:_T(A),mask:c?_T(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:P,transform:Vt(Vt({},ls),i),symbol:s,title:m,maskId:d,titleId:y,extra:{attributes:w,styles:O,classes:T}})})}},crt={mixout:function(){return{icon:art(lrt)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=bj,n.nodeCallback=srt,n}}},provides:function(e){e.i2svg=function(n){var r=n.node,i=r===void 0?en:r,o=n.callback,s=o===void 0?function(){}:o;return bj(i,s)},e.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,l=r.prefix,c=r.transform,h=r.symbol,d=r.mask,p=r.maskId,m=r.extra;return new Promise(function(v,y){Promise.all([bT(i,l),d.iconName?bT(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var T=Ok(_,2),x=T[0],w=T[1];v([n,Dk({icons:{main:x,mask:w},prefix:l,iconName:i,transform:c,symbol:h,maskId:p,title:o,titleId:s,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,l=n.styles,c=u1(l);c.length>0&&(i.style=c);var h;return Ak(s)&&(h=ma("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(h||o.icon),{children:r,attributes:i}}}},urt={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return f1({type:"layer"},function(){yu("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(l){Array.isArray(l)?l.map(function(c){s=s.concat(c.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Gt.cssPrefix,"-layers")].concat(Ng(o)).join(" ")},children:s}]})}}}},hrt={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,l=s===void 0?[]:s,c=r.attributes,h=c===void 0?{}:c,d=r.styles,p=d===void 0?{}:d;return f1({type:"counter",content:n},function(){return yu("beforeDOMElementCreation",{content:n,params:r}),Hnt({content:n.toString(),title:o,extra:{attributes:h,styles:p,classes:["".concat(Gt.cssPrefix,"-layers-counter")].concat(Ng(l))}})})}}}},drt={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?ls:i,s=r.title,l=s===void 0?null:s,c=r.classes,h=c===void 0?[]:c,d=r.attributes,p=d===void 0?{}:d,m=r.styles,v=m===void 0?{}:m;return f1({type:"text",content:n},function(){return yu("beforeDOMElementCreation",{content:n,params:r}),pj({content:n,transform:Vt(Vt({},ls),o),title:l,extra:{attributes:p,styles:v,classes:["".concat(Gt.cssPrefix,"-layers-text")].concat(Ng(h))}})})}}},provides:function(e){e.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,l=null,c=null;if(eB){var h=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();l=d.width/h,c=d.height/h}return Gt.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,pj({content:n.innerHTML,width:l,height:c,transform:o,title:i,extra:s,watchable:!0})])}}},frt=new RegExp('"',"ug"),xj=[1105920,1112319];function prt(t){var e=t.replace(frt,""),n=Cnt(e,0),r=n>=xj[0]&&n<=xj[1],i=e.length===2?e[0]===e[1]:!1;return{value:mT(i?e[0]:e),isSecondary:r||i}}function wj(t,e){var n="".concat(nnt).concat(e.replace(":","-"));return new Promise(function(r,i){if(t.getAttribute(n)!==null)return r();var o=jd(t.children),s=o.filter(function(A){return A.getAttribute(pT)===e})[0],l=El.getComputedStyle(t,e),c=l.getPropertyValue("font-family").match(ant),h=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(s&&!c)return t.removeChild(s),r();if(c&&d!=="none"&&d!==""){var p=l.getPropertyValue("content"),m=~["Sharp"].indexOf(c[2])?_n:Ke,v=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?Ym[m][c[2].toLowerCase()]:lnt[m][h],y=prt(p),_=y.value,T=y.isSecondary,x=c[0].startsWith("FontAwesome"),w=jk(v,_),E=w;if(x){var O=jnt(_);O.iconName&&O.prefix&&(w=O.iconName,v=O.prefix)}if(w&&!T&&(!s||s.getAttribute(kk)!==v||s.getAttribute(Pk)!==E)){t.setAttribute(n,E),s&&t.removeChild(s);var k=irt(),P=k.extra;P.attributes[pT]=e,bT(w,v).then(function(A){var j=Dk(Vt(Vt({},k),{},{icons:{main:A,mask:Nk()},prefix:v,iconName:E,extra:P,watchable:!0})),B=en.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?t.insertBefore(B,t.firstChild):t.appendChild(B),B.outerHTML=j.map(function(N){return Ig(N)}).join(` +`),t.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function mrt(t){return Promise.all([wj(t,"::before"),wj(t,"::after")])}function grt(t){return t.parentNode!==document.head&&!~int.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(pT)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function Sj(t){if(Ea)return new Promise(function(e,n){var r=jd(t.querySelectorAll("*")).filter(grt).map(mrt),i=Ik.begin("searchPseudoElements");wB(),Promise.all(r).then(function(){i(),wT(),e()}).catch(function(){i(),wT(),n()})})}var vrt={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Sj,n}}},provides:function(e){e.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?en:r;Gt.searchPseudoElements&&Sj(i)}}},Tj=!1,yrt={mixout:function(){return{dom:{unwatch:function(){wB(),Tj=!0}}}},hooks:function(){return{bootstrap:function(){yj(vT("mutationObserverCallbacks",{}))},noAuto:function(){trt()},watch:function(n){var r=n.observeMutationsRoot;Tj?wT():yj(vT("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ej=function(e){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],l=o.slice(1).join("-");if(s&&l==="h")return r.flipX=!0,r;if(s&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(s){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},_rt={mixout:function(){return{parse:{transform:function(n){return Ej(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=Ej(i)),n}}},provides:function(e){e.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),p={transform:"".concat(c," ").concat(h," ").concat(d)},m={transform:"translate(".concat(s/2*-1," -256)")},v={outer:l,inner:p,path:m};return{tag:"g",attributes:Vt({},v.outer),children:[{tag:"g",attributes:Vt({},v.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Vt(Vt({},r.icon.attributes),v.path)}]}]}}}},Hw={x:0,y:0,width:"100%",height:"100%"};function Oj(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function brt(t){return t.tag==="g"?t.children:[t]}var xrt={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?d1(i.split(" ").map(function(s){return s.trim()})):Nk();return o.prefix||(o.prefix=Ol()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(e){e.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,l=n.maskId,c=n.transform,h=o.width,d=o.icon,p=s.width,m=s.icon,v=_nt({transform:c,containerWidth:p,iconWidth:h}),y={tag:"rect",attributes:Vt(Vt({},Hw),{},{fill:"white"})},_=d.children?{children:d.children.map(Oj)}:{},T={tag:"g",attributes:Vt({},v.inner),children:[Oj(Vt({tag:d.tag,attributes:Vt(Vt({},d.attributes),v.path)},_))]},x={tag:"g",attributes:Vt({},v.outer),children:[T]},w="mask-".concat(l||qm()),E="clip-".concat(l||qm()),O={tag:"mask",attributes:Vt(Vt({},Hw),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,x]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:brt(m)},O]};return r.push(k,{tag:"rect",attributes:Vt({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(w,")")},Hw)}),{children:r,attributes:i}}}},wrt={provides:function(e){var n=!1;El.matchMedia&&(n=El.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Vt(Vt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Vt(Vt({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Vt(Vt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:Vt(Vt({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Vt(Vt({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:Vt(Vt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Vt(Vt({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Vt(Vt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Vt(Vt({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Srt={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},Trt=[wnt,crt,urt,hrt,drt,vrt,yrt,_rt,xrt,wrt,Srt];Int(Trt,{mixoutsTo:Gi});Gi.noAuto;Gi.config;Gi.library;Gi.dom;var ST=Gi.parse;Gi.findIconDefinition;Gi.toHtml;var Ert=Gi.icon;Gi.layer;Gi.text;Gi.counter;var TB={exports:{}},Ort="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Crt=Ort,krt=Crt;function EB(){}function OB(){}OB.resetWarningCache=EB;var Prt=function(){function t(r,i,o,s,l,c){if(c!==krt){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:OB,resetWarningCache:EB};return n.PropTypes=n,n};TB.exports=Prt();var Lrt=TB.exports;const F=xs(Lrt);function Cj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tl(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Art(t,e){if(t==null)return{};var n=Mrt(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TT(t){return Rrt(t)||jrt(t)||Nrt(t)||Drt()}function Rrt(t){if(Array.isArray(t))return ET(t)}function jrt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nrt(t,e){if(t){if(typeof t=="string")return ET(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ET(t,e)}}function ET(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(c){return kB(t,c)}),i=Object.keys(e.attributes||{}).reduce(function(c,h){var d=e.attributes[h];switch(h){case"class":c.attrs.className=d,delete e.attributes.class;break;case"style":c.attrs.style=zrt(d);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?c.attrs[h.toLowerCase()]=d:c.attrs[CB(h)]=d}return c},{attrs:{}}),o=n.style,s=o===void 0?{}:o,l=Art(n,Brt);return i.attrs.style=tl(tl({},i.attrs.style),s),t.apply(void 0,[e.tag,tl(tl({},i.attrs),l)].concat(TT(r)))}var PB=!1;try{PB=!0}catch{}function Urt(){if(!PB&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function kj(t){if(t&&f0(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(ST.icon)return ST.icon(t);if(t===null)return null;if(t&&f0(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}function Ww(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?Eh({},t,e):{}}var zt=q.forwardRef(function(t,e){var n=t.icon,r=t.mask,i=t.symbol,o=t.className,s=t.title,l=t.titleId,c=t.maskId,h=kj(n),d=Ww("classes",[].concat(TT(Irt(t)),TT(o.split(" ")))),p=Ww("transform",typeof t.transform=="string"?ST.transform(t.transform):t.transform),m=Ww("mask",kj(r)),v=Ert(h,tl(tl(tl(tl({},d),p),m),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!v)return Urt("Could not find icon",h),null;var y=v.abstract,_={ref:e};return Object.keys(t).forEach(function(T){zt.defaultProps.hasOwnProperty(T)||(_[T]=t[T])}),Vrt(y[0],_)});zt.displayName="FontAwesomeIcon";zt.propTypes={beat:F.bool,border:F.bool,beatFade:F.bool,bounce:F.bool,className:F.string,fade:F.bool,flash:F.bool,mask:F.oneOfType([F.object,F.array,F.string]),maskId:F.string,fixedWidth:F.bool,inverse:F.bool,flip:F.oneOf([!0,!1,"horizontal","vertical","both"]),icon:F.oneOfType([F.object,F.array,F.string]),listItem:F.bool,pull:F.oneOf(["right","left"]),pulse:F.bool,rotation:F.oneOf([0,90,180,270]),shake:F.bool,size:F.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:F.bool,spinPulse:F.bool,spinReverse:F.bool,symbol:F.oneOfType([F.bool,F.string]),title:F.string,titleId:F.string,transform:F.oneOfType([F.string,F.object]),swapOpacity:F.bool};zt.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Vrt=kB.bind(null,q.createElement),LB={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i0?"".concat(t,"px"):null}function Yrt(){return document.body.clientWidth0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qrt;return e?t.split(" ").map(function(n){return e[n]||n}).join(" "):t}function Il(t,e){var n={};return Object.keys(t).forEach(function(r){e.indexOf(r)===-1&&(n[r]=t[r])}),n}function AB(t,e){for(var n=Array.isArray(e)?e:[e],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=t[i];return o}var Pj={};function OT(t){Pj[t]||(typeof console<"u"&&console.error(t),Pj[t]=!0)}function RB(t,e){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&OT('"'.concat(i,'" property of "').concat(o,`" has been deprecated. +`).concat(e));for(var s=arguments.length,l=new Array(s>3?s-3:0),c=3;c"u"?"undefined":rd(window))==="object"&&window.Element||function(){};function Bk(t,e,n){if(!(t[e]instanceof Krt))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var id=F.oneOfType([F.string,F.func,Bk,F.shape({current:F.any})]),fe=F.oneOfType([F.func,F.string,F.shape({$$typeof:F.symbol,render:F.func}),F.arrayOf(F.oneOfType([F.func,F.string,F.shape({$$typeof:F.symbol,render:F.func})]))]),p0={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},m0=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Qv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Le={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Xrt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$k=!!(typeof window<"u"&&window.document&&window.document.createElement);function Qrt(t){return t&&rd(t)==="object"?"current"in t:!1}function jB(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function CT(t){var e=rd(t);return t!=null&&(e==="object"||e==="function")}function Lj(t){var e=rd(t),n=0/0;if(e==="number")return t;if(e==="symbol"||e==="object"&&jB(t)==="[object Symbol]")return n;if(CT(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=CT(r)?"".concat(r):r}if(e!=="string")return t===0?t:+t;t=t.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(t);return i||/^0o[0-7]+$/i.test(t)?parseInt(t.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(t)?n:+t}function Jrt(t){if(!CT(t))return!1;var e=jB(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object Proxy]"}function tit(t){if(Qrt(t))return t.current;if(Jrt(t))return t();if(typeof t=="string"&&$k){var e=document.querySelectorAll(t);if(e.length||(e=document.querySelectorAll("#".concat(t))),!e.length)throw new Error("The target '".concat(t,"' could not be identified in the dom, tip: check spelling"));return e}return t}function Mj(t){return t===null?!1:Array.isArray(t)||$k&&typeof t.length=="number"}function Km(t,e){var n=tit(t);return e?Mj(n)?n:n===null?[]:[n]:Mj(n)?n[0]:n}var eit=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],nit=["className","cssModule","noGutters","tag","widths"];function kT(){return kT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var oit=["xs","sm","md","lg","xl","xxl"],qu=F.oneOfType([F.number,F.string]),sit={tag:fe,noGutters:RB(F.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:F.string,cssModule:F.object,xs:qu,sm:qu,md:qu,lg:qu,xl:qu,xxl:qu,widths:F.array};function qr(t){var e=t.className,n=t.cssModule,r=t.noGutters,i=t.tag,o=i===void 0?"div":i,s=t.widths,l=s===void 0?oit:s,c=rit(t,nit),h=[];l.forEach(function(p,m){var v=t[p];if(delete c[p],!!v){var y=!m;h.push(y?"row-cols-".concat(v):"row-cols-".concat(p,"-").concat(v))}});var d=Xt(qt(e,r?"gx-0":null,"row",h),n);return q.createElement(o,kT({},c,{className:d}))}qr.propTypes=sit;var ait=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function PT(){return PT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function cit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var uit={children:F.node,className:F.string,color:F.string,container:F.oneOfType([F.bool,F.string]),cssModule:F.object,dark:F.bool,expand:F.oneOfType([F.bool,F.string]),fixed:F.string,light:F.bool,role:F.string,sticky:F.string,tag:fe},hit=function(e){return e===!1?!1:e===!0||e==="xs"?"navbar-expand":"navbar-expand-".concat(e)};function NB(t){var e,n=t.expand,r=n===void 0?!1:n,i=t.className,o=t.cssModule,s=t.light,l=t.dark,c=t.fixed,h=t.sticky,d=t.color,p=t.container,m=p===void 0?"fluid":p,v=t.tag,y=v===void 0?"nav":v,_=t.children,T=lit(t,ait),x=Xt(qt(i,"navbar",hit(r),(e={"navbar-light":s,"navbar-dark":l},Yw(e,"bg-".concat(d),d),Yw(e,"fixed-".concat(c),c),Yw(e,"sticky-".concat(h),h),e)),o),w=m&&m===!0?"container":"container-".concat(m);return q.createElement(y,PT({},T,{className:x}),m?q.createElement("div",{className:w},_):_)}NB.propTypes=uit;var dit=["className","cssModule","tag"];function LT(){return LT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var mit={className:F.string,cssModule:F.object,tag:fe};function DB(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"a":r,o=fit(t,dit),s=Xt(qt(e,"navbar-brand"),n);return q.createElement(i,LT({},o,{className:s}))}DB.propTypes=mit;var git=["className","cssModule","children","tag"];function MT(){return MT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var xit={className:F.string,cssModule:F.object,tag:fe,type:F.string,children:F.node};function IB(t){var e=t.className,n=t.cssModule,r=t.children,i=t.tag,o=i===void 0?"button":i,s=_it(t,git),l=Xt(qt(e,"navbar-toggler"),n);return q.createElement(o,MT({"aria-label":"Toggle navigation"},vit({type:"button"},s),{className:l}),r||q.createElement("span",{className:Xt("navbar-toggler-icon",n)}))}IB.propTypes=xit;var wit=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function AT(){return AT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Tit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Eit={card:F.bool,className:F.string,cssModule:F.object,fill:F.bool,horizontal:F.oneOf(["center","end"]),justified:F.bool,navbar:F.bool,pills:F.bool,tabs:F.bool,tag:fe,vertical:F.oneOfType([F.bool,F.string])},Oit=function(e){return e===!1?!1:e===!0||e==="xs"?"flex-column":"flex-".concat(e,"-column")};function zk(t){var e=t.className,n=t.cssModule,r=t.tabs,i=t.pills,o=t.vertical,s=o===void 0?!1:o,l=t.horizontal,c=t.justified,h=t.fill,d=t.navbar,p=t.card,m=t.tag,v=m===void 0?"ul":m,y=Sit(t,wit),_=Xt(qt(e,d?"navbar-nav":"nav",l?"justify-content-".concat(l):!1,Oit(s),{"nav-tabs":r,"card-header-tabs":p&&r,"nav-pills":i,"card-header-pills":p&&i,"nav-justified":c,"nav-fill":h}),n);return q.createElement(v,AT({},y,{className:_}))}zk.propTypes=Eit;var Cit=["className","cssModule","active","tag"];function RT(){return RT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Pit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Lit={active:F.bool,className:F.string,cssModule:F.object,tag:fe};function FB(t){var e=t.className,n=t.cssModule,r=t.active,i=t.tag,o=i===void 0?"li":i,s=kit(t,Cit),l=Xt(qt(e,"nav-item",r?"active":!1),n);return q.createElement(o,RT({},s,{className:l}))}FB.propTypes=Lit;function jT(t){"@babel/helpers - typeof";return jT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jT(t)}var Mit=["className","cssModule","active","tag","innerRef"];function NT(){return NT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Rit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function jit(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rj(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g0(t){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g0(t)}var $it={active:F.bool,className:F.string,cssModule:F.object,disabled:F.bool,href:F.any,innerRef:F.oneOfType([F.object,F.func,F.string]),onClick:F.func,tag:fe},$B=function(t){Dit(n,t);var e=Iit(n);function n(r){var i;return jit(this,n),i=e.call(this,r),i.onClick=i.onClick.bind(BB(i)),i}return Nit(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,s=i.cssModule,l=i.active,c=i.tag,h=c===void 0?"a":c,d=i.innerRef,p=Ait(i,Mit),m=Xt(qt(o,"nav-link",{disabled:p.disabled,active:l}),s);return q.createElement(h,NT({},p,{ref:d,onClick:this.onClick,className:m}))}}]),n}(q.Component);$B.propTypes=$it;const zB=$B;var zit=["className","cssModule","variant","innerRef"];function IT(){return IT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Wit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Yit={active:F.bool,"aria-label":F.string,onClick:F.func,variant:F.oneOf(["white"]),className:F.string,cssModule:F.object,innerRef:F.oneOfType([F.object,F.string,F.func])};function UB(t){var e=t.className;t.cssModule;var n=t.variant,r=t.innerRef,i=Hit(t,zit),o=Xt(qt(e,"btn-close",n&&"btn-close-".concat(n)));return q.createElement("button",IT({ref:r,type:"button",className:o},Uit({"aria-label":"close"},i)))}UB.propTypes=Yit;var Zit=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function FT(){return FT=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qit(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Kit={active:F.bool,"aria-label":F.string,block:F.bool,children:F.node,className:F.string,cssModule:F.object,close:F.bool,color:F.string,disabled:F.bool,innerRef:F.oneOfType([F.object,F.func,F.string]),onClick:F.func,outline:F.bool,size:F.string,tag:fe};function ke(t){var e=U.useCallback(function(w){if(t.disabled){w.preventDefault();return}if(t.onClick)return t.onClick(w)},[t.onClick,t.disabled]),n=t.active,r=t["aria-label"],i=t.block,o=t.className,s=t.close,l=t.cssModule,c=t.color,h=c===void 0?"secondary":c,d=t.outline,p=t.size,m=t.tag,v=m===void 0?"button":m,y=t.innerRef,_=Git(t,Zit);if(s)return q.createElement(UB,_);var T="btn".concat(d?"-outline":"","-").concat(h),x=Xt(qt(o,"btn",T,p?"btn-".concat(p):!1,i?"d-block w-100":!1,{active:n,disabled:t.disabled}),l);return _.href&&v==="button"&&(v="a"),q.createElement(v,FT({type:v==="button"&&_.onClick?"button":void 0},_,{className:x,ref:y,onClick:e,"aria-label":r}))}ke.propTypes=Kit;var VB=U.createContext(),HB=U.createContext();function Nj(t){var e=t.children,n=U.useState(null),r=n[0],i=n[1],o=U.useRef(!1);U.useEffect(function(){return function(){o.current=!0}},[]);var s=U.useCallback(function(l){o.current||i(l)},[]);return U.createElement(VB.Provider,{value:r},U.createElement(HB.Provider,{value:s},e))}var WB=function(e){return Array.isArray(e)?e[0]:e},YB=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u")return!1;var e=$i(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cot(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!ao(o)||!vs(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function uot(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(c,h){return c[h]="",c},{});!ao(i)||!vs(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const hot={name:"applyStyles",enabled:!0,phase:"write",fn:cot,effect:uot,requires:["computeStyles"]};function fs(t){return t.split("-")[0]}var eu=Math.max,v0=Math.min,sd=Math.round;function $T(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qB(){return!/^((?!chrome|android).)*safari/i.test($T())}function ad(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&ao(t)&&(i=t.offsetWidth>0&&sd(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&sd(r.height)/t.offsetHeight||1);var s=_u(t)?$i(t):window,l=s.visualViewport,c=!qB()&&n,h=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,p=r.width/i,m=r.height/o;return{width:p,height:m,top:d,right:h+p,bottom:d+m,left:h,x:h,y:d}}function Hk(t){var e=ad(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function KB(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Vk(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ga(t){return $i(t).getComputedStyle(t)}function dot(t){return["table","td","th"].indexOf(vs(t))>=0}function Fl(t){return((_u(t)?t.ownerDocument:t.document)||window.document).documentElement}function p1(t){return vs(t)==="html"?t:t.assignedSlot||t.parentNode||(Vk(t)?t.host:null)||Fl(t)}function Bj(t){return!ao(t)||ga(t).position==="fixed"?null:t.offsetParent}function fot(t){var e=/firefox/i.test($T()),n=/Trident/i.test($T());if(n&&ao(t)){var r=ga(t);if(r.position==="fixed")return null}var i=p1(t);for(Vk(i)&&(i=i.host);ao(i)&&["html","body"].indexOf(vs(i))<0;){var o=ga(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Bg(t){for(var e=$i(t),n=Bj(t);n&&dot(n)&&ga(n).position==="static";)n=Bj(n);return n&&(vs(n)==="html"||vs(n)==="body"&&ga(n).position==="static")?e:n||fot(t)||e}function Wk(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Qp(t,e,n){return eu(t,v0(e,n))}function pot(t,e,n){var r=Qp(t,e,n);return r>n?n:r}function XB(){return{top:0,right:0,bottom:0,left:0}}function QB(t){return Object.assign({},XB(),t)}function JB(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var mot=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,QB(typeof e!="number"?e:JB(e,Fg))};function got(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=fs(n.placement),c=Wk(l),h=[ci,mo].indexOf(l)>=0,d=h?"height":"width";if(!(!o||!s)){var p=mot(i.padding,n),m=Hk(o),v=c==="y"?li:ci,y=c==="y"?po:mo,_=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],T=s[c]-n.rects.reference[c],x=Bg(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,E=_/2-T/2,O=p[v],k=w-m[d]-p[y],P=w/2-m[d]/2+E,A=Qp(O,P,k),j=c;n.modifiersData[r]=(e={},e[j]=A,e.centerOffset=A-P,e)}}function vot(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||KB(e.elements.popper,i)&&(e.elements.arrow=i))}const yot={name:"arrow",enabled:!0,phase:"main",fn:got,effect:vot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ld(t){return t.split("-")[1]}var _ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bot(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:sd(n*i)/i||0,y:sd(r*i)/i||0}}function $j(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,h=t.adaptive,d=t.roundOffsets,p=t.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,_=y===void 0?0:y,T=typeof d=="function"?d({x:v,y:_}):{x:v,y:_};v=T.x,_=T.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),E=ci,O=li,k=window;if(h){var P=Bg(n),A="clientHeight",j="clientWidth";if(P===$i(n)&&(P=Fl(n),ga(P).position!=="static"&&l==="absolute"&&(A="scrollHeight",j="scrollWidth")),P=P,i===li||(i===ci||i===mo)&&o===Xm){O=po;var B=p&&P===k&&k.visualViewport?k.visualViewport.height:P[A];_-=B-r.height,_*=c?1:-1}if(i===ci||(i===li||i===po)&&o===Xm){E=mo;var N=p&&P===k&&k.visualViewport?k.visualViewport.width:P[j];v-=N-r.width,v*=c?1:-1}}var V=Object.assign({position:l},h&&_ot),Y=d===!0?bot({x:v,y:_},$i(n)):{x:v,y:_};if(v=Y.x,_=Y.y,c){var nt;return Object.assign({},V,(nt={},nt[O]=w?"0":"",nt[E]=x?"0":"",nt.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",nt))}return Object.assign({},V,(e={},e[O]=w?_+"px":"",e[E]=x?v+"px":"",e.transform="",e))}function xot(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,h={placement:fs(e.placement),variation:ld(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$j(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$j(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const wot={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xot,data:{}};var Jv={passive:!0};function Sot(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=$i(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&h.forEach(function(d){d.addEventListener("scroll",n.update,Jv)}),l&&c.addEventListener("resize",n.update,Jv),function(){o&&h.forEach(function(d){d.removeEventListener("scroll",n.update,Jv)}),l&&c.removeEventListener("resize",n.update,Jv)}}const Tot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sot,data:{}};var Eot={left:"right",right:"left",bottom:"top",top:"bottom"};function i_(t){return t.replace(/left|right|bottom|top/g,function(e){return Eot[e]})}var Oot={start:"end",end:"start"};function zj(t){return t.replace(/start|end/g,function(e){return Oot[e]})}function Yk(t){var e=$i(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Zk(t){return ad(Fl(t)).left+Yk(t).scrollLeft}function Cot(t,e){var n=$i(t),r=Fl(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var h=qB();(h||!h&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+Zk(t),y:c}}function kot(t){var e,n=Fl(t),r=Yk(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=eu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=eu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Zk(t),c=-r.scrollTop;return ga(i||n).direction==="rtl"&&(l+=eu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function Gk(t){var e=ga(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function t$(t){return["html","body","#document"].indexOf(vs(t))>=0?t.ownerDocument.body:ao(t)&&Gk(t)?t:t$(p1(t))}function Jp(t,e){var n;e===void 0&&(e=[]);var r=t$(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=$i(r),s=i?[o].concat(o.visualViewport||[],Gk(r)?r:[]):r,l=e.concat(s);return i?l:l.concat(Jp(p1(s)))}function zT(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Pot(t,e){var n=ad(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Uj(t,e,n){return e===ZB?zT(Cot(t,n)):_u(e)?Pot(e,n):zT(kot(Fl(t)))}function Lot(t){var e=Jp(p1(t)),n=["absolute","fixed"].indexOf(ga(t).position)>=0,r=n&&ao(t)?Bg(t):t;return _u(r)?e.filter(function(i){return _u(i)&&KB(i,r)&&vs(i)!=="body"}):[]}function Mot(t,e,n,r){var i=e==="clippingParents"?Lot(t):[].concat(e),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,h){var d=Uj(t,h,r);return c.top=eu(d.top,c.top),c.right=v0(d.right,c.right),c.bottom=v0(d.bottom,c.bottom),c.left=eu(d.left,c.left),c},Uj(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function e$(t){var e=t.reference,n=t.element,r=t.placement,i=r?fs(r):null,o=r?ld(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case li:c={x:s,y:e.y-n.height};break;case po:c={x:s,y:e.y+e.height};break;case mo:c={x:e.x+e.width,y:l};break;case ci:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var h=i?Wk(i):null;if(h!=null){var d=h==="y"?"height":"width";switch(o){case od:c[h]=c[h]-(e[d]/2-n[d]/2);break;case Xm:c[h]=c[h]+(e[d]/2-n[d]/2);break}}return c}function Qm(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,l=n.boundary,c=l===void 0?Xit:l,h=n.rootBoundary,d=h===void 0?ZB:h,p=n.elementContext,m=p===void 0?ep:p,v=n.altBoundary,y=v===void 0?!1:v,_=n.padding,T=_===void 0?0:_,x=QB(typeof T!="number"?T:JB(T,Fg)),w=m===ep?Qit:ep,E=t.rects.popper,O=t.elements[y?w:m],k=Mot(_u(O)?O:O.contextElement||Fl(t.elements.popper),c,d,s),P=ad(t.elements.reference),A=e$({reference:P,element:E,strategy:"absolute",placement:i}),j=zT(Object.assign({},E,A)),B=m===ep?j:P,N={top:k.top-B.top+x.top,bottom:B.bottom-k.bottom+x.bottom,left:k.left-B.left+x.left,right:B.right-k.right+x.right},V=t.modifiersData.offset;if(m===ep&&V){var Y=V[i];Object.keys(N).forEach(function(nt){var K=[mo,po].indexOf(nt)>=0?1:-1,J=[li,po].indexOf(nt)>=0?"y":"x";N[nt]+=Y[J]*K})}return N}function Aot(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,h=c===void 0?GB:c,d=ld(r),p=d?l?Fj:Fj.filter(function(y){return ld(y)===d}):Fg,m=p.filter(function(y){return h.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,_){return y[_]=Qm(t,{placement:_,boundary:i,rootBoundary:o,padding:s})[fs(_)],y},{});return Object.keys(v).sort(function(y,_){return v[y]-v[_]})}function Rot(t){if(fs(t)===Uk)return[];var e=i_(t);return[zj(t),e,zj(e)]}function jot(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,h=n.padding,d=n.boundary,p=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,_=n.allowedAutoPlacements,T=e.options.placement,x=fs(T),w=x===T,E=c||(w||!y?[i_(T)]:Rot(T)),O=[T].concat(E).reduce(function(Q,tt){return Q.concat(fs(tt)===Uk?Aot(e,{placement:tt,boundary:d,rootBoundary:p,padding:h,flipVariations:y,allowedAutoPlacements:_}):tt)},[]),k=e.rects.reference,P=e.rects.popper,A=new Map,j=!0,B=O[0],N=0;N=0,J=K?"width":"height",et=Qm(e,{placement:V,boundary:d,rootBoundary:p,altBoundary:m,padding:h}),ct=K?nt?mo:ci:nt?po:li;k[J]>P[J]&&(ct=i_(ct));var G=i_(ct),$=[];if(o&&$.push(et[Y]<=0),l&&$.push(et[ct]<=0,et[G]<=0),$.every(function(Q){return Q})){B=V,j=!1;break}A.set(V,$)}if(j)for(var I=y?3:1,H=function(tt){var rt=O.find(function(mt){var M=A.get(mt);if(M)return M.slice(0,tt).every(function(R){return R})});if(rt)return B=rt,"break"},it=I;it>0;it--){var W=H(it);if(W==="break")break}e.placement!==B&&(e.modifiersData[r]._skip=!0,e.placement=B,e.reset=!0)}}const Not={name:"flip",enabled:!0,phase:"main",fn:jot,requiresIfExists:["offset"],data:{_skip:!1}};function Vj(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Hj(t){return[li,mo,po,ci].some(function(e){return t[e]>=0})}function Dot(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Qm(e,{elementContext:"reference"}),l=Qm(e,{altBoundary:!0}),c=Vj(s,r),h=Vj(l,i,o),d=Hj(c),p=Hj(h);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Iot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dot};function Fot(t,e,n){var r=fs(t),i=[ci,li].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[ci,mo].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Bot(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=GB.reduce(function(d,p){return d[p]=Fot(p,e.rects,o),d},{}),l=s[e.placement],c=l.x,h=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=s}const $ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bot};function zot(t){var e=t.state,n=t.name;e.modifiersData[n]=e$({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Uot={name:"popperOffsets",enabled:!0,phase:"read",fn:zot,data:{}};function Vot(t){return t==="x"?"y":"x"}function Hot(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,_=y===void 0?0:y,T=Qm(e,{boundary:c,rootBoundary:h,padding:p,altBoundary:d}),x=fs(e.placement),w=ld(e.placement),E=!w,O=Wk(x),k=Vot(O),P=e.modifiersData.popperOffsets,A=e.rects.reference,j=e.rects.popper,B=typeof _=="function"?_(Object.assign({},e.rects,{placement:e.placement})):_,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(P){if(o){var nt,K=O==="y"?li:ci,J=O==="y"?po:mo,et=O==="y"?"height":"width",ct=P[O],G=ct+T[K],$=ct-T[J],I=v?-j[et]/2:0,H=w===od?A[et]:j[et],it=w===od?-j[et]:-A[et],W=e.elements.arrow,Q=v&&W?Hk(W):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:XB(),rt=tt[K],mt=tt[J],M=Qp(0,A[et],Q[et]),R=E?A[et]/2-I-M-rt-N.mainAxis:H-M-rt-N.mainAxis,z=E?-A[et]/2+I+M+mt+N.mainAxis:it+M+mt+N.mainAxis,at=e.elements.arrow&&Bg(e.elements.arrow),st=at?O==="y"?at.clientTop||0:at.clientLeft||0:0,ht=(nt=V==null?void 0:V[O])!=null?nt:0,bt=ct+R-ht-st,It=ct+z-ht,ft=Qp(v?v0(G,bt):G,ct,v?eu($,It):$);P[O]=ft,Y[O]=ft-ct}if(l){var vt,_t=O==="x"?li:ci,Ct=O==="x"?po:mo,Mt=P[k],Lt=k==="y"?"height":"width",jt=Mt+T[_t],dt=Mt-T[Ct],pt=[li,ci].indexOf(x)!==-1,xt=(vt=V==null?void 0:V[k])!=null?vt:0,yt=pt?jt:Mt-A[Lt]-j[Lt]-xt+N.altAxis,Et=pt?Mt+A[Lt]+j[Lt]-xt-N.altAxis:dt,At=v&&pt?pot(yt,Mt,Et):Qp(v?yt:jt,Mt,v?Et:dt);P[k]=At,Y[k]=At-Mt}e.modifiersData[r]=Y}}const Wot={name:"preventOverflow",enabled:!0,phase:"main",fn:Hot,requiresIfExists:["offset"]};function Yot(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Zot(t){return t===$i(t)||!ao(t)?Yk(t):Yot(t)}function Got(t){var e=t.getBoundingClientRect(),n=sd(e.width)/t.offsetWidth||1,r=sd(e.height)/t.offsetHeight||1;return n!==1||r!==1}function qot(t,e,n){n===void 0&&(n=!1);var r=ao(e),i=ao(e)&&Got(e),o=Fl(e),s=ad(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((vs(e)!=="body"||Gk(o))&&(l=Zot(e)),ao(e)?(c=ad(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=Zk(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Kot(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function Xot(t){var e=Kot(t);return lot.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function Qot(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Jot(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Wj={placement:"bottom",modifiers:[],strategy:"absolute"};function Yj(){for(var t=arguments.length,e=new Array(t),n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bst(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function xst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zj(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y0(t){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y0(t)}var Cst={a11y:F.bool,disabled:F.bool,direction:F.oneOf(["up","down","start","end","left","right"]),group:F.bool,isOpen:F.bool,nav:F.bool,active:F.bool,size:F.string,tag:fe,toggle:F.func,children:F.node,className:F.string,cssModule:F.object,dropup:F.bool,inNavbar:F.bool,setActiveFromChild:F.bool,menuRole:F.oneOf(["listbox","menu"])},kst={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Pst=[Le.space,Le.enter,Le.up,Le.down,Le.end,Le.home],m1=function(t){Sst(n,t);var e=Tst(n);function n(r){var i;return xst(this,n),i=e.call(this,r),i.addEvents=i.addEvents.bind(Ia(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Ia(i)),i.handleKeyDown=i.handleKeyDown.bind(Ia(i)),i.removeEvents=i.removeEvents.bind(Ia(i)),i.toggle=i.toggle.bind(Ia(i)),i.handleMenuRef=i.handleMenuRef.bind(Ia(i)),i.handleToggleRef=i.handleToggleRef.bind(Ia(i)),i.containerRef=q.createRef(),i.menuRef=q.createRef(),i.toggleRef=q.createRef(),i}return wst(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==Le.tab))){var o=this.getContainer(),s=this.getMenu(),l=this.getToggle(),c=l.contains(i.target),h=s&&s.contains(i.target)&&s!==i.target,d=!1;o&&(d=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((c&&!d||h)&&(i.type!=="keyup"||i.which===Le.tab))&&this.toggle(i)}}},{key:"handleKeyDown",value:function(i){var o=this,s=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",l=this.getMenuCtrl()===i.target,c=Le.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(s||l))&&((Pst.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(l)if([Le.space,Le.enter,Le.up,Le.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var w;return(w=o.getMenuItems()[0])===null||w===void 0?void 0:w.focus()});else if(this.props.isOpen&&c){var h;i.preventDefault(),(h=this.getMenuItems()[0])===null||h===void 0||h.focus()}else this.props.isOpen&&i.which===Le.esc&&this.toggle(i);if(this.props.isOpen&&s){if([Le.tab,Le.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Le.space,Le.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Le.down,Le.up].indexOf(i.which)>-1||[Le.n,Le.p].indexOf(i.which)>-1&&i.ctrlKey){var d=this.getMenuItems(),p=d.indexOf(i.target);Le.up===i.which||Le.p===i.which&&i.ctrlKey?p=p!==0?p-1:d.length-1:(Le.down===i.which||Le.n===i.which&&i.ctrlKey)&&(p=p===d.length-1?0:p+1),d[p].focus()}else if(Le.end===i.which){var m=this.getMenuItems();m[m.length-1].focus()}else if(Le.home===i.which){var v=this.getMenuItems();v[0].focus()}else if(i.which>=48&&i.which<=90)for(var y=this.getMenuItems(),_=String.fromCharCode(i.which).toLowerCase(),T=0;T=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ast(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Rst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gj(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _0(t){return _0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_0(t)}var Bst={children:F.node,active:F.bool,disabled:F.bool,divider:F.bool,tag:fe,header:F.bool,onClick:F.func,className:F.string,cssModule:F.object,toggle:F.bool,text:F.bool},qk=function(t){Nst(n,t);var e=Dst(n);function n(r){var i;return Rst(this,n),i=e.call(this,r),i.onClick=i.onClick.bind(GT(i)),i.getTabIndex=i.getTabIndex.bind(GT(i)),i}return jst(n,[{key:"onClick",value:function(i){var o,s=this.props,l=s.disabled,c=s.header,h=s.divider,d=s.text;if(l||c||h||d){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,s=i.header,l=i.divider,c=i.text;return o||s||l||c?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,s=Il(this.props,["toggle"]),l=s.className,c=s.cssModule,h=s.divider,d=s.tag,p=d===void 0?"button":d,m=s.header,v=s.active,y=s.text,_=Mst(s,Lst),T=Xt(qt(l,{disabled:_.disabled,"dropdown-item":!h&&!m&&!y,active:v,"dropdown-header":m,"dropdown-divider":h,"dropdown-item-text":y}),c);return p==="button"&&(m?p="h6":h?p="div":_.href?p="a":y&&(p="span")),q.createElement(p,YT({type:p==="button"&&(_.onClick||this.props.toggle)?"button":void 0},_,{tabIndex:i,role:o,className:T,onClick:this.onClick}))}}]),n}(q.Component);qk.propTypes=Bst;qk.contextType=Jm;const Zt=qk;function qT(t){"@babel/helpers - typeof";return qT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qT(t)}var $st=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function b0(){return b0=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Gst(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function qst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xj(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x0(t){return x0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x0(t)}var nat={tag:fe,children:F.node.isRequired,dark:F.bool,end:F.bool,flip:F.bool,modifiers:F.array,className:F.string,cssModule:F.object,style:F.object,persist:F.bool,strategy:F.string,container:id,updateOnSelect:F.bool,right:RB(F.bool,'Please use "end" instead.')},rat={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Kk=function(t){Xst(n,t);var e=Qst(n);function n(){return qst(this,n),e.apply(this,arguments)}return Kst(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,s=o.className,l=o.cssModule,c=o.dark,h=o.end,d=o.right,p=o.tag,m=p===void 0?"div":p,v=o.flip,y=v===void 0?!0:v,_=o.modifiers,T=_===void 0?[]:_,x=o.persist,w=o.strategy,E=o.container,O=o.updateOnSelect,k=Zst(o,$st),P=Xt(qt(s,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":h||d,show:this.context.isOpen}),l),A=m;if(x||this.context.isOpen&&!this.context.inNavbar){var j=rat[this.context.direction]||"bottom",B=h||d?"end":"start",N="".concat(j,"-").concat(B),V=[].concat(Ust(T),[{name:"flip",enabled:!!y}]),Y=q.createElement(n$,{placement:N,modifiers:V,strategy:w},function(K){var J=K.ref,et=K.style,ct=K.placement,G=K.update,$=Kj(Kj({},i.props.style),et),I=function(it){J(it);var W=i.context.onMenuRef;W&&W(it)};return q.createElement(A,b0({tabIndex:"-1",role:i.getRole(),ref:I},k,{style:$,"aria-hidden":!i.context.isOpen,className:P,"data-popper-placement":ct,onClick:function(){return O&&G()}}))});return E?Jc.createPortal(Y,Km(E)):Y}var nt=this.context.onMenuRef;return q.createElement(A,b0({tabIndex:"-1",role:this.getRole()},k,{ref:nt,"aria-hidden":!this.context.isOpen,className:P,"data-popper-placement":k.placement}))}}]),n}(q.Component);Kk.propTypes=nat;Kk.contextType=Jm;const Nd=Kk;function QT(t){"@babel/helpers - typeof";return QT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(t)}var iat=["className","color","cssModule","caret","split","nav","tag","innerRef"];function oat(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w0(){return w0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function aat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function lat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qj(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S0(t){return S0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S0(t)}var pat={caret:F.bool,color:F.string,children:F.node,className:F.string,cssModule:F.object,disabled:F.bool,onClick:F.func,"aria-haspopup":F.bool,split:F.bool,tag:fe,nav:F.bool,innerRef:F.oneOfType([F.object,F.string,F.func])},mat={color:"secondary","aria-haspopup":!0},g1=function(t){uat(n,t);var e=hat(n);function n(r){var i;return lat(this,n),i=e.call(this,r),i.onClick=i.onClick.bind(i$(i)),i}return cat(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,s=o.className,l=o.color,c=o.cssModule,h=o.caret,d=o.split,p=o.nav,m=o.tag,v=o.innerRef,y=sat(o,iat),_=y["aria-label"]||"Toggle Dropdown",T=Xt(qt(s,{"dropdown-toggle":h||d,"dropdown-toggle-split":d,"nav-link":p}),c),x=typeof y.children<"u"?y.children:q.createElement("span",{className:"visually-hidden"},_),w;return p&&!m?(w="a",y.href="#"):m?w=m:(w=ke,y.color=l,y.cssModule=c),this.context.inNavbar?q.createElement(w,w0({},y,{className:T,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:x})):q.createElement(vst,{innerRef:v},function(E){var O=E.ref,k=function(A){O(A);var j=i.context.onToggleRef;j&&j(A)};return q.createElement(w,w0({},y,oat({},typeof w=="string"?"ref":"innerRef",k),{className:T,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:x}))})}}]),n}(q.Component);g1.propTypes=pat;g1.defaultProps=mat;g1.contextType=Jm;const zg=g1;function tE(t,e){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tE(t,e)}function gat(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tE(t,e)}const Jj={disabled:!1},o$=q.createContext(null);var Cp="unmounted",jc="exited",Nc="entering",ah="entered",eE="exiting",Oa=function(t){gat(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?l?(c=jc,o.appearStatus=Nc):c=ah:r.unmountOnExit||r.mountOnEnter?c=Cp:c=jc,o.state={status:c},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Cp?{status:jc}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Nc&&s!==ah&&(o=Nc):(s===Nc||s===ah)&&(o=eE)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Nc?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===jc&&this.setState({status:Cp})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Jc.findDOMNode(this),l],h=c[0],d=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!i&&!s||Jj.disabled){this.safeSetState({status:ah},function(){o.props.onEntered(h)});return}this.props.onEnter(h,d),this.safeSetState({status:Nc},function(){o.props.onEntering(h,d),o.onTransitionEnd(m,function(){o.safeSetState({status:ah},function(){o.props.onEntered(h,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Jc.findDOMNode(this);if(!o||Jj.disabled){this.safeSetState({status:jc},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:eE},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:jc},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Jc.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],h=c[0],d=c[1];this.props.addEndListener(h,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Cp)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=XC(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return q.createElement(o$.Provider,{value:null},typeof s=="function"?s(i,l):q.cloneElement(q.Children.only(s),l))},e}(q.Component);Oa.contextType=o$;Oa.propTypes={};function Ku(){}Oa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ku,onEntering:Ku,onEntered:Ku,onExit:Ku,onExiting:Ku,onExited:Ku};Oa.UNMOUNTED=Cp;Oa.EXITED=jc;Oa.ENTERING=Nc;Oa.ENTERED=ah;Oa.EXITING=eE;const Dd=Oa;var vat=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function T0(){return T0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _at(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function tN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function tg(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Tat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Eat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eN(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function O0(t){return O0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},O0(t)}function nN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function cd(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Bat={body:F.bool,className:F.string,color:F.string,cssModule:F.object,innerRef:F.oneOfType([F.object,F.string,F.func]),inverse:F.bool,outline:F.bool,tag:fe};function zi(t){var e=t.className,n=t.cssModule,r=t.color,i=t.body,o=t.inverse,s=t.outline,l=t.tag,c=l===void 0?"div":l,h=t.innerRef,d=Iat(t,Dat),p=Xt(qt(e,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(s?"border":"bg","-").concat(r):!1),n);return q.createElement(c,iE({},d,{className:p,ref:h}))}zi.propTypes=Bat;var $at=["className","cssModule","innerRef","tag"];function oE(){return oE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Uat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Vat={className:F.string,cssModule:F.object,innerRef:F.oneOfType([F.object,F.string,F.func]),tag:fe};function ud(t){var e=t.className,n=t.cssModule,r=t.innerRef,i=t.tag,o=i===void 0?"div":i,s=zat(t,$at),l=Xt(qt(e,"card-body"),n);return q.createElement(o,oE({},s,{className:l,ref:r}))}ud.propTypes=Vat;var Hat=["className","cssModule","tag"];function sE(){return sE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Yat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Zat={className:F.string,cssModule:F.object,tag:fe};function l$(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r,o=Wat(t,Hat),s=Xt(qt(e,"card-footer"),n);return q.createElement(i,sE({},o,{className:s}))}l$.propTypes=Zat;var Gat=["className","cssModule","tag"];function aE(){return aE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Kat(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Xat={className:F.string,cssModule:F.object,tag:fe};function hd(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r,o=qat(t,Gat),s=Xt(qt(e,"card-header"),n);return q.createElement(i,aE({},o,{className:s}))}hd.propTypes=Xat;var Qat=["className","cssModule","tag"];function lE(){return lE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function tlt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var elt={className:F.string,cssModule:F.object,tag:fe};function c$(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"p":r,o=Jat(t,Qat),s=Xt(qt(e,"card-text"),n);return q.createElement(i,lE({},o,{className:s}))}c$.propTypes=elt;var nlt=["className","cssModule","tag"];function cE(){return cE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ilt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var olt={className:F.string,cssModule:F.object,tag:fe};function u$(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r,o=rlt(t,nlt),s=Xt(qt(e,"card-title"),n);return q.createElement(i,cE({},o,{className:s}))}u$.propTypes=olt;function uE(t){"@babel/helpers - typeof";return uE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uE(t)}var slt=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function hE(){return hE=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dlt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function flt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iN(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C0(t){return C0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C0(t)}function oN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function s_(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k0(t){return k0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k0(t)}var v1={children:F.oneOfType([F.node,F.func]),placement:F.oneOf(Xrt),target:id.isRequired,container:id,isOpen:F.bool,disabled:F.bool,hideArrow:F.bool,boundariesElement:F.oneOfType([F.string,Bk]),className:F.string,innerClassName:F.string,arrowClassName:F.string,popperClassName:F.string,cssModule:F.object,toggle:F.func,autohide:F.bool,placementPrefix:F.string,delay:F.oneOfType([F.shape({show:F.number,hide:F.number}),F.number]),modifiers:F.array,strategy:F.string,offset:F.arrayOf(F.number),innerRef:F.oneOfType([F.func,F.string,F.object]),trigger:F.string,fade:F.bool,flip:F.bool},h$={show:0,hide:50},Llt={isOpen:!1,hideArrow:!1,autohide:!1,delay:h$,toggle:function(){},trigger:"click",fade:!0};function d$(t,e){return e&&(t===e||e.contains(t))}function aN(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.length&&e.filter(function(n){return d$(t,n)})[0]}var Jk=function(t){Olt(n,t);var e=Clt(n);function n(r){var i;return Tlt(this,n),i=e.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Oi(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Oi(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Oi(i)),i.toggle=i.toggle.bind(Oi(i)),i.showWithDelay=i.showWithDelay.bind(Oi(i)),i.hideWithDelay=i.hideWithDelay.bind(Oi(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Oi(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Oi(i)),i.show=i.show.bind(Oi(i)),i.hide=i.hide.bind(Oi(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Oi(i)),i.getRef=i.getRef.bind(Oi(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Elt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||aN(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!d$(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&aN(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):eg(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return eg(o)==="object"?isNaN(o[i])?h$[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,s){this._targets.forEach(function(l){l.addEventListener(i,o,s)})}},{key:"removeEventOnTargets",value:function(i,o,s){this._targets.forEach(function(l){l.removeEventListener(i,o,s)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=Km(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var s=this.props,l=s.className,c=s.cssModule,h=s.innerClassName,d=s.isOpen,p=s.hideArrow,m=s.boundariesElement,v=s.placement,y=s.placementPrefix,_=s.arrowClassName,T=s.popperClassName,x=s.container,w=s.modifiers,E=s.strategy,O=s.offset,k=s.fade,P=s.flip,A=s.children,j=Il(this.props,Object.keys(v1)),B=Xt(T,c),N=Xt(h,c);return q.createElement(Slt,{className:l,target:o,isOpen:d,hideArrow:p,boundariesElement:m,placement:v,placementPrefix:y,arrowClassName:_,popperClassName:B,container:x,modifiers:w,strategy:E,offset:O,cssModule:c,fade:k,flip:P},function(V){var Y=V.update;return q.createElement("div",pE({},j,{ref:i.getRef,className:N,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof A=="function"?A({update:Y}):A)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(q.Component);Jk.propTypes=v1;Jk.defaultProps=Llt;const f$=Jk;function gE(){return gE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Nlt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Dlt={animated:F.bool,bar:F.bool,barAriaLabelledBy:F.string,barAriaValueText:F.string,barClassName:F.string,barStyle:F.object,children:F.node,className:F.string,cssModule:F.object,color:F.string,max:F.oneOfType([F.string,F.number]),min:F.oneOfType([F.string,F.number]),multi:F.bool,striped:F.bool,style:F.object,tag:fe,value:F.oneOfType([F.string,F.number])};function p$(t){var e=t.children,n=t.className,r=t.barClassName,i=t.cssModule,o=t.value,s=o===void 0?0:o,l=t.min,c=l===void 0?0:l,h=t.max,d=h===void 0?100:h,p=t.animated,m=t.striped,v=t.color,y=t.bar,_=t.multi,T=t.tag,x=T===void 0?"div":T,w=t.style,E=w===void 0?{}:w,O=t.barStyle,k=O===void 0?{}:O,P=t.barAriaValueText,A=t.barAriaLabelledBy,j=jlt(t,Alt),B=Lj(s)/Lj(d)*100,N=Xt(qt(n,"progress"),i),V=Xt(qt("progress-bar",y&&n||r,p?"progress-bar-animated":null,v?"bg-".concat(v):null,m||p?"progress-bar-striped":null),i),Y={className:V,style:Zw(Zw(Zw({},y?E:{}),k),{},{width:"".concat(B,"%")}),role:"progressbar","aria-valuenow":s,"aria-valuemin":c,"aria-valuemax":d,"aria-valuetext":P,"aria-labelledby":A,children:e};return y?q.createElement(x,P0({},j,Y)):q.createElement(x,P0({},j,{style:E,className:N}),_?e:q.createElement("div",Y))}p$.propTypes=Dlt;function vE(t){"@babel/helpers - typeof";return vE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vE(t)}function Ilt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cN(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L0(t){return L0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},L0(t)}var Hlt={children:F.node.isRequired,node:F.any},m$=function(t){Blt(n,t);var e=$lt(n);function n(){return Ilt(this,n),e.apply(this,arguments)}return Flt(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return $k?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Jc.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(q.Component);m$.propTypes=Hlt;const Wlt=m$;function _E(t){"@babel/helpers - typeof";return _E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_E(t)}function uN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qu(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M0(t){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},M0(t)}function A0(){}var dN=F.shape(Kr.propTypes),g$={autoFocus:F.bool,backdrop:F.oneOfType([F.bool,F.oneOf(["static"])]),backdropClassName:F.string,backdropTransition:dN,centered:F.bool,children:F.node,contentClassName:F.string,className:F.string,container:id,cssModule:F.object,external:F.node,fade:F.bool,fullscreen:F.oneOfType([F.bool,F.oneOf(["sm","md","lg","xl"])]),innerRef:F.oneOfType([F.object,F.string,F.func]),isOpen:F.bool,keyboard:F.bool,labelledBy:F.string,modalClassName:F.string,modalTransition:dN,onClosed:F.func,onEnter:F.func,onExit:F.func,onOpened:F.func,returnFocusAfterClose:F.bool,role:F.string,scrollable:F.bool,size:F.string,toggle:F.func,trapFocus:F.bool,unmountOnClose:F.bool,wrapClassName:F.string,zIndex:F.oneOfType([F.number,F.string])},Qlt=Object.keys(g$),Jlt={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:A0,onClosed:A0,modalTransition:{timeout:p0.Modal},backdropTransition:{mountOnEnter:!0,timeout:p0.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Ug=function(t){Glt(n,t);var e=qlt(n);function n(r){var i;return Ylt(this,n),i=e.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Qi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Qi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Qi(i)),i.handleEscape=i.handleEscape.bind(Qi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Qi(i)),i.handleTab=i.handleTab.bind(Qi(i)),i.onOpened=i.onOpened.bind(Qi(i)),i.onClosed=i.onClosed.bind(Qi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Qi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Qi(i)),i.trapFocus=i.trapFocus.bind(Qi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Zlt(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,s=i.autoFocus,l=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),s&&this.setFocus()),l&&l(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Km(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Zrt(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Grt(),n.openCount===0&&(document.body.className=qt(document.body.className,Xt("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Xt("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),MB(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,s=Il(this.props,Qlt),l="modal-dialog";return q.createElement("div",tm({},s,{className:Xt(qt(l,this.props.className,(i={},lh(i,"modal-".concat(this.props.size),this.props.size),lh(i,"".concat(l,"-centered"),this.props.centered),lh(i,"".concat(l,"-scrollable"),this.props.scrollable),lh(i,"modal-fullscreen",this.props.fullscreen===!0),lh(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(h){o._dialog=h}}),q.createElement("div",{className:Xt(qt("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var s=this.props,l=s.wrapClassName,c=s.modalClassName,h=s.backdropClassName,d=s.cssModule,p=s.isOpen,m=s.backdrop,v=s.role,y=s.labelledBy,_=s.external,T=s.innerRef,x={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":y,"aria-modal":!0,role:v,tabIndex:"-1"},w=this.props.fade,E=Qu(Qu(Qu({},Kr.defaultProps),this.props.modalTransition),{},{baseClass:w?this.props.modalTransition.baseClass:"",timeout:w?this.props.modalTransition.timeout:0}),O=Qu(Qu(Qu({},Kr.defaultProps),this.props.backdropTransition),{},{baseClass:w?this.props.backdropTransition.baseClass:"",timeout:w?this.props.backdropTransition.timeout:0}),k=m&&(w?q.createElement(Kr,tm({},O,{in:p&&!!m,cssModule:d,className:Xt(qt("modal-backdrop",h),d)})):q.createElement("div",{className:Xt(qt("modal-backdrop","show",h),d)}));return q.createElement(Wlt,{node:this._element},q.createElement("div",{className:Xt(l)},q.createElement(Kr,tm({},x,E,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:d,className:Xt(qt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),d),innerRef:T}),_,this.renderModalDialog()),k))}return null}}]),n}(q.Component);Ug.propTypes=g$;Ug.defaultProps=Jlt;Ug.openCount=0;Ug.originalBodyOverflow=null;const Ca=Ug;var tct=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function xE(){return xE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var rct={children:F.node,className:F.string,close:F.object,closeAriaLabel:F.string,cssModule:F.object,tag:fe,toggle:F.func,wrapTag:fe};function ka(t){var e,n=t.className,r=t.cssModule,i=t.children,o=t.toggle,s=t.tag,l=s===void 0?"h5":s,c=t.wrapTag,h=c===void 0?"div":c,d=t.closeAriaLabel,p=d===void 0?"Close":d,m=t.close,v=ect(t,tct),y=Xt(qt(n,"modal-header"),r);return!m&&o&&(e=q.createElement("button",{type:"button",onClick:o,className:Xt("btn-close",r),"aria-label":p})),q.createElement(h,xE({},v,{className:y}),q.createElement(l,{className:Xt("modal-title",r)},i),m||e)}ka.propTypes=rct;var ict=["className","cssModule","tag"];function wE(){return wE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function sct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var act={className:F.string,cssModule:F.object,tag:fe};function Ss(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r,o=oct(t,ict),s=Xt(qt(e,"modal-body"),n);return q.createElement(i,wE({},o,{className:s}))}Ss.propTypes=act;var lct=["className","cssModule","tag"];function SE(){return SE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function uct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var hct={className:F.string,cssModule:F.object,tag:fe};function Nu(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r,o=cct(t,lct),s=Xt(qt(e,"modal-footer"),n);return q.createElement(i,SE({},o,{className:s}))}Nu.propTypes=hct;function TE(){return TE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function mct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var gct={className:F.string,cssModule:F.object,flush:F.bool,horizontal:F.oneOfType([F.bool,F.string]),numbered:F.bool,tag:fe},vct=function(e){return e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(e)};function v$(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"ul":r,o=t.flush,s=t.horizontal,l=s===void 0?!1:s,c=t.numbered,h=c===void 0?!1:c,d=pct(t,fct),p=Xt(qt(e,"list-group",o?"list-group-flush":vct(l),{"list-group-numbered":h}),n);return q.createElement(i,EE({},d,{className:p}))}v$.propTypes=gct;var yct=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function OE(){return OE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var xct={children:F.node,row:F.bool,check:F.bool,switch:F.bool,inline:F.bool,floating:F.bool,disabled:F.bool,tag:fe,className:F.string,cssModule:F.object};function Ai(t){var e=t.className,n=t.cssModule,r=t.row,i=t.disabled,o=t.check,s=t.inline,l=t.floating,c=t.tag,h=c===void 0?"div":c,d=t.switch,p=_ct(t,yct),m=o||d,v=Xt(qt(e,r?"row":!1,m?"form-check":"mb-3",d?"form-switch":!1,m&&s?"form-check-inline":!1,m&&i?"disabled":!1,l&&"form-floating"),n);return h==="fieldset"&&(p.disabled=i),q.createElement(h,OE({},p,{className:v}))}Ai.propTypes=xct;function CE(t){"@babel/helpers - typeof";return CE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CE(t)}var wct=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function kE(){return kE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Tct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Ect(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fN(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R0(t){return R0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},R0(t)}var Mct={children:F.node,type:F.string,size:F.oneOfType([F.number,F.string]),bsSize:F.string,valid:F.bool,invalid:F.bool,tag:fe,innerRef:F.oneOfType([F.object,F.func,F.string]),plaintext:F.bool,addon:F.bool,className:F.string,cssModule:F.object},y$=function(t){Cct(n,t);var e=kct(n);function n(r){var i;return Ect(this,n),i=e.call(this,r),i.getRef=i.getRef.bind(LE(i)),i.focus=i.focus.bind(LE(i)),i}return Oct(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,s=i.cssModule,l=i.type,c=l===void 0?"text":l,h=i.bsSize,d=i.valid,p=i.invalid,m=i.tag,v=i.addon,y=i.plaintext,_=i.innerRef,T=Sct(i,wct),x=["switch","radio","checkbox"].indexOf(c)>-1,w=/\D/g,E=c==="textarea",O=c==="select",k=c==="range",P=m||(O||E?c:"input"),A="form-control";y?(A="".concat(A,"-plaintext"),P=m||"input"):k?A="form-range":O?A="form-select":x&&(v?A=null:A="form-check-input"),T.size&&w.test(T.size)&&(OT(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),h=T.size,delete T.size);var j=Xt(qt(o,p&&"is-invalid",d&&"is-valid",h?O?"form-select-".concat(h):"form-control-".concat(h):!1,A),s);return(P==="input"||m&&typeof m=="function")&&(T.type=c==="switch"?"checkbox":c),T.children&&!(y||c==="select"||typeof P!="string"||P==="select")&&(OT('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete T.children),q.createElement(P,kE({},T,{ref:_,className:j,"aria-invalid":p}))}}]),n}(q.Component);y$.propTypes=Mct;const dd=y$;var Act=["className","cssModule","tag","type","size"];function j0(){return j0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function jct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Nct={className:F.string,cssModule:F.object,size:F.string,tag:fe,type:F.string};function y1(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"div":r;t.type;var o=t.size,s=Rct(t,Act),l=Xt(qt(e,"input-group",o?"input-group-".concat(o):null),n);return t.type==="dropdown"?q.createElement($g,j0({},s,{className:l})):q.createElement(r$.Provider,{value:{insideInputGroup:!0}},q.createElement(i,j0({},s,{className:l})))}y1.propTypes=Nct;var Dct=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function ME(){return ME=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Bct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var $ct={children:F.node,className:F.string,listClassName:F.string,cssModule:F.object,size:F.string,tag:fe,listTag:fe,"aria-label":F.string};function eP(t){var e=t.className,n=t.listClassName,r=t.cssModule,i=t.size,o=t.tag,s=o===void 0?"nav":o,l=t.listTag,c=l===void 0?"ul":l,h=t["aria-label"],d=h===void 0?"pagination":h,p=Fct(t,Dct),m=Xt(qt(e),r),v=Xt(qt(n,"pagination",Ict({},"pagination-".concat(i),!!i)),r);return q.createElement(s,{className:m,"aria-label":d},q.createElement(c,ME({},p,{className:v})))}eP.propTypes=$ct;var zct=["active","className","cssModule","disabled","tag"];function AE(){return AE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Vct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Hct={active:F.bool,children:F.node,className:F.string,cssModule:F.object,disabled:F.bool,tag:fe};function nu(t){var e=t.active,n=t.className,r=t.cssModule,i=t.disabled,o=t.tag,s=o===void 0?"li":o,l=Uct(t,zct),c=Xt(qt(n,"page-item",{active:e,disabled:i}),r);return q.createElement(s,AE({},l,{className:c}))}nu.propTypes=Hct;var Wct=["className","cssModule","next","previous","first","last","tag"];function RE(){return RE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Zct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Gct={"aria-label":F.string,children:F.node,className:F.string,cssModule:F.object,next:F.bool,previous:F.bool,first:F.bool,last:F.bool,tag:fe};function ru(t){var e=t.className,n=t.cssModule,r=t.next,i=t.previous,o=t.first,s=t.last,l=t.tag,c=l===void 0?"a":l,h=Yct(t,Wct),d=Xt(qt(e,"page-link"),n),p;i?p="Previous":r?p="Next":o?p="First":s&&(p="Last");var m=t["aria-label"]||p,v;i?v="‹":r?v="›":o?v="«":s&&(v="»");var y=t.children;return y&&Array.isArray(y)&&y.length===0&&(y=null),!h.href&&c==="a"&&(c="button"),(i||r||o||s)&&(y=[q.createElement("span",{"aria-hidden":"true",key:"caret"},y||v),q.createElement("span",{className:"visually-hidden",key:"ariaLabel"},m)]),q.createElement(c,RE({},h,{className:d,"aria-label":m}),y)}ru.propTypes=Gct;var qct=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function jE(){return jE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Qct(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var Jct={children:F.node,className:F.string,closeClassName:F.string,closeAriaLabel:F.string,color:F.string,cssModule:F.object,fade:F.bool,innerRef:F.oneOfType([F.object,F.string,F.func]),isOpen:F.bool,tag:fe,toggle:F.func,transition:F.shape(Kr.propTypes)};function _$(t){var e=t.className,n=t.closeClassName,r=t.closeAriaLabel,i=r===void 0?"Close":r,o=t.cssModule,s=t.tag,l=s===void 0?"div":s,c=t.color,h=c===void 0?"success":c,d=t.isOpen,p=d===void 0?!0:d,m=t.toggle,v=t.children,y=t.transition,_=y===void 0?np(np({},Kr.defaultProps),{},{unmountOnExit:!0}):y,T=t.fade,x=T===void 0?!0:T,w=t.innerRef,E=Xct(t,qct),O=Xt(qt(e,"alert","alert-".concat(h),{"alert-dismissible":m}),o),k=Xt(qt("btn-close",n),o),P=np(np(np({},Kr.defaultProps),_),{},{baseClass:x?_.baseClass:"",timeout:x?_.timeout:0});return q.createElement(Kr,jE({},E,P,{tag:l,className:O,in:p,role:"alert",innerRef:w}),m?q.createElement("button",{type:"button",className:k,"aria-label":i,onClick:m}):null,v)}_$.propTypes=Jct;var tut=["className","cssModule","tag","active","disabled","action","color"];function NE(){return NE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nut(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}var rut={action:F.bool,active:F.bool,className:F.string,cssModule:F.object,color:F.string,disabled:F.bool,tag:fe},iut=function(e){e.preventDefault()};function b$(t){var e=t.className,n=t.cssModule,r=t.tag,i=r===void 0?"li":r,o=t.active,s=t.disabled,l=t.action,c=t.color,h=eut(t,tut),d=Xt(qt(e,o?"active":!1,s?"disabled":!1,l?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),n);return s&&(h.onClick=iut),q.createElement(i,NE({},h,{className:d}))}b$.propTypes=rut;function DE(t){"@babel/helpers - typeof";return DE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DE(t)}function mN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function out(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N0(t){return N0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},N0(t)}var fut=["defaultOpen"],Hg=function(t){cut(n,t);var e=uut(n);function n(r){var i;return aut(this,n),i=e.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(x$(i)),i}return lut(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(s){return{isOpen:!s.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return q.createElement($g,IE({isOpen:this.state.isOpen,toggle:this.toggle},Il(this.props,fut)))}}]),n}(U.Component);Hg.propTypes=out({defaultOpen:F.bool,onToggle:F.func},$g.propTypes);function BE(t){"@babel/helpers - typeof";return BE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BE(t)}function vN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function put(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D0(t){return D0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},D0(t)}var wut=["defaultOpen"],fi=function(t){yut(n,t);var e=_ut(n);function n(r){var i;return gut(this,n),i=e.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(w$(i)),i}return vut(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return q.createElement(Vg,$E({isOpen:this.state.isOpen,toggle:this.toggle},Il(this.props,wut)))}}]),n}(U.Component);fi.propTypes=put({defaultOpen:F.bool},Vg.propTypes);function S$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sut(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var T$={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i({error:"border-danger",default:""})[t],Out=t=>({error:"text-danger",default:"text-muted"})[t],aa=({className:t,children:e,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=lo({"col-md-12":i,"col-md-10 offset-md-1":!i});return b.jsx(qr,{className:lo("g-0",t),children:b.jsx("div",{className:o,children:b.jsx(zi,{className:Eut(r),body:!0,children:b.jsxs("h3",{className:lo("text-center mb-0",Out(r)),children:[n&&b.jsx(zt,{icon:W8,spin:!0}),n&&b.jsx("span",{className:"ms-2",children:e??"Loading..."}),!n&&e]})})})})},Bn=({title:t,children:e,bodyClassName:n,...r})=>b.jsxs(zi,{...r,children:[t&&b.jsx(hd,{role:"heading",children:t}),b.jsx(ud,{className:n,children:e})]}),Ii=({children:t,type:e,className:n,small:r=!1})=>b.jsx(qr,{className:n,children:b.jsx("div",{className:lo({"col-md-10 offset-md-1":!r,"col-12":r}),children:b.jsx(Bn,{role:"document",className:lo("text-center",{"bg-main":e==="success","bg-danger":e==="error","bg-warning":e==="warning","text-white":e!=="warning"}),bodyClassName:lo({"p-2":r}),children:t})})});let ty;const Cut=new Uint8Array(16);function kut(){if(!ty&&(ty=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ty))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ty(Cut)}const br=[];for(let t=0;t<256;++t)br.push((t+256).toString(16).slice(1));function Put(t,e=0){return(br[t[e+0]]+br[t[e+1]]+br[t[e+2]]+br[t[e+3]]+"-"+br[t[e+4]]+br[t[e+5]]+"-"+br[t[e+6]]+br[t[e+7]]+"-"+br[t[e+8]]+br[t[e+9]]+"-"+br[t[e+10]]+br[t[e+11]]+br[t[e+12]]+br[t[e+13]]+br[t[e+14]]+br[t[e+15]]).toLowerCase()}const Lut=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_N={randomUUID:Lut};function Mut(t,e,n){if(_N.randomUUID&&!e&&!t)return _N.randomUUID();t=t||{};const r=t.random||(t.rng||kut)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=r[i];return e}return Put(r)}const zn=(t=!1)=>{const[e,n]=U.useState(t);return[e,()=>n(!e),()=>n(!0),()=>n(!1)]},_1=()=>{const{current:t}=U.useRef(`dom-${Mut()}`);return t},Bl=()=>U.useRef(null),E$=({checked:t=!1,onChange:e,className:n,children:r,type:i,inline:o=!1})=>{const s=_1(),l=d=>e==null?void 0:e(d.target.checked,d),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},h=o?{display:"inline-block"}:{};return b.jsxs("span",{className:lo("form-check",c,n),style:h,children:[b.jsx("input",{type:"checkbox",className:"form-check-input",id:s,checked:t,onChange:l}),b.jsx("label",{className:"form-check-label",htmlFor:s,children:r})]})},O$=t=>b.jsx(E$,{type:"checkbox",...t}),fd=t=>b.jsx(E$,{type:"switch",...t}),Id=({children:t,label:e,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>b.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[b.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:e}),t]}),a_=({children:t,value:e,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:l})=>{const c=_1();return b.jsx(Id,{label:b.jsxs(b.Fragment,{children:[t,":"]}),className:s??"",labelClassName:l,id:c,children:b.jsx("input",{id:c,className:"form-control",type:r??"text",value:e,required:i??!0,placeholder:o,onChange:h=>n(h.target.value)})})},Aut=500;let l_;const bN=()=>{l_&&clearTimeout(l_),l_=null},Wg=({onChange:t,className:e,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[s,l]=U.useState(i),c=(h,d=Aut)=>{l(h),bN(),l_=o(()=>{t(h),bN()},d)};return b.jsxs("div",{className:lo("search-field",e),children:[b.jsx("input",{type:"text",className:lo("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:s,onChange:h=>c(h.target.value)}),b.jsx(zt,{icon:Net,className:"search-field__icon"}),b.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:s==="",id:"search-field__close",onClick:()=>c("",0)})]})},Pa=({text:t,disabled:e=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:s=!1,minWidth:l,inline:c,size:h})=>{const[d,p]=zn(),m=lo("dropdown-btn__toggle",n,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),v={minWidth:l&&`${l}px`};return b.jsxs($g,{isOpen:d,toggle:p,disabled:e,className:i,children:[b.jsx(zg,{size:h,caret:!o,className:m,color:"primary",children:t}),b.jsx(Nd,{className:"w-100",end:s,style:v,children:r})]})},b1=({children:t,minWidth:e})=>b.jsx(Pa,{text:b.jsx(zt,{className:"px-1",icon:Oet}),size:"sm",minWidth:e,end:!0,noCaret:!0,inline:!0,children:t}),em=({children:t,...e})=>b.jsx(zB,{className:"nav-pills__nav-link",tag:S8,...e,children:t}),C$=({children:t,fill:e=!1,className:n=""})=>b.jsx(zi,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:b.jsx(zk,{pills:!0,fill:e,children:U.Children.map(t,r=>{if(!U.isValidElement(r)||r.type!==em)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),x1=(t,e,n)=>t!==e?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",k$=(t,{field:e,dir:n})=>!e||!n?t:t.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[e]>i[e]?o:s}),P$=t=>t.dir?`${t.field}-${t.dir}`:void 0,Rut=t=>{const[e,n]=t.split("-");return{field:e,dir:n}};function Yg({items:t,order:e,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=l=>()=>{const c=x1(l,e.field,e.dir);n(c?l:void 0,c)};return b.jsxs(Hg,{children:[b.jsxs(zg,{caret:!0,color:r?"primary":"link",className:lo({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&b.jsx(b.Fragment,{children:"Order by"}),r&&!e.field&&b.jsx("i",{children:"Order by..."}),r&&e.field&&b.jsxs(b.Fragment,{children:[o&&"Order by: ",t[e.field]," - ",b.jsx("small",{children:e.dir??"DESC"})]})]}),b.jsxs(Nd,{end:i,className:lo("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(t).map(([l,c])=>b.jsxs(Zt,{active:e.field===l,onClick:s(l),children:[c,e.field===l&&b.jsx(zt,{icon:e.dir==="ASC"?Let:met,className:"ordering-dropdown__sort-icon"})]},l)),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{disabled:!e.field,onClick:()=>n(),children:b.jsx("i",{children:"Clear selection"})})]})]})}const nP="#4696e5",jut="rgba(70, 150, 229, 0.4)",L$="#f77f28",Nut="rgba(247, 127, 40, 0.4)",Dut="white",Iut="#161b22",M$=t=>{var e;return(e=document.querySelector("html"))==null?void 0:e.setAttribute("data-theme",t)},Fut=()=>{var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("data-theme"))==="dark"};var But=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),n=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;t[e]=r;for(e in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||o.enumerable!==!0)return!1}return!0},xN=typeof Symbol<"u"&&Symbol,$ut=But,zut=function(){return typeof xN!="function"||typeof Symbol!="function"||typeof xN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$ut()},wN={foo:{}},Uut=Object,Vut=function(){return{__proto__:wN}.foo===wN.foo&&!({__proto__:null}instanceof Uut)},Hut="Function.prototype.bind called on incompatible ",Gw=Array.prototype.slice,Wut=Object.prototype.toString,Yut="[object Function]",Zut=function(t){var e=this;if(typeof e!="function"||Wut.call(e)!==Yut)throw new TypeError(Hut+e);for(var n=Gw.call(arguments,1),r,i=function(){if(this instanceof r){var h=e.apply(this,n.concat(Gw.call(arguments)));return Object(h)===h?h:this}else return e.apply(t,n.concat(Gw.call(arguments)))},o=Math.max(0,e.length-n.length),s=[],l=0;l"u"||!rr?ge:rr(Uint8Array),ou={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":Ju&&rr?rr([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":ch,"%AsyncGenerator%":ch,"%AsyncGeneratorFunction%":ch,"%AsyncIteratorPrototype%":ch,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":A$,"%GeneratorFunction%":ch,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ju&&rr?rr(rr([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ju||!rr?ge:rr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ju||!rr?ge:rr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ju&&rr?rr(""[Symbol.iterator]()):ge,"%Symbol%":Ju?Symbol:ge,"%SyntaxError%":pd,"%ThrowTypeError%":Xut,"%TypedArray%":Jut,"%TypeError%":zh,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(rr)try{null.error}catch(t){var tht=rr(rr(t));ou["%Error.prototype%"]=tht}var eht=function t(e){var n;if(e==="%AsyncFunction%")n=qw("async function () {}");else if(e==="%GeneratorFunction%")n=qw("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=qw("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&rr&&(n=rr(i.prototype))}return ou[e]=n,n},SN={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Zg=rP,I0=Kut,nht=Zg.call(Function.call,Array.prototype.concat),rht=Zg.call(Function.apply,Array.prototype.splice),TN=Zg.call(Function.call,String.prototype.replace),F0=Zg.call(Function.call,String.prototype.slice),iht=Zg.call(Function.call,RegExp.prototype.exec),oht=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sht=/\\(\\)?/g,aht=function(t){var e=F0(t,0,1),n=F0(t,-1);if(e==="%"&&n!=="%")throw new pd("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&e!=="%")throw new pd("invalid intrinsic syntax, expected opening `%`");var r=[];return TN(t,oht,function(i,o,s,l){r[r.length]=s?TN(l,sht,"$1"):o||i}),r},lht=function(t,e){var n=t,r;if(I0(SN,n)&&(r=SN[n],n="%"+r[0]+"%"),I0(ou,n)){var i=ou[n];if(i===ch&&(i=eht(n)),typeof i>"u"&&!e)throw new zh("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new pd("intrinsic "+t+" does not exist!")},iP=function(t,e){if(typeof t!="string"||t.length===0)throw new zh("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new zh('"allowMissing" argument must be a boolean');if(iht(/^%?[^%]*%?$/,t)===null)throw new pd("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aht(t),r=n.length>0?n[0]:"",i=lht("%"+r+"%",e),o=i.name,s=i.value,l=!1,c=i.alias;c&&(r=c[0],rht(n,nht([0,1],c)));for(var h=1,d=!0;h=n.length){var y=iu(s,p);d=!!y,d&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else d=I0(s,p),s=s[p];d&&!l&&(ou[o]=s)}}return s},R$={exports:{}};(function(t){var e=rP,n=iP,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||e.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(d){var p=o(e,i,arguments);if(s&&l){var m=s(p,"length");m.configurable&&l(p,"length",{value:1+c(0,d.length-(arguments.length-1))})}return p};var h=function(){return o(e,r,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h})(R$);var cht=R$.exports,j$=iP,N$=cht,uht=N$(j$("String.prototype.indexOf")),hht=function(t,e){var n=j$(t,!!e);return typeof n=="function"&&uht(t,".prototype.")>-1?N$(n):n};const dht={},fht=Object.freeze(Object.defineProperty({__proto__:null,default:dht},Symbol.toStringTag,{value:"Module"})),pht=Sut(fht);var oP=typeof Map=="function"&&Map.prototype,Xw=Object.getOwnPropertyDescriptor&&oP?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,B0=oP&&Xw&&typeof Xw.get=="function"?Xw.get:null,EN=oP&&Map.prototype.forEach,sP=typeof Set=="function"&&Set.prototype,Qw=Object.getOwnPropertyDescriptor&&sP?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$0=sP&&Qw&&typeof Qw.get=="function"?Qw.get:null,ON=sP&&Set.prototype.forEach,mht=typeof WeakMap=="function"&&WeakMap.prototype,nm=mht?WeakMap.prototype.has:null,ght=typeof WeakSet=="function"&&WeakSet.prototype,rm=ght?WeakSet.prototype.has:null,vht=typeof WeakRef=="function"&&WeakRef.prototype,CN=vht?WeakRef.prototype.deref:null,yht=Boolean.prototype.valueOf,_ht=Object.prototype.toString,bht=Function.prototype.toString,xht=String.prototype.match,aP=String.prototype.slice,el=String.prototype.replace,wht=String.prototype.toUpperCase,kN=String.prototype.toLowerCase,D$=RegExp.prototype.test,PN=Array.prototype.concat,ns=Array.prototype.join,Sht=Array.prototype.slice,LN=Math.floor,UE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Jw=Object.getOwnPropertySymbols,VE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,md=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===md||"symbol")?Symbol.toStringTag:null,I$=Object.prototype.propertyIsEnumerable,MN=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function AN(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||D$.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-LN(-t):LN(t);if(r!==t){var i=String(r),o=aP.call(e,i.length+1);return el.call(i,n,"$&_")+"."+el.call(el.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return el.call(e,n,"$&_")}var HE=pht,RN=HE.custom,jN=B$(RN)?RN:null,Tht=function t(e,n,r,i){var o=n||{};if(Ua(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ua(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ua(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ua(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ua(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return z$(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?AN(e,c):c}if(typeof e=="bigint"){var h=String(e)+"n";return l?AN(e,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof e=="object")return WE(e)?"[Array]":"[Object]";var p=Uht(o,r);if(typeof i>"u")i=[];else if($$(i,e)>=0)return"[Circular]";function m(nt,K,J){if(K&&(i=Sht.call(i),i.push(K)),J){var et={depth:o.depth};return Ua(o,"quoteStyle")&&(et.quoteStyle=o.quoteStyle),t(nt,et,r+1,i)}return t(nt,o,r+1,i)}if(typeof e=="function"&&!NN(e)){var v=Rht(e),y=ey(e,m);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+ns.call(y,", ")+" }":"")}if(B$(e)){var _=md?el.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):VE.call(e);return typeof e=="object"&&!md?rp(_):_}if(Bht(e)){for(var T="<"+kN.call(String(e.nodeName)),x=e.attributes||[],w=0;w",T}if(WE(e)){if(e.length===0)return"[]";var E=ey(e,m);return p&&!zht(E)?"["+YE(E,p)+"]":"[ "+ns.call(E,", ")+" ]"}if(Cht(e)){var O=ey(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!I$.call(e,"cause")?"{ ["+String(e)+"] "+ns.call(PN.call("[cause]: "+m(e.cause),O),", ")+" }":O.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ns.call(O,", ")+" }"}if(typeof e=="object"&&s){if(jN&&typeof e[jN]=="function"&&HE)return HE(e,{depth:d-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(jht(e)){var k=[];return EN&&EN.call(e,function(nt,K){k.push(m(K,e,!0)+" => "+m(nt,e))}),DN("Map",B0.call(e),k,p)}if(Iht(e)){var P=[];return ON&&ON.call(e,function(nt){P.push(m(nt,e))}),DN("Set",$0.call(e),P,p)}if(Nht(e))return t2("WeakMap");if(Fht(e))return t2("WeakSet");if(Dht(e))return t2("WeakRef");if(Pht(e))return rp(m(Number(e)));if(Mht(e))return rp(m(UE.call(e)));if(Lht(e))return rp(yht.call(e));if(kht(e))return rp(m(String(e)));if(!Oht(e)&&!NN(e)){var A=ey(e,m),j=MN?MN(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",N=!j&&Fr&&Object(e)===e&&Fr in e?aP.call($l(e),8,-1):B?"Object":"",V=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Y=V+(N||B?"["+ns.call(PN.call([],N||[],B||[]),": ")+"] ":"");return A.length===0?Y+"{}":p?Y+"{"+YE(A,p)+"}":Y+"{ "+ns.call(A,", ")+" }"}return String(e)};function F$(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function Eht(t){return el.call(String(t),/"/g,""")}function WE(t){return $l(t)==="[object Array]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function Oht(t){return $l(t)==="[object Date]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function NN(t){return $l(t)==="[object RegExp]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function Cht(t){return $l(t)==="[object Error]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function kht(t){return $l(t)==="[object String]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function Pht(t){return $l(t)==="[object Number]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function Lht(t){return $l(t)==="[object Boolean]"&&(!Fr||!(typeof t=="object"&&Fr in t))}function B$(t){if(md)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!VE)return!1;try{return VE.call(t),!0}catch{}return!1}function Mht(t){if(!t||typeof t!="object"||!UE)return!1;try{return UE.call(t),!0}catch{}return!1}var Aht=Object.prototype.hasOwnProperty||function(t){return t in this};function Ua(t,e){return Aht.call(t,e)}function $l(t){return _ht.call(t)}function Rht(t){if(t.name)return t.name;var e=xht.call(bht.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function $$(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return z$(aP.call(t,0,e.maxStringLength),e)+r}var i=el.call(el.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$ht);return F$(i,"single",e)}function $ht(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+wht.call(e.toString(16))}function rp(t){return"Object("+t+")"}function t2(t){return t+" { ? }"}function DN(t,e,n,r){var i=r?YE(n,r):ns.call(n,", ");return t+" ("+e+") {"+i+"}"}function zht(t){for(var e=0;e=0)return!1;return!0}function Uht(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=ns.call(Array(t.indent+1)," ");else return null;return{base:n,prev:ns.call(Array(e+1),n)}}function YE(t,e){if(t.length===0)return"";var n=` +`+e.prev+e.base;return n+ns.call(t,","+n)+` +`+e.prev}function ey(t,e){var n=WE(t),r=[];if(n){r.length=t.length;for(var i=0;i1;){var e=t.pop(),n=e.obj[e.prop];if($c(n)){for(var r=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===rdt.RFC1738&&(c===40||c===41)){s+=o.charAt(l);continue}if(c<128){s=s+qo[c];continue}if(c<2048){s=s+(qo[192|c>>6]+qo[128|c&63]);continue}if(c<55296||c>=57344){s=s+(qo[224|c>>12]+qo[128|c>>6&63]+qo[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),s+=qo[240|c>>18]+qo[128|c>>12&63]+qo[128|c>>6&63]+qo[128|c&63]}return s},cdt=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r"u"&&(E=0)}if(typeof c=="function"?x=c(n,x):x instanceof Date?x=p(x):r==="comma"&&Xs(x)&&(x=c_.maybeMap(x,function(et){return et instanceof Date?p(et):et})),x===null){if(o)return l&&!y?l(n,Pr.encoder,_,"key",m):n;x=""}if(vdt(x)||c_.isBuffer(x)){if(l){var P=y?n:l(n,Pr.encoder,_,"key",m);return[v(P)+"="+v(l(x,Pr.encoder,_,"value",m))]}return[v(n)+"="+v(String(x))]}var A=[];if(typeof x>"u")return A;var j;if(r==="comma"&&Xs(x))y&&l&&(x=c_.maybeMap(x,l)),j=[{value:x.length>0?x.join(",")||null:void 0}];else if(Xs(c))j=c;else{var B=Object.keys(x);j=h?B.sort(h):B}for(var N=i&&Xs(x)&&x.length===1?n+"[]":n,V=0;V"u"?Pr.allowDots:!!t.allowDots,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Pr.charsetSentinel,delimiter:typeof t.delimiter>"u"?Pr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Pr.encode,encoder:typeof t.encoder=="function"?t.encoder:Pr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Pr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Pr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Pr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Pr.strictNullHandling}},bdt=function(t,e){var n=t,r=_dt(e),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):Xs(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var l;e&&e.arrayFormat in IN?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var c=IN[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var d=H$(),p=0;p0?y+v:""},gd=V$,ZE=Object.prototype.hasOwnProperty,xdt=Array.isArray,nr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:gd.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wdt=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Y$=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Sdt="utf8=%26%2310003%3B",Tdt="utf8=%E2%9C%93",Edt=function(t,e){var n={__proto__:null},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=e.parameterLimit===1/0?void 0:e.parameterLimit,o=r.split(e.delimiter,i),s=-1,l,c=e.charset;if(e.charsetSentinel)for(l=0;l-1&&(v=xdt(v)?[v]:v),ZE.call(n,m)?n[m]=gd.combine(n[m],v):n[m]=v}return n},Odt=function(t,e,n,r){for(var i=r?e:Y$(e,n),o=t.length-1;o>=0;--o){var s,l=t[o];if(l==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,h=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(h)&&l!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},Cdt=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&o.exec(i),c=l?i.slice(0,l.index):i,h=[];if(c){if(!n.plainObjects&&ZE.call(Object.prototype,c)&&!n.allowPrototypes)return;h.push(c)}for(var d=0;n.depth>0&&(l=s.exec(i))!==null&&d"u"?nr.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?nr.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:nr.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:nr.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:nr.arrayLimit,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:nr.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:nr.comma,decoder:typeof t.decoder=="function"?t.decoder:nr.decoder,delimiter:typeof t.delimiter=="string"||gd.isRegExp(t.delimiter)?t.delimiter:nr.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:nr.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:nr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:nr.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:nr.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:nr.strictNullHandling}},Pdt=function(t,e){var n=kdt(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?Edt(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sZ$.parse(t,{ignoreQueryPrefix:!0}),Gg=t=>Z$.stringify(t,{arrayFormat:"brackets"});var w1=(t=>(t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",t.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",t.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",t.INVALID_URL="INVALID_URL",t.INVALID_SLUG="INVALID_SLUG",t.INVALID_SHORTCODE="INVALID_SHORTCODE",t.TAG_CONFLICT="TAG_CONFLICT",t.TAG_NOT_FOUND="TAG_NOT_FOUND",t.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",t.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",t.INVALID_API_KEY="INVALID_API_KEY",t.NOT_FOUND="NOT_FOUND",t))(w1||{}),S1=(t=>(t.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",t.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",t.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",t.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",t.INVALID_URL="https://shlink.io/api/error/invalid-url",t.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",t.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",t.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",t.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",t.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",t.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",t.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",t.NOT_FOUND="https://shlink.io/api/error/not-found",t))(S1||{});const jdt=(t,e)=>{const[n,r]=t.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${e}${o}`},Ndt=(t,e)=>`${t}/rest/v${e}`,Ddt=z8(F8),Idt=({orderBy:t={},excludeMaxVisitsReached:e,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:e===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:P$(t)}),Fdt=t=>t===null||!(typeof t=="object"&&"type"in t&&"status"in t)?!1:(t.type===w1.NOT_FOUND||t.type===S1.NOT_FOUND)&&t.status===404;class Bdt{constructor(e,n,r){St(this,"apiVersion");St(this,"listShortUrls",async(e={})=>this.performRequest({url:"/short-urls",query:Idt(e)}).then(({shortUrls:n})=>n));St(this,"createShortUrl",async e=>{const n=z8(r=>c0(r)||F8(r),e);return this.performRequest({url:"/short-urls",method:"POST",body:n})});St(this,"getShortUrlVisits",async(e,n)=>this.performRequest({url:`/short-urls/${e}/visits`,query:n}).then(({visits:r})=>r));St(this,"getTagVisits",async(e,n)=>this.performRequest({url:`/tags/${e}/visits`,query:n}).then(({visits:r})=>r));St(this,"getDomainVisits",async(e,n)=>this.performRequest({url:`/domains/${e}/visits`,query:n}).then(({visits:r})=>r));St(this,"getOrphanVisits",async e=>this.performRequest({url:"/visits/orphan",query:e}).then(({visits:n})=>n));St(this,"getNonOrphanVisits",async e=>this.performRequest({url:"/visits/non-orphan",query:e}).then(({visits:n})=>n));St(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:e})=>e));St(this,"getShortUrl",async(e,n)=>this.performRequest({url:`/short-urls/${e}`,query:{domain:n}}));St(this,"deleteShortUrl",async(e,n)=>this.performEmptyRequest({url:`/short-urls/${e}`,method:"DELETE",query:{domain:n}}));St(this,"updateShortUrl",async(e,n,r)=>this.performRequest({url:`/short-urls/${e}`,method:"PATCH",query:{domain:n},body:r}));St(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:e})=>e).then(({data:e,stats:n})=>({tags:e,stats:n})));St(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:e})=>e).then(({data:e})=>({tags:e.map(({tag:n})=>n),stats:e})));St(this,"deleteTags",async e=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:e}}).then(()=>({tags:e})));St(this,"editTag",async(e,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:e,newName:n}}).then(()=>({oldName:e,newName:n})));St(this,"health",async e=>this.performRequest({url:"/health",domain:e}));St(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));St(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:e})=>e));St(this,"editDomainRedirects",async e=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:e}));St(this,"performRequest",async e=>this.httpClient.fetchJson(...this.toFetchParams(e)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(e)))));St(this,"performEmptyRequest",async e=>this.httpClient.fetchEmpty(...this.toFetchParams(e)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(e)))));St(this,"toFetchParams",({url:e,method:n="GET",query:r={},body:i,domain:o})=>{const s=Gg(Ddt(r)),l=c0(s)?"":`?${s}`,c=o?jdt(this.baseUrl,o):this.baseUrl;return[`${Ndt(c,this.apiVersion)}${e}${l}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});St(this,"handleFetchError",e=>n=>{if(!Fdt(n))throw n;return this.apiVersion=2,e()});this.httpClient=e,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const i2={},$dt=t=>typeof t=="function",zdt=t=>{const{selectedServer:e}=t();if(!V8(e))throw new Error("There's no selected server or it is not found");return e},Udt=t=>e=>{const{url:n,apiKey:r}=$dt(e)?zdt(e):e,i=`${n}_${r}`;return i2[i]||(i2[i]=new Bdt(t,n,r)),i2[i]},Vdt=t=>{t.serviceFactory("buildShlinkApiClient",Udt,"HttpClient")};const Hdt=({isOpen:t,toggle:e,forceUpdate:n})=>{const[r,,i]=zn(),o=()=>{i(),n()};return b.jsxs(_$,{className:"app-update-banner",isOpen:t,toggle:e,tag:Bn,color:"secondary",children:[b.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),b.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",b.jsxs(ke,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&b.jsxs(b.Fragment,{children:["Restart now ",b.jsx(zt,{icon:$et,className:"ms-1"})]}),r&&b.jsx(b.Fragment,{children:"Restarting..."})]})]})]})},G$=({to:t="/",children:e="Home"})=>b.jsx("div",{className:"home",children:b.jsxs(Bn,{className:"p-4",children:[b.jsx("h2",{children:"Oops! We could not find requested route."}),b.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),b.jsx("br",{}),b.jsx(nn,{to:t,className:"btn btn-outline-primary btn-lg",children:e})]})}),Wdt=async()=>{var e;(await((e=navigator.serviceWorker)==null?void 0:e.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})};const Ydt=(t,e,n,r,i,o,s,l)=>({fetchServers:c,servers:h,settings:d,appUpdated:p,resetAppUpdate:m})=>{const y=Un().pathname==="/";return U.useEffect(()=>{var _;Object.keys(h).length===0&&c(),M$(((_=d.ui)==null?void 0:_.theme)??"light")},[]),b.jsxs("div",{className:"container-fluid app-container",children:[b.jsx(t,{}),b.jsxs("div",{className:"app",children:[b.jsx("div",{className:qt("shlink-wrapper",{"d-flex d-md-block align-items-center":y}),children:b.jsxs(a1,{children:[b.jsx(Ce,{index:!0,element:b.jsx(e,{})}),b.jsx(Ce,{path:"/settings/*",element:b.jsx(o,{})}),b.jsx(Ce,{path:"/manage-servers",element:b.jsx(s,{})}),b.jsx(Ce,{path:"/server/create",element:b.jsx(r,{})}),b.jsx(Ce,{path:"/server/:serverId/edit",element:b.jsx(i,{})}),b.jsx(Ce,{path:"/server/:serverId/*",element:b.jsx(n,{})}),b.jsx(Ce,{path:"*",element:b.jsx(G$,{})})]})}),b.jsx("div",{className:"shlink-footer",children:b.jsx(l,{})})]}),b.jsx(Hdt,{isOpen:p,toggle:m,forceUpdate:Wdt})]})};function Fo(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:hP(t)?2:dP(t)?3:0}function Uh(t,e){return Bd(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Zdt(t,e){return Bd(t)===2?t.get(e):t[e]}function q$(t,e,n){var r=Bd(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function K$(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function hP(t){return Jdt&&t instanceof Map}function dP(t){return tft&&t instanceof Set}function Dc(t){return t.o||t.t}function fP(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Q$(t);delete e[rn];for(var n=Vh(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=Gdt),Object.freeze(t),e&&bu(t,function(n,r){return pP(r,!0)},!0)),t}function Gdt(){Fo(2)}function mP(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ps(t){var e=XE[t];return e||Fo(18,t),e}function qdt(t,e){XE[t]||(XE[t]=e)}function GE(){return ng}function o2(t,e){e&&(ps("Patches"),t.u=[],t.s=[],t.v=e)}function z0(t){qE(t),t.p.forEach(Kdt),t.p=null}function qE(t){t===ng&&(ng=t.l)}function BN(t){return ng={p:[],l:ng,h:t,m:!0,_:0}}function Kdt(t){var e=t[rn];e.i===0||e.i===1?e.j():e.g=!0}function s2(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.O||ps("ES5").S(e,t,r),r?(n[rn].P&&(z0(e),Fo(4)),va(t)&&(t=U0(e,t),e.l||V0(e,t)),e.u&&ps("Patches").M(n[rn].t,t,e.u,e.s)):t=U0(e,n,[]),z0(e),e.u&&e.v(e.u,e.s),t!==X$?t:void 0}function U0(t,e,n){if(mP(e))return e;var r=e[rn];if(!r)return bu(e,function(l,c){return $N(t,r,e,l,c,n)},!0),e;if(r.A!==t)return e;if(!r.P)return V0(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=fP(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),bu(o,function(l,c){return $N(t,r,i,l,c,n,s)}),V0(t,i,!1),n&&t.u&&ps("Patches").N(r,n,t.u,t.s)}return r.o}function $N(t,e,n,r,i,o,s){if(kl(i)){var l=U0(t,i,o&&e&&e.i!==3&&!Uh(e.R,r)?o.concat(r):void 0);if(q$(n,r,l),!kl(l))return;t.m=!1}else s&&n.add(i);if(va(i)&&!mP(i)){if(!t.h.D&&t._<1)return;U0(t,i),e&&e.A.l||V0(t,i)}}function V0(t,e,n){n===void 0&&(n=!1),!t.l&&t.h.D&&t.m&&pP(e,n)}function a2(t,e){var n=t[rn];return(n?Dc(n):t)[e]}function zN(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Ya(t){t.P||(t.P=!0,t.l&&Ya(t.l))}function l2(t){t.o||(t.o=fP(t.t))}function KE(t,e,n){var r=hP(e)?ps("MapSet").F(e,n):dP(e)?ps("MapSet").T(e,n):t.O?function(i,o){var s=Array.isArray(i),l={i:s?1:0,A:o?o.A:GE(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=l,h=rg;s&&(c=[l],h=Pp);var d=Proxy.revocable(c,h),p=d.revoke,m=d.proxy;return l.k=m,l.j=p,m}(e,n):ps("ES5").J(e,n);return(n?n.A:GE()).p.push(r),r}function Xdt(t){return kl(t)||Fo(22,t),function e(n){if(!va(n))return n;var r,i=n[rn],o=Bd(n);if(i){if(!i.P&&(i.i<4||!ps("ES5").K(i)))return i.t;i.I=!0,r=UN(n,o),i.I=!1}else r=UN(n,o);return bu(r,function(s,l){i&&Zdt(i.t,s)===l||q$(r,s,e(l))}),o===3?new Set(r):r}(t)}function UN(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return fP(t)}function Qdt(){function t(o,s){var l=i[o];return l?l.enumerable=s:i[o]=l={configurable:!0,enumerable:s,get:function(){var c=this[rn];return rg.get(c,o)},set:function(c){var h=this[rn];rg.set(h,o,c)}},l}function e(o){for(var s=o.length-1;s>=0;s--){var l=o[s][rn];if(!l.P)switch(l.i){case 5:r(l)&&Ya(l);break;case 4:n(l)&&Ya(l)}}}function n(o){for(var s=o.t,l=o.k,c=Vh(l),h=c.length-1;h>=0;h--){var d=c[h];if(d!==rn){var p=s[d];if(p===void 0&&!Uh(s,d))return!0;var m=l[d],v=m&&m[rn];if(v?v.t!==p:!K$(m,p))return!0}}var y=!!s[rn];return c.length!==Vh(s).length+(y?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var c=0;c1?x-1:0),E=1;E1?d-1:0),m=1;m=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=ps("Patches").$;return kl(n)?s(n,r):this.produce(n,function(l){return s(l,r)})},t}(),Ui=new nft,J$=Ui.produce;Ui.produceWithPatches.bind(Ui);Ui.setAutoFreeze.bind(Ui);Ui.setUseProxies.bind(Ui);Ui.applyPatches.bind(Ui);Ui.createDraft.bind(Ui);Ui.finishDraft.bind(Ui);function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}function rft(t,e){if(ig(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ig(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ift(t){var e=rft(t,"string");return ig(e)==="symbol"?e:String(e)}function oft(t,e,n){return e=ift(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ZN(t){for(var e=1;e"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Lr(1));return n(tz)(t,e)}if(typeof t!="function")throw new Error(Lr(2));var i=t,o=e,s=[],l=s,c=!1;function h(){l===s&&(l=s.slice())}function d(){if(c)throw new Error(Lr(3));return o}function p(_){if(typeof _!="function")throw new Error(Lr(4));if(c)throw new Error(Lr(5));var T=!0;return h(),l.push(_),function(){if(T){if(c)throw new Error(Lr(6));T=!1,h();var w=l.indexOf(_);l.splice(w,1),s=null}}}function m(_){if(!sft(_))throw new Error(Lr(7));if(typeof _.type>"u")throw new Error(Lr(8));if(c)throw new Error(Lr(9));try{c=!0,o=i(o,_)}finally{c=!1}for(var T=s=l,x=0;x"u")throw new Error(Lr(12));if(typeof n(void 0,{type:H0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Lr(13))})}function vP(t){for(var e=Object.keys(t),n={},r=0;r"u")throw h&&h.type,new Error(Lr(14));p[v]=T,d=d||T!==_}return d=d||o.length!==Object.keys(c).length,d?p:c}}function W0(){for(var t=arguments.length,e=new Array(t),n=0;n0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Nft,resetAppUpdate:Dft}=Rft,Ift=jft,Fft=(t,e)=>{t.serviceFactory("App",Ydt,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),t.decorator("App",e(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),t.serviceFactory("appUpdateAvailable",()=>Nft),t.serviceFactory("resetAppUpdate",()=>Dft)};var Bft={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},$ft=Bft,zft={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},Uft=zft,Vft={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},az={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]},Hft={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Wft={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},Yft=Object.defineProperty,Zft=(t,e,n)=>e in t?Yft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qt=(t,e,n)=>(Zft(t,typeof e!="symbol"?e+"":e,n),n),Zo,ys=".",lz="function",cz="string",uz="__global__",_P="Provider",Gft=0,bP=Array.prototype.slice,qft=function(t,e){var n=t[e];if(n===void 0&&Zo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+e+"` is undefined.");return n},T1=function(t){var e;return this.nested[t]||(e=Zo.pop(),this.nested[t]=e,this.factory(t,function(){return e.container})),this.nested[t]},hz=function(t){return t.split(ys).reduce(qft,this)},Kft=function(t,e,n,r){var i={configurable:!0,enumerable:!0};return t.length?i.get=function(){var o=0,s=function(l){if(l)throw l;t[o]&&t[o++](n,s)};return s(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,e,i),r[e]},Xft=function(t,e){var n,r;return typeof t===lz&&(e=t,t=uz),n=t.split(ys),r=n.shift(),n.length?T1.call(this,r).middleware(n.join(ys),e):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(e)),this},Qft=function(t,e){return e(t)},tD=function(t,e){return(t[e]||[]).concat(t.__global__||[])},Jft=function(t,e){var n,r,i,o,s;return this.id,i=this.container,o=this.decorators,s=this.middlewares,n=t+_P,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var l=new e;return delete i[n],i[n]=l,l}},r[t]={configurable:!0,enumerable:!0,get:function(){var l=i[n],c;return l&&(c=tD(o,t).reduce(Qft,l.$get(i)),delete i[n],delete i[t]),c===void 0?c:Kft(tD(s,t),t,c,i)}},Object.defineProperties(i,r),this},dz=function(t,e){var n,r;return n=t.split(ys),this.providerMap[t]&&n.length===1&&!this.container[t+_P]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=e,this.providerMap[t]=!0,r=n.shift(),n.length?(T1.call(this,r).provider(n.join(ys),e),this):Jft.call(this,r,e))},xP=function(t,e){return dz.call(this,t,function(){this.$get=e})},fz=function(t,e,n){var r=arguments.length>3?bP.call(arguments,3):[],i=this;return xP.call(this,t,function(){var o=e,s=r.map(hz,i.container);return n?new(e.bind.apply(e,[null].concat(s))):o.apply(null,s)})},tpt=function(t,e){return fz.apply(this,[t,e,!0].concat(bP.call(arguments,2)))},ept=function(t,e){return fz.apply(this,[t,e,!1].concat(bP.call(arguments,2)))},pz=function(t,e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e,writable:!0})},mz=function(t,e){var n=t[e];return n||(n={},pz.call(t,e,n)),n},npt=function(t,e){var n;return n=t.split(ys),t=n.pop(),pz.call(n.reduce(mz,this.container),t,e),this},rpt=function(t,e){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:e,writable:!1})},ipt=function(t,e){var n=t.split(ys);return t=n.pop(),rpt.call(n.reduce(mz,this.container),t,e),this},gz=function(t,e){var n,r;return typeof t===lz&&(e=t,t=uz),n=t.split(ys),r=n.shift(),n.length?T1.call(this,r).decorator(n.join(ys),e):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(e)),this},opt=function(t){return this.deferred.push(t),this},spt=function(t){return(t||[]).map(hz,this.container)},apt=function(t,e){return xP.call(this,t,function(n){return{instance:e.bind(e,n)}})},lpt=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},wP=function(t){return Object.keys(t||this.container||{}).filter(lpt)},Y0={},cpt=function(t){var e;return typeof t===cz?(e=Y0[t],e||(Y0[t]=e=new Zo,e.constant("BOTTLE_NAME",t)),e):new Zo},upt=function(t){typeof t===cz?delete Y0[t]:Y0={}},vz=function(t){var e=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,e].concat(t.$inject||[]))},eD=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+_P]},hpt=function(t){var e=this.originalProviders,n=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&t.indexOf(r)===-1)){var i=r.split(ys);i.length>1&&i.forEach(eD,T1.call(this,i[0])),eD.call(this,r),this.provider(r,e[r])}},this)},dpt=function(t){return this.deferred.forEach(function(e){e(t)}),this};Zo=function t(e){if(!(this instanceof t))return t.pop(e);this.id=Gft++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:gz.bind(this),$register:vz.bind(this),$list:wP.bind(this)}};Zo.prototype={constant:ipt,decorator:gz,defer:opt,digest:spt,factory:xP,instanceFactory:apt,list:wP,middleware:Xft,provider:dz,resetProviders:hpt,register:vz,resolve:dpt,service:tpt,serviceFactory:ept,value:npt};Zo.pop=cpt;Zo.clear=upt;Zo.list=wP;Zo.config={strict:!1};const fpt=Zo;var ppt=function(){return!0};const yz=ppt;function qe(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function sn(t){return function e(n){return arguments.length===0||qe(n)?e:t.apply(this,arguments)}}function De(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return qe(n)?e:sn(function(i){return t(n,i)});default:return qe(n)&&qe(r)?e:qe(n)?sn(function(i){return t(i,r)}):qe(r)?sn(function(i){return t(n,i)}):t(n,r)}}}function qg(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,r){return e.apply(this,arguments)};case 3:return function(n,r,i){return e.apply(this,arguments)};case 4:return function(n,r,i,o){return e.apply(this,arguments)};case 5:return function(n,r,i,o,s){return e.apply(this,arguments)};case 6:return function(n,r,i,o,s,l){return e.apply(this,arguments)};case 7:return function(n,r,i,o,s,l,c){return e.apply(this,arguments)};case 8:return function(n,r,i,o,s,l,c,h){return e.apply(this,arguments)};case 9:return function(n,r,i,o,s,l,c,h,d){return e.apply(this,arguments)};case 10:return function(n,r,i,o,s,l,c,h,d,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function E1(t,e,n){return function(){for(var r=[],i=0,o=t,s=0;s=arguments.length)?l=e[s]:(l=arguments[i],i+=1),r[s]=l,qe(l)||(o-=1),s+=1}return o<=0?n.apply(this,r):qg(o,E1(t,r,n))}}var mpt=De(function(t,e){return t===1?sn(e):qg(t,E1(t,[],e))});const _z=mpt;function Iu(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return qe(n)?e:De(function(o,s){return t(n,o,s)});case 2:return qe(n)&&qe(r)?e:qe(n)?De(function(o,s){return t(o,r,s)}):qe(r)?De(function(o,s){return t(n,o,s)}):sn(function(o){return t(n,r,o)});default:return qe(n)&&qe(r)&&qe(i)?e:qe(n)&&qe(r)?De(function(o,s){return t(o,s,i)}):qe(n)&&qe(i)?De(function(o,s){return t(o,r,s)}):qe(r)&&qe(i)?De(function(o,s){return t(n,o,s)}):qe(n)?sn(function(o){return t(o,r,i)}):qe(r)?sn(function(o){return t(n,o,i)}):qe(i)?sn(function(o){return t(n,r,o)}):t(n,r,i)}}}const Kg=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function gpt(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function SP(t,e,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Kg(i)){for(var o=0;ot?e:t});const bz=vpt;function u_(t,e){for(var n=0,r=e.length,i=Array(r);n0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const xz=ypt;var _pt=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function bpt(t){return new _pt(t)}var xpt=De(function(t,e){return qg(t.length,function(){return t.apply(e,arguments)})});const wpt=xpt;function Spt(t,e,n){for(var r=0,i=n.length;r=0;)e=sD[n],ro(e,t)&&!Ppt(r,e)&&(r[r.length]=e),n-=1;return r});const _s=Lpt;var Mpt=De(SP(["fantasy-land/map","map"],Opt,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return _z(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return C1(function(n,r){return n[r]=t(e[r]),n},{},_s(e));default:return u_(t,e)}}));const Sz=Mpt,JE=Number.isInteger||function(t){return t<<0===t};var Apt=De(function(t,e){var n=t<0?e.length+t:t;return O1(e)?e.charAt(n):e[n]});const Tz=Apt;var Rpt=De(function(t,e){return t.map(function(n){for(var r=e,i=0,o;i1){var o=!Fu(r)&&ro(i,r)?r[i]:JE(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,o)}if(JE(i)&&Kg(r)){var s=[].concat(r);return s[i]=n,s}else return Upt(i,n,r)});const th=Hpt;function Wpt(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ypt(t){return function e(n){for(var r,i,o,s=[],l=0,c=n.length;l=0;){if(n[o]===t)return r[o]===e;o-=1}switch(i){case"Map":return t.size!==e.size?!1:uD(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:uD(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=_s(t);if(s.length!==_s(e).length)return!1;var l=n.concat([t]),c=r.concat([e]);for(o=s.length-1;o>=0;){var h=s[o];if(!(ro(h,e)&&OP(e[h],t[h],l,c)))return!1;o-=1}return!0}var omt=De(function(t,e){return OP(t,e,[],[])});const CP=omt;function smt(t,e,n){var r,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;n=0}function p2(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var ip=function(t){return(t<10?"0":"")+t},lmt=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+ip(t.getUTCMonth()+1)+"-"+ip(t.getUTCDate())+"T"+ip(t.getUTCHours())+":"+ip(t.getUTCMinutes())+":"+ip(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const cmt=lmt;function umt(t){return function(){return!t.apply(this,arguments)}}function hmt(t,e){for(var n=0,r=e.length,i=[];n":Pz(o,s)},r=function(o,s){return u_(function(l){return p2(l)+": "+n(o[l])},s.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+u_(n,t).join(", ")+"))";case"[object Array]":return"["+u_(n,t).concat(r(t,kP(function(o){return/^\d+$/.test(o)},_s(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):p2(cmt(t)))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":p2(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var i=t.toString();if(i!=="[object Object]")return i}return"{"+r(t,_s(t)).join(", ")+"}"}}var vmt=sn(function(t){return Pz(t,[])});const ymt=vmt;var _mt=sn(function(t){var e=Ez(bz,0,Sz(function(n){return n[0].length},t));return qg(e,function(){for(var n=0;no?1:0})});const qmt=Gmt;var Kmt=De(function(t,e){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r{const[i,,o,s]=zn(),{domains:l}=n,c=qi(e),h=()=>r("");return U.useEffect(()=>{t()},[]),i?b.jsxs(y1,{children:[b.jsx(dd,{value:e??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),b.jsx(ke,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:cr(h,s),children:b.jsx(zt,{icon:wet})}),b.jsx(fi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):b.jsxs(Pa,{text:c?"Domain":`Domain: ${e}`,className:c?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[l.map(({domain:d,isDefault:p})=>b.jsxs(Zt,{active:(e===d||p)&&c,onClick:()=>r(d),children:[d,p&&b.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{onClick:cr(h,o),children:b.jsx("i",{children:"New domain"})})]})},ngt=t=>(t==null?void 0:t.type)===w1.INVALID_ARGUMENT||(t==null?void 0:t.type)===S1.INVALID_ARGUMENT,rgt=t=>(t==null?void 0:t.type)==="INVALID_SHORTCODE_DELETION"||(t==null?void 0:t.type)===w1.INVALID_SHORT_URL_DELETION||(t==null?void 0:t.type)===S1.INVALID_SHORT_URL_DELETION,igt=t=>!!t&&typeof t=="object"&&["type","detail","title","status"].every(e=>e in t),La=t=>igt(t)?t:void 0,ya=({errorData:t,fallbackMessage:e})=>b.jsxs(b.Fragment,{children:[(t==null?void 0:t.detail)??e,ngt(t)&&b.jsxs("p",{className:"mb-0",children:["Invalid elements: [",t.invalidElements.join(", "),"]"]})]}),ogt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,fD=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(ogt);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},pD=t=>t==="*"||t==="x"||t==="X",mD=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},sgt=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],agt=(t,e)=>{if(pD(t)||pD(e))return 0;const[n,r]=sgt(mD(t),mD(e));return n>r?1:n{for(let n=0;n{const n=fD(t),r=fD(e),i=n.pop(),o=r.pop(),s=gD(n,r);return s!==0?s:i&&o?gD(i.split("."),o.split(".")):i||o?i?-1:1:0},vD=(t,e,n)=>{cgt(n);const r=lgt(t,e);return Nz[n].includes(r)},Nz={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},yD=Object.keys(Nz),cgt=t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(yD.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${yD.join("|")}`)},ugt=(t,{maxVersion:e,minVersion:n})=>{const r=!n||vD(t,n,">=");return(!e||vD(t,e,"<="))&&r},Dz={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(Dz);const oy=(t,e)=>ugt(e,{minVersion:Dz[t]}),Iz=t=>({domainVisits:oy("domainVisits",t),excludeBotsOnShortUrls:oy("excludeBotsOnShortUrls",t),filterDisabledUrls:oy("filterDisabledUrls",t),deviceLongUrls:oy("deviceLongUrls",t)}),hgt=t=>U.useMemo(()=>Iz(t),[t]),Fz=U.createContext(Iz("0.0.0")),dgt=Fz.Provider,Xg=t=>U.useContext(Fz)[t],Bz=U.createContext(""),fgt=Bz.Provider,Bu=()=>U.useContext(Bz),om=(t,e,n)=>Fu(n)?t.shortCode===e&&!t.domain:t.shortCode===e&&t.domain===n,pgt=(t,e)=>!t.domain&&e===g7?!0:t.domain===e,mgt=(t,e)=>{const n=(e==null?void 0:e.validateUrls)??!1;return t?{longUrl:t.longUrl,tags:t.tags,title:t.title??void 0,domain:t.domain??void 0,validSince:t.meta.validSince??void 0,validUntil:t.meta.validUntil??void 0,maxVisits:t.meta.maxVisits??void 0,crawlable:t.crawlable,forwardQuery:t.forwardQuery,deviceLongUrls:t.deviceLongUrls&&{android:t.deviceLongUrls.android??void 0,ios:t.deviceLongUrls.ios??void 0,desktop:t.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},$z="__",ggt=t=>t.replaceAll("/",$z),h_=t=>t.replaceAll($z,"/");function Vi(t){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(t)}function te(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Pt(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function Nt(t){Pt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Vi(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function $u(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function go(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function vgt(t,e){if(Pt(2,arguments),!e||Vi(e)!=="object")return new Date(NaN);var n=e.years?te(e.years):0,r=e.months?te(e.months):0,i=e.weeks?te(e.weeks):0,o=e.days?te(e.days):0,s=e.hours?te(e.hours):0,l=e.minutes?te(e.minutes):0,c=e.seconds?te(e.seconds):0,h=Nt(t),d=r||n?go(h,r+n*12):h,p=o||i?$u(d,o+i*7):d,m=l+s*60,v=c+m*60,y=v*1e3,_=new Date(p.getTime()+y);return _}function MP(t,e){Pt(2,arguments);var n=Nt(t).getTime(),r=te(e);return new Date(n+r)}var ygt=36e5;function _gt(t,e){Pt(2,arguments);var n=te(e);return MP(t,n*ygt)}var bgt={};function Ma(){return bgt}function zz(t,e){var n,r,i,o,s,l,c,h;Pt(1,arguments);var d=Ma(),p=te((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Nt(t),v=m.getDay(),y=(v=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function wgt(t){Pt(1,arguments);var e=xgt(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=ag(n);return r}function yd(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Fi(t){Pt(1,arguments);var e=Nt(t);return e.setHours(0,0,0,0),e}var Sgt=864e5;function lg(t,e){Pt(2,arguments);var n=Fi(t),r=Fi(e),i=n.getTime()-yd(n),o=r.getTime()-yd(r);return Math.round((i-o)/Sgt)}var Tgt=6e4;function eO(t,e){Pt(2,arguments);var n=te(e);return MP(t,n*Tgt)}function Uz(t,e){Pt(2,arguments);var n=te(e),r=n*3;return go(t,r)}function AP(t,e){Pt(2,arguments);var n=te(e),r=n*7;return $u(t,r)}function _d(t,e){Pt(2,arguments);var n=te(e);return go(t,n*12)}function _D(t){Pt(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(Vi(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var i=Nt(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function d_(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var RP=6e4,k1=36e5,Egt=1e3;function Ogt(t,e){Pt(2,arguments);var n=Fi(t),r=Fi(e);return n.getTime()===r.getTime()}function jP(t){return Pt(1,arguments),t instanceof Date||Vi(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function q0(t){if(Pt(1,arguments),!jP(t)&&typeof t!="number")return!1;var e=Nt(t);return!isNaN(Number(e))}function cg(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Ch(t){Pt(1,arguments);var e=Nt(t),n=Math.floor(e.getMonth()/3)+1;return n}function K0(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e);return n.getFullYear()-r.getFullYear()}function xD(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function NP(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e),i=xD(n,r),o=Math.abs(lg(n,r));n.setDate(n.getDate()-i*o);var s=+(xD(n,r)===-i),l=i*(o-s);return l===0?0:l}function Vz(t,e){return Pt(2,arguments),Nt(t).getTime()-Nt(e).getTime()}var wD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Cgt="trunc";function DP(t){return t?wD[t]:wD[Cgt]}function kgt(t,e,n){Pt(2,arguments);var r=Vz(t,e)/k1;return DP(n==null?void 0:n.roundingMethod)(r)}function xu(t){Pt(1,arguments);var e=Nt(t);return e.setHours(23,59,59,999),e}function Hz(t){Pt(1,arguments);var e=Nt(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Pgt(t){Pt(1,arguments);var e=Nt(t);return xu(e).getTime()===Hz(e).getTime()}function X0(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e),i=d_(n,r),o=Math.abs(cg(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var l=d_(n,r)===-i;Pgt(Nt(t))&&o===1&&d_(t,r)===1&&(l=!1),s=i*(o-Number(l))}return s===0?0:s}function Lgt(t,e,n){Pt(2,arguments);var r=Vz(t,e)/1e3;return DP(n==null?void 0:n.roundingMethod)(r)}function Mgt(t,e,n){Pt(2,arguments);var r=NP(t,e)/7;return DP(n==null?void 0:n.roundingMethod)(r)}function nO(t){Pt(1,arguments);var e=Nt(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function Wz(t){Pt(1,arguments);var e=Nt(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Agt(t){Pt(1,arguments);var e=Nt(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}function Yz(t){Pt(1,arguments);var e=Nt(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Rgt(t,e){var n,r,i,o,s,l,c,h;Pt(1,arguments);var d=Ma(),p=te((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Nt(t),v=m.getDay(),y=(v=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Igt(t){Pt(1,arguments);var e=Gz(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=bd(n);return r}var Fgt=6048e5;function qz(t){Pt(1,arguments);var e=Nt(t),n=bd(e).getTime()-Igt(e).getTime();return Math.round(n/Fgt)+1}function wu(t,e){var n,r,i,o,s,l,c,h;Pt(1,arguments);var d=Ma(),p=te((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Nt(t),v=m.getUTCDay(),y=(v=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,v),y.setUTCHours(0,0,0,0);var _=wu(y,e),T=new Date(0);T.setUTCFullYear(p,0,v),T.setUTCHours(0,0,0,0);var x=wu(T,e);return d.getTime()>=_.getTime()?p+1:d.getTime()>=x.getTime()?p:p-1}function Bgt(t,e){var n,r,i,o,s,l,c,h;Pt(1,arguments);var d=Ma(),p=te((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),m=IP(t,e),v=new Date(0);v.setUTCFullYear(m,0,p),v.setUTCHours(0,0,0,0);var y=wu(v,e);return y}var $gt=6048e5;function Kz(t,e){Pt(1,arguments);var n=Nt(t),r=wu(n,e).getTime()-Bgt(n,e).getTime();return Math.round(r/$gt)+1}function ue(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?n:1-n;return ue(e==="yy"?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return e==="M"?String(n+1):ue(n+1,2)},d:function(t,e){return ue(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,e){return ue(t.getUTCHours()%12||12,e.length)},H:function(t,e){return ue(t.getUTCHours(),e.length)},m:function(t,e){return ue(t.getUTCMinutes(),e.length)},s:function(t,e){return ue(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return ue(i,e.length)}};const Na=zgt;var eh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ugt={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Na.y(t,e)},Y:function(t,e,n,r){var i=IP(t,r),o=i>0?i:1-i;if(e==="YY"){var s=o%100;return ue(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):ue(o,e.length)},R:function(t,e){var n=Gz(t);return ue(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return ue(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Na.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=Kz(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ue(i,e.length)},I:function(t,e,n){var r=qz(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Na.d(t,e)},D:function(t,e,n){var r=Dgt(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return ue(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ue(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r=t.getUTCHours(),i;switch(r===12?i=eh.noon:r===0?i=eh.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r=t.getUTCHours(),i;switch(r>=17?i=eh.evening:r>=12?i=eh.afternoon:r>=4?i=eh.morning:i=eh.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Na.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Na.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Na.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Na.s(t,e)},S:function(t,e){return Na.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return TD(o);case"XXXX":case"XX":return Ic(o);case"XXXXX":case"XXX":default:return Ic(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return TD(o);case"xxxx":case"xx":return Ic(o);case"xxxxx":case"xxx":default:return Ic(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+SD(o,":");case"OOOO":default:return"GMT"+Ic(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+SD(o,":");case"zzzz":default:return"GMT"+Ic(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return ue(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return ue(o,e.length)}};function SD(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=e||"";return n+String(i)+s+ue(o,2)}function TD(t,e){if(t%60===0){var n=t>0?"-":"+";return n+ue(Math.abs(t)/60,2)}return Ic(t,e)}function Ic(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=ue(Math.floor(i/60),2),s=ue(i%60,2);return r+o+n+s}const Vgt=Ugt;var ED=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Xz=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Hgt=function(t,e){var n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ED(t,e);var o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",ED(r,e)).replace("{{time}}",Xz(i,e))},Wgt={p:Xz,P:Hgt};const rO=Wgt;var Ygt=["D","DD"],Zgt=["YY","YYYY"];function Qz(t){return Ygt.indexOf(t)!==-1}function Jz(t){return Zgt.indexOf(t)!==-1}function Q0(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ggt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qgt=function(t,e,n){var r,i=Ggt[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const Kgt=qgt;function m2(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var Xgt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qgt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jgt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tvt={date:m2({formats:Xgt,defaultWidth:"full"}),time:m2({formats:Qgt,defaultWidth:"full"}),dateTime:m2({formats:Jgt,defaultWidth:"full"})};const evt=tvt;var nvt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rvt=function(t,e,n,r){return nvt[t]};const ivt=rvt;function op(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[l]}var h=t.argumentCallback?t.argumentCallback(e):e;return i[h]}}var ovt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},svt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},avt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lvt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cvt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uvt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hvt=function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},dvt={ordinalNumber:hvt,era:op({values:ovt,defaultWidth:"wide"}),quarter:op({values:svt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:op({values:avt,defaultWidth:"wide"}),day:op({values:lvt,defaultWidth:"wide"}),dayPeriod:op({values:cvt,defaultWidth:"wide",formattingValues:uvt,defaultFormattingWidth:"wide"})};const fvt=dvt;function sp(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?mvt(l,function(p){return p.test(s)}):pvt(l,function(p){return p.test(s)}),h;h=t.valueCallback?t.valueCallback(c):c,h=n.valueCallback?n.valueCallback(h):h;var d=e.slice(s.length);return{value:h,rest:d}}}function pvt(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function mvt(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(i.length);return{value:s,rest:l}}}var vvt=/^(\d+)(th|st|nd|rd)?/i,yvt=/\d+/i,_vt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},bvt={any:[/^b/i,/^(a|c)/i]},xvt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wvt={any:[/1/i,/2/i,/3/i,/4/i]},Svt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Evt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ovt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Cvt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kvt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Pvt={ordinalNumber:gvt({matchPattern:vvt,parsePattern:yvt,valueCallback:function(t){return parseInt(t,10)}}),era:sp({matchPatterns:_vt,defaultMatchWidth:"wide",parsePatterns:bvt,defaultParseWidth:"any"}),quarter:sp({matchPatterns:xvt,defaultMatchWidth:"wide",parsePatterns:wvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:sp({matchPatterns:Svt,defaultMatchWidth:"wide",parsePatterns:Tvt,defaultParseWidth:"any"}),day:sp({matchPatterns:Evt,defaultMatchWidth:"wide",parsePatterns:Ovt,defaultParseWidth:"any"}),dayPeriod:sp({matchPatterns:Cvt,defaultMatchWidth:"any",parsePatterns:kvt,defaultParseWidth:"any"})};const Lvt=Pvt;var Mvt={code:"en-US",formatDistance:Kgt,formatLong:evt,formatRelative:ivt,localize:fvt,match:Lvt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const FP=Mvt;var Avt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rvt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jvt=/^'([^]*?)'?$/,Nvt=/''/g,Dvt=/[a-zA-Z]/;function xd(t,e,n){var r,i,o,s,l,c,h,d,p,m,v,y,_,T,x,w,E,O;Pt(2,arguments);var k=String(e),P=Ma(),A=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:P.locale)!==null&&r!==void 0?r:FP,j=te((o=(s=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(h=n.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:P.firstWeekContainsDate)!==null&&s!==void 0?s:(p=P.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=te((v=(y=(_=(T=n==null?void 0:n.weekStartsOn)!==null&&T!==void 0?T:n==null||(x=n.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&_!==void 0?_:P.weekStartsOn)!==null&&y!==void 0?y:(E=P.locale)===null||E===void 0||(O=E.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&v!==void 0?v:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var N=Nt(t);if(!q0(N))throw new RangeError("Invalid time value");var V=yd(N),Y=Zz(N,V),nt={firstWeekContainsDate:j,weekStartsOn:B,locale:A,_originalDate:N},K=k.match(Rvt).map(function(J){var et=J[0];if(et==="p"||et==="P"){var ct=rO[et];return ct(J,A.formatLong)}return J}).join("").match(Avt).map(function(J){if(J==="''")return"'";var et=J[0];if(et==="'")return Ivt(J);var ct=Vgt[et];if(ct)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Jz(J)&&Q0(J,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Qz(J)&&Q0(J,e,String(t)),ct(Y,J,A.localize,nt);if(et.match(Dvt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+et+"`");return J}).join("");return K}function Ivt(t){var e=t.match(jvt);return e?e[1].replace(Nvt,"'"):t}function BP(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Fvt(t){return BP({},t)}var OD=1440,Bvt=2520,g2=43200,$vt=86400;function zvt(t,e,n){var r,i;Pt(2,arguments);var o=Ma(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:FP;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=d_(t,e);if(isNaN(l))throw new RangeError("Invalid time value");var c=BP(Fvt(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:l}),h,d;l>0?(h=Nt(e),d=Nt(t)):(h=Nt(t),d=Nt(e));var p=Lgt(d,h),m=(yd(d)-yd(h))/1e3,v=Math.round((p-m)/60),y;if(v<2)return n!=null&&n.includeSeconds?p<5?s.formatDistance("lessThanXSeconds",5,c):p<10?s.formatDistance("lessThanXSeconds",10,c):p<20?s.formatDistance("lessThanXSeconds",20,c):p<40?s.formatDistance("halfAMinute",0,c):p<60?s.formatDistance("lessThanXMinutes",1,c):s.formatDistance("xMinutes",1,c):v===0?s.formatDistance("lessThanXMinutes",1,c):s.formatDistance("xMinutes",v,c);if(v<45)return s.formatDistance("xMinutes",v,c);if(v<90)return s.formatDistance("aboutXHours",1,c);if(vr.getTime()}function io(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e);return n.getTime()t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,l=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function Ht(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iO(t,e){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},iO(t,e)}function xe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&iO(t,e)}function tb(t){return tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tb(t)}function qvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kvt(t,e){if(e&&(Vi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ht(t)}function we(t){var e=qvt();return function(){var n=tb(t),r;if(e){var i=tb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Kvt(this,r)}}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xvt(t,e){if(Vi(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function e7(t){var e=Xvt(t,"string");return Vi(e)==="symbol"?e:String(e)}function LD(t,e){for(var n=0;n0,r=n?e:1-e,i;if(r<=50)i=t||100;else{var o=r+50,s=Math.floor(o/100)*100,l=t>=o%100;i=t+s-(l?100:0)}return n?i:1-i}function s7(t){return t%400===0||t%4===0&&t%100!==0}var nyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(r,i,o){var s=r.getUTCFullYear();if(o.isTwoDigitYear){var l=o7(o.year,s);return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}var c=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(c,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),ryt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(r,i,o,s){var l=IP(r,s);if(o.isTwoDigitYear){var c=o7(o.year,l);return r.setUTCFullYear(c,0,s.firstWeekContainsDate),r.setUTCHours(0,0,0,0),wu(r,s)}var h=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(h,0,s.firstWeekContainsDate),r.setUTCHours(0,0,0,0),wu(r,s)}}]),n}(Oe),iyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),ayt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),lyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),cyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Oe);function uyt(t,e,n){Pt(2,arguments);var r=Nt(t),i=te(e),o=Kz(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var hyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=53}},{key:"set",value:function(r,i,o,s){return wu(uyt(r,o,s),s)}}]),n}(Oe);function dyt(t,e){Pt(2,arguments);var n=Nt(t),r=te(e),i=qz(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var fyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=53}},{key:"set",value:function(r,i,o){return bd(dyt(r,o))}}]),n}(Oe),pyt=[31,28,31,30,31,30,31,31,30,31,30,31],myt=[31,29,31,30,31,30,31,31,30,31,30,31],gyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=myt[l]:i>=1&&i<=pyt[l]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),vyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(r,i,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),n}(Oe);function zP(t,e,n){var r,i,o,s,l,c,h,d;Pt(2,arguments);var p=Ma(),m=te((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&o!==void 0?o:p.weekStartsOn)!==null&&i!==void 0?i:(h=p.locale)===null||h===void 0||(d=h.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Nt(t),y=te(e),_=v.getUTCDay(),T=y%7,x=(T+7)%7,w=(x=0&&i<=6}},{key:"set",value:function(r,i,o,s){return r=zP(r,o,s),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),_yt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=6}},{key:"set",value:function(r,i,o,s){return r=zP(r,o,s),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),byt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=6}},{key:"set",value:function(r,i,o,s){return r=zP(r,o,s),r.setUTCHours(0,0,0,0),r}}]),n}(Oe);function xyt(t,e){Pt(2,arguments);var n=te(e);n%7===0&&(n=n-7);var r=1,i=Nt(t),o=i.getUTCDay(),s=n%7,l=(s+7)%7,c=(l=1&&i<=7}},{key:"set",value:function(r,i,o){return r=xyt(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(Oe),Syt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=12}},{key:"set",value:function(r,i,o){var s=r.getUTCHours()>=12;return s&&o<12?r.setUTCHours(o+12,0,0,0):!s&&o===12?r.setUTCHours(0,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Oe),Cyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=23}},{key:"set",value:function(r,i,o){return r.setUTCHours(o,0,0,0),r}}]),n}(Oe),kyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=11}},{key:"set",value:function(r,i,o){var s=r.getUTCHours()>=12;return s&&o<12?r.setUTCHours(o+12,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Oe),Pyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&i<=24}},{key:"set",value:function(r,i,o){var s=o<=24?o%24:o;return r.setUTCHours(s,0,0,0),r}}]),n}(Oe),Lyt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCMinutes(o,0,0),r}}]),n}(Oe),Myt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCSeconds(o,0),r}}]),n}(Oe),Ayt=function(t){xe(n,t);var e=we(n);function n(){var r;ve(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=te((y=(_=(T=(x=r==null?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r==null||(w=r.locale)===null||w===void 0||(E=w.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&T!==void 0?T:j.weekStartsOn)!==null&&_!==void 0?_:(O=j.locale)===null||O===void 0||(k=O.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&y!==void 0?y:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(A==="")return P===""?Nt(n):new Date(NaN);var Y={firstWeekContainsDate:N,weekStartsOn:V,locale:B},nt=[new tyt],K=A.match(Byt).map(function(M){var R=M[0];if(R in rO){var z=rO[R];return z(M,B.formatLong)}return M}).join("").match(Fyt),J=[],et=PD(K),ct;try{var G=function(){var M=ct.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Jz(M)&&Q0(M,A,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Qz(M)&&Q0(M,A,t);var R=M[0],z=Iyt[R];if(z){var at=z.incompatibleTokens;if(Array.isArray(at)){var st=J.find(function(bt){return at.includes(bt.token)||bt.token===R});if(st)throw new RangeError("The format string mustn't contain `".concat(st.fullToken,"` and `").concat(M,"` at the same time"))}else if(z.incompatibleTokens==="*"&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));J.push({token:R,fullToken:M});var ht=z.run(P,M,B.match,Y);if(!ht)return{v:new Date(NaN)};nt.push(ht.setter),P=ht.rest}else{if(R.match(Vyt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");if(M==="''"?M="'":R==="'"&&(M=Hyt(M)),P.indexOf(M)===0)P=P.slice(M.length);else return{v:new Date(NaN)}}};for(et.s();!(ct=et.n()).done;){var $=G();if(Vi($)==="object")return $.v}}catch(M){et.e(M)}finally{et.f()}if(P.length>0&&Uyt.test(P))return new Date(NaN);var I=nt.map(function(M){return M.priority}).sort(function(M,R){return R-M}).filter(function(M,R,z){return z.indexOf(M)===R}).map(function(M){return nt.filter(function(R){return R.priority===M}).sort(function(R,z){return z.subPriority-R.subPriority})}).map(function(M){return M[0]}),H=Nt(n);if(isNaN(H.getTime()))return new Date(NaN);var it=Zz(H,yd(H)),W={},Q=PD(I),tt;try{for(Q.s();!(tt=Q.n()).done;){var rt=tt.value;if(!rt.validate(it,Y))return new Date(NaN);var mt=rt.set(it,W,Y);Array.isArray(mt)?(it=mt[0],BP(W,mt[1])):it=mt}}catch(M){Q.e(M)}finally{Q.f()}return it}function Hyt(t){return t.match($yt)[1].replace(zyt,"'")}function Wyt(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Yyt(t,e){Pt(2,arguments);var n=nO(t),r=nO(e);return n.getTime()===r.getTime()}function Zyt(t,e){Pt(2,arguments);var n=Nt(t),r=Nt(e);return n.getFullYear()===r.getFullYear()}function wd(t,e){Pt(2,arguments);var n=Nt(t).getTime(),r=Nt(e.start).getTime(),i=Nt(e.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function UP(t,e){Pt(2,arguments);var n=te(e);return $u(t,-n)}function _a(t,e){var n;Pt(1,arguments);var r=te((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=Xyt(t),o;if(i.date){var s=Qyt(i.date,r);o=Jyt(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var l=o.getTime(),c=0,h;if(i.time&&(c=t_t(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(h=e_t(i.timezone),isNaN(h))return new Date(NaN)}else{var d=new Date(l+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+c+h)}var sy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Gyt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qyt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kyt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xyt(t){var e={},n=t.split(sy.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],sy.timeZoneDelimiter.test(e.date)&&(e.date=t.split(sy.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=sy.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function Qyt(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:t.slice((r[1]||r[2]).length)}}function Jyt(t,e){if(e===null)return new Date(NaN);var n=t.match(Gyt);if(!n)return new Date(NaN);var r=!!n[4],i=ap(n[1]),o=ap(n[2])-1,s=ap(n[3]),l=ap(n[4]),c=ap(n[5])-1;if(r)return s_t(e,l,c)?n_t(e,l,c):new Date(NaN);var h=new Date(0);return!i_t(e,o,s)||!o_t(e,i)?new Date(NaN):(h.setUTCFullYear(e,o,Math.max(i,s)),h)}function ap(t){return t?parseInt(t):1}function t_t(t){var e=t.match(qyt);if(!e)return NaN;var n=_2(e[1]),r=_2(e[2]),i=_2(e[3]);return a_t(n,r,i)?n*k1+r*RP+i*1e3:NaN}function _2(t){return t&&parseFloat(t.replace(",","."))||0}function e_t(t){if(t==="Z")return 0;var e=t.match(Kyt);if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return l_t(r,i)?n*(r*k1+i*RP):NaN}function n_t(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var r_t=[31,null,31,30,31,30,31,31,30,31,30,31];function a7(t){return t%400===0||t%4===0&&t%100!==0}function i_t(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(r_t[e]||(a7(t)?29:28))}function o_t(t,e){return e>=1&&e<=(a7(t)?366:365)}function s_t(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function a_t(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function l_t(t,e){return e>=0&&e<=59}function Zr(t,e){Pt(2,arguments);var n=Nt(t),r=te(e),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var l=Hvt(s);return n.setMonth(r,Math.min(o,l)),n}function c_t(t,e){if(Pt(2,arguments),Vi(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=Nt(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Zr(n,e.month)),e.date!=null&&n.setDate(te(e.date)),e.hours!=null&&n.setHours(te(e.hours)),e.minutes!=null&&n.setMinutes(te(e.minutes)),e.seconds!=null&&n.setSeconds(te(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(te(e.milliseconds)),n)}function sm(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);return n.setHours(r),n}function am(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);return n.setMinutes(r),n}function nh(t,e){Pt(2,arguments);var n=Nt(t),r=te(e),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Zr(n,n.getMonth()+o*3)}function u_t(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);return n.setSeconds(r),n}function Qs(t,e){Pt(2,arguments);var n=Nt(t),r=te(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Sd(t,e){Pt(2,arguments);var n=te(e);return go(t,-n)}function h_t(t,e){Pt(2,arguments);var n=te(e);return Uz(t,-n)}function d_t(t,e){Pt(2,arguments);var n=te(e);return AP(t,-n)}function ug(t,e){Pt(2,arguments);var n=te(e);return _d(t,-n)}const l7="yyyy-MM-dd",VP="yyyy-MM-dd HH:mm",Ll=()=>new Date,HP=t=>typeof t!="string",WP=(t,e)=>!t||!HP(t)?t:e?xd(t,e):Uvt(t),Ml=t=>WP(t,void 0),Zc=t=>WP(t,l7),eb=t=>WP(t,VP),zo=t=>HP(t)?t:_a(t),Qg=(t,e,n)=>{try{return wd(zo(t),{start:zo(e??t),end:zo(n??t)})}catch{return!1}},Sc=(t,e)=>t7(t,e)||io(t,e),Jg="all",c7={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Jg]:void 0},u7=Object.keys(c7),h7=t=>t===void 0||qi(kz(Boolean,t)),nb=t=>typeof t=="string"&&u7.includes(t),f_t=u7.filter(t=>t!==Jg),MD=t=>t?zo(t):null,d7=(t,e)=>({startDate:MD(t),endDate:MD(e)}),p_t=t=>{if(!(!t||h7(t)))return t.startDate&&!t.endDate?`Since ${Zc(t.startDate)}`:!t.startDate&&t.endDate?`Until ${Zc(t.endDate)}`:`${Zc(t.startDate)} - ${Zc(t.endDate)}`},f7=t=>{if(!(!t||t===Jg))return nb(t)?c7[t]:p_t(t)},eo=t=>Fi(UP(Ll(),t)),rh=t=>({startDate:t,endDate:xu(Ll())}),Tc=t=>e=>t===e,p7=PP([[Tc("today"),()=>rh(Fi(Ll()))],[Tc("yesterday"),()=>({startDate:eo(1),endDate:xu(UP(Ll(),1))})],[Tc("last7Days"),()=>rh(eo(7))],[Tc("last30Days"),()=>rh(eo(30))],[Tc("last90Days"),()=>rh(eo(90))],[Tc("last180Days"),()=>rh(eo(180))],[Tc("last365Days"),()=>rh(eo(365))],[yz,()=>({})]]),m_t=t=>{const e=zo(t);return PP([[()=>Sc(Fi(Ll()),e),()=>"today"],[()=>Sc(eo(1),e),()=>"yesterday"],[()=>Sc(eo(7),e),()=>"last7Days"],[()=>Sc(eo(30),e),()=>"last30Days"],[()=>Sc(eo(90),e),()=>"last90Days"],[()=>Sc(eo(180),e),()=>"last180Days"],[()=>Sc(eo(365),e),()=>"last365Days"],[yz,()=>Jg]])()},g_t=t=>nb(t)?p7(t):t,di=(t,e)=>sz(t,e,{serializeError:nmt}),tv=lr("shlink/visitCreation/createNewVisits",t=>({payload:{createdVisits:t}})),AD=5e3,RD=4,jD=2,v_t=({currentPage:t,pagesCount:e})=>t>=e,y_t=(t,e)=>e*100/t,ev=({typePrefix:t,createLoaders:e,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=lr(`${t}/progressChanged`),o=lr(`${t}/large`),s=lr(`${t}/fallbackToInterval`),l=di(t,async(c,{getState:h,dispatch:d})=>{var p;const[m,v]=e(c),y=async E=>Promise.all(E.map(async O=>m(O,AD).then(Se("data")))).then(Lmt),_=async(E,O=0)=>{if(r(h))return[];const k=await y(E[O]);return d(i(y_t(E.length,O+jD))),O{const{pagination:O,data:k}=await m(E,AD);if(!O||v_t(O))return k;const P=LP(jD,O.pagesCount+1),A=sg(RD,P);return O.pagesCount-1>RD&&d(o()),k.concat(await _(A))},[x,w]=await Promise.all([T(),v((p=c.query)==null?void 0:p.excludeBots)]);return!x.length&&w&&d(s(m_t(w.date))),{...n(c),visits:x}});return Object.assign(l,{progressChanged:i,large:o,fallbackToInterval:s})},nv=(t,e)=>async n=>t?e({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),rv=({name:t,asyncThunkCreator:e,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:l,progressChanged:c,fallbackToInterval:h}=e,{reducer:d,actions:p}=Br({name:t,initialState:n,reducers:{cancelGetVisits:v=>({...v,cancelLoad:!0})},extraReducers:v=>{v.addCase(i,()=>({...n,loading:!0})),v.addCase(o,(y,{error:_})=>({...n,error:!0,errorData:La(_)})),v.addCase(s,(y,{payload:_})=>({...y,..._,loading:!1,loadingLarge:!1,error:!1})),v.addCase(l,y=>({...y,loadingLarge:!0})),v.addCase(c,(y,{payload:_})=>({...y,progress:_})),v.addCase(h,(y,{payload:_})=>({...y,fallbackInterval:_})),v.addCase(tv,(y,{payload:_})=>{const{visits:T}=y,x=r(y,_.createdVisits).map(({visit:w})=>w);return x.length?{...y,visits:[...x,...T]}:y})}}),{cancelGetVisits:m}=p;return{reducer:d,cancelGetVisits:m}},m7="shlink/domainVisits",g7="DEFAULT",__t={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},b_t=t=>ev({typePrefix:`${m7}/getDomainVisits`,createLoaders:({domain:e,query:n={},doIntervalFallback:r=!1})=>{const{getDomainVisits:i}=t(),o=async(l,c)=>i(e,{...n,page:l,itemsPerPage:c}),s=nv(r,async l=>i(e,l));return[o,s]},getExtraFulfilledPayload:({domain:e,query:n={}})=>({domain:e,query:n}),shouldCancel:e=>e().domainVisits.cancelLoad}),x_t=t=>rv({name:m7,initialState:__t,asyncThunkCreator:t,filterCreatedVisits:({domain:e,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:l})=>s&&pgt(s,e)&&Qg(l.date,i,o))}}),f_=({className:t="",placement:e,children:n})=>{const r=Bl();return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:t,ref:r,children:b.jsx(zt,{icon:Tk})}),b.jsx(fi,{target:r,placement:e,children:n})]})},P1=t=>cr(e=>e.preventDefault(),t),YP=(t,e,n=1)=>LP(n,t+1).map(e),ss=t=>!Fu(t)&&!qi(t),b2=t=>qi(t)?null:t,v7=t=>t?"true":"false",x2=t=>t===void 0?void 0:v7(t),w2=({isLast:t,...e})=>b.jsx(a_,{...e,required:!1,type:"url",placeholder:"No redirect",className:t?"mb-0":""}),w_t=({isOpen:t,toggle:e,domain:n,editDomainRedirects:r})=>{var i,o,s;const[l,c]=U.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[h,d]=U.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[p,m]=U.useState(((s=n.redirects)==null?void 0:s.invalidShortUrlRedirect)??""),v=P1(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:b2(l),regular404Redirect:b2(h),invalidShortUrlRedirect:b2(p)}}).then(e));return b.jsx(Ca,{isOpen:t,toggle:e,centered:!0,children:b.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[b.jsxs(ka,{toggle:e,children:["Edit redirects for ",b.jsx("b",{children:n.domain})]}),b.jsxs(Ss,{children:[b.jsxs(w2,{value:l,onChange:c,children:[b.jsxs(f_,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",b.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),b.jsxs(w2,{value:h,onChange:d,children:[b.jsxs(f_,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",b.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),b.jsxs(w2,{value:p,isLast:!0,onChange:m,children:[b.jsx(f_,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),b.jsxs(Nu,{children:[b.jsx(ke,{color:"link",type:"button",onClick:e,children:"Cancel"}),b.jsx(ke,{color:"primary",children:"Save"})]})]})})},S_t=({domain:t,editDomainRedirects:e})=>{const[n,r]=zn(),i=Xg("domainVisits"),o=Bu();return b.jsxs(b1,{children:[i&&b.jsxs(Zt,{tag:nn,to:`${o}/domain/${t.domain}${t.isDefault?`_${g7}`:""}/visits`,children:[b.jsx(zt,{icon:Sk,fixedWidth:!0})," Visit stats"]}),b.jsxs(Zt,{onClick:r,children:[b.jsx(zt,{fixedWidth:!0,icon:wk})," Edit redirects"]}),b.jsx(w_t,{domain:t,isOpen:n,toggle:r,editDomainRedirects:e})]})},la=({href:t,children:e,rel:n,...r})=>b.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:t,...r,children:e??t}),T_t=({status:t,matchMedia:e=window.matchMedia})=>{const n=Bl(),r=()=>e("(max-width: 991px)").matches,[i,o]=U.useState(r());return U.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),t==="validating"?b.jsx(zt,{fixedWidth:!0,icon:W8,spin:!0}):b.jsxs(b.Fragment,{children:[b.jsx("span",{ref:n,children:t==="valid"?b.jsx(zt,{fixedWidth:!0,icon:Hm,className:"text-muted"}):b.jsx(zt,{fixedWidth:!0,icon:hT,className:"text-danger"})}),b.jsx(fi,{target:n,placement:i?"top-start":"left",autohide:t==="valid",children:t==="valid"?"Congratulations! This domain is properly configured.":b.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",b.jsx("br",{}),"Check the ",b.jsx(la,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},S2=({fallback:t})=>b.jsxs("span",{className:"text-muted",children:[!t&&b.jsx("small",{children:"No redirect"}),t&&b.jsxs(b.Fragment,{children:[t," ",b.jsx("small",{children:"(as fallback)"})]})]}),E_t=()=>b.jsxs(b.Fragment,{children:[b.jsx(zt,{fixedWidth:!0,icon:ret,className:"text-primary",id:"defaultDomainIcon"}),b.jsx(fi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),O_t=({domain:t,editDomainRedirects:e,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:s,status:l}=t;return U.useEffect(()=>{n(t.domain)},[]),b.jsxs("tr",{className:"responsive-table__row",children:[b.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&b.jsx(E_t,{})}),b.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),b.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(s==null?void 0:s.baseUrlRedirect)??b.jsx(S2,{fallback:r==null?void 0:r.baseUrlRedirect})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(s==null?void 0:s.regular404Redirect)??b.jsx(S2,{fallback:r==null?void 0:r.regular404Redirect})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(s==null?void 0:s.invalidShortUrlRedirect)??b.jsx(S2,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),b.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:b.jsx(T_t,{status:l})}),b.jsx("td",{className:"responsive-table__cell text-end",children:b.jsx(S_t,{domain:t,editDomainRedirects:e})})]})},ND=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],C_t=({listDomains:t,domainsList:e,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:s,defaultRedirects:l,loading:c,error:h,errorData:d}=e,p=l??((o=s.find(({isDefault:m})=>m))==null?void 0:o.redirects);return U.useEffect(()=>{t()},[]),c?b.jsx(aa,{loading:!0}):b.jsxs(b.Fragment,{children:[b.jsx(Wg,{className:"mb-3",onChange:n}),(()=>h?b.jsx(Ii,{type:"error",children:b.jsx(ya,{errorData:d,fallbackMessage:"Error loading domains :("})}):b.jsx(Bn,{children:b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsx("thead",{className:"responsive-table__header",children:b.jsx("tr",{children:ND.map((m,v)=>b.jsx("th",{children:m},v))})}),b.jsxs("tbody",{children:[s.length<1&&b.jsx("tr",{children:b.jsx("td",{colSpan:ND.length,className:"text-center",children:"No results found"})}),s.map(m=>b.jsx(O_t,{domain:m,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:p},m.domain))]})]})}))()]})},k_t="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",P_t=t=>di(k_t,async({domain:e,redirects:n})=>{const r=await t().editDomainRedirects({domain:e,...n});return{domain:e,redirects:r}}),ay="shlink/domainsList",ly={domains:[],filteredDomains:[],loading:!1,error:!1},DD=({domain:t,redirects:e})=>n=>n.domain!==t?n:{...n,redirects:e},ID=(t,e)=>n=>n.domain!==t?n:{...n,status:e},L_t=(t,e)=>{const n=di(`${ay}/listDomains`,async()=>{const{data:s,defaultRedirects:l}=await t().listDomains();return{domains:s.map(c=>({...c,status:"validating"})),defaultRedirects:l}}),r=di(`${ay}/checkDomainHealth`,async s=>{try{const{status:l}=await t().health(s);return{domain:s,status:l==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=lr(`${ay}/filterDomains`),{reducer:o}=Br({name:ay,initialState:ly,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...ly,loading:!0})),s.addCase(n.rejected,(l,{error:c})=>({...ly,error:!0,errorData:La(c)})),s.addCase(n.fulfilled,(l,{payload:c})=>({...ly,...c,filteredDomains:c.domains})),s.addCase(r.fulfilled,({domains:l,filteredDomains:c,...h},{payload:d})=>({...h,domains:l.map(ID(d.domain,d.status)),filteredDomains:c.map(ID(d.domain,d.status))})),s.addCase(i,(l,{payload:c})=>({...l,filteredDomains:l.domains.filter(({domain:h})=>h.toLowerCase().match(c.toLowerCase()))})),s.addCase(e.fulfilled,(l,{payload:c})=>({...l,domains:l.domains.map(DD(c)),filteredDomains:l.filteredDomains.map(DD(c))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},M_t=(t,e)=>{t.serviceFactory("DomainSelector",()=>egt),t.decorator("DomainSelector",e(["domainsList"],["listDomains"])),t.serviceFactory("ManageDomains",()=>C_t),t.decorator("ManageDomains",e(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),t.serviceFactory("domainsListReducerCreator",L_t,"apiClientFactory","editDomainRedirects"),t.serviceFactory("domainsListReducer",Se("reducer"),"domainsListReducerCreator"),t.serviceFactory("listDomains",Se("listDomains"),"domainsListReducerCreator"),t.serviceFactory("filterDomains",Se("filterDomains"),"domainsListReducerCreator"),t.serviceFactory("editDomainRedirects",P_t,"apiClientFactory"),t.serviceFactory("checkDomainHealth",Se("checkDomainHealth"),"domainsListReducerCreator")},FD="shlink/mercure",A_t={loading:!0,error:!1},R_t=t=>{const e=di(`${FD}/loadMercureInfo`,({realTimeUpdates:r})=>{if(r&&!r.enabled)throw new Error("Real time updates not enabled");return t().mercureInfo()}),{reducer:n}=Br({name:FD,initialState:A_t,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:e,reducer:n}},j_t=t=>{t.serviceFactory("mercureInfoReducerCreator",R_t,"apiClientFactory"),t.serviceFactory("mercureInfoReducer",Se("reducer"),"mercureInfoReducerCreator"),t.serviceFactory("loadMercureInfo",Se("loadMercureInfo"),"mercureInfoReducerCreator")};var kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oO={exports:{}};/** @license + * eventsource.js + * Available under MIT License (MIT) + * https://github.com/Yaffle/EventSource/ + */(function(t,e){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,l=n.ActiveXObject,c=n.EventSource,h=n.document,d=n.Promise,p=n.fetch,m=n.Response,v=n.TextDecoder,y=n.TextEncoder,_=n.AbortController;if(typeof window<"u"&&typeof h<"u"&&!("readyState"in h)&&h.body==null&&(h.readyState="loading",window.addEventListener("load",function(ft){h.readyState="complete"},!1)),o==null&&l!=null&&(o=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ft){function vt(){}return vt.prototype=ft,new vt}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var T=p;p=function(ft,vt){var _t=vt.signal;return T(ft,{headers:vt.headers,credentials:vt.credentials,cache:vt.cache}).then(function(Ct){var Mt=Ct.body.getReader();return _t._reader=Mt,_t._aborted&&_t._reader.cancel(),{status:Ct.status,statusText:Ct.statusText,headers:Ct.headers,body:{getReader:function(){return Mt}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function x(){this.bitsNeeded=0,this.codePoint=0}x.prototype.decode=function(ft){function vt(xt,yt,Et){if(Et===1)return xt>=128>>yt&&xt<=2048>>yt&&xt<=57344>>yt&&xt<=65536>>yt&&xt<>6>15?3:yt>31?2:1;if(xt===6*2)return yt>15?3:2;if(xt===6*3)return 3;throw new Error}for(var Ct=65533,Mt="",Lt=this.bitsNeeded,jt=this.codePoint,dt=0;dt191||!vt(jt<<6|pt&63,Lt-6,_t(Lt,jt)))&&(Lt=0,jt=Ct,Mt+=String.fromCharCode(jt)),Lt===0?(pt>=0&&pt<=127?(Lt=0,jt=pt):pt>=192&&pt<=223?(Lt=6*1,jt=pt&31):pt>=224&&pt<=239?(Lt=6*2,jt=pt&15):pt>=240&&pt<=247?(Lt=6*3,jt=pt&7):(Lt=0,jt=Ct),Lt!==0&&!vt(jt,Lt,_t(Lt,jt))&&(Lt=0,jt=Ct)):(Lt-=6,jt=jt<<6|pt&63),Lt===0&&(jt<=65535?Mt+=String.fromCharCode(jt):(Mt+=String.fromCharCode(55296+(jt-65535-1>>10)),Mt+=String.fromCharCode(56320+(jt-65535-1&1023))))}return this.bitsNeeded=Lt,this.codePoint=jt,Mt};var w=function(){try{return new v().decode(new y().encode("test"),{stream:!0})==="test"}catch(ft){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ft)}return!1};(v==null||y==null||!w())&&(v=x);var E=function(){};function O(ft){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=ft,this._sendTimeout=0,this._abort=E}O.prototype.open=function(ft,vt){this._abort(!0);var _t=this,Ct=this._xhr,Mt=1,Lt=0;this._abort=function(Et){_t._sendTimeout!==0&&(i(_t._sendTimeout),_t._sendTimeout=0),(Mt===1||Mt===2||Mt===3)&&(Mt=4,Ct.onload=E,Ct.onerror=E,Ct.onabort=E,Ct.onprogress=E,Ct.onreadystatechange=E,Ct.abort(),Lt!==0&&(i(Lt),Lt=0),Et||(_t.readyState=4,_t.onabort(null),_t.onreadystatechange())),Mt=0};var jt=function(){if(Mt===1){var Et=0,At="",Bt=void 0;if("contentType"in Ct)Et=200,At="OK",Bt=Ct.contentType;else try{Et=Ct.status,At=Ct.statusText,Bt=Ct.getResponseHeader("Content-Type")}catch{Et=0,At="",Bt=void 0}Et!==0&&(Mt=2,_t.readyState=2,_t.status=Et,_t.statusText=At,_t._contentType=Bt,_t.onreadystatechange())}},dt=function(){if(jt(),Mt===2||Mt===3){Mt=3;var Et="";try{Et=Ct.responseText}catch{}_t.readyState=3,_t.responseText=Et,_t.onprogress()}},pt=function(Et,At){if((At==null||At.preventDefault==null)&&(At={preventDefault:E}),dt(),Mt===1||Mt===2||Mt===3){if(Mt=4,Lt!==0&&(i(Lt),Lt=0),_t.readyState=4,Et==="load")_t.onload(At);else if(Et==="error")_t.onerror(At);else if(Et==="abort")_t.onabort(At);else throw new TypeError;_t.onreadystatechange()}},xt=function(Et){Ct!=null&&(Ct.readyState===4?(!("onload"in Ct)||!("onerror"in Ct)||!("onabort"in Ct))&&pt(Ct.responseText===""?"error":"load",Et):Ct.readyState===3?"onprogress"in Ct||dt():Ct.readyState===2&&jt())},yt=function(){Lt=r(function(){yt()},500),Ct.readyState===3&&dt()};"onload"in Ct&&(Ct.onload=function(Et){pt("load",Et)}),"onerror"in Ct&&(Ct.onerror=function(Et){pt("error",Et)}),"onabort"in Ct&&(Ct.onabort=function(Et){pt("abort",Et)}),"onprogress"in Ct&&(Ct.onprogress=dt),"onreadystatechange"in Ct&&(Ct.onreadystatechange=function(Et){xt(Et)}),("contentType"in Ct||!("ontimeout"in o.prototype))&&(vt+=(vt.indexOf("?")===-1?"?":"&")+"padding=true"),Ct.open(ft,vt,!0),"readyState"in Ct&&(Lt=r(function(){yt()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(ft){return this._contentType},O.prototype.setRequestHeader=function(ft,vt){var _t=this._xhr;"setRequestHeader"in _t&&_t.setRequestHeader(ft,vt)},O.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&h!=null&&h.readyState!=null&&h.readyState!=="complete"){var ft=this;ft._sendTimeout=r(function(){ft._sendTimeout=0,ft.send()},4);return}var vt=this._xhr;"withCredentials"in vt&&(vt.withCredentials=this.withCredentials);try{vt.send(void 0)}catch(_t){throw _t}};function k(ft){return ft.replace(/[A-Z]/g,function(vt){return String.fromCharCode(vt.charCodeAt(0)+32)})}function P(ft){for(var vt=Object.create(null),_t=ft.split(`\r +`),Ct=0;Ct<_t.length;Ct+=1){var Mt=_t[Ct],Lt=Mt.split(": "),jt=Lt.shift(),dt=Lt.join(": ");vt[k(jt)]=dt}this._map=vt}P.prototype.get=function(ft){return this._map[k(ft)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function A(){}A.prototype.open=function(ft,vt,_t,Ct,Mt,Lt,jt){ft.open("GET",Mt);var dt=0;ft.onprogress=function(){var xt=ft.responseText,yt=xt.slice(dt);dt+=yt.length,_t(yt)},ft.onerror=function(xt){xt.preventDefault(),Ct(new Error("NetworkError"))},ft.onload=function(){Ct(null)},ft.onabort=function(){Ct(null)},ft.onreadystatechange=function(){if(ft.readyState===o.HEADERS_RECEIVED){var xt=ft.status,yt=ft.statusText,Et=ft.getResponseHeader("Content-Type"),At=ft.getAllResponseHeaders();vt(xt,yt,Et,new P(At))}},ft.withCredentials=Lt;for(var pt in jt)Object.prototype.hasOwnProperty.call(jt,pt)&&ft.setRequestHeader(pt,jt[pt]);return ft.send(),ft};function j(ft){this._headers=ft}j.prototype.get=function(ft){return this._headers.get(ft)};function B(){}B.prototype.open=function(ft,vt,_t,Ct,Mt,Lt,jt){var dt=null,pt=new _,xt=pt.signal,yt=new v;return p(Mt,{headers:jt,credentials:Lt?"include":"same-origin",signal:xt,cache:"no-store"}).then(function(Et){return dt=Et.body.getReader(),vt(Et.status,Et.statusText,Et.headers.get("Content-Type"),new j(Et.headers)),new d(function(At,Bt){var ie=function(){dt.read().then(function(ae){if(ae.done)At(void 0);else{var ee=yt.decode(ae.value,{stream:!0});_t(ee),ie()}}).catch(function(ae){Bt(ae)})};ie()})}).catch(function(Et){if(Et.name!=="AbortError")return Et}).then(function(Et){Ct(Et)}),{abort:function(){dt!=null&&dt.cancel(),pt.abort()}}};function N(){this._listeners=Object.create(null)}function V(ft){r(function(){throw ft},0)}N.prototype.dispatchEvent=function(ft){ft.target=this;var vt=this._listeners[ft.type];if(vt!=null)for(var _t=vt.length,Ct=0;Ct<_t;Ct+=1){var Mt=vt[Ct];try{typeof Mt.handleEvent=="function"?Mt.handleEvent(ft):Mt.call(this,ft)}catch(Lt){V(Lt)}}},N.prototype.addEventListener=function(ft,vt){ft=String(ft);var _t=this._listeners,Ct=_t[ft];Ct==null&&(Ct=[],_t[ft]=Ct);for(var Mt=!1,Lt=0;Lt"u"?typeof window<"u"?window:typeof self<"u"?self:kh:globalThis)})(oO,oO.exports);var N_t=oO.exports;const D_t=(t,e,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:l}=t;if(s||l||!i)return;const c=({data:p})=>n(JSON.parse(p)),h=({status:p})=>p===401&&r(),d=e.map(p=>{const m=new URL(i);m.searchParams.append("topic",p);const v=new N_t.EventSourcePolyfill(m,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=c,v.onerror=h,v});return()=>d.forEach(p=>p.close())};function zl(t,e){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:l}=s,c=ju();return U.useEffect(()=>{const h=v=>l?n.add(v):i([v]),d=e(r,c),p=D_t(s,d,h,o);if(!l)return p;const m=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return cr(()=>clearInterval(m),()=>p==null?void 0:p())},[s]),b.jsx(t,{...r})}}class co{}Qt(co,"visits","https://shlink.io/new-visit"),Qt(co,"orphanVisits","https://shlink.io/new-orphan-visit"),Qt(co,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const ZP="shlink/shortUrlDeletion",BD={shortCode:"",loading:!1,deleted:!1,error:!1},I_t=t=>di(`${ZP}/deleteShortUrl`,async({shortCode:e,domain:n})=>(await t().deleteShortUrl(e,n),{shortCode:e,domain:n})),y7=lr(`${ZP}/shortUrlDeleted`),F_t=t=>{const{actions:e,reducer:n}=Br({name:ZP,initialState:BD,reducers:{resetDeleteShortUrl:()=>BD},extraReducers:i=>{i.addCase(t.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(t.rejected,(o,{error:s})=>({...o,errorData:La(s),loading:!1,error:!0,deleted:!1})),i.addCase(t.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=e;return{reducer:n,resetDeleteShortUrl:r}},_7="shlink/shortUrlsList",b7=5,B_t={loading:!0,error:!1},$_t=t=>di(`${_7}/listShortUrls`,e=>t().listShortUrls(e??{})),z_t=(t,e,n)=>Br({name:_7,initialState:B_t,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,()=>({loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,cr((i,{payload:o})=>i.shortUrls?th(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,b7-1)],i):i,i=>i.shortUrls?th(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(e.fulfilled,(i,{payload:o})=>i.shortUrls?th(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:l,domain:c}=o;return om(s,l,c)?o:s}),i):i),r.addCase(y7,cr((i,{payload:o})=>i.shortUrls?th(["shortUrls","data"],kP(s=>om(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?th(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(tv,(i,{payload:o})=>{var s,l;return th(["shortUrls","data"],(l=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:l.map(c=>{var h;return((h=Omt(o.createdVisits.filter(({shortUrl:d})=>d&&om(c,d.shortCode,d.domain))))==null?void 0:h.shortUrl)??c}),i)})}}),$D=10,{ceil:U_t}=Math,V_t=new Intl.NumberFormat("en-US"),Qn=t=>V_t.format(Number(t)),H_t=t=>U_t(t/$D)*$D,W_t={field:"dateCreated",dir:"DESC"},x7={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:W_t}},w7=U.createContext(x7),Y_t=w7.Provider,GP=()=>U.useContext(w7)??x7,zu=t=>GP()[t],Z_t=t=>({tag:nn,to:t}),sO=({children:t,title:e,link:n,tooltip:r})=>{const i=Bl();return b.jsxs(b.Fragment,{children:[b.jsxs(zi,{innerRef:i,className:"highlight-card",body:!0,...Z_t(n),children:[b.jsx(zt,{size:"3x",className:"highlight-card__link-icon",icon:Uft}),b.jsx(u$,{tag:"h5",className:"highlight-card__title",children:e}),b.jsx(c$,{tag:"h2",children:t})]}),r&&b.jsx(fi,{target:i,placement:"bottom",children:r})]})},zD=({loading:t,excludeBots:e,visitsSummary:n,...r})=>b.jsx(sO,{tooltip:n.bots!==void 0?b.jsxs(b.Fragment,{children:[e?"Plus":"Including"," ",b.jsx("strong",{children:Qn(n.bots)})," potential bot visits"]}):void 0,...r,children:t?"Loading...":Qn(e&&n.nonBots?n.nonBots:n.total)}),G_t=(t,e)=>zl(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,loadVisitsOverview:s,visitsOverview:l})=>{const{loading:c,shortUrls:h}=n,{loading:d}=o,{loading:p,nonOrphanVisits:m,orphanVisits:v}=l,y=Bu(),_=ws(),T=zu("visits");return U.useEffect(()=>{r({itemsPerPage:b7,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),s()},[]),b.jsxs(b.Fragment,{children:[b.jsxs(qr,{children:[b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(zD,{title:"Visits",link:`${y}/non-orphan-visits`,excludeBots:(T==null?void 0:T.excludeBots)??!1,loading:p,visitsSummary:m})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(zD,{title:"Orphan visits",link:`${y}/orphan-visits`,excludeBots:(T==null?void 0:T.excludeBots)??!1,loading:p,visitsSummary:v})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(sO,{title:"Short URLs",link:`${y}/list-short-urls/1`,children:c?"Loading...":Qn((h==null?void 0:h.pagination.totalItems)??0)})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(sO,{title:"Tags",link:`${y}/manage-tags`,children:d?"Loading...":Qn(o.tags.length)})})]}),b.jsxs(zi,{className:"mb-3",children:[b.jsxs(hd,{children:[b.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),b.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),b.jsx(nn,{className:"float-end",to:`${y}/create-short-url`,children:"Advanced options »"})]}),b.jsx(ud,{children:b.jsx(e,{basicMode:!0})})]}),b.jsxs(zi,{children:[b.jsxs(hd,{children:[b.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),b.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),b.jsx(nn,{className:"float-end",to:`${y}/list-short-urls/1`,children:"See all »"})]}),b.jsx(ud,{children:b.jsx(t,{shortUrlsList:n,className:"mb-0",onTagClick:x=>_(`${y}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[co.visits,co.orphanVisits]);function q_t(t,e){t.serviceFactory("Overview",G_t,"ShortUrlsTable","CreateShortUrl"),t.decorator("Overview",e(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const K_t=t=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(t==null?void 0:t.validateUrls)??!1,forwardQuery:(t==null?void 0:t.forwardQuery)??!0}),X_t=(t,e)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,basicMode:o=!1})=>{const s=zu("shortUrlCreation"),l=U.useMemo(()=>K_t(s),[s]);return b.jsxs(b.Fragment,{children:[b.jsx(t,{initialState:l,saving:r.saving,mode:o?"create-basic":"create",onSave:async c=>(i(),n(c))}),b.jsx(e,{creation:r,resetCreateShortUrl:i,canBeClosed:o})]})},Q_t="Left",J_t="Right",t0t="Up",e0t="Down",Ph={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},aO={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},UD="mousemove",VD="mouseup",n0t="touchend",r0t="touchmove",i0t="touchstart";function o0t(t,e,n,r){return t>e?n>0?J_t:Q_t:r>0?e0t:t0t}function HD(t,e){if(e===0)return t;const n=Math.PI/180*e,r=t[0]*Math.cos(n)+t[1]*Math.sin(n),i=t[1]*Math.cos(n)-t[0]*Math.sin(n);return[r,i]}function s0t(t,e){const n=h=>{const d="touches"in h;d&&h.touches.length>1||t((p,m)=>{m.trackMouse&&!d&&(document.addEventListener(UD,r),document.addEventListener(VD,s));const{clientX:v,clientY:y}=d?h.touches[0]:h,_=HD([v,y],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},p),aO),{initial:_.slice(),xy:_,start:h.timeStamp||0})})},r=h=>{t((d,p)=>{const m="touches"in h;if(m&&h.touches.length>1)return d;if(h.timeStamp-d.start>p.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:v,clientY:y}=m?h.touches[0]:h,[_,T]=HD([v,y],p.rotationAngle),x=_-d.xy[0],w=T-d.xy[1],E=Math.abs(x),O=Math.abs(w),k=(h.timeStamp||0)-d.start,P=Math.sqrt(E*E+O*O)/(k||1),A=[x/(k||1),w/(k||1)],j=o0t(E,O,x,w),B=typeof p.delta=="number"?p.delta:p.delta[j.toLowerCase()]||Ph.delta;if(E{t((d,p)=>{let m;if(d.swiping&&d.eventData){if(h.timeStamp-d.start{document.removeEventListener(UD,r),document.removeEventListener(VD,s)},s=h=>{o(),i(h)},l=(h,d)=>{let p=()=>{};if(h&&h.addEventListener){const m=Object.assign(Object.assign({},Ph.touchEventOptions),d.touchEventOptions),v=[[i0t,n,m],[r0t,r,Object.assign(Object.assign({},m),d.preventScrollOnSwipe?{passive:!1}:{})],[n0t,i,m]];v.forEach(([y,_,T])=>h.addEventListener(y,_,T)),p=()=>v.forEach(([y,_])=>h.removeEventListener(y,_))}return p},c={ref:h=>{h!==null&&t((d,p)=>{if(d.el===h)return d;const m={};return d.el&&d.el!==h&&d.cleanUpTouch&&(d.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&h&&(m.cleanUpTouch=l(h,p)),Object.assign(Object.assign(Object.assign({},d),{el:h}),m)})}};return e.trackMouse&&(c.onMouseDown=n),[c,l]}function a0t(t,e,n,r){return!e.trackTouch||!t.el?(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0})):t.cleanUpTouch?e.preventScrollOnSwipe!==n.preventScrollOnSwipe||e.touchEventOptions.passive!==n.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:r(t.el,e)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:r(t.el,e)})}function l0t(t){const{trackMouse:e}=t,n=U.useRef(Object.assign({},aO)),r=U.useRef(Object.assign({},Ph)),i=U.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Ph),t);let o;for(o in Ph)r.current[o]===void 0&&(r.current[o]=Ph[o]);const[s,l]=U.useMemo(()=>s0t(c=>n.current=c(n.current,r.current),{trackMouse:e}),[e]);return n.current=a0t(n.current,r.current,i.current,l),s}const c0t=2e3,u0t=(t,e)=>(n=!1,r=c0t)=>{const[i,o]=U.useState(n),s=U.useRef(void 0);return[i,()=>{o(!n),s.current&&e(s.current),s.current=t(()=>o(n),r)}]},h0t=(t,e)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return l0t({delta:40,onSwipedLeft:n(e),onSwipedRight:n(t)})},d0t=(t,e)=>{const[n,r]=U.useState(e);return[n,i=>{const{location:o,history:s}=window,l=Du(o.search);l[t]=i,s.pushState(null,"",`${o.pathname}?${Gg(l)}`),r(i)}]},f0t=(t,e)=>{const n=U.useRef(!0);U.useEffect(()=>{!n.current&&t(),n.current=!1},e)},$d=()=>{const t=ws();return()=>t(-1)},p0t=t=>({shortUrlDetail:e,getShortUrlDetail:n,shortUrlEdition:r,editShortUrl:i})=>{const{search:o}=Un(),s=ju(),l=$d(),{loading:c,error:h,errorData:d,shortUrl:p}=e,{saving:m,saved:v,error:y,errorData:_}=r,{domain:T}=Du(o),x=zu("shortUrlCreation"),w=U.useMemo(()=>mgt(p,x),[p,x]);return U.useEffect(()=>{s.shortCode&&n({shortCode:h_(s.shortCode),domain:T})},[]),c?b.jsx(aa,{loading:!0}):h?b.jsx(Ii,{type:"error",children:b.jsx(ya,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"mb-3",children:b.jsx(zi,{body:!0,children:b.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[b.jsx(ke,{color:"link",size:"lg",className:"p-0 me-3",onClick:l,children:b.jsx(zt,{icon:q8})}),b.jsx("span",{className:"text-center",children:b.jsxs("small",{children:["Edit ",b.jsx(la,{href:(p==null?void 0:p.shortUrl)??""})]})}),b.jsx("span",{})]})})}),b.jsx(t,{initialState:w,saving:m,mode:"edit",onSave:async E=>{p&&i({...p,data:E})}}),v&&y&&b.jsx(Ii,{type:"error",className:"mt-3",children:b.jsx(ya,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!y&&b.jsx(Ii,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var L1={},m0t=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=WD[e.format]||WD.default;window.clipboardData.setData(p,t)}else d.clipboardData.clearData(),d.clipboardData.setData(e.format,t);e.onCopy&&(d.preventDefault(),e.onCopy(d.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=y0t("message"in e?e.message:v0t),window.prompt(r,t)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}var b0t=_0t;function lO(t){"@babel/helpers - typeof";return lO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lO(t)}Object.defineProperty(L1,"__esModule",{value:!0});L1.CopyToClipboard=void 0;var cy=S7(q),x0t=S7(b0t),w0t=["text","onCopy","options","children"];function S7(t){return t&&t.__esModule?t:{default:t}}function YD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ZD(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function T0t(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function E0t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GD(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rb(t){return rb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rb(t)}function qP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E7=function(t){C0t(n,t);var e=k0t(n);function n(){var r;E0t(this,n);for(var i=arguments.length,o=new Array(i),s=0;s({creation:e,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=t(),{error:s,saved:l}=e;if(U.useEffect(()=>{n()},[]),s)return b.jsxs(Ii,{type:"error",className:"mt-3",children:[r&&b.jsx(zt,{"data-testid":"error-close-button",icon:hT,className:"float-end pointer",onClick:n}),b.jsx(ya,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!l)return null;const{shortUrl:c}=e.result;return b.jsxs(Ii,{type:"success",className:"mt-3",children:[r&&b.jsx(zt,{"data-testid":"success-close-button",icon:hT,className:"float-end pointer",onClick:n}),b.jsxs("span",{children:[b.jsx("b",{children:"Great!"})," The short URL is ",b.jsx("b",{children:c})]}),b.jsx(O7,{text:c,onCopy:o,children:b.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[b.jsx(zt,{icon:az})," Copy"]})}),b.jsx(Vg,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},T2="delete",j0t=({shortUrl:t,toggle:e,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[l,c]=U.useState("");U.useEffect(()=>i,[]);const{loading:h,error:d,deleted:p,errorData:m}=r,v=cr(i,e),y=P1(()=>o(t).then(e));return b.jsx(Ca,{isOpen:n,toggle:v,centered:!0,onClosed:()=>p&&s(t),children:b.jsxs("form",{onSubmit:y,children:[b.jsx(ka,{toggle:v,children:b.jsx("span",{className:"text-danger",children:"Delete short URL"})}),b.jsxs(Ss,{children:[b.jsxs("p",{children:[b.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),b.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),b.jsxs("p",{children:["Write ",b.jsx("b",{children:T2})," to confirm deletion."]}),b.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${T2}`,value:l,onChange:_=>c(_.target.value)}),d&&b.jsx(Ii,{type:rgt(m)?"warning":"error",small:!0,className:"mt-2",children:b.jsx(ya,{errorData:m,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),b.jsxs(Nu,{children:[b.jsx("button",{type:"button",className:"btn btn-link",onClick:v,children:"Cancel"}),b.jsx("button",{type:"submit",className:"btn btn-danger",disabled:l!==T2||h,children:h?"Deleting...":"Delete"})]})]})})},C7=({amount:t=0,loading:e=!1,...n})=>b.jsxs(ke,{...n,outline:!0,color:"primary",disabled:e,children:[b.jsx(zt,{icon:Qtt})," ",e?"Exporting...":b.jsxs(b.Fragment,{children:["Export (",Qn(t),")"]})]}),M1=()=>{const t=ws(),{search:e}=Un(),n=Bu(),r=U.useMemo(cr(()=>Du(e),({orderBy:o,tags:s,excludeBots:l,excludeMaxVisitsReached:c,excludePastValidUntil:h,...d})=>{const p=o?Rut(o):void 0,m=(s==null?void 0:s.split(","))??[];return{...d,orderBy:p,tags:m,excludeBots:l!==void 0?l==="true":void 0,excludeMaxVisitsReached:c!==void 0?c==="true":void 0,excludePastValidUntil:h!==void 0?h==="true":void 0}}),[e]),i=U.useCallback(o=>{const s={...r,...o},{orderBy:l,tags:c,excludeBots:h,excludeMaxVisitsReached:d,excludePastValidUntil:p,...m}=s,v={...m,orderBy:l&&P$(l),tags:c.length>0?c.join(","):void 0,excludeBots:x2(h),excludeMaxVisitsReached:x2(d),excludePastValidUntil:x2(p)},y=Gg(v),_=qi(y)?"":`?${y}`;t(`${n}/list-short-urls/1${_}`)},[r,t,n]);return[r,i]},qD=20,N0t=(t,{exportShortUrls:e})=>({amount:n=0})=>{const[{tags:r,search:i,startDate:o,endDate:s,orderBy:l,tagsMode:c}]=M1(),[h,,d,p]=zn(),m=U.useCallback(async()=>{const v=n/qD,y=async(T=1)=>{const{data:x}=await t().listShortUrls({page:`${T}`,tags:r,searchTerm:i,startDate:o,endDate:s,orderBy:l,tagsMode:c,itemsPerPage:qD});return T>=v?x:x.concat(await y(T+1))};d();const _=await y();e(_.map(T=>{var x;const{hostname:w,pathname:E}=new URL(T.shortUrl),O=E.substring(1);return{createdAt:T.dateCreated,domain:w,shortCode:O,shortUrl:T.shortUrl,longUrl:T.longUrl,title:T.title??"",tags:T.tags.join("|"),visits:((x=T==null?void 0:T.visitsSummary)==null?void 0:x.total)??T.visitsCount}})),p()},[]);return b.jsx(C7,{loading:h,className:"btn-md-block",amount:n,onClick:m})},k7=({text:t,onCopy:e})=>b.jsx(O7,{text:t,onCopy:e,children:b.jsx(zt,{icon:az,className:"ms-2 copy-to-clipboard-icon"})}),D0t=(t,{margin:e,...n})=>{const r=`${t}/qr-code`,i=Gg({...n,margin:e>0?e:void 0});return`${r}${qi(i)?"":`?${i}`}`},I0t=({errorCorrection:t,setErrorCorrection:e})=>b.jsxs(Pa,{text:`Error correction (${t})`,children:[b.jsxs(Zt,{active:t==="L",onClick:()=>e("L"),children:[b.jsx("b",{children:"L"}),"ow"]}),b.jsxs(Zt,{active:t==="M",onClick:()=>e("M"),children:[b.jsx("b",{children:"M"}),"edium"]}),b.jsxs(Zt,{active:t==="Q",onClick:()=>e("Q"),children:[b.jsx("b",{children:"Q"}),"uartile"]}),b.jsxs(Zt,{active:t==="H",onClick:()=>e("H"),children:[b.jsx("b",{children:"H"}),"igh"]})]}),F0t=({format:t,setFormat:e})=>b.jsxs(Pa,{text:`Format (${t})`,children:[b.jsx(Zt,{active:t==="png",onClick:()=>e("png"),children:"PNG"}),b.jsx(Zt,{active:t==="svg",onClick:()=>e("svg"),children:"SVG"})]}),B0t=t=>({shortUrl:{shortUrl:e,shortCode:n},toggle:r,isOpen:i})=>{const[o,s]=U.useState(300),[l,c]=U.useState(0),[h,d]=U.useState("png"),[p,m]=U.useState("L"),v=U.useMemo(()=>D0t(e,{size:o,format:h,margin:l,errorCorrection:p}),[e,o,h,l,p]),y=U.useMemo(()=>o+l,[o,l]),_=U.useMemo(()=>{if(!(y<500))return y<800?"lg":"xl"},[y]);return b.jsxs(Ca,{isOpen:i,toggle:r,centered:!0,size:_,children:[b.jsxs(ka,{toggle:r,children:["QR code for ",b.jsx(la,{href:e,children:e})]}),b.jsxs(Ss,{children:[b.jsxs(qr,{children:[b.jsxs(Ai,{className:"d-grid col-md-6",children:[b.jsxs("label",{children:["Size: ",o,"px"]}),b.jsx("input",{type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:T=>s(Number(T.target.value))})]}),b.jsxs(Ai,{className:"d-grid col-md-6",children:[b.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),b.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:T=>c(Number(T.target.value))})]}),b.jsx(Ai,{className:"d-grid col-md-6",children:b.jsx(F0t,{format:h,setFormat:d})}),b.jsx(Ai,{className:"col-md-6",children:b.jsx(I0t,{errorCorrection:p,setErrorCorrection:m})})]}),b.jsxs("div",{className:"text-center",children:[b.jsxs("div",{className:"mb-3",children:[b.jsx(la,{href:v}),b.jsx(k7,{text:v})]}),b.jsx("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),b.jsx("div",{className:"mt-3",children:b.jsxs(ke,{block:!0,color:"primary",onClick:()=>{t.saveImage(v,`${n}-qr-code.${h}`).catch(()=>{})},children:["Download ",b.jsx(zt,{icon:K8,className:"ms-1"})]})})]})]})]})},ib=({date:t,format:e=VP,relative:n=!1})=>{const r=HP(t)?t:_a(t);return b.jsx("time",{dateTime:`${Zvt(r)}000`,children:n?`${zvt(Ll(),r)} ago`:xd(r,e)})},$0t=t=>{const{meta:e,visitsCount:n,visitsSummary:r}=t,{maxVisits:i,validSince:o,validUntil:s}=e,l=(r==null?void 0:r.total)??n;return i&&l>=i?{icon:Wet,className:"text-danger",description:b.jsxs(b.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",b.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:s&&io(zo(s),Ll())?{icon:tj,className:"text-danger",description:b.jsxs(b.Fragment,{children:["This short URL cannot be visited since ",b.jsx("b",{className:"indivisible",children:eb(zo(s))}),"."]})}:o&&io(Ll(),zo(o))?{icon:tj,className:"text-warning",description:b.jsxs(b.Fragment,{children:["This short URL will start working on ",b.jsx("b",{className:"indivisible",children:eb(zo(o))}),"."]})}:{icon:Hm,className:"text-primary",description:"This short URL can be visited normally."}},z0t=({shortUrl:t})=>{const e=Bl(),{icon:n,className:r,description:i}=$0t(t);return b.jsxs(b.Fragment,{children:[b.jsx("span",{style:{cursor:i?"help":void 0},ref:e,children:b.jsx(zt,{icon:n,className:r})}),b.jsx(fi,{target:e,placement:"bottom",children:i})]})};var P7={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i{const i=n?`?domain=${n}`:"";return`${t}/short-code/${ggt(e)}/${r}${i}`},hO=({shortUrl:t,suffix:e,asLink:n,children:r,...i})=>{const o=Bu();return!n||!t?b.jsx("span",{...i,children:r}):b.jsx(nn,{to:V0t(o,t,e),...i,children:r})},L7=({visitsCount:t,shortUrl:e,active:n=!1,asLink:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(e==null?void 0:e.meta)??{},l=!!i||!!o||!!s,c=b.jsx(hO,{shortUrl:e,suffix:"visits",asLink:r,children:b.jsx("strong",{className:de("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Qn(t)})});if(!l)return c;const h=Bl();return b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"indivisible",children:[c,b.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:h,children:[i&&b.jsxs(b.Fragment,{children:[" / ",Qn(i)]}),b.jsx("sup",{className:"ms-1",children:b.jsx(zt,{icon:Tk})})]})]}),b.jsx(fi,{target:h,placement:"bottom",children:b.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",b.jsx("b",{children:Qn(i)})," visit",i===1?"":"s","."]}),o&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",b.jsx("b",{className:"indivisible",children:eb(zo(o))}),"."]}),s&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",b.jsx("b",{className:"indivisible",children:eb(zo(s))}),"."]})]})})]})},KP=({text:t,children:e,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>b.jsxs("span",{className:de("badge tag",r,{"tag--light-bg":i.isColorLightForKey(t)}),style:{backgroundColor:i.getColorForKey(t),cursor:n||!o?"auto":"pointer"},onClick:o,children:[e??t,n&&b.jsx("span",{"aria-label":`Remove ${t}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),H0t=({tags:t,onTagClick:e,colorGenerator:n})=>qi(t)?b.jsx("i",{className:"indivisible",children:b.jsx("small",{children:"No tags"})}):b.jsx(b.Fragment,{children:t.map(r=>b.jsx(KP,{text:r,colorGenerator:n,onClick:()=>e==null?void 0:e(r)},r))}),W0t=(t,e,n)=>({shortUrl:r,onTagClick:i})=>{var o,s,l,c;const[h,d]=n(),[p,m]=n(!1,500),v=U.useRef(!0),[{excludeBots:y}]=M1(),_=zu("visits"),T=y??(_==null?void 0:_.excludeBots);return U.useEffect(()=>{!v.current&&m(),v.current=!1},[(o=r.visitsSummary)==null?void 0:o.total,(s=r.visitsSummary)==null?void 0:s.nonBots,r.visitsCount]),b.jsxs("tr",{className:"responsive-table__row",children:[b.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:b.jsx(ib,{date:r.dateCreated})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:b.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[b.jsx("span",{className:"short-urls-row__short-url-wrapper",children:b.jsx(la,{href:r.shortUrl})}),b.jsx(k7,{text:r.shortUrl,onCopy:d}),b.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!h,children:"Copied short URL!"})]})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:b.jsx(la,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&b.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:b.jsx(la,{href:r.longUrl})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:b.jsx(H0t,{tags:r.tags,colorGenerator:e,onTagClick:i})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:b.jsx(L7,{visitsCount:(T?(l=r.visitsSummary)==null?void 0:l.nonBots:(c=r.visitsSummary)==null?void 0:c.total)??r.visitsCount,shortUrl:r,active:p,asLink:!0})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:b.jsx(z0t,{shortUrl:r})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:b.jsx(t,{shortUrl:r})})]})},Y0t=(t,e)=>({shortUrl:n})=>{const[r,,i,o]=zn(),[s,,l,c]=zn();return b.jsxs(b1,{minWidth:190,children:[b.jsxs(Zt,{tag:hO,shortUrl:n,suffix:"visits",asLink:!0,children:[b.jsx(zt,{icon:Sk,fixedWidth:!0})," Visit stats"]}),b.jsxs(Zt,{tag:hO,shortUrl:n,suffix:"edit",asLink:!0,children:[b.jsx(zt,{icon:wk,fixedWidth:!0})," Edit short URL"]}),b.jsxs(Zt,{onClick:i,children:[b.jsx(zt,{icon:Vet,fixedWidth:!0})," QR code"]}),b.jsx(e,{shortUrl:n,isOpen:r,toggle:o}),b.jsx(Zt,{divider:!0}),b.jsxs(Zt,{className:"dropdown-item--danger",onClick:l,children:[b.jsx(zt,{icon:xk,fixedWidth:!0})," Delete short URL"]}),b.jsx(t,{shortUrl:n,isOpen:s,toggle:c})]})},M7="shlink/shortUrlCreation",KD={saving:!1,saved:!1,error:!1},Z0t=t=>di(`${M7}/createShortUrl`,e=>t().createShortUrl(e)),G0t=t=>{const{reducer:e,actions:n}=Br({name:M7,initialState:KD,reducers:{resetCreateShortUrl:()=>KD},extraReducers:i=>{i.addCase(t.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(t.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:La(s)})),i.addCase(t.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:e,resetCreateShortUrl:r}},XD="shlink/shortUrlDetail",QD={loading:!1,error:!1},q0t=t=>{const e=di(`${XD}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var s;const{shortUrlsList:l}=o();return((s=l==null?void 0:l.shortUrls)==null?void 0:s.data.find(c=>om(c,r,i)))??await t().getShortUrl(r,i)}),{reducer:n}=Br({name:XD,initialState:QD,reducers:{},extraReducers:r=>{r.addCase(e.pending,()=>({loading:!0,error:!1})),r.addCase(e.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:La(o)})),r.addCase(e.fulfilled,(i,{payload:o})=>({...QD,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:e}},A7="shlink/shortUrlEdition",K0t={saving:!1,saved:!1,error:!1},X0t=t=>di(`${A7}/editShortUrl`,({shortCode:e,domain:n,data:r})=>t().updateShortUrl(e,n,r)),Q0t=t=>Br({name:A7,initialState:K0t,reducers:{},extraReducers:e=>{e.addCase(t.pending,n=>({...n,saving:!0,error:!1,saved:!1})),e.addCase(t.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:La(r)})),e.addCase(t.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),J0t=({icon:t,className:e,...n})=>{const r=Bl(),i=de("icon-input-container__input",e);return b.jsxs("div",{className:"icon-input-container",children:[b.jsx(dd,{className:i,innerRef:r,...n}),b.jsx(zt,{icon:t,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})};function tbt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,dO(t,e)}function dO(t,e){return dO=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dO(t,e)}function ebt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function JD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nbt(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function rbt(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&nbt(t,e,n))return!0;t=t.parentNode||t.host}return t}function ibt(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var obt=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,e),window.removeEventListener("testPassiveEventSupport",n,e),t}};function sbt(t){return t===void 0&&(t=0),function(){return++t}}var abt=sbt(),fO,uy={},E2={},lbt=["touchstart","touchmove"],cbt="ignore-react-onclickoutside";function t3(t,e){var n={},r=lbt.indexOf(e)!==-1;return r&&fO&&(n.passive=!t.props.preventDefault),n}function A1(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(o){tbt(s,o);function s(c){var h;return h=o.call(this,c)||this,h.__outsideClickHandler=function(d){if(typeof h.__clickOutsideHandlerProp=="function"){h.__clickOutsideHandlerProp(d);return}var p=h.getInstance();if(typeof p.props.handleClickOutside=="function"){p.props.handleClickOutside(d);return}if(typeof p.handleClickOutside=="function"){p.handleClickOutside(d);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},h.__getComponentNode=function(){var d=h.getInstance();return e&&typeof e.setClickOutsideRef=="function"?e.setClickOutsideRef()(d):typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():Mu.findDOMNode(d)},h.enableOnClickOutside=function(){if(!(typeof document>"u"||E2[h._uid])){typeof fO>"u"&&(fO=obt()),E2[h._uid]=!0;var d=h.props.eventTypes;d.forEach||(d=[d]),uy[h._uid]=function(p){if(h.componentNode!==null&&(h.props.preventDefault&&p.preventDefault(),h.props.stopPropagation&&p.stopPropagation(),!(h.props.excludeScrollbar&&ibt(p)))){var m=p.composed&&p.composedPath&&p.composedPath().shift()||p.target;rbt(m,h.componentNode,h.props.outsideClickIgnoreClass)===document&&h.__outsideClickHandler(p)}},d.forEach(function(p){document.addEventListener(p,uy[h._uid],t3(JD(h),p))})}},h.disableOnClickOutside=function(){delete E2[h._uid];var d=uy[h._uid];if(d&&typeof document<"u"){var p=h.props.eventTypes;p.forEach||(p=[p]),p.forEach(function(m){return document.removeEventListener(m,d,t3(JD(h),m))}),delete uy[h._uid]}},h.getRef=function(d){return h.instanceRef=d},h._uid=abt(),h}var l=s.prototype;return l.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},l.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(e&&typeof e.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=e.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var c=this.props;c.excludeScrollbar;var h=ebt(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?h.ref=this.getRef:h.wrappedRef=this.getRef,h.disableOnClickOutside=this.disableOnClickOutside,h.enableOnClickOutside=this.enableOnClickOutside,U.createElement(t,h)},s}(U.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:e&&e.excludeScrollbar||!1,outsideClickIgnoreClass:cbt,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}var R7=U.createContext(),j7=U.createContext();function ubt(t){var e=t.children,n=U.useState(null),r=n[0],i=n[1],o=U.useRef(!1);U.useEffect(function(){return function(){o.current=!0}},[]);var s=U.useCallback(function(l){o.current||i(l)},[]);return U.createElement(R7.Provider,{value:r},U.createElement(j7.Provider,{value:s},e))}var N7=function(t){return Array.isArray(t)?t[0]:t},D7=function(t){if(typeof t=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r"u")return!1;var e=Hi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Sbt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!uo(o)||!bs(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function Tbt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(c,h){return c[h]="",c},{});!uo(i)||!bs(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Ebt={name:"applyStyles",enabled:!0,phase:"write",fn:Sbt,effect:Tbt,requires:["computeStyles"]};function ms(t){return t.split("-")[0]}var su=Math.max,ob=Math.min,Ed=Math.round;function mO(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function B7(){return!/^((?!chrome|android).)*safari/i.test(mO())}function Od(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&uo(t)&&(i=t.offsetWidth>0&&Ed(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ed(r.height)/t.offsetHeight||1);var s=Su(t)?Hi(t):window,l=s.visualViewport,c=!B7()&&n,h=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,p=r.width/i,m=r.height/o;return{width:p,height:m,top:d,right:h+p,bottom:d+m,left:h,x:h,y:d}}function JP(t){var e=Od(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $7(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&QP(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ba(t){return Hi(t).getComputedStyle(t)}function Obt(t){return["table","td","th"].indexOf(bs(t))>=0}function Ul(t){return((Su(t)?t.ownerDocument:t.document)||window.document).documentElement}function R1(t){return bs(t)==="html"?t:t.assignedSlot||t.parentNode||(QP(t)?t.host:null)||Ul(t)}function i3(t){return!uo(t)||ba(t).position==="fixed"?null:t.offsetParent}function Cbt(t){var e=/firefox/i.test(mO()),n=/Trident/i.test(mO());if(n&&uo(t)){var r=ba(t);if(r.position==="fixed")return null}var i=R1(t);for(QP(i)&&(i=i.host);uo(i)&&["html","body"].indexOf(bs(i))<0;){var o=ba(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sv(t){for(var e=Hi(t),n=i3(t);n&&Obt(n)&&ba(n).position==="static";)n=i3(n);return n&&(bs(n)==="html"||bs(n)==="body"&&ba(n).position==="static")?e:n||Cbt(t)||e}function tL(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function lm(t,e,n){return su(t,ob(e,n))}function kbt(t,e,n){var r=lm(t,e,n);return r>n?n:r}function z7(){return{top:0,right:0,bottom:0,left:0}}function U7(t){return Object.assign({},z7(),t)}function V7(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Pbt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,U7(typeof t!="number"?t:V7(t,ov))};function Lbt(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ms(n.placement),c=tL(l),h=[hi,yo].indexOf(l)>=0,d=h?"height":"width";if(!(!o||!s)){var p=Pbt(i.padding,n),m=JP(o),v=c==="y"?ui:hi,y=c==="y"?vo:yo,_=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],T=s[c]-n.rects.reference[c],x=sv(o),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,E=_/2-T/2,O=p[v],k=w-m[d]-p[y],P=w/2-m[d]/2+E,A=lm(O,P,k),j=c;n.modifiersData[r]=(e={},e[j]=A,e.centerOffset=A-P,e)}}function Mbt(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||$7(e.elements.popper,i)&&(e.elements.arrow=i))}const Abt={name:"arrow",enabled:!0,phase:"main",fn:Lbt,effect:Mbt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cd(t){return t.split("-")[1]}var Rbt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jbt(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Ed(n*i)/i||0,y:Ed(r*i)/i||0}}function o3(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,h=t.adaptive,d=t.roundOffsets,p=t.isFixed,m=s.x,v=m===void 0?0:m,y=s.y,_=y===void 0?0:y,T=typeof d=="function"?d({x:v,y:_}):{x:v,y:_};v=T.x,_=T.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),E=hi,O=ui,k=window;if(h){var P=sv(n),A="clientHeight",j="clientWidth";if(P===Hi(n)&&(P=Ul(n),ba(P).position!=="static"&&l==="absolute"&&(A="scrollHeight",j="scrollWidth")),P=P,i===ui||(i===hi||i===yo)&&o===hg){O=vo;var B=p&&P===k&&k.visualViewport?k.visualViewport.height:P[A];_-=B-r.height,_*=c?1:-1}if(i===hi||(i===ui||i===vo)&&o===hg){E=yo;var N=p&&P===k&&k.visualViewport?k.visualViewport.width:P[j];v-=N-r.width,v*=c?1:-1}}var V=Object.assign({position:l},h&&Rbt),Y=d===!0?jbt({x:v,y:_},Hi(n)):{x:v,y:_};if(v=Y.x,_=Y.y,c){var nt;return Object.assign({},V,(nt={},nt[O]=w?"0":"",nt[E]=x?"0":"",nt.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",nt))}return Object.assign({},V,(e={},e[O]=w?_+"px":"",e[E]=x?v+"px":"",e.transform="",e))}function Nbt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,h={placement:ms(e.placement),variation:Cd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,o3(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,o3(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Dbt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nbt,data:{}};var hy={passive:!0};function Ibt(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Hi(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&h.forEach(function(d){d.addEventListener("scroll",n.update,hy)}),l&&c.addEventListener("resize",n.update,hy),function(){o&&h.forEach(function(d){d.removeEventListener("scroll",n.update,hy)}),l&&c.removeEventListener("resize",n.update,hy)}}const Fbt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ibt,data:{}};var Bbt={left:"right",right:"left",bottom:"top",top:"bottom"};function p_(t){return t.replace(/left|right|bottom|top/g,function(e){return Bbt[e]})}var $bt={start:"end",end:"start"};function s3(t){return t.replace(/start|end/g,function(e){return $bt[e]})}function eL(t){var e=Hi(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function nL(t){return Od(Ul(t)).left+eL(t).scrollLeft}function zbt(t,e){var n=Hi(t),r=Ul(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var h=B7();(h||!h&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+nL(t),y:c}}function Ubt(t){var e,n=Ul(t),r=eL(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=su(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=su(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+nL(t),c=-r.scrollTop;return ba(i||n).direction==="rtl"&&(l+=su(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function rL(t){var e=ba(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function H7(t){return["html","body","#document"].indexOf(bs(t))>=0?t.ownerDocument.body:uo(t)&&rL(t)?t:H7(R1(t))}function cm(t,e){var n;e===void 0&&(e=[]);var r=H7(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Hi(r),s=i?[o].concat(o.visualViewport||[],rL(r)?r:[]):r,l=e.concat(s);return i?l:l.concat(cm(R1(s)))}function gO(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vbt(t,e){var n=Od(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function a3(t,e,n){return e===I7?gO(zbt(t,n)):Su(e)?Vbt(e,n):gO(Ubt(Ul(t)))}function Hbt(t){var e=cm(R1(t)),n=["absolute","fixed"].indexOf(ba(t).position)>=0,r=n&&uo(t)?sv(t):t;return Su(r)?e.filter(function(i){return Su(i)&&$7(i,r)&&bs(i)!=="body"}):[]}function Wbt(t,e,n,r){var i=e==="clippingParents"?Hbt(t):[].concat(e),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,h){var d=a3(t,h,r);return c.top=su(d.top,c.top),c.right=ob(d.right,c.right),c.bottom=ob(d.bottom,c.bottom),c.left=su(d.left,c.left),c},a3(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function W7(t){var e=t.reference,n=t.element,r=t.placement,i=r?ms(r):null,o=r?Cd(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case ui:c={x:s,y:e.y-n.height};break;case vo:c={x:s,y:e.y+e.height};break;case yo:c={x:e.x+e.width,y:l};break;case hi:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var h=i?tL(i):null;if(h!=null){var d=h==="y"?"height":"width";switch(o){case Td:c[h]=c[h]-(e[d]/2-n[d]/2);break;case hg:c[h]=c[h]+(e[d]/2-n[d]/2);break}}return c}function dg(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,l=n.boundary,c=l===void 0?hbt:l,h=n.rootBoundary,d=h===void 0?I7:h,p=n.elementContext,m=p===void 0?lp:p,v=n.altBoundary,y=v===void 0?!1:v,_=n.padding,T=_===void 0?0:_,x=U7(typeof T!="number"?T:V7(T,ov)),w=m===lp?dbt:lp,E=t.rects.popper,O=t.elements[y?w:m],k=Wbt(Su(O)?O:O.contextElement||Ul(t.elements.popper),c,d,s),P=Od(t.elements.reference),A=W7({reference:P,element:E,strategy:"absolute",placement:i}),j=gO(Object.assign({},E,A)),B=m===lp?j:P,N={top:k.top-B.top+x.top,bottom:B.bottom-k.bottom+x.bottom,left:k.left-B.left+x.left,right:B.right-k.right+x.right},V=t.modifiersData.offset;if(m===lp&&V){var Y=V[i];Object.keys(N).forEach(function(nt){var K=[yo,vo].indexOf(nt)>=0?1:-1,J=[ui,vo].indexOf(nt)>=0?"y":"x";N[nt]+=Y[J]*K})}return N}function Ybt(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,h=c===void 0?F7:c,d=Cd(r),p=d?l?r3:r3.filter(function(y){return Cd(y)===d}):ov,m=p.filter(function(y){return h.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,_){return y[_]=dg(t,{placement:_,boundary:i,rootBoundary:o,padding:s})[ms(_)],y},{});return Object.keys(v).sort(function(y,_){return v[y]-v[_]})}function Zbt(t){if(ms(t)===XP)return[];var e=p_(t);return[s3(t),e,s3(e)]}function Gbt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,h=n.padding,d=n.boundary,p=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,_=n.allowedAutoPlacements,T=e.options.placement,x=ms(T),w=x===T,E=c||(w||!y?[p_(T)]:Zbt(T)),O=[T].concat(E).reduce(function(Q,tt){return Q.concat(ms(tt)===XP?Ybt(e,{placement:tt,boundary:d,rootBoundary:p,padding:h,flipVariations:y,allowedAutoPlacements:_}):tt)},[]),k=e.rects.reference,P=e.rects.popper,A=new Map,j=!0,B=O[0],N=0;N=0,J=K?"width":"height",et=dg(e,{placement:V,boundary:d,rootBoundary:p,altBoundary:m,padding:h}),ct=K?nt?yo:hi:nt?vo:ui;k[J]>P[J]&&(ct=p_(ct));var G=p_(ct),$=[];if(o&&$.push(et[Y]<=0),l&&$.push(et[ct]<=0,et[G]<=0),$.every(function(Q){return Q})){B=V,j=!1;break}A.set(V,$)}if(j)for(var I=y?3:1,H=function(Q){var tt=O.find(function(rt){var mt=A.get(rt);if(mt)return mt.slice(0,Q).every(function(M){return M})});if(tt)return B=tt,"break"},it=I;it>0;it--){var W=H(it);if(W==="break")break}e.placement!==B&&(e.modifiersData[r]._skip=!0,e.placement=B,e.reset=!0)}}const qbt={name:"flip",enabled:!0,phase:"main",fn:Gbt,requiresIfExists:["offset"],data:{_skip:!1}};function l3(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function c3(t){return[ui,yo,vo,hi].some(function(e){return t[e]>=0})}function Kbt(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=dg(e,{elementContext:"reference"}),l=dg(e,{altBoundary:!0}),c=l3(s,r),h=l3(l,i,o),d=c3(c),p=c3(h);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Xbt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kbt};function Qbt(t,e,n){var r=ms(t),i=[hi,ui].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[hi,yo].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Jbt(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=F7.reduce(function(d,p){return d[p]=Qbt(p,e.rects,o),d},{}),l=s[e.placement],c=l.x,h=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=s}const t1t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jbt};function e1t(t){var e=t.state,n=t.name;e.modifiersData[n]=W7({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const n1t={name:"popperOffsets",enabled:!0,phase:"read",fn:e1t,data:{}};function r1t(t){return t==="x"?"y":"x"}function i1t(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,_=y===void 0?0:y,T=dg(e,{boundary:c,rootBoundary:h,padding:p,altBoundary:d}),x=ms(e.placement),w=Cd(e.placement),E=!w,O=tL(x),k=r1t(O),P=e.modifiersData.popperOffsets,A=e.rects.reference,j=e.rects.popper,B=typeof _=="function"?_(Object.assign({},e.rects,{placement:e.placement})):_,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Y={x:0,y:0};if(P){if(o){var nt,K=O==="y"?ui:hi,J=O==="y"?vo:yo,et=O==="y"?"height":"width",ct=P[O],G=ct+T[K],$=ct-T[J],I=v?-j[et]/2:0,H=w===Td?A[et]:j[et],it=w===Td?-j[et]:-A[et],W=e.elements.arrow,Q=v&&W?JP(W):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:z7(),rt=tt[K],mt=tt[J],M=lm(0,A[et],Q[et]),R=E?A[et]/2-I-M-rt-N.mainAxis:H-M-rt-N.mainAxis,z=E?-A[et]/2+I+M+mt+N.mainAxis:it+M+mt+N.mainAxis,at=e.elements.arrow&&sv(e.elements.arrow),st=at?O==="y"?at.clientTop||0:at.clientLeft||0:0,ht=(nt=V==null?void 0:V[O])!=null?nt:0,bt=ct+R-ht-st,It=ct+z-ht,ft=lm(v?ob(G,bt):G,ct,v?su($,It):$);P[O]=ft,Y[O]=ft-ct}if(l){var vt,_t=O==="x"?ui:hi,Ct=O==="x"?vo:yo,Mt=P[k],Lt=k==="y"?"height":"width",jt=Mt+T[_t],dt=Mt-T[Ct],pt=[ui,hi].indexOf(x)!==-1,xt=(vt=V==null?void 0:V[k])!=null?vt:0,yt=pt?jt:Mt-A[Lt]-j[Lt]-xt+N.altAxis,Et=pt?Mt+A[Lt]+j[Lt]-xt-N.altAxis:dt,At=v&&pt?kbt(yt,Mt,Et):lm(v?yt:jt,Mt,v?Et:dt);P[k]=At,Y[k]=At-Mt}e.modifiersData[r]=Y}}const o1t={name:"preventOverflow",enabled:!0,phase:"main",fn:i1t,requiresIfExists:["offset"]};function s1t(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function a1t(t){return t===Hi(t)||!uo(t)?eL(t):s1t(t)}function l1t(t){var e=t.getBoundingClientRect(),n=Ed(e.width)/t.offsetWidth||1,r=Ed(e.height)/t.offsetHeight||1;return n!==1||r!==1}function c1t(t,e,n){n===void 0&&(n=!1);var r=uo(e),i=uo(e)&&l1t(e),o=Ul(e),s=Od(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((bs(e)!=="body"||rL(o))&&(l=a1t(e)),uo(e)?(c=Od(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=nL(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function u1t(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function h1t(t){var e=u1t(t);return wbt.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function d1t(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function f1t(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var u3={placement:"bottom",modifiers:[],strategy:"absolute"};function h3(){for(var t=arguments.length,e=new Array(t),n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=sb(t);if(e){var i=sb(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(o)}(this,n)}}function _O(t){return function(e){if(Array.isArray(e))return O2(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return O2(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O2(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function O2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.excludeDateIntervals,s=e.includeDates,l=e.includeDateIntervals,c=e.filterDate;return N1(t,{minDate:n,maxDate:r})||i&&i.some(function(h){return Gr(t,h)})||o&&o.some(function(h){var d=h.start,p=h.end;return wd(t,{start:d,end:p})})||s&&!s.some(function(h){return Gr(t,h)})||l&&!l.some(function(h){var d=h.start,p=h.end;return wd(t,{start:d,end:p})})||c&&!c(Ie(t))||!1}function sL(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeDates,r=e.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return wd(t,{start:o,end:s})}):n&&n.some(function(i){return Gr(t,i)})||!1}function G7(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.includeDates,s=e.filterDate;return N1(t,{minDate:Wz(n),maxDate:Hz(r)})||i&&i.some(function(l){return Io(t,l)})||o&&!o.some(function(l){return Io(t,l)})||s&&!s(Ie(t))||!1}function C2(t,e,n,r){var i=le(t),o=jr(t),s=le(e),l=jr(e),c=le(r);return i===s&&i===c?o<=n&&n<=l:i=n||ci:void 0}function N1t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.includeDates,s=e.filterDate;return N1(t,{minDate:n,maxDate:r})||i&&i.some(function(l){return ab(t,l)})||o&&!o.some(function(l){return ab(t,l)})||s&&!s(Ie(t))||!1}function k2(t,e,n){if(!q0(e)||!q0(n))return!1;var r=le(e),i=le(n);return r<=t&&i>=t}function q7(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.includeDates,s=e.filterDate,l=new Date(t,0,1);return N1(l,{minDate:Yz(n),maxDate:Agt(r)})||i&&i.some(function(c){return nl(l,c)})||o&&!o.some(function(c){return nl(l,c)})||s&&!s(Ie(l))||!1}function P2(t,e,n,r){var i=le(t),o=Ch(t),s=le(e),l=Ch(e),c=le(r);return i===s&&i===c?o<=n&&n<=l:i=n||ci:void 0}function N1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate;return n&&lg(t,n)<0||r&&lg(t,r)>0}function b3(t,e){return e.some(function(n){return Ri(n)===Ri(t)&&ji(n)===ji(t)})}function x3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeTimes,r=e.includeTimes,i=e.filterTime;return n&&b3(t,n)||r&&!b3(t,r)||i&&!i(t)||!1}function w3(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ie(),s=sm(am(o,ji(t)),Ri(t)),l=sm(am(o,ji(n)),Ri(n)),c=sm(am(o,ji(r)),Ri(r));try{i=!wd(s,{start:l,end:c})}catch{i=!1}return i}function S3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Sd(t,1);return n&&cg(n,i)>0||r&&r.every(function(o){return cg(o,i)>0})||!1}function T3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=go(t,1);return n&&cg(i,n)>0||r&&r.every(function(o){return cg(i,o)>0})||!1}function E3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=ug(t,1);return n&&K0(n,i)>0||r&&r.every(function(o){return K0(o,i)>0})||!1}function O3(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=_d(t,1);return n&&K0(i,n)>0||r&&r.every(function(o){return K0(i,o)>0})||!1}function K7(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return lg(i,e)>=0});return bD(r)}return n?bD(n):e}function X7(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return lg(i,e)<=0});return _D(r)}return n?_D(n):e}function C3(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=t.length;r1&&arguments[1]!==void 0?arguments[1]:um,n=Math.ceil(le(t)/e)*e;return{startPeriod:n-(e-1),endPeriod:n}}function I1t(t,e,n,r){for(var i=[],o=0;o<2*e+1;o++){var s=t+e-o,l=!0;n&&(l=le(n)<=s),r&&l&&(l=le(r)>=s),l&&i.push(s)}return i}var F1t=A1(function(t){fr(n,q.Component);var e=pr(n);function n(r){var i;hr(this,n),ot(lt(i=e.call(this,r)),"renderOptions",function(){var c=i.props.year,h=i.state.yearsList.map(function(m){return q.createElement("div",{className:c===m?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:m,onClick:i.onChange.bind(lt(i),m),"aria-selected":c===m?"true":void 0},c===m?q.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",m)}),d=i.props.minDate?le(i.props.minDate):null,p=i.props.maxDate?le(i.props.maxDate):null;return p&&i.state.yearsList.find(function(m){return m===p})||h.unshift(q.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},q.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&i.state.yearsList.find(function(m){return m===d})||h.push(q.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},q.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),h}),ot(lt(i),"onChange",function(c){i.props.onChange(c)}),ot(lt(i),"handleClickOutside",function(){i.props.onCancel()}),ot(lt(i),"shiftYears",function(c){var h=i.state.yearsList.map(function(d){return d+c});i.setState({yearsList:h})}),ot(lt(i),"incrementYears",function(){return i.shiftYears(1)}),ot(lt(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,l=o||(s?10:5);return i.state={yearsList:I1t(i.props.year,l,i.props.minDate,i.props.maxDate)},i.dropdownRef=U.createRef(),i}return dr(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(s){return s.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=de({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return q.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),B1t=function(t){fr(n,q.Component);var e=pr(n);function n(){var r;hr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(c=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(c=!1)),c&&r.dayEl.current.focus({preventScroll:!0})}),ot(lt(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(CD(r.props.day),r.props.day):CD(r.props.day)}),ot(lt(r),"render",function(){return q.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents())}),r}return dr(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),Y1t=function(t){fr(n,q.Component);var e=pr(n);function n(){var r;hr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=6,v=!c&&!r.isWeekInMonth(p);if(m||v){if(!r.props.peekNextMonth)break;d=!0}}return l}),ot(lt(r),"onMonthClick",function(l,c){r.handleDayClick(vl(Zr(r.props.day,c)),l)}),ot(lt(r),"onMonthMouseEnter",function(l){r.handleDayMouseEnter(vl(Zr(r.props.day,l)))}),ot(lt(r),"handleMonthNavigation",function(l,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.MONTH_REFS[l].current&&r.MONTH_REFS[l].current.focus())}),ot(lt(r),"onMonthKeyDown",function(l,c){var h=r.props,d=h.selected,p=h.preSelection,m=h.disabledKeyboardNavigation,v=h.showTwoColumnMonthYearPicker,y=h.showFourColumnMonthYearPicker,_=h.setPreSelection,T=l.key;if(T!=="Tab"&&l.preventDefault(),!m){var x=P3(y,v),w=L2[x].verticalNavigationOffset,E=L2[x].grid;switch(T){case"Enter":r.onMonthClick(l,c),_(d);break;case"ArrowRight":r.handleMonthNavigation(c===11?0:c+1,go(p,1));break;case"ArrowLeft":r.handleMonthNavigation(c===0?11:c-1,Sd(p,1));break;case"ArrowUp":r.handleMonthNavigation(E[0].includes(c)?c+12-w:c-w,Sd(p,w));break;case"ArrowDown":r.handleMonthNavigation(E[E.length-1].includes(c)?c-12+w:c+w,go(p,w))}}}),ot(lt(r),"onQuarterClick",function(l,c){r.handleDayClick(y3(nh(r.props.day,c)),l)}),ot(lt(r),"onQuarterMouseEnter",function(l){r.handleDayMouseEnter(y3(nh(r.props.day,l)))}),ot(lt(r),"handleQuarterNavigation",function(l,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.QUARTER_REFS[l-1].current&&r.QUARTER_REFS[l-1].current.focus())}),ot(lt(r),"onQuarterKeyDown",function(l,c){var h=l.key;if(!r.props.disabledKeyboardNavigation)switch(h){case"Enter":r.onQuarterClick(l,c),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(c===4?1:c+1,Uz(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(c===1?4:c-1,h_t(r.props.preSelection,1))}}),ot(lt(r),"getMonthClassNames",function(l){var c=r.props,h=c.day,d=c.startDate,p=c.endDate,m=c.selected,v=c.minDate,y=c.maxDate,_=c.preSelection,T=c.monthClassName,x=c.excludeDates,w=c.includeDates,E=T?T(Zr(h,l)):void 0,O=Zr(h,l);return de("react-datepicker__month-text","react-datepicker__month-".concat(l),E,{"react-datepicker__month-text--disabled":(v||y||x||w)&&G7(O,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(h,l,m),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&jr(_)===l,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(l),"react-datepicker__month-text--in-range":C2(d,p,l,h),"react-datepicker__month-text--range-start":r.isRangeStartMonth(l),"react-datepicker__month-text--range-end":r.isRangeEndMonth(l),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(l),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(l),"react-datepicker__month-text--today":r.isCurrentMonth(h,l)})}),ot(lt(r),"getTabIndex",function(l){var c=jr(r.props.preSelection);return r.props.disabledKeyboardNavigation||l!==c?"-1":"0"}),ot(lt(r),"getQuarterTabIndex",function(l){var c=Ch(r.props.preSelection);return r.props.disabledKeyboardNavigation||l!==c?"-1":"0"}),ot(lt(r),"getAriaLabel",function(l){var c=r.props,h=c.chooseDayAriaLabelPrefix,d=h===void 0?"Choose":h,p=c.disabledDayAriaLabelPrefix,m=p===void 0?"Not available":p,v=c.day,y=Zr(v,l),_=r.isDisabled(y)||r.isExcluded(y)?m:d;return"".concat(_," ").concat(Dn(y,"MMMM yyyy"))}),ot(lt(r),"getQuarterClassNames",function(l){var c=r.props,h=c.day,d=c.startDate,p=c.endDate,m=c.selected,v=c.minDate,y=c.maxDate,_=c.preSelection;return de("react-datepicker__quarter-text","react-datepicker__quarter-".concat(l),{"react-datepicker__quarter-text--disabled":(v||y)&&N1t(nh(h,l),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(h,l,m),"react-datepicker__quarter-text--keyboard-selected":Ch(_)===l,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(l),"react-datepicker__quarter-text--in-range":P2(d,p,l,h),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(l),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(l)})}),ot(lt(r),"getMonthContent",function(l){var c=r.props,h=c.showFullMonthYearPicker,d=c.renderMonthContent,p=c.locale,m=Z7(l,p),v=oL(l,p);return d?d(l,m,v):h?v:m}),ot(lt(r),"getQuarterContent",function(l){var c=r.props,h=c.renderQuarterContent,d=function(p,m){return Dn(nh(Ie(),p),"QQQ",m)}(l,c.locale);return h?h(l,d):d}),ot(lt(r),"renderMonths",function(){var l=r.props,c=l.showTwoColumnMonthYearPicker,h=l.showFourColumnMonthYearPicker,d=l.day,p=l.selected;return L2[P3(h,c)].grid.map(function(m,v){return q.createElement("div",{className:"react-datepicker__month-wrapper",key:v},m.map(function(y,_){return q.createElement("div",{ref:r.MONTH_REFS[y],key:_,onClick:function(T){r.onMonthClick(T,y)},onKeyDown:function(T){r.onMonthKeyDown(T,y)},onMouseEnter:function(){return r.onMonthMouseEnter(y)},tabIndex:r.getTabIndex(y),className:r.getMonthClassNames(y),role:"option","aria-label":r.getAriaLabel(y),"aria-current":r.isCurrentMonth(d,y)?"date":void 0,"aria-selected":r.isSelectedMonth(d,y,p)},r.getMonthContent(y))}))})}),ot(lt(r),"renderQuarters",function(){var l=r.props,c=l.day,h=l.selected;return q.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,p){return q.createElement("div",{key:p,ref:r.QUARTER_REFS[p],role:"option",onClick:function(m){r.onQuarterClick(m,d)},onKeyDown:function(m){r.onQuarterKeyDown(m,d)},onMouseEnter:function(){return r.onQuarterMouseEnter(d)},className:r.getQuarterClassNames(d),"aria-selected":r.isSelectedQuarter(c,d,h),tabIndex:r.getQuarterTabIndex(d),"aria-current":r.isCurrentQuarter(c,d)?"date":void 0},r.getQuarterContent(d))}))}),ot(lt(r),"getClassNames",function(){var l=r.props,c=l.selectingDate,h=l.selectsStart,d=l.selectsEnd,p=l.showMonthYearPicker,m=l.showQuarterYearPicker;return de("react-datepicker__month",{"react-datepicker__month--selecting-range":c&&(h||d)},{"react-datepicker__monthPicker":p},{"react-datepicker__quarterPicker":m})}),r}return dr(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,l=r.ariaLabelPrefix,c=l===void 0?"month ":l;return q.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(c," ").concat(Dn(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),eU=function(t){fr(n,q.Component);var e=pr(n);function n(){var r;hr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Q1t.some(function(l){return s.indexOf(l)>=0})})(o.target)&&i.props.onDropdownFocus()}),ot(lt(i),"getDateInView",function(){var o=i.props,s=o.preSelection,l=o.selected,c=o.openToDate,h=K7(i.props),d=X7(i.props),p=Ie(),m=c||l||s;return m||(h&&io(p,h)?h:d&&Pl(p,d)?d:p)}),ot(lt(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:go(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ot(lt(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:Sd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ot(lt(i),"handleDayClick",function(o,s,l){i.props.onSelect(o,s,l),i.props.setPreSelection&&i.props.setPreSelection(o)}),ot(lt(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ot(lt(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ot(lt(i),"handleYearMouseEnter",function(o,s){i.setState({selectingDate:Qs(Ie(),s)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,s)}),ot(lt(i),"handleYearMouseLeave",function(o,s){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,s)}),ot(lt(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ot(lt(i),"handleMonthChange",function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ot(lt(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),ot(lt(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ot(lt(i),"changeYear",function(o){i.setState(function(s){var l=s.date;return{date:Qs(l,o)}},function(){return i.handleYearChange(i.state.date)})}),ot(lt(i),"changeMonth",function(o){i.setState(function(s){var l=s.date;return{date:Zr(l,o)}},function(){return i.handleMonthChange(i.state.date)})}),ot(lt(i),"changeMonthYear",function(o){i.setState(function(s){var l=s.date;return{date:Qs(Zr(l,jr(o)),le(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ot(lt(i),"header",function(){var o=iL(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),s=[];return i.props.showWeekNumbers&&s.push(q.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map(function(l){var c=$u(o,l),h=i.formatWeekday(c,i.props.locale),d=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return q.createElement("div",{key:l,className:de("react-datepicker__day-name",d)},h)}))}),ot(lt(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(l,c,h){return c(Dn(l,"EEEE",h))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(l,c){return Dn(l,"EEE",c)}(o,s):function(l,c){return Dn(l,"EEEEEE",c)}(o,s)}),ot(lt(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:ug(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ot(lt(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),ot(lt(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=E3(i.state.date,i.props);break;case i.props.showYearPicker:o=function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=w.minDate,O=w.yearItemNumber,k=O===void 0?um:O,P=Lh(Lp(ug(x,k)),k).endPeriod,A=E&&le(E);return A&&A>P||!1}(i.state.date,i.props);break;default:o=S3(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(l=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=null);var c=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,h=i.props,d=h.previousMonthButtonLabel,p=h.previousYearButtonLabel,m=i.props,v=m.previousMonthAriaLabel,y=v===void 0?typeof d=="string"?d:"Previous Month":v,_=m.previousYearAriaLabel,T=_===void 0?typeof p=="string"?p:"Previous Year":_;return q.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:i.props.handleOnKeyDown,"aria-label":c?T:y},q.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},c?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ot(lt(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:_d(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ot(lt(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=O3(i.state.date,i.props);break;case i.props.showYearPicker:o=function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=w.maxDate,O=w.yearItemNumber,k=O===void 0?um:O,P=Lh(_d(x,k),k).startPeriod,A=E&&le(E);return A&&A0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),q.createElement("div",{className:s.join(" ")},Dn(o,i.props.dateFormat,i.props.locale))}),ot(lt(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return q.createElement(B1t,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:le(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ot(lt(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return q.createElement(z1t,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:jr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ot(lt(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return q.createElement(H1t,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ot(lt(i),"handleTodayButtonClick",function(o){i.props.onSelect(_3(),o),i.props.setPreSelection&&i.props.setPreSelection(_3())}),ot(lt(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return q.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),ot(lt(i),"renderDefaultHeader",function(o){var s=o.monthDate,l=o.i;return q.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),q.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(l!==0),i.renderMonthYearDropdown(l!==0),i.renderYearDropdown(l!==0)),q.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ot(lt(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,l=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var c=S3(i.state.date,i.props),h=T3(i.state.date,i.props),d=E3(i.state.date,i.props),p=O3(i.state.date,i.props),m=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return q.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(f3(f3({},i.state),{},{customHeaderCount:l,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:h,prevYearButtonDisabled:d,nextYearButtonDisabled:p})),m&&q.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ot(lt(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,l=s.showYearPicker,c=Lh(o,s.yearItemNumber),h=c.startPeriod,d=c.endPeriod;return q.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},l?"".concat(h," - ").concat(d):le(o))}),ot(lt(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ot(lt(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=Sd(i.state.date,s),c=0;c0;o.push(q.createElement("div",{key:p,ref:function(y){i.monthContainer=y},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:c}),q.createElement(G1t,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:c,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:v})))}return o}}),ot(lt(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?q.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),q.createElement(q1t,fg({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),ot(lt(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return q.createElement(eU,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ot(lt(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=Va(o)&&i.props.selected?"".concat(k3(o.getHours()),":").concat(k3(o.getMinutes())):"";if(i.props.showTimeInput)return q.createElement(K1t,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ot(lt(i),"renderAriaLiveRegion",function(){var o,s=Lh(i.state.date,i.props.yearItemNumber),l=s.startPeriod,c=s.endPeriod;return o=i.props.showYearPicker?"".concat(l," - ").concat(c):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?le(i.state.date):"".concat(oL(jr(i.state.date),i.props.locale)," ").concat(le(i.state.date)),q.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),ot(lt(i),"renderChildren",function(){if(i.props.children)return q.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=q.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return dr(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||Gr(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!Gr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Io(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||X1t;return q.createElement("div",{ref:this.containerRef},q.createElement(r,{className:de("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:um}}}]),n}(),nU=function(t){fr(n,q.Component);var e=pr(n);function n(r){var i;return hr(this,n),(i=e.call(this,r)).el=document.createElement("div"),i}return dr(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Jc.createPortal(this.props.children,this.el)}}]),n}(),txt=function(t){return!t.disabled&&t.tabIndex!==-1},rU=function(t){fr(n,q.Component);var e=pr(n);function n(r){var i;return hr(this,n),ot(lt(i=e.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(txt)}),ot(lt(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),ot(lt(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=q.createRef(),i}return dr(n,[{key:"render",value:function(){return this.props.enableTabLoop?q.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},q.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,q.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),ext=function(t){fr(n,q.Component);var e=pr(n);function n(){return hr(this,n),e.apply(this,arguments)}return dr(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,l=i.hidePopper,c=i.popperComponent,h=i.popperModifiers,d=i.popperPlacement,p=i.popperProps,m=i.targetComponent,v=i.enableTabLoop,y=i.popperOnKeyDown,_=i.portalId,T=i.portalHost;if(!l){var x=de("react-datepicker-popper",o);r=q.createElement(k1t,fg({modifiers:h,placement:d},p),function(E){var O=E.ref,k=E.style,P=E.placement,A=E.arrowProps;return q.createElement(rU,{enableTabLoop:v},q.createElement("div",{ref:O,style:k,className:x,"data-placement":P,onKeyDown:y},q.cloneElement(c,{arrowProps:A})))})}this.props.popperContainer&&(r=q.createElement(this.props.popperContainer,{},r)),_&&!l&&(r=q.createElement(nU,{portalId:_,portalHost:T},r));var w=de("react-datepicker-wrapper",s);return q.createElement(ubt,{className:"react-datepicker-manager"},q.createElement(A1t,null,function(E){var O=E.ref;return q.createElement("div",{ref:O,className:w},m)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),L3="react-datepicker-ignore-onclickoutside",nxt=A1(J1t),M2="Date input not valid.",rxt=function(t){fr(n,q.Component);var e=pr(n);function n(r){var i;return hr(this,n),ot(lt(i=e.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Ie()}),ot(lt(i),"calcInitialState",function(){var o,s=i.getPreSelection(),l=K7(i.props),c=X7(i.props),h=l&&io(s,Fi(l))?l:c&&Pl(s,xu(c))?c:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:h,highlightDates:C3(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ot(lt(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ot(lt(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ot(lt(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ot(lt(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:A2},function(){o||i.setState(function(l){return{focused:!!s&&l.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),ot(lt(i),"inputOk",function(){return jP(i.state.preSelection)}),ot(lt(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ot(lt(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ot(lt(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ot(lt(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ot(lt(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ot(lt(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ot(lt(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ot(lt(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),l=0;l0&&(y=y2(h,d.slice(0,h.length),new Date)),Va(y)||(y=new Date(h))),Va(y)&&T?y:null));i.props.showTimeSelectOnly&&i.props.selected&&!Gr(x,i.props.selected)&&(x=c_t(i.props.selected,x==null?{hours:Ri(i.props.selected),minutes:ji(i.props.selected),seconds:v2(i.props.selected)}:{hours:Ri(x),minutes:ji(x),seconds:v2(x)})),!x&&c.target.value||i.setSelected(x,c,!0)}}),ot(lt(i),"handleSelect",function(o,s,l){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(s),i.setSelected(o,s,!1,l),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var c=i.props,h=c.startDate,d=c.endDate;!h||d||io(o,h)||i.setOpen(!1)}}),ot(lt(i),"setSelected",function(o,s,l,c){var h=o;if(i.props.showYearPicker){if(h!==null&&q7(le(h),i.props))return}else if(i.props.showMonthYearPicker){if(h!==null&&G7(h,i.props))return}else if(h!==null&&j1(h,i.props))return;var d=i.props,p=d.onChange,m=d.selectsRange,v=d.startDate,y=d.endDate;if(!rl(i.props.selected,h)||i.props.allowSameDay||m)if(h!==null&&(!i.props.selected||l&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(h=v3(h,{hour:Ri(i.props.selected),minute:ji(i.props.selected),second:v2(i.props.selected)})),i.props.inline||i.setState({preSelection:h}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:c})),m){var _=v&&!y,T=v&&y;!v&&!y?p([h,null],s):_&&(io(h,v)?p([h,null],s):p([v,h],s)),T&&p([h,null],s)}else p(h,s);l||(i.props.onSelect(h,s),i.setState({inputValue:null}))}),ot(lt(i),"setPreSelection",function(o){var s=i.props.minDate!==void 0,l=i.props.maxDate!==void 0,c=!0;if(o){var h=Fi(o);if(s&&l)c=g_(o,i.props.minDate,i.props.maxDate);else if(s){var d=Fi(i.props.minDate);c=Pl(o,d)||rl(h,d)}else if(l){var p=xu(i.props.maxDate);c=io(o,p)||rl(h,p)}}c&&i.setState({preSelection:o})}),ot(lt(i),"handleTimeChange",function(o){var s=v3(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Ri(o),minute:ji(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),ot(lt(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),ot(lt(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var s=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(s==="ArrowDown"||s==="ArrowUp"){o.preventDefault();var l=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(l&&l.focus({preventScroll:!0}))}var c=Ie(i.state.preSelection);s==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===A2?(i.handleSelect(c,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(c)):i.setOpen(!1)):s==="Escape"?(o.preventDefault(),i.setOpen(!1)):s==="Tab"&&o.shiftKey&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:M2})}}else s!=="ArrowDown"&&s!=="ArrowUp"&&s!=="Enter"||i.onInputClick()}),ot(lt(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),ot(lt(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var s=o.key,l=Ie(i.state.preSelection);if(s==="Enter")o.preventDefault(),i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l);else if(s==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:M2});else if(!i.props.disabledKeyboardNavigation){var c;switch(s){case"ArrowLeft":c=UP(l,1);break;case"ArrowRight":c=$u(l,1);break;case"ArrowUp":c=d_t(l,1);break;case"ArrowDown":c=AP(l,1);break;case"PageUp":c=Sd(l,1);break;case"PageDown":c=go(l,1);break;case"Home":c=ug(l,1);break;case"End":c=_d(l,1)}if(!c)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:M2}));if(o.preventDefault(),i.setState({lastPreSelectChange:A2}),i.props.adjustDateOnChange&&i.setSelected(c),i.setPreSelection(c),i.props.inline){var h=jr(l),d=jr(c),p=le(l),m=le(c);h!==d||p!==m?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),ot(lt(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),ot(lt(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),ot(lt(i),"clear",function(){i.onClearClick()}),ot(lt(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),ot(lt(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?q.createElement(nxt,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:L3,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),ot(lt(i),"renderAriaLiveRegion",function(){var o,s=i.props,l=s.dateFormat,c=s.locale,h=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(Ko(i.props.startDate,{dateFormat:h,locale:c}),". ").concat(i.props.endDate?"End date: "+Ko(i.props.endDate,{dateFormat:h,locale:c}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(Ko(i.props.selected,{dateFormat:l,locale:c})):i.props.showYearPicker?"Selected year: ".concat(Ko(i.props.selected,{dateFormat:"yyyy",locale:c})):i.props.showMonthYearPicker?"Selected month: ".concat(Ko(i.props.selected,{dateFormat:"MMMM yyyy",locale:c})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(Ko(i.props.selected,{dateFormat:"yyyy, QQQ",locale:c})):"Selected date: ".concat(Ko(i.props.selected,{dateFormat:h,locale:c})),q.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),ot(lt(i),"renderDateInput",function(){var o,s=de(i.props.className,ot({},L3,i.state.open)),l=i.props.customInput||q.createElement("input",{type:"text"}),c=i.props.customInputRef||"ref",h=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(d,p,m){if(!d)return"";var v=Ko(d,m),y=p?Ko(p,m):"";return"".concat(v," - ").concat(y)}(i.props.startDate,i.props.endDate,i.props):Ko(i.props.selected,i.props);return q.cloneElement(l,(ot(o={},c,function(d){i.input=d}),ot(o,"value",h),ot(o,"onBlur",i.handleBlur),ot(o,"onChange",i.handleChange),ot(o,"onClick",i.onInputClick),ot(o,"onFocus",i.handleFocus),ot(o,"onKeyDown",i.onInputKeyDown),ot(o,"id",i.props.id),ot(o,"name",i.props.name),ot(o,"form",i.props.form),ot(o,"autoFocus",i.props.autoFocus),ot(o,"placeholder",i.props.placeholderText),ot(o,"disabled",i.props.disabled),ot(o,"autoComplete",i.props.autoComplete),ot(o,"className",de(l.props.className,s)),ot(o,"title",i.props.title),ot(o,"readOnly",i.props.readOnly),ot(o,"required",i.props.required),ot(o,"tabIndex",i.props.tabIndex),ot(o,"aria-describedby",i.props.ariaDescribedBy),ot(o,"aria-invalid",i.props.ariaInvalid),ot(o,"aria-labelledby",i.props.ariaLabelledBy),ot(o,"aria-required",i.props.ariaRequired),o))}),ot(lt(i),"renderClearButton",function(){var o=i.props,s=o.isClearable,l=o.selected,c=o.startDate,h=o.endDate,d=o.clearButtonTitle,p=o.clearButtonClassName,m=p===void 0?"":p,v=o.ariaLabelClose,y=v===void 0?"Close":v;return!s||l==null&&c==null&&h==null?null:q.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(m).trim(),"aria-label":y,onClick:i.onClearClick,title:d,tabIndex:-1})}),i.state=i.calcInitialState(),i}return dr(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,s;r.inline&&(o=r.selected,s=this.props.selected,o&&s?jr(o)!==jr(s)||le(o)!==le(s):o!==s)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:C3(this.props.highlightDates)}),i.focused||rl(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props.showIcon;return q.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&q.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},q.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?q.createElement(rU,{enableTabLoop:this.props.enableTabLoop},q.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=q.createElement(nU,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),q.createElement("div",null,this.renderInputContainer(),i)}return q.createElement(ext,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:um,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),ixt="input",A2="navigate";const bO=t=>{const{className:e,isClearable:n,selected:r,dateFormat:i}=t,o=!n||Fu(r),s=U.useRef();return b.jsxs("div",{className:"icon-input-container",children:[b.jsx(rxt,{...t,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??l7,className:de("icon-input-container__input form-control",e),ref:s}),o&&b.jsx(zt,{icon:$ft,className:"icon-input-container__icon",onClick:()=>{var l;return(l=s.current)==null?void 0:l.input.focus()}})]})},oxt=t=>b.jsx(bO,{...t,dateFormat:VP,showTimeSelect:!0,timeIntervals:10}),R2=({children:t,infoTooltip:e,checked:n,onChange:r})=>b.jsxs("p",{children:[b.jsx(O$,{inline:!0,checked:n,className:e?"me-2":"",onChange:r,children:t}),e&&b.jsx(f_,{placement:"right",children:e})]}),sxt=({isOpen:t,toggle:e})=>b.jsxs(Ca,{isOpen:t,toggle:e,centered:!0,size:"lg",children:[b.jsx(ka,{toggle:e,children:"Info"}),b.jsxs(Ss,{children:[b.jsxs("p",{children:["When the ",b.jsx("b",{children:b.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),b.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),b.jsxs("ul",{children:[b.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),b.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",b.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),b.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),axt=()=>{const[t,e]=zn();return b.jsxs(b.Fragment,{children:[b.jsx("span",{title:"What does this mean?",children:b.jsx(zt,{icon:Tk,style:{cursor:"pointer"},onClick:e})}),b.jsx(sxt,{isOpen:t,toggle:e})]})},j2=t=>typeof t=="string"?_a(t):t,lxt=t=>"shortCodeLength"in t&&"customSlug"in t&&"domain"in t,cxt=(t,e)=>function({mode:n,saving:r,onSave:i,initialState:o}){const[s,l]=U.useState(o),c=()=>l(o),h=Xg("deviceLongUrls"),d=n==="edit",p=lxt(s),m=n==="create-basic",v=O=>l({...s,tags:O}),y=(O,k)=>ss(O)?O:ss(k)?null:void 0,_=P1(async()=>i({...s,validSince:Ml(s.validSince)??null,validUntil:Ml(s.validUntil)??null,maxVisits:ss(s.maxVisits)?Number(s.maxVisits):null}).then(()=>!d&&c()).catch(()=>{}));U.useEffect(()=>{l(o)},[o]);const T=(O,k,P="text",A={},j={})=>b.jsx(Ai,{...j,children:b.jsx(dd,{id:O,type:P,placeholder:k,value:s[O]??"",onChange:A.onChange??(B=>l({...s,[O]:B.target.value})),...A})}),x=(O,k,P)=>{var A;return b.jsx(J0t,{icon:P,id:O,type:"url",placeholder:k,value:((A=s.deviceLongUrls)==null?void 0:A[O])??"",onChange:j=>{var B;return l({...s,deviceLongUrls:{...s.deviceLongUrls??{},[O]:y(j.target.value,(B=o.deviceLongUrls)==null?void 0:B[O])}})}})},w=(O,k,P={})=>b.jsx(oxt,{selected:s[O]?j2(s[O]):null,placeholderText:k,isClearable:!0,onChange:A=>l({...s,[O]:A}),...P}),E=b.jsxs(b.Fragment,{children:[b.jsx(Ai,{children:b.jsx(dd,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:O=>l({...s,longUrl:O.target.value})})}),b.jsxs(qr,{children:[m&&T("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),b.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:b.jsx(t,{selectedTags:s.tags??[],onChange:v})})]})]});return b.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:_,children:[m&&E,!m&&b.jsxs(b.Fragment,{children:[b.jsxs(qr,{children:[b.jsx("div",{className:de("mb-3",{"col-sm-6":h,"col-12":!h}),children:b.jsx(Bn,{title:"Main options",className:"mb-3",children:E})}),h&&b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(Bn,{title:"Device-specific long URLs",children:[b.jsx(Ai,{children:x("android","Android-specific redirection",Wft)}),b.jsx(Ai,{children:x("ios","iOS-specific redirection",Hft)}),x("desktop","Desktop-specific redirection",Yet)]})})]}),b.jsxs(qr,{children:[b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(Bn,{title:"Customize the short URL",children:[T("title","Title","text",{onChange:({target:O})=>l({...s,title:y(O.value,o.title)})}),!d&&p&&b.jsxs(b.Fragment,{children:[b.jsxs(qr,{children:[b.jsx("div",{className:"col-lg-6",children:T("customSlug","Custom slug","text",{disabled:ss(s.shortCodeLength)})}),b.jsx("div",{className:"col-lg-6",children:T("shortCodeLength","Short code length","number",{min:4,disabled:ss(s.customSlug)})})]}),b.jsx(e,{value:s.domain,onChange:O=>l({...s,domain:O})})]})]})}),b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(Bn,{title:"Limit access to the short URL",children:[T("maxVisits","Maximum number of visits allowed","number",{min:1}),b.jsx("div",{className:"mb-3",children:w("validSince","Enabled since...",{maxDate:s.validUntil?j2(s.validUntil):void 0})}),w("validUntil","Enabled until...",{minDate:s.validSince?j2(s.validSince):void 0})]})})]}),b.jsxs(qr,{children:[b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(Bn,{title:"Extra checks",children:[b.jsx(R2,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:O=>l({...s,validateUrl:O}),children:"Validate URL"}),!d&&p&&b.jsxs("p",{children:[b.jsx(O$,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:O=>l({...s,findIfExists:O}),children:"Use existing URL if found"}),b.jsx(axt,{})]})]})}),b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(Bn,{title:"Configure behavior",children:[b.jsx(R2,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:O=>l({...s,crawlable:O}),children:"Make it crawlable"}),b.jsx(R2,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:O=>l({...s,forwardQuery:O}),children:"Forward query params on redirect"})]})})]})]}),b.jsx("div",{className:"text-center",children:b.jsx(ke,{outline:!0,color:"primary",disabled:r||qi(s.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},uxt=({active:t,allText:e,onChange:n})=>b.jsxs(b.Fragment,{children:[b.jsx(Zt,{active:t==="all",onClick:()=>n("all"),children:e}),b.jsx(Zt,{divider:!0}),f_t.map(r=>b.jsx(Zt,{active:t===r,onClick:()=>n(r),children:f7(r)},r))]}),hxt=({startDate:t=null,endDate:e=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-md-6",children:b.jsx(bO,{selected:t,placeholderText:"Since...",isClearable:!0,maxDate:e??void 0,disabled:n,onChange:r})}),b.jsx("div",{className:"col-md-6",children:b.jsx(bO,{className:"mt-2 mt-md-0",selected:e,placeholderText:"Until...",isClearable:!0,minDate:t??void 0,disabled:n,onChange:o=>i(o&&xu(o))})})]}),iU=({onDatesChange:t,initialDateRange:e,defaultText:n,disabled:r,updatable:i=!1})=>{const o=nb(e),[s,l]=U.useState(o?e:void 0),[c,h]=U.useState(o?void 0:e),d=m=>{l(h7(m)?Jg:void 0),h(m),t(m)},p=m=>{l(m),h(void 0),t(p7(m))};return i&&f0t(()=>{const m=nb(e);m&&p(e),e&&!m&&d(e)},[e]),b.jsxs(Pa,{disabled:r,text:f7(s??c)??n,children:[b.jsx(uxt,{allText:n,active:s,onChange:p}),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{header:!0,children:"Custom:"}),b.jsx(Zt,{text:!0,children:b.jsx(hxt,{...c,onStartDateChange:m=>d({...c,startDate:m}),onEndDateChange:m=>d({...c,endDate:m})})})]})},dxt={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},fxt=({onChange:t,selected:e={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=e,l=c=>()=>t({...e,[c]:!(e!=null&&e[c])});return b.jsxs(Pa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[b.jsx(Zt,{header:!0,children:"Visits:"}),b.jsx(Zt,{active:i,onClick:l("excludeBots"),children:"Ignore visits from bots"}),r&&b.jsxs(b.Fragment,{children:[b.jsx(Zt,{divider:!0}),b.jsx(Zt,{header:!0,children:"Short URLs:"}),b.jsx(Zt,{active:o,onClick:l("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),b.jsx(Zt,{active:s,onClick:l("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{disabled:!ss(e),onClick:()=>t({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:b.jsx("i",{children:"Clear filters"})})]})},pxt=(t,e)=>({className:n,shortUrlsAmount:r,order:i,handleOrderBy:o})=>{const[s,l]=M1(),{search:c,tags:h,startDate:d,endDate:p,excludeBots:m,excludeMaxVisitsReached:v,excludePastValidUntil:y,tagsMode:_="any"}=s,T=Xg("filterDisabledUrls"),x=zu("visits"),w=cr(({startDate:P,endDate:A})=>({startDate:Ml(P)??void 0,endDate:Ml(A)??void 0}),l),E=cr(P=>qi(P)?void 0:P,P=>l({search:P})),O=P=>l({tags:P}),k=cr(()=>_==="any"?"all":"any",P=>l({tagsMode:P}));return b.jsxs("div",{className:de("short-urls-filtering-bar-container",n),children:[b.jsx(Wg,{initialValue:c,onChange:E}),b.jsxs(y1,{className:"mt-3",children:[b.jsx(e,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:O}),h.length>1&&b.jsxs(b.Fragment,{children:[b.jsx(ke,{outline:!0,color:"secondary",onClick:k,id:"tagsModeBtn","aria-label":"Change tags mode",children:b.jsx(zt,{className:"short-urls-filtering-bar__tags-icon",icon:_==="all"?G8:_et})}),b.jsx(fi,{target:"tagsModeBtn",placement:"left",children:_==="all"?"With all the tags.":"With any of the tags."})]})]}),b.jsxs(qr,{className:"flex-lg-row-reverse",children:[b.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:b.jsxs("div",{className:"d-md-flex",children:[b.jsx("div",{className:"flex-fill",children:b.jsx(iU,{defaultText:"All short URLs",initialDateRange:d7(d,p),onDatesChange:w})}),b.jsx(fxt,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:m??(x==null?void 0:x.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:y},onChange:l,supportsDisabledFiltering:T})]})}),b.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:b.jsx(t,{amount:r})}),b.jsx("div",{className:"col-6 d-lg-none mt-3",children:b.jsx(Yg,{prefixed:!1,items:dxt,order:i,onChange:o})})]})]})};function hm({currentOrder:t,field:e,className:n="ms-1"}){return!t.dir||t.field!==e?null:b.jsx(zt,{icon:t.dir==="ASC"?det:Tet,className:n})}const ih=2,xO="...",oU=(t,e)=>{const n=LP(bz(ih,t-ih),Az(e-1,t+ih)+1);return t-ih>ih&&n.unshift(xO),t+iht===xO,sU=t=>pg(t)?t:Qn(t),aU=(t,e)=>pg(t)?`${t}_${e}`:`${t}`,mxt=({paginator:t,currentQueryString:e=""})=>{const{currentPage:n=0,pagesCount:r=0}=t??{},i=Bu(),o=l=>`${i}/list-short-urls/${l}${e}`;if(r<=1)return b.jsx("div",{className:"pb-3"});const s=()=>oU(n,r).map((l,c)=>b.jsx(nu,{disabled:pg(l),active:n===l,children:b.jsx(ru,{tag:nn,to:o(l),children:sU(l)})},aU(l,c)));return b.jsxs(eP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[b.jsx(nu,{disabled:n===1,children:b.jsx(ru,{previous:!0,tag:nn,to:o(n-1)})}),s(),b.jsx(nu,{disabled:n>=r,children:b.jsx(ru,{next:!0,tag:nn,to:o(n+1)})})]})},gxt={field:"dateCreated",dir:"DESC"},vxt=(t,e)=>zl(({listShortUrls:n,shortUrlsList:r})=>{var i,o,s;const{page:l}=ju(),c=Un(),[h,d]=M1(),p=GP(),{tags:m,search:v,startDate:y,endDate:_,orderBy:T,tagsMode:x,excludeBots:w,excludePastValidUntil:E,excludeMaxVisitsReached:O}=h,[k,P]=U.useState(T??((i=p.shortUrlsList)==null?void 0:i.defaultOrdering)??gxt),{pagination:A}=(r==null?void 0:r.shortUrls)??{},j=w??((o=p.visits)==null?void 0:o.excludeBots),B=Xg("excludeBotsOnShortUrls"),N=(J,et)=>{d({orderBy:{field:J,dir:et}}),P({field:J,dir:et})},V=J=>()=>N(J,x1(J,k.field,k.dir)),Y=J=>b.jsx(hm,{currentOrder:k,field:J}),nt=cr(J=>[...new Set([...m,J])],J=>d({tags:J})),K=({field:J,dir:et})=>B&&j&&J==="visits"?{field:"nonBotVisits",dir:et}:{field:J,dir:et};return U.useEffect(()=>{n({page:l,searchTerm:v,tags:m,startDate:y,endDate:_,orderBy:K(k),tagsMode:x,excludePastValidUntil:E,excludeMaxVisitsReached:O})},[l,v,m,y,_,k.field,k.dir,x,E,O]),b.jsxs(b.Fragment,{children:[b.jsx(e,{shortUrlsAmount:(s=r.shortUrls)==null?void 0:s.pagination.totalItems,order:k,handleOrderBy:N,className:"mb-3"}),b.jsxs(zi,{body:!0,className:"pb-0",children:[b.jsx(t,{shortUrlsList:r,orderByColumn:V,renderOrderIcon:Y,onTagClick:nt}),b.jsx(mxt,{paginator:A,currentQueryString:c.search})]})]})},()=>[co.visits]),yxt=t=>({orderByColumn:e,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,className:o})=>{const{error:s,loading:l,shortUrls:c}=r,h=de({"short-urls-table__header-cell--with-action":!!e}),d=de("short-urls-table__header-cell",h),p=de("table table-hover responsive-table short-urls-table",o),m=()=>s?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&qi(c==null?void 0:c.data)?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(v=>b.jsx(t,{shortUrl:v,onTagClick:i},v.shortUrl));return b.jsxs("table",{className:p,children:[b.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:b.jsxs("tr",{children:[b.jsxs("th",{className:d,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),b.jsxs("th",{className:d,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),b.jsxs("th",{className:"short-urls-table__header-cell",children:[b.jsxs("span",{className:h,onClick:e==null?void 0:e("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",b.jsxs("span",{className:h,onClick:e==null?void 0:e("longUrl"),children:[b.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),b.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),b.jsx("th",{className:d,onClick:e==null?void 0:e("visits"),children:b.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),b.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),b.jsx("tbody",{children:m()})]})},_xt=(t,e)=>{t.serviceFactory("ShortUrlsList",vxt,"ShortUrlsTable","ShortUrlsFilteringBar"),t.decorator("ShortUrlsList",e(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),t.serviceFactory("ShortUrlsTable",yxt,"ShortUrlsRow"),t.serviceFactory("ShortUrlsRow",W0t,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),t.serviceFactory("ShortUrlsRowMenu",Y0t,"DeleteShortUrlModal","QrCodeModal"),t.serviceFactory("CreateShortUrlResult",R0t,"useTimeoutToggle"),t.serviceFactory("ShortUrlForm",cxt,"TagsSelector","DomainSelector"),t.serviceFactory("CreateShortUrl",X_t,"ShortUrlForm","CreateShortUrlResult"),t.decorator("CreateShortUrl",e(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),t.serviceFactory("EditShortUrl",p0t,"ShortUrlForm"),t.decorator("EditShortUrl",e(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),t.serviceFactory("DeleteShortUrlModal",()=>j0t),t.decorator("DeleteShortUrlModal",e(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),t.serviceFactory("QrCodeModal",B0t,"ImageDownloader"),t.serviceFactory("ShortUrlsFilteringBar",pxt,"ExportShortUrlsBtn","TagsSelector"),t.serviceFactory("ExportShortUrlsBtn",N0t,"apiClientFactory","ReportExporter"),t.serviceFactory("shortUrlsListReducerCreator",z_t,"listShortUrls","editShortUrl","createShortUrl"),t.serviceFactory("shortUrlsListReducer",Se("reducer"),"shortUrlsListReducerCreator"),t.serviceFactory("shortUrlCreationReducerCreator",G0t,"createShortUrl"),t.serviceFactory("shortUrlCreationReducer",Se("reducer"),"shortUrlCreationReducerCreator"),t.serviceFactory("shortUrlEditionReducerCreator",Q0t,"editShortUrl"),t.serviceFactory("shortUrlEditionReducer",Se("reducer"),"shortUrlEditionReducerCreator"),t.serviceFactory("shortUrlDeletionReducerCreator",F_t,"deleteShortUrl"),t.serviceFactory("shortUrlDeletionReducer",Se("reducer"),"shortUrlDeletionReducerCreator"),t.serviceFactory("shortUrlDetailReducerCreator",q0t,"apiClientFactory"),t.serviceFactory("shortUrlDetailReducer",Se("reducer"),"shortUrlDetailReducerCreator"),t.serviceFactory("listShortUrls",$_t,"apiClientFactory"),t.serviceFactory("createShortUrl",Z0t,"apiClientFactory"),t.serviceFactory("resetCreateShortUrl",Se("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),t.serviceFactory("deleteShortUrl",I_t,"apiClientFactory"),t.serviceFactory("resetDeleteShortUrl",Se("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),t.serviceFactory("shortUrlDeleted",()=>y7),t.serviceFactory("getShortUrlDetail",Se("getShortUrlDetail"),"shortUrlDetailReducerCreator"),t.serviceFactory("editShortUrl",X0t,"apiClientFactory")},bxt=({tag:t,toggle:e,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:l,deleted:c,errorData:h}=i;return b.jsxs(Ca,{toggle:e,isOpen:n,centered:!0,onClosed:()=>c&&o(t),children:[b.jsx(ka,{toggle:e,className:"text-danger",children:"Delete tag"}),b.jsxs(Ss,{children:["Are you sure you want to delete tag ",b.jsx("b",{children:t}),"?",l&&b.jsx(Ii,{type:"error",small:!0,className:"mt-2",children:b.jsx(ya,{errorData:h,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),b.jsxs(Nu,{children:[b.jsx(ke,{color:"link",onClick:e,children:"Cancel"}),b.jsx(ke,{color:"danger",disabled:s,onClick:async()=>{await r(t),e()},children:s?"Deleting tag...":"Delete tag"})]})]})};function D1(){return(D1=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function wO(t){var e=U.useRef(t),n=U.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var mg=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t0:T.buttons>0)&&i.current?o(M3(i.current,T,l.current)):_(!1)},y=function(){return _(!1)};function _(T){var x=c.current,w=SO(i.current),E=T?w.addEventListener:w.removeEventListener;E(x?"touchmove":"mousemove",v),E(x?"touchend":"mouseup",y)}return[function(T){var x=T.nativeEvent,w=i.current;if(w&&(A3(x),!function(O,k){return k&&!dm(O)}(x,c.current)&&w)){if(dm(x)){c.current=!0;var E=x.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),o(M3(w,x,l.current)),_(!0)}},function(T){var x=T.which||T.keyCode;x<37||x>40||(T.preventDefault(),s({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},_]},[s,o]),d=h[0],p=h[1],m=h[2];return U.useEffect(function(){return m},[m]),q.createElement("div",D1({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:i,onKeyDown:p,tabIndex:0,role:"slider"}))}),aL=function(t){return t.filter(Boolean).join(" ")},uU=function(t){var e=t.color,n=t.left,r=t.top,i=r===void 0?.5:r,o=aL(["react-colorful__pointer",t.className]);return q.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},q.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Sr=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},xxt=function(t){return Oxt(TO(t))},TO=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Sr(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Sr(parseInt(t.substring(6,8),16)/255,2):1}},wxt=function(t){return Ext(Txt(t))},Sxt=function(t){var e=t.s,n=t.v,r=t.a,i=(200-e)*n/100;return{h:Sr(t.h),s:Sr(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:Sr(i/2),a:Sr(r,2)}},EO=function(t){var e=Sxt(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Txt=function(t){var e=t.h,n=t.s,r=t.v,i=t.a;e=e/360*6,n/=100,r/=100;var o=Math.floor(e),s=r*(1-n),l=r*(1-(e-o)*n),c=r*(1-(1-e+o)*n),h=o%6;return{r:Sr(255*[r,l,s,s,c,r][h]),g:Sr(255*[c,r,r,l,s,s][h]),b:Sr(255*[s,s,c,r,r,l][h]),a:Sr(i,2)}},fy=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ext=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=i<1?fy(Sr(255*i)):"";return"#"+fy(e)+fy(n)+fy(r)+o},Oxt=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=Math.max(e,n,r),s=o-Math.min(e,n,r),l=s?o===e?(n-r)/s:o===n?2+(r-e)/s:4+(e-n)/s:0;return{h:Sr(60*(l<0?l+6:l)),s:Sr(o?s/o*100:0),v:Sr(o/255*100),a:i}},Cxt=q.memo(function(t){var e=t.hue,n=t.onChange,r=aL(["react-colorful__hue",t.className]);return q.createElement("div",{className:r},q.createElement(cU,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:mg(e+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Sr(e),"aria-valuemax":"360","aria-valuemin":"0"},q.createElement(uU,{className:"react-colorful__hue-pointer",left:e/360,color:EO({h:e,s:100,v:100,a:1})})))}),kxt=q.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:EO({h:e.h,s:100,v:100,a:1})};return q.createElement("div",{className:"react-colorful__saturation",style:r},q.createElement(cU,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:mg(e.s+100*i.left,0,100),v:mg(e.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Sr(e.s)+"%, Brightness "+Sr(e.v)+"%"},q.createElement(uU,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:EO(e)})))}),hU=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},Pxt=function(t,e){return t.toLowerCase()===e.toLowerCase()||hU(TO(t),TO(e))};function Lxt(t,e,n){var r=wO(n),i=U.useState(function(){return t.toHsva(e)}),o=i[0],s=i[1],l=U.useRef({color:e,hsva:o});U.useEffect(function(){if(!t.equal(e,l.current.color)){var h=t.toHsva(e);l.current={hsva:h,color:e},s(h)}},[e,t]),U.useEffect(function(){var h;hU(o,l.current.hsva)||t.equal(h=t.fromHsva(o),l.current.color)||(l.current={hsva:o,color:h},r(h))},[o,t,r]);var c=U.useCallback(function(h){s(function(d){return Object.assign({},d,h)})},[]);return[o,c]}var Mxt=typeof window<"u"?U.useLayoutEffect:U.useEffect,Axt=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},R3=new Map,Rxt=function(t){Mxt(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!R3.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,R3.set(e,n);var r=Axt();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},jxt=function(t){var e=t.className,n=t.colorModel,r=t.color,i=r===void 0?n.defaultColor:r,o=t.onChange,s=lU(t,["className","colorModel","color","onChange"]),l=U.useRef(null);Rxt(l);var c=Lxt(n,i,o),h=c[0],d=c[1],p=aL(["react-colorful",e]);return q.createElement("div",D1({},s,{ref:l,className:p}),q.createElement(kxt,{hsva:h,onChange:d}),q.createElement(Cxt,{hue:h.h,onChange:d,className:"react-colorful__last-control"}))},Nxt={defaultColor:"000",toHsva:xxt,fromHsva:function(t){return wxt({h:t.h,s:t.s,v:t.v,a:1})},equal:Pxt},Dxt=function(t){return q.createElement(jxt,D1({},t,{colorModel:Nxt}))};const Ixt=({getColorForKey:t})=>({tag:e,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[l,c]=U.useState(e),[h,d]=U.useState(t(e)),[p,m,,v]=zn(),{editing:y,error:_,edited:T,errorData:x}=s,w=P1(async()=>{await n({oldName:e,newName:l,color:h}),r()}),E=cr(v,()=>T&&i({oldName:e,newName:l,color:h}));return b.jsx(Ca,{isOpen:o,toggle:r,centered:!0,onClosed:E,children:b.jsxs("form",{name:"editTag",onSubmit:w,children:[b.jsx(ka,{toggle:r,children:"Edit tag"}),b.jsxs(Ss,{children:[b.jsxs(y1,{children:[b.jsx("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:h,borderColor:h},onClick:m,children:b.jsx(zt,{icon:fet,className:"edit-tag-modal__color-icon"})}),b.jsx(tP,{isOpen:p,toggle:m,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:b.jsx(Dxt,{color:h,onChange:d})}),b.jsx(dd,{value:l,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),_&&b.jsx(Ii,{type:"error",small:!0,className:"mt-2",children:b.jsx(ya,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]}),b.jsxs(Nu,{children:[b.jsx(ke,{type:"button",color:"link",onClick:r,children:"Cancel"}),b.jsx(ke,{color:"primary",disabled:y,children:y?"Saving...":"Save"})]})]})})},Fc={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},lL=Symbol("Create new tag"),dU=Symbol("No options"),uh=()=>{},mr=q.createContext(void 0);function j3(t,e){return t===e?[]:t.filter(n=>!e.includes(n))}function Fxt(t){return t.selectionStart===0&&t.selectionEnd===0}function Bxt(t){const e=t.value.length;return t.selectionStart===e&&t.selectionEnd===e}function I1(t){return`${t}-label`}function $xt(t){return`${t}-combobox`}function zxt(t){return`${t}-input`}function fU(t){return`${t}-listbox`}function pU(t,e){return`${t}-option-${Gxt(e)}`}function Uxt(t,e){if((t==null?void 0:t.value)===lL&&t.disabled===!1)return{value:e,label:e}}function Vxt(t){const e=Uxt(t.activeOption,t.value)||t.activeOption||Qxt(t.value,t.options);return e&&!e.disabled?e:void 0}function Hxt(t,e,n){const r=e-1;return t>r?n:tn===t.value)}const qxt=/[-\\^$*+?.()|[\]{}]/g;function mU(t){return t.replace(qxt,"\\$&")}function gU(t){return new RegExp(mU(t),"i")}function Kxt(t){return new RegExp(`^${mU(t)}$`,"i")}function Xxt(t,e){if(t){const n=gU(t);return e.filter(r=>n.test(r.label))}else return[].concat(e)}function Qxt(t,e){const n=Kxt(t);return e.find(r=>n.test(r.label))||null}const Jxt={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function twt({allowBackspace:t,ariaDescribedBy:e,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:s,isDisabled:l,isInvalid:c,managerRef:h}=U.useContext(mr),d=U.useMemo(()=>{const y=B=>{const N=B.currentTarget.value;h.current.updateInputValue(N),document.activeElement===s.current&&h.current.listBoxExpand()},_=()=>{h.current.listBoxExpand()},T=B=>{var N;((N=o.current)==null?void 0:N.contains(B.relatedTarget))===!1&&h.current.listBoxCollapse()},x=()=>{h.current.listBoxExpand()},w=B=>{const{activeIndex:N,isExpanded:V}=h.current.state;V?(B.preventDefault(),h.current.updateActiveIndex(N+1)):(Bxt(B.currentTarget)||B.altKey)&&(B.preventDefault(),h.current.listBoxExpand())},E=B=>{const{activeIndex:N,isExpanded:V}=h.current.state;V?(B.preventDefault(),h.current.updateActiveIndex(N-1)):Fxt(B.currentTarget)&&(B.preventDefault(),h.current.listBoxExpand())},O=B=>{const{isExpanded:N,options:V}=h.current.state;N&&(B.preventDefault(),h.current.updateActiveIndex(V.length-1))},k=B=>{h.current.state.isExpanded&&(B.preventDefault(),h.current.updateActiveIndex(0))},P=()=>{h.current.state.isExpanded?h.current.listBoxCollapse():h.current.updateInputValue("")},A=()=>{if(t){const{value:B,selected:N}=h.current.state,V=N[N.length-1];B===""&&V&&h.current.selectTag(V)}},j=B=>{h.current.state.isExpanded&&(B.preventDefault(),h.current.selectTag())};return{onBlur:T,onChange:y,onClick:x,onFocus:_,onKeyDown:B=>{if(B.key===Fc.UpArrow)return E(B);if(B.key===Fc.DownArrow)return w(B);if(B.key===Fc.PageUp)return k(B);if(B.key===Fc.PageDown)return O(B);if(B.key===Fc.Escape)return P();if(B.key===Fc.Backspace)return A();if(r.includes(B.key))return j(B)}}},[t,o,r,s,h]),{activeOption:p,isExpanded:m,value:v}=h.current.state;return{...Jxt,"aria-autocomplete":"list","aria-activedescendant":p?pU(i,p):void 0,"aria-controls":fU(i),"aria-describedby":e||void 0,"aria-disabled":l,"aria-errormessage":c&&n||void 0,"aria-invalid":c,"aria-labelledby":I1(i),"aria-expanded":m,id:zxt(i),onBlur:l?uh:d.onBlur,onChange:l?uh:d.onChange,onClick:l?uh:d.onClick,onFocus:l?uh:d.onFocus,onKeyDown:l?uh:d.onKeyDown,ref:s,role:"combobox",type:"text",value:v}}const ewt={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},nwt=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function rwt({allowResize:t=!0,text:e}){const n=U.useRef(null),{inputRef:r}=U.useContext(mr),[i,o]=U.useState(null);return U.useLayoutEffect(()=>{if(t&&r.current&&n.current&&window.getComputedStyle){const s=window.getComputedStyle(r.current);nwt.forEach(l=>{const c=s.getPropertyValue(l);n.current.style.setProperty(l,c)})}},[t,r,n]),U.useLayoutEffect(()=>{var s;if(t){const l=Math.ceil(((s=n.current)==null?void 0:s.scrollWidth)??0)+2;i!==l&&o(l)}},[t,e,i]),{width:i,sizerProps:{ref:n,style:ewt}}}function iwt(){const{id:t,inputRef:e,listBoxRef:n,managerRef:r}=U.useContext(mr),i=r.current.state.activeIndex===-1,o=U.useCallback(s=>{var l;s.target!==e.current&&((l=e.current)==null||l.focus({preventScroll:!0}))},[e]);return U.useEffect(()=>{var s;i&&((s=n.current)==null||s.scrollTo({top:0}))},[n,i]),{"aria-labelledby":I1(t),id:fU(t),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function owt({activateFirstOption:t,allowNew:e,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:s,onCollapse:l,onExpand:c,onInput:h,onShouldCollapse:d,onShouldExpand:p,onValidate:m,selected:v,suggestions:y,suggestionsTransform:_}){const T=U.useRef(),[x,w]=U.useState(null),[E,O]=U.useState(!1),[k,P]=U.useState(""),A=U.useMemo(()=>{const K=_(k,y);return k&&(e&&K.push({disabled:typeof m=="function"?!m(k):!1,label:r,value:lL}),K.length===0&&K.push({disabled:!0,label:i,value:dU})),K},[e,r,i,m,y,_,k]),j=x?CO(x,A):-1,B=t?Math.max(j,0):j,N=A[B],V={activeIndex:B,activeOption:N,isExpanded:E,options:A,selected:v,value:k},Y={tagsAdded:T.current?j3(v,T.current.state.selected):[],tagsDeleted:T.current?j3(T.current.state.selected,v):[]},nt={listBoxCollapse(){E&&((d==null?void 0:d(V.value))??!0)&&(O(!1),w(null),l==null||l())},listBoxExpand(){!E&&((p==null?void 0:p(V.value))??!0)&&(O(!0),w(A[B]),c==null||c())},updateActiveIndex(K){const J=Hxt(K,A.length,t?0:-1);w(A[J])},updateInputValue(K){k!==K&&(P(K),h==null||h(K))},selectTag(K){if(K??(K=Vxt(V)),K){const J=CO(K,V.selected);J>-1?s(J):o(K),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return T.current={...nt,flags:Y,state:V},T}function swt(t){const{id:e,inputRef:n,managerRef:r}=U.useContext(mr),i=U.useRef(null),o=r.current.state.options[t],s=t===r.current.state.activeIndex,l=o.disabled??!1,c=CO(o,r.current.state.selected)>-1,h=U.useCallback(()=>{var p;r.current.selectTag(),(p=n.current)==null||p.focus()},[n,r]),d=U.useCallback(()=>{t!==r.current.state.activeIndex&&r.current.updateActiveIndex(t)},[t,r]);return U.useEffect(()=>{var p;s&&((p=i.current)==null||p.scrollIntoView({block:"nearest",inline:"start"}))},[s,r.current.state.options]),{option:{...o,active:s,disabled:l,index:t,selected:c},optionProps:{"aria-disabled":l,"aria-posinset":t+1,"aria-selected":l?void 0:c,"aria-setsize":r.current.state.options.length,id:pU(e,o),onClick:h,onMouseDown:d,ref:i,role:"option",tabIndex:-1}}}function awt({inputRef:t,managerRef:e}){return U.useRef({input:{blur(){var n;(n=t.current)==null||n.blur()},focus(){var n;(n=t.current)==null||n.focus()},get value(){return e.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),e.current.updateInputValue(n)}},listBox:{collapse(){e.current.listBoxCollapse()},expand(){e.current.listBoxExpand()},get activeOption(){return e.current.state.activeOption},get isExpanded(){return e.current.state.isExpanded}},select(n){e.current.selectTag(n)}}).current}function lwt({onBlur:t,onFocus:e}){const[n,r]=U.useState(!1),{id:i,inputRef:o}=U.useContext(mr),s=U.useRef(null),l=U.useMemo(()=>({"aria-describedby":I1(i),id:i,onFocus(){r(!0),e==null||e()},onBlur(){var c;(c=s.current)!=null&&c.contains(document.activeElement)||(r(!1),t==null||t())},onClick(){var c;document.activeElement===s.current&&((c=o.current)==null||c.focus())},ref:s,tabIndex:-1}),[o,i,t,e,s]);return{isActive:n,rootProps:l}}function cwt(t,e){const{isDisabled:n,managerRef:r}=U.useContext(mr),i=r.current.state.selected[t],o=U.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:lb(e,i.label),onClick:n?uh:o}}}function uwt(){var t;const{inputRef:e,managerRef:n}=U.useContext(mr),r=U.useRef(),i=n.current.flags.tagsDeleted.length,o=(t=r.current)==null?void 0:t.contains(document.activeElement);return U.useLayoutEffect(()=>{var s,l;if(i){const c=(s=r.current)==null?void 0:s.contains(document.activeElement);o&&!c&&((l=e.current)==null||l.focus({preventScroll:!0}))}},[e,o,r,i]),{listRef:r}}const hwt={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function dwt({ariaAddedText:t,ariaDeletedText:e}){const{managerRef:n}=U.useContext(mr),r=U.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(lb(t,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(lb(e,i.label))}),q.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:hwt},r.current.join(` +`))}function fwt({children:t}){const{classNames:e,comboBoxRef:n,id:r}=U.useContext(mr);return q.createElement("div",{className:e.comboBox,id:$xt(r),ref:n},t)}const pwt=({classNames:t,text:e})=>q.createElement("mark",{className:t.highlight},e);function mwt({option:t,query:e,render:n=pwt}){const{classNames:r}=U.useContext(mr);if(t.value===lL||t.value===dU)return q.createElement(q.Fragment,null,lb(t.label,e));if(e){const i=Yxt(t.label,e);if(i){const o=n({text:i[1],classNames:r});return q.createElement(q.Fragment,null,i[0],o,i[2])}}return q.createElement(q.Fragment,null,t.label)}const gwt=q.memo(mwt),vwt=({classNames:t,inputWidth:e,...n})=>q.createElement("input",{className:t.input,style:{width:e},...n});function ywt({allowBackspace:t=!0,allowResize:e=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:s=vwt}){const{classNames:l}=U.useContext(mr),{value:c,...h}=twt({allowBackspace:t,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),d=c.lengthq.createElement("div",{className:e.label,id:n},t);function bwt({children:t,render:e=_wt}){const{classNames:n,id:r}=U.useContext(mr);return e({children:t,classNames:n,id:I1(r)})}function xwt({children:t}){const{classNames:e,managerRef:n}=U.useContext(mr),r=iwt();return!n.current.state.isExpanded||q.Children.count(t)===0?null:q.createElement("div",{className:e.listBox,...r},t)}const wwt=({children:t,classNames:e,option:n,...r})=>{const i=[e.option];return n.active&&i.push(e.optionIsActive),q.createElement("div",{className:i.join(" "),...r},t)};function Swt({children:t,index:e,render:n=wwt}){const{classNames:r}=U.useContext(mr),{option:i,optionProps:o}=swt(e);return n({classNames:r,children:t,option:i,...o})}const Twt=({children:t,classNames:e,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const s=[e.root];return n&&s.push(e.rootIsActive),r&&s.push(e.rootIsDisabled),i&&s.push(e.rootIsInvalid),q.createElement("div",{className:s.join(" "),...o},t)};function Ewt({children:t,onBlur:e,onFocus:n,render:r=Twt}){const{classNames:i,isDisabled:o,isInvalid:s}=U.useContext(mr),{isActive:l,rootProps:c}=lwt({onBlur:e,onFocus:n});return r({children:t,classNames:i,isActive:l,isDisabled:o,isInvalid:s,...c})}const Owt=({classNames:t,tag:e,...n})=>q.createElement("button",{type:"button",className:t.tag,...n},q.createElement("span",{className:t.tagName},e.label));function Cwt({render:t=Owt,index:e,title:n}){const{classNames:r}=U.useContext(mr),{tag:i,tagProps:o}=cwt(e,n);return t({classNames:r,tag:i,...o})}function kwt({children:t,label:e}){const{classNames:n}=U.useContext(mr),{listRef:r}=uwt();return q.createElement("ul",{className:n.tagList,"aria-label":e,ref:r,role:"list"},t.map(i=>q.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const Pwt={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},Lwt=[Fc.Enter];function Mwt({activateFirstOption:t=!1,allowBackspace:e=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:s,ariaDeletedText:l="Removed tag %value%",classNames:c=Pwt,collapseOnSelect:h=!1,deleteButtonText:d="Remove %value% from the list",delimiterKeys:p=Lwt,id:m="react-tags",isDisabled:v=!1,isInvalid:y=!1,labelText:_="Select tags",newOptionText:T="Add %value%",noOptionsText:x="No options found for %value%",onAdd:w,onBlur:E,onCollapse:O,onDelete:k,onExpand:P,onFocus:A,onInput:j,onShouldCollapse:B,onShouldExpand:N,onValidate:V,placeholderText:Y="Add a tag",renderHighlight:nt,renderInput:K,renderLabel:J,renderOption:et,renderRoot:ct,renderTag:G,selected:$=[],suggestions:I=[],suggestionsTransform:H=Xxt,tagListLabelText:it="Selected tags"},W){const Q=U.useRef(null),tt=U.useRef(null),rt=U.useRef(null),mt=owt({activateFirstOption:t,allowNew:n,collapseOnSelect:h,newOptionText:T,noOptionsText:x,onAdd:w,onDelete:k,onCollapse:O,onExpand:P,onInput:j,onShouldCollapse:B,onShouldExpand:N,onValidate:V,selected:$,suggestions:I,suggestionsTransform:H}),M=awt({inputRef:tt,managerRef:mt});return W&&(typeof W=="function"?W(M):W.current=M),q.createElement(mr.Provider,{value:{classNames:c,comboBoxRef:Q,id:m,inputRef:tt,isDisabled:v,isInvalid:y,listBoxRef:rt,managerRef:mt}},q.createElement(Ewt,{onBlur:E,onFocus:A,render:ct},q.createElement(bwt,{render:J},_),q.createElement(kwt,{label:it},mt.current.state.selected.map((R,z)=>q.createElement(Cwt,{key:OO(R),index:z,render:G,title:d}))),q.createElement(fwt,null,q.createElement(ywt,{allowBackspace:e,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:s,delimiterKeys:p,placeholderText:Y,render:K}),q.createElement(xwt,null,mt.current.state.options.map((R,z)=>q.createElement(Swt,{key:OO(R),index:z,render:et},q.createElement(gwt,{option:R,query:mt.current.state.value,render:nt}))))),q.createElement(dwt,{ariaAddedText:i,ariaDeletedText:l})))}const Awt=q.forwardRef(Mwt),Rwt=/\s+/g,vU=t=>t.trim().toLowerCase().replace(Rwt,"-"),yU=({tag:t,colorGenerator:e})=>b.jsx("div",{style:{backgroundColor:e.getColorForKey(t)},className:"tag-bullet"}),_U="Tag not found",bU="Add tag",jwt=t=>t!==_U,Nwt=t=>t===bU,N3=t=>({label:t,value:t}),Dwt=t=>({tag:e,onClick:n})=>b.jsx(KP,{colorGenerator:t,text:e.label,clearable:!0,className:"react-tags__tag",onClose:n}),Iwt=(t,e)=>({option:n,classNames:r,...i})=>{const o=jwt(n.label),s=Nwt(n.label);return b.jsx("div",{className:de(r.option,{[r.optionIsActive]:o&&n.active,"react-tags__listbox-option--not-selectable":!o}),...i,children:o?b.jsxs(b.Fragment,{children:[!s&&b.jsx(yU,{tag:`${n.label}`,colorGenerator:t}),s?b.jsxs("i",{children:['Add "',vU((e==null?void 0:e.input.value)??""),'"']}):n.label]}):b.jsx("i",{children:n.label})})},Fwt=t=>({selectedTags:e,onChange:n,placeholder:r,listTags:i,tagsList:o,allowNew:s=!0})=>{U.useEffect(()=>{i()},[]);const l=zu("shortUrlCreation"),c=(l==null?void 0:l.tagFilteringMode)??"startsWith",h=Bl();return b.jsx(Awt,{ref:h,selected:e.map(N3),suggestions:o.tags.filter(d=>!e.includes(d)).map(N3),renderTag:Dwt(t),renderOption:Iwt(t,h.current),activateFirstOption:!0,allowNew:s,newOptionText:bU,noOptionsText:_U,placeholderText:r??"Add tags to the URL",delimiterKeys:["Enter","Tab",","],suggestionsTransform:(d,p)=>{const m=d.toLowerCase().trim();return m.length<1?[]:[...p.filter(({label:v})=>c==="includes"?v.includes(m):v.startsWith(m))].slice(0,5)},onDelete:d=>{const p=[...e];p.splice(d,1),n(p)},onAdd:({label:d})=>n([...e,...d.split(",").map(vU)])})},kO="shlink/tagDelete",Bwt={deleting:!1,deleted:!1,error:!1},xU=lr(`${kO}/tagDeleted`),$wt=t=>{const e=di(`${kO}/deleteTag`,async r=>{await t().deleteTags([r])}),{reducer:n}=Br({name:kO,initialState:Bwt,reducers:{},extraReducers:r=>{r.addCase(e.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(e.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:La(o)})),r.addCase(e.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:e}},cL="shlink/tagEdit",zwt={editing:!1,edited:!1,error:!1},wU=lr(`${cL}/tagEdited`),Uwt=(t,e)=>di(`${cL}/editTag`,async({oldName:n,newName:r,color:i})=>(await t().editTag(n,r),e.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Vwt=t=>Br({name:cL,initialState:zwt,reducers:{},extraReducers:e=>{e.addCase(t.pending,()=>({editing:!0,edited:!1,error:!1})),e.addCase(t.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:La(r)})),e.addCase(t.fulfilled,(n,{payload:r})=>({...Rz(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),uL="shlink/tagsList",N2={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},D3=(t,e)=>n=>n===t?e:n,I3=(t,e)=>kP(n=>n===e,t),Hwt=(t,e)=>t.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,l=n[r];return{...n,[r]:{...l,visitsSummary:l.visitsSummary&&{total:l.visitsSummary.total+o+s,bots:l.visitsSummary.bots+o,nonBots:l.visitsSummary.nonBots+s},visitsCount:l.visitsCount+o+s}}},{...e}),Wwt=t=>Object.entries(t.reduce((e,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{e[i]||(e[i]={bots:0,nonBots:0}),r.potentialBot?e[i].bots+=1:e[i].nonBots+=1}),e),{})),Ywt=(t,e=!0)=>di(`${uL}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!e&&!qi(i.tags))return i;const{tags:o,stats:s}=await t().tagsStats(),l=s.reduce((c,{tag:h,...d})=>(c[h]=d,c),{});return{tags:o,stats:l}}),SU=lr(`${uL}/filterTags`),Zwt=(t,e)=>Br({name:uL,initialState:N2,reducers:{},extraReducers:n=>{n.addCase(SU,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(t.pending,r=>({...r,loading:!0,error:!1})),n.addCase(t.rejected,(r,{error:i})=>({...N2,error:!0,errorData:La(i)})),n.addCase(t.fulfilled,(r,{payload:i})=>({...N2,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(xU,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:I3(r,s),filteredTags:I3(i,s)})),n.addCase(wU,({tags:r,filteredTags:i,stats:o,...s},{payload:l})=>({...s,stats:{...o,[l.newName]:o[l.oldName]},tags:r.map(D3(l.oldName,l.newName)).sort(),filteredTags:i.map(D3(l.oldName,l.newName)).sort()})),n.addCase(tv,(r,{payload:i})=>({...r,stats:Hwt(Wwt(i.createdVisits),r.stats)})),n.addCase(e.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),Gwt={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},qwt=t=>zl(({filterTags:e,forceListTags:n,tagsList:r})=>{var i;const o=GP(),[s,l]=U.useState(((i=o.tags)==null?void 0:i.defaultOrdering)??{}),c=cr(()=>r.filteredTags.map(d=>{var p,m,v;const y=r.stats[d],_=((p=o.visits)!=null&&p.excludeBots?(m=y==null?void 0:y.visitsSummary)==null?void 0:m.nonBots:(v=y==null?void 0:y.visitsSummary)==null?void 0:v.total)??(y==null?void 0:y.visitsCount)??0;return{tag:d,visits:_,shortUrls:(y==null?void 0:y.shortUrlsCount)??0}}),d=>k$(d,s));if(U.useEffect(()=>{n()},[]),r.loading)return b.jsx(aa,{loading:!0});if(r.error)return b.jsx(Ii,{type:"error",children:b.jsx(ya,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const h=d=>()=>{const p=x1(d,s.field,s.dir);l({field:p?d:void 0,dir:p})};return b.jsxs(b.Fragment,{children:[b.jsx(Wg,{className:"mb-3",onChange:e}),b.jsx(qr,{className:"mb-3",children:b.jsx("div",{className:"col-lg-6 offset-lg-6",children:b.jsx(Yg,{items:Gwt,order:s,onChange:(d,p)=>l({field:d,dir:p})})})}),(()=>{if(r.filteredTags.length<1)return b.jsx(aa,{children:"No tags found"});const d=c();return b.jsx(t,{sortedTags:d,currentOrder:s,orderByColumn:h})})()]})},()=>[co.visits]),hL=({pagesCount:t,currentPage:e,setCurrentPage:n,centered:r=!0})=>{if(t<2)return null;const i=o=>()=>!pg(o)&&n(o);return b.jsxs(eP,{listClassName:de("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[b.jsx(nu,{disabled:e<=1,children:b.jsx(ru,{previous:!0,tag:"span",onClick:i(e-1)})}),oU(e,t).map((o,s)=>b.jsx(nu,{disabled:pg(o),active:e===o,children:b.jsx(ru,{role:"link",tag:"span",onClick:i(o),children:sU(o)})},aU(o,s))),b.jsx(nu,{disabled:e>=t,children:b.jsx(ru,{next:!0,tag:"span",onClick:i(e+1)})})]})},Kwt=20,Xwt=t=>({sortedTags:e,orderByColumn:n,currentOrder:r})=>{const i=U.useRef(!0),{search:o}=Un(),{page:s=1}=Du(o),[l,c]=d0t("page",Number(s)),h=sg(Kwt,e),d=h.length>1,p=h[l-1]??[];return U.useEffect(()=>{!i.current&&c(1),i.current=!1},[e]),U.useEffect(()=>{scrollTo(0,0)},[l]),b.jsxs(Bn,{bodyClassName:d?"pb-1":"",children:[b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsxs("thead",{className:"responsive-table__header",children:[b.jsxs("tr",{children:[b.jsxs("th",{className:"tags-table__header-cell",onClick:n("tag"),children:["Tag ",b.jsx(hm,{currentOrder:r,field:"tag"})]}),b.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("shortUrls"),children:["Short URLs ",b.jsx(hm,{currentOrder:r,field:"shortUrls"})]}),b.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("visits"),children:["Visits ",b.jsx(hm,{currentOrder:r,field:"visits"})]}),b.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),b.jsx("tr",{children:b.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),b.jsxs("tbody",{children:[p.length===0&&b.jsx("tr",{children:b.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>b.jsx(t,{tag:m},m.tag))]})]}),d&&b.jsx("div",{className:"sticky-card-paginator",children:b.jsx(hL,{pagesCount:h.length,currentPage:l,setCurrentPage:c})})]},l)},Qwt=(t,e,n)=>({tag:r})=>{const[i,o]=zn(),[s,l]=zn(),c=Bu();return b.jsxs("tr",{className:"responsive-table__row",children:[b.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[b.jsx(yU,{tag:r.tag,colorGenerator:n})," ",r.tag]}),b.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:b.jsx(nn,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:Qn(r.shortUrls)})}),b.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:b.jsx(nn,{to:`${c}/tag/${r.tag}/visits`,children:Qn(r.visits)})}),b.jsx("td",{className:"responsive-table__cell text-lg-end",children:b.jsxs(b1,{children:[b.jsxs(Zt,{onClick:l,children:[b.jsx(zt,{icon:tet,fixedWidth:!0,className:"me-1"})," Edit"]}),b.jsxs(Zt,{onClick:o,children:[b.jsx(zt,{icon:get,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),b.jsx(e,{tag:r.tag,toggle:l,isOpen:s}),b.jsx(t,{tag:r.tag,toggle:o,isOpen:i})]})},Jwt=(t,e)=>{t.serviceFactory("TagsSelector",Fwt,"ColorGenerator"),t.decorator("TagsSelector",e(["tagsList"],["listTags"])),t.serviceFactory("DeleteTagConfirmModal",()=>bxt),t.decorator("DeleteTagConfirmModal",e(["tagDelete"],["deleteTag","tagDeleted"])),t.serviceFactory("EditTagModal",Ixt,"ColorGenerator"),t.decorator("EditTagModal",e(["tagEdit"],["editTag","tagEdited"])),t.serviceFactory("TagsTableRow",Qwt,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),t.serviceFactory("TagsTable",Xwt,"TagsTableRow"),t.serviceFactory("TagsList",qwt,"TagsTable"),t.decorator("TagsList",e(["tagsList","mercureInfo"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),t.serviceFactory("tagEditReducerCreator",Vwt,"editTag"),t.serviceFactory("tagEditReducer",Se("reducer"),"tagEditReducerCreator"),t.serviceFactory("tagDeleteReducerCreator",$wt,"apiClientFactory"),t.serviceFactory("tagDeleteReducer",Se("reducer"),"tagDeleteReducerCreator"),t.serviceFactory("tagsListReducerCreator",Zwt,"listTags","createShortUrl"),t.serviceFactory("tagsListReducer",Se("reducer"),"tagsListReducerCreator");const n=r=>({apiClientFactory:i})=>Ywt(i,r);t.factory("listTags",n(!1)),t.factory("forceListTags",n(!0)),t.serviceFactory("filterTags",()=>SU),t.serviceFactory("deleteTag",Se("deleteTag"),"tagDeleteReducerCreator"),t.serviceFactory("tagDeleted",()=>xU),t.serviceFactory("editTag",Uwt,"apiClientFactory","ColorGenerator"),t.serviceFactory("tagEdited",()=>wU)};var t2t="Expected a function",TU="__lodash_hash_undefined__",EU=1/0,e2t="[object Function]",n2t="[object GeneratorFunction]",r2t="[object Symbol]",i2t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o2t=/^\w*$/,s2t=/^\./,a2t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l2t=/[\\^$.*+?()[\]{}|]/g,c2t=/\\(\\)?/g,u2t=/^\[object .+?Constructor\]$/,h2t=typeof kh=="object"&&kh&&kh.Object===Object&&kh,d2t=typeof self=="object"&&self&&self.Object===Object&&self,dL=h2t||d2t||Function("return this")();function f2t(t,e){return t==null?void 0:t[e]}function p2t(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var m2t=Array.prototype,g2t=Function.prototype,OU=Object.prototype,D2=dL["__core-js_shared__"],F3=function(){var t=/[^.]+$/.exec(D2&&D2.keys&&D2.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),CU=g2t.toString,fL=OU.hasOwnProperty,kU=OU.toString,v2t=RegExp("^"+CU.call(fL).replace(l2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B3=dL.Symbol,y2t=m2t.splice,_2t=PU(dL,"Map"),gg=PU(Object,"create"),$3=B3?B3.prototype:void 0,z3=$3?$3.toString:void 0;function Tu(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function P2t(t,e){var n=this.__data__,r=F1(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}zd.prototype.clear=E2t;zd.prototype.delete=O2t;zd.prototype.get=C2t;zd.prototype.has=k2t;zd.prototype.set=P2t;function Uu(t){var e=-1,n=t?t.length:0;for(this.clear();++er.toFixed(n).replace(".",e):r=>`${r}`.replace(".",e):n?r=>r.toFixed(n):r=>`${r}`}function gL(t={}){const e=typeof t.quote=="string"?t.quote:'"',n=typeof t.escapedQuote=="string"?t.escapedQuote:`${e}${e}`;return!e||e===n?r=>r:r=>(r.includes(e)&&(r=r.replace(new RegExp(e,"g"),n)),`${e}${r}${e}`)}function Q2t(t={stringFormatter:gL()}){return e=>t.stringFormatter(e.toString().slice(7,-1))}function J2t(t={stringFormatter:gL()}){return e=>{if(e===null)return"";let n=JSON.stringify(e);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),t.stringFormatter(n))}}function V3(t,e,n){const r=t[e];return r===void 0?n:r}function AU(t,e){try{return Array.isArray(e)?t.push(...e):t.push(e),t}catch{return t.concat(e)}}function PO(t,e){let n=!0;return t.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${e}${i}`),"")}var H3;(function(t){t.header="header",t.undefined="undefined",t.boolean="boolean",t.number="number",t.bigint="bigint",t.string="string",t.symbol="symbol",t.function="function",t.object="object"})(H3||(H3={}));class tSt{constructor(e){this.opts=this.preprocessOpts(e)}preprocessOpts(e){const n=Object.assign({},e);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||gL(),i=J2t({stringFormatter:r}),o={header:r,undefined:I2,boolean:I2,number:X2t(),bigint:I2,string:r,symbol:Q2t({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(e,n){return e.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>U3(i,r,n):i=>V3(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?s=>U3(s,o,i):s=>V3(s,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i},l=r.value;return{label:o,value(c){const h=l(c,s);return h===void 0?i:h}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return PO(this.opts.fields.map(e=>this.opts.formatters.header(e.label)),this.opts.delimiter)}preprocessRow(e){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(AU,[]),[e])}processRow(e){if(!e)return;const n=this.opts.fields.map(r=>this.processCell(e,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return PO(n,this.opts.delimiter)}processCell(e,n){return this.processValue(n.value(e))}processValue(e){const n=this.opts.formatters[typeof e];return n(e)}}class eSt extends tSt{constructor(e){super(e)}parse(e){const n=this.preprocessData(e);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,s)=>(Object.keys(s).forEach(l=>{o.includes(l)||o.push(l)}),o),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(e){const n=Array.isArray(e)?e:[e];if(!this.opts.fields){if(e==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(AU,[])}processData(e){return PO(e.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var tr;(function(t){t[t.BACKSPACE=8]="BACKSPACE",t[t.FORM_FEED=12]="FORM_FEED",t[t.NEWLINE=10]="NEWLINE",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.DOLLAR_SIGN=36]="DOLLAR_SIGN",t[t.PERCENT_SIGN=37]="PERCENT_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",t[t.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",t[t.ASTERISK=42]="ASTERISK",t[t.PLUS_SIGN=43]="PLUS_SIGN",t[t.COMMA=44]="COMMA",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.FULL_STOP=46]="FULL_STOP",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_ZERO=48]="DIGIT_ZERO",t[t.DIGIT_ONE=49]="DIGIT_ONE",t[t.DIGIT_TWO=50]="DIGIT_TWO",t[t.DIGIT_THREE=51]="DIGIT_THREE",t[t.DIGIT_FOUR=52]="DIGIT_FOUR",t[t.DIGIT_FIVE=53]="DIGIT_FIVE",t[t.DIGIT_SIX=54]="DIGIT_SIX",t[t.DIGIT_SEVEN=55]="DIGIT_SEVEN",t[t.DIGIT_EIGHT=56]="DIGIT_EIGHT",t[t.DIGIT_NINE=57]="DIGIT_NINE",t[t.COLON=58]="COLON",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.COMMERCIAL_AT=64]="COMMERCIAL_AT",t[t.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",t[t.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",t[t.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",t[t.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",t[t.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",t[t.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",t[t.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",t[t.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",t[t.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",t[t.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",t[t.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",t[t.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",t[t.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",t[t.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",t[t.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",t[t.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",t[t.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",t[t.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",t[t.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",t[t.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",t[t.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",t[t.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",t[t.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",t[t.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",t[t.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",t[t.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",t[t.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",t[t.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",t[t.LOW_LINE=95]="LOW_LINE",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",t[t.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",t[t.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",t[t.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",t[t.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",t[t.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",t[t.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",t[t.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",t[t.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",t[t.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",t[t.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",t[t.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",t[t.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",t[t.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",t[t.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",t[t.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",t[t.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",t[t.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",t[t.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",t[t.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",t[t.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",t[t.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",t[t.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",t[t.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",t[t.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",t[t.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",t[t.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",t[t.VERTICAL_LINE=124]="VERTICAL_LINE",t[t.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",t[t.TILDE=126]="TILDE"})(tr||(tr={}));tr.QUOTATION_MARK+"",tr.QUOTATION_MARK,tr.REVERSE_SOLIDUS+"",tr.REVERSE_SOLIDUS,tr.SOLIDUS+"",tr.SOLIDUS,tr.LATIN_SMALL_LETTER_B+"",tr.BACKSPACE,tr.LATIN_SMALL_LETTER_F+"",tr.FORM_FEED,tr.LATIN_SMALL_LETTER_N+"",tr.NEWLINE,tr.LATIN_SMALL_LETTER_R+"",tr.CARRIAGE_RETURN,tr.LATIN_SMALL_LETTER_T+"",tr.TAB;var W3;(function(t){t[t.LEFT_BRACE=0]="LEFT_BRACE",t[t.RIGHT_BRACE=1]="RIGHT_BRACE",t[t.LEFT_BRACKET=2]="LEFT_BRACKET",t[t.RIGHT_BRACKET=3]="RIGHT_BRACKET",t[t.COLON=4]="COLON",t[t.COMMA=5]="COMMA",t[t.TRUE=6]="TRUE",t[t.FALSE=7]="FALSE",t[t.NULL=8]="NULL",t[t.STRING=9]="STRING",t[t.NUMBER=10]="NUMBER",t[t.SEPARATOR=11]="SEPARATOR"})(W3||(W3={}));var Y3;(function(t){t[t.START=0]="START",t[t.ENDED=1]="ENDED",t[t.ERROR=2]="ERROR",t[t.TRUE1=3]="TRUE1",t[t.TRUE2=4]="TRUE2",t[t.TRUE3=5]="TRUE3",t[t.FALSE1=6]="FALSE1",t[t.FALSE2=7]="FALSE2",t[t.FALSE3=8]="FALSE3",t[t.FALSE4=9]="FALSE4",t[t.NULL1=10]="NULL1",t[t.NULL2=11]="NULL2",t[t.NULL3=12]="NULL3",t[t.STRING_DEFAULT=13]="STRING_DEFAULT",t[t.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",t[t.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",t[t.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",t[t.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",t[t.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",t[t.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",t[t.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",t[t.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",t[t.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",t[t.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",t[t.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",t[t.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",t[t.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",t[t.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",t[t.SEPARATOR=28]="SEPARATOR"})(Y3||(Y3={}));var Z3;(function(t){t[t.OBJECT=0]="OBJECT",t[t.ARRAY=1]="ARRAY"})(Z3||(Z3={}));var G3;(function(t){t[t.VALUE=0]="VALUE",t[t.KEY=1]="KEY",t[t.COLON=2]="COLON",t[t.COMMA=3]="COMMA",t[t.ENDED=4]="ENDED",t[t.ERROR=5]="ERROR",t[t.SEPARATOR=6]="SEPARATOR"})(G3||(G3={}));const nSt=new eSt,rSt=t=>nSt.parse(t),iSt=6,q3="0123456789ABCDEF",oSt=128,{floor:sSt,random:aSt,sqrt:lSt,round:cSt}=Math,uSt=()=>`#${YP(iSt,()=>q3[sSt(aSt()*q3.length)]).join("")}`,K3=t=>t.toLowerCase().trim(),hSt=t=>(t.match(/../g)??[]).map(e=>parseInt(e,16)||0),dSt=(t=0,e=0,n=0)=>cSt(lSt(.299*t**2+.587*e**2+.114*n**2));class fSt{constructor(e){Qt(this,"colors"),Qt(this,"lights"),Qt(this,"getColorForKey",r=>{const i=K3(r);return this.colors[i]||this.setColorForKey(i,uSt())}),Qt(this,"setColorForKey",(r,i)=>{var o;const s=K3(r);return this.colors[s]=i,(o=this.storage)==null||o.storeTagColors(this.colors),i}),Qt(this,"isColorLightForKey",r=>{const i=this.getColorForKey(r).substring(1);if(Fu(this.lights[i])){const o=hSt(i);this.lights[i]=dSt(...o)>=oSt}return this.lights[i]});var n;this.storage=e,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const RU=({document:t},e,n)=>{const r=t.createElement("a");r.setAttribute("href",e),r.setAttribute("download",n),r.style.visibility="hidden",t.body.appendChild(r),r.click(),t.body.removeChild(r)},pSt=(t,e,n)=>{const r=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);RU(t,i,n)};class mSt{constructor(e,n){this.fetch=e,this.window=n}async saveImage(e,n){const r=await this.fetch(e).then(o=>o.blob()),i=URL.createObjectURL(r);RU(this.window,i,n)}}class gSt{constructor(e,n){Qt(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Qt(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Qt(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);pSt(this.window,o,r)}),this.window=e,this.jsonToCsv=n}}function vSt(t){t.constant("window",window),t.constant("fetch",window.fetch.bind(window)),t.service("ImageDownloader",mSt,"fetch","window"),t.service("ColorGenerator",fSt,"TagColorsStorage"),t.constant("jsonToCsv",rSt),t.service("ReportExporter",gSt,"window","jsonToCsv"),t.constant("setTimeout",window.setTimeout),t.constant("clearTimeout",window.clearTimeout),t.serviceFactory("useTimeoutToggle",u0t,"setTimeout","clearTimeout")}const vL=t=>t.visitedUrl!==void 0,ySt=t=>t.visitedUrl!==void 0,_St=cr(Rmt(t=>vL(t.visit)?"orphanVisits":"nonOrphanVisits"),t=>({orphanVisits:[],nonOrphanVisits:[],...t})),py=(t,e)=>Mz(Se(e),t),av=({page:t,itemsPerPage:e,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Ml(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Ml(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:t,itemsPerPage:e,startDate:i,endDate:o,excludeBots:s}},lv=({visits:t,goBack:e,shortUrl:n,children:r,title:i})=>b.jsx("header",{children:b.jsxs(zi,{body:!0,children:[b.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[b.jsx(ke,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,children:b.jsx(zt,{icon:q8})}),b.jsx("span",{className:"text-center d-none d-sm-block",children:b.jsx("small",{children:i})}),b.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",b.jsx(L7,{visitsCount:t.length,shortUrl:n})]})]}),b.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:b.jsx("small",{children:i})}),r&&b.jsx("div",{className:"mt-md-2",children:r})]})}),jU=({title:t,footer:e,children:n})=>b.jsxs(zi,{role:"document",children:[b.jsx(hd,{className:"chart-card__header",children:typeof t=="function"?t():t}),b.jsx(ud,{children:n}),e&&b.jsx(l$,{className:"chart-card__footer--sticky",children:e})]});/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function cv(t){return t+.5|0}const il=(t,e,n)=>Math.max(Math.min(t,n),e);function Mp(t){return il(cv(t*2.55),0,255)}function _l(t){return il(cv(t*255),0,255)}function Js(t){return il(cv(t/2.55)/100,0,1)}function X3(t){return il(cv(t*100),0,100)}const Xi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},LO=[..."0123456789ABCDEF"],bSt=t=>LO[t&15],xSt=t=>LO[(t&240)>>4]+LO[t&15],my=t=>(t&240)>>4===(t&15),wSt=t=>my(t.r)&&my(t.g)&&my(t.b)&&my(t.a);function SSt(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Xi[t[1]]*17,g:255&Xi[t[2]]*17,b:255&Xi[t[3]]*17,a:e===5?Xi[t[4]]*17:255}:(e===7||e===9)&&(n={r:Xi[t[1]]<<4|Xi[t[2]],g:Xi[t[3]]<<4|Xi[t[4]],b:Xi[t[5]]<<4|Xi[t[6]],a:e===9?Xi[t[7]]<<4|Xi[t[8]]:255})),n}const TSt=(t,e)=>t<255?e(t):"";function ESt(t){var e=wSt(t)?bSt:xSt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+TSt(t.a,e):void 0}const OSt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function NU(t,e,n){const r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function CSt(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function kSt(t,e,n){const r=NU(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function PSt(t,e,n,r,i){return t===i?(e-n)/r+(e.5?h/(2-i-o):h/(i+o),l=PSt(e,n,r,h,i),l=l*60+.5),[l|0,c||0,s]}function _L(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(_l)}function bL(t,e,n){return _L(NU,t,e,n)}function LSt(t,e,n){return _L(kSt,t,e,n)}function MSt(t,e,n){return _L(CSt,t,e,n)}function DU(t){return(t%360+360)%360}function ASt(t){const e=OSt.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Mp(+e[5]):_l(+e[5]));const i=DU(+e[2]),o=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=LSt(i,o,s):e[1]==="hsv"?r=MSt(i,o,s):r=bL(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function RSt(t,e){var n=yL(t);n[0]=DU(n[0]+e),n=bL(n),t.r=n[0],t.g=n[1],t.b=n[2]}function jSt(t){if(!t)return;const e=yL(t),n=e[0],r=X3(e[1]),i=X3(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Js(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Q3={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},J3={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function NSt(){const t={},e=Object.keys(J3),n=Object.keys(Q3);let r,i,o,s,l;for(r=0;r>16&255,o>>8&255,o&255]}return t}let gy;function DSt(t){gy||(gy=NSt(),gy.transparent=[0,0,0,0]);const e=gy[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const ISt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function FSt(t){const e=ISt.exec(t);let n=255,r,i,o;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?Mp(s):il(s*255,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?Mp(r):il(r,0,255)),i=255&(e[4]?Mp(i):il(i,0,255)),o=255&(e[6]?Mp(o):il(o,0,255)),{r,g:i,b:o,a:n}}}function BSt(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Js(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const F2=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,oh=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function $St(t,e,n){const r=oh(Js(t.r)),i=oh(Js(t.g)),o=oh(Js(t.b));return{r:_l(F2(r+n*(oh(Js(e.r))-r))),g:_l(F2(i+n*(oh(Js(e.g))-i))),b:_l(F2(o+n*(oh(Js(e.b))-o))),a:t.a+n*(e.a-t.a)}}function vy(t,e,n){if(t){let r=yL(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=bL(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function IU(t,e){return t&&Object.assign(e||{},t)}function tI(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_l(t[3]))):(e=IU(t,{r:0,g:0,b:0,a:1}),e.a=_l(e.a)),e}function zSt(t){return t.charAt(0)==="r"?FSt(t):ASt(t)}class vg{constructor(e){if(e instanceof vg)return e;const n=typeof e;let r;n==="object"?r=tI(e):n==="string"&&(r=SSt(e)||DSt(e)||zSt(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=IU(this._rgb);return e&&(e.a=Js(e.a)),e}set rgb(e){this._rgb=tI(e)}rgbString(){return this._valid?BSt(this._rgb):void 0}hexString(){return this._valid?ESt(this._rgb):void 0}hslString(){return this._valid?jSt(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const s=n===o?.5:n,l=2*s-1,c=r.a-i.a,h=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;o=1-h,r.r=255&h*r.r+o*i.r+.5,r.g=255&h*r.g+o*i.g+.5,r.b=255&h*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=$St(this._rgb,e._rgb,n)),this}clone(){return new vg(this.rgb)}alpha(e){return this._rgb.a=_l(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=cv(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return vy(this._rgb,2,e),this}darken(e){return vy(this._rgb,2,-e),this}saturate(e){return vy(this._rgb,1,e),this}desaturate(e){return vy(this._rgb,1,-e),this}rotate(e){return RSt(this._rgb,e),this}}/*! + * Chart.js v4.3.3 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */const USt=(()=>{let t=0;return()=>t++})();function $e(t){return t===null||typeof t>"u"}function bn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Ee(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function sr(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function ki(t,e){return sr(t)?t:e}function fn(t,e){return typeof t>"u"?e:t}const VSt=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,FU=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function vn(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ar(t,e,n,r){let i,o,s;if(bn(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function YSt(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function ZSt(t){const e=YSt(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Eu(t,e){return(nI[e]||(nI[e]=ZSt(e)))(t)}function xL(t){return t.charAt(0).toUpperCase()+t.slice(1)}const _g=t=>typeof t<"u",Al=t=>typeof t=="function",rI=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function GSt(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const _o=Math.PI,Ni=2*_o,ub=Number.POSITIVE_INFINITY,oo=_o/2,ol=Math.log10,bl=Math.sign;function v_(t,e,n){return Math.abs(t-e)i-o).pop(),e}function bg(t){return!isNaN(parseFloat(t))&&isFinite(t)}function KSt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function $U(t,e,n){let r,i,o;for(r=0,i=t.length;rc&&ht[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Gc=(t,e,n,r)=>SL(t,n,r?i=>{const o=t[i][e];return ot[i][e]SL(t,n,r=>t[r][e]>=n);function tTt(t,e,n){let r=0,i=t.length;for(;rr&&t[i-1]>n;)i--;return r>0||i{const r="_onData"+xL(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return t._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...o)}),s}})})}function sI(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(zU.forEach(o=>{delete t[o]}),delete t._chartjs)}function UU(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const VU=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function HU(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,VU.call(window,()=>{r=!1,t.apply(e,n)}))}}function nTt(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const rTt=t=>t==="start"?"left":t==="end"?"right":"center",aI=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2;function iTt(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:s,_parsed:l}=t,c=s.axis,{min:h,max:d,minDefined:p,maxDefined:m}=s.getUserBounds();p&&(i=oa(Math.min(Gc(l,c,h).lo,n?r:Gc(e,c,s.getPixelForValue(h)).lo),0,r-1)),m?o=oa(Math.max(Gc(l,s.axis,d,!0).hi+1,n?0:Gc(e,c,s.getPixelForValue(d),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function oTt(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const yy=t=>t===0||t===1,lI=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ni/n)),cI=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ni/n)+1,pm={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*oo)+1,easeOutSine:t=>Math.sin(t*oo),easeInOutSine:t=>-.5*(Math.cos(_o*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>yy(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>yy(t)?t:lI(t,.075,.3),easeOutElastic:t=>yy(t)?t:cI(t,.075,.3),easeInOutElastic(t){return yy(t)?t:t<.5?.5*lI(t*2,.1125,.45):.5+.5*cI(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-pm.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?pm.easeInBounce(t*2)*.5:pm.easeOutBounce(t*2-1)*.5+.5};function WU(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function uI(t){return WU(t)?t:new vg(t)}function B2(t){return WU(t)?t:new vg(t).saturate(.5).darken(.1).hexString()}const sTt=["x","y","borderWidth","radius","tension"],aTt=["color","borderColor","backgroundColor"];function lTt(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:aTt},numbers:{type:"number",properties:sTt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function cTt(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const hI=new Map;function uTt(t,e){e=e||{};const n=t+JSON.stringify(e);let r=hI.get(n);return r||(r=new Intl.NumberFormat(t,e),hI.set(n,r)),r}function $1(t,e,n){return uTt(e,n).format(t)}const YU={values(t){return bn(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(i="scientific"),o=hTt(t,n)}const s=ol(Math.abs(o)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:i,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),$1(t,r,c)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(ol(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?YU.numeric.call(this,t,e,n):""}};function hTt(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var z1={formatters:YU};function dTt(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:z1.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Ou=Object.create(null),AO=Object.create(null);function mm(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>B2(i.backgroundColor),this.hoverBorderColor=(r,i)=>B2(i.borderColor),this.hoverColor=(r,i)=>B2(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return $2(this,e,n)}get(e){return mm(this,e)}describe(e,n){return $2(AO,e,n)}override(e,n){return $2(Ou,e,n)}route(e,n,r,i){const o=mm(this,e),s=mm(this,r),l="_"+n;Object.defineProperties(o,{[l]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[l],h=s[i];return Ee(c)?Object.assign({},h,c):fn(c,h)},set(c){this[l]=c}}})}apply(e){e.forEach(n=>n(this))}}var In=new fTt({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lTt,cTt,dTt]);function pTt(t){return!t||$e(t.size)||$e(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function hb(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function mTt(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const l=n.length;let c,h,d,p,m;for(c=0;cn.length){for(c=0;ce.left-n&&t.xe.top-n&&t.y0&&o.strokeColor!=="";let c,h;for(t.save(),t.font=i.string,gTt(t,o),c=0;c+t||0;function qU(t,e){const n={},r=Ee(e),i=r?Object.keys(e):e,o=Ee(t)?r?s=>fn(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=STt(o(s));return n}function TTt(t){return qU(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ETt(t){return qU(t,["topLeft","topRight","bottomLeft","bottomRight"])}function xa(t){const e=TTt(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function kd(t,e){t=t||{},e=e||In.font;let n=fn(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=fn(t.style,e.style);r&&!(""+r).match(xTt)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:fn(t.family,e.family),lineHeight:wTt(fn(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:fn(t.weight,e.weight),string:""};return i.string=pTt(i),i}function _y(t,e,n,r){let i=!0,o,s,l;for(o=0,s=t.length;on&&l===0?0:l+c;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function Ud(t,e){return Object.assign(Object.create(t),e)}function TL(t,e=[""],n,r,i=()=>t[0]){const o=n||t;typeof r>"u"&&(r=JU("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:r,_getTarget:i,override:l=>TL([l,...t],e,o,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete t[0][c],!0},get(l,c){return XU(l,c,()=>jTt(c,e,t,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(l,c){return pI(l).includes(c)},ownKeys(l){return pI(l)},set(l,c,h){const d=l._storage||(l._storage=i());return l[c]=d[c]=h,delete l._keys,!0}})}function Pd(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:KU(t,r),setContext:o=>Pd(t,o,n,r),override:o=>Pd(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete t[s],!0},get(o,s,l){return XU(o,s,()=>kTt(o,s,l))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(o,s,l){return t[s]=l,delete o[s],!0}})}function KU(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Al(n)?n:()=>n,isIndexable:Al(r)?r:()=>r}}const CTt=(t,e)=>t?t+xL(e):e,EL=(t,e)=>Ee(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function XU(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function kTt(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let l=r[e];return Al(l)&&s.isScriptable(e)&&(l=PTt(e,l,t,n)),bn(l)&&l.length&&(l=LTt(e,l,t,s.isIndexable)),EL(e,l)&&(l=Pd(l,i,o&&o[e],s)),l}function PTt(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:l}=n;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=e(o,s||r);return l.delete(t),EL(t,c)&&(c=OL(i._scopes,i,t,c)),c}function LTt(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:l}=n;if(typeof o.index<"u"&&r(t))return e[o.index%e.length];if(Ee(e[0])){const c=e,h=i._scopes.filter(d=>d!==c);e=[];for(const d of c){const p=OL(h,i,t,d);e.push(Pd(p,o,s&&s[t],l))}}return e}function QU(t,e,n){return Al(t)?t(e,n):t}const MTt=(t,e)=>t===!0?e:typeof t=="string"?Eu(e,t):void 0;function ATt(t,e,n,r,i){for(const o of e){const s=MTt(n,o);if(s){t.add(s);const l=QU(s._fallback,n,i);if(typeof l<"u"&&l!==n&&l!==r)return l}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function OL(t,e,n,r){const i=e._rootScopes,o=QU(e._fallback,n,r),s=[...t,...i],l=new Set;l.add(r);let c=fI(l,s,n,o||n,r);return c===null||typeof o<"u"&&o!==n&&(c=fI(l,s,o,c,r),c===null)?!1:TL(Array.from(l),[""],i,o,()=>RTt(e,n,r))}function fI(t,e,n,r,i){for(;n;)n=ATt(t,e,n,r,i);return n}function RTt(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return bn(i)&&Ee(n)?n:i||{}}function jTt(t,e,n,r){let i;for(const o of e)if(i=JU(CTt(o,t),n),typeof i<"u")return EL(t,i)?OL(n,r,t,i):i}function JU(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function pI(t){let e=t._keys;return e||(e=t._keys=NTt(t._scopes)),e}function NTt(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function t9(){return typeof window<"u"&&typeof document<"u"}function CL(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function fb(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const U1=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function DTt(t,e){return U1(t).getPropertyValue(e)}const ITt=["top","right","bottom","left"];function lu(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=ITt[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const FTt=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function BTt(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let s=!1,l,c;if(FTt(i,o,t.target))l=i,c=o;else{const h=e.getBoundingClientRect();l=r.clientX-h.left,c=r.clientY-h.top,s=!0}return{x:l,y:c,box:s}}function Bc(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=U1(n),o=i.boxSizing==="border-box",s=lu(i,"padding"),l=lu(i,"border","width"),{x:c,y:h,box:d}=BTt(t,n),p=s.left+(d&&l.left),m=s.top+(d&&l.top);let{width:v,height:y}=e;return o&&(v-=s.width+l.width,y-=s.height+l.height),{x:Math.round((c-p)/v*n.width/r),y:Math.round((h-m)/y*n.height/r)}}function $Tt(t,e,n){let r,i;if(e===void 0||n===void 0){const o=CL(t);if(!o)e=t.clientWidth,n=t.clientHeight;else{const s=o.getBoundingClientRect(),l=U1(o),c=lu(l,"border","width"),h=lu(l,"padding");e=s.width-h.width-c.width,n=s.height-h.height-c.height,r=fb(l.maxWidth,o,"clientWidth"),i=fb(l.maxHeight,o,"clientHeight")}}return{width:e,height:n,maxWidth:r||ub,maxHeight:i||ub}}const by=t=>Math.round(t*10)/10;function zTt(t,e,n,r){const i=U1(t),o=lu(i,"margin"),s=fb(i.maxWidth,t,"clientWidth")||ub,l=fb(i.maxHeight,t,"clientHeight")||ub,c=$Tt(t,e,n);let{width:h,height:d}=c;if(i.boxSizing==="content-box"){const p=lu(i,"border","width"),m=lu(i,"padding");h-=m.width+p.width,d-=m.height+p.height}return h=Math.max(0,h-o.width),d=Math.max(0,r?h/r:d-o.height),h=by(Math.min(h,s,c.maxWidth)),d=by(Math.min(d,l,c.maxHeight)),h&&!d&&(d=by(h/2)),(e!==void 0||n!==void 0)&&r&&c.height&&d>c.height&&(d=c.height,h=by(Math.floor(d*r))),{width:h,height:d}}function mI(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const UTt=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function gI(t,e){const n=DTt(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}/*! + * Chart.js v4.3.3 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */class VTt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(l=>l({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=VU.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,l=!1,c;for(;s>=0;--s)c=o[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(e),l=!0):(o[s]=o[o.length-1],o.pop());l&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Zs=new VTt;const vI="transparent",HTt={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=uI(t||vI),i=r.valid&&uI(e||vI);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class WTt{constructor(e,n,r,i){const o=n[r];i=_y([e.to,i,o,e.from]);const s=_y([e.from,o,i]);this._active=!0,this._fn=e.fn||HTt[e.type||typeof s],this._easing=pm[e.easing]||pm.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=_y([e.to,n,i,e.from]),this._from=_y([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,l=this._to;let c;if(this._active=o!==l&&(s||n1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(o,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i{const o=e[i];if(!Ee(o))return;const s={};for(const l of n)s[l]=o[l];(bn(o.properties)&&o.properties||[i]).forEach(l=>{(l===i||!r.has(l))&&r.set(l,s)})})}_animateOptions(e,n){const r=n.options,i=GTt(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&ZTt(e.options.$animations,r).then(()=>{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const h=s[c];if(h.charAt(0)==="$")continue;if(h==="options"){i.push(...this._animateOptions(e,n));continue}const d=n[h];let p=o[h];const m=r.get(h);if(p)if(m&&p.active()){p.update(m,d,l);continue}else p.cancel();if(!m||!m.duration){e[h]=d;continue}o[h]=p=new WTt(m,e,h,d),i.push(p)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Zs.add(this._chart,r),!0}}function ZTt(t,e){const n=[],r=Object.keys(e);for(let i=0;i0||!n&&o<0)return i.index}return null}function wI(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:l}=r,c=o.axis,h=s.axis,d=QTt(o,s,r),p=e.length;let m;for(let v=0;vn[r].axis===e).shift()}function eEt(t,e){return Ud(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function nEt(t,e,n){return Ud(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function cp(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const U2=t=>t==="reset"||t==="none",SI=(t,e)=>e?t:Object.assign({},t),rEt=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:e9(n,!0),values:null};class cu{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=bI(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&cp(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,m,v,y)=>p==="x"?m:p==="r"?y:v,o=n.xAxisID=fn(r.xAxisID,z2(e,"x")),s=n.yAxisID=fn(r.yAxisID,z2(e,"y")),l=n.rAxisID=fn(r.rAxisID,z2(e,"r")),c=n.indexAxis,h=n.iAxisID=i(c,o,s,l),d=n.vAxisID=i(c,s,o,l);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&sI(this._data,this),e._stacked&&cp(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(Ee(n))this._data=XTt(n);else if(r!==n){if(r){sI(r,this);const i=this._cachedMeta;cp(i),i._parsed=[]}n&&Object.isExtensible(n)&&eTt(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=bI(n.vScale,n),n.stack!==r.stack&&(i=!0,cp(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&wI(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,l=o.axis;let c=e===0&&n===i.length?!0:r._sorted,h=e>0&&r._parsed[e-1],d,p,m;if(this._parsing===!1)r._parsed=i,r._sorted=!0,m=i;else{bn(i[e])?m=this.parseArrayData(r,i,e,n):Ee(i[e])?m=this.parseObjectData(r,i,e,n):m=this.parsePrimitiveData(r,i,e,n);const v=()=>p[l]===null||h&&p[l]_||p<_}for(m=0;m=0;--m)if(!y()){this.updateRangeFromParsed(h,e,v,c);break}}return h}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&ethis.getContext(r,i,n),_=h.resolveNamedOptions(m,v,y,p);return _.$shared&&(_.$shared=c,o[s]=Object.freeze(SI(_,c))),_}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,l=o[s];if(l)return l;let c;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,n),m=d.getOptionScopes(this.getDataset(),p);c=d.createResolver(m,this.getContext(e,r,n))}const h=new YTt(i,c&&c.animations);return c&&c._cacheable&&(o[s]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||U2(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(e,n,r,i){U2(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!U2(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,e):o{for(h.length+=n,l=h.length-1;l>=s;l--)h[l]=h[l-n]};for(c(o),l=e;li-o))}return t._cache.$bar}function oEt(t){const e=t.iScale,n=iEt(e,t.type);let r=e._length,i,o,s,l;const c=()=>{s===32767||s===-32768||(_g(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(i=0,o=n.length;i0?i[t-1]:null,l=tMath.abs(l)&&(c=l,h=s),e[n.axis]=h,e._custom={barStart:c,barEnd:h,start:i,end:o,min:s,max:l}}function n9(t,e,n,r){return bn(t)?lEt(t,e,n,r):e[n.axis]=n.parse(t,r),e}function TI(t,e,n,r){const i=t.iScale,o=t.vScale,s=i.getLabels(),l=i===o,c=[];let h,d,p,m;for(h=n,d=n+r;h=n?1:-1)}function uEt(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.basec.controller.options.grouped),o=r.options.stacked,s=[],l=c=>{const h=c.controller.getParsed(n),d=h&&h[c.vScale.axis];if($e(d)||isNaN(d))return!0};for(const c of i)if(!(n!==void 0&&l(c))&&((o===!1||s.indexOf(c.stack)===-1||o===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;oMO(E,l,c,!0)?1:Math.max(O,O*n,k,k*n),y=(E,O,k)=>MO(E,l,c,!0)?-1:Math.min(O,O*n,k,k*n),_=v(0,h,p),T=v(oo,d,m),x=y(_o,h,p),w=y(_o+oo,d,m);r=(_-x)/2,i=(T-w)/2,o=-(_+x)/2,s=-(T+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class Ap extends cu{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=c=>+r[c];if(Ee(r[e])){const{key:c="value"}=this._parsing;o=h=>+Eu(r[h],c)}let s,l;for(s=e,l=e+n;s0&&!isNaN(e)?Ni*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=$1(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,s,l,c;if(!e){for(i=0,o=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Qt(Ap,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map((i,o)=>{const s=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});class __ extends cu{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=iTt(n,i,s);this._drawStart=l,this._drawCount=c,oTt(n)&&(l=0,c=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const h=this.resolveDatasetElementOptions(e);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:h},e),this.updateElements(i,l,c,e)}updateElements(e,n,r,i){const o=i==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i),m=s.axis,v=l.axis,{spanGaps:y,segment:_}=this.options,T=bg(y)?y:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none",w=n+r,E=e.length;let O=n>0&&this.getParsed(n-1);for(let k=0;k=w){A.skip=!0;continue}const j=this.getParsed(k),B=$e(j[v]),N=A[m]=s.getPixelForValue(j[m],k),V=A[v]=o||B?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,j,c):j[v],k);A.skip=isNaN(N)||isNaN(V)||B,A.stop=k>0&&Math.abs(j[m]-O[m])>T,_&&(A.parsed=j,A.raw=h.data[k]),p&&(A.options=d||this.resolveDataElementOptions(k,P.active?"active":i)),x||this.updateElement(P,k,A,i),O=j}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Qt(__,"id","line"),Qt(__,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Qt(__,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Oc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class kL{constructor(e){Qt(this,"options"),this.options=e||{}}static override(e){Object.assign(kL.prototype,e)}init(){}formats(){return Oc()}parse(){return Oc()}format(){return Oc()}add(){return Oc()}diff(){return Oc()}startOf(){return Oc()}endOf(){return Oc()}}var mEt={_date:kL};function gEt(t,e,n,r){const{controller:i,data:o,_sorted:s}=t,l=i._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&o.length){const c=l._reversePixels?JSt:Gc;if(r){if(i._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(e);if(d){const p=c(o,e,n-d),m=c(o,e,n+d);return{lo:p.lo,hi:m.hi}}}}else return c(o,e,n)}return{lo:0,hi:o.length-1}}function uv(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let l=0,c=o.length;l{c[s](e[n],i)&&(o.push({element:c,datasetIndex:h,index:d}),l=l||c.inRange(e.x,e.y,i))}),r&&!l?[]:o}var bEt={evaluateInteractionItems:uv,modes:{index(t,e,n,r){const i=Bc(e,t),o=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?H2(t,i,o,r,s):W2(t,i,o,!1,r,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(h=>{const d=l[0].index,p=h.data[d];p&&!p.skip&&c.push({element:p,datasetIndex:h.index,index:d})}),c):[]},dataset(t,e,n,r){const i=Bc(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?H2(t,i,o,r,s):W2(t,i,o,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,h=t.getDatasetMeta(c).data;l=[];for(let d=0;dn.pos===e)}function kI(t,e){return t.filter(n=>r9.indexOf(n.pos)===-1&&n.box.axis===e)}function hp(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function xEt(t){const e=[];let n,r,i,o,s,l;for(n=0,r=(t||[]).length;nh.box.fullSize),!0),r=hp(up(e,"left"),!0),i=hp(up(e,"right")),o=hp(up(e,"top"),!0),s=hp(up(e,"bottom")),l=kI(e,"x"),c=kI(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(c).concat(s).concat(l),chartArea:up(e,"chartArea"),vertical:r.concat(i).concat(c),horizontal:o.concat(s).concat(l)}}function PI(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function i9(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function EEt(t,e,n,r){const{pos:i,box:o}=n,s=t.maxPadding;if(!Ee(i)){n.size&&(t[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?o.height:o.width),n.size=p.size/p.count,t[i]+=n.size}o.getPadding&&i9(s,o.getPadding());const l=Math.max(0,e.outerWidth-PI(s,t,"left","right")),c=Math.max(0,e.outerHeight-PI(s,t,"top","bottom")),h=l!==t.w,d=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:h,other:d}:{same:d,other:h}}function OEt(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function CEt(t,e){const n=e.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(e[s],n[s])}),o}return r(t?["left","right"]:["top","bottom"])}function Rp(t,e,n,r){const i=[];let o,s,l,c,h,d;for(o=0,s=t.length,h=0;o{typeof _.beforeLayout=="function"&&_.beforeLayout()});const d=c.reduce((_,T)=>T.box.options&&T.box.options.display===!1?_:_+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/d,hBoxMaxHeight:s/2}),m=Object.assign({},i);i9(m,xa(r));const v=Object.assign({maxPadding:m,w:o,h:s,x:i.left,y:i.top},i),y=SEt(c.concat(h),p);Rp(l.fullSize,v,p,y),Rp(c,v,p,y),Rp(h,v,p,y)&&Rp(c,v,p,y),OEt(v),LI(l.leftAndTop,v,p,y),v.x+=v.w,v.y+=v.h,LI(l.rightAndBottom,v,p,y),t.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},Ar(l.chartArea,_=>{const T=_.box;Object.assign(T,t.chartArea),T.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class o9{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class kEt extends o9{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const b_="$chartjs",PEt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},MI=t=>t===null||t==="";function LEt(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[b_]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",MI(i)){const o=gI(t,"width");o!==void 0&&(t.width=o)}if(MI(r))if(t.style.height==="")t.height=t.width/(e||2);else{const o=gI(t,"height");o!==void 0&&(t.height=o)}return t}const s9=UTt?{passive:!0}:!1;function MEt(t,e,n){t.addEventListener(e,n,s9)}function AEt(t,e,n){t.canvas.removeEventListener(e,n,s9)}function REt(t,e){const n=PEt[t.type]||t.type,{x:r,y:i}=Bc(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function pb(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function jEt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||pb(l.addedNodes,r),s=s&&!pb(l.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function NEt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const l of o)s=s||pb(l.removedNodes,r),s=s&&!pb(l.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const xg=new Map;let AI=0;function a9(){const t=window.devicePixelRatio;t!==AI&&(AI=t,xg.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function DEt(t,e){xg.size||window.addEventListener("resize",a9),xg.set(t,e)}function IEt(t){xg.delete(t),xg.size||window.removeEventListener("resize",a9)}function FEt(t,e,n){const r=t.canvas,i=r&&CL(r);if(!i)return;const o=HU((l,c)=>{const h=i.clientWidth;n(l,c),h{const c=l[0],h=c.contentRect.width,d=c.contentRect.height;h===0&&d===0||o(h,d)});return s.observe(i),DEt(t,o),s}function Y2(t,e,n){n&&n.disconnect(),e==="resize"&&IEt(t)}function BEt(t,e,n){const r=t.canvas,i=HU(o=>{t.ctx!==null&&n(REt(o,t))},t);return MEt(r,e,i),i}class $Et extends o9{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(LEt(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[b_])return!1;const r=n[b_].initial;["height","width"].forEach(o=>{const s=r[o];$e(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[b_],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),o={attach:jEt,detach:NEt,resize:FEt}[n]||BEt;i[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];i&&(({attach:Y2,detach:Y2,resize:Y2}[n]||AEt)(e,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return zTt(e,n,r,i)}isAttached(e){const n=CL(e);return!!(n&&n.isConnected)}}function zEt(t){return!t9()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?kEt:$Et}var Sy;let l9=(Sy=class{constructor(){Qt(this,"x"),Qt(this,"y"),Qt(this,"active",!1),Qt(this,"options"),Qt(this,"$animations")}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return bg(this.x)&&bg(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},Qt(Sy,"defaults",{}),Qt(Sy,"defaultRoutes"),Sy);function UEt(t,e){const n=t.options.ticks,r=VEt(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?WEt(e):[],s=o.length,l=o[0],c=o[s-1],h=[];if(s>i)return YEt(e,h,o,s/i),h;const d=HEt(o,e,i);if(s>0){let p,m;const v=s>1?Math.round((c-l)/(s-1)):null;for(Ty(e,h,d,$e(v)?0:l-v,l),p=0,m=s-1;pi)return c}return Math.max(i,1)}function WEt(t){const e=[];let n,r;for(n=0,r=t.length;nt==="left"?"right":t==="right"?"left":t,RI=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,jI=(t,e)=>Math.min(e||t,t);function NI(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;os+l)))return c}function KEt(t,e){Ar(t,n=>{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;or?r:n,r=i&&n>r?n:r,{min:ki(n,ki(r,n)),max:ki(r,ki(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){vn(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=OTt(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,m=d.highest.height,v=oa(this.chart.width-p,0,this.maxWidth);l=e.offset?this.maxWidth/r:v/(r-1),p+6>l&&(l=v/(r-(e.offset?.5:1)),c=this.maxHeight-dp(e.grid)-n.padding-DI(e.title,this.chart.options.font),h=Math.sqrt(p*p+m*m),s=wL(Math.min(Math.asin(oa((d.highest.height+6)/l,-1,1)),Math.asin(oa(c/h,-1,1))-Math.asin(oa(m/h,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){vn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){vn(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=DI(i,n.options.font);if(l?(e.width=this.maxWidth,e.height=dp(o)+c):(e.height=this.maxHeight,e.width=dp(o)+c),r.display&&this.ticks.length){const{first:h,last:d,widest:p,highest:m}=this._getLabelSizes(),v=r.padding*2,y=cs(this.labelRotation),_=Math.cos(y),T=Math.sin(y);if(l){const x=r.mirror?0:T*p.width+_*m.height;e.height=Math.min(this.maxHeight,e.height+x+v)}else{const x=r.mirror?0:_*p.width+T*m.height;e.width=Math.min(this.maxWidth,e.width+x+v)}this._calculatePadding(h,d,T,_)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:s},position:l}=this.options,c=this.labelRotation!==0,h=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,v=0;c?h?(m=i*e.width,v=r*n.height):(m=r*e.height,v=i*n.width):o==="start"?v=n.width:o==="end"?m=e.width:o!=="inner"&&(m=e.width/2,v=n.width/2),this.paddingLeft=Math.max((m-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-p+s)*this.width/(this.width-p),0)}else{let d=n.height/2,p=e.height/2;o==="start"?(d=0,p=e.height):o==="end"&&(d=n.height,p=0),this.paddingTop=d+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){vn(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n({width:s[B]||0,height:l[B]||0});return{first:j(0),last:j(n-1),widest:j(P),highest:j(A),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return QSt(this._alignToPixels?Ec(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&el*i?l/r:c/i:c*i0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:l}=i,c=o.offset,h=this.isHorizontal(),d=this.ticks.length+(c?1:0),p=dp(o),m=[],v=l.setContext(this.getContext()),y=v.display?v.width:0,_=y/2,T=function(J){return Ec(r,J,y)};let x,w,E,O,k,P,A,j,B,N,V,Y;if(s==="top")x=T(this.bottom),P=this.bottom-p,j=x-_,N=T(e.top)+_,Y=e.bottom;else if(s==="bottom")x=T(this.top),N=e.top,Y=T(e.bottom)-_,P=x+_,j=this.top+p;else if(s==="left")x=T(this.right),k=this.right-p,A=x-_,B=T(e.left)+_,V=e.right;else if(s==="right")x=T(this.left),B=e.left,V=T(e.right)-_,k=x+_,A=this.left+p;else if(n==="x"){if(s==="center")x=T((e.top+e.bottom)/2+.5);else if(Ee(s)){const J=Object.keys(s)[0],et=s[J];x=T(this.chart.scales[J].getPixelForValue(et))}N=e.top,Y=e.bottom,P=x+_,j=P+p}else if(n==="y"){if(s==="center")x=T((e.left+e.right)/2);else if(Ee(s)){const J=Object.keys(s)[0],et=s[J];x=T(this.chart.scales[J].getPixelForValue(et))}k=x-_,A=k-p,B=e.left,V=e.right}const nt=fn(i.ticks.maxTicksLimit,d),K=Math.max(1,Math.ceil(d/nt));for(w=0;wi.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,s;const l=(c,h,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(h.x,h.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),s=e[n].split("."),l=s.pop(),c=s.join(".");In.route(o,i,c,l)})}function rOt(t){return"id"in t&&"defaults"in t}class iOt{constructor(){this.controllers=new Ey(cu,"datasets",!0),this.elements=new Ey(l9,"elements"),this.plugins=new Ey(Object,"plugins"),this.scales=new Ey(Vd,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):Ar(i,s=>{const l=r||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,n,r){const i=xL(e);vn(r["before"+i],[],r),n[e](r),vn(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;no.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function sOt(t){const e={},n=[],r=Object.keys(ts.plugins.items);for(let o=0;o1&&II(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function FI(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function fOt(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return FI(t,"x",n[0])||FI(t,"y",n[0])}return{}}function pOt(t,e){const n=Ou[t.type]||{scales:{}},r=e.scales||{},i=RO(t.type,e),o=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!Ee(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=jO(s,l,fOt(s,t),In.scales[l.type]),h=hOt(c,i),d=n.scales||{};o[s]=fm(Object.create(null),[{axis:c},l,d[c],d[h]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||RO(l,e),h=(Ou[l]||{}).scales||{};Object.keys(h).forEach(d=>{const p=uOt(d,c),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),fm(o[m],[{axis:p},r[m],h[d]])})}),Object.keys(o).forEach(s=>{const l=o[s];fm(l,[In.scales[l.type],In.scale])}),o}function c9(t){const e=t.options||(t.options={});e.plugins=fn(e.plugins,{}),e.scales=pOt(t,e)}function u9(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function mOt(t){return t=t||{},t.data=u9(t.data),c9(t),t}const BI=new Map,h9=new Set;function Oy(t,e){let n=BI.get(t);return n||(n=e(),BI.set(t,n),h9.add(n)),n}const fp=(t,e,n)=>{const r=Eu(e,n);r!==void 0&&t.add(r)};class gOt{constructor(e){this._config=mOt(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=u9(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),c9(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Oy(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Oy(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Oy(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Oy(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,s=this._cachedScopes(e,r),l=s.get(n);if(l)return l;const c=new Set;n.forEach(d=>{e&&(c.add(e),d.forEach(p=>fp(c,e,p))),d.forEach(p=>fp(c,i,p)),d.forEach(p=>fp(c,Ou[o]||{},p)),d.forEach(p=>fp(c,In,p)),d.forEach(p=>fp(c,AO,p))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),h9.has(n)&&s.set(n,h),h}chartOptionScopes(){const{options:e,type:n}=this;return[e,Ou[n]||{},In.datasets[n]||{},{type:n},In,AO]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:l}=$I(this._resolverCache,e,i);let c=s;if(yOt(s,n)){o.$shared=!1,r=Al(r)?r():r;const h=this.createResolver(e,r,l);c=Pd(s,r,h)}for(const h of n)o[h]=c[h];return o}createResolver(e,n,r=[""],i){const{resolver:o}=$I(this._resolverCache,e,r);return Ee(n)?Pd(o,n,void 0,i):o}}function $I(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:TL(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const vOt=t=>Ee(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Al(t[n]),!1);function yOt(t,e){const{isScriptable:n,isIndexable:r}=KU(t);for(const i of e){const o=n(i),s=r(i),l=(s||o)&&t[i];if(o&&(Al(l)||vOt(l))||s&&bn(l))return!0}return!1}var _Ot="4.3.3";const bOt=["top","bottom","left","right","chartArea"];function zI(t,e){return t==="top"||t==="bottom"||bOt.indexOf(t)===-1&&e==="x"}function UI(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function VI(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),vn(n&&n.onComplete,[t],e)}function xOt(t){const e=t.chart,n=e.options.animation;vn(n&&n.onProgress,[t],e)}function d9(t){return t9()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const x_={},HI=t=>{const e=d9(t);return Object.values(x_).filter(n=>n.canvas===e).pop()};function wOt(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const s=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=s)}}}function SOt(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function TOt(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}var Da;let PL=(Da=class{static register(...t){ts.add(...t),WI()}static unregister(...t){ts.remove(...t),WI()}constructor(t,e){const n=this.config=new gOt(e),r=d9(t),i=HI(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||zEt(r)),this.platform.updateConfig(n);const s=this.platform.acquireContext(r,o.aspectRatio),l=s&&s.canvas,c=l&&l.height,h=l&&l.width;if(this.id=USt(),this.ctx=s,this.canvas=l,this.width=h,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new oOt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nTt(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],x_[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Zs.listen(this,"complete",VI),Zs.listen(this,"progress",xOt),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:i}=this;return $e(t)?e&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ts}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():mI(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return dI(this.canvas,this.ctx),this}stop(){return Zs.stop(this),this}resize(t,e){Zs.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,i),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,mI(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),vn(n.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};Ar(t,(e,n)=>{e.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce((o,s)=>(o[s]=!1,o),{});let i=[];e&&(i=i.concat(Object.keys(e).map(o=>{const s=e[o],l=jO(o,s),c=l==="r",h=l==="x";return{options:s,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),Ar(i,o=>{const s=o.options,l=s.id,c=jO(l,s),h=fn(s.type,o.dtype);(s.position===void 0||zI(s.position,c)!==zI(o.dposition))&&(s.position=o.dposition),r[l]=!0;let d=null;if(l in n&&n[l].type===h)d=n[l];else{const p=ts.getScale(h);d=new p({id:l,type:h,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(s,t)}),Ar(r,(o,s)=>{o||delete n[s]}),Ar(n,o=>{wy.configure(this,o,o.options),wy.addBox(this,o)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((r,i)=>r.index-i.index),n>e){for(let r=e;re.length&&delete this._stacks,t.forEach((n,r)=>{e.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,h=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(UI("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ar(this.scales,t=>{wy.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!rI(e,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of e){const o=n==="_removeElements"?-i:i;wOt(t,r,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=i=>new Set(t.filter(o=>o[0]===i).map((o,s)=>s+","+o.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wy.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Ar(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,i=TOt(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&ZU(e,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&GU(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Mh(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=bEt.modes[e];return typeof i=="function"?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter(i=>i&&i._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Ud(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!e.hidden}setDatasetVisibility(t,e){const n=this.getDatasetMeta(t);n.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,r);_g(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(i,{visible:n}),this.update(s=>s.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Zs.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,o),t[i]=o},r=(i,o,s)=>{i.offsetX=o,i.offsetY=s,this._eventHandler(i)};Ar(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const s=()=>{r("attach",s),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){Ar(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Ar(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,o,s,l;for(e==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),s=0,l=t.length;s{const o=this.getDatasetMeta(r);if(!o)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:o.data[i],index:i}});!eI(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),o=i(e,t),s=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),s.length&&r.mode&&this.updateHoverStyle(s,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:i}=this,o=e,s=this._getActiveElements(t,r,n,o),l=GSt(t),c=SOt(t,this._lastEvent,n,l);n&&(this._lastEvent=null,vn(i.onHover,[t,s,this],this),l&&vn(i.onClick,[t,s,this],this));const h=!eI(s,r);return(h||e)&&(this._active=s,this._updateHoverStyles(s,r,e)),this._lastEvent=c,h}_getActiveElements(t,e,n,r){if(t.type==="mouseout")return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}},Qt(Da,"defaults",In),Qt(Da,"instances",x_),Qt(Da,"overrides",Ou),Qt(Da,"registry",ts),Qt(Da,"version",_Ot),Qt(Da,"getChart",HI),Da);function WI(){return Ar(PL.instances,t=>t._plugins.invalidate())}function EOt(t,e){const n=[],{bounds:r,step:i,min:o,max:s,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:p}=t,m=i||1,v=h-1,{min:y,max:_}=e,T=!$e(o),x=!$e(s),w=!$e(c),E=(_-y)/(d+1);let O=iI((_-y)/v/m)*m,k,P,A,j;if(O<1e-14&&!T&&!x)return[{value:y},{value:_}];j=Math.ceil(_/O)-Math.floor(y/O),j>v&&(O=iI(j*O/v/m)*m),$e(l)||(k=Math.pow(10,l),O=Math.ceil(O*k)/k),r==="ticks"?(P=Math.floor(y/O)*O,A=Math.ceil(_/O)*O):(P=y,A=_),T&&x&&i&&KSt((s-o)/i,O/1e3)?(j=Math.round(Math.min((s-o)/O,h)),O=(s-o)/j,P=o,A=s):w?(P=T?o:P,A=x?s:A,j=c-1,O=(A-P)/j):(j=(A-P)/O,v_(j,Math.round(j),O/1e3)?j=Math.round(j):j=Math.ceil(j));const B=Math.max(oI(O),oI(P));k=Math.pow(10,$e(l)?B:l),P=Math.round(P*k)/k,A=Math.round(A*k)/k;let N=0;for(T&&(p&&P!==o?(n.push({value:o}),Ps)break;n.push({value:V})}return x&&p&&A!==s?n.length&&v_(n[n.length-1].value,s,YI(s,E,t))?n[n.length-1].value=s:n.push({value:s}):(!x||A===s)&&n.push({value:A}),n}function YI(t,e,{horizontal:n,minRotation:r}){const i=cs(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class mb extends Vd{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return $e(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=c=>i=n?i:c,l=c=>o=r?o:c;if(e){const c=bl(i),h=bl(o);c<0&&h<0?l(0):c>0&&h>0&&s(0)}if(i===o){let c=o===0?1:Math.abs(o*.05);l(o+c),e||s(i-c)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=EOt(i,o);return e.bounds==="ticks"&&$U(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return $1(e,this.chart.options.locale,this.options.ticks.format)}}class ZI extends mb{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=sr(e)?e:0,this.max=sr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=cs(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Qt(ZI,"id","linear"),Qt(ZI,"defaults",{ticks:{callback:z1.formatters.numeric}});const wg=t=>Math.floor(ol(t)),Cc=(t,e)=>Math.pow(10,wg(t)+e);function GI(t){return t/Math.pow(10,wg(t))===1}function qI(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function OOt(t,e){const n=e-t;let r=wg(n);for(;qI(t,e,r)>10;)r++;for(;qI(t,e,r)<10;)r--;return Math.min(r,wg(t))}function COt(t,{min:e,max:n}){e=ki(t.min,e);const r=[],i=wg(e);let o=OOt(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=i>o?Math.pow(10,i):0,h=Math.round((e-c)*s)/s,d=Math.floor((e-c)/l/10)*l*10;let p=Math.floor((h-d)/Math.pow(10,o)),m=ki(t.min,Math.round((c+d+p*Math.pow(10,o))*s)/s);for(;m=10?p=p<15?15:20:p++,p>=20&&(o++,p=2,s=o>=0?1:s),m=Math.round((c+d+p*Math.pow(10,o))*s)/s;const v=ki(t.max,m);return r.push({value:v,major:GI(v),significand:p}),r}class KI extends Vd{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=mb.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return sr(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=sr(e)?Math.max(0,e):null,this.max=sr(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!sr(this._userMin)&&(this.min=e===Cc(this.min,0)?Cc(this.min,-1):Cc(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=l=>r=e?r:l,s=l=>i=n?i:l;r===i&&(r<=0?(o(1),s(10)):(o(Cc(r,-1)),s(Cc(i,1)))),r<=0&&o(Cc(i,-1)),i<=0&&s(Cc(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=COt(n,this);return e.bounds==="ticks"&&$U(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":$1(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=ol(e),this._valueRange=ol(this.max)-ol(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(ol(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}Qt(KI,"id","logarithmic"),Qt(KI,"defaults",{ticks:{callback:z1.formatters.logarithmic,major:{enabled:!0}}});function NO(t){const e=t.ticks;if(e.display&&t.display){const n=xa(e.backdropPadding);return fn(e.font&&e.font.size,In.font.size)+n.height}return 0}function kOt(t,e,n){return n=bn(n)?n:[n],{w:mTt(t,e.string,n),h:n.length*e.lineHeight}}function XI(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function POt(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?_o/o:0;for(let c=0;ce.r&&(l=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+l)),i.starte.b&&(c=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function MOt(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:o,padding:s,size:l}=n,c=t.getPointPosition(e,r+i+s,o),h=Math.round(wL(es(c.angle+oo))),d=DOt(c.y,l.h,h),p=jOt(h),m=NOt(c.x,l.w,p);return{visible:!0,x:c.x,y:d,textAlign:p,left:m,top:d,right:m+l.w,bottom:d+l.h}}function AOt(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:o}=t;return!(Mh({x:n,y:r},e)||Mh({x:n,y:o},e)||Mh({x:i,y:r},e)||Mh({x:i,y:o},e))}function ROt(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,{centerPointLabels:s,display:l}=o.pointLabels,c={extra:NO(o)/2,additionalAngle:s?_o/i:0};let h;for(let d=0;d270||n<90)&&(t-=e),t}function IOt(t,e,n){const{left:r,top:i,right:o,bottom:s}=n,{backdropColor:l}=e;if(!$e(l)){const c=ETt(e.borderRadius),h=xa(e.backdropPadding);t.fillStyle=l;const d=r-h.left,p=i-h.top,m=o-r+h.width,v=s-i+h.height;Object.values(c).some(y=>y!==0)?(t.beginPath(),_Tt(t,{x:d,y:p,w:m,h:v,radius:c}),t.fill()):t.fillRect(d,p,m,v)}}function FOt(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const o=t._pointLabelItems[i];if(!o.visible)continue;const s=r.setContext(t.getPointLabelContext(i));IOt(n,s,o);const l=kd(s.font),{x:c,y:h,textAlign:d}=o;db(n,t._pointLabels[i],c,h+l.lineHeight/2,l,{color:s.color,textAlign:d,textBaseline:"middle"})}}function f9(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Ni);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let s=1;s{const i=vn(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?POt(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Ni/(this._pointLabels.length||1),r=this.options.startAngle||0;return es(e*n+cs(r))}getDistanceFromCenterForValue(e){if($e(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if($e(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(p!==0){c=this.getDistanceFromCenterForValue(d.value);const m=this.getContext(p),v=i.setContext(m),y=o.setContext(m);BOt(this,v,c,s,y)}}),r.display){for(e.save(),l=s-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:p,lineWidth:m}=d;!m||!p||(e.lineWidth=m,e.strokeStyle=p,e.setLineDash(d.borderDash),e.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(h.x,h.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!n.reverse)return;const h=r.setContext(this.getContext(c)),d=kd(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),h.showLabelBackdrop){e.font=d.string,s=e.measureText(l.label).width,e.fillStyle=h.backdropColor;const p=xa(h.backdropPadding);e.fillRect(-s/2-p.left,-o-d.size/2-p.top,s+p.width,d.size+p.height)}db(e,l.label,0,-o,d,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),e.restore()}drawTitle(){}}Qt(Cy,"id","radialLinear"),Qt(Cy,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:z1.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Qt(Cy,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Qt(Cy,"descriptors",{angleLines:{_fallback:"grid"}});const V1={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ri=Object.keys(V1);function QI(t,e){return t-e}function JI(t,e){if($e(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),sr(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(bg(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function t4(t,e,n,r){const i=ri.length;for(let o=ri.indexOf(t);o=ri.indexOf(n);o--){const s=ri[o];if(V1[s].common&&t._adapter.diff(i,r,s)>=e-1)return s}return ri[n?ri.indexOf(n):0]}function UOt(t){for(let e=ri.indexOf(t)+1,n=ri.length;e=e?n[r]:n[i];t[o]=!0}}function VOt(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),s=e[e.length-1].value;let l,c;for(l=o;l<=s;l=+i.add(l,1,r))c=n[l],c>=0&&(e[c].major=!0);return e}function n4(t,e,n){const r=[],i={},o=e.length;let s,l;for(s=0;s+e.value))}initOffsets(e=[]){let n=0,r=0,i,o;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=oa(n,0,s),r=oa(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||t4(o.minUnit,n,r,this._getLabelCapacity(n)),l=fn(i.ticks.stepSize,1),c=s==="week"?o.isoWeekday:!1,h=bg(c)||c===!0,d={};let p=n,m,v;if(h&&(p=+e.startOf(p,"isoWeek",c)),p=+e.startOf(p,h?"day":s),e.diff(r,n,s)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,v=0;m+_)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return vn(s,[e,n,r],this);const l=o.time.displayFormats,c=this._unit,h=this._majorUnit,d=c&&l[c],p=h&&l[h],m=r[n],v=h&&p&&m&&m.major;return this._adapter.format(e,i||(v?p:d))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Gc(t,"pos",e)),{pos:o,time:l}=t[r],{pos:s,time:c}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Gc(t,"time",e)),{time:o,pos:l}=t[r],{time:s,pos:c}=t[i]);const h=s-o;return h?l+(c-l)*(e-o)/h:l}class r4 extends gb{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=ky(n,this.min),this._tableRange=ky(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let s,l,c,h,d;for(s=0,l=e.length;s=n&&h<=r&&i.push(h);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,l=i.length;si-o)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(ky(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return ky(this._table,r*this._tableRange+this._minPos,!0)}}Qt(r4,"id","timeseries"),Qt(r4,"defaults",gb.defaults);const p9="label";function i4(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function HOt(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function m9(t,e){t.labels=e}function g9(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p9;const r=[];t.datasets=e.map(i=>{const o=t.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function WOt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p9;const n={labels:[],datasets:[]};return m9(n,t.labels),g9(n,t.datasets,e),n}function v9(t,e){return t.getElementsAtEventForMode(e.nativeEvent,"nearest",{intersect:!0},!1)}function YOt(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:l,options:c,plugins:h=[],fallbackContent:d,updateMode:p,...m}=t,v=U.useRef(null),y=U.useRef(),_=()=>{v.current&&(y.current=new PL(v.current,{type:s,data:WOt(l,o),options:c&&{...c},plugins:h}),i4(e,y.current))},T=()=>{i4(e,null),y.current&&(y.current.destroy(),y.current=null)};return U.useEffect(()=>{!i&&y.current&&c&&HOt(y.current,c)},[i,c]),U.useEffect(()=>{!i&&y.current&&m9(y.current.config.data,l.labels)},[i,l.labels]),U.useEffect(()=>{!i&&y.current&&l.datasets&&g9(y.current.config.data,l.datasets,o)},[i,l.datasets]),U.useEffect(()=>{y.current&&(i?(T(),setTimeout(_)):y.current.update(p))},[i,c,l.labels,l.datasets,p]),U.useEffect(()=>{y.current&&(T(),setTimeout(_))},[s]),U.useEffect(()=>(_(),()=>T()),[]),q.createElement("canvas",Object.assign({ref:v,role:"img",height:n,width:r},m),d)}const ZOt=U.forwardRef(YOt);function LL(t,e){return PL.register(e),U.forwardRef((n,r)=>q.createElement(ZOt,Object.assign({},n,{ref:r,type:t})))}const GOt=LL("line",__),qOt=LL("bar",y_),KOt=LL("doughnut",Ap),y9=({native:t},[e])=>{if(!(t!=null&&t.target))return;const n=t.target;n.style.cursor=e?"pointer":"default"},_9=({dataset:t,raw:e})=>`${t.label}: ${Qn(`${e}`)}`,XOt=({label:t,raw:e})=>`${t}: ${Qn(`${e}`)}`,QOt=({chart:t})=>{const{config:e}=t,{labels:n=[],datasets:r=[]}=e.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=e.options??{};return b.jsx("ul",{className:"doughnut-chart-legend",children:n.map((s,l)=>b.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[b.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[l]??o}}),b.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},JOt=t=>[{data:t,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:Fut()?Iut:Dut,borderWidth:2}],tCt=(t,e)=>({labels:t,datasets:JOt(e)}),eCt=U.memo(({stats:t})=>{const[e,n]=U.useState(),r=_s(t),i=TP(t),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:XOt}}}},s=tCt(r,i);return b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-sm-12 col-md-7",children:b.jsx(KOt,{height:300,data:s,options:o,ref:l=>{l&&n(l)}})}),b.jsx("div",{className:"col-sm-12 col-md-5",children:e&&b.jsx(QOt,{chart:e})})]})}),o4=({title:t,stats:e})=>b.jsx(jU,{title:t,children:b.jsx(eCt,{stats:e})}),nCt={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},b9={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},An={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Wr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Fa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Tt{static getFirstMatch(e,n){const r=n.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,n){const r=n.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,n,r){if(e.test(n))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const n=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const n=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,n,r=!1){const i=Tt.getVersionPrecision(e),o=Tt.getVersionPrecision(n);let s=Math.max(i,o),l=0;const c=Tt.map([e,n],h=>{const d=s-Tt.getVersionPrecision(h),p=h+new Array(d+1).join(".0");return Tt.map(p.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(r&&(l=s-Math.min(i,o)),s-=1;s>=l;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===l)return 0;s-=1}else if(c[0][s]{r[l]=s[l]})}return e}static getBrowserAlias(e){return nCt[e]}static getBrowserTypeByAlias(e){return b9[e]||""}}const Be=/version\/(\d+(\.?_?\d+)+)/i,rCt=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},n=Tt.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},n=Tt.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},n=Tt.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},n=Tt.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},n=Tt.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},n=Tt.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},n=Tt.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},n=Tt.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=Tt.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},n=Tt.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},n=Tt.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},n=Tt.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},n=Tt.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},n=Tt.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},n=Tt.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},n=Tt.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},n=Tt.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},n=Tt.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},n=Tt.getFirstMatch(Be,t)||Tt.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},n=Tt.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},n=Tt.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},n=Tt.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},n=Tt.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},n=Tt.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},n=Tt.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},n=Tt.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},n=Tt.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},n=Tt.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e={name:"Android Browser"},n=Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},n=Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},n=Tt.getFirstMatch(Be,t);return n&&(e.version=n),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=t.search("\\(")!==-1?n:e;return{name:Tt.getFirstMatch(r,t),version:Tt.getSecondMatch(r,t)}}}],iCt=[{test:[/Roku\/DVP/],describe(t){const e=Tt.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Wr.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=Tt.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Wr.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=Tt.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=Tt.getWindowsVersionName(e);return{name:Wr.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Wr.iOS},n=Tt.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe(t){const e=Tt.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=Tt.getMacOSVersionName(e),r={name:Wr.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=Tt.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Wr.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e=Tt.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=Tt.getAndroidVersionName(e),r={name:Wr.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=Tt.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:Wr.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=Tt.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||Tt.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||Tt.getFirstMatch(/\bbb(\d+)/i,t);return{name:Wr.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=Tt.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Wr.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=Tt.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Wr.Linux}}},{test:[/CrOS/],describe(){return{name:Wr.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=Tt.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.PlayStation4,version:e}}}],oCt=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=Tt.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:An.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:An.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:An.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:An.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:An.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:An.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:An.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe(t){const e=Tt.getFirstMatch(/(ipod|iphone)/i,t);return{type:An.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:An.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:An.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:An.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:An.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:An.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:An.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:An.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:An.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:An.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:An.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:An.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:An.tv}}}],sCt=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Fa.Blink};const e=Tt.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Fa.EdgeHTML,version:e}}},{test:[/trident/i],describe(t){const e={name:Fa.Trident},n=Tt.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Fa.Presto},n=Tt.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe(t){const e={name:Fa.Gecko},n=Tt.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Fa.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Fa.WebKit},n=Tt.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];class s4{constructor(e,n=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=Tt.find(rCt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=Tt.find(iCt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:n}=this.getOS();return e?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:n}=this.getPlatform();return e?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const e=Tt.find(oCt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=Tt.find(sCt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Tt.assign({},this.parsedResult)}satisfies(e){const n={};let r=0;const i={};let o=0;if(Object.keys(e).forEach(s=>{const l=e[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=Tt.find(s,h=>this.isOS(h));if(l){const h=this.satisfies(n[l]);if(h!==void 0)return h}const c=Tt.find(s,h=>this.isPlatform(h));if(c){const h=this.satisfies(n[c]);if(h!==void 0)return h}}if(o>0){const s=Object.keys(i),l=Tt.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,n=!1){const r=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const o=Tt.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(e){let n=[0],r=e,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(i=!0,r=e.substr(2)):n=[],e[0]===">"?n.push(1):n.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(i=!0,r=e.substr(1)),n.indexOf(Tt.compareVersions(o,r,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,n=!1){return this.isBrowser(e,n)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(n=>this.is(n))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class aCt{static getParser(e,n=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new s4(e,n)}static parse(e){return new s4(e).getResult()}static get BROWSER_MAP(){return b9}static get ENGINE_MAP(){return Fa}static get OS_MAP(){return Wr}static get PLATFORMS_MAP(){return An}}const Py="Others",lCt=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],cCt=t=>{if(!ss(t))return{browser:Py,os:Py};const{browser:{name:e},os:{name:n}}=aCt.parse(t);return{os:n??Py,browser:e&&lCt.includes(e)?e:Py}},uCt=t=>{var e;return ss(t)?((e=t.split("/")[t.includes("://")?2:0])==null?void 0:e.split(":")[0])??"":"Direct"},ML=(t,e)=>Object.values({...jz(e,e.map(()=>0)),...t}),a4={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},hCt={hourly:t=>({hours:t}),daily:t=>({days:t}),weekly:t=>({weeks:t}),monthly:t=>({months:t})},dCt={hourly:kgt,daily:NP,weekly:Mgt,monthly:X0},AL={hourly:t=>xd(t,"yyyy-MM-dd HH:00"),daily:t=>Zc(t),weekly(t){const e=Zc(ag(t)),n=Zc(jgt(t));return`${e} - ${n}`},monthly:t=>xd(t,"yyyy-MM")},fCt=t=>{const e=new Date,n=_a(t);return PP([[()=>NP(e,n)<=2,d2("hourly")],[()=>X0(e,n)<=1,d2("daily")],[()=>X0(e,n)<=6,d2("weekly")]])()??"monthly"},l4=(t,e)=>Mz(n=>AL[t](_a(n.date)),e),pCt=(t,e)=>e.reduce((n,r)=>{const i=AL[t](_a(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),mCt=(t,e)=>{const n=dCt[t],r=AL[t],i=_a(e[0].date),o=_a(e[e.length-1].date),s=n(i,o),l=hCt[t];return[r(o),...YP(s,c=>r(vgt(o,l(c))))]},gCt=(t,e,n,r)=>{if(r)return[Object.keys(e),Object.values(e)];const i=mCt(n,t);return[i,ML(e,i)]},c4=(t,e,n)=>({label:e,data:t,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Z2=null;const vCt=(t,e,[n],r)=>{if(!r||!n)return;const{index:i}=n;Z2===t[i]?(r([]),Z2=null):(r(t[i]&&e[t[i]]?e[t[i]]:[]),Z2=t[i]??null)},yCt=({title:t,visits:e,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=U.useState(e.length>0?fCt(e[e.length-1].date):"monthly"),[l,c]=zn(!0),h=U.useRef(null),d=U.useRef(null),p=U.useMemo(()=>pCt(o,e),[o,e]),m=U.useMemo(()=>l4(o,tO(e)),[o,e]),[v,y]=U.useMemo(()=>gCt(e,m,o,l),[e,o,l]),_=U.useMemo(()=>ML(l4(o,tO(n)),v),[n,o,v]),T=()=>{const O=c4(y,"Visits",nP);if(n.length===0)return[O];const k=c4(_,r,L$);return[O,k]},x=()=>({labels:v,datasets:T()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:_9}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:Qn}},x:{title:{display:!0,text:a4[o]}}},onHover:y9},E=O=>b.jsx(GOt,{ref:O,data:x(),options:w,onClick:k=>vCt(v,p,v9(O.current,k),i)});return b.jsxs(zi,{children:[b.jsxs(hd,{role:"heading",children:[t,b.jsx("div",{className:"float-end",children:b.jsxs(Hg,{children:[b.jsx(zg,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),b.jsx(Nd,{end:!0,children:Object.entries(a4).map(([O,k])=>b.jsx(Zt,{active:o===O,onClick:()=>s(O),children:k},O))})]})}),b.jsx("div",{className:"float-end me-2",children:b.jsx(fd,{checked:l,onChange:c,children:b.jsx("small",{children:"Skip dates with no visits"})})})]}),b.jsxs(ud,{className:"line-chart-card__body",children:[n.length>0&&E(h),n.length===0&&E(d)]})]})},_Ct=({toggleClassName:t,ranges:e,value:n,setValue:r})=>b.jsxs(Hg,{children:[b.jsx(zg,{caret:!0,color:"link",className:t,children:"Paginate"}),b.jsxs(Nd,{end:!0,children:[e.map(i=>b.jsxs(Zt,{active:i===n,onClick:()=>r(i),children:[b.jsx("b",{children:i})," items per page"]},i)),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{disabled:n===1/0,onClick:()=>r(1/0),children:b.jsx("i",{children:"Clear pagination"})})]})]}),bCt=t=>t.startsWith("hidden")?"":t,xCt=t=>!!t&&Object.keys(t).length>0,wCt=t=>t.length>20?t.length*10:void 0,SCt=(t,e,n)=>{const r={data:t,label:n?"Non-selected":"Visits",backgroundColor:jut,borderColor:nP,borderWidth:2};return e.every(i=>i===0)?[r]:[r,{label:n??"Selected",data:e,backgroundColor:Nut,borderColor:L$,borderWidth:2}]},TCt=(t,e,n,r)=>({labels:t,datasets:SCt(e,n,r)}),ECt=(t,[e],n)=>{!n||!e||n(t[e.index])},OCt=({stats:t,highlightedStats:e,highlightedLabel:n,onClick:r,max:i})=>{const o=_s(t).map(bCt),s=TP(xCt(e)?_s(e).reduce((y,_)=>(y[_]&&(y[_]-=e[_]),y),{...t}):t),l=ML(e??{},o),c=U.useRef(null),h=U.useRef(null),d={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:y})=>y!=="",callbacks:{label:_9}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:Qn}},y:{stacked:!0}},onHover:y9,indexAxis:"y"},p=TCt(o,s,l,n),m=wCt(o),v=(y,_)=>b.jsx(qOt,{ref:_,data:p,options:d,height:m,onClick:T=>ECt(o,v9(_.current,T),r)},`${m}_${y}`);return b.jsxs(b.Fragment,{children:[e!==void 0&&v("with_stats",c),e===void 0&&v("without_stats",h)]})},CCt=t=>Z0(t)==="String"?Qmt(t):t,u4=([t])=>t,h4=([,t])=>t,Ly=({stats:t,highlightedStats:e,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[l,c]=U.useState({}),[h,d]=U.useState(1),[p,m]=U.useState(50),v=(P,A)=>{const j=dD(P),B=l.field?qmt(cr(l.field===Object.keys(A)[0]?u4:h4,CCt),j):j;return!l.dir||l.dir==="ASC"?B:tO(B)},y=P=>{const A=P[h-1];if(h[`hidden_${B}`,0])]},_=P=>b.jsx(hL,{currentPage:h,pagesCount:P,setCurrentPage:d}),T=(P,A,j)=>{const B=v(P,A),N=B.map(u4),V=j&&dD({...jz(N,N.map(()=>0)),...j});if(B.length<=p)return{currentPageStats:iy(B),currentPageHighlightedStats:V&&iy(V)};const Y=sg(p,B),nt=V&&sg(p,V);return{currentPageStats:iy(y(Y)),currentPageHighlightedStats:nt&&iy(y(nt)),pagination:_(Y.length),max:H_t(Math.max(...B.map(h4)))}},{currentPageStats:x,currentPageHighlightedStats:w,pagination:E,max:O}=T(t,r,e&&Object.keys(e).length>0?e:void 0),k=Object.keys(x);return b.jsx(jU,{title:()=>b.jsxs(b.Fragment,{children:[n,b.jsx("div",{className:"float-end",children:b.jsx(Yg,{isButton:!1,right:!0,items:r,order:l,onChange:(P,A)=>{c({field:P,dir:A}),d(1)}})}),o&&Object.keys(t).length>50&&b.jsx("div",{className:"float-end",children:b.jsx(_Ct,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:p,setValue:P=>{m(P),d(1)}})}),i&&b.jsx("div",{className:"float-end",children:i(E?k:void 0)})]}),footer:E,children:b.jsx(OCt,{stats:x,highlightedStats:w,max:O,...s})})},kCt=()=>{const t=ws(),{search:e}=Un(),{filtering:n,domain:r}=U.useMemo(cr(()=>Du(e),({startDate:i,endDate:o,orphanVisitsType:s,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:i!=null||o!=null?d7(i,o):void 0,visitsFilter:{orphanVisitsType:s,excludeBots:Fu(l)?void 0:l==="true"}}})),[e]);return[n,i=>{const{dateRange:o,visitsFilter:s}=Umt(n,i),{excludeBots:l,orphanVisitsType:c}=s,h={startDate:(o==null?void 0:o.startDate)&&Ml(o.startDate)||"",endDate:(o==null?void 0:o.endDate)&&Ml(o.endDate)||"",excludeBots:l===void 0?void 0:v7(l),orphanVisitsType:c,domain:r},d=Gg(h),p=qi(d)?"":`?${d}`;t(p,{replace:!0,relative:"route"})}]};function x9(t,e){const n=U.useRef(e);U.useEffect(function(){e!==n.current&&t.attributionControl!=null&&(n.current!=null&&t.attributionControl.removeAttribution(n.current),e!=null&&t.attributionControl.addAttribution(e)),n.current=e},[t,e])}const PCt=1;function LCt(t){return Object.freeze({__version:PCt,map:t})}function MCt(t,e){return Object.freeze({...t,...e})}const w9=U.createContext(null),S9=w9.Provider;function T9(){const t=U.useContext(w9);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return t}function ACt(t){function e(n,r){const{instance:i,context:o}=t(n).current;return U.useImperativeHandle(r,()=>i),n.children==null?null:q.createElement(S9,{value:o},n.children)}return U.forwardRef(e)}function RCt(t){function e(n,r){const[i,o]=U.useState(!1),{instance:s}=t(n,o).current;U.useImperativeHandle(r,()=>s),U.useEffect(function(){i&&s.update()},[s,i,n.children]);const l=s._contentNode;return l?Mu.createPortal(n.children,l):null}return U.forwardRef(e)}function jCt(t){function e(n,r){const{instance:i}=t(n).current;return U.useImperativeHandle(r,()=>i),null}return U.forwardRef(e)}function E9(t,e){const n=U.useRef();U.useEffect(function(){return e!=null&&t.instance.on(e),n.current=e,function(){n.current!=null&&t.instance.off(n.current),n.current=null}},[t,e])}function RL(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function NCt(t,e){return function(n,r){const i=T9(),o=t(RL(n,i),i);return x9(i.map,n.attribution),E9(o.current,n.eventHandlers),e(o.current,i,n,r),o}}var DO={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(t,e){(function(n,r){r(e)})(kh,function(n){var r="1.9.4";function i(a){var u,f,g,S;for(f=1,g=arguments.length;f"u"||!L||!L.Mixin)){a=E(a)?a:[a];for(var u=0;u0?Math.floor(a):Math.ceil(a)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(a){return this.clone()._add(I(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(I(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new G(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new G(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(a){a=I(a);var u=a.x-this.x,f=a.y-this.y;return Math.sqrt(u*u+f*f)},equals:function(a){return a=I(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=I(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function I(a,u,f){return a instanceof G?a:E(a)?new G(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new G(a.x,a.y):new G(a,u,f)}function H(a,u){if(a)for(var f=u?[a,u]:a,g=0,S=f.length;g=this.min.x&&f.x<=this.max.x&&u.y>=this.min.y&&f.y<=this.max.y},intersects:function(a){a=it(a);var u=this.min,f=this.max,g=a.min,S=a.max,C=S.x>=u.x&&g.x<=f.x,D=S.y>=u.y&&g.y<=f.y;return C&&D},overlaps:function(a){a=it(a);var u=this.min,f=this.max,g=a.min,S=a.max,C=S.x>u.x&&g.xu.y&&g.y=u.lat&&S.lat<=f.lat&&g.lng>=u.lng&&S.lng<=f.lng},intersects:function(a){a=Q(a);var u=this._southWest,f=this._northEast,g=a.getSouthWest(),S=a.getNorthEast(),C=S.lat>=u.lat&&g.lat<=f.lat,D=S.lng>=u.lng&&g.lng<=f.lng;return C&&D},overlaps:function(a){a=Q(a);var u=this._southWest,f=this._northEast,g=a.getSouthWest(),S=a.getNorthEast(),C=S.lat>u.lat&&g.latu.lng&&g.lng1,ln=function(){var a=!1;try{var u=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return a}(),vr=function(){return!!document.createElement("canvas").getContext}(),Cn=!!(document.createElementNS&&It("svg").createSVGRect),Hn=!!Cn&&function(){var a=document.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),kn=!Cn&&function(){try{var a=document.createElement("div");a.innerHTML='';var u=a.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),mi=navigator.platform.indexOf("Mac")===0,gi=navigator.platform.indexOf("Linux")===0;function Ne(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var wt={ie:_t,ielt9:Ct,edge:Mt,webkit:Lt,android:jt,android23:dt,androidStock:xt,opera:yt,chrome:Et,gecko:At,safari:Bt,phantom:ie,opera12:ae,win:ee,ie3d:Ve,webkit3d:Fe,gecko3d:On,any3d:gr,mobile:Or,mobileWebkit:Vn,mobileWebkit3d:Vl,msPointer:pi,pointer:Hl,touch:Wu,touchNative:Wl,mobileOpera:Yl,mobileGecko:Es,retina:gn,passiveEvents:ln,canvas:vr,svg:Cn,vml:kn,inlineSvg:Hn,mac:mi,linux:gi},Yd=wt.msPointer?"MSPointerDown":"pointerdown",Zd=wt.msPointer?"MSPointerMove":"pointermove",Gd=wt.msPointer?"MSPointerUp":"pointerup",qd=wt.msPointer?"MSPointerCancel":"pointercancel",Zl={touchstart:Yd,touchmove:Zd,touchend:Gd,touchcancel:qd},Kd={touchstart:J1,touchmove:Os,touchend:Os,touchcancel:Os},vi={},Xd=!1;function G1(a,u,f){return u==="touchstart"&&Q1(),Kd[u]?(f=Kd[u].bind(this,f),a.addEventListener(Zl[u],f,!1),f):(console.warn("wrong event specified:",u),p)}function q1(a,u,f){if(!Zl[u]){console.warn("wrong event specified:",u);return}a.removeEventListener(Zl[u],f,!1)}function K1(a){vi[a.pointerId]=a}function X1(a){vi[a.pointerId]&&(vi[a.pointerId]=a)}function Qd(a){delete vi[a.pointerId]}function Q1(){Xd||(document.addEventListener(Yd,K1,!0),document.addEventListener(Zd,X1,!0),document.addEventListener(Gd,Qd,!0),document.addEventListener(qd,Qd,!0),Xd=!0)}function Os(a,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var f in vi)u.touches.push(vi[f]);u.changedTouches=[u],a(u)}}function J1(a,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&me(u),Os(a,u)}function tx(a){var u={},f,g;for(g in a)f=a[g],u[g]=f&&f.bind?f.bind(a):f;return a=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var ex=200;function nx(a,u){a.addEventListener("dblclick",u);var f=0,g;function S(C){if(C.detail!==1){g=C.detail;return}if(!(C.pointerType==="mouse"||C.sourceCapabilities&&!C.sourceCapabilities.firesTouchEvents)){var D=rf(C);if(!(D.some(function(X){return X instanceof HTMLLabelElement&&X.attributes.for})&&!D.some(function(X){return X instanceof HTMLInputElement||X instanceof HTMLSelectElement}))){var Z=Date.now();Z-f<=ex?(g++,g===2&&u(tx(C))):g=1,f=Z}}}return a.addEventListener("click",S),{dblclick:u,simDblclick:S}}function rx(a,u){a.removeEventListener("dblclick",u.dblclick),a.removeEventListener("click",u.simDblclick)}var Gl=Ps(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xo=Ps(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Jd=xo==="webkitTransition"||xo==="OTransition"?xo+"End":"transitionend";function tf(a){return typeof a=="string"?document.getElementById(a):a}function wo(a,u){var f=a.style[u]||a.currentStyle&&a.currentStyle[u];if((!f||f==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);f=g?g[u]:null}return f==="auto"?null:f}function Yt(a,u,f){var g=document.createElement(a);return g.className=u||"",f&&f.appendChild(g),g}function Jt(a){var u=a.parentNode;u&&u.removeChild(a)}function Cs(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function yi(a){var u=a.parentNode;u&&u.lastChild!==a&&u.appendChild(a)}function _i(a){var u=a.parentNode;u&&u.firstChild!==a&&u.insertBefore(a,u.firstChild)}function ql(a,u){if(a.classList!==void 0)return a.classList.contains(u);var f=ks(a);return f.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(f)}function Dt(a,u){if(a.classList!==void 0)for(var f=y(u),g=0,S=f.length;g0?2*window.devicePixelRatio:1;function sf(a){return wt.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/sx:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function ac(a,u){var f=u.relatedTarget;if(!f)return!0;try{for(;f&&f!==a;)f=f.parentNode}catch{return!1}return f!==a}var ax={__proto__:null,on:Rt,off:Kt,stopPropagation:Ur,disableScrollPropagation:sc,disableClickPropagation:Oo,preventDefault:me,stop:Vr,getPropagationPath:rf,getMousePosition:of,getWheelDelta:sf,isExternalTarget:ac,addListener:Rt,removeListener:Kt},af=ct.extend({run:function(a,u,f,g){this.stop(),this._el=a,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(g||.5,.2),this._startPos=zr(a),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(a){var u=+new Date-this._startTime,f=this._duration*1e3;uthis.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,u){this._enforcingBounds=!0;var f=this.getCenter(),g=this._limitCenter(f,this._zoom,Q(a));return f.equals(g)||this.panTo(g,u),this._enforcingBounds=!1,this},panInside:function(a,u){u=u||{};var f=I(u.paddingTopLeft||u.padding||[0,0]),g=I(u.paddingBottomRight||u.padding||[0,0]),S=this.project(this.getCenter()),C=this.project(a),D=this.getPixelBounds(),Z=it([D.min.add(f),D.max.subtract(g)]),X=Z.getSize();if(!Z.contains(C)){this._enforcingBounds=!0;var ut=C.subtract(Z.getCenter()),gt=Z.extend(C).getSize().subtract(X);S.x+=ut.x<0?-gt.x:gt.x,S.y+=ut.y<0?-gt.y:gt.y,this.panTo(this.unproject(S),u),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),g=u.divideBy(2).round(),S=f.divideBy(2).round(),C=g.subtract(S);return!C.x&&!C.y?this:(a.animate&&a.pan?this.panBy(C):(a.pan&&this._rawPanBy(C),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=s(this._handleGeolocationResponse,this),f=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,f,a):navigator.geolocation.getCurrentPosition(u,f,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var u=a.code,f=a.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var u=a.coords.latitude,f=a.coords.longitude,g=new tt(u,f),S=g.toBounds(a.coords.accuracy*2),C=this._locateOptions;if(C.setView){var D=this.getBoundsZoom(S);this.setView(g,C.maxZoom?Math.min(D,C.maxZoom):D)}var Z={latlng:g,bounds:S,timestamp:a.timestamp};for(var X in a.coords)typeof a.coords[X]=="number"&&(Z[X]=a.coords[X]);this.fire("locationfound",Z)}},addHandler:function(a,u){if(!u)return this;var f=this[a]=new u(this);return this._handlers.push(f),this.options[a]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Jt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)Jt(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,u){var f="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Yt("div",f,u||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),u=this.unproject(a.getBottomLeft()),f=this.unproject(a.getTopRight());return new W(u,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,u,f){a=Q(a),f=I(f||[0,0]);var g=this.getZoom()||0,S=this.getMinZoom(),C=this.getMaxZoom(),D=a.getNorthWest(),Z=a.getSouthEast(),X=this.getSize().subtract(f),ut=it(this.project(Z,g),this.project(D,g)).getSize(),gt=wt.any3d?this.options.zoomSnap:1,Ot=X.x/ut.x,Ft=X.y/ut.y,Te=u?Math.max(Ot,Ft):Math.min(Ot,Ft);return g=this.getScaleZoom(Te,g),gt&&(g=Math.round(g/(gt/100))*(gt/100),g=u?Math.ceil(g/gt)*gt:Math.floor(g/gt)*gt),Math.max(S,Math.min(C,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,u){var f=this._getTopLeftPoint(a,u);return new H(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,u){var f=this.options.crs;return u=u===void 0?this._zoom:u,f.scale(a)/f.scale(u)},getScaleZoom:function(a,u){var f=this.options.crs;u=u===void 0?this._zoom:u;var g=f.zoom(a*f.scale(u));return isNaN(g)?1/0:g},project:function(a,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(rt(a),u)},unproject:function(a,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(I(a),u)},layerPointToLatLng:function(a){var u=I(a).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(a){var u=this.project(rt(a))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(rt(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(Q(a))},distance:function(a,u){return this.options.crs.distance(rt(a),rt(u))},containerPointToLayerPoint:function(a){return I(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return I(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var u=this.containerPointToLayerPoint(I(a));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(rt(a)))},mouseEventToContainerPoint:function(a){return of(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var u=this._container=tf(a);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Rt(u,"scroll",this._onScroll,this),this._containerId=c(u)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&wt.any3d,Dt(a,"leaflet-container"+(wt.touch?" leaflet-touch":"")+(wt.retina?" leaflet-retina":"")+(wt.ielt9?" leaflet-oldie":"")+(wt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=wo(a,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),oe(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Dt(a.markerPane,"leaflet-zoom-hide"),Dt(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,u,f){oe(this._mapPane,new G(0,0));var g=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var S=this._zoom!==u;this._moveStart(S,f)._move(a,u)._moveEnd(S),this.fire("viewreset"),g&&this.fire("load")},_moveStart:function(a,u){return a&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(a,u,f,g){u===void 0&&(u=this._zoom);var S=this._zoom!==u;return this._zoom=u,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),g?f&&f.pinch&&this.fire("zoom",f):((S||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){oe(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[c(this._container)]=this;var u=a?Kt:Rt;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),wt.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,u){for(var f=[],g,S=u==="mouseout"||u==="mouseover",C=a.target||a.srcElement,D=!1;C;){if(g=this._targets[c(C)],g&&(u==="click"||u==="preclick")&&this._draggableMoved(g)){D=!0;break}if(g&&g.listens(u,!0)&&(S&&!ac(C,a)||(f.push(g),S))||C===this._container)break;C=C.parentNode}return!f.length&&!D&&!S&&this.listens(u,!0)&&(f=[this]),f},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var u=a.target||a.srcElement;if(!(!this._loaded||u._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(u))){var f=a.type;f==="mousedown"&&ec(u),this._fireDOMEvent(a,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,u,f){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,f)}var S=this._findEventTargets(a,u);if(f){for(var C=[],D=0;D0?Math.round(a-u)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(u))},_limitZoom:function(a){var u=this.getMinZoom(),f=this.getMaxZoom(),g=wt.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(u,Math.min(f,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ne(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,u){var f=this._getCenterOffset(a)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,u),!0)},_createAnimProxy:function(){var a=this._proxy=Yt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(u){var f=Gl,g=this._proxy.style[f];$r(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),g===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Jt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),u=this.getZoom();$r(this._proxy,this.project(a,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,u,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(u),S=this._getCenterOffset(a)._divideBy(1-1/g);return f.animate!==!0&&!this.getSize().contains(S)?!1:(V(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(a,u,!0)},this),!0)},_animateZoom:function(a,u,f,g){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=u,Dt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:u,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ne(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function lx(a,u){return new Ut(a,u)}var cn=K.extend({options:{position:"topright"},initialize:function(a){_(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var u=this._map;return u&&u.removeControl(this),this.options.position=a,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var u=this._container=this.onAdd(a),f=this.getPosition(),g=a._controlCorners[f];return Dt(u,"leaflet-control"),f.indexOf("bottom")!==-1?g.insertBefore(u,g.firstChild):g.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Jt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),Co=function(a){return new cn(a)};Ut.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},u="leaflet-",f=this._controlContainer=Yt("div",u+"control-container",this._container);function g(S,C){var D=u+S+" "+u+C;a[S+C]=Yt("div",D,f)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)Jt(this._controlCorners[a]);Jt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var lf=cn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,u,f,g){return f1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=u&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var u=this._getLayer(c(a.target)),f=u.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;f&&this._map.fire(f,u)},_createRadioElement:function(a,u){var f='",g=document.createElement("div");return g.innerHTML=f,g.firstChild},_addItem:function(a){var u=document.createElement("label"),f=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=f):g=this._createRadioElement("leaflet-base-layers_"+c(this),f),this._layerControlInputs.push(g),g.layerId=c(a.layer),Rt(g,"click",this._onInputClick,this);var S=document.createElement("span");S.innerHTML=" "+a.name;var C=document.createElement("span");u.appendChild(C),C.appendChild(g),C.appendChild(S);var D=a.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,u,f,g=[],S=[];this._handlingClick=!0;for(var C=a.length-1;C>=0;C--)u=a[C],f=this._getLayer(u.layerId).layer,u.checked?g.push(f):u.checked||S.push(f);for(C=0;C=0;S--)u=a[S],f=this._getLayer(u.layerId).layer,u.disabled=f.options.minZoom!==void 0&&gf.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,Rt(a,"click",me),this.expand();var u=this;setTimeout(function(){Kt(a,"click",me),u._preventClick=!1})}}),cx=function(a,u,f){return new lf(a,u,f)},lc=cn.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(a){var u="leaflet-control-zoom",f=Yt("div",u+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,u+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,u+"-out",f,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,u,f,g,S){var C=Yt("a",f,g);return C.innerHTML=a,C.href="#",C.title=u,C.setAttribute("role","button"),C.setAttribute("aria-label",u),Oo(C),Rt(C,"click",Vr),Rt(C,"click",S,this),Rt(C,"click",this._refocusOnMap,this),C},_updateDisabled:function(){var a=this._map,u="leaflet-disabled";ne(this._zoomInButton,u),ne(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(Dt(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(Dt(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ut.mergeOptions({zoomControl:!0}),Ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new lc,this.addControl(this.zoomControl))});var ux=function(a){return new lc(a)},cf=cn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var u="leaflet-control-scale",f=Yt("div",u),g=this.options;return this._addScales(g,u+"-line",f),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),f},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,u,f){a.metric&&(this._mScale=Yt("div",u,f)),a.imperial&&(this._iScale=Yt("div",u,f))},_update:function(){var a=this._map,u=a.getSize().y/2,f=a.distance(a.containerPointToLatLng([0,u]),a.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(f)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var u=this._getRoundNum(a),f=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,f,u/a)},_updateImperial:function(a){var u=a*3.2808399,f,g,S;u>5280?(f=u/5280,g=this._getRoundNum(f),this._updateScale(this._iScale,g+" mi",g/f)):(S=this._getRoundNum(u),this._updateScale(this._iScale,S+" ft",S/u))},_updateScale:function(a,u,f){a.style.width=Math.round(this.options.maxWidth*f)+"px",a.innerHTML=u},_getRoundNum:function(a){var u=Math.pow(10,(Math.floor(a)+"").length-1),f=a/u;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,u*f}}),hx=function(a){return new cf(a)},dx='',cc=cn.extend({options:{position:"bottomright",prefix:''+(wt.inlineSvg?dx+" ":"")+"Leaflet"},initialize:function(a){_(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Yt("div","leaflet-control-attribution"),Oo(this._container);for(var u in a._layers)a._layers[u].getAttribution&&this.addAttribution(a._layers[u].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var u in this._attributions)this._attributions[u]&&a.push(u);var f=[];this.options.prefix&&f.push(this.options.prefix),a.length&&f.push(a.join(", ")),this._container.innerHTML=f.join(' ')}}});Ut.mergeOptions({attributionControl:!0}),Ut.addInitHook(function(){this.options.attributionControl&&new cc().addTo(this)});var fx=function(a){return new cc(a)};cn.Layers=lf,cn.Zoom=lc,cn.Scale=cf,cn.Attribution=cc,Co.layers=cx,Co.zoom=ux,Co.scale=hx,Co.attribution=fx;var Ln=K.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ln.addTo=function(a,u){return a.addHandler(u,this),this};var px={Events:et},uf=wt.touch?"touchstart mousedown":"mousedown",yr=ct.extend({options:{clickTolerance:3},initialize:function(a,u,f,g){_(this,g),this._element=a,this._dragStartTarget=u||a,this._preventOutline=f},enable:function(){this._enabled||(Rt(this._dragStartTarget,uf,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yr._dragging===this&&this.finishDrag(!0),Kt(this._dragStartTarget,uf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!ql(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){yr._dragging===this&&this.finishDrag();return}if(!(yr._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(yr._dragging=this,this._preventOutline&&ec(this._element),Ql(),So(),!this._moving)){this.fire("down");var u=a.touches?a.touches[0]:a,f=ef(this._element);this._startPoint=new G(u.clientX,u.clientY),this._startPos=zr(this._element),this._parentScale=nc(f);var g=a.type==="mousedown";Rt(document,g?"mousemove":"touchmove",this._onMove,this),Rt(document,g?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var u=a.touches&&a.touches.length===1?a.touches[0]:a,f=new G(u.clientX,u.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)C&&(D=Z,C=X);C>f&&(u[D]=1,hc(a,u,f,g,D),hc(a,u,f,D,S))}function yx(a,u){for(var f=[a[0]],g=1,S=0,C=a.length;gu&&(f.push(a[g]),S=g);return Su.max.x&&(f|=2),a.yu.max.y&&(f|=8),f}function _x(a,u){var f=u.x-a.x,g=u.y-a.y;return f*f+g*g}function ko(a,u,f,g){var S=u.x,C=u.y,D=f.x-S,Z=f.y-C,X=D*D+Z*Z,ut;return X>0&&(ut=((a.x-S)*D+(a.y-C)*Z)/X,ut>1?(S=f.x,C=f.y):ut>0&&(S+=D*ut,C+=Z*ut)),D=a.x-S,Z=a.y-C,g?D*D+Z*Z:new G(S,C)}function We(a){return!E(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function vf(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),We(a)}function yf(a,u){var f,g,S,C,D,Z,X,ut;if(!a||a.length===0)throw new Error("latlngs not passed");We(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var gt=rt([0,0]),Ot=Q(a),Ft=Ot.getNorthWest().distanceTo(Ot.getSouthWest())*Ot.getNorthEast().distanceTo(Ot.getNorthWest());Ft<1700&&(gt=uc(a));var Te=a.length,ce=[];for(f=0;fg){X=(C-g)/S,ut=[Z.x-X*(Z.x-D.x),Z.y-X*(Z.y-D.y)];break}var Pe=u.unproject(I(ut));return rt([Pe.lat+gt.lat,Pe.lng+gt.lng])}var bx={__proto__:null,simplify:ff,pointToSegmentDistance:pf,closestPointOnSegment:gx,clipSegment:gf,_getEdgeIntersection:As,_getBitCode:Hr,_sqClosestPointOnSegment:ko,isFlat:We,_flat:vf,polylineCenter:yf},dc={project:function(a){return new G(a.lng,a.lat)},unproject:function(a){return new tt(a.y,a.x)},bounds:new H([-180,-90],[180,90])},fc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var u=Math.PI/180,f=this.R,g=a.lat*u,S=this.R_MINOR/f,C=Math.sqrt(1-S*S),D=C*Math.sin(g),Z=Math.tan(Math.PI/4-g/2)/Math.pow((1-D)/(1+D),C/2);return g=-f*Math.log(Math.max(Z,1e-10)),new G(a.lng*u*f,g)},unproject:function(a){for(var u=180/Math.PI,f=this.R,g=this.R_MINOR/f,S=Math.sqrt(1-g*g),C=Math.exp(-a.y/f),D=Math.PI/2-2*Math.atan(C),Z=0,X=.1,ut;Z<15&&Math.abs(X)>1e-7;Z++)ut=S*Math.sin(D),ut=Math.pow((1-ut)/(1+ut),S/2),X=Math.PI/2-2*Math.atan(C*ut)-D,D+=X;return new tt(D*u,a.x*u/f)}},xx={__proto__:null,LonLat:dc,Mercator:fc,SphericalMercator:z},wx=i({},M,{code:"EPSG:3395",projection:fc,transformation:function(){var a=.5/(Math.PI*fc.R);return st(a,.5,-a,.5)}()}),_f=i({},M,{code:"EPSG:4326",projection:dc,transformation:st(1/180,1,-1/180,.5)}),Sx=i({},mt,{projection:dc,transformation:st(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,u){var f=u.lng-a.lng,g=u.lat-a.lat;return Math.sqrt(f*f+g*g)},infinite:!0});mt.Earth=M,mt.EPSG3395=wx,mt.EPSG3857=ht,mt.EPSG900913=bt,mt.EPSG4326=_f,mt.Simple=Sx;var un=ct.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[c(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[c(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var u=a.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var f=this.getEvents();u.on(f,this),this.once("remove",function(){u.off(f,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});Ut.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var u=c(a);return this._layers[u]?this:(this._layers[u]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var u=c(a);return this._layers[u]?(this._loaded&&a.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return c(a)in this._layers},eachLayer:function(a,u){for(var f in this._layers)a.call(u,this._layers[f]);return this},_addLayers:function(a){a=a?E(a)?a:[a]:[];for(var u=0,f=a.length;uthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&u[0]instanceof tt&&u[0].equals(u[f-1])&&u.pop(),u},_setLatLngs:function(a){Yn.prototype._setLatLngs.call(this,a),We(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return We(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,u=this.options.weight,f=new G(u,u);if(a=new H(a.min.subtract(f),a.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,S=this._rings.length,C;ga.y!=S.y>a.y&&a.x<(S.x-g.x)*(a.y-g.y)/(S.y-g.y)+g.x&&(u=!u);return u||Yn.prototype._containsPoint.call(this,a,!0)}});function Mx(a,u){return new wi(a,u)}var Zn=Wn.extend({initialize:function(a,u){_(this,u),this._layers={},a&&this.addData(a)},addData:function(a){var u=E(a)?a:a.features,f,g,S;if(u){for(f=0,g=u.length;f0&&S.push(S[0].slice()),S}function Si(a,u){return a.feature?i({},a.feature,{geometry:u}):Fs(u)}function Fs(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var vc={toGeoJSON:function(a){return Si(this,{type:"Point",coordinates:gc(this.getLatLng(),a)})}};Rs.include(vc),pc.include(vc),js.include(vc),Yn.include({toGeoJSON:function(a){var u=!We(this._latlngs),f=Is(this._latlngs,u?1:0,!1,a);return Si(this,{type:(u?"Multi":"")+"LineString",coordinates:f})}}),wi.include({toGeoJSON:function(a){var u=!We(this._latlngs),f=u&&!We(this._latlngs[0]),g=Is(this._latlngs,f?2:u?1:0,!0,a);return u||(g=[g]),Si(this,{type:(f?"Multi":"")+"Polygon",coordinates:g})}}),bi.include({toMultiPoint:function(a){var u=[];return this.eachLayer(function(f){u.push(f.toGeoJSON(a).geometry.coordinates)}),Si(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(a){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(a);var f=u==="GeometryCollection",g=[];return this.eachLayer(function(S){if(S.toGeoJSON){var C=S.toGeoJSON(a);if(f)g.push(C.geometry);else{var D=Fs(C);D.type==="FeatureCollection"?g.push.apply(g,D.features):g.push(D)}}}),f?Si(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function wf(a,u){return new Zn(a,u)}var Ax=wf,Bs=un.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,u,f){this._url=a,this._bounds=Q(u),_(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Dt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Jt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&yi(this._image),this},bringToBack:function(){return this._map&&_i(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=Q(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",u=this._image=a?this._url:Yt("img");if(Dt(u,"leaflet-image-layer"),this._zoomAnimated&&Dt(u,"leaflet-zoom-animated"),this.options.className&&Dt(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=s(this.fire,this,"load"),u.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(a){var u=this._map.getZoomScale(a.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;$r(this._image,f,u)},_reset:function(){var a=this._image,u=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=u.getSize();oe(a,u.min),a.style.width=f.x+"px",a.style.height=f.y+"px"},_updateOpacity:function(){He(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),Rx=function(a,u,f){return new Bs(a,u,f)},Sf=Bs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",u=this._image=a?this._url:Yt("video");if(Dt(u,"leaflet-image-layer"),this._zoomAnimated&&Dt(u,"leaflet-zoom-animated"),this.options.className&&Dt(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=s(this.fire,this,"load"),a){for(var f=u.getElementsByTagName("source"),g=[],S=0;S0?g:[u.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var C=0;CS?(u.height=S+"px",Dt(a,C)):ne(a,C),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var u=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),f=this._getAnchor();oe(this._container,u.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,u=parseInt(wo(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+u,g=this._containerWidth,S=new G(this._containerLeft,-f-this._containerBottom);S._add(zr(this._container));var C=a.layerPointToContainerPoint(S),D=I(this.options.autoPanPadding),Z=I(this.options.autoPanPaddingTopLeft||D),X=I(this.options.autoPanPaddingBottomRight||D),ut=a.getSize(),gt=0,Ot=0;C.x+g+X.x>ut.x&&(gt=C.x+g-ut.x+X.x),C.x-gt-Z.x<0&&(gt=C.x-Z.x),C.y+f+X.y>ut.y&&(Ot=C.y+f-ut.y+X.y),C.y-Ot-Z.y<0&&(Ot=C.y-Z.y),(gt||Ot)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([gt,Ot]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dx=function(a,u){return new $s(a,u)};Ut.mergeOptions({closePopupOnClick:!0}),Ut.include({openPopup:function(a,u,f){return this._initOverlay($s,a,u,f).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),un.include({bindPopup:function(a,u){return this._popup=this._initOverlay($s,this._popup,a,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Wn||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){Vr(a);var u=a.layer||a.target;if(this._popup._source===u&&!(u instanceof _r)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=u,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var zs=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Mn.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Mn.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Mn.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",u=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Yt("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var u,f,g=this._map,S=this._container,C=g.latLngToContainerPoint(g.getCenter()),D=g.layerPointToContainerPoint(a),Z=this.options.direction,X=S.offsetWidth,ut=S.offsetHeight,gt=I(this.options.offset),Ot=this._getAnchor();Z==="top"?(u=X/2,f=ut):Z==="bottom"?(u=X/2,f=0):Z==="center"?(u=X/2,f=ut/2):Z==="right"?(u=0,f=ut/2):Z==="left"?(u=X,f=ut/2):D.xthis.options.maxZoom||fg?this._retainParent(S,C,D,g):!1)},_retainChildren:function(a,u,f,g){for(var S=2*a;S<2*a+2;S++)for(var C=2*u;C<2*u+2;C++){var D=new G(S,C);D.z=f+1;var Z=this._tileCoordsToKey(D),X=this._tiles[Z];if(X&&X.active){X.retain=!0;continue}else X&&X.loaded&&(X.retain=!0);f+1this.options.maxZoom||this.options.minZoom!==void 0&&S1){this._setView(a,f);return}for(var Ot=S.min.y;Ot<=S.max.y;Ot++)for(var Ft=S.min.x;Ft<=S.max.x;Ft++){var Te=new G(Ft,Ot);if(Te.z=this._tileZoom,!!this._isValidTile(Te)){var ce=this._tiles[this._tileCoordsToKey(Te)];ce?ce.current=!0:D.push(Te)}}if(D.sort(function(Pe,Ei){return Pe.distanceTo(C)-Ei.distanceTo(C)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ye=document.createDocumentFragment();for(Ft=0;Ftf.max.x)||!u.wrapLat&&(a.yf.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return Q(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var u=this._map,f=this.getTileSize(),g=a.scaleBy(f),S=g.add(f),C=u.unproject(g,a.z),D=u.unproject(S,a.z);return[C,D]},_tileCoordsToBounds:function(a){var u=this._tileCoordsToNwSe(a),f=new W(u[0],u[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var u=a.split(":"),f=new G(+u[0],+u[1]);return f.z=+u[2],f},_removeTile:function(a){var u=this._tiles[a];u&&(Jt(u.el),delete this._tiles[a],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){Dt(a,"leaflet-tile");var u=this.getTileSize();a.style.width=u.x+"px",a.style.height=u.y+"px",a.onselectstart=p,a.onmousemove=p,wt.ielt9&&this.options.opacity<1&&He(a,this.options.opacity)},_addTile:function(a,u){var f=this._getTilePos(a),g=this._tileCoordsToKey(a),S=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(S),this.createTile.length<2&&V(s(this._tileReady,this,a,null,S)),oe(S,f),this._tiles[g]={el:S,coords:a,current:!0},u.appendChild(S),this.fire("tileloadstart",{tile:S,coords:a})},_tileReady:function(a,u,f){u&&this.fire("tileerror",{error:u,tile:f,coords:a});var g=this._tileCoordsToKey(a);f=this._tiles[g],f&&(f.loaded=+new Date,this._map._fadeAnimated?(He(f.el,0),Y(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),u||(Dt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),wt.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var u=new G(this._wrapX?d(a.x,this._wrapX):a.x,this._wrapY?d(a.y,this._wrapY):a.y);return u.z=a.z,u},_pxBoundsToTileRange:function(a){var u=this.getTileSize();return new H(a.min.unscaleBy(u).floor(),a.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function Bx(a){return new Lo(a)}var Ti=Lo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,u){this._url=a,u=_(this,u),u.detectRetina&&wt.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,u){return this._url===a&&u===void 0&&(u=!0),this._url=a,u||this.redraw(),this},createTile:function(a,u){var f=document.createElement("img");return Rt(f,"load",s(this._tileOnLoad,this,u,f)),Rt(f,"error",s(this._tileOnError,this,u,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(a),f},getTileUrl:function(a){var u={r:wt.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-a.y;this.options.tms&&(u.y=f),u["-y"]=f}return w(this._url,i(u,this.options))},_tileOnLoad:function(a,u){wt.ielt9?setTimeout(s(a,this,null,u),0):a(null,u)},_tileOnError:function(a,u,f){var g=this.options.errorTileUrl;g&&u.getAttribute("src")!==g&&(u.src=g),a(f,u)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,u=this.options.maxZoom,f=this.options.zoomReverse,g=this.options.zoomOffset;return f&&(a=u-a),a+g},_getSubdomain:function(a){var u=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var a,u;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(u=this._tiles[a].el,u.onload=p,u.onerror=p,!u.complete)){u.src=k;var f=this._tiles[a].coords;Jt(u),delete this._tiles[a],this.fire("tileabort",{tile:u,coords:f})}},_removeTile:function(a){var u=this._tiles[a];if(u)return u.el.setAttribute("src",k),Lo.prototype._removeTile.call(this,a)},_tileReady:function(a,u,f){if(!(!this._map||f&&f.getAttribute("src")===k))return Lo.prototype._tileReady.call(this,a,u,f)}});function Of(a,u){return new Ti(a,u)}var Cf=Ti.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,u){this._url=a;var f=i({},this.defaultWmsParams);for(var g in u)g in this.options||(f[g]=u[g]);u=_(this,u);var S=u.detectRetina&&wt.retina?2:1,C=this.getTileSize();f.width=C.x*S,f.height=C.y*S,this.wmsParams=f},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,Ti.prototype.onAdd.call(this,a)},getTileUrl:function(a){var u=this._tileCoordsToNwSe(a),f=this._crs,g=it(f.project(u[0]),f.project(u[1])),S=g.min,C=g.max,D=(this._wmsVersion>=1.3&&this._crs===_f?[S.y,S.x,C.y,C.x]:[S.x,S.y,C.x,C.y]).join(","),Z=Ti.prototype.getTileUrl.call(this,a);return Z+T(this.wmsParams,Z,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(a,u){return i(this.wmsParams,a),u||this.redraw(),this}});function $x(a,u){return new Cf(a,u)}Ti.WMS=Cf,Of.wms=$x;var Gn=un.extend({options:{padding:.1},initialize:function(a){_(this,a),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Dt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,u){var f=this._map.getZoomScale(u,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),S=this._map.project(this._center,u),C=g.multiplyBy(-f).add(S).subtract(this._map._getNewPixelOrigin(a,u));wt.any3d?$r(this._container,C,f):oe(this._container,C)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,u=this._map.getSize(),f=this._map.containerPointToLayerPoint(u.multiplyBy(-a)).round();this._bounds=new H(f,f.add(u.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),kf=Gn.extend({options:{tolerance:0},getEvents:function(){var a=Gn.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");Rt(a,"mousemove",this._onMouseMove,this),Rt(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Rt(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,Jt(this._container),Kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var u in this._layers)a=this._layers[u],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var a=this._bounds,u=this._container,f=a.getSize(),g=wt.retina?2:1;oe(u,a.min),u.width=g*f.x,u.height=g*f.y,u.style.width=f.x+"px",u.style.height=f.y+"px",wt.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){Gn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[c(a)]=a;var u=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var u=a._order,f=u.next,g=u.prev;f?f.prev=g:this._drawLast=g,g?g.next=f:this._drawFirst=f,delete a._order,delete this._layers[c(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var u=a.options.dashArray.split(/[, ]+/),f=[],g,S;for(S=0;S')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),zx={_initContainer:function(){this._container=Yt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gn.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var u=a._container=Mo("shape");Dt(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",a._path=Mo("path"),u.appendChild(a._path),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){var u=a._container;this._container.appendChild(u),a.options.interactive&&a.addInteractiveTarget(u)},_removePath:function(a){var u=a._container;Jt(u),a.removeInteractiveTarget(u),delete this._layers[c(a)]},_updateStyle:function(a){var u=a._stroke,f=a._fill,g=a.options,S=a._container;S.stroked=!!g.stroke,S.filled=!!g.fill,g.stroke?(u||(u=a._stroke=Mo("stroke")),S.appendChild(u),u.weight=g.weight+"px",u.color=g.color,u.opacity=g.opacity,g.dashArray?u.dashStyle=E(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=g.lineCap.replace("butt","flat"),u.joinstyle=g.lineJoin):u&&(S.removeChild(u),a._stroke=null),g.fill?(f||(f=a._fill=Mo("fill")),S.appendChild(f),f.color=g.fillColor||g.color,f.opacity=g.fillOpacity):f&&(S.removeChild(f),a._fill=null)},_updateCircle:function(a){var u=a._point.round(),f=Math.round(a._radius),g=Math.round(a._radiusY||f);this._setPath(a,a._empty()?"M0 0":"AL "+u.x+","+u.y+" "+f+","+g+" 0,"+65535*360)},_setPath:function(a,u){a._path.v=u},_bringToFront:function(a){yi(a._container)},_bringToBack:function(a){_i(a._container)}},Us=wt.vml?Mo:It,Ao=Gn.extend({_initContainer:function(){this._container=Us("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Us("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Jt(this._container),Kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var a=this._bounds,u=a.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,f.setAttribute("width",u.x),f.setAttribute("height",u.y)),oe(f,a.min),f.setAttribute("viewBox",[a.min.x,a.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(a){var u=a._path=Us("path");a.options.className&&Dt(u,a.options.className),a.options.interactive&&Dt(u,"leaflet-interactive"),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){Jt(a._path),a.removeInteractiveTarget(a._path),delete this._layers[c(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var u=a._path,f=a.options;u&&(f.stroke?(u.setAttribute("stroke",f.color),u.setAttribute("stroke-opacity",f.opacity),u.setAttribute("stroke-width",f.weight),u.setAttribute("stroke-linecap",f.lineCap),u.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?u.setAttribute("stroke-dasharray",f.dashArray):u.removeAttribute("stroke-dasharray"),f.dashOffset?u.setAttribute("stroke-dashoffset",f.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),f.fill?(u.setAttribute("fill",f.fillColor||f.color),u.setAttribute("fill-opacity",f.fillOpacity),u.setAttribute("fill-rule",f.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(a,u){this._setPath(a,ft(a._parts,u))},_updateCircle:function(a){var u=a._point,f=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||f,S="a"+f+","+g+" 0 1,0 ",C=a._empty()?"M0 0":"M"+(u.x-f)+","+u.y+S+f*2+",0 "+S+-f*2+",0 ";this._setPath(a,C)},_setPath:function(a,u){a._path.setAttribute("d",u)},_bringToFront:function(a){yi(a._path)},_bringToBack:function(a){_i(a._path)}});wt.vml&&Ao.include(zx);function Lf(a){return wt.svg||wt.vml?new Ao(a):null}Ut.include({getRenderer:function(a){var u=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var u=this._paneRenderers[a];return u===void 0&&(u=this._createRenderer({pane:a}),this._paneRenderers[a]=u),u},_createRenderer:function(a){return this.options.preferCanvas&&Pf(a)||Lf(a)}});var Mf=wi.extend({initialize:function(a,u){wi.prototype.initialize.call(this,this._boundsToLatLngs(a),u)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=Q(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function Ux(a,u){return new Mf(a,u)}Ao.create=Us,Ao.pointsToPath=ft,Zn.geometryToLayer=Ns,Zn.coordsToLatLng=mc,Zn.coordsToLatLngs=Ds,Zn.latLngToCoords=gc,Zn.latLngsToCoords=Is,Zn.getFeature=Si,Zn.asFeature=Fs,Ut.mergeOptions({boxZoom:!0});var Af=Ln.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Jt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),So(),Ql(),this._startPoint=this._map.mouseEventToContainerPoint(a),Rt(document,{contextmenu:Vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Yt("div","leaflet-zoom-box",this._container),Dt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var u=new H(this._point,this._startPoint),f=u.getSize();oe(this._box,u.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Jt(this._box),ne(this._container,"leaflet-crosshair")),To(),Jl(),Kt(document,{contextmenu:Vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var u=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ut.addInitHook("addHandler","boxZoom",Af),Ut.mergeOptions({doubleClickZoom:!0});var Rf=Ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var u=this._map,f=u.getZoom(),g=u.options.zoomDelta,S=a.originalEvent.shiftKey?f-g:f+g;u.options.doubleClickZoom==="center"?u.setZoom(S):u.setZoomAround(a.containerPoint,S)}});Ut.addInitHook("addHandler","doubleClickZoom",Rf),Ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var jf=Ln.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new yr(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}Dt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ne(this._map._container,"leaflet-grab"),ne(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=Q(this._map.options.maxBounds);this._offsetLimit=it(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var u=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(u),this._prunePositions(u)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,u){return a-(a-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;a.xu.max.x&&(a.x=this._viscousLimit(a.x,u.max.x)),a.y>u.max.y&&(a.y=this._viscousLimit(a.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,u=Math.round(a/2),f=this._initialWorldOffset,g=this._draggable._newPos.x,S=(g-u+f)%a+u-f,C=(g+u+f)%a-u-f,D=Math.abs(S+f)0?C:-C))-u;this._delta=0,this._startTime=null,D&&(a.options.scrollWheelZoom==="center"?a.setZoom(u+D):a.setZoomAround(this._lastMousePos,u+D))}});Ut.addInitHook("addHandler","scrollWheelZoom",Df);var Vx=600;Ut.mergeOptions({tapHold:wt.touchNative&&wt.safari&&wt.mobile,tapTolerance:15});var If=Ln.extend({addHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var u=a.touches[0];this._startPos=this._newPos=new G(u.clientX,u.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Rt(document,"touchend",me),Rt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),Vx),Rt(document,"touchend touchcancel contextmenu",this._cancel,this),Rt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Kt(document,"touchend",me),Kt(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Kt(document,"touchend touchcancel contextmenu",this._cancel,this),Kt(document,"touchmove",this._onMove,this)},_onMove:function(a){var u=a.touches[0];this._newPos=new G(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,u){var f=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});f._simulated=!0,u.target.dispatchEvent(f)}});Ut.addInitHook("addHandler","tapHold",If),Ut.mergeOptions({touchZoom:wt.touch,bounceAtZoomLimits:!0});var Ff=Ln.extend({addHooks:function(){Dt(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ne(this._map._container,"leaflet-touch-zoom"),Kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var u=this._map;if(!(!a.touches||a.touches.length!==2||u._animatingZoom||this._zooming)){var f=u.mouseEventToContainerPoint(a.touches[0]),g=u.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(f.add(g)._divideBy(2))),this._startDist=f.distanceTo(g),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend touchcancel",this._onTouchEnd,this),me(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var u=this._map,f=u.mouseEventToContainerPoint(a.touches[0]),g=u.mouseEventToContainerPoint(a.touches[1]),S=f.distanceTo(g)/this._startDist;if(this._zoom=u.getScaleZoom(S,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoomu.getMaxZoom()&&S>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,S===1)return}else{var C=f._add(g)._divideBy(2)._subtract(this._centerPoint);if(S===1&&C.x===0&&C.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(C),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var D=s(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(D,this,!0),me(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),Kt(document,"touchmove",this._onTouchMove,this),Kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ut.addInitHook("addHandler","touchZoom",Ff),Ut.BoxZoom=Af,Ut.DoubleClickZoom=Rf,Ut.Drag=jf,Ut.Keyboard=Nf,Ut.ScrollWheelZoom=Df,Ut.TapHold=If,Ut.TouchZoom=Ff,n.Bounds=H,n.Browser=wt,n.CRS=mt,n.Canvas=kf,n.Circle=pc,n.CircleMarker=js,n.Class=K,n.Control=cn,n.DivIcon=Ef,n.DivOverlay=Mn,n.DomEvent=ax,n.DomUtil=ox,n.Draggable=yr,n.Evented=ct,n.FeatureGroup=Wn,n.GeoJSON=Zn,n.GridLayer=Lo,n.Handler=Ln,n.Icon=xi,n.ImageOverlay=Bs,n.LatLng=tt,n.LatLngBounds=W,n.Layer=un,n.LayerGroup=bi,n.LineUtil=bx,n.Map=Ut,n.Marker=Rs,n.Mixin=px,n.Path=_r,n.Point=G,n.PolyUtil=mx,n.Polygon=wi,n.Polyline=Yn,n.Popup=$s,n.PosAnimation=af,n.Projection=xx,n.Rectangle=Mf,n.Renderer=Gn,n.SVG=Ao,n.SVGOverlay=Tf,n.TileLayer=Ti,n.Tooltip=zs,n.Transformation=at,n.Util=nt,n.VideoOverlay=Sf,n.bind=s,n.bounds=it,n.canvas=Pf,n.circle=Px,n.circleMarker=kx,n.control=Co,n.divIcon=Fx,n.extend=i,n.featureGroup=Ex,n.geoJSON=wf,n.geoJson=Ax,n.gridLayer=Bx,n.icon=Ox,n.imageOverlay=Rx,n.latLng=rt,n.latLngBounds=Q,n.layerGroup=Tx,n.map=lx,n.marker=Cx,n.point=I,n.polygon=Mx,n.polyline=Lx,n.popup=Dx,n.rectangle=Ux,n.setOptions=_,n.stamp=c,n.svg=Lf,n.svgOverlay=Nx,n.tileLayer=Of,n.tooltip=Ix,n.transformation=st,n.version=r,n.videoOverlay=jx;var Hx=window.L;n.noConflict=function(){return window.L=Hx,this},window.L=n})})(DO,DO.exports);var H1=DO.exports;function jL(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function NL(t,e){return e==null?function(n,r){const i=U.useRef();return i.current||(i.current=t(n,r)),i}:function(n,r){const i=U.useRef();i.current||(i.current=t(n,r));const o=U.useRef(n),{instance:s}=i.current;return U.useEffect(function(){o.current!==n&&(e(s,n,o.current),o.current=n)},[s,n,r]),i}}function DCt(t,e){U.useEffect(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){var n;(n=e.layerContainer)==null||n.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function O9(t){return function(e){const n=T9(),r=t(RL(e,n),n);return x9(n.map,e.attribution),E9(r.current,e.eventHandlers),DCt(r.current,n),r}}function ICt(t,e){const n=NL(t,e),r=O9(n);return ACt(r)}function FCt(t,e){const n=NL(t),r=NCt(n,e);return RCt(r)}function BCt(t,e){const n=NL(t,e),r=O9(n);return jCt(r)}function $Ct(t,e,n){const{opacity:r,zIndex:i}=e;r!=null&&r!==n.opacity&&t.setOpacity(r),i!=null&&i!==n.zIndex&&t.setZIndex(i)}function IO(){return IO=Object.assign||function(t){for(var e=1;e(v==null?void 0:v.map)??null,[v]);const _=U.useCallback(x=>{if(x!==null&&v===null){const w=new H1.Map(x,d);n!=null&&h!=null?w.setView(n,h):t!=null&&w.fitBounds(t,e),c!=null&&w.whenReady(c),y(LCt(w))}},[]);U.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const T=v?q.createElement(S9,{value:v},r):s??null;return q.createElement("div",IO({},m,{ref:_}),T)}const UCt=U.forwardRef(zCt),VCt=ICt(function({position:t,...e},n){const r=new H1.Marker(t,e);return jL(r,MCt(n,{overlayContainer:r}))},function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),e.icon!=null&&e.icon!==n.icon&&t.setIcon(e.icon),e.zIndexOffset!=null&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),e.opacity!=null&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),t.dragging!=null&&e.draggable!==n.draggable&&(e.draggable===!0?t.dragging.enable():t.dragging.disable())}),HCt=FCt(function(t,e){const n=new H1.Popup(t,e.overlayContainer);return jL(n,e)},function(t,e,{position:n},r){U.useEffect(function(){const{instance:i}=t;function o(l){l.popup===i&&(i.update(),r(!0))}function s(l){l.popup===i&&r(!1)}return e.map.on({popupopen:o,popupclose:s}),e.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(e.map)):e.overlayContainer.bindPopup(i),function(){var l;e.map.off({popupopen:o,popupclose:s}),(l=e.overlayContainer)==null||l.unbindPopup(),e.map.removeLayer(i)}},[t,e,r,n])}),WCt=BCt(function({url:t,...e},n){const r=new H1.TileLayer(t,RL(e,n));return jL(r,n)},function(t,e,n){$Ct(t,e,n);const{url:r}=e;r!=null&&r!==n.url&&t.setUrl(r)}),YCt=()=>b.jsx(WCt,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),ZCt=t=>{if(t.length===0)return{};if(t.length>1)return{bounds:t.map(Se("latLong"))};const[{latLong:e}]=t;return{zoom:10,center:e}},C9=({toggle:t,isOpen:e,title:n,locations:r=[]})=>b.jsx(Ca,{toggle:t,isOpen:e,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:b.jsxs(Ss,{className:"map-modal__modal-body",children:[b.jsxs("h3",{className:"map-modal__modal-title",children:[n,b.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:t})]}),b.jsxs(UCt,{...ZCt(r),children:[b.jsx(YCt,{}),r.map(({cityName:i,latLong:o,count:s},l)=>b.jsx(VCt,{position:o,children:b.jsxs(HCt,{children:[b.jsx("b",{children:s})," visit",s>1?"s":""," from ",b.jsx("b",{children:i})]})},l))]})]})}),GCt=({modalTitle:t,activeCities:e,locations:n=[]})=>{const[r,,i,o]=zn(),[s,l,c]=zn(),[h,d]=U.useState([]),p=_1(),m=_=>e?_.filter(({cityName:T})=>e==null?void 0:e.includes(T)):_,v=()=>{if(!e){d(n),i();return}c()},y=_=>()=>{d(_?m(n):n),i()};return b.jsxs(b.Fragment,{children:[b.jsx(ke,{color:"link",className:"open-map-modal-btn__btn",id:p,onClick:v,children:b.jsx(zt,{icon:Z8})}),b.jsx(fi,{placement:"left",target:p,children:"Show in map"}),b.jsx($g,{isOpen:s,toggle:l,inNavbar:!0,children:b.jsxs(Nd,{end:!0,children:[b.jsx(Zt,{onClick:y(!1),children:"Show all locations"}),b.jsx(Zt,{onClick:y(!0),children:"Show locations in current page"})]})}),b.jsx(C9,{toggle:o,isOpen:r,title:t,locations:h})]})},qCt=({onChange:t,selected:e={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=e,s=l=>({active:i===l,onClick:()=>t({...e,orphanVisitsType:l===(e==null?void 0:e.orphanVisitsType)?void 0:l})});return b.jsxs(Pa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[b.jsx(Zt,{header:!0,children:"Bots:"}),b.jsx(Zt,{active:o,onClick:()=>t({...e,excludeBots:!(e!=null&&e.excludeBots)}),children:"Exclude potential bots"}),r&&b.jsxs(b.Fragment,{children:[b.jsx(Zt,{divider:!0}),b.jsx(Zt,{header:!0,children:"Orphan visits type:"}),b.jsx(Zt,{...s("base_url"),children:"Base URL"}),b.jsx(Zt,{...s("invalid_short_url"),children:"Invalid short URL"}),b.jsx(Zt,{...s("regular_404"),children:"Regular 404"})]}),b.jsx(Zt,{divider:!0}),b.jsx(Zt,{disabled:!ss(e),onClick:()=>t({excludeBots:!1,orphanVisitsType:void 0}),children:b.jsx("i",{children:"Clear filters"})})]})},k9=(t,e)=>!Fu(t)&&ss(t[e]),d4=t=>typeof t=="number"?t:t?parseFloat(t):0,KCt=(t,{os:e})=>{t[e]=(t[e]||0)+1},XCt=(t,{browser:e})=>{t[e]=(t[e]||0)+1},QCt=(t,{referer:e})=>{t[e]=(t[e]||0)+1},P9=t=>(e,n)=>{const r=k9(n,t)?n[t]:"Unknown";e[r]=(e[r]||0)+1},JCt=P9("country"),tkt=P9("city"),ekt=(t,e)=>{if(!k9(e,"city")||e.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=e,o=t[n]||{cityName:n,count:0,latLong:[d4(r),d4(i)]};o.count+=1,t[n]=o},nkt=(t,e)=>{if(!ySt(e))return;const{visitedUrl:n}=e;t[n]=(t[n]||0)+1},L9=t=>t.reduce((e,n)=>(KCt(e.os,n),XCt(e.browsers,n),QCt(e.referrers,n),JCt(e.countries,n),tkt(e.cities,n),ekt(e.citiesForMap,n),nkt(e.visitedUrls,n),e),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),M9=Sz(t=>{const{userAgent:e,date:n,referer:r,visitLocation:i,potentialBot:o}=t,s={date:n,potentialBot:o,...cCt(e),referer:uCt(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return vL(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),rkt=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:M9,processStatsFromVisits:L9},Symbol.toStringTag,{value:"Module"})),jp=20,ikt=({browser:t,os:e,referer:n,country:r,city:i,...o},s)=>`${t} ${e} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),okt=(t,e)=>e.filter(n=>ikt(n,t)),skt=(t,e)=>k$(e,t),akt=(t,e,n)=>{const r=e?okt(e,t):[...t],i=skt(n,r),o=i.length;return{visitsGroups:sg(jp,i),total:o}},lkt=({visits:t,selectedVisits:e=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o,s;const l="visits-table__header-cell visits-table__sticky",c=()=>r("(max-width: 767px)").matches,[h,d]=U.useState(c()),[p,m]=U.useState(void 0),[v,y]=U.useState({}),_=U.useMemo(()=>akt(t,p,v),[p,v]),T=U.useRef(!0),[x,w]=U.useState(1),E=x*jp,O=E-jp,k=8+Number(i),P=j=>()=>y({field:j,dir:x1(j,v.field,v.dir)}),A=j=>b.jsx(hm,{currentOrder:v,field:j,className:"visits-table__header-icon"});return U.useEffect(()=>{const j=()=>d(c());return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[]),U.useEffect(()=>{w(1),!T.current&&n([]),T.current=!1},[p]),b.jsx("div",{className:"table-responsive-md",children:b.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[b.jsxs("thead",{className:"visits-table__header",children:[b.jsxs("tr",{children:[b.jsx("th",{className:`${l} text-center`,onClick:()=>n(e.length<_.total?_.visitsGroups.flat():[]),children:b.jsx(zt,{icon:Hm,className:de({"text-primary":e.length>0})})}),b.jsxs("th",{className:`${l} text-center`,onClick:P("potentialBot"),children:[b.jsx(zt,{icon:ej}),A("potentialBot")]}),b.jsxs("th",{className:l,onClick:P("date"),children:["Date",A("date")]}),b.jsxs("th",{className:l,onClick:P("country"),children:["Country",A("country")]}),b.jsxs("th",{className:l,onClick:P("city"),children:["City",A("city")]}),b.jsxs("th",{className:l,onClick:P("browser"),children:["Browser",A("browser")]}),b.jsxs("th",{className:l,onClick:P("os"),children:["OS",A("os")]}),b.jsxs("th",{className:l,onClick:P("referer"),children:["Referrer",A("referer")]}),i&&b.jsxs("th",{className:l,onClick:P("visitedUrl"),children:["Visited URL",A("visitedUrl")]})]}),b.jsx("tr",{children:b.jsx("td",{colSpan:k,className:"p-0",children:b.jsx(Wg,{noBorder:!0,large:!1,onChange:m})})})]}),b.jsxs("tbody",{children:[!((o=_.visitsGroups[x-1])!=null&&o.length)&&b.jsx("tr",{children:b.jsx("td",{colSpan:k,className:"text-center",children:"No visits found with current filtering"})}),(s=_.visitsGroups[x-1])==null?void 0:s.map((j,B)=>{const N=e.includes(j);return b.jsxs("tr",{style:{cursor:"pointer"},className:de({"table-active":N}),onClick:()=>n(N?e.filter(V=>V!==j):[...e,j]),children:[b.jsx("td",{className:"text-center",children:N&&b.jsx(zt,{icon:Hm,className:"text-primary"})}),b.jsx("td",{className:"text-center",children:j.potentialBot&&b.jsxs(b.Fragment,{children:[b.jsx(zt,{icon:ej,id:`botIcon${B}`}),b.jsx(fi,{placement:"right",target:`botIcon${B}`,children:"Potentially a visit from a bot or crawler"})]})}),b.jsx("td",{children:b.jsx(ib,{date:j.date})}),b.jsx("td",{children:j.country}),b.jsx("td",{children:j.city}),b.jsx("td",{children:j.browser}),b.jsx("td",{children:j.os}),b.jsx("td",{children:j.referer}),i&&b.jsx("td",{children:j.visitedUrl})]},B)})]}),_.total>jp&&b.jsx("tfoot",{children:b.jsx("tr",{children:b.jsx("td",{colSpan:k,className:"visits-table__footer-cell visits-table__sticky",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-md-6",children:b.jsx(hL,{pagesCount:Math.ceil(_.total/jp),currentPage:x,setCurrentPage:w,centered:h})}),b.jsx("div",{className:de("col-md-6",{"d-flex align-items-center flex-row-reverse":!h,"text-center mt-3":h}),children:b.jsxs("div",{children:["Visits ",b.jsx("b",{children:Qn(O+1)})," to"," ",b.jsx("b",{children:Qn(Az(E,_.total))})," of"," ",b.jsx("b",{children:Qn(_.total)})]})})]})})})})]})})},sh={byTime:{title:"By time",subPath:"by-time",icon:Ktt},byContext:{title:"By context",subPath:"by-context",icon:Sk},byLocation:{title:"By location",subPath:"by-location",icon:Z8},list:{title:"List",subPath:"list",icon:Y8}};let My;const hv=({children:t,visitsInfo:e,getVisits:n,cancelGetVisits:r,exportCsv:i,isOrphanVisits:o=!1})=>{const{visits:s,loading:l,loadingLarge:c,error:h,errorData:d,progress:p,fallbackInterval:m}=e,[{dateRange:v,visitsFilter:y},_]=kCt(),T=zu("visits"),x=cr(({startDate:W,endDate:Q})=>({dateRange:{startDate:W??void 0,endDate:Q??void 0}}),_),w=U.useRef(v??m??(T==null?void 0:T.defaultInterval)??"last30Days"),[E,O]=U.useState([]),[k,P]=U.useState(),A=U.useRef(!0),{search:j}=Un(),B=W=>W?`${W}${j}`:j,N=U.useMemo(()=>M9(s),[s]),{os:V,browsers:Y,referrers:nt,countries:K,cities:J,citiesForMap:et,visitedUrls:ct}=U.useMemo(()=>L9(N),[N]),G=U.useMemo(()=>({...y,excludeBots:y.excludeBots??(T==null?void 0:T.excludeBots)}),[y]),$=TP(et),I=W=>{My=void 0,O(W)},H=W=>Q=>{const tt=`${W}_${Q}`;My===tt?(O([]),P(void 0),My=void 0):(O(N.filter(Ymt(W,Q))),P(Q),My=tt)};U.useEffect(()=>r,[]),U.useEffect(()=>{const W=A.current?v??g_t(w.current):v;n({dateRange:W,filter:G},A.current),A.current=!1},[v,y]),U.useEffect(()=>{m&&w.current===((T==null?void 0:T.defaultInterval)??"last30Days")&&(w.current=m)},[m]);const it=()=>c?b.jsxs(aa,{loading:!0,children:["This is going to take a while... :S",b.jsx(p$,{value:p,striped:p===100,className:"mt-3"})]}):l?b.jsx(aa,{loading:!0}):h?b.jsx(Ii,{type:"error",children:b.jsx(ya,{errorData:d,fallbackMessage:"An error occurred while loading visits :("})}):qi(s)?b.jsx(aa,{children:"There are no visits matching current filter"}):b.jsxs(b.Fragment,{children:[b.jsx(C$,{fill:!0,children:Object.values(sh).map(({title:W,icon:Q,subPath:tt},rt)=>b.jsxs(em,{to:B(tt),replace:!0,children:[b.jsx(zt,{icon:Q}),b.jsx("span",{className:"ms-2 d-none d-sm-inline",children:W})]},rt))}),b.jsx(qr,{children:b.jsxs(a1,{children:[b.jsx(Ce,{path:sh.byTime.subPath,element:b.jsx("div",{className:"col-12 mt-3",children:b.jsx(yCt,{title:"Visits during time",visits:N,highlightedVisits:E,highlightedLabel:k,setSelectedVisits:I})})}),b.jsx(Ce,{path:sh.byContext.subPath,element:b.jsxs(b.Fragment,{children:[b.jsx("div",{className:de("mt-3 col-lg-6",{"col-xl-4":!o}),children:b.jsx(o4,{title:"Operating systems",stats:V})}),b.jsx("div",{className:de("mt-3 col-lg-6",{"col-xl-4":!o}),children:b.jsx(o4,{title:"Browsers",stats:Y})}),b.jsx("div",{className:de("mt-3",{"col-xl-4":!o,"col-lg-6":o}),children:b.jsx(Ly,{title:"Referrers",stats:nt,withPagination:!1,highlightedStats:py(E,"referer"),highlightedLabel:k,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:H("referer")})}),o&&b.jsx("div",{className:"mt-3 col-lg-6",children:b.jsx(Ly,{title:"Visited URLs",stats:ct,highlightedLabel:k,highlightedStats:py(E,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:H("visitedUrl")})})]})}),b.jsx(Ce,{path:sh.byLocation.subPath,element:b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"col-lg-6 mt-3",children:b.jsx(Ly,{title:"Countries",stats:K,highlightedStats:py(E,"country"),highlightedLabel:k,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:H("country")})}),b.jsx("div",{className:"col-lg-6 mt-3",children:b.jsx(Ly,{title:"Cities",stats:J,highlightedStats:py(E,"city"),highlightedLabel:k,extraHeaderContent:W=>$.length>0&&b.jsx(GCt,{modalTitle:"Cities",locations:$,activeCities:W}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:H("city")})})]})}),b.jsx(Ce,{path:sh.list.subPath,element:b.jsx("div",{className:"col-12",children:b.jsx(lkt,{visits:N,selectedVisits:E,setSelectedVisits:I,isOrphanVisits:o})})}),b.jsx(Ce,{path:"*",element:b.jsx(dk,{replace:!0,to:B(sh.byTime.subPath)})})]})})]});return b.jsxs(b.Fragment,{children:[t,b.jsx("section",{className:"mt-3",children:b.jsxs("div",{className:"row flex-md-row-reverse",children:[b.jsx("div",{className:"col-lg-7 col-xl-6",children:b.jsxs("div",{className:"d-md-flex",children:[b.jsx("div",{className:"flex-fill",children:b.jsx(iU,{updatable:!0,disabled:l,initialDateRange:w.current,defaultText:"All visits",onDatesChange:x})}),b.jsx(qCt,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:o,selected:G,onChange:W=>_({visitsFilter:W})})]})}),s.length>0&&b.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:b.jsxs("div",{className:"d-flex",children:[b.jsx(C7,{className:"btn-md-block",amount:N.length,onClick:()=>i(N)}),b.jsxs(ke,{outline:!0,disabled:E.length===0,className:"btn-md-block ms-2",onClick:()=>I([]),children:["Clear selection ",E.length>0&&b.jsxs(b.Fragment,{children:["(",Qn(E.length),")"]})]})]})})]})}),b.jsx("section",{className:"mt-3",children:it()})]})},ckt=({exportVisits:t})=>zl(({getDomainVisits:e,domainVisits:n,cancelGetDomainVisits:r})=>{const i=$d(),{domain:o=""}=ju(),[s,l=s]=o.split("_");return b.jsx(hv,{getVisits:(c,h)=>e({domain:l,query:av(c),doIntervalFallback:h}),cancelGetVisits:r,visitsInfo:n,exportCsv:c=>t(`domain_${s}_visits.csv`,c),children:b.jsx(lv,{goBack:i,visits:n.visits,title:`"${s}" visits`})})},()=>[co.visits]),ukt=({exportVisits:t})=>zl(({getNonOrphanVisits:e,nonOrphanVisits:n,cancelGetNonOrphanVisits:r})=>{const i=$d();return b.jsx(hv,{getVisits:(o,s)=>e({query:av(o),doIntervalFallback:s}),cancelGetVisits:r,visitsInfo:n,exportCsv:o=>t("non_orphan_visits.csv",o),children:b.jsx(lv,{title:"Non-orphan visits",goBack:i,visits:n.visits})})},()=>[co.visits]),hkt=({exportVisits:t})=>zl(({getOrphanVisits:e,orphanVisits:n,cancelGetOrphanVisits:r})=>{const i=$d();return b.jsx(hv,{getVisits:(o,s)=>{var l;return e({query:av(o),orphanVisitsType:(l=o.filter)==null?void 0:l.orphanVisitsType,doIntervalFallback:s})},cancelGetVisits:r,visitsInfo:n,exportCsv:o=>t("orphan_visits.csv",o),isOrphanVisits:!0,children:b.jsx(lv,{title:"Orphan visits",goBack:i,visits:n.visits})})},()=>[co.orphanVisits]),A9="shlink/orphanVisits",dkt={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},fkt=t=>ev({typePrefix:`${A9}/getNonOrphanVisits`,createLoaders:({query:e={},doIntervalFallback:n=!1})=>{const{getNonOrphanVisits:r}=t(),i=async(s,l)=>r({...e,page:s,itemsPerPage:l}),o=nv(n,r);return[i,o]},getExtraFulfilledPayload:({query:e={}})=>({query:e}),shouldCancel:e=>e().orphanVisits.cancelLoad}),pkt=t=>rv({name:A9,initialState:dkt,asyncThunkCreator:t,filterCreatedVisits:({query:e={}},n)=>{const{startDate:r,endDate:i}=e;return n.filter(({visit:o})=>Qg(o.date,r,i))}}),R9="shlink/orphanVisits",mkt={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},gkt=(t,e)=>!e||e===t.type,vkt=t=>ev({typePrefix:`${R9}/getOrphanVisits`,createLoaders:({orphanVisitsType:e,query:n={},doIntervalFallback:r=!1})=>{const{getOrphanVisits:i}=t(),o=async(l,c)=>i({...n,page:l,itemsPerPage:c}).then(h=>{const d=h.data.filter(p=>vL(p)&&gkt(p,e));return{...h,data:d}}),s=nv(r,i);return[o,s]},getExtraFulfilledPayload:({query:e={}})=>({query:e}),shouldCancel:e=>e().orphanVisits.cancelLoad}),ykt=t=>rv({name:R9,initialState:mkt,asyncThunkCreator:t,filterCreatedVisits:({query:e={}},n)=>{const{startDate:r,endDate:i}=e;return n.filter(({visit:o,shortUrl:s})=>!s&&Qg(o.date,r,i))}}),j9="shlink/shortUrlVisits",_kt={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},bkt=t=>ev({typePrefix:`${j9}/getShortUrlVisits`,createLoaders:({shortCode:e,query:n={},doIntervalFallback:r=!1})=>{const{getShortUrlVisits:i}=t(),o=async(l,c)=>i(e,{...n,page:l,itemsPerPage:c}),s=nv(r,async l=>i(e,{...l,domain:n.domain}));return[o,s]},getExtraFulfilledPayload:({shortCode:e,query:n={}})=>({shortCode:e,query:n,domain:n.domain}),shouldCancel:e=>e().shortUrlVisits.cancelLoad}),xkt=t=>rv({name:j9,initialState:_kt,asyncThunkCreator:t,filterCreatedVisits:({shortCode:e,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:l,visit:c})=>l&&om(l,e,n)&&Qg(c.date,o,s))}}),N9="shlink/tagVisits",wkt={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Skt=t=>ev({typePrefix:`${N9}/getTagVisits`,createLoaders:({tag:e,query:n={},doIntervalFallback:r=!1})=>{const{getTagVisits:i}=t(),o=async(l,c)=>i(e,{...n,page:l,itemsPerPage:c}),s=nv(r,async l=>i(e,l));return[o,s]},getExtraFulfilledPayload:({tag:e,query:n={}})=>({tag:e,query:n}),shouldCancel:e=>e().tagVisits.cancelLoad}),Tkt=t=>rv({name:N9,initialState:wkt,asyncThunkCreator:t,filterCreatedVisits:({tag:e,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:l})=>(s==null?void 0:s.tags.includes(e))&&Qg(l.date,i,o))}}),D9="shlink/visitsOverview",Ay={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},f4=t=>t.filter(({visit:e})=>e.potentialBot).length,Ekt=t=>di(`${D9}/loadVisitsOverview`,()=>t().getVisitsOverview().then(({nonOrphanVisits:e,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(e==null?void 0:e.total)??n,nonBots:e==null?void 0:e.nonBots,bots:e==null?void 0:e.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),Okt=t=>Br({name:D9,initialState:Ay,reducers:{},extraReducers:e=>{e.addCase(t.pending,()=>({...Ay,loading:!0})),e.addCase(t.rejected,()=>({...Ay,error:!0})),e.addCase(t.fulfilled,(n,{payload:r})=>({...Ay,...r})),e.addCase(tv,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:l}=_St(o.createdVisits),c=s.length,h=f4(s),d=c-h,p=l.length,m=f4(l),v=p-m;return{...i,nonOrphanVisits:{total:n.total+c,bots:n.bots&&n.bots+h,nonBots:n.nonBots&&n.nonBots+d},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+m,nonBots:r.nonBots&&r.nonBots+v}}})}}),Ckt=({shortUrlDetail:t,shortUrlVisits:e,goBack:n})=>{const{shortUrl:r,loading:i}=t,{visits:o}=e,s=(r==null?void 0:r.shortUrl)??"",l=(r==null?void 0:r.longUrl)??"",c=r==null?void 0:r.title;return b.jsxs(lv,{title:b.jsxs(b.Fragment,{children:["Visits for ",b.jsx(la,{href:s})]}),goBack:n,visits:o,shortUrl:r,children:[b.jsx("hr",{}),b.jsxs("div",{children:["Created: ",(()=>r?b.jsxs("span",{children:[b.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:b.jsx(ib,{date:r.dateCreated,relative:!0})}),b.jsx(fi,{placement:"bottom",target:"created",children:b.jsx(ib,{date:r.dateCreated})})]}):b.jsx("small",{children:"Loading..."}))()]}),b.jsxs("div",{className:"long-url-container",children:[`${c?"Title":"Long URL"}: `,i&&b.jsx("small",{children:"Loading..."}),!i&&b.jsx(la,{href:l,children:c??l})]})]})},kkt=({exportVisits:t})=>zl(({shortUrlVisits:e,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o})=>{const{shortCode:s=""}=ju(),{search:l}=Un(),c=$d(),{domain:h}=Du(l),d=(m,v)=>r({shortCode:h_(s),query:{...av(m),domain:h},doIntervalFallback:v}),p=m=>{var v;return t(`short-url_${(v=n.shortUrl)==null?void 0:v.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return U.useEffect(()=>{i({shortCode:h_(s),domain:h})},[]),b.jsx(hv,{getVisits:d,cancelGetVisits:o,visitsInfo:e,exportCsv:p,children:b.jsx(Ckt,{shortUrlDetail:n,shortUrlVisits:e,goBack:c})})},(e,n)=>n.shortCode?[co.shortUrlVisits(h_(n.shortCode))]:[]),Pkt=({tagVisits:t,goBack:e,colorGenerator:n})=>{const{visits:r,tag:i}=t;return b.jsx(lv,{title:b.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[b.jsx("span",{className:"me-2",children:"Visits for"}),b.jsx(KP,{text:i,colorGenerator:n})]}),goBack:e,visits:r})},Lkt=(t,{exportVisits:e})=>zl(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i})=>{const o=$d(),{tag:s=""}=ju();return b.jsx(hv,{getVisits:(l,c)=>n({tag:s,query:av(l),doIntervalFallback:c}),cancelGetVisits:i,visitsInfo:r,exportCsv:l=>e(`tag_${s}_visits.csv`,l),children:b.jsx(Pkt,{tagVisits:r,goBack:o,colorGenerator:t})})},()=>[co.visits]),Mkt=(t,e)=>{t.serviceFactory("MapModal",()=>C9),t.serviceFactory("ShortUrlVisits",kkt,"ReportExporter"),t.decorator("ShortUrlVisits",e(["shortUrlVisits","shortUrlDetail","mercureInfo"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("TagVisits",Lkt,"ColorGenerator","ReportExporter"),t.decorator("TagVisits",e(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("DomainVisits",ckt,"ReportExporter"),t.decorator("DomainVisits",e(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("OrphanVisits",hkt,"ReportExporter"),t.decorator("OrphanVisits",e(["orphanVisits","mercureInfo"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("NonOrphanVisits",ukt,"ReportExporter"),t.decorator("NonOrphanVisits",e(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("VisitsParser",()=>rkt),t.serviceFactory("getShortUrlVisits",bkt,"apiClientFactory"),t.serviceFactory("cancelGetShortUrlVisits",Se("cancelGetVisits"),"shortUrlVisitsReducerCreator"),t.serviceFactory("getTagVisits",Skt,"apiClientFactory"),t.serviceFactory("cancelGetTagVisits",Se("cancelGetVisits"),"tagVisitsReducerCreator"),t.serviceFactory("getDomainVisits",b_t,"apiClientFactory"),t.serviceFactory("cancelGetDomainVisits",Se("cancelGetVisits"),"domainVisitsReducerCreator"),t.serviceFactory("getOrphanVisits",vkt,"apiClientFactory"),t.serviceFactory("cancelGetOrphanVisits",Se("cancelGetVisits"),"orphanVisitsReducerCreator"),t.serviceFactory("getNonOrphanVisits",fkt,"apiClientFactory"),t.serviceFactory("cancelGetNonOrphanVisits",Se("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),t.serviceFactory("createNewVisits",()=>tv),t.serviceFactory("loadVisitsOverview",Ekt,"apiClientFactory"),t.serviceFactory("visitsOverviewReducerCreator",Okt,"loadVisitsOverview"),t.serviceFactory("visitsOverviewReducer",Se("reducer"),"visitsOverviewReducerCreator"),t.serviceFactory("domainVisitsReducerCreator",x_t,"getDomainVisits"),t.serviceFactory("domainVisitsReducer",Se("reducer"),"domainVisitsReducerCreator"),t.serviceFactory("nonOrphanVisitsReducerCreator",pkt,"getNonOrphanVisits"),t.serviceFactory("nonOrphanVisitsReducer",Se("reducer"),"nonOrphanVisitsReducerCreator"),t.serviceFactory("orphanVisitsReducerCreator",ykt,"getOrphanVisits"),t.serviceFactory("orphanVisitsReducer",Se("reducer"),"orphanVisitsReducerCreator"),t.serviceFactory("shortUrlVisitsReducerCreator",xkt,"getShortUrlVisits"),t.serviceFactory("shortUrlVisitsReducer",Se("reducer"),"shortUrlVisitsReducerCreator"),t.serviceFactory("tagVisitsReducerCreator",Tkt,"getTagVisits"),t.serviceFactory("tagVisitsReducer",Se("reducer"),"tagVisitsReducerCreator")},pp=({children:t,to:e,className:n,...r})=>b.jsx(S8,{className:({isActive:i})=>de("aside-menu__item",n,{"aside-menu__item--selected":i}),to:e,...r,children:t}),Akt=({routePrefix:t,showOnMobile:e=!1})=>{const{pathname:n}=Un(),r=de("aside-menu",{"aside-menu--hidden":!e}),i=o=>`${t}${o}`;return b.jsx("aside",{className:r,children:b.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[b.jsxs(pp,{to:i("/overview"),children:[b.jsx(zt,{fixedWidth:!0,icon:ket}),b.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),b.jsxs(pp,{to:i("/list-short-urls/1"),className:de({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[b.jsx(zt,{fixedWidth:!0,icon:Y8}),b.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),b.jsxs(pp,{to:i("/create-short-url"),children:[b.jsx(zt,{fixedWidth:!0,icon:Ret,flip:"horizontal"}),b.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),b.jsxs(pp,{to:i("/manage-tags"),children:[b.jsx(zt,{fixedWidth:!0,icon:G8}),b.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),b.jsxs(pp,{to:i("/manage-domains"),children:[b.jsx(zt,{fixedWidth:!0,icon:set}),b.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},Rkt=(t,e,n,r,i,o,s,l,c,h,d)=>({createNotFound:p})=>{const m=Un(),v=Bu(),y=Ru(),[_,T]=U.useMemo(()=>y?[U.Fragment,{}]:[w8,{basename:v}],[y]),[x,w,E,O]=zn();U.useEffect(()=>O(),[m]);const k=Xg("domainVisits"),P=de("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":x}),A=h0t(E,O);return b.jsxs(_,{...T,children:[b.jsx(zt,{icon:eet,className:P,onClick:w}),b.jsx("div",{...A,className:"shlink-layout__swipeable",children:b.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[b.jsx(Akt,{routePrefix:v,showOnMobile:x}),b.jsx("div",{className:"shlink-layout__container",onClick:()=>O(),children:b.jsx("div",{className:"container-xl",children:b.jsxs(a1,{children:[b.jsx(Ce,{index:!0,element:b.jsx(dk,{replace:!0,to:"overview"})}),b.jsx(Ce,{path:"/overview",element:b.jsx(c,{})}),b.jsx(Ce,{path:"/list-short-urls/:page",element:b.jsx(e,{})}),b.jsx(Ce,{path:"/create-short-url",element:b.jsx(n,{})}),b.jsx(Ce,{path:"/short-code/:shortCode/visits/*",element:b.jsx(r,{})}),b.jsx(Ce,{path:"/short-code/:shortCode/edit",element:b.jsx(h,{})}),b.jsx(Ce,{path:"/tag/:tag/visits/*",element:b.jsx(i,{})}),k&&b.jsx(Ce,{path:"/domain/:domain/visits/*",element:b.jsx(o,{})}),b.jsx(Ce,{path:"/orphan-visits/*",element:b.jsx(s,{})}),b.jsx(Ce,{path:"/non-orphan-visits/*",element:b.jsx(l,{})}),b.jsx(Ce,{path:"/manage-tags",element:b.jsx(t,{})}),b.jsx(Ce,{path:"/manage-domains",element:b.jsx(d,{})}),p&&b.jsx(Ce,{path:"*",element:p("/list-short-urls/1")})]})})})]})})]})},jkt=!0,Nkt=t=>iz({devTools:!jkt,reducer:vP({mercureInfo:t.mercureInfoReducer,shortUrlsList:t.shortUrlsListReducer,shortUrlCreation:t.shortUrlCreationReducer,shortUrlDeletion:t.shortUrlDeletionReducer,shortUrlEdition:t.shortUrlEditionReducer,shortUrlDetail:t.shortUrlDetailReducer,shortUrlVisits:t.shortUrlVisitsReducer,tagVisits:t.tagVisitsReducer,domainVisits:t.domainVisitsReducer,orphanVisits:t.orphanVisitsReducer,nonOrphanVisits:t.nonOrphanVisitsReducer,tagsList:t.tagsListReducer,tagDelete:t.tagDeleteReducer,tagEdit:t.tagEditReducer,domainsList:t.domainsListReducer,visitsOverview:t.visitsOverviewReducer}),middleware:e=>e({immutableCheck:!1,serializableCheck:!1})}),Dkt=t=>{t.serviceFactory("Main",Rkt,"TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"),t.factory("store",Nkt)},Ts=new fpt,{container:Ikt}=Ts,Fkt=(t,e)=>(...n)=>t[e](...n),Bkt=(t,e)=>({...t,[e]:Fkt(Ikt,e)}),dv=(t,e=[])=>d8(t?Rz(t):null,e.reduce(Bkt,{}));Dkt(Ts);_xt(Ts,dv);Jwt(Ts,dv);Mkt(Ts,dv);j_t(Ts);M_t(Ts,dv);q_t(Ts,dv);vSt(Ts);let p4;const $kt=t=>({serverVersion:e,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:s})=>{const l=hgt(e),c=U.useRef(),[h,d]=U.useState();return U.useEffect(()=>{p4=n,t.value("apiClientFactory",()=>p4),s&&t.value("TagColorsStorage",s);const{container:p}=t,{Main:m,store:v,loadMercureInfo:y}=p;c.current=b.jsx(m,{createNotFound:o}),d(v),v.dispatch(y(r))},[n,s]),h?b.jsx(f8,{store:h,children:b.jsx(Y_t,{value:r,children:b.jsx(dgt,{value:l,children:b.jsx(fgt,{value:i,children:c.current})})})}):b.jsx(b.Fragment,{})},zkt=$kt(Ts);function vb(t){return e=>{const{resetSelectedServer:n}=e;return U.useEffect(()=>{n()},[]),b.jsx(t,{...e})}}const Ukt=({location:t},{error:e})=>class extends U.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){e(n)}render(){const{hasError:n}=this.state;if(n)return b.jsx("div",{className:"home",children:b.jsxs(Bn,{className:"p-4",children:[b.jsx("h1",{children:"Oops! This is awkward :S"}),b.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),b.jsx("br",{}),b.jsx(ke,{outline:!0,color:"primary",onClick:()=>t.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},I9=({href:t,children:e,rel:n,...r})=>b.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:t,...r,children:e??t});const Vkt=({id:t,name:e})=>b.jsxs(b$,{tag:nn,to:`/server/${t}`,className:"servers-list__server-item",children:[e,b.jsx(zt,{icon:Fet,className:"servers-list__server-item-icon"})]}),F9=({servers:t,children:e,embedded:n=!1})=>b.jsxs(b.Fragment,{children:[e&&b.jsx("h5",{className:"mb-md-3",children:e}),t.length>0&&b.jsx(v$,{className:qt("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:t.map(({id:r,name:i})=>b.jsx(Vkt,{id:r,name:i},r))})]}),B9=({color:t=nP,className:e})=>b.jsx("svg",{className:e,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:b.jsxs("g",{fill:t,children:[b.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),b.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),b.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),b.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Hkt=({servers:t})=>{const e=ws(),n=_k(t),r=!c0(n);return U.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&e(`/server/${i.id}`)},[]),b.jsx("div",{className:"home",children:b.jsx(zi,{className:"home__main-card",children:b.jsxs(qr,{className:"g-0",children:[b.jsx("div",{className:"col-md-5 d-none d-md-block",children:b.jsx("div",{className:"home__logo-wrapper",children:b.jsx("div",{className:"home__logo",children:b.jsx(B9,{})})})}),b.jsxs("div",{className:"col-md-7 home__servers-container",children:[b.jsx("div",{className:"home__title-wrapper",children:b.jsx("h1",{className:"home__title",children:"Welcome!"})}),b.jsx(F9,{embedded:!0,servers:n,children:!r&&b.jsxs("div",{className:"p-4 text-center",children:[b.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),b.jsx("p",{children:b.jsxs(nn,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[b.jsx(zt,{icon:Ek})," ",b.jsx("span",{className:"ms-1",children:"Add a server"})]})}),b.jsx("p",{className:"mb-0 mt-5",children:b.jsx(I9,{href:"https://shlink.io/documentation",children:b.jsxs("small",{children:[b.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",b.jsx(zt,{icon:yet})]})})})]})})]})]})})})};const Wkt=t=>()=>{const[e,n,,r]=zn(),i=Un(),{pathname:o}=i;U.useEffect(r,[i]);const s="/settings",l=qt("main-header__toggle-icon",{"main-header__toggle-icon--opened":e});return b.jsxs(NB,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[b.jsxs(DB,{tag:nn,to:"/",children:[b.jsx(B9,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),b.jsx(IB,{onClick:n,children:b.jsx(zt,{icon:Det,className:l})}),b.jsx(Nat,{navbar:!0,isOpen:e,children:b.jsxs(zk,{navbar:!0,className:"ms-auto",children:[b.jsx(FB,{children:b.jsxs(zB,{tag:nn,to:s,active:o.startsWith(s),children:[b.jsx(zt,{icon:Uet}),"  Settings"]})}),b.jsx(t,{})]})})]})},Ykt=({children:t})=>{const e=Un();return U.useEffect(()=>{scrollTo(0,0)},[e]),b.jsx(b.Fragment,{children:t})},Zkt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,m4=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(Zkt);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},g4=t=>t==="*"||t==="x"||t==="X",v4=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},Gkt=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],qkt=(t,e)=>{if(g4(t)||g4(e))return 0;const[n,r]=Gkt(v4(t),v4(e));return n>r?1:n{for(let n=0;n{const n=m4(t),r=m4(e),i=n.pop(),o=r.pop(),s=y4(n,r);return s!==0?s:i&&o?y4(i.split("."),o.split(".")):i||o?i?-1:1:0},Xkt=(t,e,n)=>{Qkt(n);const r=Kkt(t,e);return $9[n].includes(r)},$9={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},_4=Object.keys($9),Qkt=t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(_4.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${_4.join("|")}`)},z9=U8($8,t=>{try{return Xkt(t,t,"=")}catch{return!1}}),U9=t=>z9(t)?`v${t}`:t,V9=(t="latest")=>e=>z9(e)?e:t,Jkt="%_VERSION_%",tPt=tu(V9(),U9),b4=({project:t,version:e})=>b.jsx(I9,{href:`https://github.com/shlinkio/${t}/releases/${e}`,className:"text-muted",children:b.jsx("b",{children:e})}),ePt=({selectedServer:t,clientVersion:e=Jkt})=>{const n=tPt(e);return b.jsxs("small",{className:"text-muted",children:[H8(t)&&b.jsxs(b.Fragment,{children:["Server: ",b.jsx(b4,{project:"shlink",version:t.printableVersion})," - "]}),"Client: ",b.jsx(b4,{project:"shlink-web-client",version:n})]})};const nPt=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,rPt=({selectedServer:t})=>{const{pathname:e}=Un(),n=U.useMemo(()=>nPt.test(e),[e]),r=qt("text-center",{"shlink-versions-container--with-sidebar":n});return b.jsx("div",{className:r,children:b.jsx(ePt,{selectedServer:t})})};const Hd=({children:t})=>b.jsx("div",{className:"no-menu-wrapper container-xl",children:t});function H9(t,e){return n=>{const r=ju(),{selectServer:i,selectedServer:o}=n;return U.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?Ytt(o)?b.jsx(e,{}):b.jsx(t,{...n}):b.jsx(Hd,{children:b.jsx(aa,{loading:!0})})}}const iPt=(t,e,n,r)=>H9(({selectedServer:i,settings:o})=>{const s=H8(i),l=s?`/server/${i.id}`:"";return s?b.jsx(n,{serverVersion:i.version,apiClient:t(i),settings:o,routesPrefix:l,tagColorsStorage:e,createNotFound:c=>b.jsx(G$,{to:`${l}${c}`,children:"List short URLs"})}):b.jsx(r,{})},r),x4={"Content-Type":"application/json"},w4=t=>t!=null&&t.body?t?{...t,headers:{...t.headers??{},...x4}}:{headers:x4}:t;class oPt{constructor(e){St(this,"fetchJson",(e,n)=>this.fetch(e,w4(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));St(this,"fetchEmpty",(e,n)=>this.fetch(e,w4(n)).then(async r=>{if(!r.ok)throw await r.json()}));this.fetch=e}}const sPt=(t,e)=>{t.constant("window",window),t.constant("console",console),t.constant("fetch",window.fetch.bind(window)),t.service("HttpClient",oPt,"fetch"),t.serviceFactory("ScrollToTop",()=>Ykt),t.serviceFactory("MainHeader",Wkt,"ServersDropdown"),t.serviceFactory("Home",()=>Hkt),t.decorator("Home",vb),t.decorator("Home",e(["servers"],["resetSelectedServer"])),t.serviceFactory("ShlinkWebComponent",()=>zkt),t.serviceFactory("ShlinkWebComponentContainer",iPt,"buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"),t.decorator("ShlinkWebComponentContainer",e(["selectedServer","settings"],["selectServer"])),t.serviceFactory("ShlinkVersionsContainer",()=>rPt),t.decorator("ShlinkVersionsContainer",e(["selectedServer"])),t.serviceFactory("ErrorHandler",Ukt,"window","console")};let Ry;const aPt=new Uint8Array(16);function lPt(){if(!Ry&&(Ry=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ry))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ry(aPt)}const xr=[];for(let t=0;t<256;++t)xr.push((t+256).toString(16).slice(1));function cPt(t,e=0){return(xr[t[e+0]]+xr[t[e+1]]+xr[t[e+2]]+xr[t[e+3]]+"-"+xr[t[e+4]]+xr[t[e+5]]+"-"+xr[t[e+6]]+xr[t[e+7]]+"-"+xr[t[e+8]]+xr[t[e+9]]+"-"+xr[t[e+10]]+xr[t[e+11]]+xr[t[e+12]]+xr[t[e+13]]+xr[t[e+14]]+xr[t[e+15]]).toLowerCase()}const uPt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S4={randomUUID:uPt};function W9(t,e,n){if(S4.randomUUID&&!e&&!t)return S4.randomUUID();t=t||{};const r=t.random||(t.rng||lPt)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=r[i];return e}return cPt(r)}const hPt=2e3,dPt=(t,e)=>(n=!1,r=hPt)=>{const[i,o]=U.useState(n),s=U.useRef(void 0);return[i,()=>{o(!n),s.current&&e(s.current),s.current=t(()=>o(n),r)}]},Y9=()=>{const t=ws();return()=>t(-1)},fPt=()=>{const{search:t}=Un();return Du(t)},Z9=({isOpen:t,duplicatedServers:e,onDiscard:n,onSave:r})=>{const i=e.length>1;return b.jsxs(Ca,{centered:!0,isOpen:t,children:[b.jsxs(ka,{children:["Duplicated server",i&&"s"]}),b.jsxs(Ss,{children:[b.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),b.jsx("ul",{children:e.map(({url:o,apiKey:s},l)=>i?b.jsxs("li",{children:[b.jsx("b",{children:o})," - ",b.jsx("b",{children:s})]},l):b.jsxs(U.Fragment,{children:[b.jsxs("li",{children:["URL: ",b.jsx("b",{children:o})]}),b.jsxs("li",{children:["API key: ",b.jsx("b",{children:s})]})]},l))}),b.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),b.jsxs(Nu,{children:[b.jsx(ke,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),b.jsx(ke,{color:"primary",onClick:r,children:"Save anyway"})]})]})},pPt=t=>tu(e=>e.preventDefault(),t),G9=({onSubmit:t,initialValues:e,children:n,title:r})=>{const[i,o]=U.useState(""),[s,l]=U.useState(""),[c,h]=U.useState(""),d=pPt(()=>t({name:i,url:s,apiKey:c}));return U.useEffect(()=>{e&&o(e.name),e&&l(e.url),e&&h(e.apiKey)},[e]),b.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:d,children:[b.jsxs(Bn,{className:"mb-3",title:r,children:[b.jsx(a_,{value:i,onChange:o,children:"Name"}),b.jsx(a_,{type:"url",value:s,onChange:l,children:"URL"}),b.jsx(a_,{value:c,onChange:h,children:"API key"})]}),b.jsx("div",{className:"text-end",children:n})]})},T4=4e3,E4=({type:t})=>b.jsx("div",{className:"mt-3",children:b.jsxs(Ii,{type:t,children:[t==="success"&&"Servers properly imported. You can now select one from the list :)",t==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),mPt=(t,e)=>({servers:n,createServers:r})=>{const i=ws(),o=Y9(),s=!!Object.keys(n).length,[l,c]=e(!1,T4),[h,d]=e(!1,T4),[p,m]=zn(),[v,y]=U.useState(),_=()=>{if(!v)return;const T=W9();r([{...v,id:T}]),i(`/server/${T}`)};return U.useEffect(()=>{Object.values(n).some(({url:x,apiKey:w})=>(v==null?void 0:v.url)===x&&(v==null?void 0:v.apiKey)===w)?m():_()},[v]),b.jsxs(Hd,{children:[b.jsxs(G9,{title:b.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:y,children:[!s&&b.jsx(t,{tooltipPlacement:"top",onImport:c,onImportError:d}),s&&b.jsx(ke,{outline:!0,onClick:o,children:"Cancel"}),b.jsx(ke,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),l&&b.jsx(E4,{type:"success"}),h&&b.jsx(E4,{type:"error"}),b.jsx(Z9,{isOpen:p,duplicatedServers:v?[v]:[],onDiscard:o,onSave:_})]})},gPt=t=>({server:e,className:n,children:r,textClassName:i})=>{const[o,,s,l]=zn();return b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:n,onClick:s,children:[!r&&b.jsx(zt,{fixedWidth:!0,icon:xk}),b.jsx("span",{className:i,children:r??"Remove this server"})]}),b.jsx(t,{server:e,isOpen:o,toggle:l})]})},vPt=({server:t,toggle:e,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=ws(),s=U.useRef(!1),l=()=>{s.current=!0,e()},c=()=>{s.current&&(r(t),i&&o("/"))};return b.jsxs(Ca,{isOpen:n,toggle:e,centered:!0,onClosed:c,children:[b.jsx(ka,{toggle:e,className:"text-danger",children:"Remove server"}),b.jsxs(Ss,{children:[b.jsxs("p",{children:["Are you sure you want to remove ",b.jsx("b",{children:t?t.name:""}),"?"]}),b.jsx("p",{children:b.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),b.jsxs(Nu,{children:[b.jsx(ke,{color:"link",onClick:e,children:"Cancel"}),b.jsx(ke,{color:"danger",onClick:l,children:"Delete"})]})]})},yPt=t=>H9(({editServer:e,selectedServer:n,selectServer:r})=>{const i=Y9(),{reconnect:o}=fPt();if(!qp(n))return null;const s=l=>{e(n.id,l),o==="true"&&r(n.id),i()};return b.jsx(Hd,{children:b.jsxs(G9,{title:b.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[b.jsx(ke,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),b.jsx(ke,{outline:!0,color:"primary",children:"Save"})]})})},t);const O4=t=>({url:e,apiKey:n})=>t.some(r=>r.url===e&&r.apiKey===n),_Pt=({importServersFromFile:t})=>({createServers:e,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:l=""})=>{const c=Bl(),[h,d]=U.useState(),[p,m]=U.useState([]),[v,,y,_]=zn(),T=tu(e,i),x=tu(()=>T(h??[]),_),w=tu(()=>T((h??[]).filter(stt(O4(p)))),_),E=async({target:O})=>{var k;return t((k=O.files)==null?void 0:k[0]).then(d).then(()=>{O.value=null}).catch(o)};return U.useEffect(()=>{if(!h)return;const O=Object.values(n),k=h.filter(O4(O)),P=!!k.length;P?m(k):T(h),P&&y()},[h]),b.jsxs(b.Fragment,{children:[b.jsxs(ke,{outline:!0,id:"importBtn",className:l,onClick:()=>{var O;return(O=c.current)==null?void 0:O.click()},children:[b.jsx(zt,{icon:uet,fixedWidth:!0})," ",r??"Import from file"]}),b.jsxs(fi,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",b.jsx("b",{children:"name"}),", ",b.jsx("b",{children:"apiKey"})," and ",b.jsx("b",{children:"url"}),"."]}),b.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:c,onChange:E}),b.jsx(Z9,{isOpen:v,duplicatedServers:p,onDiscard:w,onSave:x})]})};const bPt=t=>({servers:e,selectedServer:n})=>b.jsx(Hd,{children:b.jsxs("div",{className:"server-error__container flex-column",children:[b.jsxs(aa,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!qp(n)&&"Could not find this Shlink server.",qp(n)&&b.jsxs(b.Fragment,{children:[b.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),b.jsxs(F9,{servers:Object.values(e),children:["These are the Shlink servers currently configured. Choose one of them or ",b.jsx(nn,{to:"/server/create",children:"add a new one"}),"."]}),qp(n)&&b.jsx("div",{className:"container mt-3 mt-md-5",children:b.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",b.jsx(t,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",b.jsx(nn,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),xPt=4e3,wPt=(t,e,n,r)=>({servers:i})=>{const o=Object.values(i),[s,l]=U.useState(o),c=m=>l(o.filter(({name:v,url:y})=>`${v} ${y}`.toLowerCase().match(m.toLowerCase()))),h=s.some(({autoConnect:m})=>!!m),[d,p]=n(!1,xPt);return U.useEffect(()=>{l(Object.values(i))},[i]),b.jsxs(Hd,{children:[b.jsx(Wg,{className:"mb-3",onChange:c}),b.jsxs(qr,{className:"mb-3",children:[b.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[b.jsx(e,{className:"flex-fill",onImportError:p,children:"Import servers"}),o.length>0&&b.jsxs(ke,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[b.jsx(zt,{icon:K8,fixedWidth:!0})," Export servers"]})]}),b.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:b.jsxs(ke,{outline:!0,color:"primary",className:"flex-fill",tag:nn,to:"/server/create",children:[b.jsx(zt,{icon:Ek,fixedWidth:!0})," Add a server"]})})]}),b.jsx(Bn,{children:b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsx("thead",{className:"responsive-table__header",children:b.jsxs("tr",{children:[h&&b.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),b.jsx("th",{children:"Name"}),b.jsx("th",{children:"Base URL"}),b.jsx("th",{"aria-label":"Options"})]})}),b.jsxs("tbody",{children:[!s.length&&b.jsx("tr",{className:"text-center",children:b.jsx("td",{colSpan:4,children:"No servers found."})}),s.map(m=>b.jsx(r,{server:m,hasAutoConnect:h},m.id))]})]})}),d&&b.jsx("div",{className:"mt-3",children:b.jsx(Ii,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},SPt=t=>({server:e,hasAutoConnect:n})=>b.jsxs("tr",{className:"responsive-table__row",children:[n&&b.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&b.jsxs(b.Fragment,{children:[b.jsx(zt,{icon:Hm,className:"text-primary",id:"autoConnectIcon"}),b.jsx(fi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),b.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:b.jsx(nn,{to:`/server/${e.id}`,children:e.name})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),b.jsx("td",{className:"responsive-table__cell text-end",children:b.jsx(t,{server:e})})]}),TPt=t=>({server:e,setAutoConnect:n})=>{const[r,,i,o]=zn(),s=`/server/${e.id}`,{autoConnect:l}=e,c=l?aet:Vft;return b.jsxs(b1,{minWidth:170,children:[b.jsxs(Zt,{tag:nn,to:s,children:[b.jsx(zt,{icon:oet,fixedWidth:!0})," Connect"]}),b.jsxs(Zt,{tag:nn,to:`${s}/edit`,children:[b.jsx(zt,{icon:wk,fixedWidth:!0})," Edit server"]}),b.jsxs(Zt,{onClick:()=>n(e,!l),children:[b.jsx(zt,{icon:c,fixedWidth:!0})," ",l?"Do not a":"A","uto-connect"]}),b.jsx(Zt,{divider:!0}),b.jsxs(Zt,{className:"dropdown-item--danger",onClick:i,children:[b.jsx(zt,{icon:xk,fixedWidth:!0})," Remove server"]}),b.jsx(t,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},q9=(t,e)=>sz(t,e,{serializeError:$8}),EPt={},OPt=t=>t.id?t:a0("id",W9(),t),CPt=I8((t,e)=>a0(e.id,e,t),{}),{actions:kPt,reducer:PPt}=Br({name:"shlink/servers",initialState:EPt,reducers:{editServer:{prepare:(t,e)=>({payload:{serverId:t,serverData:e}}),reducer:(t,{payload:e})=>{const{serverId:n,serverData:r}=e;return t[n]?a0(n,{...t[n],...r},t):t}},deleteServer:(t,{payload:e})=>Ctt(e.id,t),setAutoConnect:{prepare:({id:t},e)=>({payload:{serverId:t,autoConnect:e}}),reducer:(t,{payload:e})=>{const{serverId:n,autoConnect:r}=e;return t[n]?r?Mtt(Wtt(t).map(([i,o])=>[i,{...o,autoConnect:i===n}])):a0(n,{...t[n],autoConnect:r},t):t}},createServers:{prepare:tu(yk(OPt),CPt,t=>({payload:t})),reducer:(t,{payload:e})=>({...t,...e})}}}),{editServer:LPt,deleteServer:MPt,setAutoConnect:APt,createServers:K9}=kPt,RPt=PPt,jPt=t=>Array.isArray(t)?t.filter(V8):[],NPt=t=>q9("shlink/remoteServers/fetchServers",async(e,{dispatch:n})=>{const r=await t.fetchJson(`${i0.homepage}/servers.json`),i=jPt(r);n(K9(i))}),DL="shlink/selectedServer",DPt="1.0.0",IPt="999.999.999",FPt="latest",BPt=tu(t=>t===FPt?IPt:t,V9(DPt)),$Pt=U8(t=>`${t.id}_${t.url}_${t.apiKey}`,async(t,e)=>e().then(({version:n})=>({version:BPt(n),printableVersion:U9(n)}))),C4=null,IL=lr(`${DL}/resetSelectedServer`),zPt=t=>q9(`${DL}/selectServer`,async(e,{dispatch:n,getState:r})=>{n(IL());const{servers:i}=r(),o=i[e];if(!o)return{serverNotFound:!0};try{const{health:s}=t(o),{version:l,printableVersion:c}=await $Pt(o,s);return{...o,version:l,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),UPt=t=>Br({name:DL,initialState:C4,reducers:{},extraReducers:e=>{e.addCase(IL,()=>C4),e.addCase(t.fulfilled,(n,{payload:r})=>r)}}),VPt=({servers:t,selectedServer:e})=>{const n=_k(t),r=()=>c0(n)?b.jsxs(Zt,{tag:nn,to:"/server/create",children:[b.jsx(zt,{icon:Ek})," ",b.jsx("span",{className:"ms-1",children:"Add a server"})]}):b.jsxs(b.Fragment,{children:[n.map(({name:i,id:o})=>b.jsx(Zt,{tag:nn,to:`/server/${o}`,active:Ztt(e)===o,children:i},o)),b.jsx(Zt,{divider:!0}),b.jsxs(Zt,{tag:nn,to:"/manage-servers",children:[b.jsx(zt,{icon:JR})," ",b.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return b.jsxs(Hg,{nav:!0,inNavbar:!0,children:[b.jsxs(zg,{nav:!0,caret:!0,children:[b.jsx(zt,{icon:JR})," ",b.jsx("span",{className:"ms-1",children:"Servers"})]}),b.jsx(Nd,{end:!0,style:{right:0},children:r()})]})},HPt=({document:t},e,n)=>{const r=t.createElement("a");r.setAttribute("href",e),r.setAttribute("download",n),r.style.visibility="hidden",t.body.appendChild(r),r.click(),t.body.removeChild(r)},WPt=(t,e,n)=>{const r=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);HPt(t,i,n)},YPt="shlink-servers.csv";class ZPt{constructor(e,n,r){St(this,"exportServers",async()=>{const e=_k(this.storage.get("servers")??{}).map(Gtt);try{const n=this.jsonToCsv(e);WPt(this.window,n,YPt)}catch(n){console.error(n)}});this.storage=e,this.window=n,this.jsonToCsv=r}}const GPt=t=>typeof t.url=="string"&&typeof t.apiKey=="string"&&typeof t.name=="string",qPt=t=>Array.isArray(t)&&t.every(GPt);class KPt{constructor(e,n){St(this,"importServersFromFile",async e=>{if(!e)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,l;try{const c=((l=(s=o.target)==null?void 0:s.result)==null?void 0:l.toString())??"",h=await this.csvToJson(c);if(!qPt(h))throw new Error("Provided file does not have the right format.");r(h)}catch(c){i(c)}}),n.readAsText(e)})});this.csvToJson=e,this.fileReaderFactory=n}}const XPt=(t,e)=>{t.serviceFactory("ManageServers",wPt,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),t.decorator("ManageServers",vb),t.decorator("ManageServers",e(["selectedServer","servers"],["resetSelectedServer"])),t.serviceFactory("ManageServersRow",SPt,"ManageServersRowDropdown"),t.serviceFactory("ManageServersRowDropdown",TPt,"DeleteServerModal"),t.decorator("ManageServersRowDropdown",e(null,["setAutoConnect"])),t.serviceFactory("CreateServer",mPt,"ImportServersBtn","useTimeoutToggle"),t.decorator("CreateServer",vb),t.decorator("CreateServer",e(["selectedServer","servers"],["createServers","resetSelectedServer"])),t.serviceFactory("EditServer",yPt,"ServerError"),t.decorator("EditServer",e(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),t.serviceFactory("ServersDropdown",()=>VPt),t.decorator("ServersDropdown",e(["servers","selectedServer"])),t.serviceFactory("DeleteServerModal",()=>vPt),t.decorator("DeleteServerModal",e(null,["deleteServer"])),t.serviceFactory("DeleteServerButton",gPt,"DeleteServerModal"),t.serviceFactory("ImportServersBtn",_Pt,"ServersImporter"),t.decorator("ImportServersBtn",e(["servers"],["createServers"])),t.serviceFactory("ServerError",bPt,"DeleteServerButton"),t.decorator("ServerError",e(["servers","selectedServer"])),t.constant("fileReaderFactory",()=>new FileReader),t.service("ServersImporter",KPt,"csvToJson","fileReaderFactory"),t.service("ServersExporter",ZPt,"Storage","window","jsonToCsv"),t.serviceFactory("selectServer",zPt,"buildShlinkApiClient","loadMercureInfo"),t.serviceFactory("createServers",()=>K9),t.serviceFactory("deleteServer",()=>MPt),t.serviceFactory("editServer",()=>LPt),t.serviceFactory("setAutoConnect",()=>APt),t.serviceFactory("fetchServers",NPt,"HttpClient"),t.serviceFactory("resetSelectedServer",()=>IL),t.serviceFactory("selectedServerReducerCreator",UPt,"selectServer"),t.serviceFactory("selectedServerReducer",WJ("reducer"),"selectedServerReducerCreator")},Hh=({children:t})=>b.jsx("small",{className:"form-text text-muted d-block",children:t}),QPt=t=>t?`${t}`:"",JPt=({settings:t,toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=t,i=_1();return b.jsxs(Bn,{title:"Real-time updates",className:"h-100",children:[b.jsx(Ai,{children:b.jsxs(fd,{checked:r.enabled,onChange:e,children:["Enable or disable real-time updates.",b.jsxs(Hh,{children:["Real-time updates are currently being ",b.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),b.jsxs(Id,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:qt("form-label",{"text-muted":!r.enabled}),id:i,children:[b.jsx(dd,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:QPt(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&b.jsxs(Hh,{children:[r.interval!==void 0&&r.interval>0&&b.jsxs("span",{children:["Updates will be reflected in the UI every ",b.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},X9={field:"dateCreated",dir:"DESC"},tLt={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:X9}},eLt=(t,{payload:e})=>Btt(t,e),kc=t=>({reducer:eLt,prepare:t}),Pc=t=>({payload:t}),{reducer:nLt,actions:rLt}=Br({name:"shlink/settings",initialState:tLt,reducers:{toggleRealTimeUpdates:kc(t=>Pc({realTimeUpdates:{enabled:t}})),setRealTimeUpdatesInterval:kc(t=>Pc({realTimeUpdates:{interval:t}})),setShortUrlCreationSettings:kc(t=>Pc({shortUrlCreation:t})),setShortUrlsListSettings:kc(t=>Pc({shortUrlsList:t})),setUiSettings:kc(t=>Pc({ui:t})),setVisitsSettings:kc(t=>Pc({visits:t})),setTagsSettings:kc(t=>Pc({tags:t}))}}),{toggleRealTimeUpdates:iLt,setRealTimeUpdatesInterval:oLt,setShortUrlCreationSettings:sLt,setShortUrlsListSettings:aLt,setUiSettings:lLt,setVisitsSettings:cLt,setTagsSettings:uLt}=rLt,hLt=nLt,G2=({items:t})=>b.jsx(b.Fragment,{children:t.map((e,n)=>b.jsx("div",{className:"mb-3",children:e},n))}),dLt=(t,e,n,r,i,o)=>()=>b.jsxs(Hd,{children:[b.jsxs(C$,{className:"mb-3",children:[b.jsx(em,{to:"general",children:"General"}),b.jsx(em,{to:"short-urls",children:"Short URLs"}),b.jsx(em,{to:"other-items",children:"Other items"})]}),b.jsxs(a1,{children:[b.jsx(Ce,{path:"general",element:b.jsx(G2,{items:[b.jsx(r,{}),b.jsx(t,{})]})}),b.jsx(Ce,{path:"short-urls",element:b.jsx(G2,{items:[b.jsx(e,{}),b.jsx(n,{})]})}),b.jsx(Ce,{path:"other-items",element:b.jsx(G2,{items:[b.jsx(o,{}),b.jsx(i,{})]})}),b.jsx(Ce,{path:"*",element:b.jsx(dk,{replace:!0,to:"general"})})]})]}),q2=t=>t==="includes"?"Suggest tags including input":"Suggest tags starting with input",fLt=t=>t==="includes"?b.jsxs(b.Fragment,{children:["The list of suggested tags will contain those ",b.jsx("b",{children:"including"})," provided input."]}):b.jsxs(b.Fragment,{children:["The list of suggested tags will contain those ",b.jsx("b",{children:"starting with"})," provided input."]}),pLt=({settings:t,setShortUrlCreationSettings:e})=>{const n=t.shortUrlCreation??{validateUrls:!1},r=i=>()=>e({...n??{validateUrls:!1},tagFilteringMode:i});return b.jsxs(Bn,{title:"Short URLs form",className:"h-100",children:[b.jsx(Ai,{children:b.jsxs(fd,{checked:n.validateUrls??!1,onChange:i=>e({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",b.jsxs(Hh,{children:["The initial state of the ",b.jsx("b",{children:"Validate URL"})," checkbox will be ",b.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),b.jsx(Ai,{children:b.jsxs(fd,{checked:n.forwardQuery??!0,onChange:i=>e({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",b.jsxs(Hh,{children:["The initial state of the ",b.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",b.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),b.jsxs(Id,{noMargin:!0,label:"Tag suggestions search mode:",children:[b.jsxs(Pa,{text:q2(n.tagFilteringMode),children:[b.jsx(Zt,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:q2("startsWith")}),b.jsx(Zt,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:q2("includes")})]}),b.jsx(Hh,{children:fLt(n.tagFilteringMode)})]})]})},mLt={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},gLt=({settings:{shortUrlsList:t},setShortUrlsListSettings:e})=>b.jsx(Bn,{title:"Short URLs list",className:"h-100",children:b.jsx(Id,{noMargin:!0,label:"Default ordering for short URLs list:",children:b.jsx(Yg,{items:mLt,order:(t==null?void 0:t.defaultOrdering)??X9,onChange:(n,r)=>e({defaultOrdering:{field:n,dir:r}})})})}),vLt={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},yLt=({settings:{tags:t},setTagsSettings:e})=>b.jsx(Bn,{title:"Tags",className:"h-100",children:b.jsx(Id,{noMargin:!0,label:"Default ordering for tags list:",children:b.jsx(Yg,{items:vLt,order:(t==null?void 0:t.defaultOrdering)??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})});const _Lt=({settings:{ui:t},setUiSettings:e})=>b.jsxs(Bn,{title:"User interface",className:"h-100",children:[b.jsx(zt,{icon:(t==null?void 0:t.theme)==="dark"?Het:Aet,className:"user-interface__theme-icon"}),b.jsx(fd,{checked:(t==null?void 0:t.theme)==="dark",onChange:n=>{const r=n?"dark":"light";e({...t,theme:r}),M$(r)},children:"Use dark theme."})]}),Q9={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},bLt=(t,e)=>!t||t==="all"?e:Q9[t],xLt=({onChange:t,active:e,allText:n})=>b.jsxs(Pa,{text:bLt(e,n),children:[b.jsx(Zt,{active:e==="all",onClick:()=>t("all"),children:n}),b.jsx(Zt,{divider:!0}),Object.entries(Q9).map(([r,i])=>b.jsx(Zt,{active:e===r,onClick:()=>t(r),children:i},r))]}),k4=t=>{var e;return((e=t.visits)==null?void 0:e.defaultInterval)??"last30Days"},wLt=({settings:t,setVisitsSettings:e})=>{var n,r;return b.jsxs(Bn,{title:"Visits",className:"h-100",children:[b.jsx(Ai,{children:b.jsxs(fd,{checked:!!((n=t.visits)!=null&&n.excludeBots),onChange:i=>e({defaultInterval:k4(t),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",b.jsxs(Hh,{children:["The visits coming from potential bots will be ",b.jsx("b",{children:(r=t.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),b.jsx(Id,{noMargin:!0,label:"Default interval to load on visits sections:",children:b.jsx(xLt,{allText:"All visits",active:k4(t),onChange:i=>e({defaultInterval:i})})})]})},SLt=(t,e)=>{t.serviceFactory("Settings",dLt,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),t.decorator("Settings",vb),t.decorator("Settings",e(null,["resetSelectedServer"])),t.serviceFactory("RealTimeUpdatesSettings",()=>JPt),t.decorator("RealTimeUpdatesSettings",e(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),t.serviceFactory("ShortUrlCreationSettings",()=>pLt),t.decorator("ShortUrlCreationSettings",e(["settings"],["setShortUrlCreationSettings"])),t.serviceFactory("UserInterfaceSettings",()=>_Lt),t.decorator("UserInterfaceSettings",e(["settings"],["setUiSettings"])),t.serviceFactory("VisitsSettings",()=>wLt),t.decorator("VisitsSettings",e(["settings"],["setVisitsSettings"])),t.serviceFactory("TagsSettings",()=>yLt),t.decorator("TagsSettings",e(["settings"],["setTagsSettings"])),t.serviceFactory("ShortUrlsListSettings",()=>gLt),t.decorator("ShortUrlsListSettings",e(["settings"],["setShortUrlsListSettings"])),t.serviceFactory("toggleRealTimeUpdates",()=>iLt),t.serviceFactory("setRealTimeUpdatesInterval",()=>oLt),t.serviceFactory("setShortUrlCreationSettings",()=>sLt),t.serviceFactory("setShortUrlsListSettings",()=>aLt),t.serviceFactory("setUiSettings",()=>lLt),t.serviceFactory("setVisitsSettings",()=>cLt),t.serviceFactory("setTagsSettings",()=>uLt)};var TLt="Expected a function",J9="__lodash_hash_undefined__",tV=1/0,ELt="[object Function]",OLt="[object GeneratorFunction]",CLt="[object Symbol]",kLt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PLt=/^\w*$/,LLt=/^\./,MLt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ALt=/[\\^$.*+?()[\]{}|]/g,RLt=/\\(\\)?/g,jLt=/^\[object .+?Constructor\]$/,NLt=typeof mp=="object"&&mp&&mp.Object===Object&&mp,DLt=typeof self=="object"&&self&&self.Object===Object&&self,FL=NLt||DLt||Function("return this")();function ILt(t,e){return t==null?void 0:t[e]}function FLt(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var BLt=Array.prototype,$Lt=Function.prototype,eV=Object.prototype,K2=FL["__core-js_shared__"],P4=function(){var t=/[^.]+$/.exec(K2&&K2.keys&&K2.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),nV=$Lt.toString,BL=eV.hasOwnProperty,rV=eV.toString,zLt=RegExp("^"+nV.call(BL).replace(ALt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L4=FL.Symbol,ULt=BLt.splice,VLt=iV(FL,"Map"),Sg=iV(Object,"create"),M4=L4?L4.prototype:void 0,A4=M4?M4.toString:void 0;function Cu(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function JLt(t,e){var n=this.__data__,r=W1(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}Wd.prototype.clear=qLt;Wd.prototype.delete=KLt;Wd.prototype.get=XLt;Wd.prototype.has=QLt;Wd.prototype.set=JLt;function Vu(t){var e=-1,n=t?t.length:0;for(this.clear();++er.toFixed(n).replace(".",e):r=>`${r}`.replace(".",e):n?r=>r.toFixed(n):r=>`${r}`}function UL(t={}){const e=typeof t.quote=="string"?t.quote:'"',n=typeof t.escapedQuote=="string"?t.escapedQuote:`${e}${e}`;return!e||e===n?r=>r:r=>(r.includes(e)&&(r=r.replace(new RegExp(e,"g"),n)),`${e}${r}${e}`)}function wMt(t={stringFormatter:UL()}){return e=>t.stringFormatter(e.toString().slice(7,-1))}function SMt(t={stringFormatter:UL()}){return e=>{if(e===null)return"";let n=JSON.stringify(e);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),t.stringFormatter(n))}}function j4(t,e,n){const r=t[e];return r===void 0?n:r}function aV(t,e){try{return Array.isArray(e)?t.push(...e):t.push(e),t}catch{return t.concat(e)}}function FO(t,e){let n=!0;return t.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${e}${i}`),"")}var N4;(function(t){t.header="header",t.undefined="undefined",t.boolean="boolean",t.number="number",t.bigint="bigint",t.string="string",t.symbol="symbol",t.function="function",t.object="object"})(N4||(N4={}));class TMt{constructor(e){this.opts=this.preprocessOpts(e)}preprocessOpts(e){const n=Object.assign({},e);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||UL(),i=SMt({stringFormatter:r}),o={header:r,undefined:X2,boolean:X2,number:xMt(),bigint:X2,string:r,symbol:wMt({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(e,n){return e.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>R4(i,r,n):i=>j4(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?s=>R4(s,o,i):s=>j4(s,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i},l=r.value;return{label:o,value(c){const h=l(c,s);return h===void 0?i:h}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return FO(this.opts.fields.map(e=>this.opts.formatters.header(e.label)),this.opts.delimiter)}preprocessRow(e){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(aV,[]),[e])}processRow(e){if(!e)return;const n=this.opts.fields.map(r=>this.processCell(e,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return FO(n,this.opts.delimiter)}processCell(e,n){return this.processValue(n.value(e))}processValue(e){const n=this.opts.formatters[typeof e];return n(e)}}class EMt extends TMt{constructor(e){super(e)}parse(e){const n=this.preprocessData(e);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,l)=>(Object.keys(l).forEach(c=>{s.includes(c)||s.push(c)}),s),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(e){const n=Array.isArray(e)?e:[e];if(!this.opts.fields){if(e==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(aV,[])}processData(e){return FO(e.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var er;(function(t){t[t.BACKSPACE=8]="BACKSPACE",t[t.FORM_FEED=12]="FORM_FEED",t[t.NEWLINE=10]="NEWLINE",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.DOLLAR_SIGN=36]="DOLLAR_SIGN",t[t.PERCENT_SIGN=37]="PERCENT_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",t[t.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",t[t.ASTERISK=42]="ASTERISK",t[t.PLUS_SIGN=43]="PLUS_SIGN",t[t.COMMA=44]="COMMA",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.FULL_STOP=46]="FULL_STOP",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_ZERO=48]="DIGIT_ZERO",t[t.DIGIT_ONE=49]="DIGIT_ONE",t[t.DIGIT_TWO=50]="DIGIT_TWO",t[t.DIGIT_THREE=51]="DIGIT_THREE",t[t.DIGIT_FOUR=52]="DIGIT_FOUR",t[t.DIGIT_FIVE=53]="DIGIT_FIVE",t[t.DIGIT_SIX=54]="DIGIT_SIX",t[t.DIGIT_SEVEN=55]="DIGIT_SEVEN",t[t.DIGIT_EIGHT=56]="DIGIT_EIGHT",t[t.DIGIT_NINE=57]="DIGIT_NINE",t[t.COLON=58]="COLON",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.COMMERCIAL_AT=64]="COMMERCIAL_AT",t[t.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",t[t.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",t[t.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",t[t.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",t[t.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",t[t.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",t[t.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",t[t.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",t[t.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",t[t.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",t[t.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",t[t.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",t[t.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",t[t.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",t[t.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",t[t.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",t[t.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",t[t.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",t[t.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",t[t.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",t[t.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",t[t.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",t[t.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",t[t.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",t[t.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",t[t.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",t[t.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",t[t.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",t[t.LOW_LINE=95]="LOW_LINE",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",t[t.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",t[t.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",t[t.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",t[t.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",t[t.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",t[t.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",t[t.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",t[t.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",t[t.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",t[t.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",t[t.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",t[t.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",t[t.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",t[t.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",t[t.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",t[t.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",t[t.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",t[t.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",t[t.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",t[t.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",t[t.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",t[t.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",t[t.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",t[t.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",t[t.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",t[t.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",t[t.VERTICAL_LINE=124]="VERTICAL_LINE",t[t.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",t[t.TILDE=126]="TILDE"})(er||(er={}));er.QUOTATION_MARK+"",er.QUOTATION_MARK,er.REVERSE_SOLIDUS+"",er.REVERSE_SOLIDUS,er.SOLIDUS+"",er.SOLIDUS,er.LATIN_SMALL_LETTER_B+"",er.BACKSPACE,er.LATIN_SMALL_LETTER_F+"",er.FORM_FEED,er.LATIN_SMALL_LETTER_N+"",er.NEWLINE,er.LATIN_SMALL_LETTER_R+"",er.CARRIAGE_RETURN,er.LATIN_SMALL_LETTER_T+"",er.TAB;var D4;(function(t){t[t.LEFT_BRACE=0]="LEFT_BRACE",t[t.RIGHT_BRACE=1]="RIGHT_BRACE",t[t.LEFT_BRACKET=2]="LEFT_BRACKET",t[t.RIGHT_BRACKET=3]="RIGHT_BRACKET",t[t.COLON=4]="COLON",t[t.COMMA=5]="COMMA",t[t.TRUE=6]="TRUE",t[t.FALSE=7]="FALSE",t[t.NULL=8]="NULL",t[t.STRING=9]="STRING",t[t.NUMBER=10]="NUMBER",t[t.SEPARATOR=11]="SEPARATOR"})(D4||(D4={}));var I4;(function(t){t[t.START=0]="START",t[t.ENDED=1]="ENDED",t[t.ERROR=2]="ERROR",t[t.TRUE1=3]="TRUE1",t[t.TRUE2=4]="TRUE2",t[t.TRUE3=5]="TRUE3",t[t.FALSE1=6]="FALSE1",t[t.FALSE2=7]="FALSE2",t[t.FALSE3=8]="FALSE3",t[t.FALSE4=9]="FALSE4",t[t.NULL1=10]="NULL1",t[t.NULL2=11]="NULL2",t[t.NULL3=12]="NULL3",t[t.STRING_DEFAULT=13]="STRING_DEFAULT",t[t.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",t[t.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",t[t.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",t[t.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",t[t.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",t[t.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",t[t.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",t[t.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",t[t.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",t[t.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",t[t.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",t[t.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",t[t.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",t[t.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",t[t.SEPARATOR=28]="SEPARATOR"})(I4||(I4={}));var F4;(function(t){t[t.OBJECT=0]="OBJECT",t[t.ARRAY=1]="ARRAY"})(F4||(F4={}));var B4;(function(t){t[t.VALUE=0]="VALUE",t[t.KEY=1]="KEY",t[t.COLON=2]="COLON",t[t.COMMA=3]="COMMA",t[t.ENDED=4]="ENDED",t[t.ERROR=5]="ERROR",t[t.SEPARATOR=6]="SEPARATOR"})(B4||(B4={}));var OMt=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,(function(l){return r[l]}).bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}t.exports=n},function(t,e,n){var r=n(6),i=Object.keys||function(y){var _=[];for(var T in y)_.push(T);return _};t.exports=p;var o=n(5);o.inherits=n(2);var s=n(23),l=n(14);o.inherits(p,s);for(var c=i(l.prototype),h=0;h + * @license MIT + */var i=n(38),o=n(39),s=n(40);function l(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(M,R){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|M}function _(M,R){if(h.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var z=M.length;if(z===0)return 0;for(var at=!1;;)switch(R){case"ascii":case"latin1":case"binary":return z;case"utf8":case"utf-8":case void 0:return tt(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*z;case"hex":return z>>>1;case"base64":return rt(M).length;default:if(at)return tt(M).length;R=(""+R).toLowerCase(),at=!0}}function T(M,R,z){var at=M[R];M[R]=M[z],M[z]=at}function x(M,R,z,at,st){if(M.length===0)return-1;if(typeof z=="string"?(at=z,z=0):z>2147483647?z=2147483647:z<-2147483648&&(z=-2147483648),z=+z,isNaN(z)&&(z=st?0:M.length-1),z<0&&(z=M.length+z),z>=M.length){if(st)return-1;z=M.length-1}else if(z<0){if(!st)return-1;z=0}if(typeof R=="string"&&(R=h.from(R,at)),h.isBuffer(R))return R.length===0?-1:w(M,R,z,at,st);if(typeof R=="number")return R&=255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?st?Uint8Array.prototype.indexOf.call(M,R,z):Uint8Array.prototype.lastIndexOf.call(M,R,z):w(M,[R],z,at,st);throw new TypeError("val must be string, number or Buffer")}function w(M,R,z,at,st){var ht,bt=1,It=M.length,ft=R.length;if(at!==void 0&&((at=String(at).toLowerCase())==="ucs2"||at==="ucs-2"||at==="utf16le"||at==="utf-16le")){if(M.length<2||R.length<2)return-1;bt=2,It/=2,ft/=2,z/=2}function vt(Lt,jt){return bt===1?Lt[jt]:Lt.readUInt16BE(jt*bt)}if(st){var _t=-1;for(ht=z;htIt&&(z=It-ft),ht=z;ht>=0;ht--){for(var Ct=!0,Mt=0;Mtst&&(at=st):at=st;var ht=R.length;if(ht%2!=0)throw new TypeError("Invalid hex string");at>ht/2&&(at=ht/2);for(var bt=0;bt>8,ft=bt%256,vt.push(ft),vt.push(It);return vt}(R,M.length-z),M,z,at)}function B(M,R,z){return R===0&&z===M.length?i.fromByteArray(M):i.fromByteArray(M.slice(R,z))}function N(M,R,z){z=Math.min(M.length,z);for(var at=[],st=R;st239?4:vt>223?3:vt>191?2:1;if(st+Ct<=z)switch(Ct){case 1:vt<128&&(_t=vt);break;case 2:(192&(ht=M[st+1]))==128&&(ft=(31&vt)<<6|63&ht)>127&&(_t=ft);break;case 3:ht=M[st+1],bt=M[st+2],(192&ht)==128&&(192&bt)==128&&(ft=(15&vt)<<12|(63&ht)<<6|63&bt)>2047&&(ft<55296||ft>57343)&&(_t=ft);break;case 4:ht=M[st+1],bt=M[st+2],It=M[st+3],(192&ht)==128&&(192&bt)==128&&(192&It)==128&&(ft=(15&vt)<<18|(63&ht)<<12|(63&bt)<<6|63&It)>65535&&ft<1114112&&(_t=ft)}_t===null?(_t=65533,Ct=1):_t>65535&&(_t-=65536,at.push(_t>>>10&1023|55296),_t=56320|1023&_t),at.push(_t),st+=Ct}return function(Mt){var Lt=Mt.length;if(Lt<=V)return String.fromCharCode.apply(String,Mt);for(var jt="",dt=0;dtthis.length||((at===void 0||at>this.length)&&(at=this.length),at<=0)||(at>>>=0)<=(z>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return K(this,z,at);case"utf8":case"utf-8":return N(this,z,at);case"ascii":return Y(this,z,at);case"latin1":case"binary":return nt(this,z,at);case"base64":return B(this,z,at);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,z,at);default:if(st)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),st=!0}}).apply(this,arguments)},h.prototype.equals=function(M){if(!h.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M||h.compare(this,M)===0},h.prototype.inspect=function(){var M="",R=e.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(M+=" ... ")),""},h.prototype.compare=function(M,R,z,at,st){if(!h.isBuffer(M))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),z===void 0&&(z=M?M.length:0),at===void 0&&(at=0),st===void 0&&(st=this.length),R<0||z>M.length||at<0||st>this.length)throw new RangeError("out of range index");if(at>=st&&R>=z)return 0;if(at>=st)return-1;if(R>=z)return 1;if(R>>>=0,z>>>=0,at>>>=0,st>>>=0,this===M)return 0;for(var ht=st-at,bt=z-R,It=Math.min(ht,bt),ft=this.slice(at,st),vt=M.slice(R,z),_t=0;_tst)&&(z=st),M.length>0&&(z<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");at||(at="utf8");for(var ht=!1;;)switch(at){case"hex":return E(this,M,R,z);case"utf8":case"utf-8":return O(this,M,R,z);case"ascii":return k(this,M,R,z);case"latin1":case"binary":return P(this,M,R,z);case"base64":return A(this,M,R,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,M,R,z);default:if(ht)throw new TypeError("Unknown encoding: "+at);at=(""+at).toLowerCase(),ht=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function Y(M,R,z){var at="";z=Math.min(M.length,z);for(var st=R;stat)&&(z=at);for(var st="",ht=R;htz)throw new RangeError("Trying to access beyond buffer length")}function ct(M,R,z,at,st,ht){if(!h.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>st||RM.length)throw new RangeError("Index out of range")}function G(M,R,z,at){R<0&&(R=65535+R+1);for(var st=0,ht=Math.min(M.length-z,2);st>>8*(at?st:1-st)}function $(M,R,z,at){R<0&&(R=4294967295+R+1);for(var st=0,ht=Math.min(M.length-z,4);st>>8*(at?st:3-st)&255}function I(M,R,z,at,st,ht){if(z+at>M.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("Index out of range")}function H(M,R,z,at,st){return st||I(M,0,z,4),o.write(M,R,z,at,23,4),z+4}function it(M,R,z,at,st){return st||I(M,0,z,8),o.write(M,R,z,at,52,8),z+8}h.prototype.slice=function(M,R){var z,at=this.length;if(M=~~M,R=R===void 0?at:~~R,M<0?(M+=at)<0&&(M=0):M>at&&(M=at),R<0?(R+=at)<0&&(R=0):R>at&&(R=at),R0&&(st*=256);)at+=this[M+--R]*st;return at},h.prototype.readUInt8=function(M,R){return R||et(M,1,this.length),this[M]},h.prototype.readUInt16LE=function(M,R){return R||et(M,2,this.length),this[M]|this[M+1]<<8},h.prototype.readUInt16BE=function(M,R){return R||et(M,2,this.length),this[M]<<8|this[M+1]},h.prototype.readUInt32LE=function(M,R){return R||et(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},h.prototype.readUInt32BE=function(M,R){return R||et(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},h.prototype.readIntLE=function(M,R,z){M|=0,R|=0,z||et(M,R,this.length);for(var at=this[M],st=1,ht=0;++ht=(st*=128)&&(at-=Math.pow(2,8*R)),at},h.prototype.readIntBE=function(M,R,z){M|=0,R|=0,z||et(M,R,this.length);for(var at=R,st=1,ht=this[M+--at];at>0&&(st*=256);)ht+=this[M+--at]*st;return ht>=(st*=128)&&(ht-=Math.pow(2,8*R)),ht},h.prototype.readInt8=function(M,R){return R||et(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},h.prototype.readInt16LE=function(M,R){R||et(M,2,this.length);var z=this[M]|this[M+1]<<8;return 32768&z?4294901760|z:z},h.prototype.readInt16BE=function(M,R){R||et(M,2,this.length);var z=this[M+1]|this[M]<<8;return 32768&z?4294901760|z:z},h.prototype.readInt32LE=function(M,R){return R||et(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},h.prototype.readInt32BE=function(M,R){return R||et(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},h.prototype.readFloatLE=function(M,R){return R||et(M,4,this.length),o.read(this,M,!0,23,4)},h.prototype.readFloatBE=function(M,R){return R||et(M,4,this.length),o.read(this,M,!1,23,4)},h.prototype.readDoubleLE=function(M,R){return R||et(M,8,this.length),o.read(this,M,!0,52,8)},h.prototype.readDoubleBE=function(M,R){return R||et(M,8,this.length),o.read(this,M,!1,52,8)},h.prototype.writeUIntLE=function(M,R,z,at){M=+M,R|=0,z|=0,at||ct(this,M,R,z,Math.pow(2,8*z)-1,0);var st=1,ht=0;for(this[R]=255&M;++ht=0&&(ht*=256);)this[R+st]=M/ht&255;return R+z},h.prototype.writeUInt8=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,1,255,0),h.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[R]=255&M,R+1},h.prototype.writeUInt16LE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[R]=255&M,this[R+1]=M>>>8):G(this,M,R,!0),R+2},h.prototype.writeUInt16BE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[R]=M>>>8,this[R+1]=255&M):G(this,M,R,!1),R+2},h.prototype.writeUInt32LE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[R+3]=M>>>24,this[R+2]=M>>>16,this[R+1]=M>>>8,this[R]=255&M):$(this,M,R,!0),R+4},h.prototype.writeUInt32BE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[R]=M>>>24,this[R+1]=M>>>16,this[R+2]=M>>>8,this[R+3]=255&M):$(this,M,R,!1),R+4},h.prototype.writeIntLE=function(M,R,z,at){if(M=+M,R|=0,!at){var st=Math.pow(2,8*z-1);ct(this,M,R,z,st-1,-st)}var ht=0,bt=1,It=0;for(this[R]=255&M;++ht>0)-It&255;return R+z},h.prototype.writeIntBE=function(M,R,z,at){if(M=+M,R|=0,!at){var st=Math.pow(2,8*z-1);ct(this,M,R,z,st-1,-st)}var ht=z-1,bt=1,It=0;for(this[R+ht]=255&M;--ht>=0&&(bt*=256);)M<0&&It===0&&this[R+ht+1]!==0&&(It=1),this[R+ht]=(M/bt>>0)-It&255;return R+z},h.prototype.writeInt8=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,1,127,-128),h.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[R]=255&M,R+1},h.prototype.writeInt16LE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[R]=255&M,this[R+1]=M>>>8):G(this,M,R,!0),R+2},h.prototype.writeInt16BE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[R]=M>>>8,this[R+1]=255&M):G(this,M,R,!1),R+2},h.prototype.writeInt32LE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[R]=255&M,this[R+1]=M>>>8,this[R+2]=M>>>16,this[R+3]=M>>>24):$(this,M,R,!0),R+4},h.prototype.writeInt32BE=function(M,R,z){return M=+M,R|=0,z||ct(this,M,R,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),h.TYPED_ARRAY_SUPPORT?(this[R]=M>>>24,this[R+1]=M>>>16,this[R+2]=M>>>8,this[R+3]=255&M):$(this,M,R,!1),R+4},h.prototype.writeFloatLE=function(M,R,z){return H(this,M,R,!0,z)},h.prototype.writeFloatBE=function(M,R,z){return H(this,M,R,!1,z)},h.prototype.writeDoubleLE=function(M,R,z){return it(this,M,R,!0,z)},h.prototype.writeDoubleBE=function(M,R,z){return it(this,M,R,!1,z)},h.prototype.copy=function(M,R,z,at){if(z||(z=0),at||at===0||(at=this.length),R>=M.length&&(R=M.length),R||(R=0),at>0&&at=this.length)throw new RangeError("sourceStart out of bounds");if(at<0)throw new RangeError("sourceEnd out of bounds");at>this.length&&(at=this.length),M.length-R=0;--st)M[st+R]=this[st+z];else if(ht<1e3||!h.TYPED_ARRAY_SUPPORT)for(st=0;st>>=0,z=z===void 0?this.length:z>>>0,M||(M=0),typeof M=="number")for(ht=R;ht55295&&z<57344){if(!st){if(z>56319){(R-=3)>-1&&ht.push(239,191,189);continue}if(bt+1===at){(R-=3)>-1&&ht.push(239,191,189);continue}st=z;continue}if(z<56320){(R-=3)>-1&&ht.push(239,191,189),st=z;continue}z=65536+(st-55296<<10|z-56320)}else st&&(R-=3)>-1&&ht.push(239,191,189);if(st=null,z<128){if((R-=1)<0)break;ht.push(z)}else if(z<2048){if((R-=2)<0)break;ht.push(z>>6|192,63&z|128)}else if(z<65536){if((R-=3)<0)break;ht.push(z>>12|224,z>>6&63|128,63&z|128)}else{if(!(z<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ht.push(z>>18|240,z>>12&63|128,z>>6&63|128,63&z|128)}}return ht}function rt(M){return i.toByteArray(function(R){if((R=function(z){return z.trim?z.trim():z.replace(/^\s+|\s+$/g,"")}(R).replace(W,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(M))}function mt(M,R,z,at){for(var st=0;st=R.length||st>=M.length);++st)R[st+z]=M[st];return st}}).call(this,n(0))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(T){if(n===setTimeout)return setTimeout(T,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(T,0);try{return n(T,0)}catch{try{return n.call(null,T,0)}catch{return n.call(this,T,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var c,h=[],d=!1,p=-1;function m(){d&&c&&(d=!1,c.length?h=c.concat(h):p=-1,h.length&&v())}function v(){if(!d){var T=l(m);d=!0;for(var x=h.length;x;){for(c=h,h=[];++p1)for(var w=1;w=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},c))},n(35),e.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,e.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(l){return typeof l=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var l,c,h,d,p,m;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((l=arguments[1])instanceof Error)throw l;var v=new Error('Uncaught, unspecified "error" event. ('+l+")");throw v.context=l,v}if(o(c=this._events[s]))return!1;if(r(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),c.apply(this,d)}else if(i(c))for(d=Array.prototype.slice.call(arguments,1),h=(m=c.slice()).length,p=0;p0&&this._events[s].length>c&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,l){if(!r(l))throw TypeError("listener must be a function");var c=!1;function h(){this.removeListener(s,h),c||(c=!0,l.apply(this,arguments))}return h.listener=l,this.on(s,h),this},n.prototype.removeListener=function(s,l){var c,h,d,p;if(!r(l))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(d=(c=this._events[s]).length,h=-1,c===l||r(c.listener)&&c.listener===l)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,l);else if(i(c)){for(p=d;p-- >0;)if(c[p]===l||c[p].listener&&c[p].listener===l){h=p;break}if(h<0)return this;c.length===1?(c.length=0,delete this._events[s]):c.splice(h,1),this._events.removeListener&&this.emit("removeListener",s,l)}return this},n.prototype.removeAllListeners=function(s){var l,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(l in this._events)l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events={},this}if(r(c=this._events[s]))this.removeListener(s,c);else if(c)for(;c.length;)this.removeListener(s,c[c.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var l=this._events[s];if(r(l))return 1;if(l)return l.length}return 0},n.listenerCount=function(s,l){return s.listenerCount(l)}},function(t,e,n){(e=t.exports=n(23)).Stream=e,e.Readable=e,e.Writable=n(14),e.Duplex=n(1),e.Transform=n(27),e.PassThrough=n(45)},function(t,e,n){(function(r,i,o){var s=n(6);function l(N){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(Y,nt,K){var J=Y.entry;for(Y.entry=null;J;){var et=J.callback;nt.pendingcb--,et(void 0),J=J.next}nt.corkedRequestsFree?nt.corkedRequestsFree.next=Y:nt.corkedRequestsFree=Y})(V,N)}}t.exports=E;var c,h=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;E.WritableState=w;var d=n(5);d.inherits=n(2);var p,m={deprecate:n(44)},v=n(24),y=n(7).Buffer,_=o.Uint8Array||function(){},T=n(25);function x(){}function w(N,V){c=c||n(1),N=N||{};var Y=V instanceof c;this.objectMode=!!N.objectMode,Y&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var nt=N.highWaterMark,K=N.writableHighWaterMark,J=this.objectMode?16:16384;this.highWaterMark=nt||nt===0?nt:Y&&(K||K===0)?K:J,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var et=N.decodeStrings===!1;this.decodeStrings=!et,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ct){(function(G,$){var I=G._writableState,H=I.sync,it=I.writecb;if(function(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}(I),$)(function(Q,tt,rt,mt,M){--tt.pendingcb,rt?(s.nextTick(M,mt),s.nextTick(B,Q,tt),Q._writableState.errorEmitted=!0,Q.emit("error",mt)):(M(mt),Q._writableState.errorEmitted=!0,Q.emit("error",mt),B(Q,tt))})(G,I,H,$,it);else{var W=A(I);W||I.corked||I.bufferProcessing||!I.bufferedRequest||P(G,I),H?h(k,G,I,W,it):k(G,I,W,it)}})(V,ct)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function E(N){if(c=c||n(1),!(p.call(E,this)||this instanceof c))return new E(N);this._writableState=new w(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),v.call(this)}function O(N,V,Y,nt,K,J,et){V.writelen=nt,V.writecb=et,V.writing=!0,V.sync=!0,Y?N._writev(K,V.onwrite):N._write(K,J,V.onwrite),V.sync=!1}function k(N,V,Y,nt){Y||function(K,J){J.length===0&&J.needDrain&&(J.needDrain=!1,K.emit("drain"))}(N,V),V.pendingcb--,nt(),B(N,V)}function P(N,V){V.bufferProcessing=!0;var Y=V.bufferedRequest;if(N._writev&&Y&&Y.next){var nt=V.bufferedRequestCount,K=new Array(nt),J=V.corkedRequestsFree;J.entry=Y;for(var et=0,ct=!0;Y;)K[et]=Y,Y.isBuf||(ct=!1),Y=Y.next,et+=1;K.allBuffers=ct,O(N,V,!0,V.length,K,"",J.finish),V.pendingcb++,V.lastBufferedRequest=null,J.next?(V.corkedRequestsFree=J.next,J.next=null):V.corkedRequestsFree=new l(V),V.bufferedRequestCount=0}else{for(;Y;){var G=Y.chunk,$=Y.encoding,I=Y.callback;if(O(N,V,!1,V.objectMode?1:G.length,G,$,I),Y=Y.next,V.bufferedRequestCount--,V.writing)break}Y===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=Y,V.bufferProcessing=!1}function A(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function j(N,V){N._final(function(Y){V.pendingcb--,Y&&N.emit("error",Y),V.prefinished=!0,N.emit("prefinish"),B(N,V)})}function B(N,V){var Y=A(V);return Y&&(function(nt,K){K.prefinished||K.finalCalled||(typeof nt._final=="function"?(K.pendingcb++,K.finalCalled=!0,s.nextTick(j,nt,K)):(K.prefinished=!0,nt.emit("prefinish")))}(N,V),V.pendingcb===0&&(V.finished=!0,N.emit("finish"))),Y}d.inherits(E,v),w.prototype.getBuffer=function(){for(var N=this.bufferedRequest,V=[];N;)V.push(N),N=N.next;return V},function(){try{Object.defineProperty(w.prototype,"buffer",{get:m.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(N){return!!p.call(this,N)||this===E&&N&&N._writableState instanceof w}})):p=function(N){return N instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(N,V,Y){var nt=this._writableState,K=!1,J=!nt.objectMode&&function(et){return y.isBuffer(et)||et instanceof _}(N);return J&&!y.isBuffer(N)&&(N=function(et){return y.from(et)}(N)),typeof V=="function"&&(Y=V,V=null),J?V="buffer":V||(V=nt.defaultEncoding),typeof Y!="function"&&(Y=x),nt.ended?function(et,ct){var G=new Error("write after end");et.emit("error",G),s.nextTick(ct,G)}(this,Y):(J||function(et,ct,G,$){var I=!0,H=!1;return G===null?H=new TypeError("May not write null values to stream"):typeof G=="string"||G===void 0||ct.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(et.emit("error",H),s.nextTick($,H),I=!1),I}(this,nt,N,Y))&&(nt.pendingcb++,K=function(et,ct,G,$,I,H){if(!G){var it=function(rt,mt,M){return rt.objectMode||rt.decodeStrings===!1||typeof mt!="string"||(mt=y.from(mt,M)),mt}(ct,$,I);$!==it&&(G=!0,I="buffer",$=it)}var W=ct.objectMode?1:$.length;ct.length+=W;var Q=ct.length-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(N,V,Y){Y(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(N,V,Y){var nt=this._writableState;typeof N=="function"?(Y=N,N=null,V=null):typeof V=="function"&&(Y=V,V=null),N!=null&&this.write(N,V),nt.corked&&(nt.corked=1,this.uncork()),nt.ending||nt.finished||function(K,J,et){J.ending=!0,B(K,J),et&&(J.finished?s.nextTick(et):K.once("finish",et)),J.ended=!0,K.writable=!1}(this,nt,Y)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),E.prototype.destroy=T.destroy,E.prototype._undestroy=T.undestroy,E.prototype._destroy=function(N,V){this.end(),V(N)}}).call(this,n(4),n(11).setImmediate,n(0))},function(t,e,n){(function(r,i,o){t.exports=function s(l,c,h){function d(v,y){if(!c[v]){if(!l[v]){var _=typeof _dereq_=="function"&&_dereq_;if(!y&&_)return _(v,!0);if(p)return p(v,!0);var T=new Error("Cannot find module '"+v+"'");throw T.code="MODULE_NOT_FOUND",T}var x=c[v]={exports:{}};l[v][0].call(x.exports,function(w){return d(l[v][1][w]||w)},x,x.exports,s,l,c,h)}return c[v].exports}for(var p=typeof _dereq_=="function"&&_dereq_,m=0;m0;){var w=x.shift();if(typeof w=="function"){var E=x.shift(),O=x.shift();w.call(E,O)}else w._settlePromises()}},v.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},v.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},v.prototype._reset=function(){this._isTickUsed=!1},l.exports=v,l.exports.firstLineError=h},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,l,c){l.exports=function(h,d,p,m){var v=!1,y=function(w,E){this._reject(E)},_=function(w,E){E.promiseRejectionQueued=!0,E.bindingPromise._then(y,y,null,this,w)},T=function(w,E){!(50397184&this._bitField)&&this._resolveCallback(E.target)},x=function(w,E){E.promiseRejectionQueued||this._reject(w)};h.prototype.bind=function(w){v||(v=!0,h.prototype._propagateFrom=m.propagateFromFunction(),h.prototype._boundValue=m.boundValueFunction());var E=p(w),O=new h(d);O._propagateFrom(this,1);var k=this._target();if(O._setBoundTo(E),E instanceof h){var P={promiseRejectionQueued:!1,promise:O,target:k,bindingPromise:E};k._then(d,_,void 0,O,P),E._then(T,x,void 0,O,P),O._setOnCancel(E)}else O._resolveCallback(k);return O},h.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},h.prototype._isBound=function(){return(2097152&this._bitField)==2097152},h.bind=function(w,E){return h.resolve(E).bind(w)}}},{}],4:[function(s,l,c){var h;typeof Promise<"u"&&(h=Promise);var d=s("./promise")();d.noConflict=function(){try{Promise===d&&(Promise=h)}catch{}return d},l.exports=d},{"./promise":22}],5:[function(s,l,c){var h=Object.create;if(h){var d=h(null),p=h(null);d[" size"]=p[" size"]=0}l.exports=function(m){var v=s("./util"),y=v.canEvaluate;function _(w){return function(E,O){var k;if(E!=null&&(k=E[O]),typeof k!="function"){var P="Object "+v.classString(E)+" has no method '"+v.toString(O)+"'";throw new m.TypeError(P)}return k}(w,this.pop()).apply(w,this)}function T(w){return w[this]}function x(w){var E=+this;return E<0&&(E=Math.max(0,E+w.length)),w[E]}v.isIdentifier,m.prototype.call=function(w){var E=[].slice.call(arguments,1);return E.push(w),this._then(_,void 0,void 0,E,void 0)},m.prototype.get=function(w){var E;if(typeof w=="number")E=x;else if(y){var O=(void 0)(w);E=O!==null?O:T}else E=T;return this._then(E,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(s,l,c){l.exports=function(h,d,p,m){var v=s("./util"),y=v.tryCatch,_=v.errorObj,T=h._async;h.prototype.break=h.prototype.cancel=function(){if(!m.cancellation())return this._warn("cancellation is disabled");for(var x=this,w=x;x._isCancellable();){if(!x._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var E=x._cancellationParent;if(E==null||!E._isCancellable()){x._isFollowing()?x._followee().cancel():x._cancelBranched();break}x._isFollowing()&&x._followee().cancel(),x._setWillBeCancelled(),w=x,x=E}},h.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},h.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},h.prototype._cancelBy=function(x){return x===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},h.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},h.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),T.invoke(this._cancelPromises,this,void 0))},h.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},h.prototype._unsetOnCancel=function(){this._onCancelField=void 0},h.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},h.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},h.prototype._doInvokeOnCancel=function(x,w){if(v.isArray(x))for(var E=0;E=0)return p[y]}return h.prototype._promiseCreated=function(){},h.prototype._pushContext=function(){},h.prototype._popContext=function(){return null},h._peekContext=h.prototype._peekContext=function(){},m.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},m.prototype._popContext=function(){if(this._trace!==void 0){var y=p.pop(),_=y._promiseCreated;return y._promiseCreated=null,_}return null},m.CapturedTrace=null,m.create=function(){if(d)return new m},m.deactivateLongStackTraces=function(){},m.activateLongStackTraces=function(){var y=h.prototype._pushContext,_=h.prototype._popContext,T=h._peekContext,x=h.prototype._peekContext,w=h.prototype._promiseCreated;m.deactivateLongStackTraces=function(){h.prototype._pushContext=y,h.prototype._popContext=_,h._peekContext=T,h.prototype._peekContext=x,h.prototype._promiseCreated=w,d=!1},d=!0,h.prototype._pushContext=m.prototype._pushContext,h.prototype._popContext=m.prototype._popContext,h._peekContext=h.prototype._peekContext=v,h.prototype._promiseCreated=function(){var E=this._peekContext();E&&E._promiseCreated==null&&(E._promiseCreated=this)}},m}},{}],9:[function(s,l,c){l.exports=function(h,d){var p,m,v,y=h._getDomain,_=h._async,T=s("./errors").Warning,x=s("./util"),w=x.canAttachTrace,E=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,O=/\((?:timers\.js):\d+:\d+\)/,k=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,P=null,A=null,j=!1,B=x.env("BLUEBIRD_DEBUG")!=0,N=!(x.env("BLUEBIRD_WARNINGS")==0||!B&&!x.env("BLUEBIRD_WARNINGS")),V=!(x.env("BLUEBIRD_LONG_STACK_TRACES")==0||!B&&!x.env("BLUEBIRD_LONG_STACK_TRACES")),Y=x.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(N||!!x.env("BLUEBIRD_W_FORGOTTEN_RETURN"));h.prototype.suppressUnhandledRejections=function(){var dt=this._target();dt._bitField=-1048577&dt._bitField|524288},h.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var dt=this;setTimeout(function(){dt._notifyUnhandledRejection()},1)}},h.prototype._notifyUnhandledRejectionIsHandled=function(){bt("rejectionHandled",p,void 0,this)},h.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},h.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},h.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var dt=this._settledValue();this._setUnhandledRejectionIsNotified(),bt("unhandledRejection",m,dt,this)}},h.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},h.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},h.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},h.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},h.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},h.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},h.prototype._warn=function(dt,pt,xt){return z(dt,pt,xt||this)},h.onPossiblyUnhandledRejection=function(dt){var pt=y();m=typeof dt=="function"?pt===null?dt:x.domainBind(pt,dt):void 0},h.onUnhandledRejectionHandled=function(dt){var pt=y();p=typeof dt=="function"?pt===null?dt:x.domainBind(pt,dt):void 0};var nt=function(){};h.longStackTraces=function(){if(_.haveItemsQueued()&&!jt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);if(!jt.longStackTraces&&ft()){var dt=h.prototype._captureStackTrace,pt=h.prototype._attachExtraTrace;jt.longStackTraces=!0,nt=function(){if(_.haveItemsQueued()&&!jt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);h.prototype._captureStackTrace=dt,h.prototype._attachExtraTrace=pt,d.deactivateLongStackTraces(),_.enableTrampoline(),jt.longStackTraces=!1},h.prototype._captureStackTrace=M,h.prototype._attachExtraTrace=R,d.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},h.hasLongStackTraces=function(){return jt.longStackTraces&&ft()};var K=function(){try{if(typeof CustomEvent=="function"){var dt=new CustomEvent("CustomEvent");return x.global.dispatchEvent(dt),function(pt,xt){var yt=new CustomEvent(pt.toLowerCase(),{detail:xt,cancelable:!0});return!x.global.dispatchEvent(yt)}}return typeof Event=="function"?(dt=new Event("CustomEvent"),x.global.dispatchEvent(dt),function(pt,xt){var yt=new Event(pt.toLowerCase(),{cancelable:!0});return yt.detail=xt,!x.global.dispatchEvent(yt)}):((dt=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),x.global.dispatchEvent(dt),function(pt,xt){var yt=document.createEvent("CustomEvent");return yt.initCustomEvent(pt.toLowerCase(),!1,!0,xt),!x.global.dispatchEvent(yt)})}catch{}return function(){return!1}}(),J=x.isNode?function(){return r.emit.apply(r,arguments)}:x.global?function(dt){var pt="on"+dt.toLowerCase(),xt=x.global[pt];return!!xt&&(xt.apply(x.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function et(dt,pt){return{promise:pt}}var ct={promiseCreated:et,promiseFulfilled:et,promiseRejected:et,promiseResolved:et,promiseCancelled:et,promiseChained:function(dt,pt,xt){return{promise:pt,child:xt}},warning:function(dt,pt){return{warning:pt}},unhandledRejection:function(dt,pt,xt){return{reason:pt,promise:xt}},rejectionHandled:et},G=function(dt){var pt=!1;try{pt=J.apply(null,arguments)}catch(yt){_.throwLater(yt),pt=!0}var xt=!1;try{xt=K(dt,ct[dt].apply(null,arguments))}catch(yt){_.throwLater(yt),xt=!0}return xt||pt};function $(){return!1}function I(dt,pt,xt){var yt=this;try{dt(pt,xt,function(Et){if(typeof Et!="function")throw new TypeError("onCancel must be a function, got: "+x.toString(Et));yt._attachCancellationCallback(Et)})}catch(Et){return Et}}function H(dt){if(!this._isCancellable())return this;var pt=this._onCancel();pt!==void 0?x.isArray(pt)?pt.push(dt):this._setOnCancel([pt,dt]):this._setOnCancel(dt)}function it(){return this._onCancelField}function W(dt){this._onCancelField=dt}function Q(){this._cancellationParent=void 0,this._onCancelField=void 0}function tt(dt,pt){if(1&pt){this._cancellationParent=dt;var xt=dt._branchesRemainingToCancel;xt===void 0&&(xt=0),dt._branchesRemainingToCancel=xt+1}2&pt&&dt._isBound()&&this._setBoundTo(dt._boundTo)}h.config=function(dt){if("longStackTraces"in(dt=Object(dt))&&(dt.longStackTraces?h.longStackTraces():!dt.longStackTraces&&h.hasLongStackTraces()&&nt()),"warnings"in dt){var pt=dt.warnings;jt.warnings=!!pt,Y=jt.warnings,x.isObject(pt)&&"wForgottenReturn"in pt&&(Y=!!pt.wForgottenReturn)}if("cancellation"in dt&&dt.cancellation&&!jt.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");h.prototype._clearCancellationData=Q,h.prototype._propagateFrom=tt,h.prototype._onCancel=it,h.prototype._setOnCancel=W,h.prototype._attachCancellationCallback=H,h.prototype._execute=I,rt=tt,jt.cancellation=!0}return"monitoring"in dt&&(dt.monitoring&&!jt.monitoring?(jt.monitoring=!0,h.prototype._fireEvent=G):!dt.monitoring&&jt.monitoring&&(jt.monitoring=!1,h.prototype._fireEvent=$)),h},h.prototype._fireEvent=$,h.prototype._execute=function(dt,pt,xt){try{dt(pt,xt)}catch(yt){return yt}},h.prototype._onCancel=function(){},h.prototype._setOnCancel=function(dt){},h.prototype._attachCancellationCallback=function(dt){},h.prototype._captureStackTrace=function(){},h.prototype._attachExtraTrace=function(){},h.prototype._clearCancellationData=function(){},h.prototype._propagateFrom=function(dt,pt){};var rt=function(dt,pt){2&pt&&dt._isBound()&&this._setBoundTo(dt._boundTo)};function mt(){var dt=this._boundTo;return dt!==void 0&&dt instanceof h?dt.isFulfilled()?dt.value():void 0:dt}function M(){this._trace=new Mt(this._peekContext())}function R(dt,pt){if(w(dt)){var xt=this._trace;if(xt!==void 0&&pt&&(xt=xt._parent),xt!==void 0)xt.attachExtraTrace(dt);else if(!dt.__stackCleaned__){var yt=st(dt);x.notEnumerableProp(dt,"stack",yt.message+` +`+yt.stack.join(` +`)),x.notEnumerableProp(dt,"__stackCleaned__",!0)}}}function z(dt,pt,xt){if(jt.warnings){var yt,Et=new T(dt);if(pt)xt._attachExtraTrace(Et);else if(jt.longStackTraces&&(yt=h._peekContext()))yt.attachExtraTrace(Et);else{var At=st(Et);Et.stack=At.message+` +`+At.stack.join(` +`)}G("warning",Et)||ht(Et,"",!0)}}function at(dt){for(var pt=[],xt=0;xt0?function(yt){for(var Et=yt.stack.replace(/\s+$/g,"").split(` +`),At=0;At0&&yt.name!="SyntaxError"&&(Et=Et.slice(At)),Et}(dt):[" (No stack trace)"],{message:xt,stack:dt.name=="SyntaxError"?pt:at(pt)}}function ht(dt,pt,xt){if(typeof console<"u"){var yt;if(x.isObject(dt)){var Et=dt.stack;yt=pt+A(Et,dt)}else yt=pt+String(dt);typeof v=="function"?v(yt,xt):typeof console.log!="function"&&typeof console.log!="object"||console.log(yt)}}function bt(dt,pt,xt,yt){var Et=!1;try{typeof pt=="function"&&(Et=!0,dt==="rejectionHandled"?pt(yt):pt(xt,yt))}catch(At){_.throwLater(At)}dt==="unhandledRejection"?G(dt,xt,yt)||Et||ht(xt,"Unhandled rejection "):G(dt,yt)}function It(dt){var pt;if(typeof dt=="function")pt="[function "+(dt.name||"anonymous")+"]";else{if(pt=dt&&typeof dt.toString=="function"?dt.toString():x.toString(dt),/\[object [a-zA-Z0-9$_]+\]/.test(pt))try{pt=JSON.stringify(dt)}catch{}pt.length===0&&(pt="(empty array)")}return"(<"+function(xt){return xt.length<41?xt:xt.substr(0,38)+"..."}(pt)+">, no stack trace)"}function ft(){return typeof Lt=="function"}var vt=function(){return!1},_t=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Ct(dt){var pt=dt.match(_t);if(pt)return{fileName:pt[1],line:parseInt(pt[2],10)}}function Mt(dt){this._parent=dt,this._promisesCreated=0;var pt=this._length=1+(dt===void 0?0:dt._length);Lt(this,Mt),pt>32&&this.uncycle()}x.inherits(Mt,Error),d.CapturedTrace=Mt,Mt.prototype.uncycle=function(){var dt=this._length;if(!(dt<2)){for(var pt=[],xt={},yt=0,Et=this;Et!==void 0;++yt)pt.push(Et),Et=Et._parent;for(yt=(dt=this._length=yt)-1;yt>=0;--yt){var At=pt[yt].stack;xt[At]===void 0&&(xt[At]=yt)}for(yt=0;yt0&&(pt[Bt-1]._parent=void 0,pt[Bt-1]._length=1),pt[yt]._parent=void 0,pt[yt]._length=1;var ie=yt>0?pt[yt-1]:this;Bt=0;--ee)pt[ee]._length=ae,ae++;return}}}},Mt.prototype.attachExtraTrace=function(dt){if(!dt.__stackCleaned__){this.uncycle();for(var pt=st(dt),xt=pt.message,yt=[pt.stack],Et=this;Et!==void 0;)yt.push(at(Et.stack.split(` +`))),Et=Et._parent;(function(At){for(var Bt=At[0],ie=1;ie=0;--On)if(ae[On]===Ve){Fe=On;break}for(On=Fe;On>=0;--On){var gr=ae[On];if(Bt[ee]!==gr)break;Bt.pop(),ee--}Bt=ae}})(yt),function(At){for(var Bt=0;Bt=0)return P=/@/,A=pt,j=!0,function(At){At.stack=new Error().stack};try{throw new Error}catch(At){yt="stack"in At}return"stack"in Et||!yt||typeof Error.stackTraceLimit!="number"?(A=function(At,Bt){return typeof At=="string"?At:typeof Bt!="object"&&typeof Bt!="function"||Bt.name===void 0||Bt.message===void 0?It(Bt):Bt.toString()},null):(P=dt,A=pt,function(At){Error.stackTraceLimit+=6;try{throw new Error}catch(Bt){At.stack=Bt.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(v=function(dt){console.warn(dt)},x.isNode&&r.stderr.isTTY?v=function(dt,pt){var xt=pt?"\x1B[33m":"\x1B[31m";console.warn(xt+dt+`\x1B[0m +`)}:x.isNode||typeof new Error().stack!="string"||(v=function(dt,pt){console.warn("%c"+dt,pt?"color: darkorange":"color: red")}));var jt={warnings:N,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&h.longStackTraces(),{longStackTraces:function(){return jt.longStackTraces},warnings:function(){return jt.warnings},cancellation:function(){return jt.cancellation},monitoring:function(){return jt.monitoring},propagateFromFunction:function(){return rt},boundValueFunction:function(){return mt},checkForgottenReturns:function(dt,pt,xt,yt,Et){if(dt===void 0&&pt!==null&&Y){if(Et!==void 0&&Et._returnedNonUndefined()||!(65535&yt._bitField))return;xt&&(xt+=" ");var At="",Bt="";if(pt._trace){for(var ie=pt._trace.stack.split(` +`),ae=at(ie),ee=ae.length-1;ee>=0;--ee){var Ve=ae[ee];if(!O.test(Ve)){var Fe=Ve.match(k);Fe&&(At="at "+Fe[1]+":"+Fe[2]+":"+Fe[3]+" ");break}}if(ae.length>0){var On=ae[0];for(ee=0;ee0&&(Bt=` +`+ie[ee-1]);break}}}var gr="a promise was created in a "+xt+"handler "+At+"but was not returned from it, see http://goo.gl/rRqMUw"+Bt;yt._warn(gr,!0,pt)}},setBounds:function(dt,pt){if(ft()){for(var xt,yt,Et=dt.stack.split(` +`),At=pt.stack.split(` +`),Bt=-1,ie=-1,ae=0;ae=ie||(vt=function(Ve){if(E.test(Ve))return!0;var Fe=Ct(Ve);return!!(Fe&&Fe.fileName===xt&&Bt<=Fe.line&&Fe.line<=ie)})}},warn:z,deprecated:function(dt,pt){var xt=dt+" is deprecated and will be removed in a future version.";return pt&&(xt+=" Use "+pt+" instead."),z(xt)},CapturedTrace:Mt,fireDomEvent:K,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(s,l,c){l.exports=function(h){function d(){return this.value}function p(){throw this.reason}h.prototype.return=h.prototype.thenReturn=function(m){return m instanceof h&&m.suppressUnhandledRejections(),this._then(d,void 0,void 0,{value:m},void 0)},h.prototype.throw=h.prototype.thenThrow=function(m){return this._then(p,void 0,void 0,{reason:m},void 0)},h.prototype.catchThrow=function(m){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:m},void 0);var v=arguments[1];return this.caught(m,function(){throw v})},h.prototype.catchReturn=function(m){if(arguments.length<=1)return m instanceof h&&m.suppressUnhandledRejections(),this._then(void 0,d,void 0,{value:m},void 0);var v=arguments[1];return v instanceof h&&v.suppressUnhandledRejections(),this.caught(m,function(){return v})}}},{}],11:[function(s,l,c){l.exports=function(h,d){var p=h.reduce,m=h.all;function v(){return m(this)}h.prototype.each=function(y){return p(this,y,d,0)._then(v,void 0,void 0,this,void 0)},h.prototype.mapSeries=function(y){return p(this,y,d,d)},h.each=function(y,_){return p(y,_,d,0)._then(v,void 0,void 0,y,void 0)},h.mapSeries=function(y,_){return p(y,_,d,d)}}},{}],12:[function(s,l,c){var h,d,p=s("./es5"),m=p.freeze,v=s("./util"),y=v.inherits,_=v.notEnumerableProp;function T(N,V){function Y(nt){if(!(this instanceof Y))return new Y(nt);_(this,"message",typeof nt=="string"?nt:V),_(this,"name",N),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return y(Y,Error),Y}var x=T("Warning","warning"),w=T("CancellationError","cancellation error"),E=T("TimeoutError","timeout error"),O=T("AggregateError","aggregate error");try{h=TypeError,d=RangeError}catch{h=T("TypeError","type error"),d=T("RangeError","range error")}for(var k="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),P=0;P1?P.cancelPromise._reject(A):P.cancelPromise._cancel(),P.cancelPromise=null,!0)}function E(){return k.call(this,this.promise._target()._settledValue())}function O(P){if(!w(this,P))return y.e=P,y}function k(P){var A=this.promise,j=this.handler;if(!this.called){this.called=!0;var B=this.isFinallyHandler()?j.call(A._boundValue()):j.call(A._boundValue(),P);if(B===p)return B;if(B!==void 0){A._setReturnedNonUndefined();var N=d(B,A);if(N instanceof h){if(this.cancelPromise!=null){if(N._isCancelled()){var V=new v("late cancellation observer");return A._attachExtraTrace(V),y.e=V,y}N.isPending()&&N._attachCancellationCallback(new x(this))}return N._then(E,O,void 0,this,void 0)}}}return A.isRejected()?(w(this),y.e=P,y):(w(this),P)}return T.prototype.isFinallyHandler=function(){return this.type===0},x.prototype._resultCancelled=function(){w(this.finallyHandler)},h.prototype._passThrough=function(P,A,j,B){return typeof P!="function"?this.then():this._then(j,B,void 0,new T(this,A,P),void 0)},h.prototype.lastly=h.prototype.finally=function(P){return this._passThrough(P,0,k,k)},h.prototype.tap=function(P){return this._passThrough(P,1,k)},h.prototype.tapCatch=function(P){var A=arguments.length;if(A===1)return this._passThrough(P,1,void 0,k);var j,B=new Array(A-1),N=0;for(j=0;j0&&typeof arguments[x]=="function"&&(T=arguments[x]);var w=[].slice.call(arguments);T&&w.pop();var E=new d(w).promise();return T!==void 0?E.spread(T):E}}},{"./util":36}],18:[function(s,l,c){l.exports=function(h,d,p,m,v,y){var _=h._getDomain,T=s("./util"),x=T.tryCatch,w=T.errorObj,E=h._async;function O(P,A,j,B){this.constructor$(P),this._promise._captureStackTrace();var N=_();this._callback=N===null?A:T.domainBind(N,A),this._preservedValues=B===v?new Array(this.length()):null,this._limit=j,this._inFlight=0,this._queue=[],E.invoke(this._asyncInit,this,void 0)}function k(P,A,j,B){if(typeof A!="function")return p("expecting a function but got "+T.classString(A));var N=0;if(j!==void 0){if(typeof j!="object"||j===null)return h.reject(new TypeError("options argument must be an object but it is "+T.classString(j)));if(typeof j.concurrency!="number")return h.reject(new TypeError("'concurrency' must be a number but it is "+T.classString(j.concurrency)));N=j.concurrency}return new O(P,A,N=typeof N=="number"&&isFinite(N)&&N>=1?N:0,B).promise()}T.inherits(O,d),O.prototype._asyncInit=function(){this._init$(void 0,-2)},O.prototype._init=function(){},O.prototype._promiseFulfilled=function(P,A){var j=this._values,B=this.length(),N=this._preservedValues,V=this._limit;if(A<0){if(j[A=-1*A-1]=P,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return j[A]=P,this._queue.push(A),!1;N!==null&&(N[A]=P);var Y=this._promise,nt=this._callback,K=Y._boundValue();Y._pushContext();var J=x(nt).call(K,P,A,B),et=Y._popContext();if(y.checkForgottenReturns(J,et,N!==null?"Promise.filter":"Promise.map",Y),J===w)return this._reject(J.e),!0;var ct=m(J,this._promise);if(ct instanceof h){var G=(ct=ct._target())._bitField;if(!(50397184&G))return V>=1&&this._inFlight++,j[A]=ct,ct._proxy(this,-1*(A+1)),!1;if(!(33554432&G))return 16777216&G?(this._reject(ct._reason()),!0):(this._cancel(),!0);J=ct._value()}j[A]=J}return++this._totalResolved>=B&&(N!==null?this._filter(j,N):this._resolve(j),!0)},O.prototype._drainQueue=function(){for(var P=this._queue,A=this._limit,j=this._values;P.length>0&&this._inFlight1){v.deprecated("calling Promise.try with more than 1 argument");var E=arguments[1],O=arguments[2];x=y.isArray(E)?_(T).apply(O,E):_(T).call(O,E)}else x=_(T)();var k=w._popContext();return v.checkForgottenReturns(x,k,"Promise.try",w),w._resolveFromSyncValue(x),w},h.prototype._resolveFromSyncValue=function(T){T===y.errorObj?this._rejectCallback(T.e,!1):this._resolveCallback(T,!0)}}},{"./util":36}],20:[function(s,l,c){var h=s("./util"),d=h.maybeWrapAsError,p=s("./errors").OperationalError,m=s("./es5"),v=/^(?:name|message|stack|cause)$/;function y(_){var T;if(function(O){return O instanceof Error&&m.getPrototypeOf(O)===Error.prototype}(_)){(T=new p(_)).name=_.name,T.message=_.message,T.stack=_.stack;for(var x=m.keys(_),w=0;w1){var tt,rt=new Array(Q-1),mt=0;for(tt=0;tt0&&typeof W!="function"&&typeof Q!="function"){var tt=".then() only accepts functions but was passed: "+_.classString(W);arguments.length>1&&(tt+=", "+_.classString(Q)),this._warn(tt)}return this._then(W,Q,void 0,void 0,void 0)},$.prototype.done=function(W,Q){this._then(W,Q,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(W){return typeof W!="function"?p("expecting a function but got "+_.classString(W)):this.all()._then(W,void 0,void 0,A,void 0)},$.prototype.toJSON=function(){var W={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(W.fulfillmentValue=this.value(),W.isFulfilled=!0):this.isRejected()&&(W.rejectionReason=this.reason(),W.isRejected=!0),W},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new N(this).promise()},$.prototype.error=function(W){return this.caught(_.originatesFromRejection,W)},$.getNewLibraryCopy=l.exports,$.is=function(W){return W instanceof $},$.fromNode=$.fromCallback=function(W){var Q=new $(P);Q._captureStackTrace();var tt=arguments.length>1&&!!Object(arguments[1]).multiArgs,rt=G(W)(et(Q,tt));return rt===ct&&Q._rejectCallback(rt.e,!0),Q._isFateSealed()||Q._setAsyncGuaranteed(),Q},$.all=function(W){return new N(W).promise()},$.cast=function(W){var Q=B(W);return Q instanceof $||((Q=new $(P))._captureStackTrace(),Q._setFulfilled(),Q._rejectionHandler0=W),Q},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(W){var Q=new $(P);return Q._captureStackTrace(),Q._rejectCallback(W,!0),Q},$.setScheduler=function(W){if(typeof W!="function")throw new O("expecting a function but got "+_.classString(W));return w.setScheduler(W)},$.prototype._then=function(W,Q,tt,rt,mt){var M=mt!==void 0,R=M?mt:new $(P),z=this._target(),at=z._bitField;M||(R._propagateFrom(this,3),R._captureStackTrace(),rt===void 0&&2097152&this._bitField&&(rt=50397184&at?this._boundValue():z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var st=v();if(50397184&at){var ht,bt,It=z._settlePromiseCtx;33554432&at?(bt=z._rejectionHandler0,ht=W):16777216&at?(bt=z._fulfillmentHandler0,ht=Q,z._unsetRejectionIsUnhandled()):(It=z._settlePromiseLateCancellationObserver,bt=new k("late cancellation observer"),z._attachExtraTrace(bt),ht=Q),w.invoke(It,z,{handler:st===null?ht:typeof ht=="function"&&_.domainBind(st,ht),promise:R,receiver:rt,value:bt})}else z._addCallbacks(W,Q,R,rt,st);return R},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(W){var Q=W===0?this._receiver0:this[4*W-4+3];if(Q!==y)return Q===void 0&&this._isBound()?this._boundValue():Q},$.prototype._promiseAt=function(W){return this[4*W-4+2]},$.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},$.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(W){W._bitField;var Q=W._fulfillmentHandler0,tt=W._rejectionHandler0,rt=W._promise0,mt=W._receiverAt(0);mt===void 0&&(mt=y),this._addCallbacks(Q,tt,rt,mt,null)},$.prototype._migrateCallbackAt=function(W,Q){var tt=W._fulfillmentHandlerAt(Q),rt=W._rejectionHandlerAt(Q),mt=W._promiseAt(Q),M=W._receiverAt(Q);M===void 0&&(M=y),this._addCallbacks(tt,rt,mt,M,null)},$.prototype._addCallbacks=function(W,Q,tt,rt,mt){var M=this._length();if(M>=65531&&(M=0,this._setLength(0)),M===0)this._promise0=tt,this._receiver0=rt,typeof W=="function"&&(this._fulfillmentHandler0=mt===null?W:_.domainBind(mt,W)),typeof Q=="function"&&(this._rejectionHandler0=mt===null?Q:_.domainBind(mt,Q));else{var R=4*M-4;this[R+2]=tt,this[R+3]=rt,typeof W=="function"&&(this[R+0]=mt===null?W:_.domainBind(mt,W)),typeof Q=="function"&&(this[R+1]=mt===null?Q:_.domainBind(mt,Q))}return this._setLength(M+1),M},$.prototype._proxy=function(W,Q){this._addCallbacks(void 0,void 0,Q,W,null)},$.prototype._resolveCallback=function(W,Q){if(!(117506048&this._bitField)){if(W===this)return this._rejectCallback(h(),!1);var tt=B(W,this);if(!(tt instanceof $))return this._fulfill(W);Q&&this._propagateFrom(tt,2);var rt=tt._target();if(rt!==this){var mt=rt._bitField;if(50397184&mt)if(33554432&mt)this._fulfill(rt._value());else if(16777216&mt)this._reject(rt._reason());else{var z=new k("late cancellation observer");rt._attachExtraTrace(z),this._reject(z)}else{var M=this._length();M>0&&rt._migrateCallback0(this);for(var R=1;R>>16)){if(W===this){var tt=h();return this._attachExtraTrace(tt),this._reject(tt)}this._setFulfilled(),this._rejectionHandler0=W,(65535&Q)>0&&(134217728&Q?this._settlePromises():w.settlePromises(this))}},$.prototype._reject=function(W){var Q=this._bitField;if(!((117506048&Q)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return w.fatalError(W,_.isNode);(65535&Q)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(W,Q){for(var tt=1;tt0){if(16842752&W){var tt=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,tt,W),this._rejectPromises(Q,tt)}else{var rt=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,rt,W),this._fulfillPromises(Q,rt)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var W=this._bitField;return 33554432&W?this._rejectionHandler0:16777216&W?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return nt.deprecated("Promise.defer","new Promise"),{promise:new $(P),resolve:I,reject:H}},_.notEnumerableProp($,"_makeSelfResolutionError",h),s("./method")($,P,B,p,nt),s("./bind")($,P,B,nt),s("./cancel")($,N,p,nt),s("./direct_resolve")($),s("./synchronous_inspection")($),s("./join")($,N,B,P,w,v),$.Promise=$,$.version="3.5.1",s("./map.js")($,N,p,B,P,nt),s("./call_get.js")($),s("./using.js")($,p,B,Y,P,nt),s("./timers.js")($,P,nt),s("./generators.js")($,p,P,B,m,nt),s("./nodeify.js")($),s("./promisify.js")($,P),s("./props.js")($,N,B,p),s("./race.js")($,P,B,p),s("./reduce.js")($,N,p,B,P,nt),s("./settle.js")($,N,nt),s("./some.js")($,N,p),s("./filter.js")($,P),s("./each.js")($,P),s("./any.js")($),_.toFastProperties($),_.toFastProperties($.prototype),it({a:1}),it({b:2}),it({c:3}),it(1),it(function(){}),it(void 0),it(!1),it(new $(P)),nt.setBounds(x.firstLineError,_.lastLineError),$}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,l,c){l.exports=function(h,d,p,m,v){var y=s("./util");function _(T){var x=this._promise=new h(d);T instanceof h&&x._propagateFrom(T,3),x._setOnCancel(this),this._values=T,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return y.isArray,y.inherits(_,v),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function T(x,w){var E=p(this._values,this._promise);if(E instanceof h){var O=(E=E._target())._bitField;if(this._values=E,(50397184&O)==0)return this._promise._setAsyncGuaranteed(),E._then(T,this._reject,void 0,this,w);if(!(33554432&O))return 16777216&O?this._reject(E._reason()):this._cancel();E=E._value()}if((E=y.asArray(E))!==null)E.length!==0?this._iterate(E):w===-5?this._resolveEmptyArray():this._resolve(function(P){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var k=m("expecting an array or an iterable object but got "+y.classString(E)).reason();this._promise._rejectCallback(k,!1)}},_.prototype._iterate=function(T){var x=this.getActualLength(T.length);this._length=x,this._values=this.shouldCopyValues()?new Array(x):this._values;for(var w=this._promise,E=!1,O=null,k=0;k=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(T){return this._totalResolved++,this._reject(T),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var T=this._values;if(this._cancel(),T instanceof h)T.cancel();else for(var x=0;x=this._length){var P;if(this._isMap)P=function(N){for(var V=new v,Y=N.length/2|0,nt=0;nt>1},h.prototype.props=function(){return E(this)},h.props=function(O){return E(O)}}},{"./es5":13,"./util":36}],26:[function(s,l,c){function h(d){this._capacity=d,this._length=0,this._front=0}h.prototype._willBeOverCapacity=function(d){return this._capacity"u"){var m=i.setImmediate,v=r.nextTick;h=d.isRecentNode?function(_){m.call(i,_)}:function(_){v.call(r,_)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var y=p.resolve();h=function(_){y.then(_)}}else h=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available + + See http://goo.gl/MqrFmX +`)}:function(){var _=document.createElement("div"),T={attributes:!0},x=!1,w=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),x=!1}).observe(w,T),function(E){var O=new MutationObserver(function(){O.disconnect(),E()});O.observe(_,T),x||(x=!0,w.classList.toggle("foo"))}}();l.exports=h},{"./util":36}],30:[function(s,l,c){l.exports=function(h,d,p){var m=h.PromiseInspection;function v(y){this.constructor$(y)}s("./util").inherits(v,d),v.prototype._promiseResolved=function(y,_){return this._values[y]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseFulfilled=function(y,_){var T=new m;return T._bitField=33554432,T._settledValueField=y,this._promiseResolved(_,T)},v.prototype._promiseRejected=function(y,_){var T=new m;return T._bitField=16777216,T._settledValueField=y,this._promiseResolved(_,T)},h.settle=function(y){return p.deprecated(".settle()",".reflect()"),new v(y).promise()},h.prototype.settle=function(){return h.settle(this)}}},{"./util":36}],31:[function(s,l,c){l.exports=function(h,d,p){var m=s("./util"),v=s("./errors").RangeError,y=s("./errors").AggregateError,_=m.isArray,T={};function x(E){this.constructor$(E),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(E,O){if((0|O)!==O||O<0)return p(`expecting a positive integer + + See http://goo.gl/MqrFmX +`);var k=new x(E),P=k.promise();return k.setHowMany(O),k.init(),P}m.inherits(x,d),x.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var E=_(this._values);!this._isResolved()&&E&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},x.prototype.init=function(){this._initialized=!0,this._init()},x.prototype.setUnwrap=function(){this._unwrap=!0},x.prototype.howMany=function(){return this._howMany},x.prototype.setHowMany=function(E){this._howMany=E},x.prototype._promiseFulfilled=function(E){return this._addFulfilled(E),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},x.prototype._promiseRejected=function(E){return this._addRejected(E),this._checkOutcome()},x.prototype._promiseCancelled=function(){return this._values instanceof h||this._values==null?this._cancel():(this._addRejected(T),this._checkOutcome())},x.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var E=new y,O=this.length();O0?this._reject(E):this._cancel(),!0}return!1},x.prototype._fulfilled=function(){return this._totalResolved},x.prototype._rejected=function(){return this._values.length-this.length()},x.prototype._addRejected=function(E){this._values.push(E)},x.prototype._addFulfilled=function(E){this._values[this._totalResolved++]=E},x.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},x.prototype._getRangeError=function(E){var O="Input array must contain at least "+this._howMany+" items but contains only "+E+" items";return new v(O)},x.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},h.some=function(E,O){return w(E,O)},h.prototype.some=function(E){return w(this,E)},h._SomePromiseArray=x}},{"./errors":12,"./util":36}],32:[function(s,l,c){l.exports=function(h){function d(x){x!==void 0?(x=x._target(),this._bitField=x._bitField,this._settledValueField=x._isFateSealed()?x._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}d.prototype._settledValue=function(){return this._settledValueField};var p=d.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},m=d.prototype.error=d.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},v=d.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},y=d.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=d.prototype.isPending=function(){return(50397184&this._bitField)==0},T=d.prototype.isResolved=function(){return(50331648&this._bitField)!=0};d.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},h.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},h.prototype._isCancelled=function(){return this._target().__isCancelled()},h.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},h.prototype.isPending=function(){return _.call(this._target())},h.prototype.isRejected=function(){return y.call(this._target())},h.prototype.isFulfilled=function(){return v.call(this._target())},h.prototype.isResolved=function(){return T.call(this._target())},h.prototype.value=function(){return p.call(this._target())},h.prototype.reason=function(){var x=this._target();return x._unsetRejectionIsUnhandled(),m.call(x)},h.prototype._value=function(){return this._settledValue()},h.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},h.PromiseInspection=d}},{}],33:[function(s,l,c){l.exports=function(h,d){var p=s("./util"),m=p.errorObj,v=p.isObject,y={}.hasOwnProperty;return function(_,T){if(v(_)){if(_ instanceof h)return _;var x=function(E){try{return function(O){return O.then}(E)}catch(O){return m.e=O,m}}(_);if(x===m){T&&T._pushContext();var w=h.reject(x.e);return T&&T._popContext(),w}if(typeof x=="function")return function(E){try{return y.call(E,"_promise0")}catch{return!1}}(_)?(w=new h(d),_._then(w._fulfill,w._reject,void 0,w,null),w):function(E,O,k){var P=new h(d),A=P;k&&k._pushContext(),P._captureStackTrace(),k&&k._popContext();var j=!0,B=p.tryCatch(O).call(E,function(N){P&&(P._resolveCallback(N),P=null)},function(N){P&&(P._rejectCallback(N,j,!0),P=null)});return j=!1,P&&B===m&&(P._rejectCallback(B.e,!0,!0),P=null),A}(_,x,T)}return _}}},{"./util":36}],34:[function(s,l,c){l.exports=function(h,d,p){var m=s("./util"),v=h.TimeoutError;function y(E){this.handle=E}y.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(E){return T(+this).thenReturn(E)},T=h.delay=function(E,O){var k,P;return O!==void 0?(k=h.resolve(O)._then(_,null,null,E,void 0),p.cancellation()&&O instanceof h&&k._setOnCancel(O)):(k=new h(d),P=setTimeout(function(){k._fulfill()},+E),p.cancellation()&&k._setOnCancel(new y(P)),k._captureStackTrace()),k._setAsyncGuaranteed(),k};function x(E){return clearTimeout(this.handle),E}function w(E){throw clearTimeout(this.handle),E}h.prototype.delay=function(E){return T(E,this)},h.prototype.timeout=function(E,O){var k,P;E=+E;var A=new y(setTimeout(function(){k.isPending()&&function(j,B,N){var V;V=typeof B!="string"?B instanceof Error?B:new v("operation timed out"):new v(B),m.markAsOriginatingFromRejection(V),j._attachExtraTrace(V),j._reject(V),N!=null&&N.cancel()}(k,O,P)},E));return p.cancellation()?(P=this.then(),(k=P._then(x,w,void 0,A,void 0))._setOnCancel(A)):k=this._then(x,w,void 0,A,void 0),k}}},{"./util":36}],35:[function(s,l,c){l.exports=function(h,d,p,m,v,y){var _=s("./util"),T=s("./errors").TypeError,x=s("./util").inherits,w=_.errorObj,E=_.tryCatch,O={};function k(V){setTimeout(function(){throw V},0)}function P(V,Y){var nt=0,K=V.length,J=new h(v);return function et(){if(nt>=K)return J._fulfill();var ct=function(G){var $=p(G);return $!==G&&typeof G._isDisposable=="function"&&typeof G._getDisposer=="function"&&G._isDisposable()&&$._setDisposable(G._getDisposer()),$}(V[nt++]);if(ct instanceof h&&ct._isDisposable()){try{ct=p(ct._getDisposer().tryDispose(Y),V.promise)}catch(G){return k(G)}if(ct instanceof h)return ct._then(et,k,null,null,null)}et()}(),J}function A(V,Y,nt){this._data=V,this._promise=Y,this._context=nt}function j(V,Y,nt){this.constructor$(V,Y,nt)}function B(V){return A.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function N(V){this.length=V,this.promise=null,this[V-1]=null}A.prototype.data=function(){return this._data},A.prototype.promise=function(){return this._promise},A.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():O},A.prototype.tryDispose=function(V){var Y=this.resource(),nt=this._context;nt!==void 0&&nt._pushContext();var K=Y!==O?this.doDispose(Y,V):null;return nt!==void 0&&nt._popContext(),this._promise._unsetDisposable(),this._data=null,K},A.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},x(j,A),j.prototype.doDispose=function(V,Y){return this.data().call(V,V,Y)},N.prototype._resultCancelled=function(){for(var V=this.length,Y=0;Y0},h.prototype._getDisposer=function(){return this._disposer},h.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},h.prototype.disposer=function(V){if(typeof V=="function")return new j(V,this,m());throw new T}}},{"./errors":12,"./util":36}],36:[function(s,l,c){var h,d=s("./es5"),p=typeof navigator>"u",m={e:{}},v=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function y(){try{var K=h;return h=null,K.apply(this,arguments)}catch(J){return m.e=J,m}}function _(K){return K==null||K===!0||K===!1||typeof K=="string"||typeof K=="number"}function T(K,J,et){if(_(K))return K;var ct={value:et,configurable:!0,enumerable:!1,writable:!0};return d.defineProperty(K,J,ct),K}var x=function(){var K=[Array.prototype,Object.prototype,Function.prototype],J=function(G){for(var $=0;$1,ct=J.length>0&&!(J.length===1&&J[0]==="constructor"),G=w.test(K+"")&&d.names(K).length>0;if(et||ct||G)return!0}return!1}catch{return!1}},isIdentifier:function(K){return E.test(K)},inheritedDataKeys:x,getDataPropertyOrDefault:function(K,J,et){if(!d.isES5)return{}.hasOwnProperty.call(K,J)?K[J]:void 0;var ct=Object.getOwnPropertyDescriptor(K,J);return ct!=null?ct.get==null&&ct.set==null?ct.value:et:void 0},thrower:function(K){throw K},isArray:d.isArray,asArray:B,notEnumerableProp:T,isPrimitive:_,isObject:function(K){return typeof K=="function"||typeof K=="object"&&K!==null},isError:k,canEvaluate:p,errorObj:m,tryCatch:function(K){return h=K,y},inherits:function(K,J){var et={}.hasOwnProperty;function ct(){for(var G in this.constructor=K,this.constructor$=J,J.prototype)et.call(J.prototype,G)&&G.charAt(G.length-1)!=="$"&&(this[G+"$"]=J.prototype[G])}return ct.prototype=J.prototype,K.prototype=new ct,K.prototype},withAppended:function(K,J){var et,ct=K.length,G=new Array(ct+1);for(et=0;et10||K[0]>0}(),nt.isNode&&nt.toFastProperties(r);try{throw new Error}catch(K){nt.lastLineError=K}l.exports=nt},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o0?(typeof H=="string"||rt.objectMode||Object.getPrototypeOf(H)===d.prototype||(H=function(mt){return d.from(mt)}(H)),W?rt.endEmitted?I.emit("error",new Error("stream.unshift() after end event")):P(I,rt,H,!0):rt.ended?I.emit("error",new Error("stream.push() after EOF")):(rt.reading=!1,rt.decoder&&!it?(H=rt.decoder.write(H),rt.objectMode||H.length!==0?P(I,rt,H,!1):V(I,rt)):P(I,rt,H,!1))):W||(rt.reading=!1)),function(mt){return!mt.ended&&(mt.needReadable||mt.lengthH.highWaterMark&&(H.highWaterMark=function(it){return it>=A?it=A:(it--,it|=it>>>1,it|=it>>>2,it|=it>>>4,it|=it>>>8,it|=it>>>16,it++),it}(I)),I<=H.length?I:H.ended?H.length:(H.needReadable=!0,0))}function B(I){var H=I._readableState;H.needReadable=!1,H.emittedReadable||(y("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(N,I):N(I))}function N(I){y("emit readable"),I.emit("readable"),J(I)}function V(I,H){H.readingMore||(H.readingMore=!0,o.nextTick(Y,I,H))}function Y(I,H){for(var it=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length=H.length?(it=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):it=function(W,Q,tt){var rt;return Wst.length?st.length:mt;if(ht===st.length?at+=st:at+=st.slice(0,mt),(mt-=ht)==0){ht===st.length?(++z,R.next?M.head=R.next:M.head=M.tail=null):(M.head=R,R.data=st.slice(ht));break}++z}return M.length-=z,at}(W,Q):function(mt,M){var R=d.allocUnsafe(mt),z=M.head,at=1;for(z.data.copy(R),mt-=z.data.length;z=z.next;){var st=z.data,ht=mt>st.length?st.length:mt;if(st.copy(R,R.length-mt,0,ht),(mt-=ht)==0){ht===st.length?(++at,z.next?M.head=z.next:M.head=M.tail=null):(M.head=z,z.data=st.slice(ht));break}++at}return M.length-=at,R}(W,Q),rt}(I,H.buffer,H.decoder),it);var it}function ct(I){var H=I._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(G,H,I))}function G(I,H){I.endEmitted||I.length!==0||(I.endEmitted=!0,H.readable=!1,H.emit("end"))}function $(I,H){for(var it=0,W=I.length;it=H.highWaterMark||H.ended))return y("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?ct(this):B(this),null;if((I=j(I,H))===0&&H.ended)return H.length===0&&ct(this),null;var W,Q=H.needReadable;return y("need readable",Q),(H.length===0||H.length-I0?et(I,H):null)===null?(H.needReadable=!0,I=0):H.length-=I,H.length===0&&(H.ended||(H.needReadable=!0),it!==I&&H.ended&&ct(this)),W!==null&&this.emit("data",W),W},O.prototype._read=function(I){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(I,H){var it=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,y("pipe count=%d opts=%j",W.pipesCount,H);var Q=H&&H.end===!1||I===i.stdout||I===i.stderr?ht:tt;function tt(){y("onend"),I.end()}W.endEmitted?o.nextTick(Q):it.once("end",Q),I.on("unpipe",function bt(It,ft){y("onunpipe"),It===it&&ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,y("cleanup"),I.removeListener("close",at),I.removeListener("finish",st),I.removeListener("drain",rt),I.removeListener("error",z),I.removeListener("unpipe",bt),it.removeListener("end",tt),it.removeListener("end",ht),it.removeListener("data",R),mt=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||rt())});var rt=function(bt){return function(){var It=bt._readableState;y("pipeOnDrain",It.awaitDrain),It.awaitDrain&&It.awaitDrain--,It.awaitDrain===0&&c(bt,"data")&&(It.flowing=!0,J(bt))}}(it);I.on("drain",rt);var mt=!1,M=!1;function R(bt){y("ondata"),M=!1,I.write(bt)!==!1||M||((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&$(W.pipes,I)!==-1)&&!mt&&(y("false write response, pause",it._readableState.awaitDrain),it._readableState.awaitDrain++,M=!0),it.pause())}function z(bt){y("onerror",bt),ht(),I.removeListener("error",z),c(I,"error")===0&&I.emit("error",bt)}function at(){I.removeListener("finish",st),ht()}function st(){y("onfinish"),I.removeListener("close",at),ht()}function ht(){y("unpipe"),it.unpipe(I)}return it.on("data",R),function(bt,It,ft){if(typeof bt.prependListener=="function")return bt.prependListener(It,ft);bt._events&&bt._events[It]?l(bt._events[It])?bt._events[It].unshift(ft):bt._events[It]=[ft,bt._events[It]]:bt.on(It,ft)}(I,"error",z),I.once("close",at),I.once("finish",st),I.emit("pipe",it),W.flowing||(y("pipe resume"),it.resume()),I},O.prototype.unpipe=function(I){var H=this._readableState,it={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return I&&I!==H.pipes?this:(I||(I=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,I&&I.emit("unpipe",this,it),this);if(!I){var W=H.pipes,Q=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var tt=0;tt>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function l(y){var _=this.lastTotal-this.lastNeed,T=function(x,w,E){if((192&w[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&w.length>1){if((192&w[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&w.length>2&&(192&w[2])!=128)return x.lastNeed=2,"�"}}(this,y);return T!==void 0?T:this.lastNeed<=y.length?(y.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,_,0,y.length),void(this.lastNeed-=y.length))}function c(y,_){if((y.length-_)%2==0){var T=y.toString("utf16le",_);if(T){var x=T.charCodeAt(T.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",_,y.length-1)}function h(y){var _=y&&y.length?this.write(y):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,T)}return _}function d(y,_){var T=(y.length-_)%3;return T===0?y.toString("base64",_):(this.lastNeed=3-T,this.lastTotal=3,T===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",_,y.length-T))}function p(y){var _=y&&y.length?this.write(y):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function m(y){return y.toString(this.encoding)}function v(y){return y&&y.length?this.write(y):""}e.StringDecoder=o,o.prototype.write=function(y){if(y.length===0)return"";var _,T;if(this.lastNeed){if((_=this.fillLast(y))===void 0)return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T=0?(P>0&&(w.lastNeed=P-1),P):--k=0?(P>0&&(w.lastNeed=P-2),P):--k=0?(P>0&&(P===2?P=0:w.lastNeed=P-3),P):0}(this,y,_);if(!this.lastNeed)return y.toString("utf8",_);this.lastTotal=T;var x=y.length-(T-this.lastNeed);return y.copy(this.lastChar,0,x),y.toString("utf8",_,x)},o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},function(t,e,n){t.exports=o;var r=n(1),i=n(5);function o(c){if(!(this instanceof o))return new o(c);r.call(this,c),this._transformState={afterTransform:(function(h,d){var p=this._transformState;p.transforming=!1;var m=p.writecb;if(!m)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,d!=null&&this.push(d),m(h);var v=this._readableState;v.reading=!1,(v.needReadable||v.length-1&&s.push(i[l]);return s},e.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},e.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(t,e,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])};return function(s,l){function c(){this.constructor=s}o(s,l),s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(o){function s(l,c,h){var d=o.call(this,"Error: "+l+". JSON Line number: "+c+(h?" near: "+h:""))||this;return d.err=l,d.line=c,d.extra=h,d.name="CSV Parse Error",d}return r(s,o),s.column_mismatched=function(l,c){return new s("column_mismatched",l,c)},s.unclosed_quote=function(l,c){return new s("unclosed_quote",l,c)},s.fromJSON=function(l){return new s(l.err,l.line,l.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);e.default=i},function(t,e,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;t.exports=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":s&&s in Object(l)?i(l):o(l)}},function(t,e){t.exports=function(n,r){return n===r||n!=n&&r!=r}},function(t,e,n){t.exports=n(33)},function(t,e,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,t.exports=i},function(t,e,n){(function(r){var i=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var T in _)_.hasOwnProperty(T)&&(y[T]=_[T])};return function(y,_){function T(){this.constructor=y}v(y,_),y.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)}}(),o=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(36),l=n(50),c=n(51),h=o(n(15)),d=n(52),p=n(105),m=function(v){function y(_,T){T===void 0&&(T={});var x=v.call(this,T)||this;return x.options=T,x.params=l.mergeParams(_),x.runtime=c.initParseRuntime(x),x.result=new p.Result(x),x.processor=new d.ProcessorLocal(x),x.once("error",function(w){r(function(){x.result.processError(w),x.emit("done",w)})}),x.once("done",function(){x.processor.destroy()}),x}return i(y,v),y.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},y.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},y.prototype.subscribe=function(_,T,x){return this.parseRuntime.subscribe={onNext:_,onError:T,onCompleted:x},this},y.prototype.fromFile=function(_,T){var x=this,w=n(!function(){var E=new Error("Cannot find module 'fs'");throw E.code="MODULE_NOT_FOUND",E}());return w.exists(_,function(E){E?w.createReadStream(_,T).pipe(x):x.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},y.prototype.fromStream=function(_){return _.pipe(this),this},y.prototype.fromString=function(_){_.toString();var T=new s.Readable,x=0;return T._read=function(w){if(x>=_.length)this.push(null);else{var E=_.substr(x,w);this.push(E),x+=w}},this.fromStream(T)},y.prototype.then=function(_,T){var x=this;return new h.default(function(w,E){x.parseRuntime.then={onfulfilled:function(O){w(_?_(O):O)},onrejected:function(O){T?w(T(O)):E(O)}}})},Object.defineProperty(y.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),y.prototype._transform=function(_,T,x){var w=this;this.processor.process(_).then(function(E){if(E.length>0)return w.runtime.started=!0,w.result.processResult(E)}).then(function(){w.emit("drained"),x()},function(E){w.runtime.hasError=!0,w.runtime.error=E,w.emit("error",E),x()})},y.prototype._flush=function(_){var T=this;this.processor.flush().then(function(x){if(x.length>0)return T.result.processResult(x)}).then(function(){T.processEnd(_)},function(x){T.emit("error",x),_()})},y.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(y.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),y}(s.Transform);e.Converter=m}).call(this,n(11).setImmediate)},function(t,e,n){(function(r,i){(function(o,s){if(!o.setImmediate){var l,c=1,h={},d=!1,p=o.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(o);m=m&&m.setTimeout?m:o,{}.toString.call(o.process)==="[object process]"?l=function(_){i.nextTick(function(){y(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,T=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=T,_}}()?function(){var _="setImmediate$"+Math.random()+"$",T=function(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(_)===0&&y(+x.data.slice(_.length))};o.addEventListener?o.addEventListener("message",T,!1):o.attachEvent("onmessage",T),l=function(x){o.postMessage(_+x,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(T){y(T.data)},l=function(T){_.port2.postMessage(T)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var _=p.documentElement;l=function(T){var x=p.createElement("script");x.onreadystatechange=function(){y(T),x.onreadystatechange=null,_.removeChild(x),x=null},_.appendChild(x)}}():l=function(_){setTimeout(y,0,_)},m.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var T=new Array(arguments.length-1),x=0;x"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(t,e,n){t.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var l=this;function c(_){o.writable&&o.write(_)===!1&&l.pause&&l.pause()}function h(){l.readable&&l.resume&&l.resume()}l.on("data",c),o.on("drain",h),o._isStdio||s&&s.end===!1||(l.on("end",p),l.on("close",m));var d=!1;function p(){d||(d=!0,o.end())}function m(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function v(_){if(y(),r.listenerCount(this,"error")===0)throw _}function y(){l.removeListener("data",c),o.removeListener("drain",h),l.removeListener("end",p),l.removeListener("close",m),l.removeListener("error",v),o.removeListener("error",v),l.removeListener("end",y),l.removeListener("close",y),o.removeListener("close",y)}return l.on("error",v),o.on("error",v),l.on("end",y),l.on("close",y),o.on("close",y),o.emit("pipe",l),o}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(t,e,n){e.byteLength=function(m){var v=h(m),y=v[0],_=v[1];return 3*(y+_)/4-_},e.toByteArray=function(m){for(var v,y=h(m),_=y[0],T=y[1],x=new o(3*(_+T)/4-T),w=0,E=T>0?_-4:_,O=0;O>16&255,x[w++]=v>>8&255,x[w++]=255&v;return T===2&&(v=i[m.charCodeAt(O)]<<2|i[m.charCodeAt(O+1)]>>4,x[w++]=255&v),T===1&&(v=i[m.charCodeAt(O)]<<10|i[m.charCodeAt(O+1)]<<4|i[m.charCodeAt(O+2)]>>2,x[w++]=v>>8&255,x[w++]=255&v),x},e.fromByteArray=function(m){for(var v,y=m.length,_=y%3,T=[],x=0,w=y-_;xw?w:x+16383));return _===1?(v=m[y-1],T.push(r[v>>2]+r[v<<4&63]+"==")):_===2&&(v=(m[y-2]<<8)+m[y-1],T.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),T.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=s.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var y=m.indexOf("=");return y===-1&&(y=v),[y,y===v?0:4-y%4]}function d(m){return r[m>>18&63]+r[m>>12&63]+r[m>>6&63]+r[63&m]}function p(m,v,y){for(var _,T=[],x=v;x>1,m=-7,v=i?s-1:0,y=i?-1:1,_=n[r+v];for(v+=y,l=_&(1<<-m)-1,_>>=-m,m+=h;m>0;l=256*l+n[r+v],v+=y,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=o;m>0;c=256*c+n[r+v],v+=y,m-=8);if(l===0)l=1-p;else{if(l===d)return c?NaN:1/0*(_?-1:1);c+=Math.pow(2,o),l-=p}return(_?-1:1)*c*Math.pow(2,l-o)},e.write=function(n,r,i,o,s,l){var c,h,d,p=8*l-s-1,m=(1<>1,y=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:l-1,T=o?1:-1,x=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,c=m):(c=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-c))<1&&(c--,d*=2),(r+=c+v>=1?y/d:y*Math.pow(2,1-v))*d>=2&&(c++,d/=2),c+v>=m?(h=0,c=m):c+v>=1?(h=(r*d-1)*Math.pow(2,s),c+=v):(h=r*Math.pow(2,v-1)*Math.pow(2,s),c=0));s>=8;n[i+_]=255&h,_+=T,h/=256,s-=8);for(c=c<0;n[i+_]=255&c,_+=T,c/=256,p-=8);n[i+_-T]|=128*x}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(t,e){},function(t,e,n){var r=n(7).Buffer,i=n(43);function o(s,l,c){s.copy(l,c)}t.exports=function(){function s(){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(l){var c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},s.prototype.unshift=function(l){var c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},s.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(l){if(this.length===0)return"";for(var c=this.head,h=""+c.data;c=c.next;)h+=l+c.data;return h},s.prototype.concat=function(l){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var c=r.allocUnsafe(l>>>0),h=this.head,d=0;h;)o(h.data,c,d),d+=h.data.length,h=h.next;return c},s}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(t,e){},function(t,e,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}t.exports=function(o,s){if(i("noDeprecation"))return o;var l=!1;return function(){if(!l){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),l=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(t,e,n){t.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,l,c){c(null,s)}},function(t,e,n){t.exports=n(14)},function(t,e,n){t.exports=n(1)},function(t,e,n){t.exports=n(13).Transform},function(t,e,n){t.exports=n(13).PassThrough},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(t,e,n){(function(r){var i=this&&this.__extends||function(){var T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,w){x.__proto__=w}||function(x,w){for(var E in w)w.hasOwnProperty(E)&&(x[E]=w[E])};return function(x,w){function E(){this.constructor=x}T(x,w),x.prototype=w===null?Object.create(w):(E.prototype=w.prototype,new E)}}(),o=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(53),l=o(n(15)),c=n(54),h=o(n(16)),d=n(57),p=n(28),m=n(58),v=o(n(59)),y=o(n(29)),_=function(T){function x(){var w=T!==null&&T.apply(this,arguments)||this;return w.rowSplit=new m.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(x,T),x.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var E=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(E,!0).then(function(O){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?l.default.reject(y.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):l.default.resolve(O)})}return l.default.resolve([])},x.prototype.destroy=function(){return l.default.resolve()},Object.defineProperty(x.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),x.prototype.process=function(w,E){var O,k=this;return E===void 0&&(E=!1),O=E?w.toString():c.prepareData(w,this.converter.parseRuntime),l.default.resolve().then(function(){return k.runtime.preRawDataHook?k.runtime.preRawDataHook(O):O}).then(function(P){return P&&P.length>0?k.processCSV(P,E):l.default.resolve([])})},x.prototype.processCSV=function(w,E){var O=this,k=this.params,P=this.runtime;P.eol||h.default(w,P),this.needEmitEol&&!this.eolEmitted&&P.eol&&(this.converter.emit("eol",P.eol),this.eolEmitted=!0),k.ignoreEmpty&&!P.started&&(w=p.trimLeft(w));var A=d.stringToLines(w,P);return E?(A.lines.push(A.partial),A.partial=""):this.prependLeftBuf(p.bufFromString(A.partial)),A.lines.length>0?(P.preFileLineHook?this.runPreLineHook(A.lines):l.default.resolve(A.lines)).then(function(j){return P.started||O.runtime.headers?O.processCSVBody(j):O.processDataWithHead(j)}):l.default.resolve([])},x.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var E="",O=[];w.length;){var k=E+w.shift(),P=this.rowSplit.parse(k);if(P.closed){O=P.cells,E="";break}E=k+h.default(k,this.runtime)}if(this.prependLeftBuf(p.bufFromString(E)),O.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=O}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(w)},x.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,E=0;E=A.length)N();else if(j.preFileLineHook){var V=A[B],Y=j.preFileLineHook(V,j.parsedLineNumber+B);if(B++,Y&&Y.then)Y.then(function(nt){A[B-1]=nt,P(A,j,B,N)});else{for(A[B-1]=Y;B0?r.concat([p.csvLineBuffer,d]):d}(s,l);l.csvLineBuffer=void 0;var h=function(d,p){var m=d.length-1;if(128&d[m]){for(;(192&d[m])==128;)m--;m--}return m!=d.length-1?(p.csvLineBuffer=d.slice(m+1),d.slice(0,m+1)):d}(c,l).toString("utf8");return l.started===!1?o.default(h):h}}).call(this,n(3).Buffer)},function(t,e,n){(function(r){var i=n(56);t.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(t,e){t.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(h){if(h.length===0||this.conv.parseParam.ignoreEmpty&&h.trim().length===0)return{cells:[],closed:!0};var d=this.quote,p=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(h)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var m=this.conv.parseRuntime.delimiter,v=h.split(m);if(d==="off"){if(p)for(var y=0;yp&&(m=v,p=y)}),m},c.prototype.isQuoteOpen=function(h){var d=this.quote,p=this.escape;return h[0]===d&&(h[1]!==d||h[1]===p&&(h[2]===d||h.length===2))},c.prototype.isQuoteClose=function(h){var d=this.quote,p=this.escape;this.conv.parseParam.trim&&(h=o.trimRight(h));for(var m=0,v=h.length-1;h[v]===d||h[v]===p;)v--,m++;return m%2!=0},c.prototype.escapeQuote=function(h){var d="es|"+this.quote+"|"+this.escape;this.cachedRegExp[d]===void 0&&(this.cachedRegExp[d]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[d];return h.replace(p,this.quote)},c.prototype.parseMultiLines=function(h){for(var d=[],p="";h.length;){var m=p+h.shift(),v=this.parse(m);v.cells.length===0&&this.conv.parseParam.ignoreEmpty||(v.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?d.push(o.filterArray(v.cells,this.conv.parseRuntime.selectedColumns)):d.push(v.cells),p=""):p=m+(i.default(m,this.conv.parseRuntime)||` +`))}return{rowsCells:d,partial:p}},c}();e.RowSplit=l},function(t,e,n){var r=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function l(x,w,E){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&x.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+E);return function(O,k,P){for(var A=!1,j={},B=0,N=O.length;B-1){for(var P=w.split("."),A=!0;P.length>0;)if(P.shift().length===0){A=!1;break}!A||O.parseParam.colParser[w]&&O.parseParam.colParser[w].flat?O.parseRuntime.columnValueSetter[k]=p:O.parseRuntime.columnValueSetter[k]=m}else O.parseRuntime.columnValueSetter[k]=p;O.parseParam.nullObject===!0&&E==="null"&&(E=null),O.parseRuntime.columnValueSetter[k](x,w,E)}function p(x,w,E){x[w]=E}function m(x,w,E){o.default(x,w,E)}function v(x,w,E,O){return O.parseRuntime.headerType[E]?O.parseRuntime.headerType[E]:w.indexOf("number#!")>-1?O.parseRuntime.headerType[E]=y:w.indexOf("string#!")>-1?O.parseRuntime.headerType[E]=_:O.parseParam.checkType?O.parseRuntime.headerType[E]=T:O.parseRuntime.headerType[E]=_}function y(x){var w=parseFloat(x);return isNaN(w)?x:w}function _(x){return x.toString()}function T(x){var w=x.trim();return w===""?_(x):s.test(w)?y(x):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(E){var O=E.trim();return O.length!==5||O.toLowerCase()!=="false"}(x):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(E){try{return JSON.parse(E)}catch{return E}}(x):_(x)}},function(t,e,n){var r=n(61);t.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(t,e,n){var r=n(62),i=n(74),o=n(103),s=n(20),l=n(104);t.exports=function(c,h,d,p){if(!s(c))return c;for(var m=-1,v=(h=i(h,c)).length,y=v-1,_=c;_!=null&&++m-1}},function(t,e,n){var r=n(9);t.exports=function(i,o){var s=this.__data__,l=r(s,i);return l<0?(++this.size,s.push([i,o])):s[l][1]=o,this}},function(t,e,n){var r=n(17)(n(19),"Map");t.exports=r},function(t,e,n){var r=n(10);t.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(t,e){t.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(t,e,n){var r=n(10);t.exports=function(i){return r(this,i).get(i)}},function(t,e,n){var r=n(10);t.exports=function(i){return r(this,i).has(i)}},function(t,e,n){var r=n(10);t.exports=function(i,o){var s=r(this,i),l=s.size;return s.set(i,o),this.size+=s.size==l?0:1,this}},function(t,e,n){var r=n(101);t.exports=function(i){return i==null?"":r(i)}},function(t,e,n){var r=n(18),i=n(102),o=n(21),s=n(22),l=r?r.prototype:void 0,c=l?l.toString:void 0;t.exports=function h(d){if(typeof d=="string")return d;if(o(d))return i(d,h)+"";if(s(d))return c?c.call(d):"";var p=d+"";return p=="0"&&1/d==-1/0?"-0":p}},function(t,e){t.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(h){var d=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&l(this.converter,"["+o.EOL),new i.default(function(m,v){d.needEmitLine?function y(_,T,x,w,E){if(x>=_.length)E();else if(T.parseRuntime.subscribe&&T.parseRuntime.subscribe.onNext){var O=T.parseRuntime.subscribe.onNext,k=_[x],P=O(k,T.parseRuntime.parsedLineNumber+x);if(x++,P&&P.then)P.then(function(){(function(j,B,N,V,Y,nt,K){Y&&l(N,K),y(j,N,V,Y,nt)})(_,0,T,x,w,E,k)},E);else{for(w&&l(T,k);x<_.length;){var A=_[x];O(A,T.parseRuntime.parsedLineNumber+x),x++,w&&l(T,A)}E()}}else{if(w)for(;x<_.length;)A=_[x++],l(T,A);E()}}(h,d.converter,0,d.needPushDownstream,function(y){y?v(y):(d.appendFinalResult(h),m())}):(d.appendFinalResult(h),m())})},c.prototype.appendFinalResult=function(h){this.needEmitAll&&(this.finalResult=this.finalResult.concat(h)),this.converter.parseRuntime.parsedLineNumber+=h.length},c.prototype.processError=function(h){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(h),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(h)},c.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&l(this.converter,"]"+o.EOL)},c}();function l(c,h){if(typeof h!="object"||c.options.objectMode)c.push(h);else{var d=JSON.stringify(h);c.push(d+(c.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}e.Result=s},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return typeof location<"u"?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return typeof navigator<"u"?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL=` +`,e.homedir=function(){return"/"}}]);const CMt=xs(OMt),kMt=t=>new Promise(e=>{CMt().fromString(t).then(e)}),PMt=new EMt,LMt=t=>PMt.parse(t),MMt="shlink",$4=t=>`${MMt}.${t}`;class AMt{constructor(e){St(this,"get",e=>{const n=this.localStorage.getItem($4(e));return n?JSON.parse(n):void 0});St(this,"set",(e,n)=>this.localStorage.setItem($4(e),JSON.stringify(n)));this.localStorage=e}}class RMt{constructor(e){this.storage=e}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(e){this.storage.set("colors",e)}}const jMt=t=>{t.constant("localStorage",window.localStorage),t.service("Storage",AMt,"localStorage"),t.service("TagColorsStorage",RMt,"Storage"),t.constant("csvToJson",kMt),t.constant("jsonToCsv",LMt),t.constant("setTimeout",window.setTimeout),t.constant("clearTimeout",window.clearTimeout),t.serviceFactory("useTimeoutToggle",dPt,"setTimeout","clearTimeout")},Hu=new vJ,{container:VL}=Hu,NMt=(t,e)=>(...n)=>t[e](...n),DMt=(t,e)=>({...t,[e]:NMt(VL,e)}),Z1=(t,e=[])=>d8(t?Vtt(t):null,e.reduce(DMt,{}));Fft(Hu,Z1);sPt(Hu,Z1);Vdt(Hu);XPt(Hu,Z1);jMt(Hu);SLt(Hu,Z1);var HL={},BO={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPlainObject=e.clone=e.recursive=e.merge=e.main=void 0,t.exports=e=n,e.default=n;function n(){for(var h=[],d=0;d$.length)&&(I=$.length);for(var H=0,it=Array(I);HvP({appUpdated:Ift,servers:RPt,selectedServer:t.selectedServerReducer,settings:hLt}),BMt=t=>{var e;return t.settings&&((e=t.settings.visits)==null?void 0:e.defaultInterval)==="last180days"&&t.settings.visits&&(t.settings.visits.defaultInterval="last180Days"),t},$Mt=!0,lV={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},zMt=BMt(HL.load(lV)),UMt=t=>iz({devTools:!$Mt,reducer:FMt(t),preloadedState:zMt,middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(HL.save(lV))}),VMt=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function HMt(t){if("serviceWorker"in navigator){if(new URL(i0.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${i0.homepage}/service-worker.js`;VMt?(WMt(n,t),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):cV(n,t)})}}function cV(t,e){navigator.serviceWorker.register(t).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),e&&e.onUpdate&&e.onUpdate(n)):(console.log("Content is cached for offline use."),e&&e.onSuccess&&e.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function WMt(t,e){fetch(t,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):cV(t,e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}var $O={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(t,e){(function(n,r){r(e)})(mp,function(n){var r="1.9.4";function i(a){var u,f,g,S;for(f=1,g=arguments.length;f"u"||!L||!L.Mixin)){a=E(a)?a:[a];for(var u=0;u0?Math.floor(a):Math.ceil(a)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(a){return this.clone()._add(I(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(I(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new G(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new G(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(a){a=I(a);var u=a.x-this.x,f=a.y-this.y;return Math.sqrt(u*u+f*f)},equals:function(a){return a=I(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=I(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function I(a,u,f){return a instanceof G?a:E(a)?new G(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new G(a.x,a.y):new G(a,u,f)}function H(a,u){if(a)for(var f=u?[a,u]:a,g=0,S=f.length;g=this.min.x&&f.x<=this.max.x&&u.y>=this.min.y&&f.y<=this.max.y},intersects:function(a){a=it(a);var u=this.min,f=this.max,g=a.min,S=a.max,C=S.x>=u.x&&g.x<=f.x,D=S.y>=u.y&&g.y<=f.y;return C&&D},overlaps:function(a){a=it(a);var u=this.min,f=this.max,g=a.min,S=a.max,C=S.x>u.x&&g.xu.y&&g.y=u.lat&&S.lat<=f.lat&&g.lng>=u.lng&&S.lng<=f.lng},intersects:function(a){a=Q(a);var u=this._southWest,f=this._northEast,g=a.getSouthWest(),S=a.getNorthEast(),C=S.lat>=u.lat&&g.lat<=f.lat,D=S.lng>=u.lng&&g.lng<=f.lng;return C&&D},overlaps:function(a){a=Q(a);var u=this._southWest,f=this._northEast,g=a.getSouthWest(),S=a.getNorthEast(),C=S.lat>u.lat&&g.latu.lng&&g.lng1,ln=function(){var a=!1;try{var u=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return a}(),vr=function(){return!!document.createElement("canvas").getContext}(),Cn=!!(document.createElementNS&&It("svg").createSVGRect),Hn=!!Cn&&function(){var a=document.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),kn=!Cn&&function(){try{var a=document.createElement("div");a.innerHTML='';var u=a.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),mi=navigator.platform.indexOf("Mac")===0,gi=navigator.platform.indexOf("Linux")===0;function Ne(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var wt={ie:_t,ielt9:Ct,edge:Mt,webkit:Lt,android:jt,android23:dt,androidStock:xt,opera:yt,chrome:Et,gecko:At,safari:Bt,phantom:ie,opera12:ae,win:ee,ie3d:Ve,webkit3d:Fe,gecko3d:On,any3d:gr,mobile:Or,mobileWebkit:Vn,mobileWebkit3d:Vl,msPointer:pi,pointer:Hl,touch:Wu,touchNative:Wl,mobileOpera:Yl,mobileGecko:Es,retina:gn,passiveEvents:ln,canvas:vr,svg:Cn,vml:kn,inlineSvg:Hn,mac:mi,linux:gi},Yd=wt.msPointer?"MSPointerDown":"pointerdown",Zd=wt.msPointer?"MSPointerMove":"pointermove",Gd=wt.msPointer?"MSPointerUp":"pointerup",qd=wt.msPointer?"MSPointerCancel":"pointercancel",Zl={touchstart:Yd,touchmove:Zd,touchend:Gd,touchcancel:qd},Kd={touchstart:J1,touchmove:Os,touchend:Os,touchcancel:Os},vi={},Xd=!1;function G1(a,u,f){return u==="touchstart"&&Q1(),Kd[u]?(f=Kd[u].bind(this,f),a.addEventListener(Zl[u],f,!1),f):(console.warn("wrong event specified:",u),p)}function q1(a,u,f){if(!Zl[u]){console.warn("wrong event specified:",u);return}a.removeEventListener(Zl[u],f,!1)}function K1(a){vi[a.pointerId]=a}function X1(a){vi[a.pointerId]&&(vi[a.pointerId]=a)}function Qd(a){delete vi[a.pointerId]}function Q1(){Xd||(document.addEventListener(Yd,K1,!0),document.addEventListener(Zd,X1,!0),document.addEventListener(Gd,Qd,!0),document.addEventListener(qd,Qd,!0),Xd=!0)}function Os(a,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var f in vi)u.touches.push(vi[f]);u.changedTouches=[u],a(u)}}function J1(a,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&me(u),Os(a,u)}function tx(a){var u={},f,g;for(g in a)f=a[g],u[g]=f&&f.bind?f.bind(a):f;return a=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var ex=200;function nx(a,u){a.addEventListener("dblclick",u);var f=0,g;function S(C){if(C.detail!==1){g=C.detail;return}if(!(C.pointerType==="mouse"||C.sourceCapabilities&&!C.sourceCapabilities.firesTouchEvents)){var D=rf(C);if(!(D.some(function(X){return X instanceof HTMLLabelElement&&X.attributes.for})&&!D.some(function(X){return X instanceof HTMLInputElement||X instanceof HTMLSelectElement}))){var Z=Date.now();Z-f<=ex?(g++,g===2&&u(tx(C))):g=1,f=Z}}}return a.addEventListener("click",S),{dblclick:u,simDblclick:S}}function rx(a,u){a.removeEventListener("dblclick",u.dblclick),a.removeEventListener("click",u.simDblclick)}var Gl=Ps(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xo=Ps(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Jd=xo==="webkitTransition"||xo==="OTransition"?xo+"End":"transitionend";function tf(a){return typeof a=="string"?document.getElementById(a):a}function wo(a,u){var f=a.style[u]||a.currentStyle&&a.currentStyle[u];if((!f||f==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);f=g?g[u]:null}return f==="auto"?null:f}function Yt(a,u,f){var g=document.createElement(a);return g.className=u||"",f&&f.appendChild(g),g}function Jt(a){var u=a.parentNode;u&&u.removeChild(a)}function Cs(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function yi(a){var u=a.parentNode;u&&u.lastChild!==a&&u.appendChild(a)}function _i(a){var u=a.parentNode;u&&u.firstChild!==a&&u.insertBefore(a,u.firstChild)}function ql(a,u){if(a.classList!==void 0)return a.classList.contains(u);var f=ks(a);return f.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(f)}function Dt(a,u){if(a.classList!==void 0)for(var f=y(u),g=0,S=f.length;g0?2*window.devicePixelRatio:1;function sf(a){return wt.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/sx:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function ac(a,u){var f=u.relatedTarget;if(!f)return!0;try{for(;f&&f!==a;)f=f.parentNode}catch{return!1}return f!==a}var ax={__proto__:null,on:Rt,off:Kt,stopPropagation:Ur,disableScrollPropagation:sc,disableClickPropagation:Oo,preventDefault:me,stop:Vr,getPropagationPath:rf,getMousePosition:of,getWheelDelta:sf,isExternalTarget:ac,addListener:Rt,removeListener:Kt},af=ct.extend({run:function(a,u,f,g){this.stop(),this._el=a,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(g||.5,.2),this._startPos=zr(a),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(a){var u=+new Date-this._startTime,f=this._duration*1e3;uthis.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,u){this._enforcingBounds=!0;var f=this.getCenter(),g=this._limitCenter(f,this._zoom,Q(a));return f.equals(g)||this.panTo(g,u),this._enforcingBounds=!1,this},panInside:function(a,u){u=u||{};var f=I(u.paddingTopLeft||u.padding||[0,0]),g=I(u.paddingBottomRight||u.padding||[0,0]),S=this.project(this.getCenter()),C=this.project(a),D=this.getPixelBounds(),Z=it([D.min.add(f),D.max.subtract(g)]),X=Z.getSize();if(!Z.contains(C)){this._enforcingBounds=!0;var ut=C.subtract(Z.getCenter()),gt=Z.extend(C).getSize().subtract(X);S.x+=ut.x<0?-gt.x:gt.x,S.y+=ut.y<0?-gt.y:gt.y,this.panTo(this.unproject(S),u),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),g=u.divideBy(2).round(),S=f.divideBy(2).round(),C=g.subtract(S);return!C.x&&!C.y?this:(a.animate&&a.pan?this.panBy(C):(a.pan&&this._rawPanBy(C),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=s(this._handleGeolocationResponse,this),f=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,f,a):navigator.geolocation.getCurrentPosition(u,f,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var u=a.code,f=a.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var u=a.coords.latitude,f=a.coords.longitude,g=new tt(u,f),S=g.toBounds(a.coords.accuracy*2),C=this._locateOptions;if(C.setView){var D=this.getBoundsZoom(S);this.setView(g,C.maxZoom?Math.min(D,C.maxZoom):D)}var Z={latlng:g,bounds:S,timestamp:a.timestamp};for(var X in a.coords)typeof a.coords[X]=="number"&&(Z[X]=a.coords[X]);this.fire("locationfound",Z)}},addHandler:function(a,u){if(!u)return this;var f=this[a]=new u(this);return this._handlers.push(f),this.options[a]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Jt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)Jt(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,u){var f="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Yt("div",f,u||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),u=this.unproject(a.getBottomLeft()),f=this.unproject(a.getTopRight());return new W(u,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,u,f){a=Q(a),f=I(f||[0,0]);var g=this.getZoom()||0,S=this.getMinZoom(),C=this.getMaxZoom(),D=a.getNorthWest(),Z=a.getSouthEast(),X=this.getSize().subtract(f),ut=it(this.project(Z,g),this.project(D,g)).getSize(),gt=wt.any3d?this.options.zoomSnap:1,Ot=X.x/ut.x,Ft=X.y/ut.y,Te=u?Math.max(Ot,Ft):Math.min(Ot,Ft);return g=this.getScaleZoom(Te,g),gt&&(g=Math.round(g/(gt/100))*(gt/100),g=u?Math.ceil(g/gt)*gt:Math.floor(g/gt)*gt),Math.max(S,Math.min(C,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,u){var f=this._getTopLeftPoint(a,u);return new H(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,u){var f=this.options.crs;return u=u===void 0?this._zoom:u,f.scale(a)/f.scale(u)},getScaleZoom:function(a,u){var f=this.options.crs;u=u===void 0?this._zoom:u;var g=f.zoom(a*f.scale(u));return isNaN(g)?1/0:g},project:function(a,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(rt(a),u)},unproject:function(a,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(I(a),u)},layerPointToLatLng:function(a){var u=I(a).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(a){var u=this.project(rt(a))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(rt(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(Q(a))},distance:function(a,u){return this.options.crs.distance(rt(a),rt(u))},containerPointToLayerPoint:function(a){return I(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return I(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var u=this.containerPointToLayerPoint(I(a));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(rt(a)))},mouseEventToContainerPoint:function(a){return of(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var u=this._container=tf(a);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Rt(u,"scroll",this._onScroll,this),this._containerId=c(u)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&wt.any3d,Dt(a,"leaflet-container"+(wt.touch?" leaflet-touch":"")+(wt.retina?" leaflet-retina":"")+(wt.ielt9?" leaflet-oldie":"")+(wt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=wo(a,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),oe(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Dt(a.markerPane,"leaflet-zoom-hide"),Dt(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,u,f){oe(this._mapPane,new G(0,0));var g=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var S=this._zoom!==u;this._moveStart(S,f)._move(a,u)._moveEnd(S),this.fire("viewreset"),g&&this.fire("load")},_moveStart:function(a,u){return a&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(a,u,f,g){u===void 0&&(u=this._zoom);var S=this._zoom!==u;return this._zoom=u,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),g?f&&f.pinch&&this.fire("zoom",f):((S||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){oe(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[c(this._container)]=this;var u=a?Kt:Rt;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),wt.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,u){for(var f=[],g,S=u==="mouseout"||u==="mouseover",C=a.target||a.srcElement,D=!1;C;){if(g=this._targets[c(C)],g&&(u==="click"||u==="preclick")&&this._draggableMoved(g)){D=!0;break}if(g&&g.listens(u,!0)&&(S&&!ac(C,a)||(f.push(g),S))||C===this._container)break;C=C.parentNode}return!f.length&&!D&&!S&&this.listens(u,!0)&&(f=[this]),f},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var u=a.target||a.srcElement;if(!(!this._loaded||u._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(u))){var f=a.type;f==="mousedown"&&ec(u),this._fireDOMEvent(a,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,u,f){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,f)}var S=this._findEventTargets(a,u);if(f){for(var C=[],D=0;D0?Math.round(a-u)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(u))},_limitZoom:function(a){var u=this.getMinZoom(),f=this.getMaxZoom(),g=wt.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(u,Math.min(f,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ne(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,u){var f=this._getCenterOffset(a)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,u),!0)},_createAnimProxy:function(){var a=this._proxy=Yt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(u){var f=Gl,g=this._proxy.style[f];$r(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),g===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Jt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),u=this.getZoom();$r(this._proxy,this.project(a,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,u,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(u),S=this._getCenterOffset(a)._divideBy(1-1/g);return f.animate!==!0&&!this.getSize().contains(S)?!1:(V(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(a,u,!0)},this),!0)},_animateZoom:function(a,u,f,g){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=u,Dt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:u,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ne(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function lx(a,u){return new Ut(a,u)}var cn=K.extend({options:{position:"topright"},initialize:function(a){_(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var u=this._map;return u&&u.removeControl(this),this.options.position=a,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var u=this._container=this.onAdd(a),f=this.getPosition(),g=a._controlCorners[f];return Dt(u,"leaflet-control"),f.indexOf("bottom")!==-1?g.insertBefore(u,g.firstChild):g.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Jt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),Co=function(a){return new cn(a)};Ut.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},u="leaflet-",f=this._controlContainer=Yt("div",u+"control-container",this._container);function g(S,C){var D=u+S+" "+u+C;a[S+C]=Yt("div",D,f)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)Jt(this._controlCorners[a]);Jt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var lf=cn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,u,f,g){return f1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=u&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var u=this._getLayer(c(a.target)),f=u.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;f&&this._map.fire(f,u)},_createRadioElement:function(a,u){var f='",g=document.createElement("div");return g.innerHTML=f,g.firstChild},_addItem:function(a){var u=document.createElement("label"),f=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=f):g=this._createRadioElement("leaflet-base-layers_"+c(this),f),this._layerControlInputs.push(g),g.layerId=c(a.layer),Rt(g,"click",this._onInputClick,this);var S=document.createElement("span");S.innerHTML=" "+a.name;var C=document.createElement("span");u.appendChild(C),C.appendChild(g),C.appendChild(S);var D=a.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,u,f,g=[],S=[];this._handlingClick=!0;for(var C=a.length-1;C>=0;C--)u=a[C],f=this._getLayer(u.layerId).layer,u.checked?g.push(f):u.checked||S.push(f);for(C=0;C=0;S--)u=a[S],f=this._getLayer(u.layerId).layer,u.disabled=f.options.minZoom!==void 0&&gf.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,Rt(a,"click",me),this.expand();var u=this;setTimeout(function(){Kt(a,"click",me),u._preventClick=!1})}}),cx=function(a,u,f){return new lf(a,u,f)},lc=cn.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(a){var u="leaflet-control-zoom",f=Yt("div",u+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,u+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,u+"-out",f,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,u,f,g,S){var C=Yt("a",f,g);return C.innerHTML=a,C.href="#",C.title=u,C.setAttribute("role","button"),C.setAttribute("aria-label",u),Oo(C),Rt(C,"click",Vr),Rt(C,"click",S,this),Rt(C,"click",this._refocusOnMap,this),C},_updateDisabled:function(){var a=this._map,u="leaflet-disabled";ne(this._zoomInButton,u),ne(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(Dt(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(Dt(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ut.mergeOptions({zoomControl:!0}),Ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new lc,this.addControl(this.zoomControl))});var ux=function(a){return new lc(a)},cf=cn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var u="leaflet-control-scale",f=Yt("div",u),g=this.options;return this._addScales(g,u+"-line",f),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),f},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,u,f){a.metric&&(this._mScale=Yt("div",u,f)),a.imperial&&(this._iScale=Yt("div",u,f))},_update:function(){var a=this._map,u=a.getSize().y/2,f=a.distance(a.containerPointToLatLng([0,u]),a.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(f)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var u=this._getRoundNum(a),f=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,f,u/a)},_updateImperial:function(a){var u=a*3.2808399,f,g,S;u>5280?(f=u/5280,g=this._getRoundNum(f),this._updateScale(this._iScale,g+" mi",g/f)):(S=this._getRoundNum(u),this._updateScale(this._iScale,S+" ft",S/u))},_updateScale:function(a,u,f){a.style.width=Math.round(this.options.maxWidth*f)+"px",a.innerHTML=u},_getRoundNum:function(a){var u=Math.pow(10,(Math.floor(a)+"").length-1),f=a/u;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,u*f}}),hx=function(a){return new cf(a)},dx='',cc=cn.extend({options:{position:"bottomright",prefix:''+(wt.inlineSvg?dx+" ":"")+"Leaflet"},initialize:function(a){_(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Yt("div","leaflet-control-attribution"),Oo(this._container);for(var u in a._layers)a._layers[u].getAttribution&&this.addAttribution(a._layers[u].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var u in this._attributions)this._attributions[u]&&a.push(u);var f=[];this.options.prefix&&f.push(this.options.prefix),a.length&&f.push(a.join(", ")),this._container.innerHTML=f.join(' ')}}});Ut.mergeOptions({attributionControl:!0}),Ut.addInitHook(function(){this.options.attributionControl&&new cc().addTo(this)});var fx=function(a){return new cc(a)};cn.Layers=lf,cn.Zoom=lc,cn.Scale=cf,cn.Attribution=cc,Co.layers=cx,Co.zoom=ux,Co.scale=hx,Co.attribution=fx;var Ln=K.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ln.addTo=function(a,u){return a.addHandler(u,this),this};var px={Events:et},uf=wt.touch?"touchstart mousedown":"mousedown",yr=ct.extend({options:{clickTolerance:3},initialize:function(a,u,f,g){_(this,g),this._element=a,this._dragStartTarget=u||a,this._preventOutline=f},enable:function(){this._enabled||(Rt(this._dragStartTarget,uf,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yr._dragging===this&&this.finishDrag(!0),Kt(this._dragStartTarget,uf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!ql(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){yr._dragging===this&&this.finishDrag();return}if(!(yr._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(yr._dragging=this,this._preventOutline&&ec(this._element),Ql(),So(),!this._moving)){this.fire("down");var u=a.touches?a.touches[0]:a,f=ef(this._element);this._startPoint=new G(u.clientX,u.clientY),this._startPos=zr(this._element),this._parentScale=nc(f);var g=a.type==="mousedown";Rt(document,g?"mousemove":"touchmove",this._onMove,this),Rt(document,g?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var u=a.touches&&a.touches.length===1?a.touches[0]:a,f=new G(u.clientX,u.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)C&&(D=Z,C=X);C>f&&(u[D]=1,hc(a,u,f,g,D),hc(a,u,f,D,S))}function yx(a,u){for(var f=[a[0]],g=1,S=0,C=a.length;gu&&(f.push(a[g]),S=g);return Su.max.x&&(f|=2),a.yu.max.y&&(f|=8),f}function _x(a,u){var f=u.x-a.x,g=u.y-a.y;return f*f+g*g}function ko(a,u,f,g){var S=u.x,C=u.y,D=f.x-S,Z=f.y-C,X=D*D+Z*Z,ut;return X>0&&(ut=((a.x-S)*D+(a.y-C)*Z)/X,ut>1?(S=f.x,C=f.y):ut>0&&(S+=D*ut,C+=Z*ut)),D=a.x-S,Z=a.y-C,g?D*D+Z*Z:new G(S,C)}function We(a){return!E(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function vf(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),We(a)}function yf(a,u){var f,g,S,C,D,Z,X,ut;if(!a||a.length===0)throw new Error("latlngs not passed");We(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var gt=rt([0,0]),Ot=Q(a),Ft=Ot.getNorthWest().distanceTo(Ot.getSouthWest())*Ot.getNorthEast().distanceTo(Ot.getNorthWest());Ft<1700&&(gt=uc(a));var Te=a.length,ce=[];for(f=0;fg){X=(C-g)/S,ut=[Z.x-X*(Z.x-D.x),Z.y-X*(Z.y-D.y)];break}var Pe=u.unproject(I(ut));return rt([Pe.lat+gt.lat,Pe.lng+gt.lng])}var bx={__proto__:null,simplify:ff,pointToSegmentDistance:pf,closestPointOnSegment:gx,clipSegment:gf,_getEdgeIntersection:As,_getBitCode:Hr,_sqClosestPointOnSegment:ko,isFlat:We,_flat:vf,polylineCenter:yf},dc={project:function(a){return new G(a.lng,a.lat)},unproject:function(a){return new tt(a.y,a.x)},bounds:new H([-180,-90],[180,90])},fc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var u=Math.PI/180,f=this.R,g=a.lat*u,S=this.R_MINOR/f,C=Math.sqrt(1-S*S),D=C*Math.sin(g),Z=Math.tan(Math.PI/4-g/2)/Math.pow((1-D)/(1+D),C/2);return g=-f*Math.log(Math.max(Z,1e-10)),new G(a.lng*u*f,g)},unproject:function(a){for(var u=180/Math.PI,f=this.R,g=this.R_MINOR/f,S=Math.sqrt(1-g*g),C=Math.exp(-a.y/f),D=Math.PI/2-2*Math.atan(C),Z=0,X=.1,ut;Z<15&&Math.abs(X)>1e-7;Z++)ut=S*Math.sin(D),ut=Math.pow((1-ut)/(1+ut),S/2),X=Math.PI/2-2*Math.atan(C*ut)-D,D+=X;return new tt(D*u,a.x*u/f)}},xx={__proto__:null,LonLat:dc,Mercator:fc,SphericalMercator:z},wx=i({},M,{code:"EPSG:3395",projection:fc,transformation:function(){var a=.5/(Math.PI*fc.R);return st(a,.5,-a,.5)}()}),_f=i({},M,{code:"EPSG:4326",projection:dc,transformation:st(1/180,1,-1/180,.5)}),Sx=i({},mt,{projection:dc,transformation:st(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,u){var f=u.lng-a.lng,g=u.lat-a.lat;return Math.sqrt(f*f+g*g)},infinite:!0});mt.Earth=M,mt.EPSG3395=wx,mt.EPSG3857=ht,mt.EPSG900913=bt,mt.EPSG4326=_f,mt.Simple=Sx;var un=ct.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[c(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[c(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var u=a.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var f=this.getEvents();u.on(f,this),this.once("remove",function(){u.off(f,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});Ut.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var u=c(a);return this._layers[u]?this:(this._layers[u]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var u=c(a);return this._layers[u]?(this._loaded&&a.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return c(a)in this._layers},eachLayer:function(a,u){for(var f in this._layers)a.call(u,this._layers[f]);return this},_addLayers:function(a){a=a?E(a)?a:[a]:[];for(var u=0,f=a.length;uthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&u[0]instanceof tt&&u[0].equals(u[f-1])&&u.pop(),u},_setLatLngs:function(a){Yn.prototype._setLatLngs.call(this,a),We(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return We(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,u=this.options.weight,f=new G(u,u);if(a=new H(a.min.subtract(f),a.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,S=this._rings.length,C;ga.y!=S.y>a.y&&a.x<(S.x-g.x)*(a.y-g.y)/(S.y-g.y)+g.x&&(u=!u);return u||Yn.prototype._containsPoint.call(this,a,!0)}});function Mx(a,u){return new wi(a,u)}var Zn=Wn.extend({initialize:function(a,u){_(this,u),this._layers={},a&&this.addData(a)},addData:function(a){var u=E(a)?a:a.features,f,g,S;if(u){for(f=0,g=u.length;f0&&S.push(S[0].slice()),S}function Si(a,u){return a.feature?i({},a.feature,{geometry:u}):Fs(u)}function Fs(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var vc={toGeoJSON:function(a){return Si(this,{type:"Point",coordinates:gc(this.getLatLng(),a)})}};Rs.include(vc),pc.include(vc),js.include(vc),Yn.include({toGeoJSON:function(a){var u=!We(this._latlngs),f=Is(this._latlngs,u?1:0,!1,a);return Si(this,{type:(u?"Multi":"")+"LineString",coordinates:f})}}),wi.include({toGeoJSON:function(a){var u=!We(this._latlngs),f=u&&!We(this._latlngs[0]),g=Is(this._latlngs,f?2:u?1:0,!0,a);return u||(g=[g]),Si(this,{type:(f?"Multi":"")+"Polygon",coordinates:g})}}),bi.include({toMultiPoint:function(a){var u=[];return this.eachLayer(function(f){u.push(f.toGeoJSON(a).geometry.coordinates)}),Si(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(a){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(a);var f=u==="GeometryCollection",g=[];return this.eachLayer(function(S){if(S.toGeoJSON){var C=S.toGeoJSON(a);if(f)g.push(C.geometry);else{var D=Fs(C);D.type==="FeatureCollection"?g.push.apply(g,D.features):g.push(D)}}}),f?Si(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function wf(a,u){return new Zn(a,u)}var Ax=wf,Bs=un.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,u,f){this._url=a,this._bounds=Q(u),_(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Dt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Jt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&yi(this._image),this},bringToBack:function(){return this._map&&_i(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=Q(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",u=this._image=a?this._url:Yt("img");if(Dt(u,"leaflet-image-layer"),this._zoomAnimated&&Dt(u,"leaflet-zoom-animated"),this.options.className&&Dt(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=s(this.fire,this,"load"),u.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(a){var u=this._map.getZoomScale(a.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;$r(this._image,f,u)},_reset:function(){var a=this._image,u=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=u.getSize();oe(a,u.min),a.style.width=f.x+"px",a.style.height=f.y+"px"},_updateOpacity:function(){He(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),Rx=function(a,u,f){return new Bs(a,u,f)},Sf=Bs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",u=this._image=a?this._url:Yt("video");if(Dt(u,"leaflet-image-layer"),this._zoomAnimated&&Dt(u,"leaflet-zoom-animated"),this.options.className&&Dt(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=s(this.fire,this,"load"),a){for(var f=u.getElementsByTagName("source"),g=[],S=0;S0?g:[u.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var C=0;CS?(u.height=S+"px",Dt(a,C)):ne(a,C),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var u=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),f=this._getAnchor();oe(this._container,u.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,u=parseInt(wo(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+u,g=this._containerWidth,S=new G(this._containerLeft,-f-this._containerBottom);S._add(zr(this._container));var C=a.layerPointToContainerPoint(S),D=I(this.options.autoPanPadding),Z=I(this.options.autoPanPaddingTopLeft||D),X=I(this.options.autoPanPaddingBottomRight||D),ut=a.getSize(),gt=0,Ot=0;C.x+g+X.x>ut.x&&(gt=C.x+g-ut.x+X.x),C.x-gt-Z.x<0&&(gt=C.x-Z.x),C.y+f+X.y>ut.y&&(Ot=C.y+f-ut.y+X.y),C.y-Ot-Z.y<0&&(Ot=C.y-Z.y),(gt||Ot)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([gt,Ot]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dx=function(a,u){return new $s(a,u)};Ut.mergeOptions({closePopupOnClick:!0}),Ut.include({openPopup:function(a,u,f){return this._initOverlay($s,a,u,f).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),un.include({bindPopup:function(a,u){return this._popup=this._initOverlay($s,this._popup,a,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Wn||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){Vr(a);var u=a.layer||a.target;if(this._popup._source===u&&!(u instanceof _r)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=u,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var zs=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Mn.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Mn.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Mn.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",u=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Yt("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var u,f,g=this._map,S=this._container,C=g.latLngToContainerPoint(g.getCenter()),D=g.layerPointToContainerPoint(a),Z=this.options.direction,X=S.offsetWidth,ut=S.offsetHeight,gt=I(this.options.offset),Ot=this._getAnchor();Z==="top"?(u=X/2,f=ut):Z==="bottom"?(u=X/2,f=0):Z==="center"?(u=X/2,f=ut/2):Z==="right"?(u=0,f=ut/2):Z==="left"?(u=X,f=ut/2):D.xthis.options.maxZoom||fg?this._retainParent(S,C,D,g):!1)},_retainChildren:function(a,u,f,g){for(var S=2*a;S<2*a+2;S++)for(var C=2*u;C<2*u+2;C++){var D=new G(S,C);D.z=f+1;var Z=this._tileCoordsToKey(D),X=this._tiles[Z];if(X&&X.active){X.retain=!0;continue}else X&&X.loaded&&(X.retain=!0);f+1this.options.maxZoom||this.options.minZoom!==void 0&&S1){this._setView(a,f);return}for(var Ot=S.min.y;Ot<=S.max.y;Ot++)for(var Ft=S.min.x;Ft<=S.max.x;Ft++){var Te=new G(Ft,Ot);if(Te.z=this._tileZoom,!!this._isValidTile(Te)){var ce=this._tiles[this._tileCoordsToKey(Te)];ce?ce.current=!0:D.push(Te)}}if(D.sort(function(Pe,Ei){return Pe.distanceTo(C)-Ei.distanceTo(C)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ye=document.createDocumentFragment();for(Ft=0;Ftf.max.x)||!u.wrapLat&&(a.yf.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return Q(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var u=this._map,f=this.getTileSize(),g=a.scaleBy(f),S=g.add(f),C=u.unproject(g,a.z),D=u.unproject(S,a.z);return[C,D]},_tileCoordsToBounds:function(a){var u=this._tileCoordsToNwSe(a),f=new W(u[0],u[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var u=a.split(":"),f=new G(+u[0],+u[1]);return f.z=+u[2],f},_removeTile:function(a){var u=this._tiles[a];u&&(Jt(u.el),delete this._tiles[a],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){Dt(a,"leaflet-tile");var u=this.getTileSize();a.style.width=u.x+"px",a.style.height=u.y+"px",a.onselectstart=p,a.onmousemove=p,wt.ielt9&&this.options.opacity<1&&He(a,this.options.opacity)},_addTile:function(a,u){var f=this._getTilePos(a),g=this._tileCoordsToKey(a),S=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(S),this.createTile.length<2&&V(s(this._tileReady,this,a,null,S)),oe(S,f),this._tiles[g]={el:S,coords:a,current:!0},u.appendChild(S),this.fire("tileloadstart",{tile:S,coords:a})},_tileReady:function(a,u,f){u&&this.fire("tileerror",{error:u,tile:f,coords:a});var g=this._tileCoordsToKey(a);f=this._tiles[g],f&&(f.loaded=+new Date,this._map._fadeAnimated?(He(f.el,0),Y(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),u||(Dt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),wt.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var u=new G(this._wrapX?d(a.x,this._wrapX):a.x,this._wrapY?d(a.y,this._wrapY):a.y);return u.z=a.z,u},_pxBoundsToTileRange:function(a){var u=this.getTileSize();return new H(a.min.unscaleBy(u).floor(),a.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function Bx(a){return new Lo(a)}var Ti=Lo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,u){this._url=a,u=_(this,u),u.detectRetina&&wt.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,u){return this._url===a&&u===void 0&&(u=!0),this._url=a,u||this.redraw(),this},createTile:function(a,u){var f=document.createElement("img");return Rt(f,"load",s(this._tileOnLoad,this,u,f)),Rt(f,"error",s(this._tileOnError,this,u,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(a),f},getTileUrl:function(a){var u={r:wt.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-a.y;this.options.tms&&(u.y=f),u["-y"]=f}return w(this._url,i(u,this.options))},_tileOnLoad:function(a,u){wt.ielt9?setTimeout(s(a,this,null,u),0):a(null,u)},_tileOnError:function(a,u,f){var g=this.options.errorTileUrl;g&&u.getAttribute("src")!==g&&(u.src=g),a(f,u)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,u=this.options.maxZoom,f=this.options.zoomReverse,g=this.options.zoomOffset;return f&&(a=u-a),a+g},_getSubdomain:function(a){var u=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var a,u;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(u=this._tiles[a].el,u.onload=p,u.onerror=p,!u.complete)){u.src=k;var f=this._tiles[a].coords;Jt(u),delete this._tiles[a],this.fire("tileabort",{tile:u,coords:f})}},_removeTile:function(a){var u=this._tiles[a];if(u)return u.el.setAttribute("src",k),Lo.prototype._removeTile.call(this,a)},_tileReady:function(a,u,f){if(!(!this._map||f&&f.getAttribute("src")===k))return Lo.prototype._tileReady.call(this,a,u,f)}});function Of(a,u){return new Ti(a,u)}var Cf=Ti.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,u){this._url=a;var f=i({},this.defaultWmsParams);for(var g in u)g in this.options||(f[g]=u[g]);u=_(this,u);var S=u.detectRetina&&wt.retina?2:1,C=this.getTileSize();f.width=C.x*S,f.height=C.y*S,this.wmsParams=f},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,Ti.prototype.onAdd.call(this,a)},getTileUrl:function(a){var u=this._tileCoordsToNwSe(a),f=this._crs,g=it(f.project(u[0]),f.project(u[1])),S=g.min,C=g.max,D=(this._wmsVersion>=1.3&&this._crs===_f?[S.y,S.x,C.y,C.x]:[S.x,S.y,C.x,C.y]).join(","),Z=Ti.prototype.getTileUrl.call(this,a);return Z+T(this.wmsParams,Z,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(a,u){return i(this.wmsParams,a),u||this.redraw(),this}});function $x(a,u){return new Cf(a,u)}Ti.WMS=Cf,Of.wms=$x;var Gn=un.extend({options:{padding:.1},initialize:function(a){_(this,a),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Dt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,u){var f=this._map.getZoomScale(u,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),S=this._map.project(this._center,u),C=g.multiplyBy(-f).add(S).subtract(this._map._getNewPixelOrigin(a,u));wt.any3d?$r(this._container,C,f):oe(this._container,C)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,u=this._map.getSize(),f=this._map.containerPointToLayerPoint(u.multiplyBy(-a)).round();this._bounds=new H(f,f.add(u.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),kf=Gn.extend({options:{tolerance:0},getEvents:function(){var a=Gn.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");Rt(a,"mousemove",this._onMouseMove,this),Rt(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Rt(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,Jt(this._container),Kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var u in this._layers)a=this._layers[u],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var a=this._bounds,u=this._container,f=a.getSize(),g=wt.retina?2:1;oe(u,a.min),u.width=g*f.x,u.height=g*f.y,u.style.width=f.x+"px",u.style.height=f.y+"px",wt.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){Gn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[c(a)]=a;var u=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var u=a._order,f=u.next,g=u.prev;f?f.prev=g:this._drawLast=g,g?g.next=f:this._drawFirst=f,delete a._order,delete this._layers[c(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var u=a.options.dashArray.split(/[, ]+/),f=[],g,S;for(S=0;S')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),zx={_initContainer:function(){this._container=Yt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gn.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var u=a._container=Mo("shape");Dt(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",a._path=Mo("path"),u.appendChild(a._path),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){var u=a._container;this._container.appendChild(u),a.options.interactive&&a.addInteractiveTarget(u)},_removePath:function(a){var u=a._container;Jt(u),a.removeInteractiveTarget(u),delete this._layers[c(a)]},_updateStyle:function(a){var u=a._stroke,f=a._fill,g=a.options,S=a._container;S.stroked=!!g.stroke,S.filled=!!g.fill,g.stroke?(u||(u=a._stroke=Mo("stroke")),S.appendChild(u),u.weight=g.weight+"px",u.color=g.color,u.opacity=g.opacity,g.dashArray?u.dashStyle=E(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=g.lineCap.replace("butt","flat"),u.joinstyle=g.lineJoin):u&&(S.removeChild(u),a._stroke=null),g.fill?(f||(f=a._fill=Mo("fill")),S.appendChild(f),f.color=g.fillColor||g.color,f.opacity=g.fillOpacity):f&&(S.removeChild(f),a._fill=null)},_updateCircle:function(a){var u=a._point.round(),f=Math.round(a._radius),g=Math.round(a._radiusY||f);this._setPath(a,a._empty()?"M0 0":"AL "+u.x+","+u.y+" "+f+","+g+" 0,"+65535*360)},_setPath:function(a,u){a._path.v=u},_bringToFront:function(a){yi(a._container)},_bringToBack:function(a){_i(a._container)}},Us=wt.vml?Mo:It,Ao=Gn.extend({_initContainer:function(){this._container=Us("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Us("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Jt(this._container),Kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var a=this._bounds,u=a.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,f.setAttribute("width",u.x),f.setAttribute("height",u.y)),oe(f,a.min),f.setAttribute("viewBox",[a.min.x,a.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(a){var u=a._path=Us("path");a.options.className&&Dt(u,a.options.className),a.options.interactive&&Dt(u,"leaflet-interactive"),this._updateStyle(a),this._layers[c(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){Jt(a._path),a.removeInteractiveTarget(a._path),delete this._layers[c(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var u=a._path,f=a.options;u&&(f.stroke?(u.setAttribute("stroke",f.color),u.setAttribute("stroke-opacity",f.opacity),u.setAttribute("stroke-width",f.weight),u.setAttribute("stroke-linecap",f.lineCap),u.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?u.setAttribute("stroke-dasharray",f.dashArray):u.removeAttribute("stroke-dasharray"),f.dashOffset?u.setAttribute("stroke-dashoffset",f.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),f.fill?(u.setAttribute("fill",f.fillColor||f.color),u.setAttribute("fill-opacity",f.fillOpacity),u.setAttribute("fill-rule",f.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(a,u){this._setPath(a,ft(a._parts,u))},_updateCircle:function(a){var u=a._point,f=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||f,S="a"+f+","+g+" 0 1,0 ",C=a._empty()?"M0 0":"M"+(u.x-f)+","+u.y+S+f*2+",0 "+S+-f*2+",0 ";this._setPath(a,C)},_setPath:function(a,u){a._path.setAttribute("d",u)},_bringToFront:function(a){yi(a._path)},_bringToBack:function(a){_i(a._path)}});wt.vml&&Ao.include(zx);function Lf(a){return wt.svg||wt.vml?new Ao(a):null}Ut.include({getRenderer:function(a){var u=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var u=this._paneRenderers[a];return u===void 0&&(u=this._createRenderer({pane:a}),this._paneRenderers[a]=u),u},_createRenderer:function(a){return this.options.preferCanvas&&Pf(a)||Lf(a)}});var Mf=wi.extend({initialize:function(a,u){wi.prototype.initialize.call(this,this._boundsToLatLngs(a),u)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=Q(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function Ux(a,u){return new Mf(a,u)}Ao.create=Us,Ao.pointsToPath=ft,Zn.geometryToLayer=Ns,Zn.coordsToLatLng=mc,Zn.coordsToLatLngs=Ds,Zn.latLngToCoords=gc,Zn.latLngsToCoords=Is,Zn.getFeature=Si,Zn.asFeature=Fs,Ut.mergeOptions({boxZoom:!0});var Af=Ln.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Jt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),So(),Ql(),this._startPoint=this._map.mouseEventToContainerPoint(a),Rt(document,{contextmenu:Vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Yt("div","leaflet-zoom-box",this._container),Dt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var u=new H(this._point,this._startPoint),f=u.getSize();oe(this._box,u.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Jt(this._box),ne(this._container,"leaflet-crosshair")),To(),Jl(),Kt(document,{contextmenu:Vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var u=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ut.addInitHook("addHandler","boxZoom",Af),Ut.mergeOptions({doubleClickZoom:!0});var Rf=Ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var u=this._map,f=u.getZoom(),g=u.options.zoomDelta,S=a.originalEvent.shiftKey?f-g:f+g;u.options.doubleClickZoom==="center"?u.setZoom(S):u.setZoomAround(a.containerPoint,S)}});Ut.addInitHook("addHandler","doubleClickZoom",Rf),Ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var jf=Ln.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new yr(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}Dt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ne(this._map._container,"leaflet-grab"),ne(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=Q(this._map.options.maxBounds);this._offsetLimit=it(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var u=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(u),this._prunePositions(u)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,u){return a-(a-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;a.xu.max.x&&(a.x=this._viscousLimit(a.x,u.max.x)),a.y>u.max.y&&(a.y=this._viscousLimit(a.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,u=Math.round(a/2),f=this._initialWorldOffset,g=this._draggable._newPos.x,S=(g-u+f)%a+u-f,C=(g+u+f)%a-u-f,D=Math.abs(S+f)0?C:-C))-u;this._delta=0,this._startTime=null,D&&(a.options.scrollWheelZoom==="center"?a.setZoom(u+D):a.setZoomAround(this._lastMousePos,u+D))}});Ut.addInitHook("addHandler","scrollWheelZoom",Df);var Vx=600;Ut.mergeOptions({tapHold:wt.touchNative&&wt.safari&&wt.mobile,tapTolerance:15});var If=Ln.extend({addHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var u=a.touches[0];this._startPos=this._newPos=new G(u.clientX,u.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Rt(document,"touchend",me),Rt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),Vx),Rt(document,"touchend touchcancel contextmenu",this._cancel,this),Rt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Kt(document,"touchend",me),Kt(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Kt(document,"touchend touchcancel contextmenu",this._cancel,this),Kt(document,"touchmove",this._onMove,this)},_onMove:function(a){var u=a.touches[0];this._newPos=new G(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,u){var f=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});f._simulated=!0,u.target.dispatchEvent(f)}});Ut.addInitHook("addHandler","tapHold",If),Ut.mergeOptions({touchZoom:wt.touch,bounceAtZoomLimits:!0});var Ff=Ln.extend({addHooks:function(){Dt(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ne(this._map._container,"leaflet-touch-zoom"),Kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var u=this._map;if(!(!a.touches||a.touches.length!==2||u._animatingZoom||this._zooming)){var f=u.mouseEventToContainerPoint(a.touches[0]),g=u.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(f.add(g)._divideBy(2))),this._startDist=f.distanceTo(g),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend touchcancel",this._onTouchEnd,this),me(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var u=this._map,f=u.mouseEventToContainerPoint(a.touches[0]),g=u.mouseEventToContainerPoint(a.touches[1]),S=f.distanceTo(g)/this._startDist;if(this._zoom=u.getScaleZoom(S,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoomu.getMaxZoom()&&S>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,S===1)return}else{var C=f._add(g)._divideBy(2)._subtract(this._centerPoint);if(S===1&&C.x===0&&C.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(C),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var D=s(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(D,this,!0),me(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),Kt(document,"touchmove",this._onTouchMove,this),Kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ut.addInitHook("addHandler","touchZoom",Ff),Ut.BoxZoom=Af,Ut.DoubleClickZoom=Rf,Ut.Drag=jf,Ut.Keyboard=Nf,Ut.ScrollWheelZoom=Df,Ut.TapHold=If,Ut.TouchZoom=Ff,n.Bounds=H,n.Browser=wt,n.CRS=mt,n.Canvas=kf,n.Circle=pc,n.CircleMarker=js,n.Class=K,n.Control=cn,n.DivIcon=Ef,n.DivOverlay=Mn,n.DomEvent=ax,n.DomUtil=ox,n.Draggable=yr,n.Evented=ct,n.FeatureGroup=Wn,n.GeoJSON=Zn,n.GridLayer=Lo,n.Handler=Ln,n.Icon=xi,n.ImageOverlay=Bs,n.LatLng=tt,n.LatLngBounds=W,n.Layer=un,n.LayerGroup=bi,n.LineUtil=bx,n.Map=Ut,n.Marker=Rs,n.Mixin=px,n.Path=_r,n.Point=G,n.PolyUtil=mx,n.Polygon=wi,n.Polyline=Yn,n.Popup=$s,n.PosAnimation=af,n.Projection=xx,n.Rectangle=Mf,n.Renderer=Gn,n.SVG=Ao,n.SVGOverlay=Tf,n.TileLayer=Ti,n.Tooltip=zs,n.Transformation=at,n.Util=nt,n.VideoOverlay=Sf,n.bind=s,n.bounds=it,n.canvas=Pf,n.circle=Px,n.circleMarker=kx,n.control=Co,n.divIcon=Fx,n.extend=i,n.featureGroup=Ex,n.geoJSON=wf,n.geoJson=Ax,n.gridLayer=Bx,n.icon=Ox,n.imageOverlay=Rx,n.latLng=rt,n.latLngBounds=Q,n.layerGroup=Tx,n.map=lx,n.marker=Cx,n.point=I,n.polygon=Mx,n.polyline=Lx,n.popup=Dx,n.rectangle=Ux,n.setOptions=_,n.stamp=c,n.svg=Lf,n.svgOverlay=Nx,n.tileLayer=Of,n.tooltip=Ix,n.transformation=st,n.version=r,n.videoOverlay=jx;var Hx=window.L;n.noConflict=function(){return window.L=Hx,this},window.L=n})})($O,$O.exports);var YMt=$O.exports;const z4=xs(YMt),ZMt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",GMt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",qMt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",KMt=()=>{delete z4.Icon.Default.prototype._getIconUrl,z4.Icon.Default.mergeOptions({iconRetinaUrl:GMt,iconUrl:ZMt,shadowUrl:qMt})};KMt();const uV=UMt(VL),{App:XMt,ScrollToTop:QMt,ErrorHandler:JMt,appUpdateAvailable:tAt}=VL;QF(document.getElementById("root")).render(b.jsx(f8,{store:uV,children:b.jsx(w8,{basename:i0.homepage,children:b.jsx(JMt,{children:b.jsx(QMt,{children:b.jsx(XMt,{})})})})}));HMt({onUpdate(){uV.dispatch(tAt())}}); diff --git a/feature/external-web-component/favicon.gif b/feature/external-web-component/favicon.gif new file mode 100644 index 0000000000000000000000000000000000000000..dcf57c87cff18b207351100698b71cb90182b848 GIT binary patch literal 642 zcmV-|0)72QNk%w1VSoUD0Pq0-MU~?K001HR1O*BJ0RSuj0001h0Du5M0{@JUsmtvT zqny-$i?i0X`wuqTNRnTPg{q3SXylsf9L9DQ+$qiXkKXbLhYsNGU?VDv#*xAalP!rl z3G{TGYFSxJH^JDO&RH`)~#H-=4|S9Be}2-laOVF>?~7mGwdx~ht;Mecpl6;qw8v{F}xY=@~U@I zs@{nCiVh}R_-0mhfR$n_*f?Pfnt%@{t-O;cX0?3Pu1xEB?Z429CzEyz_H$;GpjD^t z$j`OqcWhshM0&Tj?Z7S{&|gXWdn2#{ec$eFn_%=v~WH=t8M(bE-x z+=UmFg1zN;pmz*v<)COnB^aS(_wnZvfRAL@p;fOLIGTp(kvO7k9C9|0X{YU09ci(J cX3%LhzF6FgD!Qnngx2(!7mz{@sZRj_I~GVjdjJ3c literal 0 HcmV?d00001 diff --git a/feature/external-web-component/favicon.ico b/feature/external-web-component/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..25764c30db2971422adf0ef54b6edc450218f949 GIT binary patch literal 1165 zcmV;81akX{P)C0000yP)t-sM{rC; zlMU~@4mE%T~ z-!5D(YK2g9B9Nw|O2!g>o67=aWEc#Bdz}9g2`xp{C@bISE%PCMoaBr3T?6?gp9)}PIji3^ zh|l@3mIufT2J%Zj2}S@WgY8ScxUSF!Tn6iNK7{f-g2P~Y$S+PO0&p3~=X?mI0E>a| zYOB3-}wOa!82nop`lvQ!GSx@w$ixFk(8qg(k zWeF?{F*vKfT+37MFvLJtZF%O;yG7@DM>?^ZDC=$J>CRM&_cHAy13nb>T_A(BcRr6YlD!EqhN3ka z0}p&0SR3?rP!jk!9}U*x&dEehPX;3LZ&B2v0kwe|x=Sk&hSupcgGBeIDF&s$9E0K# z%rZEtCJcGB0gVZhul(rQ3`E~xFP|YoLi8hQ5Sl05o$~2x6z&=%`SG=O62)Vs8_D^I(IRi+t{>q*DL;pPZ_SFp^KKaiTeewZMs}-s<^!k4yw$ zMeOc!h^y=$!XChm2r3Ag|6W4YShB(>X#H8NIS1!A*va{A7mgbX#4$M^*U9;)XaBmA zUu>seYTm_ax;9m_|hDG0eZ fP0R3)KmPa!uS}AXH_Nl*00000NkvXXu0mjf5{w~J literal 0 HcmV?d00001 diff --git a/feature/external-web-component/favicon.png b/feature/external-web-component/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..25764c30db2971422adf0ef54b6edc450218f949 GIT binary patch literal 1165 zcmV;81akX{P)C0000yP)t-sM{rC; zlMU~@4mE%T~ z-!5D(YK2g9B9Nw|O2!g>o67=aWEc#Bdz}9g2`xp{C@bISE%PCMoaBr3T?6?gp9)}PIji3^ zh|l@3mIufT2J%Zj2}S@WgY8ScxUSF!Tn6iNK7{f-g2P~Y$S+PO0&p3~=X?mI0E>a| zYOB3-}wOa!82nop`lvQ!GSx@w$ixFk(8qg(k zWeF?{F*vKfT+37MFvLJtZF%O;yG7@DM>?^ZDC=$J>CRM&_cHAy13nb>T_A(BcRr6YlD!EqhN3ka z0}p&0SR3?rP!jk!9}U*x&dEehPX;3LZ&B2v0kwe|x=Sk&hSupcgGBeIDF&s$9E0K# z%rZEtCJcGB0gVZhul(rQ3`E~xFP|YoLi8hQ5Sl05o$~2x6z&=%`SG=O62)Vs8_D^I(IRi+t{>q*DL;pPZ_SFp^KKaiTeewZMs}-s<^!k4yw$ zMeOc!h^y=$!XChm2r3Ag|6W4YShB(>X#H8NIS1!A*va{A7mgbX#4$M^*U9;)XaBmA zUu>seYTm_ax;9m_|hDG0eZ fP0R3)KmPa!uS}AXH_Nl*00000NkvXXu0mjf5{w~J literal 0 HcmV?d00001 diff --git a/feature/external-web-component/favicon.svg b/feature/external-web-component/favicon.svg new file mode 100644 index 00000000..5a085bcb --- /dev/null +++ b/feature/external-web-component/favicon.svg @@ -0,0 +1 @@ + diff --git a/feature/external-web-component/icons/icon-1024x1024.png b/feature/external-web-component/icons/icon-1024x1024.png new file mode 100644 index 0000000000000000000000000000000000000000..e468ac0a91cc46b31f61364b16ffeafac44fade2 GIT binary patch literal 8726 zcmb7pcU%<9vv1GrvanB#EpdNERhZ+QD%2C;}!x6j+Y| zP@)nfxnlwZ2`V|bdjtfPBtg=$a|h4w-uFK5pZB@@;X_qdf2+E>x~98&<}W)Na|uxe zQ2>C%9*aNr13)HNG7upV#Nu^#AwgEzSsgSp5418%>NC4V{Pq9-|NrtoY3DNuuvqYZ zn*%^r-zloNxqlK*krgtA2otyW{ITO;c-L^RP|}+X(g0C1n&FIv8NADpF8MAx$#mWY z6T1JOpUN6s3v&BoWAU`<*UQ|Lps5(w+}7(df$YOB89&E7IjNCAa=&xNPtN<%73da8 z{BmTqeGr`f_=x6_PcAlCUw@ZF<%JKHaQcJ8nx7k`g)#Sjqc6GBsp#S@m9b+~5;H91 zO@&jH8q>wUnv+OH`&is{)DD}ppPP1DV^A4x?E@9u*!;!absOYT>k#$4l~xd2@@32W z>!|g8d~y=7-)f}lL&E$;Zc7kcQYUE2CxbI@B%NW?!>)xFugQ!T=5&_0|Bx9!GE?PCiidF@`9Qr7v9ZX=cMOqIO z!3YUiCA}OlYAvw6mX)=KKnnPkW~U215C?048dSik{6eWhnxUIyl#E&E4gm`o5k_cW zH|i(!@~dYLZxUe&Bg)coAd7TXlwFM2LCaxO9?3qJBe>Ff`s^LgyBiq%+5Fk2h&_SkS0%oYziJASLk7qZC}&fXV1~8m zs#ja6oQ4_o#iz?`uOtuME7<FPFh=C~D92Te?$+96eB=!{3?Z@GGx zcWoEg4b{aZH(W<3WRVv!lfxbxK~qs5=L z3K%+N7_5bN}lC?%6$e3=7C8!#!Ed}#unA^sy7Zw}H&p&n1>qOs(gRlMAk+48sBpL!Ui)l58@j!prqEI7UM=bJOk(i~tLu1ouRIUPi2z5^to|A6SuBfj?P0 z;Bj8Zsz+%Z7b{`|N2D_;yj2i$c)2}k+#SYx)~9+8t8zuo9sm!5k0wxo@$PoQ5E=EC zJ1G?O#JKt%^!zI94Fztyw73dlQ_-dz6)CFL>mGdnnTaZ(CSuvC2e7|K9$&E2pIweATls<{ zcTk_V&qCisbZFV1_7)-jR3^7rcBirnJX993>R>kwlZuhuPe^~AUcTR&%I-4~%g)n= z4!;;R5G#{iEQh5rALD;KecNy%YHW)JA3h4nDEf12xIvxV11?uqh z7zy|SYT$4Oz!VVpZXtx~qvWBoghyX23&<%j8kU{cLv99gLY~7z1kE`cgm#d}C+f8R zFupH?B4Y|O_3VdbABf#X$3XId@KBi|crL>h zPAQyD@CVf9({6C}R+KEKItjq{p2GvUciD7;H=yd8`YrD2&UwO@(k~U9+Tth`__mD^ z533=rgre{(HEfv+ZYX{egb-p$k~((H1rJwRitluS3Ib2{%$vg&sJshqL5#uJv$#w7 z4(krsQX)8|unuw#Sae@)0mpUB*BmS$du2Qk+{z{kx-+T$$Ie-@;;*(0+T zl#RFLNsF9aS9@qYbJ4(Y!Ma@Y@6FNSt)w%DE`DI}zZz=HJQGZm4;m$yTsbSq4pACB z<9g%xM8MZ_(^uS>;~zR0jsVB$SE?7JR$z-4wJb*o!HlXF`fuChO45SVXE4eLCk+w8 z8OHGs;rL6%C8YC`@Hx(t;0ewd5OAlW9@aP|@OQ89NwE03s+pl(2}R-Oga{!#r24d( z;aUkz5$5JEYE9XSiLqG)U|yIYmjw45r=;Hg&04o&aaZ97#_}tIdmTfnm(6fHKSI9y ze@h5MTjwtxJJ7?>eY;3nKdPGYMG(7uM#}0Gj$B?4-v2*xi~kWM5{Ri^Qo{uJ`846; z)kV@m?tlCD+fBP>h9hc@Ga-cq;rPr_7BBo85fQ=C%(RfbIF|h{+OCZe_@9oO)4xY_ zCh+S=R1KdREeJP8epBt|wlE6Znl_B6_T$d@+xx6=_pyzMM;b!t;(ICbzc{>l@yYgm z)rC1Toe2AJ_pG|cxAdl7{L_9P|J)Id4{_Wc1cr@^d8+tc|BCLz`0Jt% zh@*}hSa%nTVAZ%xAE(WqV`otD7`(wH9}T|34cab)y9;j#-1LC{Z4oqxgZ6Q@x@2sM zl%@ambkO-j4J$V~`eTn7*ec+>o?1}enktGla?k7_eoebR6UEB7Vb%ENwswCA z&W;vhet$k6lq3sv%rZ;`Ga(n9$jm-`cs9Qz@52&zTu^WCS|UVnh#)PKbyxW8Rebgb z9^vi_y}>Q6J2%frj8|r`_}m}6?~7n%8CR5RiDK=GY8Zd4K9&M%1lMXVZqFA%60|Mw)-H2+)6qC|r`wnycU*`IjyOrG{!5glD zV6U6xdkD+TsO{qv$+qXfc_Cu_p(Ln^7mZN!&xH zvL@>#z|CuVxDf|8H|gSZ0mNm`q|V5l*Blm&cM>3xUHl)F?t{5<65tV@IjPgY`ZXh8 z&iM$C+fI{X86dbSQ2vk*9T(o&zA@#mGYTL}^OWFio@i=UAqB|c4wgJl7lWrR;!#N2J5ZIf>>NKF_D5sKuahSm4uzY@b47M0Wv%4|KF`8^r0)Bw} zp2K>b>(>1K1qDP*@P7nX9vY_rpO5?n4w}9Cr6Q1fH>uNm3P@K%Xp$Z-ki}L|KLfP! z?%a&V`#=6R00qwm-R5ICeS><^R$%l!$EpUVhmwGHwBSk~_s??%KsV?sS2b?~tqMX@ zP4Q##nrNXSD43dasF7s8p>)7}>pdB)?0C7i>A$reZd(fq2Lbx9iIcKs*S$f2tim@d z%b?8?KySiL$s7!hNNokp2flJS!j1z(&UjYy7i9F`#M*;^eYKom^Y9cBy=b?9zF0k#rfE}>yce5-oK@`Ap z^qWEHj)R|l(N6MQOVr#9OK7s8X4_*Fwn%1qUz3C!g-}>`adbo06E#}Qvxp=g6C#VWKtzi^Qo-4OrkKH9r+I}{tvy?LC8(H;F;)z+`dU$NLLtj zOGssn{${SGvI5|FhPVW1NMf-_T??5;&qS^l9G{z6iG>e3UZfxrcUUn}Cg>3YK|A zEGDd$B`Rz0GZSN6LBa8a$gr1_q3OhEq0zbR-oP=Huw}aIhCU)wX`_8qV5UPQO8`ld z^=qpr%csS?TCf7|8h>GOlXkaY^dQs@9eKyWL6K)SS09oXKP)hNB$xs z!9xwXWd^uXTt;^1gpU5}>hOv)Yozs1Z;WH1-Kl_)^)UCjmEYFK=$zn2C<3D6eN(q; zRM$B(;PaS&rBP|kmlvmqivXrKnsL8HSP>=U@r0`*>xg_^3GX|R&c7nw)NR`aToF>` zEta?Up|^K_AhWkOf9iMBYm(@UX)>jIfltE6K3vyFWSfEQfLq=CCIzO57n(VtbL_9` zH!-jGEg>8lO$KjBVEgEGwbxkJt_@wz34H_t^{{hu$*JG3SC(Z0HpHKkG7@4#sVF6U z1HRwk5yfud^9~}PKFOV1ErGd$q1r@N_7#d@ptAIP$m)JZ{0Cr0T&A*#=pR{QOY$S) z(?KdSK1A|5`I%xEO%qYTrUs<8)qfB!xidq`=%tV)nx}uN?%W`psad0d`XgSrg~sVH5Z+-);H^(n`^$)oF@?R$SjFHA3;e`)akzQMsGx#>t3U~1nAArQ2J3BBiYR0`~0e4S&aL>JhXpN{gr9Ce78-AiZAfG6TjzFD*lmc zoN^&~ z2lQ8?AIlr2b#`-eExZ}M2&sdki2<|zERL%D&4WeVQ4U)l5~Cd7@@Vf@ZHB2GFfWD^xceLB$!)XUd# zZPUoW0)6^->45s*Vj_Xmk1g+YyKcKCY(xxcOpT(i-D@gPqQ>7WIoPsM8dbDAE5p{R zw?KblP6$d)*+w$D>JG4TbK8&;xvOu4w&lNm5)R029gPx0<_>>j3=*Z?j-vJ2w@yWqk zXiVbeRnN@M(23UL&(7mv_JBtBEWX(fz1a=GQEI`&$+b$B0F-8R-bd6Ih6?{&TmV$N zPdaOr%~X~FKrPTK`{FoKef=B&K3^r7YTE@jV8Th~0Ac2p?ONcmXrLc_^Zgps{_Qfb zY16ZdqT>PD-r@ynalk_uy#~Uok`7#-Ip2r(Yhxud8h{7|G%ei5X&DCv*>I)HUPH3q z`X3Ai@LK_W&V8#2+f?K{IegIlM`}RkS|YSx9WPUx@VGFjBrTN~)^fL4bJ@Gk^0H{> z2KeqRpm|Sd=*Z#Tok9K`_o&2uQKJ|~7YOOns;^G!2&IL3!6U?` z(P!z9&nro0_H(bmPlf3bcSMHBN$1zI*P7~wfBGOA;oGp;pFQAOyZSz5-d9 zzbv|;^Pa(#b7aS#+URN<_3|;h;rC?X!uiSt?5Ye69zOURJUqUQx8X?rSt%$r?e@}Y z1dB2Ma*)V3F8|&1nK}|xQw(lwxU&|kC`K)}naO&`hH)9+EhFiUa4S> zHd&y`ioiPWf!D||r-B1{|6R72|YQ7(QMv?)|@~Yr% zq2Puy+8S>Kkc*x1CP_NfAKcFH9%6RDNJSoaq?(_K3QHkldxE#?g72FXRHFKL$*tsY zgWLo$)IZ4y=vCy22BL4)GUdN+fj27AA@rswTf1Hxv>r_wf;qOd$5Z=O1e3le%R@2!9g{q zc%lNZD5vG*yuXkYny?!Caa?PqwH5kLN9(K>4G25RH&v(3D+RO=k9~aEfXS`W!-d%p zT9AD^{ntU24avbYa4EuhV;S3H#XpuXI4br`ZPC2@3|_!hgD|z`lf`$P-7h5q|B2huV@@7px29MY16EElJ z-WDh8?Yp_4mLVp$0b5y)?sb=8UnWfcd7Dp7Q?_Hi(Lg~k#Id4Up&KWjlZW7DA^yiN zG-lRzU8n?PWc7ztm%1-BtQ8?8JKRvvQi*|Qj$kMqfn8^8^K=bJxh zY;K9`TL+p|%eGZ)Yr~_d$Qo(6`0KN6`knfb8L!)6)U!SAPW$mDT-}=l-fr|M&3m^f zv#Dmgv~G`jAOFNgPeX_uu+s!mr%8VbHJ_i$rWob9@$qzV?RvK zzx8$x;H`^aLu1;X3S0{`AT&?a3cYtd)2cca<#vr#ZPsBxmq8K4i3`&J(FijUOhG#o z$1jl`ziuHLjyp@!P#UlzT_@gp*}x2SXdQ%lnl4sR5h@s3O|%edpcCU;&n{GI%N|e- zz0|_iQ=5ks`%uhK3o6-`1#W_T8?QpqodjI^M-FKW`WABPLbSw&Fn z$-W}8SC0fGYWNH611!+snVi9>=91Pro(~`hd6EOa;%bTj(K>}{SkNo2-&2ur)h7^QjvC>dy*eVrZrO}RXO9jgW z{R?qfxDbt`0#vfXY+=Zh4b(96o9`BT>SG}v^z?WG3iJ_1shEfzspTAT80usF(R7|e zu*yMFQOeRO*f9|`!25k1DvDFgYeaXBUlmcj2lX zp%9x-g4B>3=1&GCVbB5wdS)PqhDfE8iI-}70AS^)B!a#k;%gAvsHMyEy3W}S{fdQ% z4W0}TxTxvfW|T|^fQAwX0E0kZ9b1CXAw!|xZ90@fCR?DV0st`+qahDEO6HjorzvkY z!DS6n2phveIzmDOWVDzEsLYxeIWiskUY0>2S)ie#?XeJz*^zyYIHuX5!%ET!tY;i5 zPT2o5&4@xc;Uk;|!)hp=JoLq`Ty$Jq4YLxQsegJ8-VRaiM$Ud;__&&i+7^zeSjSkD zie2_yWT-*F2R*h@%c1J$&82c9U}f;&Jnjz@{&k&P4{~}xoJ`q(Dn_Gx)heSl`~VFw zSK19Zj$_Iu5Q>i_~>^ef9>fgp?T!7a)DsW2^gZWJ3Z8yiyCVIwjC+1_eAbpOCbPuBjqbXKN=oH z11pseC%b0G590E~ky2rv;DqmC>8zZ(}grNy{$W$4f$S%Y5h z8+#TTpV^}1g1j#W9y#rYnol;$qh!a{x!DPK6y@OM45uBZ=f!Dm_( ziM$9}Ip@;#XYYx}eREC32P>@VYu*NyWxY!16NLgnC-KoLFeSR(d8*WxGkP@a$BX%l z8$=9`whdK{RYj`0JDq=+H;Df{Ng;W3M%vd*;=O$c5m)6Vyx)|L!2OKNVRhA{T64JN z{51aFcqb8PV*jhyORUaN{4_pFBQow0kqu9lB#y+v#*LOH?6*D>EIuNf2~tFjHBdB4 z4GYb|!#FF%6G1OW;1;oC9RiC>IO4=s^0d))iEMVlhl%>6GHlVH{sWQd=_LZQiidKr zVItU$ovjnt(@e`Xq0 zs|MJ;DjxQ8VMaFq`np8;w)%8;P1G8ZEL$b~%zo8CQS8KPl?Yy&={+%#X3?C}W@qqq z(#RU-@-ojC(aS}ciUsx?zmJW=@Ll1?`Tp-7RAgD=_yl)X1#xw|j8@jLVnDMH`Fm8| zC{a}o!EjgGfmD1B!o*^cZ|_<;-Cr*tJW~(H>#hBib1UIk`1Yd(pF{O^5%T*- zIuXg)Vu%h8s?QiBLF?;|thnz`*3=&mNI$=OnB2Ber?P=9%G)j9{G=|IqAEgK-TGo! z<^H$sye-59z^nJu-8R=I0pIuKHyC~>QQa?1{Fx`&Gq<31A^4}| zj_#$aV}l1+`66gi`9cco#l%8@{ag328rMhLToII>Ra{(x+b&&IrqUatgL3fFFbE1* zACOR9&*yYih-p^G%89V|_K$FQ?w-zrf8&vICMR-gw?P{DH%raui_TbM)PJ#R!H}AkJ=@&wCS}R59a@&8W1Aj?!ht! zm$d&|DxdG_74UF<5CBW~YmO7S{xSMtV9fF{E>Z zF1{A^VCq7Z6d=P^=V=Ul(+Arj8Ems|3ZPyxhAiQjBe#=cUy?6%z_5oCg(8FP0lJVD z=^T|UME)1&jQlGY_tU1^C3`T(#d-R~H|oNq*x1d*C=+(1P-dVal(#=?g|rn4>M=yB zQe0e*D@cyCerUOFIOost^l@^4XGd%MYQS7 zhk9-R5EnlUJv%qmGt8+#3shZNUHb cH{NmtIQ9JV(PlLH%aZOMGn+s1b~4ZY7vgn&#Q*>R literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-114x114.png b/feature/external-web-component/icons/icon-114x114.png new file mode 100644 index 0000000000000000000000000000000000000000..fa813ad5921e4d40e120838a9efc0e3eaa7cadbe GIT binary patch literal 1080 zcmV-81jqY{P)LzX#hyrT_j?#!f4+&aPo9q8hPT zS}LFq*c%jO#slswn(}f$;bxDBkuowKF)igYAZlfbQBAGrA{~G)FH;Wzz^Lg8?r>tH zgWBWOTG16FPI#s}YT5p*p$lf5F%J&yaHYB8OhdPLh44*@WQRSk3vAd0H-==VrReBJ zdpNvOUG79^A8!srKV$+V7DM%R11!-uT$Ce^eSiZW^9dVtWVUe zSHz3*Kw)j@m7bC`^@Ae!z%yUbJ9a6W?$PX+5C4CPrhiaW0Dzf9igoG-MXG^kmPCSe zvVKscHu~&oxOz=k&x_PVlYFts_M|9DONpCmKA*@c;Mu~dn|h6}QBIPcPMZz=h*{&s z?RppL)8?vv*j&y&=O{0~9dGt@t+^PwV~>mP+Wjr~^7CP`0E<<}#Y}h0XN&OGRB!vE zrXORb7`@y!J9%8vCmNpTO)c*LLL-la9A#?;wY%62^o%8`vNUIsk!|08Uy`=V(X?^^ zPlwB)3ptvtJVUHyifzB2qgicZXSsRNqThZ$M^n?Y-HQ~SWFs3ON0W(&<#5$AWV`l| zW?~$+g{k*NvLy2~7d-Q7YkG6|Je1n7n;vRLXpi$VwRS&0)wl~dxhy8Oz9xNr_7OZd zO0CD~%pM^-IwhXsO_`rvzFAhC>}W>?o9wrVQ>;136}UiCk}H*L$|x_@toASLJI>WK zB*xv<&|xgl>>wlC0r{G~`6vb%*-p;T98C-jlWHf(6<&{dP*PWZZtg;x>woL#1chM6!HQ)A;t|E#600009eV(zoC178T-^(N+$KMAoAuCT+GE$L znCJ=*aPMj&2&8H_} zSHI%vzp%+q=YH3nboKl?n`*^18+BLC&q;3JzO?-G>%EEn^L3*C95}>kRKLmQah#Y; z|Iyl;57_0_N!o?ZE6_jWTJ*~$GJl6L)5Dw3*DxyFyQylHczc@ZilXf49{cCL`&>{x zT|)kO>a70nmc^x>N7$a}ow%{nJL$dN+v4YXopX1myt%uy=(*m^UuB(hK=^lAXH1=M z`0=6}q1P-|H+Ii7vw87q#)n8LUV{zXLa$b3IvZ*4m>Kzdx;T&gr?SmLfT2i50r8jQvM81kOxMoVaVzo)Vosn|`kQ zbm85l)v=+5=2KlW%U<^8vhCRW#&7orp^XLgmUGHf?M^a$pZ+&eTx9LBJF#Zzu>vCd z_U_rXt7L`w!N6-fuP#-UVwXvcmWrKKs&-LNym+TiY|?D*U7yy@QK^}{=2UXBrH)he zeA}4&&u{EG$m1}j`tEb5=6|!lH1$uiuH4@7wSXree`+K5lv1|76H`xZ$&!1OeUX`a zM7t>t?>vv*4QDyEZ4|(4-XGC+*Yc zrfYLoY`O9{BII*RL(J0{Ur!U8?yHBh-PV0#@jq3}^~&>zOZ1VTX}=2&h_|VU*reVv z4Ef-(^i|(7n-!H55;R*|b{X`1SKP`FWrNmw+~^S0cYd20_GZ%OPq$XT)E z&ATh&FPxU<${AntnXgy(;8&UFo7<|{_w_XA?sj2b->~HU3#kt`81}E&!|<|di}8oe zlKdJE)c*z*oOhBx=AU`ktD$bm$H!3_5#`J7Zb&)9R>!IMaR2`bTL%5hU#ylEBpm=| OXa-MLKbLh*2~7Y-<`HNB literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-128x128.png b/feature/external-web-component/icons/icon-128x128.png new file mode 100644 index 0000000000000000000000000000000000000000..25764c30db2971422adf0ef54b6edc450218f949 GIT binary patch literal 1165 zcmV;81akX{P)C0000yP)t-sM{rC; zlMU~@4mE%T~ z-!5D(YK2g9B9Nw|O2!g>o67=aWEc#Bdz}9g2`xp{C@bISE%PCMoaBr3T?6?gp9)}PIji3^ zh|l@3mIufT2J%Zj2}S@WgY8ScxUSF!Tn6iNK7{f-g2P~Y$S+PO0&p3~=X?mI0E>a| zYOB3-}wOa!82nop`lvQ!GSx@w$ixFk(8qg(k zWeF?{F*vKfT+37MFvLJtZF%O;yG7@DM>?^ZDC=$J>CRM&_cHAy13nb>T_A(BcRr6YlD!EqhN3ka z0}p&0SR3?rP!jk!9}U*x&dEehPX;3LZ&B2v0kwe|x=Sk&hSupcgGBeIDF&s$9E0K# z%rZEtCJcGB0gVZhul(rQ3`E~xFP|YoLi8hQ5Sl05o$~2x6z&=%`SG=O62)Vs8_D^I(IRi+t{>q*DL;pPZ_SFp^KKaiTeewZMs}-s<^!k4yw$ zMeOc!h^y=$!XChm2r3Ag|6W4YShB(>X#H8NIS1!A*va{A7mgbX#4$M^*U9;)XaBmA zUu>seYTm_ax;9m_|hDG0eZ fP0R3)KmPa!uS}AXH_Nl*00000NkvXXu0mjf5{w~J literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-144x144.png b/feature/external-web-component/icons/icon-144x144.png new file mode 100644 index 0000000000000000000000000000000000000000..5ca0d1e693ed7736802b5c2e0f8160d6fa7615da GIT binary patch literal 1410 zcmV-|1%3L7P)KsE9Y4yjLcA$E`VRN_N3GLha08XkZfy|sWm9O*_6 z;&h-J8{APwLvthD>Tg!kNJM@_XltWeGrTb-+N~N|(wS~WgiDrQyn==XVi>q$(s6Y# z(2ga>09R%@$U#9fju;j$s7xnbJsjky;x#lfeNT{1A6wILB*yS{|BKu~8$B_mivh*U z-`51{O!u<=x-)Z?SgEg%A`En46IzHaW;C|FQ(?{+en#kTe~-Y4U(INsE7?FR+7r)m z2c3ggmdc(9n>-VMfbkkA{};>x<9`^Z;NVs9@IY`NKVhn!m2dWPzStw`Agr zoJ3Ed#wBE;9O$h%iS-m(1J1;g>H$RHi^O^goaK8MvwROfBk3N-EZ@V=i0_dt;(Dav z!t}^n_@3uy^kfepE_{!0(aQ8l!#@91J^lKAK5DdXc6Lx81qV;>di3O}*sK=G83VoR z(NmK8)?A7fmmyPia%yKCK&>8{5_BEh15Wv-{V zQ4yEPPD}b^QSaI7yFKp`BPf?YR%D6o!SL_xgg$<#XyALGKlT(Re4+?3@I5fs+h`vw z8i?0pW4dz;P85CFHq!edWu(&KoRzQPdV#7 z+!p0VGuqgmatvjCU({$9Rt2sHFx~AV;NeqiQq(1;=XK;q1)tpW@fhqO>DcP*9E$Lr$fc-O;)p-`u!*a4IrvH6A=ZA+%?!C z9Pf!j2^e3+jp%+HI%dPKI*v>_E$*8 zf5qLeLtRY$qcbXN`SyA+Mp?WFFYZ9>;jx(bj8+9-^yjO6pG0pV9TjnZ!=Rg~m`cxX zL*XLIe%%7S_1lYWesAKUB5Jic|a)alix^-rXPk*!LD}*FeEy$vO(3xPFOru=4Zc!K2yy< z*mEiC$9pQ>Pu4^B`JU&G>LJm48;CFWYZ Q*Z=?k07*qoM6N<$f*2CA_5c6? literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-150x150.png b/feature/external-web-component/icons/icon-150x150.png new file mode 100644 index 0000000000000000000000000000000000000000..491fcba7f3b79f909a7d9ae8405fb15ebf0a8e13 GIT binary patch literal 1366 zcmV-c1*!UpP)*^H)e!#EL4ejwGJ9J~g2NHDR#3!7F zKJ56&1`p_C+v>CgfzLSmSxN@{m!*Q(j0^{SKzO|HC%lb8hWU#ZI2`aU7C8)*k@z2i zYLr?;fFf%^;{AA?$fCKNB(MHjI$%bK@E-9mwYEY7weT7mIUE$Qu5zPttX8R5CM;m8 z_a0_bopeb9nup$nFJTAf-nphF`Si%=x zb2BT#o@tizoZN$#Yi{*j#bB)Zdy!RtFUG3B7g-JHrJyy!k7h;j;#Y7$FR~iSOF=K9 z>u<$-^|#`@6!hf`Ls=2qh*rn`U}eRjCUvgR7OMR!t5dj@(0 zcclTW*g{<|u_JG#C{PJ5^iuOS!0H*RTd-UN0=9ZycK^mImcO#4YF>)5y2oV(Xydhf zV+A`MtvB*=_?d~Gy7Er~wDGcESy_tSqt{wnD|1-!4-pD%HM|THtJ^`J0B97ijfvGQ zrUyWycxnG&MFgr3&tAc=H7`s}<&!IK*_az$ub`?=C;Bt6Ub}^Nm{=<~srm3;Gt}{# z9$r`{c&}K+YkFL1zp`EnyoCzfS2gp=E5$qkafP>t=1SNIWoXkJ?!8Z*u13U7 z$}K(wwAhm+B6(4dTA(3Q!7JUithE1uitxRUR@RC86S|YvrLkwX4i3usE?z!6?B6es z^JaZEv)gWkT;_dH-J+FzQ!o0~b!Ao%dF8U#v+cYREfOu6%xkWpV0zKai=vV89(de6 zcWmqBZ>i6Dha>Yt!8?KFNZ;vbYVb6L~(3JnJ z<5kElicTu`s#cIkyj87*nTM*9*Ddlgnwf{HV_iPg&baGxZ(rIbS2lMj3pb`7=U4(S zTx9n`#x^by%$(LCT&v@2)6yZk4rIObr5kn%2kiGSrk>k~puOESg2J)gJa>9j%`taYHmu%EdE)L*z(j-oi9l%Tb`wl-*3vHfX5eRMYLXbVF zH}(q2!XK2!i>2E>Cn4ceT(y{XB-1rJ$(f;tS5C^T5XAsqlB@^`-MwVt(92n9NAY^l zd@uJs_FvIphEs5XMEf3TlfOyL8ZOp+W!qwp`3jkrhy8faYoI-Lji<0AlmK7~cq7>U zw?&OKm=k+jm6?XLLOG-rnjx)v=KPEg!~tW~G3O_IWQIO4H~eFug!m)=7FS;GsMEn0JR68irs!w#D~qKMeXz(gYg$hr&iR&nx`+@#6=> YKL8xr0BU3}UH||907*qoM6N<$g8534;{X5v literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-152x152.png b/feature/external-web-component/icons/icon-152x152.png new file mode 100644 index 0000000000000000000000000000000000000000..e2f866af70366766ddc91e83903c32b1cc6e8243 GIT binary patch literal 1360 zcmV-W1+V&vP)0{{R3FC5Sl0000#P)t-sM{rC- zmgGg1<3*L@MU~@4mE%Q~<3*L^M3v)3mE=X0<3*L@MU~@4mE%Q};zgC?M3&=4mE%Q~ z<3*L@MU~|19v0yM000$qQchC<5<_*9rG#21Pqz5~+8WRZ>Sn<+`^o8I000E5Nkl!9Os3q3T z@*mvnsS)~}1$OMH0m8(85qqkR-}wT2P-TqcYX+)HC%go8W0v@z*puop@C`0dExcvW zRGN)^OAK^}Syw}^5G-F%mj7XJKi%g*&$DobR8akPPmeQk4qs4ZqM@gWoMSEdFU6Cd zrDI9?zBCNph?(ImV{0PnX}lnbRs$Rw&iuqg5ygJJ;+{amT#~&=ymaHvpv)A^+G1i)=XD@h|`vt zWq0yM4|6amGVA%0y(6GiGGx`*GG4XJjDi$H6NkW_`0YW&8Hb3}Q;oDwrLPvtB1e zcr>UgubTN(GJj#E-HFOFzj}Yab0uEpvM(+6MYE~I3mF!@%+2@AOpzDuBAGPI<|41~ z=O>7?%uD?4oV9$fv!I>nWsT);2Rpb=e$8u`5p~YV80UP;*7VLKHn|Wom)S<#Z8*ryhuy!;bt?#h9y@q3+u+85X-QE2~&Fu3Ppf ze@H9Ltg0E-Y7!wFGG`|RI%dQOW-|d1Gee4`zb40VAt3WCks?d}?6le{8(`0yL4GGi zdd`~-Tw~sz3(Pjg5U0qNH!~J%S;uVmnGO+1laMz%Fdj8#*5hbZ&#Y@nj6%9MTOd~7 zET8=K&2U6mCPg?yg=WA+1|kmOjOwn_XbQ9KN(4rFfssB zkfpXx?_3>A+#<^J|nW+}$-fW{r%_6mG<{SH*80Z`OFdP`D zDt*d)x}_d|8F#*5Z{&lGlgoT8qpsa<8F*@ma2{idsIaYJ))@zt4<9~!DC8S%-tei{ S{cx=S0000005u}0{{R3yb+fl0000yP)t-sM{rC< zmgGpA&Xtysbv*Je0(eQY@DbMLK15j%XuOJpDR~!(|s~u0`o%i z0we2WpDL}$Yk;)Q8GavdZ34p;Pd_R^4tEhnZUU1y_xbY7q3!|d(vH6HAz9x7^c_Io zw|}!4TcnY-@yoZa;no4%8Vh)lIm><$^wS~5v#13g#+rs0-m-&d6 zzb!P4#$srtfw27%zKaP>HH4~FoQ{Rv5fMKX#)faUP>u2-{v+W!%!jDGQ>Yn}BYlYN zBWBIQSRbPNo;!p#5BDKLYOSR_8pugLWI2fXAl#|?Af)Ppkg5+tsy+yb`XD^0`XHq0 zgOI8ZLYh8ACaOLNsrn$K=|fba?GyGO>;tdv6WWEiZ83N)X7IR6<-#XJf;p{fG;i^j z_s6onyQ3V*lOdNYpQ-4x9mZ2@qdvPj-jCtwSU&S1VF1r;rNcK%DC}OEK3&RiA?ixo z#}9BeD>;`oju|4bsjL6<0P80}?*oLsbooT8O(yYp`%IPX^Wo=q{sIU$3wi4Eu~-?Y z86k9?K9NzBhYDkt50eU6u(86_=VKPt^>oU^@+5sdxYi&;iZqM^Xn%xg!e2Vll#*b`9&S6uOZ*CF~#;2F6?h( zV=g7Fnw>^$^|?#Fmja>8_YI44-uJIz2;qij9WsjD7V5J$!e9V#u27)-K#0$rlGsck z7AXGe5%L3=9{@2}D4#-KS-?li3s8kg|6bRXPr%wGR%McqT0RJy2FLTo_)9p#R-+Nz80d5bhqFms{ArH4D6yIYRSV1vSoA zuVgdzAtbDzdG{RxTX3EbWzb>d58}58yD;+q2>F4N!sv*- zLx_5$=bTg8!iZW(Q)saXX$mC@4NW0OpEz5nDFT^n2^B6eO`${2HA|Q-h5P#f-v&xT z9Htb$u?jju{=}!B;FZiiP@PZ}vrbte( z6JTOt z`-&(2CcF}f_{iQROD>J@$wJ){YBo8hA#{w`V z9w$J{sAREWudHNXlp>T3+p97%dXdJ*ggQesT)TBIWnUQO2ssMy%{SkC^ADr%s zmE}jA<3yF>MU~`5mE=X0<3*L@MU~@4mE%Q~<3*L@MU~@4mE%Q~<3*L@MU~@4mE%Q~ z<0phJ`~Uy|5_D2dQvePH9V|RfV|I#~r?bP<;p_NyCDB~~00kyVL_t(|UhUj%Z>%a5 z1z=tU1Vs4%KlY|c+jSj>f%ZiAZZhlBNsmn)L2zSHab4bd=N+lFR?Lmsr@eh-&%v@) zF1h_b#Y>J#^R0w*VW(8S!iOYgO)67+o=vl2=GIFwe3&Y=ehQx!4eeF3V!~Y7>v$ea zRR+$=qvw4aC30Y@y$v&HP_?WnMSpFxyEaaE32>ihT7$aKnI@b?^rKcBm*r(lRog^N z-x=H~afV6I`Ci+I8l357bXN)1W!8@A@$1%spppXQ<@oG`AH5?w|U7y{#Zv zTKoM(uj^CienErkDQA{Hx@fLgtJdE`WxcTyOzqcD-)?le_FJgj?{vz28ajQ33*8I~ z=y)Aar66liK*!Cw60GC;(5=VZwYVnh51`|-t5#eTm45-vJ?292+@@a***lql##v|m zgr-}Wh_63tQFAjBF=-mAg^0H^5gY3)R96BfB3<0tNA>|Uk}(mjwHn<_shLP%&IFV> z6Hw+%K$$ZEWzGbYITKLkOh9=vk(D_UQ07cPc{7p7oCzpvCZZy1CL*`Lz*KI;l*U?X z6sc1B{bi@CWi6lbjczlMhVm&>hU5Pirzn)6wpUE$&Sz0>Z&MQo^JZt4PPkQRQyVb# z);S<5nmufNCKVJD(U2)$9g}W=N?&Fwq8`PI@pAgFOLrP

<;=w#;o7qff0ImAM76r54@h#3llehpnWGYpr zu04Y(*<1t#v(un`s0mM?>xGMtY^L_Rt?Ia&z5*qdD>pGppSF_MW$sxcu2IMUUD5F* zQJsn0)6qqd4KQOp!HVP@h0U3<`#-YLvJhDJD>A9#0id~ChBTQ8o zd`YouQI7>4j^+S83YLmW8B8=h9W=?O%v~LiT*;xE{Q}4UzJENZuu04 zumC{46F@xK+md666=m zASth^Z|)S5*fe?Jy3N~vM_IbJlyS3gxKHzxn18*DD+D(|$WOWP+_MS;e1rl;3C9@5{HyOnq!^sK=Uhy7iSU P&}s%xS3j3^P6yMZ>=J*3aq++-@bhllT=!3C5^p{ z*f=bCc>}kQGrr^k@NV*0wJb^i-$>zp(E``RibtjCerC36TCr6Mz%Y&Ndw)2D09iWPmi@8ZU%yB{YY(x znoB{&ezh8HF6C*HN=l>Os?&J$=es!E%tg)LT&ek+>+}uHK$@w!oxY(NNHaCJ(>F8& zY5wN6n!mZI`J3y=@i({C{LMwp-&`jge{+wTzZrzQojJ?-t=UeSlyWl`SY%bgwwWgF z%MZ077+lZ^+h#HmpYxj-N_KC@x)8C>PcW)!#g@6XHMJ;$0hMpPVJ3w~>Fd>E^Vnh5 zc$^a)#<oiQ&#C}wMqTv za4;+ff34bJzZvwwvp51aa&|<5s_WF- zCuWF^rw!=3Gemu2ri4E&yP~Vqq(3l2t{$Boqt+ef`r#)HL)G#FGgat!YJyV=9p?H- zI~c28`^_Nmr^Q2`dO1lQmJW0EXsv~z$C^yP8C*H38|C%<6`1HOIO(*HaY*y=n>Ps~ctzzOuYm&jL<~Wao=E23zXj z@}AnjNtyr0(Brb(7CjOUm*o zLS&&9FB9!W?A-BZDkBU7wSOHa+}?hye*V-tRvqKsI8n{=rsqSS2CMb!y>HuD-Fhn5 zAu>2a!~vRuukQ3@5qYSOP7gcRYs9VE4;h=OUPugcwHg;IFLkKr`yo}6B@tPv#Zph5 zr&QVUqgunzs@r%u)~h()F_SR3ZSQNJk`|4>CZzyl%gf$sH@E)=w!+}l{u;flHZV4u z@bi7XmB(4#UK3U~9t&e5*R3{u29O-P)vnBB$JN+-YTrO-7#;Piec6E+p6ylZdY6yC zT2)g(*6Iq)T-`oB_^V^N5LrYGb+wI?9wt`=BMb98wW=o{*6Xoq`$kbAOq$Wv=)}Qa;^pfXBN?ed1G8snWH9C_4ARC7d zZIv14%t2jBJ|Qkxa>ZQIz(`%^b1^?;IjiTeYeofp)jk}2A_9|jV_me>BA3q`N+{f` zY?l$fHo@>HtQBj0a0z@(!uSX#ov@VL)P9e`0gFgX(nUY}=;S2eCtJ21p7X#Ys{R#b zEe>96%)qoTBc?UtUK3yQaq@=d#ql@Sd8X!e`G#hkZfHh%Lo;e%74?`g0H|+ z;f^Qu25`S)t$ZU6uP6LeBeQveqyNj3~1#zI|U%*1RrO?aSH5{ zB5q(4dx1_RZQ?D^pUga$G0+jvxI>VPW}&6O22dJ&mh|IUsPi+_1fM1T7bR%8kA~0E z@aG0HTzC>v_;Z7T7YdmAV*^p~4eHV(Js~VdcjN*-jI2L2Fb>}k8FW=T2EKpIeHP<> zWRTt$Ai?KR;U@+QzM)D6=i<(F5jpg=%dZ=(9P&dNHK6;Vd`W(a4@ekk)TxW|QGBhUx$_ePlAk}aPMu$tq5MfmDGkH;EnqjlSX%ts(&eHO@Il*w@vHKqV?b9V@IZ~s zKZ^EaLM;L=C#@0t`Axx1oPujHi^GBZa$nM48s9q{%I|QW0#_k?#i9KAy=G%I?bG~8 zbjlR2FwiZG?w?b{9*xPgPxI3ogs!Ygt=?9=;vrZ%qxbX6y7}6fD1jL8JpVSlQ|>Vn zXm^Q0vd8j^u=`Mfh*uc+gAcO%H%peu=Nrg6`1{k_^tpEgvS%2SgZahoLlM*R^6o^yP?44b;K>a7$-l&;UM)9?VY#8n7@h{ro+F z{z!&TlKc5Pmr%b3<+?#Y^3y?lxj`HM{pmEyVH}t^_WP5C%)+=qC>Ok3zuo^7#BZzy z%UK59e0lVB-Skx3pieXC^q-gUz1ovOOy_>$K*0{8k{N!i1`C{3gHHdykg+*d1DDP) z=;sIFI(psVVKe8DIOT!5W?`sP1(&A2tBFdcSDs zlAc#tlKhjgvu5WS3+& z53T;8719zPgGl?n8txQQmKCYNm2*)eEt)1z30A`Bz}vfF7e68-&tb z2r5t}sDY^)XSk&1sll?b^Gg=}EHyBWw&Rm!bI45H8Z^8i9`hsj8qf}%eOblB!qLE* zz5J+NcOhZrXb?5r5Ek!bx{Iosqd{nT^NlG*@*_sW(E!oq)~v%P3e8W)3>yPVG+X(x z3YL3Qijy=yua=|9{rs>XAp#df?&gPNksv1cR7<{vl)V2D&gyW3>J!{Rf(J&JQc3(K z;ErJb&y>uP1Kx>V^j^qwzzv~%%Q@!eS8?;w`!D1P;E&05NsyL0&%d*x_c>~;xQUVCD9)>n*PteN{&h=PEhu1~VSO$rGMIhL2Xjm*5pgm(s+p-;O+VO9`vz3?~7 z3X$*IbLmCI`gXo3S`*uURQL~CORW27ZdFNP>x4=2qnc^|Il{xDVtr~k61PNiMVL&b ze;nEVfeM1j^l9q3T%79inab>C9r*(D`X+ivGR+EmgGVcw8%>k zGXH2SWFgUX)8!|M{jI@@t77U86nSExtWdZIzuka}{HY?{Z@{RyM8F3xhJ*pLl}{9r zh5;j8SymW22Fw=gl0pYc28=W=#FSF>WsYd2kuvnr8RnsDKm}_9Dp(s(!P8hg-x(vFzo?wnBNB{ z)2#}V;iRFzn5vWA@3}*9z?#9ntO+vSrErS|5&P$XuQRLHxu1aiziXxpg z^av}cDEy*9Y!d`3F1)`mXAS*G?1GFUtr>(KP3*bCkm|R}cJ?HpyYP(8w%9Yyr%$6D z7mmfTWDo%nMXo4{zF~!Gc6uHvh!sVW7b?&&KdZSfDV(@YfrdG`*%d`o7j0(e2BGSw z3NNlw%>On&D*)1T19#2Qwf+1NcbVTSbZT~dglfO6eb&5Mxi4>a@BqARLvy_1#bG`K zzsbe-O|-2upyH{V7C|BNt+q`44+|a(x)YpfQa;>s$*Q&r=^m8+_Us}Bhe|)OeeCAdmx9MwM-nb>j@Pr z&4#MzAaq+%97Nv}?3c=z2TYN45V9;O5}`Nj&il0U#{_}aE^tNRSoLY=m!G1msP^pK zHiGR~Y~9ReI2M{kpB5E!1Y3pa5UdpaoFK1YwmPBWRJ|D139HE{{Cq6NPgZR$oD}k@ zPm4XnVi+iT=Jwe4qh=P$~9~%HPpD%^EmoLaZ1QSKuUk_Lk zl(N+m=blRsl%y0ojSWeUI=Mvm=Th#aCzNe+N^2LyBA*Wmr|r>Mdqkl5rPx#f07?ow zZb1}YO?Ho#qI;1R(k`5+~?K z?y;_aL6&9%A-^)TEcis(BNmp;f?ncc?l&F`Bh4OC?Vd?;l<3XJf~Q?LN7-GA|0myk e^UXKkeDezklP)!9h#*b?0000t7eLJKB&YHT}S{K zWw4&P>-oq;dL{Gi^cRT_Cl&$#$fF%FHsrW-e@q0WkDDsV`Apq&_)dk2{BbbQiT{K;~Xxxy*AU*xu{q@M62<_2q|oM~Vr zaIYrsw+-*Kr`A>;OV)I$;tHF~V36xKZG%X(UT_7cCF&sZdC1Q%PZ#)yDjD5>G^*j8 zG!XD+5N4bPjSR0VM7y7vcG-&$xJ3zKIR<&{e#LPEQ*T~NeQkSCank|6!L*l0lW??B z!)9HJsqn=?ZBYgSBN*>F<}cGDqT-}k*>)Mer3N*t>zU5V24(w+x-FXKtCNNm7P=W< z@a1gV`ge#G8B`y_h%qJ$|E}Ma3)B>DIxfdciHk7(2#Iw1z|f75CBdrMwG0UylRI>1 zqqW5DYFu%juZR3lLc~#i2aSID?1@Q}qe;`iob2qZ@0Tm?z$+Kj4UVRe!(4*qDaq4K zn5AK!QrHkEt)aSTY^ccM3gvobI7G2Z4Z|uSRZ-JP7Ebz5g`i>6#0PHd+pcNk;=3>ZdbM1@isQ&62Mt0@m5Zp&(d!2?$pLou`cIP#bO zPi!2y*c?n~ZBQxir_rkW{>?M%=x6cVYPz2;{l&}1fp3suD{)r#uv3bjD(JZA+v#Pw z4C$mSk-P6;;JquC&)5*(hs!R2&#X@h8jS`H0AAxLzm<>>j!#&E=oiXGR7QbuHL_E! zCcOOwd$nayzrtl~eO*F3-I;K)5VBgNx%WwajWj3Cz z@pT(2m~(f6`xl}(;?OY`Rj1OzhXd=(IaqFNF_**fD37zoD4gy_F=Lu>iXhYEv6PEZ zKzq^i0&hBq@Kg=HRYwTmP2@hFJrP0{x};J=;Num9k>wmH?VF8=CY_u%+l zd(Y2|EndF{R(qwJ!93QC%TGq!&qBBfY#?uJGCm8UH#U)(s0Ioi?O!3y{mAUwheO?d zZ^Z~-LuWp70lo3_iK=|UqQ!VX-Q4c}`5q=e_VZ8sIFHm?M|Eghj|$YOxp)}=lbLp{ zI#pE>#{bq5pYk87amOR2bz0|S!(DPZXNI{xPJ%eMHmHi?XPH{QFAMbg~9JHrrlDApq ztFb0X`9BuOH5%H+-D*q3hrBMYh?c^sda~?s?D=h6GuezMN#Oz53illOZI9=FS6H#- zUB)bUx6zO6GE|I^z(@}>Y|M`>y{Z_`+;uGOb%c@x(W z4Clbmy?4B(h`lq>@0=$rJ=x-2VCwS&6z6rx)N<^vu}X9J8$&wy?bcLi*a(6~|KZzM z2Xol!N~#JQX*h?+a6UBE*5sAf%T1Mq&ILy@1InE(|C<>WRmpd==eIf5+b?F-owOQm zIC5RzYW2_-lA!m}ly~^euU^UX4`uY>AcAMKW3O|5gIoR6to++e;!j7t!ytD&AFSXn zP!?d-j8BMgR^5f`6$@W%L%X_TxxpT*8ys6Mg^&;bWv%zp^?=2blspr7RK84K6@KC> zCqY=wu-Bc@*Mlag=GqlpAvxHUbXK~RMSm2_^?ot$?B0@#tTU+i92Mx#d0E@8Fg$g5 z;fl0To8Cbmi^-MVWmg=wsaC87;U;se1r6r#1q5T{%mPSz)|={c>-SsNIG7D#GRNue zixOfini8x@U9>!4@3B-y1{#T?XpPT^_w@Gph$quqO=>D-l`zp68Nd}!o@I4{QCSwr z!1e1U#eIJ0a3|aY9;9|DCtmp{T8pu7Rj7?N;k<>d9Yi;hWShE{PHJnm^enJ}NE8#? zYI2JdGcbMu&1E@X_3!ws)*UR zw5!sP5wua_4QWUP+Q>FR8uElj12s=Vp9dCAfv&r%cY$H9%W@p;4>mO_jZ2^WM{kIu zR}843pGIQwK`U%U^E7Zsa~6vjTq0&e_TWb21aF_xj}dnV#fu!XN8s$P=9v9gu3<+b zg(i)diyz`N3nK>n<^$EZMQbJs@DGTRc<~$PKiCFL6!wXLr%rC}^eeyt>w>Ab^-25- D0Fu(G literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-24x24.png b/feature/external-web-component/icons/icon-24x24.png new file mode 100644 index 0000000000000000000000000000000000000000..0fba91d43e61e2c311a6e2e2e68679feb64ef429 GIT binary patch literal 381 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaAg$MYAxVjhkxJ`fRHTS;jj3=&B zAHxuk4dzY(iFiy0l1~Dse1Zy2ed0Fdkqc14w8tO>)8ztUKXI7`)c92S>A816D`ZQ8 z{DK+e*hTmK|Jgj>)1ZX!8T0*1nhyv2Te0Y_QXhuK{~KQMT@`njxgN@xNA8!@p; literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-256x256.png b/feature/external-web-component/icons/icon-256x256.png new file mode 100644 index 0000000000000000000000000000000000000000..ff7c3d1251806a73daa03dcbc1c60ddfb991929a GIT binary patch literal 2209 zcmaKudpy&R8ppqDEUnE}Qkq1_{ch%#Hj7-6r1X;|t2oI0){SP1Uv9}xZW}SzI7lvq z2oq_{E%}8Q6S<_qTr$>n{BeG-*ZJeT&gbw)`Ij$5!{nv5s6=W@oWI7lxUlIFGpysjUPV`O?C{4I$eXt z7_G==;K8-0NoPvYT8|0wcYg|eh?@dj1zJI~UJ4GknLQ`*C#2mk~IM2y=MN1MZ7Bh4o8xr;EuH zoc~kd^0AiEgUsScYI6)FNB2f4rCS0e<4T^saIn{%8CA%txQ97K<|RW8CVw`NX{{Z) zbyF2DG*@!aaw~b;73E#qTQ(-?V_bD}5mdzkGP2qxJJfQ1VRo9iq-+yYYw5{Ec#S&n9t@OsRtjLvH`n%I3GESB@#b`b38>Ypuz>( zW#uRixhVoJ=I{*@?0fI)UQX;0e)%h6Yb1$D`U{uf&R?&mxLA_%NI^%aMaQs2LFQ+& zs~jJ6`9=xFKHBC%h5*NDxyID!MtDvJG0WMAU#}~r47~#Qlp=MIZig&$EJ_B8MbZ8jPhyF0$N6o{O+F}9g^i%;T_!P$UauBXR(ASt zF7RS@{NBINmq~e@uUBJsmSEGq97eZ6gs`TQzMB2}UCNp+MR8U!|q_?o#U{PAYJ z58~iK>elWGee(h|nJV9c+8AssZ{&0^Khs;S1ei54GHPAkOfkOs^DqzBB8?{@PQY{@-?xSKoJn$SApy46TaxGt9>a+>V<>M!Bj@w z8HBjq<6ox6TEbA05AN0U1iiT&7DoAe~FN$UJy_(0V zKawjEX~Fu~7UfKHn9SC3G5E{bxY6*6VYtbbMPe(B0gLV@=X;z=4C+CA{{iXIDS>Pd z+~aSBh5!ltULDhOs|cXP1p$14Vpl@L%^=kjNM3Ty6m#kw>I_ftr&)_(+UmL#|G-p>R(!WZW<9tB*wNi?apX{On8M z7wa%ZJSP@pP<dM8WL^K%I;VdE-xk+<-&W zoD^BywWIAoPsG(Tssq`#MRmW*}<5y<-vK*Y(irqWtR>6={G`y4yK{ zd$ug9TI#@HLem69InU%3M92Dah#mTZEIH++Dw;~P(4$k%dLIU6$|zn)kTTl{EGg#T z2{bW1A*E@ef+^xc~}<}LM-r^u2xKE^)1$im(&G<)3Po5R}O!AT=X`--;3A zel#{H9^YPLsQWO!Y)?j$@Up3~c^!Jl^f+Jov0y6yscC2f4_2gaB#LhI~ zAzn{(rI6bvpQ^eoLR6q7H9d&=A!@l;)q(F2XmU&%Q~rXlvW`rZRoJgxHmS19Xc@2R zlz4;fd#r)r8T6={M4D0Go8#oUf0X#6)jEHY>a;<5GZ6{DQ?GGsUp1xtChXcW@5oro zqzI2rMLl%@6xLtq7vT-B^ID38OWtd@_Ymf%{!1@JSJG>|Fh$BcPXl0Q?PyhrCqDQ$ D4+}Jm literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-310x310.png b/feature/external-web-component/icons/icon-310x310.png new file mode 100644 index 0000000000000000000000000000000000000000..1a84f69d41174e8846bc0d2276da9d830806438d GIT binary patch literal 2639 zcmb7`dpOe#8^=k-qwOOfqJx~lZx-yAfXvwVA5LjBr@`#a|umCbbx!9Q8^igaJK436Ba zMv0+Fol^B@*;Lu!78mmuB2#ZVO+xxp#OQA#o_xwVsv|P+ES>Bqr$8mxpLmc2nL5aLFSdNZ99C&upDJc-SL;uU8jQYqM2_ooSi1I9 z&K+~eA?~oKs;#xm6uUPmW#uMvu4ZB9tK|66RegGS8Xd>P!Zh9@HZkXu-Z8mbCNeU= z|FY@95~0)OMiSQ?)zpNgHleVP%;V-2ad}rYe7l3ov=h>!L?`I0et)f0!l4w?vfzZp zC{Yi!oBgYvT&WkO(<=d(lCWnSi)TUW;^>*BOxPM9&DuEHG+m&dFxz&pFa3iK>(qUBV^%`k=+d0^c})ofCjoAA~h?}ea0}3dM7P)cz zb*7Q`lmMO8Mh&cB#WG1|33?UN(5X|W?MYy@ykq7JhlUGPm*rjiic)T{?A#l)%8J0U z!^G5AL2x@T>cs!If_0v53<7$Kgq&?qvwcJmf1C*8_YnOKB8*W80f~tv#wqTk(Galo z``xUus&=LoPnR;&c z(Id$gtks0;h@<$Mr5x2a&bdDSxPL0I6!(Pg!@eCIBmoBs-)4__pDb{D{9TA^L$I}m z&J=`3qPU`ltM?Oqt-cb1pEHPp>hBUFodw;vy36NPc0@r)bo z!ZDRizkaW~i^M<=k$AhGdN|Xht(R*0SpC>XuiwIfS=*=Hi^xU^Uu-d^(II{j*?d`b z>4nn<&5|F|kuXoI|H^6faN)PaE+Ua`u-IHO-v~2)`=zmgpd?~coxhrIvNhKqcSxGA z)%YO&6tJy~0hLU`!*g}~)*m#P(Ak$tT<6SwoDsiqW@H7wIJO3=|2Pt6<$U&vPd=tf zN&5}#yfc*|C{*mK58Tu~33|?p$)|z=pY09TGw*86E>*2ObnzdJy-utL>MXdL(c8?I z*{?a<%*mJu1?wY`nD2GO*)L`(aVWwfr@bI(nx^SF{1|sGY7fK( zd23hMOuW|_xGR~xlBHu2XC5a#bi9sKr*L}u19UYXP$xgv1 zI-qL#gOjPWzc$)PU%k@Wo65i9ieHiRp&wU(p&?y%6Z=k1$Hi=E#IS%BdWB=vD^hk1A5^|Ckp22H#E!;QDrlK#{m|(jOdf=>_a+~Wy zCzV~oYvIbhkz}-#H{ov}*(O^#NfeO#yt{S*Gt&}wujAZEXfJy#)8^^zzMNUoz>-;M zKcQHDS$7LEvp=nujwd%W4uPz7#RA`W|0pIm3lyvkbCmru$lvrhwdzts_^eN{)kx;m zace_AC}EjOB7du$2C@YO0*?u;w((<}qhXO4FAlh^uZ^m?nKm1+kj`Z9C{``MYGt$w zdH{*EuGoi=dsWyx@ugq}M+1Xt)jzq;Dr}uwq*iU@!SFRGzpCLaz=do*Y=Knj== zQ=7)EI|*q4J~x2ZUW9#^m55Q!OUXD4!>1AUuCfn}#~gST=#~S)EH?j1_X%jdOZKA9 zpu762e|UBa6q=7@d*G3n!C0rZtOwu_opdtX!@@wBM&)&6AhYX(fEexG@7QYj@AS(P zJfqo|0+Q`plMWUOh*+fgRVUxGxssaEM2we-rJ_ zLvQuyc6yq$m(-q5?NMRb9I3Ff! z{fyjPPe*s?01I>##V`eoJejphX8qJ@p5-b914^hnD60btJ=z1*=G%$U_#5Hkk=#@= z?%Z#|l4iD2qH~8N)S{AVK9?-$LvyHqSf2fCXz7dFwZ!8R&E*~|gdawmS_{<}rIZh8 z#3Nceo%kqRCIu<7Pdcdm5b|!TLhuF4K4k=-e}A^{2|8CkW35(1wBLK`ANb2BRlpjp zULj8Vu3!3|J-5F>s~;2uFOlypvd}IB7X@YR4`|SOO8|qqh_H|#o=SoIiByIH>Vymc zGTxNxx(2sth=bdJ(Q76GDMRF#4$W2AF*}6Ew^2#O3}y(bIU9eO6d0 z4PATcXMpL1nHWIJs(GhLC&{FtI6qCKRytIxsnf|mF(xpnx&J`0fduWpWbBHvD~6&Oye_r9 PFHZ<&?_yVDdsUh{6dPJIkR4_#nv z_esxOr#x|;`UEO64Xy^tZ~@CgG`h`r1XKxRE4X~91R5?~666=mz*>H}Utq)kTReWv z^Og4JKKgbd+2ieBYjMK}g-!fDKxIEXT^vIy7<(_cPCKd~!g7JDCFIV;KQqkIs@t0bd*hd< zC6%cLujXrgC$RI>tb3w*H>YUa>vmaH?{50??#;^&yQD8I*ggG;TEL1||9=%l|C)LD z?8fKkf{&C0tNr<3GmY_j=iw(mt?z0*af#QF)N(oaCRV+Asq`I-9wDBLbeSDu7cyA7 z&hhLp%scm9@0?=6*;%&!yYkrAW+_ ztXYP)6=bYy`=iY0M4mJo;IZ*%rfH-1n z?F;|_X}?_7T{#H&pcgC8V7+FWQJ?84V~i`!0!Qu*5i&cKmHg z@yd?c4rza1kl&;g-}Y!CO{6Imv=>@@+({Rt0sBKalf6p=Ql}}=57GcnVl!Rx2LPoe zEnfqm#hnZ|8rMPUZI6^H-slvI=ck9N@ijY0ypSEQ@^*2lpe&%V>+6=aDhOht6tb$T*+h5E}7< zu^9odLZnVI~nhsEvZ_h?|!B#eGstGVs)@<8&CMv!Ad;9z=Y zAdBK{uJ=XmD>M}_=bt67_<`osLTil#FBW|O>As5(@sLSNJHVps*uTK=AivIYOmEQj zXjNqe$!IRz^}sUna9skMZm+$wqGc*$>+TDzGa;1q-gjfwl24n&r?5dimXGK(OidpE zvOGAHCJOZGIUtQ-*BCHI&MfFwll1f3m#0Ht2%X4WzE|D zftEbre1C7*H4%Okly0@_;NI8sA^VHr1>+=FNtJAiqws9yUMFp_ImAhLOGfuqX_(#S zaiEhuVo-n=*DF)Uu_hu&c5~}6`!+Aj=-De^lS3PqAiFmakh^!n?VIhuVhV7j1H3j8%=Mvet<@a7O0 z!4@n_5C?9jGJ%uKQNYS*IDor^r}2KuoAWpSL$7n2{}=Utl^4M4+=TOc1jDfPX^GCk zTV@pS-__-|^L7Mx$)H-7%JQ1;Qv6<2qd{ezYk$i#@>jH6KBVhT7Zac6HaKop>71&< z{t3l=a{ZyQdC>Q;v1Q2tjAG4xD(Ti~O3W|N@|ne%syofS?GV3`;a-yan~Y*N+FP3< z>OiWA>6VnEH-o^9xMA}kk@jlw_+%0BV%l}5XiXD=DDeUOfpPAX;*{);Z$0|lh@6=R zX|MjoQK3RU4cs_>vM?N-z2(Q9Lln=ubunEhn}FF{(?2BOlRM7dP7ZG?bF=C|%*M*pnPVk+FYUxKIAkn+tkg zTlWP~m*omy)jBpEX%lf;pbic@IZga}O{>%4Jsd*~>kU~=Ue|`DSnyMJw404?eimz# zN)F|J&@vO?km;+@xyh$-js>Coh&Oj;3+c}|4WUt7Vv%{bB-|cGBk-qc0EzT~+k)pX zIeXl)V%L)3h?_JLUcD`7P8Wgk6JGWd4Y`Vlg8L3qRY)DryUhJjCAnOen_7Cm6mgE} zt3}clLR%7O!?e}%n0jFvJ?OUC{r7uNup8(2+1ZQQTB!8Z@xD453{ zy*;}N0e{Ko=msWFyYJS<&Ccx5IC%YN!&%mkB>@+syRtbfcYV;WxwfWagg0W|AG?Lk z?npmtdMl?cN197QbN)h&&f2*2pWHet`lYt~>ncwR9+S_RO=e7-Gmw-uP4vEuCHNEW zU-aU{jBb|Yqw?1A4F(4wD68TfC%tIIV+SsHNSERqU0W#GRXF-4EI!QWM$R+ba%NO^ zHufNRfqz{d{!ZS;=nM(=hUQ6g(^B}hb>{?{?OCh88L1*%*N8X$04B#Alg$=3d9I!N z99+Efk{#^)_a!=!e(39gk5ze@W@2PIT@4(# zV!XB$Ia8#zFS>pe0ru2~#umIy87+Xqp1@IrGH1oSkHfs5T?iKIVaIdn0tU+e#`ho@ zI{jeBapnuT6gTs4xfc~SQbUMa;?EYXE5+ca=f$8cC<TtfKC_C%0tspEr|=(@lW!=rA=*WR|f!W;#>Doj`Py!nh?9rVwWDw+*#w@ zYkTx%!Hc8Fs9gfDIGKx|0n4u@0OFl4^6M+@r{Y4%uckWzz+-OgJU@BYD{7a( z=Fy${c=k%flClyg#dV;AYKRQ*jQVw#BDMm~eFQniXL#7^N8&{Gd#AiY&cLP_LbjRj zP}Y-?6+eGyOR9B9EEGaR^_P-XI?v#C>tuxwyK6r@Z*lrrLM0w463{d}U5%q*aoCi6 zU^fzQ-(9x-*lL-&u-|5`r>ihM?8I}SmZ$;R8C_jR{Vi)uN)BB|FZMhKr<M zUg>Gj6M1OZ$#iwevS?-k8^vtX8xW|zZcrAs*=$Ohuio5F^uOv+WtC^fw-n_MOa+oPIS8twtJNn z4)CE7&qP0w56H)9XZc!AxbtyjGNv;vGM_mDfGykg9?(L|94)!SKT@@`l1;3f zPfwIoB+!fry@V_g28)rcDxp(T>f^xN1+-*rw@vV^Qa*d#*a-)S-JHVu-s)uhu zbG-Y8OiA!K_1hzZ$VM%UTm2-wGA3%N^#YRPc&p3k?p?Lpv*cHh>P#EPXn-l#@)Knz zG%qnHd)~+XVHw&=Q?KRD;xGA>a|TS|!WpwT_skqk57o!uPdfaD{i;u|6);Z32W!VZ zE;q5pR_~$i%S-$@lj$Bq<^N8YRGC(bLj!L&SKHKIn^8p|7pAqYv3hv-r3UkvdLZK! zo9F>PPg`uMSMk|0pErfs?&z|R^{LFg^et|x%J%7+FT|kuoKp20Kn7%ftOb_$B0dl! zH5i0JZhPMeoK!UE6haRa8;rFf&!Lwgg{5nawK?RSvVl zRxabn;)7;r2as0cYPd|&-s&p5pohr8qzLEakt!8qkoXi|#-L(9WXKauIb?{CSN>bvc~@FzvVKiY~@ z%~q)EdOi>IE6j1GczP)aM9Xh=NiNS|UiCGy ff3xWiiLZdsZj!%jsRxNW&jM*Fw2(LfG+DAF$S;_IPfSKd-^L>_B0j6M zu4Cr1Eyu3ieEjY=>y~YH(-{~T^F3W0Ln>~~xys7-*g(SNA*ZqWw)=necdZhwG(5Zh zFU!)(r)IzWLxb6GnyNogE51~{DAa7}^J}M5o*h$kP5c_Z*xlN5-aDrIkxfqWGnqe3 zm0P1S+0JcIB!5(${vlVBS0}$!8w$wIoY(U8y3(8@wd?d(Ro>l^o0HtD|m)1v+N*34fXmA~rh{qOfJ8~*-&d_}t8edFbWp|1jO?2xT2h?#2gBmbzw zt<{ZDlXm4Fo%3z}4bObnx0mB=?W*;EZ3*Y>4k~O}erV(Ku4}*34OzZkc_pg|bEm*n~@U1uENxKbvtizHQN^Lkl+?d_HI41htq8CzQ6%TYX`*RN6}3 zuA}S9qjeSuW?inH%5_{NTX3%726536t?3C`(|o?Ro<7wby6lkk0&V>Th9cSru4=JI zqy&6(7Cx27b|W<;&c$xV_w8P4YkwNd=3>97vv|$y^7(OFFFs!@^(DE4f#I&40Z&`; SwC}+9VeoYIb6Mw<&;$VWhy@S; literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-512x512.png b/feature/external-web-component/icons/icon-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..5d3ee53a06906190994c8036804c5981f814f415 GIT binary patch literal 4335 zcmaJ_c{G%7|9+l%#@L==WND&|?4%3{2{XzN$|#DY3`u=SvX<`}X%=7RYtM9wCdHc=DNfBhb{Y1&s@jaOOw6q-^PuE+pJneR; zGk10*q9tky{Ou8;nEI>xxQd&%W9l!vam_Y|t>BSEZnh+BeCvsRXAG{`T1F=m~8K9C69?YJLOVmC=Xyf=w|m#J#gg zhW)B0elB$7(VW2PWuXJ&U&E%-4YxXOx)*@?KvFoHCb(iIUi1gn>$xfQ^qCdM0aK#k zzTss1gBz$=DJO|t$lK7I2-_g%T7iLJ69oh8^de_S#eL0ZwXn23D>qSi258#FSNTsVAMIj-?}yN3Ubj2Att*M3^1hU0x9- z@f{D`!Mjyr*-H@h7&P37QBeX0qe`CwC;)aVynI;hMpWTAu2m_$t1K4NC(;H(AN8oH zNbHO9(fn~R+UfduJ8C2-ED}5G~qOc6#@d$(rLQYVRkJz@_~9A=)-0o zPcpMdYC(B5)KUXwXeg7GM;NmPxZ9$|o4~pU-e|bbGMFT7phB6?-M;$-kuZDfi}PDG zxQ&hnRE#b`2lZX6)YcVYlW!?27mRQ6ram{}yq5&WuYX4LtCh&goun646<{6Z9z`s| zA8P62M!&ycoLOhaBoao`DK@ORZ#*y5n(r@muUJH4&NHTaha!P3Fzb!Q`Ha`I2UC~6 z$)0ax>TC)0rS9ZkzdG^(&<_`lwBl=Hnk7X5u0A9A2s}HY&Ln(S#=(WWhRGeoo*#3f z2IU*x$;i<9cr1sJe#9@GlKRMf9YOmin9iz z;ye3$b=;T>(FL0I=1g`X1*Y=J0JjMkmxkE?9pq%J|7Rj$AHdDQsW9LEd+q-m97~oN zPf$d7`~DYtO!>beKVU8nY$FNLM1&`t%>M}VWl47_+HIt5|LUEvH1$7B#sd6=R6ZtC z#PHlPgT|Dv(%xZbRz-8Xc})GtqA{j+e z5tZ>4`UL6R@vC<=(*WPdi-Lh}(z^an==+483huAzY$-aYM|5(i=2+;|D;c+FQUX(e zPt)(ar8R4Q`h27*v&7@@f)$4yoN=4^R_UM?OSV5^Cx6Slmih-$(VrOJiHYt47P2Zz z3gBO*oQ@^bkcx&(~@rrY;YD_r|Yu+I2i5%?ssr zLdlw~LR^%?et`4%FMi$B+(7uApJYbG3f<`EN>2I_XNdZ|GviwT zvnikRGEhms~E*u(~pKiZ?_~&%|E$KSg(&wPp&i_8#tXUuGGG$i2k7{bal*4Nz&IDLDeQ%`t@ zy#tIsDQhxfej3=Z6Ys{FN#;u4dlSt-*9h6{v~|)Xmd5&|*1x^|m4T{W^Wrz^(|x?D zkr`l}`xpHT$sikC&v&sAZDyGKEis&)w{Z^dOF7Hy4j6jQNa#0rPI@2ssS3N@sjm@R zXM=k>yA!%GmtUzX_8vGTA$^bc%EUlS4Ki#1XnftW^)ZQ{EKaXIL(>6PgUsq+OLl#> z&O_QoKu`-_WuSL?f4RMGJJDp%k<7N@kB{qBl^dwY!cOA?bgAuI04z3Rl)1S(!(*ry z*+b@B<;iarZ+?jgiQnbDs@RO*jfLd6{zTplaBKJ+{Rb9`;SJQeJEyl7@@v6m-GZ?2 ze0tTLo}VVD{MQ*gYBalP=kdhP{S|rrnJXp>nS$odzQeyh3sSs#QwO8{qLxMyAQsk|{Yg0FhJWt+a8&yA3cDqpjl~si*uLMnK0a`+r&K zoO&w@c)TNV77q+~^p{GRe{Z=KcJADv%Yf}WB+pM@9^;k9N`6ZHP&BMNIj{yFz~$`~Z#%;UeihMdSYW9qt!AYgLEz+M9y zjqjSmiuOWic=lS>&*=HfKR(3w5!`b~qT4dH6>Fl46g_2C4%Hc8px(uMHZ8Rk{aVIG z0PbanG($d^;wPtox51%+R>cL~;!8SfhoY{38X6;K9>pgneG9E3k50$VNHrmP^l^C; ziyMV|vy%1cO~{$Ws)pP^T4&?=rZ#{`DA|HZ|Get5?|EA+4n>0gURxR-q#4jo0U-D{ zcIe#^q@X^xC{a%dCKrH>-ceJVs=^A+hx%B^*ij zZ6q6K3=IKX?sW(5qx!63iDR*MK(fk_^=;{V-@6+JU}7oJwQdjXsL1o7!_pDQc0oaY zdf)D@$hG!doBc8P`k$PP7sciF&WGKK*R#aKFLbHN!TZgXT!^^APvwq4b8x|~zKdee zgO=)h*egetPP_RKOYs-MaNmRSKsyXQx2l(D`xXZ&W%vNtg7!acu|3pqHb}^vN(SEf z(=*3jvqg4pv3e$MYR5N7x4?1U^c93rP5tBbvT;O1`HbjY1E(gJdl+b>X=l11tFWp~ z6&{4cf)%zXv9B=Dzg!MDI8Dy=gRm)cL)#I1?+alYN=z~vkjs-9t71ni?H-#TTUo)_ zFJ;4Vk*(#{FHR2LFUG4bbdxljs-u7V{Ma>Xd7f*fxEk*yi9IN@Xc7}sd~wZ=g`38g zS%E8WOwS*1%`a5i3sLzDBdH_7GxrLs@faesfKy-GCvw%EA-|fmglh_)WZko3$V`oe z#AOtKox-QiUjesV)?rTYd2Rw|plnnV_oB*99C+V`)Y*yyS%2@zP^b?fxLF&1NKFg4 zUJG!l`6HhahT>B|Kr~^-&`6z~fGMJhcKn#FXP%x$r1;k1XPN#vX*hT~k zezcGn51D~7akpJ(gqpq_8wi#dGwP~!2)NvkB?v`UzQwB$$%o#{nogMjP}yAgEN6Nu zl!3TDkR*mOd^{nA`>-F|+36F_v@W)kCL zzHR9+yt|j_*d_=e0+6bt&vwB)9s#rdMsLr@fvroTFN$C27|o2B#VC?z{4A7r^8fsn z$~s)reCfR3(JoTwE(Pp+WK)27`KFJAt`|pmh~jKc%D9cQhtq@Z7aoeZx7=S%XQs~b zhc^UZV2)m_ff;kxxwCvXiRsf+(gQx?b|A2ABIoFXIB+=W&$l?+FEdj|lj>gy=Uwc! z%p^rz&4e$$FR^~4dW=lXOu653CIR^MVId2L7iwW{p}1#Xwmu;N-IQvOip4wN$$84L2f=3Rl zlJCqE+7wgANuY%L&fEm9jP5m9@sxNgIEY!Omn#t9qZjL&omK-ir~+n#Jy4wx?N#cp z@sKLdAQoZH!qH(Z4P-YFBCZfnF~8;)WqnHDzI1*9=Cj~GHMSj=|1~oq7p&Yep5yP2Mgb(nM1Q& z2i%3I@ma literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-60x60.png b/feature/external-web-component/icons/icon-60x60.png new file mode 100644 index 0000000000000000000000000000000000000000..80ac238dca6406917ecd6fde921894bd5d41a1d9 GIT binary patch literal 638 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw3=&b&bO2J`0X`wF?gc(BlOMQDed;>xiObZ- zu2Ua@8BbiN0of4r1k3=+LKtvyAOj@gH0?>ioYz3cz3Z2CfW}Ic1o;Is2#6_aT6u@0 zmNs-wTe4xtvGdpNJ^#+hY^>4Z%fP^R%G1R$q$2LEIokNe284uy}`Z`R$tzOX8F_kkMyAEaT+Y04-u#?*2PfG%sg>23%-^NDIc<5Tr~Ev_ zUqbh@4%_cKxxL}#v)tV;V-qj`a=*uvHFwRjhiiSUBDdD%C)RE{CdIo}EiUX|I{;zq4la=399m^LzefH4DT{9#WsJ*PadZ{P2arMK+srPs;99O(~ z(qj{&RgreWNl~x20W6!2cA76Rl*)bZNd4jjVS}|&yjxQECFJW51}_vW6kq?Ge}=={ zbtgj=f>$u?2$ui(gQIYJ#Dm4`ci*iL%svsI@kQe6RVORfY3=V$vgLpExYn@elG+3@ zqi4$%S;2eDniYB*z}#egPDl?3?(Gnlq)nH|9{{{N+~ z+@sVBM{KqEewIzV`Dvw#*qOQP3=E8)JzX3_DsJ7qbdYbcg2a)Jf}-x+N-Gw<|G!Au z$20Y^%fjhr|K-U&li#oLPjc#t*UP4AT)ArVmAPw=h;lDe(G&O9npxs(;=$P;51i2M zJ|Q`YX}gNBRN&zS2j}*2Hg3OuX7Y)eX4d@I&sRuGudithelA}hbugdxV8#L7<@-cp z&Tsd9@Y0Yx?+lqkY)f`3aMqJgqj(e>;p&3%V>9~_ris-GB{?3%{7h8`W-|cjV zS^1^<9F=oU`tR4>@Vy+H*TuS4Cn3GaVVa_d)&qsB+$%gA{~TiMS+dE&dEJ4Dkuy|v zPI5LViXZ6MbBHaYh&f=c?3Xjz5ebUf2UcxPK6%EehB@;D-=b|>E==G(#r<*fpMZ#yYz;cPCG)NvxEOx3btiAN^EuhRnS0Ob zT`<|Lu6byl%*1$$w*~VKw&+|vaX_CTi;ZdKvQ*Kvho7uT4_JJ{;CQl#myEGwsr|c3 zh5M(vS?$Hjrd;T{*k%;A{_&Xu3umnPl9ko@|De3wM2+iLu4~)_CK3iuS3j3^P6 zSuoY*>^HNAWef~Vww^AIAr*{wuXnF{tRT|*aOuUVQpJYfzt>+@?2tL1#;`j&Va9yx zrSaxb!bkSc-WdD*&2yjUKd)HVT+!Yj!uG;=qCG2fsq$;9jM-_|beUIOvdYU?^Z0$t z-f^Y7d)S4P&K(rbeRE;I(+x__%N(4o$WPu+XtK|^uZ+DW%h%IOCA zdwKR%Em)fUfAyEBh$uCar%PPsH+((5G2?VhoWpMa=IMUk&f?;FYd$SLq&Zha)Lq-t zUDwlHAA)M%9XRsd!YrikW?x0S>BGBc$~G6}oL4`$_@FiKy7Z@4+zt3L-d(NySMe>N%iFq(H%{acxODRe+X@*8|Dq|Aawn{tw!g^ECN10z*>wk( za+YRK^m$P8bnVxGDNCogM=txb!l)t8vzxJMlDH9z0*{m?!^$RzoDtHyZiDZk9z@I zf;<|ZeBsShu5_Fzcxh?t6Q8Gz^X%rleEM1U)LB34%ZYO8&n`bNdpEmmS>0PV|Dt(v z?J<*zmR$;)_eoi#)VTOG+ma&Ri&OagH_5AubksOrpAyG#=V9J6y$s>))8BdX_3K;i zS*W)mPkzDKKht!+T-x#3dUfv>w)h3Y@@Bb@7aKm1_6?u@A^to2)jJwK;fIzj1SU2H MPgg&ebxsLQ0Kk%8k^lez literal 0 HcmV?d00001 diff --git a/feature/external-web-component/icons/icon-76x76.png b/feature/external-web-component/icons/icon-76x76.png new file mode 100644 index 0000000000000000000000000000000000000000..91a8ea6bb9ac16221bbbafa6c6670311b5e669a5 GIT binary patch literal 783 zcmeAS@N?(olHy`uVBq!ia0vp^J|N7&3?x5zE|dgP-T^)#uI>dsuG1d7Pkrn<<+01u zC$3YWq$`*Wpb;o$fVam#>Uoe51_FUB|(0{45IQn#&%v|DcNPseT#OS zzWVUZm!JQ*nJ1p#vXg;5b^iixqg-9w-zAbh~r?`5(XQ*U^+<2$ZIwe44GP4ukZll>!Xw@S}_o$Eo-yDojy*|o{ zq3V5ZYj;*Xb`}-8Hao3bKcN5Mgu39_H$JVqqIyPt%Ol-5r_@>Jqar-BeRlXqxyPh3fvh6>l?lajw4a?aY*r;}N?kOF^H5C@# zOsUWJ^k08C$LzDJ=&q-G`-_&!oqM!V)L5|Y&BoVr>_6z6?7jPJb-k>2(N8b#*JqoO zUCx;5eVw&4n(@3!)3v)g6DoEHZ`rm%uV;a4c$C5iw~&l&Zrs6%iOg?&gF|msL|!ky z6SDH`#;E9!!g+abHD^0pKl61Cm0Fy1?)2Bt=yv7wjhagqhpCF$dZX`i!9 zIU5=xwp_V&Cr_r8Q|9>NNSl?n7#3VOz_t7F%vF*M&1^R|AF>NHby&lG=Yfov$Mq*S zkED4PGcXt$ZrSlDr9tK>^_gp%_D){^abrY= zSUP`;LSgQ*hYatFW~8+}JG*uAvH6XUGyKze<6fUle8{Do6)qE19W_gB`t+|I0_T=9 zW^g`F&AfDT{X4-Gou|r{F$%eu3FCQ(EV_@kxitH!e?O>zdJ4#-m&|E`lLdJJK8^ecxI|>a*l~Rot_h+;#k(}WGDZ9op$3k9<84} zjM6H37ZhSht@7$g${d)O&&RVss+NBCJ z?>No=V{-L+DW=@d>tkLRpIpyf-{u#nzS6G1 z|Dig=M#*#1$HLCZe@;$`^pg&=ls{X%JL9}m(zH*JIUhGIoc8Hw>IJDiIWwNrEVyr0 zd`xe-U$)Svqmm!|vY+tCk)ZdZ%0VXU}hsIqRSv0Y%g(zI6+HrHeL z8491x4_1?PPI3G(>3sLqkERzBo}8D?o4LL%)`VAAkXM+&q-Iut3GciL;R{QC)Ch8m zX!M6B7YkN1vkG-ywO+k<)3UHX3f6JEHlNt~)h}j8MYd#-z%R4KSp~lzi!RJm*naoV z!3Rc%E7mvV9XUN??!nK;lmqOw=BYNHx6rFq6S!#e@~omL^Np!HIN1IzHDizZ_3f>D zZT^|-U`c)O@AI7#XYg6|Y%hKHe5)j*F{62s%$1L| zkBtpqAFcnt@Y|-Ev^^H{cX5CITD~(bqrF{i+frRyJ+mhqp~qaLxu$3)o;wsAH#I`) w{$|w&Og%qScD7b3WEH3`+xFx9`-ALj7RB8>9rQgGn5`H*UHx3vIVCg!0G>3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Shlink — The URL shortener + + + + + +

+ + + diff --git a/feature/external-web-component/manifest.json b/feature/external-web-component/manifest.json new file mode 100644 index 00000000..91b48027 --- /dev/null +++ b/feature/external-web-component/manifest.json @@ -0,0 +1 @@ +{"name":"Shlink","short_name":"Shlink","start_url":"/","display":"standalone","background_color":"#4696e5","lang":"en","scope":"/shlink-web-client/feature/external-web-component/","theme_color":"#4696e5","icons":[{"src":"./icons/icon-16x16.png","type":"image/png","sizes":"16x16"},{"src":"./icons/icon-24x24.png","type":"image/png","sizes":"24x24"},{"src":"./icons/icon-32x32.png","type":"image/png","sizes":"32x32"},{"src":"./icons/icon-40x40.png","type":"image/png","sizes":"40x40"},{"src":"./icons/icon-48x48.png","type":"image/png","sizes":"48x48"},{"src":"./icons/icon-60x60.png","type":"image/png","sizes":"60x60"},{"src":"./icons/icon-64x64.png","type":"image/png","sizes":"64x64"},{"src":"./icons/icon-72x72.png","type":"image/png","sizes":"72x72"},{"src":"./icons/icon-76x76.png","type":"image/png","sizes":"76x76"},{"src":"./icons/icon-96x96.png","type":"image/png","sizes":"96x96"},{"src":"./icons/icon-114x114.png","type":"image/png","sizes":"114x114"},{"src":"./icons/icon-120x120.png","type":"image/png","sizes":"120x120"},{"src":"./icons/icon-128x128.png","type":"image/png","sizes":"128x128"},{"src":"./icons/icon-144x144.png","type":"image/png","sizes":"144x144"},{"src":"./icons/icon-150x150.png","type":"image/png","sizes":"150x150"},{"src":"./icons/icon-152x152.png","type":"image/png","sizes":"152x152"},{"src":"./icons/icon-160x160.png","type":"image/png","sizes":"160x160"},{"src":"./icons/icon-167x167.png","type":"image/png","sizes":"167x167"},{"src":"./icons/icon-180x180.png","type":"image/png","sizes":"180x180"},{"src":"./icons/icon-192x192.png","type":"image/png","sizes":"192x192"},{"src":"./icons/icon-196x196.png","type":"image/png","sizes":"196x196"},{"src":"./icons/icon-228x228.png","type":"image/png","sizes":"228x228"},{"src":"./icons/icon-256x256.png","type":"image/png","sizes":"256x256"},{"src":"./icons/icon-310x310.png","type":"image/png","sizes":"310x310"},{"src":"./icons/icon-384x384.png","type":"image/png","sizes":"384x384"},{"src":"./icons/icon-512x512.png","type":"image/png","sizes":"512x512"},{"src":"./icons/icon-1024x1024.png","type":"image/png","sizes":"1024x1024"}]} diff --git a/feature/external-web-component/service-worker.js b/feature/external-web-component/service-worker.js new file mode 100644 index 00000000..f0457db6 --- /dev/null +++ b/feature/external-web-component/service-worker.js @@ -0,0 +1,1822 @@ +try { + self["workbox:core:6.5.3"] && _(); +} catch { +} +const G = (s, ...e) => { + let t = s; + return e.length > 0 && (t += ` :: ${JSON.stringify(e)}`), t; +}, Q = G; +class h extends Error { + /** + * + * @param {string} errorCode The error code that + * identifies this particular error. + * @param {Object=} details Any relevant arguments + * that will help developers identify issues should + * be added as a key on the context object. + */ + constructor(e, t) { + const n = Q(e, t); + super(n), this.name = e, this.details = t; + } +} +const B = /* @__PURE__ */ new Set(); +function z(s) { + B.add(s); +} +const d = { + googleAnalytics: "googleAnalytics", + precache: "precache-v2", + prefix: "workbox", + runtime: "runtime", + suffix: typeof registration < "u" ? registration.scope : "" +}, E = (s) => [d.prefix, s, d.suffix].filter((e) => e && e.length > 0).join("-"), J = (s) => { + for (const e of Object.keys(d)) + s(e); +}, x = { + updateDetails: (s) => { + J((e) => { + typeof s[e] == "string" && (d[e] = s[e]); + }); + }, + getGoogleAnalyticsName: (s) => s || E(d.googleAnalytics), + getPrecacheName: (s) => s || E(d.precache), + getPrefix: () => d.prefix, + getRuntimeName: (s) => s || E(d.runtime), + getSuffix: () => d.suffix +}; +function K(s, e) { + const t = new URL(s); + for (const n of e) + t.searchParams.delete(n); + return t.href; +} +async function X(s, e, t, n) { + const r = K(e.url, t); + if (e.url === r) + return s.match(e, n); + const a = Object.assign(Object.assign({}, n), { ignoreSearch: !0 }), i = await s.keys(e, a); + for (const c of i) { + const o = K(c.url, t); + if (r === o) + return s.match(c, n); + } +} +let m; +function Y() { + if (m === void 0) { + const s = new Response(""); + if ("body" in s) + try { + new Response(s.body), m = !0; + } catch { + m = !1; + } + m = !1; + } + return m; +} +function q(s) { + s.then(() => { + }); +} +class Z { + /** + * Creates a promise and exposes its resolve and reject functions as methods. + */ + constructor() { + this.promise = new Promise((e, t) => { + this.resolve = e, this.reject = t; + }); + } +} +async function ee() { + for (const s of B) + await s(); +} +const te = (s) => new URL(String(s), location.href).href.replace(new RegExp(`^${location.origin}`), ""); +function se(s) { + return new Promise((e) => setTimeout(e, s)); +} +function A(s, e) { + const t = e(); + return s.waitUntil(t), t; +} +async function ne(s, e) { + let t = null; + if (s.url && (t = new URL(s.url).origin), t !== self.location.origin) + throw new h("cross-origin-copy-response", { origin: t }); + const n = s.clone(), r = { + headers: new Headers(n.headers), + status: n.status, + statusText: n.statusText + }, a = e ? e(r) : r, i = Y() ? n.body : await n.blob(); + return new Response(i, a); +} +function re() { + self.addEventListener("activate", () => self.clients.claim()); +} +const ae = (s, e) => e.some((t) => s instanceof t); +let j, O; +function ie() { + return j || (j = [ + IDBDatabase, + IDBObjectStore, + IDBIndex, + IDBCursor, + IDBTransaction + ]); +} +function ce() { + return O || (O = [ + IDBCursor.prototype.advance, + IDBCursor.prototype.continue, + IDBCursor.prototype.continuePrimaryKey + ]); +} +const F = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(); +function oe(s) { + const e = new Promise((t, n) => { + const r = () => { + s.removeEventListener("success", a), s.removeEventListener("error", i); + }, a = () => { + t(f(s.result)), r(); + }, i = () => { + n(s.error), r(); + }; + s.addEventListener("success", a), s.addEventListener("error", i); + }); + return e.then((t) => { + t instanceof IDBCursor && F.set(t, s); + }).catch(() => { + }), P.set(e, s), e; +} +function le(s) { + if (v.has(s)) + return; + const e = new Promise((t, n) => { + const r = () => { + s.removeEventListener("complete", a), s.removeEventListener("error", i), s.removeEventListener("abort", i); + }, a = () => { + t(), r(); + }, i = () => { + n(s.error || new DOMException("AbortError", "AbortError")), r(); + }; + s.addEventListener("complete", a), s.addEventListener("error", i), s.addEventListener("abort", i); + }); + v.set(s, e); +} +let T = { + get(s, e, t) { + if (s instanceof IDBTransaction) { + if (e === "done") + return v.get(s); + if (e === "objectStoreNames") + return s.objectStoreNames || H.get(s); + if (e === "store") + return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]); + } + return f(s[e]); + }, + set(s, e, t) { + return s[e] = t, !0; + }, + has(s, e) { + return s instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in s; + } +}; +function he(s) { + T = s(T); +} +function ue(s) { + return s === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) { + const n = s.call(D(this), e, ...t); + return H.set(n, e.sort ? e.sort() : [e]), f(n); + } : ce().includes(s) ? function(...e) { + return s.apply(D(this), e), f(F.get(this)); + } : function(...e) { + return f(s.apply(D(this), e)); + }; +} +function de(s) { + return typeof s == "function" ? ue(s) : (s instanceof IDBTransaction && le(s), ae(s, ie()) ? new Proxy(s, T) : s); +} +function f(s) { + if (s instanceof IDBRequest) + return oe(s); + if (k.has(s)) + return k.get(s); + const e = de(s); + return e !== s && (k.set(s, e), P.set(e, s)), e; +} +const D = (s) => P.get(s); +function fe(s, e, { blocked: t, upgrade: n, blocking: r, terminated: a } = {}) { + const i = indexedDB.open(s, e), c = f(i); + return n && i.addEventListener("upgradeneeded", (o) => { + n(f(i.result), o.oldVersion, o.newVersion, f(i.transaction), o); + }), t && i.addEventListener("blocked", (o) => t( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + o.oldVersion, + o.newVersion, + o + )), c.then((o) => { + a && o.addEventListener("close", () => a()), r && o.addEventListener("versionchange", (l) => r(l.oldVersion, l.newVersion, l)); + }).catch(() => { + }), c; +} +function pe(s, { blocked: e } = {}) { + const t = indexedDB.deleteDatabase(s); + return e && t.addEventListener("blocked", (n) => e( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + n.oldVersion, + n + )), f(t).then(() => { + }); +} +const ge = ["get", "getKey", "getAll", "getAllKeys", "count"], me = ["put", "add", "delete", "clear"], L = /* @__PURE__ */ new Map(); +function S(s, e) { + if (!(s instanceof IDBDatabase && !(e in s) && typeof e == "string")) + return; + if (L.get(e)) + return L.get(e); + const t = e.replace(/FromIndex$/, ""), n = e !== t, r = me.includes(t); + if ( + // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge. + !(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(r || ge.includes(t)) + ) + return; + const a = async function(i, ...c) { + const o = this.transaction(i, r ? "readwrite" : "readonly"); + let l = o.store; + return n && (l = l.index(c.shift())), (await Promise.all([ + l[t](...c), + r && o.done + ]))[0]; + }; + return L.set(e, a), a; +} +he((s) => ({ + ...s, + get: (e, t, n) => S(e, t) || s.get(e, t, n), + has: (e, t) => !!S(e, t) || s.has(e, t) +})); +try { + self["workbox:expiration:6.5.3"] && _(); +} catch { +} +const we = "workbox-expiration", w = "cache-entries", W = (s) => { + const e = new URL(s, location.href); + return e.hash = "", e.href; +}; +class ye { + /** + * + * @param {string} cacheName + * + * @private + */ + constructor(e) { + this._db = null, this._cacheName = e; + } + /** + * Performs an upgrade of indexedDB. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDb(e) { + const t = e.createObjectStore(w, { keyPath: "id" }); + t.createIndex("cacheName", "cacheName", { unique: !1 }), t.createIndex("timestamp", "timestamp", { unique: !1 }); + } + /** + * Performs an upgrade of indexedDB and deletes deprecated DBs. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDbAndDeleteOldDbs(e) { + this._upgradeDb(e), this._cacheName && pe(this._cacheName); + } + /** + * @param {string} url + * @param {number} timestamp + * + * @private + */ + async setTimestamp(e, t) { + e = W(e); + const n = { + url: e, + timestamp: t, + cacheName: this._cacheName, + // Creating an ID from the URL and cache name won't be necessary once + // Edge switches to Chromium and all browsers we support work with + // array keyPaths. + id: this._getId(e) + }, a = (await this.getDb()).transaction(w, "readwrite", { + durability: "relaxed" + }); + await a.store.put(n), await a.done; + } + /** + * Returns the timestamp stored for a given URL. + * + * @param {string} url + * @return {number | undefined} + * + * @private + */ + async getTimestamp(e) { + const n = await (await this.getDb()).get(w, this._getId(e)); + return n == null ? void 0 : n.timestamp; + } + /** + * Iterates through all the entries in the object store (from newest to + * oldest) and removes entries once either `maxCount` is reached or the + * entry's timestamp is less than `minTimestamp`. + * + * @param {number} minTimestamp + * @param {number} maxCount + * @return {Array} + * + * @private + */ + async expireEntries(e, t) { + const n = await this.getDb(); + let r = await n.transaction(w).store.index("timestamp").openCursor(null, "prev"); + const a = []; + let i = 0; + for (; r; ) { + const o = r.value; + o.cacheName === this._cacheName && (e && o.timestamp < e || t && i >= t ? a.push(r.value) : i++), r = await r.continue(); + } + const c = []; + for (const o of a) + await n.delete(w, o.id), c.push(o.url); + return c; + } + /** + * Takes a URL and returns an ID that will be unique in the object store. + * + * @param {string} url + * @return {string} + * + * @private + */ + _getId(e) { + return this._cacheName + "|" + W(e); + } + /** + * Returns an open connection to the database. + * + * @private + */ + async getDb() { + return this._db || (this._db = await fe(we, 1, { + upgrade: this._upgradeDbAndDeleteOldDbs.bind(this) + })), this._db; + } +} +class _e { + /** + * To construct a new CacheExpiration instance you must provide at least + * one of the `config` properties. + * + * @param {string} cacheName Name of the cache to apply restrictions to. + * @param {Object} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + */ + constructor(e, t = {}) { + this._isRunning = !1, this._rerunRequested = !1, this._maxEntries = t.maxEntries, this._maxAgeSeconds = t.maxAgeSeconds, this._matchOptions = t.matchOptions, this._cacheName = e, this._timestampModel = new ye(e); + } + /** + * Expires entries for the given cache and given criteria. + */ + async expireEntries() { + if (this._isRunning) { + this._rerunRequested = !0; + return; + } + this._isRunning = !0; + const e = this._maxAgeSeconds ? Date.now() - this._maxAgeSeconds * 1e3 : 0, t = await this._timestampModel.expireEntries(e, this._maxEntries), n = await self.caches.open(this._cacheName); + for (const r of t) + await n.delete(r, this._matchOptions); + this._isRunning = !1, this._rerunRequested && (this._rerunRequested = !1, q(this.expireEntries())); + } + /** + * Update the timestamp for the given URL. This ensures the when + * removing entries based on maximum entries, most recently used + * is accurate or when expiring, the timestamp is up-to-date. + * + * @param {string} url + */ + async updateTimestamp(e) { + await this._timestampModel.setTimestamp(e, Date.now()); + } + /** + * Can be used to check if a URL has expired or not before it's used. + * + * This requires a look up from IndexedDB, so can be slow. + * + * Note: This method will not remove the cached entry, call + * `expireEntries()` to remove indexedDB and Cache entries. + * + * @param {string} url + * @return {boolean} + */ + async isURLExpired(e) { + if (this._maxAgeSeconds) { + const t = await this._timestampModel.getTimestamp(e), n = Date.now() - this._maxAgeSeconds * 1e3; + return t !== void 0 ? t < n : !0; + } else + return !1; + } + /** + * Removes the IndexedDB object store used to keep track of cache expiration + * metadata. + */ + async delete() { + this._rerunRequested = !1, await this._timestampModel.expireEntries(1 / 0); + } +} +class be { + /** + * @param {ExpirationPluginOptions} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + * @param {boolean} [config.purgeOnQuotaError] Whether to opt this cache in to + * automatic deletion if the available storage quota has been exceeded. + */ + constructor(e = {}) { + this.cachedResponseWillBeUsed = async ({ event: t, request: n, cacheName: r, cachedResponse: a }) => { + if (!a) + return null; + const i = this._isResponseDateFresh(a), c = this._getCacheExpiration(r); + q(c.expireEntries()); + const o = c.updateTimestamp(n.url); + if (t) + try { + t.waitUntil(o); + } catch { + } + return i ? a : null; + }, this.cacheDidUpdate = async ({ cacheName: t, request: n }) => { + const r = this._getCacheExpiration(t); + await r.updateTimestamp(n.url), await r.expireEntries(); + }, this._config = e, this._maxAgeSeconds = e.maxAgeSeconds, this._cacheExpirations = /* @__PURE__ */ new Map(), e.purgeOnQuotaError && z(() => this.deleteCacheAndMetadata()); + } + /** + * A simple helper method to return a CacheExpiration instance for a given + * cache name. + * + * @param {string} cacheName + * @return {CacheExpiration} + * + * @private + */ + _getCacheExpiration(e) { + if (e === x.getRuntimeName()) + throw new h("expire-custom-caches-only"); + let t = this._cacheExpirations.get(e); + return t || (t = new _e(e, this._config), this._cacheExpirations.set(e, t)), t; + } + /** + * @param {Response} cachedResponse + * @return {boolean} + * + * @private + */ + _isResponseDateFresh(e) { + if (!this._maxAgeSeconds) + return !0; + const t = this._getDateHeaderTimestamp(e); + if (t === null) + return !0; + const n = Date.now(); + return t >= n - this._maxAgeSeconds * 1e3; + } + /** + * This method will extract the data header and parse it into a useful + * value. + * + * @param {Response} cachedResponse + * @return {number|null} + * + * @private + */ + _getDateHeaderTimestamp(e) { + if (!e.headers.has("date")) + return null; + const t = e.headers.get("date"), r = new Date(t).getTime(); + return isNaN(r) ? null : r; + } + /** + * This is a helper method that performs two operations: + * + * - Deletes *all* the underlying Cache instances associated with this plugin + * instance, by calling caches.delete() on your behalf. + * - Deletes the metadata from IndexedDB used to keep track of expiration + * details for each Cache instance. + * + * When using cache expiration, calling this method is preferable to calling + * `caches.delete()` directly, since this will ensure that the IndexedDB + * metadata is also cleanly removed and open IndexedDB instances are deleted. + * + * Note that if you're *not* using cache expiration for a given cache, calling + * `caches.delete()` and passing in the cache's name should be sufficient. + * There is no Workbox-specific method needed for cleanup in that case. + */ + async deleteCacheAndMetadata() { + for (const [e, t] of this._cacheExpirations) + await self.caches.delete(e), await t.delete(); + this._cacheExpirations = /* @__PURE__ */ new Map(); + } +} +try { + self["workbox:precaching:6.5.3"] && _(); +} catch { +} +const Re = "__WB_REVISION__"; +function Ce(s) { + if (!s) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (typeof s == "string") { + const a = new URL(s, location.href); + return { + cacheKey: a.href, + url: a.href + }; + } + const { revision: e, url: t } = s; + if (!t) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (!e) { + const a = new URL(t, location.href); + return { + cacheKey: a.href, + url: a.href + }; + } + const n = new URL(t, location.href), r = new URL(t, location.href); + return n.searchParams.set(Re, e), { + cacheKey: n.href, + url: r.href + }; +} +class xe { + constructor() { + this.updatedURLs = [], this.notUpdatedURLs = [], this.handlerWillStart = async ({ request: e, state: t }) => { + t && (t.originalRequest = e); + }, this.cachedResponseWillBeUsed = async ({ event: e, state: t, cachedResponse: n }) => { + if (e.type === "install" && t && t.originalRequest && t.originalRequest instanceof Request) { + const r = t.originalRequest.url; + n ? this.notUpdatedURLs.push(r) : this.updatedURLs.push(r); + } + return n; + }; + } +} +class Ee { + constructor({ precacheController: e }) { + this.cacheKeyWillBeUsed = async ({ request: t, params: n }) => { + const r = (n == null ? void 0 : n.cacheKey) || this._precacheController.getCacheKeyForURL(t.url); + return r ? new Request(r, { headers: t.headers }) : t; + }, this._precacheController = e; + } +} +try { + self["workbox:strategies:6.5.3"] && _(); +} catch { +} +function R(s) { + return typeof s == "string" ? new Request(s) : s; +} +class ke { + /** + * Creates a new instance associated with the passed strategy and event + * that's handling the request. + * + * The constructor also initializes the state that will be passed to each of + * the plugins handling this request. + * + * @param {workbox-strategies.Strategy} strategy + * @param {Object} options + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] The return value from the + * {@link workbox-routing~matchCallback} (if applicable). + */ + constructor(e, t) { + this._cacheKeys = {}, Object.assign(this, t), this.event = t.event, this._strategy = e, this._handlerDeferred = new Z(), this._extendLifetimePromises = [], this._plugins = [...e.plugins], this._pluginStateMap = /* @__PURE__ */ new Map(); + for (const n of this._plugins) + this._pluginStateMap.set(n, {}); + this.event.waitUntil(this._handlerDeferred.promise); + } + /** + * Fetches a given request (and invokes any applicable plugin callback + * methods) using the `fetchOptions` (for non-navigation requests) and + * `plugins` defined on the `Strategy` object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - `requestWillFetch()` + * - `fetchDidSucceed()` + * - `fetchDidFail()` + * + * @param {Request|string} input The URL or request to fetch. + * @return {Promise} + */ + async fetch(e) { + const { event: t } = this; + let n = R(e); + if (n.mode === "navigate" && t instanceof FetchEvent && t.preloadResponse) { + const i = await t.preloadResponse; + if (i) + return i; + } + const r = this.hasCallback("fetchDidFail") ? n.clone() : null; + try { + for (const i of this.iterateCallbacks("requestWillFetch")) + n = await i({ request: n.clone(), event: t }); + } catch (i) { + if (i instanceof Error) + throw new h("plugin-error-request-will-fetch", { + thrownErrorMessage: i.message + }); + } + const a = n.clone(); + try { + let i; + i = await fetch(n, n.mode === "navigate" ? void 0 : this._strategy.fetchOptions); + for (const c of this.iterateCallbacks("fetchDidSucceed")) + i = await c({ + event: t, + request: a, + response: i + }); + return i; + } catch (i) { + throw r && await this.runCallbacks("fetchDidFail", { + error: i, + event: t, + originalRequest: r.clone(), + request: a.clone() + }), i; + } + } + /** + * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on + * the response generated by `this.fetch()`. + * + * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, + * so you do not have to manually call `waitUntil()` on the event. + * + * @param {Request|string} input The request or URL to fetch and cache. + * @return {Promise} + */ + async fetchAndCachePut(e) { + const t = await this.fetch(e), n = t.clone(); + return this.waitUntil(this.cachePut(e, n)), t; + } + /** + * Matches a request from the cache (and invokes any applicable plugin + * callback methods) using the `cacheName`, `matchOptions`, and `plugins` + * defined on the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cachedResponseWillByUsed() + * + * @param {Request|string} key The Request or URL to use as the cache key. + * @return {Promise} A matching response, if found. + */ + async cacheMatch(e) { + const t = R(e); + let n; + const { cacheName: r, matchOptions: a } = this._strategy, i = await this.getCacheKey(t, "read"), c = Object.assign(Object.assign({}, a), { cacheName: r }); + n = await caches.match(i, c); + for (const o of this.iterateCallbacks("cachedResponseWillBeUsed")) + n = await o({ + cacheName: r, + matchOptions: a, + cachedResponse: n, + request: i, + event: this.event + }) || void 0; + return n; + } + /** + * Puts a request/response pair in the cache (and invokes any applicable + * plugin callback methods) using the `cacheName` and `plugins` defined on + * the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cacheWillUpdate() + * - cacheDidUpdate() + * + * @param {Request|string} key The request or URL to use as the cache key. + * @param {Response} response The response to cache. + * @return {Promise} `false` if a cacheWillUpdate caused the response + * not be cached, and `true` otherwise. + */ + async cachePut(e, t) { + const n = R(e); + await se(0); + const r = await this.getCacheKey(n, "write"); + if (!t) + throw new h("cache-put-with-no-response", { + url: te(r.url) + }); + const a = await this._ensureResponseSafeToCache(t); + if (!a) + return !1; + const { cacheName: i, matchOptions: c } = this._strategy, o = await self.caches.open(i), l = this.hasCallback("cacheDidUpdate"), g = l ? await X( + // TODO(philipwalton): the `__WB_REVISION__` param is a precaching + // feature. Consider into ways to only add this behavior if using + // precaching. + o, + r.clone(), + ["__WB_REVISION__"], + c + ) : null; + try { + await o.put(r, l ? a.clone() : a); + } catch (u) { + if (u instanceof Error) + throw u.name === "QuotaExceededError" && await ee(), u; + } + for (const u of this.iterateCallbacks("cacheDidUpdate")) + await u({ + cacheName: i, + oldResponse: g, + newResponse: a.clone(), + request: r, + event: this.event + }); + return !0; + } + /** + * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and + * executes any of those callbacks found in sequence. The final `Request` + * object returned by the last plugin is treated as the cache key for cache + * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have + * been registered, the passed request is returned unmodified + * + * @param {Request} request + * @param {string} mode + * @return {Promise} + */ + async getCacheKey(e, t) { + const n = `${e.url} | ${t}`; + if (!this._cacheKeys[n]) { + let r = e; + for (const a of this.iterateCallbacks("cacheKeyWillBeUsed")) + r = R(await a({ + mode: t, + request: r, + event: this.event, + // params has a type any can't change right now. + params: this.params + // eslint-disable-line + })); + this._cacheKeys[n] = r; + } + return this._cacheKeys[n]; + } + /** + * Returns true if the strategy has at least one plugin with the given + * callback. + * + * @param {string} name The name of the callback to check for. + * @return {boolean} + */ + hasCallback(e) { + for (const t of this._strategy.plugins) + if (e in t) + return !0; + return !1; + } + /** + * Runs all plugin callbacks matching the given name, in order, passing the + * given param object (merged ith the current plugin state) as the only + * argument. + * + * Note: since this method runs all plugins, it's not suitable for cases + * where the return value of a callback needs to be applied prior to calling + * the next callback. See + * {@link workbox-strategies.StrategyHandler#iterateCallbacks} + * below for how to handle that case. + * + * @param {string} name The name of the callback to run within each plugin. + * @param {Object} param The object to pass as the first (and only) param + * when executing each callback. This object will be merged with the + * current plugin state prior to callback execution. + */ + async runCallbacks(e, t) { + for (const n of this.iterateCallbacks(e)) + await n(t); + } + /** + * Accepts a callback and returns an iterable of matching plugin callbacks, + * where each callback is wrapped with the current handler state (i.e. when + * you call each callback, whatever object parameter you pass it will + * be merged with the plugin's current state). + * + * @param {string} name The name fo the callback to run + * @return {Array} + */ + *iterateCallbacks(e) { + for (const t of this._strategy.plugins) + if (typeof t[e] == "function") { + const n = this._pluginStateMap.get(t); + yield (a) => { + const i = Object.assign(Object.assign({}, a), { state: n }); + return t[e](i); + }; + } + } + /** + * Adds a promise to the + * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} + * of the event event associated with the request being handled (usually a + * `FetchEvent`). + * + * Note: you can await + * {@link workbox-strategies.StrategyHandler~doneWaiting} + * to know when all added promises have settled. + * + * @param {Promise} promise A promise to add to the extend lifetime promises + * of the event that triggered the request. + */ + waitUntil(e) { + return this._extendLifetimePromises.push(e), e; + } + /** + * Returns a promise that resolves once all promises passed to + * {@link workbox-strategies.StrategyHandler~waitUntil} + * have settled. + * + * Note: any work done after `doneWaiting()` settles should be manually + * passed to an event's `waitUntil()` method (not this handler's + * `waitUntil()` method), otherwise the service worker thread my be killed + * prior to your work completing. + */ + async doneWaiting() { + let e; + for (; e = this._extendLifetimePromises.shift(); ) + await e; + } + /** + * Stops running the strategy and immediately resolves any pending + * `waitUntil()` promises. + */ + destroy() { + this._handlerDeferred.resolve(null); + } + /** + * This method will call cacheWillUpdate on the available plugins (or use + * status === 200) to determine if the Response is safe and valid to cache. + * + * @param {Request} options.request + * @param {Response} options.response + * @return {Promise} + * + * @private + */ + async _ensureResponseSafeToCache(e) { + let t = e, n = !1; + for (const r of this.iterateCallbacks("cacheWillUpdate")) + if (t = await r({ + request: this.request, + response: t, + event: this.event + }) || void 0, n = !0, !t) + break; + return n || t && t.status !== 200 && (t = void 0), t; + } +} +class V { + /** + * Creates a new instance of the strategy and sets all documented option + * properties as public instance properties. + * + * Note: if a custom strategy class extends the base Strategy class and does + * not need more than these properties, it does not need to define its own + * constructor. + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] The + * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + */ + constructor(e = {}) { + this.cacheName = x.getRuntimeName(e.cacheName), this.plugins = e.plugins || [], this.fetchOptions = e.fetchOptions, this.matchOptions = e.matchOptions; + } + /** + * Perform a request strategy and returns a `Promise` that will resolve with + * a `Response`, invoking all relevant plugin callbacks. + * + * When a strategy instance is registered with a Workbox + * {@link workbox-routing.Route}, this method is automatically + * called when the route matches. + * + * Alternatively, this method can be used in a standalone `FetchEvent` + * listener by passing it to `event.respondWith()`. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + */ + handle(e) { + const [t] = this.handleAll(e); + return t; + } + /** + * Similar to {@link workbox-strategies.Strategy~handle}, but + * instead of just returning a `Promise` that resolves to a `Response` it + * it will return an tuple of `[response, done]` promises, where the former + * (`response`) is equivalent to what `handle()` returns, and the latter is a + * Promise that will resolve once any promises that were added to + * `event.waitUntil()` as part of performing the strategy have completed. + * + * You can await the `done` promise to ensure any extra work performed by + * the strategy (usually caching responses) completes successfully. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + * @return {Array} A tuple of [response, done] + * promises that can be used to determine when the response resolves as + * well as when the handler has completed all its work. + */ + handleAll(e) { + e instanceof FetchEvent && (e = { + event: e, + request: e.request + }); + const t = e.event, n = typeof e.request == "string" ? new Request(e.request) : e.request, r = "params" in e ? e.params : void 0, a = new ke(this, { event: t, request: n, params: r }), i = this._getResponse(a, n, t), c = this._awaitComplete(i, a, n, t); + return [i, c]; + } + async _getResponse(e, t, n) { + await e.runCallbacks("handlerWillStart", { event: n, request: t }); + let r; + try { + if (r = await this._handle(t, e), !r || r.type === "error") + throw new h("no-response", { url: t.url }); + } catch (a) { + if (a instanceof Error) { + for (const i of e.iterateCallbacks("handlerDidError")) + if (r = await i({ error: a, event: n, request: t }), r) + break; + } + if (!r) + throw a; + } + for (const a of e.iterateCallbacks("handlerWillRespond")) + r = await a({ event: n, request: t, response: r }); + return r; + } + async _awaitComplete(e, t, n, r) { + let a, i; + try { + a = await e; + } catch { + } + try { + await t.runCallbacks("handlerDidRespond", { + event: r, + request: n, + response: a + }), await t.doneWaiting(); + } catch (c) { + c instanceof Error && (i = c); + } + if (await t.runCallbacks("handlerDidComplete", { + event: r, + request: n, + response: a, + error: i + }), t.destroy(), i) + throw i; + } +} +class p extends V { + /** + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init} + * of all fetch() requests made by this strategy. + * @param {Object} [options.matchOptions] The + * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor(e = {}) { + e.cacheName = x.getPrecacheName(e.cacheName), super(e), this._fallbackToNetwork = e.fallbackToNetwork !== !1, this.plugins.push(p.copyRedirectedCacheableResponsesPlugin); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = await t.cacheMatch(e); + return n || (t.event && t.event.type === "install" ? await this._handleInstall(e, t) : await this._handleFetch(e, t)); + } + async _handleFetch(e, t) { + let n; + const r = t.params || {}; + if (this._fallbackToNetwork) { + const a = r.integrity, i = e.integrity, c = !i || i === a; + n = await t.fetch(new Request(e, { + integrity: e.mode !== "no-cors" ? i || a : void 0 + })), a && c && e.mode !== "no-cors" && (this._useDefaultCacheabilityPluginIfNeeded(), await t.cachePut(e, n.clone())); + } else + throw new h("missing-precache-entry", { + cacheName: this.cacheName, + url: e.url + }); + return n; + } + async _handleInstall(e, t) { + this._useDefaultCacheabilityPluginIfNeeded(); + const n = await t.fetch(e); + if (!await t.cachePut(e, n.clone())) + throw new h("bad-precaching-response", { + url: e.url, + status: n.status + }); + return n; + } + /** + * This method is complex, as there a number of things to account for: + * + * The `plugins` array can be set at construction, and/or it might be added to + * to at any time before the strategy is used. + * + * At the time the strategy is used (i.e. during an `install` event), there + * needs to be at least one plugin that implements `cacheWillUpdate` in the + * array, other than `copyRedirectedCacheableResponsesPlugin`. + * + * - If this method is called and there are no suitable `cacheWillUpdate` + * plugins, we need to add `defaultPrecacheCacheabilityPlugin`. + * + * - If this method is called and there is exactly one `cacheWillUpdate`, then + * we don't have to do anything (this might be a previously added + * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin). + * + * - If this method is called and there is more than one `cacheWillUpdate`, + * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so, + * we need to remove it. (This situation is unlikely, but it could happen if + * the strategy is used multiple times, the first without a `cacheWillUpdate`, + * and then later on after manually adding a custom `cacheWillUpdate`.) + * + * See https://github.com/GoogleChrome/workbox/issues/2737 for more context. + * + * @private + */ + _useDefaultCacheabilityPluginIfNeeded() { + let e = null, t = 0; + for (const [n, r] of this.plugins.entries()) + r !== p.copyRedirectedCacheableResponsesPlugin && (r === p.defaultPrecacheCacheabilityPlugin && (e = n), r.cacheWillUpdate && t++); + t === 0 ? this.plugins.push(p.defaultPrecacheCacheabilityPlugin) : t > 1 && e !== null && this.plugins.splice(e, 1); + } +} +p.defaultPrecacheCacheabilityPlugin = { + async cacheWillUpdate({ response: s }) { + return !s || s.status >= 400 ? null : s; + } +}; +p.copyRedirectedCacheableResponsesPlugin = { + async cacheWillUpdate({ response: s }) { + return s.redirected ? await ne(s) : s; + } +}; +class De { + /** + * Create a new PrecacheController. + * + * @param {Object} [options] + * @param {string} [options.cacheName] The cache to use for precaching. + * @param {string} [options.plugins] Plugins to use when precaching as well + * as responding to fetch events for precached assets. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor({ cacheName: e, plugins: t = [], fallbackToNetwork: n = !0 } = {}) { + this._urlsToCacheKeys = /* @__PURE__ */ new Map(), this._urlsToCacheModes = /* @__PURE__ */ new Map(), this._cacheKeysToIntegrities = /* @__PURE__ */ new Map(), this._strategy = new p({ + cacheName: x.getPrecacheName(e), + plugins: [ + ...t, + new Ee({ precacheController: this }) + ], + fallbackToNetwork: n + }), this.install = this.install.bind(this), this.activate = this.activate.bind(this); + } + /** + * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and + * used to cache assets and respond to fetch events. + */ + get strategy() { + return this._strategy; + } + /** + * Adds items to the precache list, removing any duplicates and + * stores the files in the + * {@link workbox-core.cacheNames|"precache cache"} when the service + * worker installs. + * + * This method can be called multiple times. + * + * @param {Array} [entries=[]] Array of entries to precache. + */ + precache(e) { + this.addToCacheList(e), this._installAndActiveListenersAdded || (self.addEventListener("install", this.install), self.addEventListener("activate", this.activate), this._installAndActiveListenersAdded = !0); + } + /** + * This method will add items to the precache list, removing duplicates + * and ensuring the information is valid. + * + * @param {Array} entries + * Array of entries to precache. + */ + addToCacheList(e) { + const t = []; + for (const n of e) { + typeof n == "string" ? t.push(n) : n && n.revision === void 0 && t.push(n.url); + const { cacheKey: r, url: a } = Ce(n), i = typeof n != "string" && n.revision ? "reload" : "default"; + if (this._urlsToCacheKeys.has(a) && this._urlsToCacheKeys.get(a) !== r) + throw new h("add-to-cache-list-conflicting-entries", { + firstEntry: this._urlsToCacheKeys.get(a), + secondEntry: r + }); + if (typeof n != "string" && n.integrity) { + if (this._cacheKeysToIntegrities.has(r) && this._cacheKeysToIntegrities.get(r) !== n.integrity) + throw new h("add-to-cache-list-conflicting-integrities", { + url: a + }); + this._cacheKeysToIntegrities.set(r, n.integrity); + } + if (this._urlsToCacheKeys.set(a, r), this._urlsToCacheModes.set(a, i), t.length > 0) { + const c = `Workbox is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`; + console.warn(c); + } + } + } + /** + * Precaches new and updated assets. Call this method from the service worker + * install event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + install(e) { + return A(e, async () => { + const t = new xe(); + this.strategy.plugins.push(t); + for (const [a, i] of this._urlsToCacheKeys) { + const c = this._cacheKeysToIntegrities.get(i), o = this._urlsToCacheModes.get(a), l = new Request(a, { + integrity: c, + cache: o, + credentials: "same-origin" + }); + await Promise.all(this.strategy.handleAll({ + params: { cacheKey: i }, + request: l, + event: e + })); + } + const { updatedURLs: n, notUpdatedURLs: r } = t; + return { updatedURLs: n, notUpdatedURLs: r }; + }); + } + /** + * Deletes assets that are no longer present in the current precache manifest. + * Call this method from the service worker activate event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + activate(e) { + return A(e, async () => { + const t = await self.caches.open(this.strategy.cacheName), n = await t.keys(), r = new Set(this._urlsToCacheKeys.values()), a = []; + for (const i of n) + r.has(i.url) || (await t.delete(i), a.push(i.url)); + return { deletedURLs: a }; + }); + } + /** + * Returns a mapping of a precached URL to the corresponding cache key, taking + * into account the revision information for the URL. + * + * @return {Map} A URL to cache key mapping. + */ + getURLsToCacheKeys() { + return this._urlsToCacheKeys; + } + /** + * Returns a list of all the URLs that have been precached by the current + * service worker. + * + * @return {Array} The precached URLs. + */ + getCachedURLs() { + return [...this._urlsToCacheKeys.keys()]; + } + /** + * Returns the cache key used for storing a given URL. If that URL is + * unversioned, like `/index.html', then the cache key will be the original + * URL with a search parameter appended to it. + * + * @param {string} url A URL whose cache key you want to look up. + * @return {string} The versioned URL that corresponds to a cache key + * for the original URL, or undefined if that URL isn't precached. + */ + getCacheKeyForURL(e) { + const t = new URL(e, location.href); + return this._urlsToCacheKeys.get(t.href); + } + /** + * @param {string} url A cache key whose SRI you want to look up. + * @return {string} The subresource integrity associated with the cache key, + * or undefined if it's not set. + */ + getIntegrityForCacheKey(e) { + return this._cacheKeysToIntegrities.get(e); + } + /** + * This acts as a drop-in replacement for + * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) + * with the following differences: + * + * - It knows what the name of the precache is, and only checks in that cache. + * - It allows you to pass in an "original" URL without versioning parameters, + * and it will automatically look up the correct cache key for the currently + * active revision of that URL. + * + * E.g., `matchPrecache('index.html')` will find the correct precached + * response for the currently active service worker, even if the actual cache + * key is `'/index.html?__WB_REVISION__=1234abcd'`. + * + * @param {string|Request} request The key (without revisioning parameters) + * to look up in the precache. + * @return {Promise} + */ + async matchPrecache(e) { + const t = e instanceof Request ? e.url : e, n = this.getCacheKeyForURL(t); + if (n) + return (await self.caches.open(this.strategy.cacheName)).match(n); + } + /** + * Returns a function that looks up `url` in the precache (taking into + * account revision information), and returns the corresponding `Response`. + * + * @param {string} url The precached URL which will be used to lookup the + * `Response`. + * @return {workbox-routing~handlerCallback} + */ + createHandlerBoundToURL(e) { + const t = this.getCacheKeyForURL(e); + if (!t) + throw new h("non-precached-url", { url: e }); + return (n) => (n.request = new Request(e), n.params = Object.assign({ cacheKey: t }, n.params), this.strategy.handle(n)); + } +} +let U; +const I = () => (U || (U = new De()), U); +try { + self["workbox:routing:6.5.3"] && _(); +} catch { +} +const $ = "GET", C = (s) => s && typeof s == "object" ? s : { handle: s }; +class b { + /** + * Constructor for Route class. + * + * @param {workbox-routing~matchCallback} match + * A callback function that determines whether the route matches a given + * `fetch` event by returning a non-falsy value. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resolving to a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n = $) { + this.handler = C(t), this.match = e, this.method = n; + } + /** + * + * @param {workbox-routing-handlerCallback} handler A callback + * function that returns a Promise resolving to a Response + */ + setCatchHandler(e) { + this.catchHandler = C(e); + } +} +class Le extends b { + /** + * If the regular expression contains + * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references}, + * the captured values will be passed to the + * {@link workbox-routing~handlerCallback} `params` + * argument. + * + * @param {RegExp} regExp The regular expression to match against URLs. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n) { + const r = ({ url: a }) => { + const i = e.exec(a.href); + if (i && !(a.origin !== location.origin && i.index !== 0)) + return i.slice(1); + }; + super(r, t, n); + } +} +class Ue { + /** + * Initializes a new Router. + */ + constructor() { + this._routes = /* @__PURE__ */ new Map(), this._defaultHandlerMap = /* @__PURE__ */ new Map(); + } + /** + * @return {Map>} routes A `Map` of HTTP + * method name ('GET', etc.) to an array of all the corresponding `Route` + * instances that are registered. + */ + get routes() { + return this._routes; + } + /** + * Adds a fetch event listener to respond to events when a route matches + * the event's request. + */ + addFetchListener() { + self.addEventListener("fetch", (e) => { + const { request: t } = e, n = this.handleRequest({ request: t, event: e }); + n && e.respondWith(n); + }); + } + /** + * Adds a message event listener for URLs to cache from the window. + * This is useful to cache resources loaded on the page prior to when the + * service worker started controlling it. + * + * The format of the message data sent from the window should be as follows. + * Where the `urlsToCache` array may consist of URL strings or an array of + * URL string + `requestInit` object (the same as you'd pass to `fetch()`). + * + * ``` + * { + * type: 'CACHE_URLS', + * payload: { + * urlsToCache: [ + * './script1.js', + * './script2.js', + * ['./script3.js', {mode: 'no-cors'}], + * ], + * }, + * } + * ``` + */ + addCacheListener() { + self.addEventListener("message", (e) => { + if (e.data && e.data.type === "CACHE_URLS") { + const { payload: t } = e.data, n = Promise.all(t.urlsToCache.map((r) => { + typeof r == "string" && (r = [r]); + const a = new Request(...r); + return this.handleRequest({ request: a, event: e }); + })); + e.waitUntil(n), e.ports && e.ports[0] && n.then(() => e.ports[0].postMessage(!0)); + } + }); + } + /** + * Apply the routing rules to a FetchEvent object to get a Response from an + * appropriate Route's handler. + * + * @param {Object} options + * @param {Request} options.request The request to handle. + * @param {ExtendableEvent} options.event The event that triggered the + * request. + * @return {Promise|undefined} A promise is returned if a + * registered route can handle the request. If there is no matching + * route and there's no `defaultHandler`, `undefined` is returned. + */ + handleRequest({ request: e, event: t }) { + const n = new URL(e.url, location.href); + if (!n.protocol.startsWith("http")) + return; + const r = n.origin === location.origin, { params: a, route: i } = this.findMatchingRoute({ + event: t, + request: e, + sameOrigin: r, + url: n + }); + let c = i && i.handler; + const o = e.method; + if (!c && this._defaultHandlerMap.has(o) && (c = this._defaultHandlerMap.get(o)), !c) + return; + let l; + try { + l = c.handle({ url: n, request: e, event: t, params: a }); + } catch (u) { + l = Promise.reject(u); + } + const g = i && i.catchHandler; + return l instanceof Promise && (this._catchHandler || g) && (l = l.catch(async (u) => { + if (g) + try { + return await g.handle({ url: n, request: e, event: t, params: a }); + } catch (N) { + N instanceof Error && (u = N); + } + if (this._catchHandler) + return this._catchHandler.handle({ url: n, request: e, event: t }); + throw u; + })), l; + } + /** + * Checks a request and URL (and optionally an event) against the list of + * registered routes, and if there's a match, returns the corresponding + * route along with any params generated by the match. + * + * @param {Object} options + * @param {URL} options.url + * @param {boolean} options.sameOrigin The result of comparing `url.origin` + * against the current origin. + * @param {Request} options.request The request to match. + * @param {Event} options.event The corresponding event. + * @return {Object} An object with `route` and `params` properties. + * They are populated if a matching route was found or `undefined` + * otherwise. + */ + findMatchingRoute({ url: e, sameOrigin: t, request: n, event: r }) { + const a = this._routes.get(n.method) || []; + for (const i of a) { + let c; + const o = i.match({ url: e, sameOrigin: t, request: n, event: r }); + if (o) + return c = o, (Array.isArray(c) && c.length === 0 || o.constructor === Object && // eslint-disable-line + Object.keys(o).length === 0 || typeof o == "boolean") && (c = void 0), { route: i, params: c }; + } + return {}; + } + /** + * Define a default `handler` that's called when no routes explicitly + * match the incoming request. + * + * Each HTTP method ('GET', 'POST', etc.) gets its own default handler. + * + * Without a default handler, unmatched requests will go against the + * network as if there were no service worker present. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to associate with this + * default handler. Each method has its own default. + */ + setDefaultHandler(e, t = $) { + this._defaultHandlerMap.set(t, C(e)); + } + /** + * If a Route throws an error while handling a request, this `handler` + * will be called and given a chance to provide a response. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + */ + setCatchHandler(e) { + this._catchHandler = C(e); + } + /** + * Registers a route with the router. + * + * @param {workbox-routing.Route} route The route to register. + */ + registerRoute(e) { + this._routes.has(e.method) || this._routes.set(e.method, []), this._routes.get(e.method).push(e); + } + /** + * Unregisters a route with the router. + * + * @param {workbox-routing.Route} route The route to unregister. + */ + unregisterRoute(e) { + if (!this._routes.has(e.method)) + throw new h("unregister-route-but-not-found-with-method", { + method: e.method + }); + const t = this._routes.get(e.method).indexOf(e); + if (t > -1) + this._routes.get(e.method).splice(t, 1); + else + throw new h("unregister-route-route-not-registered"); + } +} +let y; +const ve = () => (y || (y = new Ue(), y.addFetchListener(), y.addCacheListener()), y); +function M(s, e, t) { + let n; + if (typeof s == "string") { + const a = new URL(s, location.href), i = ({ url: c }) => c.href === a.href; + n = new b(i, e, t); + } else if (s instanceof RegExp) + n = new Le(s, e, t); + else if (typeof s == "function") + n = new b(s, e, t); + else if (s instanceof b) + n = s; + else + throw new h("unsupported-route-type", { + moduleName: "workbox-routing", + funcName: "registerRoute", + paramName: "capture" + }); + return ve().registerRoute(n), n; +} +function Te(s, e = []) { + for (const t of [...s.searchParams.keys()]) + e.some((n) => n.test(t)) && s.searchParams.delete(t); + return s; +} +function* Pe(s, { ignoreURLParametersMatching: e = [/^utm_/, /^fbclid$/], directoryIndex: t = "index.html", cleanURLs: n = !0, urlManipulation: r } = {}) { + const a = new URL(s, location.href); + a.hash = "", yield a.href; + const i = Te(a, e); + if (yield i.href, t && i.pathname.endsWith("/")) { + const c = new URL(i.href); + c.pathname += t, yield c.href; + } + if (n) { + const c = new URL(i.href); + c.pathname += ".html", yield c.href; + } + if (r) { + const c = r({ url: a }); + for (const o of c) + yield o.href; + } +} +class Ie extends b { + /** + * @param {PrecacheController} precacheController A `PrecacheController` + * instance used to both match requests and respond to fetch events. + * @param {Object} [options] Options to control how requests are matched + * against the list of precached URLs. + * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will + * check cache entries for a URLs ending with '/' to see if there is a hit when + * appending the `directoryIndex` value. + * @param {Array} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An + * array of regex's to remove search params when looking for a cache match. + * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will + * check the cache for the URL with a `.html` added to the end of the end. + * @param {workbox-precaching~urlManipulation} [options.urlManipulation] + * This is a function that should take a URL and return an array of + * alternative URLs that should be checked for precache matches. + */ + constructor(e, t) { + const n = ({ request: r }) => { + const a = e.getURLsToCacheKeys(); + for (const i of Pe(r.url, t)) { + const c = a.get(i); + if (c) { + const o = e.getIntegrityForCacheKey(c); + return { cacheKey: c, integrity: o }; + } + } + }; + super(n, e.strategy); + } +} +function Me(s) { + const e = I(), t = new Ie(e, s); + M(t); +} +function Ne(s) { + return I().createHandlerBoundToURL(s); +} +function Ke(s) { + I().precache(s); +} +function Ae(s, e) { + Ke(s), Me(e); +} +const je = { + /** + * Returns a valid response (to allow caching) if the status is 200 (OK) or + * 0 (opaque). + * + * @param {Object} options + * @param {Response} options.response + * @return {Response|null} + * + * @private + */ + cacheWillUpdate: async ({ response: s }) => s.status === 200 || s.status === 0 ? s : null +}; +class Oe extends V { + /** + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] [`CacheQueryOptions`](https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions) + */ + constructor(e = {}) { + super(e), this.plugins.some((t) => "cacheWillUpdate" in t) || this.plugins.unshift(je); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = t.fetchAndCachePut(e).catch(() => { + }); + t.waitUntil(n); + let r = await t.cacheMatch(e), a; + if (!r) + try { + r = await n; + } catch (i) { + i instanceof Error && (a = i); + } + if (!r) + throw new h("no-response", { url: e.url, error: a }); + return r; + } +} +const Se = "shlink-web-client", We = "A React-based progressive web application for shlink", Be = "/shlink-web-client/feature/external-web-component", qe = "https://github.com/shlinkio/shlink-web-client", Fe = "MIT", He = { + lint: "npm run lint:css && npm run lint:js", + "lint:css": "stylelint src/*.scss src/**/*.scss", + "lint:js": "eslint --ext .js,.ts,.tsx src test", + "lint:fix": "npm run lint:css:fix && npm run lint:js:fix", + "lint:css:fix": "npm run lint:css -- --fix", + "lint:js:fix": "npm run lint:js -- --fix", + types: "tsc", + start: "vite serve --host=0.0.0.0", + preview: "vite preview --host=0.0.0.0", + build: "npm run types && vite build && node scripts/replace-version.mjs", + "build:dist": "npm run build && node scripts/create-dist-file.mjs", + test: "vitest run --run", + "test:watch": "vitest --watch", + "test:ci": "npm run test -- --coverage", + "test:verbose": "npm run test -- --verbose" +}, Ve = { + "@fortawesome/fontawesome-free": "^6.4.2", + "@fortawesome/fontawesome-svg-core": "^6.4.2", + "@fortawesome/free-brands-svg-icons": "^6.4.2", + "@fortawesome/free-regular-svg-icons": "^6.4.2", + "@fortawesome/free-solid-svg-icons": "^6.4.2", + "@fortawesome/react-fontawesome": "^0.2.0", + "@json2csv/plainjs": "^7.0.1", + "@reduxjs/toolkit": "^1.9.5", + "@shlinkio/shlink-frontend-kit": "^0.2.0", + "@shlinkio/shlink-web-component": "^0.1.0", + bootstrap: "5.2.3", + bottlejs: "^2.0.1", + "chart.js": "^4.3.3", + classnames: "^2.3.2", + "compare-versions": "^6.1.0", + csvtojson: "^2.0.10", + "date-fns": "^2.30.0", + leaflet: "^1.9.4", + ramda: "^0.27.2", + react: "^18.2.0", + "react-dom": "^18.2.0", + "react-external-link": "^2.2.0", + "react-redux": "^8.1.2", + "react-router-dom": "^6.14.2", + reactstrap: "^9.2.0", + "redux-localstorage-simple": "^2.5.1", + uuid: "^9.0.0", + "workbox-core": "^6.5.4", + "workbox-expiration": "^6.5.4", + "workbox-precaching": "^6.5.4", + "workbox-routing": "^6.5.4", + "workbox-strategies": "^6.5.4" +}, $e = { + "@shlinkio/eslint-config-js-coding-standard": "~2.2.0", + "@shlinkio/stylelint-config-css-coding-standard": "~1.1.1", + "@testing-library/jest-dom": "^5.17.0", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.4.3", + "@total-typescript/shoehorn": "^0.1.1", + "@types/leaflet": "^1.9.3", + "@types/ramda": "^0.27.66", + "@types/react": "^18.2.19", + "@types/react-dom": "^18.2.7", + "@types/uuid": "^9.0.2", + "@vitejs/plugin-react": "^4.0.4", + "@vitest/coverage-v8": "^0.34.1", + "adm-zip": "^0.5.10", + chalk: "^5.3.0", + eslint: "^8.46.0", + history: "^5.3.0", + jsdom: "^22.1.0", + sass: "^1.64.2", + stylelint: "^15.10.2", + typescript: "^5.1.6", + vite: "^4.4.9", + "vite-plugin-pwa": "^0.16.4", + vitest: "^0.34.1" +}, Ge = [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" +], Qe = { + name: Se, + description: We, + private: !1, + homepage: Be, + repository: qe, + license: Fe, + scripts: He, + dependencies: Ve, + devDependencies: $e, + browserslist: Ge +}; +re(); +Ae([{"revision":null,"url":"assets/index-0e8ab544.css"},{"revision":null,"url":"assets/index-30cba7be.js"},{"revision":"d1983990cd49d4ac620f16ee2cde9618","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"68e57b1af24caec37efff6078f197c77","url":"manifest.json"}]); +const ze = new RegExp("/[^/?]+\\.[^/]+$"); +M( + // Return false to exempt requests from being fulfilled by index.html. + ({ request: s, url: e }) => !(s.mode !== "navigate" || e.pathname.startsWith("/_") || e.pathname.match(ze)), + Ne(`${Qe.homepage}/index.html`) +); +M( + // Add in any other file extensions or routing criteria as needed. + ({ url: s }) => s.origin === self.location.origin && s.pathname.endsWith(".png"), + // Customize this strategy as needed, e.g., by changing to CacheFirst. + new Oe({ + cacheName: "images", + plugins: [ + // Ensure that once this runtime cache reaches a maximum size the + // least-recently used images are removed. + new be({ maxEntries: 50 }) + ] + }) +); +self.addEventListener("message", (s) => { + s.data && s.data.type === "SKIP_WAITING" && self.skipWaiting(); +});